configure revision aa4416d5e38d48ab11393ca47218644ced4e1c9f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.1-9. 4# 5# Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 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: https://github.com/ImageMagick/ImageMagick/issues about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run the script under such a shell if you do have one." 282 fi 283 exit 1 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.1-9' 594PACKAGE_STRING='ImageMagick 7.0.1-9' 595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues' 596PACKAGE_URL='http://www.imagemagick.org' 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 687windows_font_dir 688ghostscript_font_dir 689dejavu_font_dir 690apple_font_dir 691PrintDelegate 692XPSDelegate 693WWWDecodeDelegate 694WebPEncodeDelegate 695WebPDecodeDelegate 696UniconvertorDelegate 697SVGDecodeDelegate 698RSVGDecodeDelegate 699RMDelegate 700PSDelegate 701PCLDelegate 702MVDelegate 703MrSIDDecodeDelegate 704MPEGEncodeDelegate 705MPEGDecodeDelegate 706MogrifyDelegate 707LaunchDelegate 708LPRDelegate 709LPDelegate 710JXREncodeDelegate 711JXRDecodeDelegate 712ILBMEncodeDelegate 713ILBMDecodeDelegate 714HTMLDecodeDelegate 715HPGLDecodeDelegate 716GVCDecodeDelegate 717EditorDelegate 718DisplayDelegate 719ConvertDelegate 720DVIDecodeDelegate 721DOCDecodeDelegate 722DNGDecodeDelegate 723BrowseDelegate 724BlenderDecodeDelegate 725BPGEncodeDelegate 726BPGDecodeDelegate 727SHAREARCH_PATH 728SHAREARCH_RELATIVE_PATH 729SHAREARCH_DIRNAME 730SHAREARCH_BASEDIRNAME 731SHARE_PATH 732CONFIGURE_PATH 733INSTALL_DOC_FALSE 734INSTALL_DOC_TRUE 735DOCUMENTATION_PATH 736FILTER_PATH 737FILTER_DIRNAME 738CODER_PATH 739CODER_DIRNAME 740MODULES_PATH 741MODULES_RELATIVE_PATH 742MODULES_DIRNAME 743MODULES_BASEDIRNAME 744LIB_BIN_DIR_PATH 745LIB_BIN_DIR_RELATIVE_PATH 746LIB_BIN_DIR 747LIB_BIN_BASEDIRNAME 748LIBRARY_PATH 749EXECUTABLE_PATH 750INCLUDEARCH_PATH 751INCLUDE_PATH 752PERLMAINCC 753XML_DELEGATE_FALSE 754XML_DELEGATE_TRUE 755XML_LIBS 756XML_CFLAGS 757WMF_LIBS 758WMF_CFLAGS 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_DELEGATE_FALSE 776PNG_DELEGATE_TRUE 777PNG_LIBS 778PNG_CFLAGS 779PANGOCAIRO_DELEGATE_FALSE 780PANGOCAIRO_DELEGATE_TRUE 781PANGO_DELEGATE_FALSE 782PANGO_DELEGATE_TRUE 783PANGO_LIBS 784PANGO_CFLAGS 785OPENEXR_DELEGATE_FALSE 786OPENEXR_DELEGATE_TRUE 787OPENEXR_LIBS 788OPENEXR_CFLAGS 789LZMA_DELEGATE_FALSE 790LZMA_DELEGATE_TRUE 791LZMA_LIBS 792LZMA_CFLAGS 793LQR_DELEGATE_FALSE 794LQR_DELEGATE_TRUE 795LQR_LIBS 796LQR_CFLAGS 797LIBOPENJP2_DELEGATE_FALSE 798LIBOPENJP2_DELEGATE_TRUE 799LIBOPENJP2_LIBS 800LIBOPENJP2_CFLAGS 801LCMS_LIBS 802LCMS_CFLAGS 803LCMS_DELEGATE_FALSE 804LCMS_DELEGATE_TRUE 805LCMS2_LIBS 806LCMS2_CFLAGS 807JPEG_LIBS 808JPEG_DELEGATE_FALSE 809JPEG_DELEGATE_TRUE 810JBIG_LIBS 811JBIG_DELEGATE_FALSE 812JBIG_DELEGATE_TRUE 813GVC_DELEGATE_FALSE 814GVC_DELEGATE_TRUE 815GVC_LIBS 816GVC_CFLAGS 817GS_LIBS 818GS_DELEGATE_FALSE 819GS_DELEGATE_TRUE 820RAQM_DELEGATE_FALSE 821RAQM_DELEGATE_TRUE 822RAQM_LIBS 823RAQM_CFLAGS 824FREETYPE_DELEGATE_FALSE 825FREETYPE_DELEGATE_TRUE 826FREETYPE_LIBS 827FREETYPE_CFLAGS 828FONTCONFIG_DELEGATE_FALSE 829FONTCONFIG_DELEGATE_TRUE 830FONTCONFIG_LIBS 831FONTCONFIG_CFLAGS 832DJVU_LIBS 833DJVU_CFLAGS 834DJVU_DELEGATE_FALSE 835DJVU_DELEGATE_TRUE 836ddjvuapi_LIBS 837ddjvuapi_CFLAGS 838FPX_LIBS 839FPX_DELEGATE_FALSE 840FPX_DELEGATE_TRUE 841FLIF_LIBS 842FLIF_DELEGATE_FALSE 843FLIF_DELEGATE_TRUE 844FFTW_LIBS 845FFTW_CFLAGS 846FFTW_DELEGATE_FALSE 847FFTW_DELEGATE_TRUE 848fftw3_LIBS 849fftw3_CFLAGS 850DPS_LIBS 851DPS_DELEGATE_FALSE 852DPS_DELEGATE_TRUE 853AUTOTRACE_DELEGATE_FALSE 854AUTOTRACE_DELEGATE_TRUE 855AUTOTRACE_LIBS 856AUTOTRACE_CFLAGS 857LIB_DL 858WITH_LTDL_FALSE 859WITH_LTDL_TRUE 860ZLIB_DELEGATE_FALSE 861ZLIB_DELEGATE_TRUE 862ZLIB_LIBS 863ZLIB_CFLAGS 864XEXT_LIBS 865X11_LIBS 866X11_DELEGATE_FALSE 867X11_DELEGATE_TRUE 868X_EXTRA_LIBS 869X_LIBS 870X_PRE_LIBS 871X_CFLAGS 872XMKMF 873BZLIB_LIBS 874BZLIB_DELEGATE_FALSE 875BZLIB_DELEGATE_TRUE 876CCMALLOCDelegate 877UMEM_LIBS 878HasUMEM_FALSE 879HasUMEM_TRUE 880JEMALLOC_LIBS 881HasJEMALLOC_FALSE 882HasJEMALLOC_TRUE 883GOMP_LIBS 884WITH_MAGICK_PLUS_PLUS_FALSE 885WITH_MAGICK_PLUS_PLUS_TRUE 886OPENMP_CXXFLAGS 887MATH_LIBS 888POW_LIB 889LIBOBJS 890UINTPTR_F 891UINTPTR_T 892UINTMAX_F 893UINTMAX_T 894UINT64_F 895UINT64_T 896INT64_F 897INT64_T 898UINT32_F 899UINT32_T 900INT32_F 901INT32_T 902UINT16_T 903INT16_T 904UINT8_T 905INT8_T 906LIBRARY_EXTRA_CPPFLAGS 907MODULE_EXTRA_CPPFLAGS 908LIBSTDCLDFLAGS 909PERL_MAKE_OPTIONS 910MAGICK_LT_RELEASE_OPTS 911MAGICK_ABI_SUFFIX 912QUANTUM_DEPTH 913LEGACY_SUPPORT_FALSE 914LEGACY_SUPPORT_TRUE 915MAINT 916MAINTAINER_MODE_FALSE 917MAINTAINER_MODE_TRUE 918MAGICK_HDRI 919WITH_MODULES_FALSE 920WITH_MODULES_TRUE 921WITH_SHARED_LIBS_FALSE 922WITH_SHARED_LIBS_TRUE 923LIBTOOL_DEPS 924CXXCPP 925LT_SYS_LIBRARY_PATH 926OTOOL64 927OTOOL 928LIPO 929NMEDIT 930DSYMUTIL 931MANIFEST_TOOL 932RANLIB 933NM 934ac_ct_DUMPBIN 935DUMPBIN 936LIBTOOL 937OBJDUMP 938DLLTOOL 939AS 940LFS_CPPFLAGS 941CL_LIBS 942CL_CFLAGS 943OPENMP_CFLAGS 944THREAD_LIBS 945PTHREAD_CFLAGS 946PTHREAD_LIBS 947PTHREAD_CC 948ax_pthread_config 949pkgconfigdir 950SHAREARCH_DIR 951INCLUDEARCH_DIR 952WinPathScript 953USING_CL_FALSE 954USING_CL_TRUE 955CYGWIN_BUILD_FALSE 956CYGWIN_BUILD_TRUE 957WIN32_NATIVE_BUILD_FALSE 958WIN32_NATIVE_BUILD_TRUE 959WINGDI32_DELEGATE_FALSE 960WINGDI32_DELEGATE_TRUE 961GDI32_LIBS 962HAVE_LD_VERSION_SCRIPT_FALSE 963HAVE_LD_VERSION_SCRIPT_TRUE 964WARN_SCANNERFLAGS 965WARN_LDFLAGS 966WARN_CXXFLAGS 967WARN_CFLAGS 968PKG_CONFIG_LIBDIR 969PKG_CONFIG_PATH 970PKG_CONFIG 971PRTDIAG 972LN_S 973LD 974FGREP 975SED 976am__fastdepCXX_FALSE 977am__fastdepCXX_TRUE 978CXXDEPMODE 979ac_ct_CXX 980CXXFLAGS 981CXX 982ac_ct_AR 983AR 984EGREP 985GREP 986CPP 987am__fastdepCC_FALSE 988am__fastdepCC_TRUE 989CCDEPMODE 990am__nodep 991AMDEPBACKSLASH 992AMDEP_FALSE 993AMDEP_TRUE 994am__quote 995am__include 996DEPDIR 997OBJEXT 998EXEEXT 999ac_ct_CC 1000CPPFLAGS 1001LDFLAGS 1002CFLAGS 1003CC 1004DIRSEP 1005MAGICK_FILTER_MODULE_PATH 1006MAGICK_CONFIGURE_BUILD_PATH 1007MAGICK_CONFIGURE_SRC_PATH 1008MAGICK_CODER_MODULE_PATH 1009MAN_DIR 1010INFO_DIR 1011PERSISTINCLUDE_DIR 1012INCLUDE_DIR 1013LIB_DIR 1014LOCALSTATE_DIR 1015SHAREDSTATE_DIR 1016SYSCONF_DIR 1017DOC_DIR 1018DATA_DIR 1019LIBEXEC_DIR 1020SBIN_DIR 1021BIN_DIR 1022EXEC_PREFIX_DIR 1023PREFIX_DIR 1024CONFIG_STATUS_DEPENDENCIES 1025MAGICKPP_LIB_VERSION_TEXT 1026MAGICKPP_LIB_VERSION 1027MAGICK_LIB_VERSION_NUMBER 1028MAGICK_LIB_VERSION_TEXT 1029MAGICK_LIB_VERSION 1030PACKAGE_VERSION_ADDENDUM 1031PACKAGE_RELEASE_DATE 1032PACKAGE_LIB_VERSION_NUMBER 1033PACKAGE_LIB_VERSION 1034PACKAGE_CHANGE_DATE 1035PACKAGE_RELEASE 1036PACKAGE_PERL_VERSION 1037MAGICKPP_LIBRARY_VERSION_INFO 1038MAGICKPP_LIBRARY_CURRENT_MIN 1039MAGICKPP_LIBRARY_AGE 1040MAGICKPP_LIBRARY_REVISION 1041MAGICKPP_LIBRARY_CURRENT 1042MAGICK_LIBRARY_VERSION_INFO 1043MAGICK_LIBRARY_CURRENT_MIN 1044MAGICK_LIBRARY_AGE 1045MAGICK_LIBRARY_REVISION 1046MAGICK_LIBRARY_CURRENT 1047MAGICK_GIT_REVISION 1048MAGICK_VERSION 1049MAGICK_PATCHLEVEL_VERSION 1050MAGICK_MICRO_VERSION 1051MAGICK_MINOR_VERSION 1052MAGICK_MAJOR_VERSION 1053MAGICK_TARGET_OS 1054MAGICK_TARGET_VENDOR 1055MAGICK_TARGET_CPU 1056CONFIGURE_ARGS 1057DISTCHECK_CONFIG_FLAGS 1058AM_BACKSLASH 1059AM_DEFAULT_VERBOSITY 1060AM_DEFAULT_V 1061AM_V 1062am__untar 1063am__tar 1064AMTAR 1065am__leading_dot 1066SET_MAKE 1067AWK 1068mkdir_p 1069MKDIR_P 1070INSTALL_STRIP_PROGRAM 1071STRIP 1072install_sh 1073MAKEINFO 1074AUTOHEADER 1075AUTOMAKE 1076AUTOCONF 1077ACLOCAL 1078VERSION 1079PACKAGE 1080CYGPATH_W 1081am__isrc 1082INSTALL_DATA 1083INSTALL_SCRIPT 1084INSTALL_PROGRAM 1085target_os 1086target_vendor 1087target_cpu 1088target 1089host_os 1090host_vendor 1091host_cpu 1092host 1093build_os 1094build_vendor 1095build_cpu 1096build 1097target_alias 1098host_alias 1099build_alias 1100LIBS 1101ECHO_T 1102ECHO_N 1103ECHO_C 1104DEFS 1105mandir 1106localedir 1107libdir 1108psdir 1109pdfdir 1110dvidir 1111htmldir 1112infodir 1113docdir 1114oldincludedir 1115includedir 1116localstatedir 1117sharedstatedir 1118sysconfdir 1119datadir 1120datarootdir 1121libexecdir 1122sbindir 1123bindir 1124program_transform_name 1125prefix 1126exec_prefix 1127PACKAGE_URL 1128PACKAGE_BUGREPORT 1129PACKAGE_STRING 1130PACKAGE_VERSION 1131PACKAGE_TARNAME 1132PACKAGE_NAME 1133PATH_SEPARATOR 1134SHELL' 1135ac_subst_files='' 1136ac_user_opts=' 1137enable_option_checking 1138enable_silent_rules 1139enable_reproducible_build 1140enable_dependency_tracking 1141with_gnu_ld 1142with_dmalloc 1143with_gcc_arch 1144enable_compile_warnings 1145enable_Werror 1146enable_ld_version_script 1147enable_bounds_checking 1148enable_osx_universal_binary 1149with_includearch_dir 1150with_sharearch_dir 1151with_pkgconfigdir 1152with_threads 1153enable_openmp 1154enable_opencl 1155enable_largefile 1156enable_shared 1157enable_static 1158with_pic 1159enable_fast_install 1160with_aix_soname 1161with_sysroot 1162enable_libtool_lock 1163with_modules 1164enable_delegate_build 1165enable_deprecated 1166enable_installed 1167enable_cipher 1168enable_zero_configuration 1169enable_hdri 1170enable_pipes 1171enable_indirect_reads 1172enable_assert 1173enable_maintainer_mode 1174enable_hugepages 1175enable_ccmalloc 1176enable_efence 1177enable_prof 1178enable_gprof 1179enable_gcov 1180with_method_prefix 1181enable_legacy_support 1182with_quantum_depth 1183with_cache 1184with_frozenpaths 1185with_magick_plus_plus 1186with_package_release_name 1187with_perl 1188with_perl_options 1189with_jemalloc 1190with_umem 1191with_libstdc 1192with_bzlib 1193with_x 1194with_zlib 1195with_apple_font_dir 1196with_autotrace 1197with_dps 1198with_dejavu_font_dir 1199with_fftw 1200with_flif 1201with_fpx 1202with_djvu 1203with_fontconfig 1204with_freetype 1205with_raqm 1206with_gslib 1207with_fontpath 1208with_gs_font_dir 1209with_gvc 1210with_jbig 1211with_jpeg 1212with_lcms 1213with_openjp2 1214with_lqr 1215with_lzma 1216with_openexr 1217with_pango 1218with_png 1219with_rsvg 1220with_tiff 1221with_webp 1222with_windows_font_dir 1223with_wmf 1224with_xml 1225enable_docs 1226' 1227 ac_precious_vars='build_alias 1228host_alias 1229target_alias 1230CC 1231CFLAGS 1232LDFLAGS 1233LIBS 1234CPPFLAGS 1235CPP 1236CXX 1237CXXFLAGS 1238CCC 1239PKG_CONFIG 1240PKG_CONFIG_PATH 1241PKG_CONFIG_LIBDIR 1242LT_SYS_LIBRARY_PATH 1243CXXCPP 1244XMKMF 1245ZLIB_CFLAGS 1246ZLIB_LIBS 1247AUTOTRACE_CFLAGS 1248AUTOTRACE_LIBS 1249fftw3_CFLAGS 1250fftw3_LIBS 1251ddjvuapi_CFLAGS 1252ddjvuapi_LIBS 1253FONTCONFIG_CFLAGS 1254FONTCONFIG_LIBS 1255FREETYPE_CFLAGS 1256FREETYPE_LIBS 1257RAQM_CFLAGS 1258RAQM_LIBS 1259GVC_CFLAGS 1260GVC_LIBS 1261LCMS2_CFLAGS 1262LCMS2_LIBS 1263LIBOPENJP2_CFLAGS 1264LIBOPENJP2_LIBS 1265LQR_CFLAGS 1266LQR_LIBS 1267LZMA_CFLAGS 1268LZMA_LIBS 1269OPENEXR_CFLAGS 1270OPENEXR_LIBS 1271PANGO_CFLAGS 1272PANGO_LIBS 1273PNG_CFLAGS 1274PNG_LIBS 1275RSVG_CFLAGS 1276RSVG_LIBS 1277CAIRO_SVG_CFLAGS 1278CAIRO_SVG_LIBS 1279XML_CFLAGS 1280XML_LIBS' 1281 1282 1283# Initialize some variables set by options. 1284ac_init_help= 1285ac_init_version=false 1286ac_unrecognized_opts= 1287ac_unrecognized_sep= 1288# The variables have the same names as the options, with 1289# dashes changed to underlines. 1290cache_file=/dev/null 1291exec_prefix=NONE 1292no_create= 1293no_recursion= 1294prefix=NONE 1295program_prefix=NONE 1296program_suffix=NONE 1297program_transform_name=s,x,x, 1298silent= 1299site= 1300srcdir= 1301verbose= 1302x_includes=NONE 1303x_libraries=NONE 1304 1305# Installation directory options. 1306# These are left unexpanded so users can "make install exec_prefix=/foo" 1307# and all the variables that are supposed to be based on exec_prefix 1308# by default will actually change. 1309# Use braces instead of parens because sh, perl, etc. also accept them. 1310# (The list follows the same order as the GNU Coding Standards.) 1311bindir='${exec_prefix}/bin' 1312sbindir='${exec_prefix}/sbin' 1313libexecdir='${exec_prefix}/libexec' 1314datarootdir='${prefix}/share' 1315datadir='${datarootdir}' 1316sysconfdir='${prefix}/etc' 1317sharedstatedir='${prefix}/com' 1318localstatedir='${prefix}/var' 1319includedir='${prefix}/include' 1320oldincludedir='/usr/include' 1321docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1322infodir='${datarootdir}/info' 1323htmldir='${docdir}' 1324dvidir='${docdir}' 1325pdfdir='${docdir}' 1326psdir='${docdir}' 1327libdir='${exec_prefix}/lib' 1328localedir='${datarootdir}/locale' 1329mandir='${datarootdir}/man' 1330 1331ac_prev= 1332ac_dashdash= 1333for ac_option 1334do 1335 # If the previous option needs an argument, assign it. 1336 if test -n "$ac_prev"; then 1337 eval $ac_prev=\$ac_option 1338 ac_prev= 1339 continue 1340 fi 1341 1342 case $ac_option in 1343 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1344 *=) ac_optarg= ;; 1345 *) ac_optarg=yes ;; 1346 esac 1347 1348 # Accept the important Cygnus configure options, so we can diagnose typos. 1349 1350 case $ac_dashdash$ac_option in 1351 --) 1352 ac_dashdash=yes ;; 1353 1354 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1355 ac_prev=bindir ;; 1356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1357 bindir=$ac_optarg ;; 1358 1359 -build | --build | --buil | --bui | --bu) 1360 ac_prev=build_alias ;; 1361 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1362 build_alias=$ac_optarg ;; 1363 1364 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1366 ac_prev=cache_file ;; 1367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1369 cache_file=$ac_optarg ;; 1370 1371 --config-cache | -C) 1372 cache_file=config.cache ;; 1373 1374 -datadir | --datadir | --datadi | --datad) 1375 ac_prev=datadir ;; 1376 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1377 datadir=$ac_optarg ;; 1378 1379 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1380 | --dataroo | --dataro | --datar) 1381 ac_prev=datarootdir ;; 1382 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1383 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1384 datarootdir=$ac_optarg ;; 1385 1386 -disable-* | --disable-*) 1387 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1388 # Reject names that are not valid shell variable names. 1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1390 as_fn_error $? "invalid feature name: $ac_useropt" 1391 ac_useropt_orig=$ac_useropt 1392 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1393 case $ac_user_opts in 1394 *" 1395"enable_$ac_useropt" 1396"*) ;; 1397 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1398 ac_unrecognized_sep=', ';; 1399 esac 1400 eval enable_$ac_useropt=no ;; 1401 1402 -docdir | --docdir | --docdi | --doc | --do) 1403 ac_prev=docdir ;; 1404 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1405 docdir=$ac_optarg ;; 1406 1407 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1408 ac_prev=dvidir ;; 1409 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1410 dvidir=$ac_optarg ;; 1411 1412 -enable-* | --enable-*) 1413 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1414 # Reject names that are not valid shell variable names. 1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1416 as_fn_error $? "invalid feature name: $ac_useropt" 1417 ac_useropt_orig=$ac_useropt 1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1419 case $ac_user_opts in 1420 *" 1421"enable_$ac_useropt" 1422"*) ;; 1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1424 ac_unrecognized_sep=', ';; 1425 esac 1426 eval enable_$ac_useropt=\$ac_optarg ;; 1427 1428 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1429 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1430 | --exec | --exe | --ex) 1431 ac_prev=exec_prefix ;; 1432 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1433 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1434 | --exec=* | --exe=* | --ex=*) 1435 exec_prefix=$ac_optarg ;; 1436 1437 -gas | --gas | --ga | --g) 1438 # Obsolete; use --with-gas. 1439 with_gas=yes ;; 1440 1441 -help | --help | --hel | --he | -h) 1442 ac_init_help=long ;; 1443 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1444 ac_init_help=recursive ;; 1445 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1446 ac_init_help=short ;; 1447 1448 -host | --host | --hos | --ho) 1449 ac_prev=host_alias ;; 1450 -host=* | --host=* | --hos=* | --ho=*) 1451 host_alias=$ac_optarg ;; 1452 1453 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1454 ac_prev=htmldir ;; 1455 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1456 | --ht=*) 1457 htmldir=$ac_optarg ;; 1458 1459 -includedir | --includedir | --includedi | --included | --include \ 1460 | --includ | --inclu | --incl | --inc) 1461 ac_prev=includedir ;; 1462 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1463 | --includ=* | --inclu=* | --incl=* | --inc=*) 1464 includedir=$ac_optarg ;; 1465 1466 -infodir | --infodir | --infodi | --infod | --info | --inf) 1467 ac_prev=infodir ;; 1468 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1469 infodir=$ac_optarg ;; 1470 1471 -libdir | --libdir | --libdi | --libd) 1472 ac_prev=libdir ;; 1473 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1474 libdir=$ac_optarg ;; 1475 1476 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1477 | --libexe | --libex | --libe) 1478 ac_prev=libexecdir ;; 1479 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1480 | --libexe=* | --libex=* | --libe=*) 1481 libexecdir=$ac_optarg ;; 1482 1483 -localedir | --localedir | --localedi | --localed | --locale) 1484 ac_prev=localedir ;; 1485 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1486 localedir=$ac_optarg ;; 1487 1488 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1489 | --localstate | --localstat | --localsta | --localst | --locals) 1490 ac_prev=localstatedir ;; 1491 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1492 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1493 localstatedir=$ac_optarg ;; 1494 1495 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1496 ac_prev=mandir ;; 1497 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1498 mandir=$ac_optarg ;; 1499 1500 -nfp | --nfp | --nf) 1501 # Obsolete; use --without-fp. 1502 with_fp=no ;; 1503 1504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1505 | --no-cr | --no-c | -n) 1506 no_create=yes ;; 1507 1508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1510 no_recursion=yes ;; 1511 1512 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1513 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1514 | --oldin | --oldi | --old | --ol | --o) 1515 ac_prev=oldincludedir ;; 1516 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1517 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1518 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1519 oldincludedir=$ac_optarg ;; 1520 1521 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1522 ac_prev=prefix ;; 1523 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1524 prefix=$ac_optarg ;; 1525 1526 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1527 | --program-pre | --program-pr | --program-p) 1528 ac_prev=program_prefix ;; 1529 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1530 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1531 program_prefix=$ac_optarg ;; 1532 1533 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1534 | --program-suf | --program-su | --program-s) 1535 ac_prev=program_suffix ;; 1536 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1537 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1538 program_suffix=$ac_optarg ;; 1539 1540 -program-transform-name | --program-transform-name \ 1541 | --program-transform-nam | --program-transform-na \ 1542 | --program-transform-n | --program-transform- \ 1543 | --program-transform | --program-transfor \ 1544 | --program-transfo | --program-transf \ 1545 | --program-trans | --program-tran \ 1546 | --progr-tra | --program-tr | --program-t) 1547 ac_prev=program_transform_name ;; 1548 -program-transform-name=* | --program-transform-name=* \ 1549 | --program-transform-nam=* | --program-transform-na=* \ 1550 | --program-transform-n=* | --program-transform-=* \ 1551 | --program-transform=* | --program-transfor=* \ 1552 | --program-transfo=* | --program-transf=* \ 1553 | --program-trans=* | --program-tran=* \ 1554 | --progr-tra=* | --program-tr=* | --program-t=*) 1555 program_transform_name=$ac_optarg ;; 1556 1557 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1558 ac_prev=pdfdir ;; 1559 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1560 pdfdir=$ac_optarg ;; 1561 1562 -psdir | --psdir | --psdi | --psd | --ps) 1563 ac_prev=psdir ;; 1564 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1565 psdir=$ac_optarg ;; 1566 1567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1568 | -silent | --silent | --silen | --sile | --sil) 1569 silent=yes ;; 1570 1571 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1572 ac_prev=sbindir ;; 1573 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1574 | --sbi=* | --sb=*) 1575 sbindir=$ac_optarg ;; 1576 1577 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1578 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1579 | --sharedst | --shareds | --shared | --share | --shar \ 1580 | --sha | --sh) 1581 ac_prev=sharedstatedir ;; 1582 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1583 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1584 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1585 | --sha=* | --sh=*) 1586 sharedstatedir=$ac_optarg ;; 1587 1588 -site | --site | --sit) 1589 ac_prev=site ;; 1590 -site=* | --site=* | --sit=*) 1591 site=$ac_optarg ;; 1592 1593 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1594 ac_prev=srcdir ;; 1595 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1596 srcdir=$ac_optarg ;; 1597 1598 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1599 | --syscon | --sysco | --sysc | --sys | --sy) 1600 ac_prev=sysconfdir ;; 1601 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1602 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1603 sysconfdir=$ac_optarg ;; 1604 1605 -target | --target | --targe | --targ | --tar | --ta | --t) 1606 ac_prev=target_alias ;; 1607 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1608 target_alias=$ac_optarg ;; 1609 1610 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1611 verbose=yes ;; 1612 1613 -version | --version | --versio | --versi | --vers | -V) 1614 ac_init_version=: ;; 1615 1616 -with-* | --with-*) 1617 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1618 # Reject names that are not valid shell variable names. 1619 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1620 as_fn_error $? "invalid package name: $ac_useropt" 1621 ac_useropt_orig=$ac_useropt 1622 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1623 case $ac_user_opts in 1624 *" 1625"with_$ac_useropt" 1626"*) ;; 1627 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1628 ac_unrecognized_sep=', ';; 1629 esac 1630 eval with_$ac_useropt=\$ac_optarg ;; 1631 1632 -without-* | --without-*) 1633 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1634 # Reject names that are not valid shell variable names. 1635 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1636 as_fn_error $? "invalid package name: $ac_useropt" 1637 ac_useropt_orig=$ac_useropt 1638 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1639 case $ac_user_opts in 1640 *" 1641"with_$ac_useropt" 1642"*) ;; 1643 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1644 ac_unrecognized_sep=', ';; 1645 esac 1646 eval with_$ac_useropt=no ;; 1647 1648 --x) 1649 # Obsolete; use --with-x. 1650 with_x=yes ;; 1651 1652 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1653 | --x-incl | --x-inc | --x-in | --x-i) 1654 ac_prev=x_includes ;; 1655 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1656 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1657 x_includes=$ac_optarg ;; 1658 1659 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1660 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1661 ac_prev=x_libraries ;; 1662 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1663 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1664 x_libraries=$ac_optarg ;; 1665 1666 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1667Try \`$0 --help' for more information" 1668 ;; 1669 1670 *=*) 1671 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1672 # Reject names that are not valid shell variable names. 1673 case $ac_envvar in #( 1674 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1675 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1676 esac 1677 eval $ac_envvar=\$ac_optarg 1678 export $ac_envvar ;; 1679 1680 *) 1681 # FIXME: should be removed in autoconf 3.0. 1682 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1683 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1684 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1685 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1686 ;; 1687 1688 esac 1689done 1690 1691if test -n "$ac_prev"; then 1692 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1693 as_fn_error $? "missing argument to $ac_option" 1694fi 1695 1696if test -n "$ac_unrecognized_opts"; then 1697 case $enable_option_checking in 1698 no) ;; 1699 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1700 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1701 esac 1702fi 1703 1704# Check all directory arguments for consistency. 1705for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1706 datadir sysconfdir sharedstatedir localstatedir includedir \ 1707 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1708 libdir localedir mandir 1709do 1710 eval ac_val=\$$ac_var 1711 # Remove trailing slashes. 1712 case $ac_val in 1713 */ ) 1714 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1715 eval $ac_var=\$ac_val;; 1716 esac 1717 # Be sure to have absolute directory names. 1718 case $ac_val in 1719 [\\/$]* | ?:[\\/]* ) continue;; 1720 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1721 esac 1722 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1723done 1724 1725# There might be people who depend on the old broken behavior: `$host' 1726# used to hold the argument of --host etc. 1727# FIXME: To remove some day. 1728build=$build_alias 1729host=$host_alias 1730target=$target_alias 1731 1732# FIXME: To remove some day. 1733if test "x$host_alias" != x; then 1734 if test "x$build_alias" = x; then 1735 cross_compiling=maybe 1736 elif test "x$build_alias" != "x$host_alias"; then 1737 cross_compiling=yes 1738 fi 1739fi 1740 1741ac_tool_prefix= 1742test -n "$host_alias" && ac_tool_prefix=$host_alias- 1743 1744test "$silent" = yes && exec 6>/dev/null 1745 1746 1747ac_pwd=`pwd` && test -n "$ac_pwd" && 1748ac_ls_di=`ls -di .` && 1749ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1750 as_fn_error $? "working directory cannot be determined" 1751test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1752 as_fn_error $? "pwd does not report name of working directory" 1753 1754 1755# Find the source files, if location was not specified. 1756if test -z "$srcdir"; then 1757 ac_srcdir_defaulted=yes 1758 # Try the directory containing this script, then the parent directory. 1759 ac_confdir=`$as_dirname -- "$as_myself" || 1760$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1761 X"$as_myself" : 'X\(//\)[^/]' \| \ 1762 X"$as_myself" : 'X\(//\)$' \| \ 1763 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1764$as_echo X"$as_myself" | 1765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1766 s//\1/ 1767 q 1768 } 1769 /^X\(\/\/\)[^/].*/{ 1770 s//\1/ 1771 q 1772 } 1773 /^X\(\/\/\)$/{ 1774 s//\1/ 1775 q 1776 } 1777 /^X\(\/\).*/{ 1778 s//\1/ 1779 q 1780 } 1781 s/.*/./; q'` 1782 srcdir=$ac_confdir 1783 if test ! -r "$srcdir/$ac_unique_file"; then 1784 srcdir=.. 1785 fi 1786else 1787 ac_srcdir_defaulted=no 1788fi 1789if test ! -r "$srcdir/$ac_unique_file"; then 1790 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1791 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1792fi 1793ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1794ac_abs_confdir=`( 1795 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1796 pwd)` 1797# When building in place, set srcdir=. 1798if test "$ac_abs_confdir" = "$ac_pwd"; then 1799 srcdir=. 1800fi 1801# Remove unnecessary trailing slashes from srcdir. 1802# Double slashes in file names in object file debugging info 1803# mess up M-x gdb in Emacs. 1804case $srcdir in 1805*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1806esac 1807for ac_var in $ac_precious_vars; do 1808 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1809 eval ac_env_${ac_var}_value=\$${ac_var} 1810 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1811 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1812done 1813 1814# 1815# Report the --help message. 1816# 1817if test "$ac_init_help" = "long"; then 1818 # Omit some internal or obsolete options to make the list less imposing. 1819 # This message is too long to be a string in the A/UX 3.1 sh. 1820 cat <<_ACEOF 1821\`configure' configures ImageMagick 7.0.1-9 to adapt to many kinds of systems. 1822 1823Usage: $0 [OPTION]... [VAR=VALUE]... 1824 1825To assign environment variables (e.g., CC, CFLAGS...), specify them as 1826VAR=VALUE. See below for descriptions of some of the useful variables. 1827 1828Defaults for the options are specified in brackets. 1829 1830Configuration: 1831 -h, --help display this help and exit 1832 --help=short display options specific to this package 1833 --help=recursive display the short help of all the included packages 1834 -V, --version display version information and exit 1835 -q, --quiet, --silent do not print \`checking ...' messages 1836 --cache-file=FILE cache test results in FILE [disabled] 1837 -C, --config-cache alias for \`--cache-file=config.cache' 1838 -n, --no-create do not create output files 1839 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1840 1841Installation directories: 1842 --prefix=PREFIX install architecture-independent files in PREFIX 1843 [$ac_default_prefix] 1844 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1845 [PREFIX] 1846 1847By default, \`make install' will install all the files in 1848\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1849an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1850for instance \`--prefix=\$HOME'. 1851 1852For better control, use the options below. 1853 1854Fine tuning of the installation directories: 1855 --bindir=DIR user executables [EPREFIX/bin] 1856 --sbindir=DIR system admin executables [EPREFIX/sbin] 1857 --libexecdir=DIR program executables [EPREFIX/libexec] 1858 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1859 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1860 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1861 --libdir=DIR object code libraries [EPREFIX/lib] 1862 --includedir=DIR C header files [PREFIX/include] 1863 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1864 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1865 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1866 --infodir=DIR info documentation [DATAROOTDIR/info] 1867 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1868 --mandir=DIR man documentation [DATAROOTDIR/man] 1869 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] 1870 --htmldir=DIR html documentation [DOCDIR] 1871 --dvidir=DIR dvi documentation [DOCDIR] 1872 --pdfdir=DIR pdf documentation [DOCDIR] 1873 --psdir=DIR ps documentation [DOCDIR] 1874_ACEOF 1875 1876 cat <<\_ACEOF 1877 1878Program names: 1879 --program-prefix=PREFIX prepend PREFIX to installed program names 1880 --program-suffix=SUFFIX append SUFFIX to installed program names 1881 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1882 1883X features: 1884 --x-includes=DIR X include files are in DIR 1885 --x-libraries=DIR X library files are in DIR 1886 1887System types: 1888 --build=BUILD configure for building on BUILD [guessed] 1889 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1890 --target=TARGET configure for building compilers for TARGET [HOST] 1891_ACEOF 1892fi 1893 1894if test -n "$ac_init_help"; then 1895 case $ac_init_help in 1896 short | recursive ) echo "Configuration of ImageMagick 7.0.1-9:";; 1897 esac 1898 cat <<\_ACEOF 1899 1900Optional Features: 1901 --disable-option-checking ignore unrecognized --enable/--with options 1902 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1903 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1904 --enable-silent-rules less verbose build output (undo: "make V=1") 1905 --disable-silent-rules verbose build output (undo: "make V=0") 1906 --enable-reproducible-build 1907 enable reproducible build 1908 --enable-dependency-tracking 1909 do not reject slow dependency extractors 1910 --disable-dependency-tracking 1911 speeds up one-time build 1912 --enable-compile-warnings=[no/yes/error] 1913 Enable compiler warnings and errors 1914 --disable-Werror Unconditionally make all compiler warnings non-fatal 1915 --enable-ld-version-script 1916 enable linker version script (default is enabled 1917 when possible) 1918 --enable-bounds-checking 1919 enable run-time bounds-checking 1920 --enable-osx-universal-binary 1921 build universal binary on OS X [[default=no]] 1922 --disable-openmp do not use OpenMP 1923 --enable-opencl enable OpenCL support 1924 --disable-largefile omit support for large files 1925 --enable-shared[=PKGS] build shared libraries [default=yes] 1926 --enable-static[=PKGS] build static libraries [default=yes] 1927 --enable-fast-install[=PKGS] 1928 optimize for fast installation [default=yes] 1929 --disable-libtool-lock avoid locking (might break parallel builds) 1930 --enable-delegate-build look for delegate libraries in build directory 1931 --disable-deprecated exclude deprecated methods in MagickCore and 1932 MagickWand APIs 1933 --disable-installed Formally install ImageMagick under PREFIX 1934 --disable-cipher disable enciphering and deciphering image pixels 1935 --enable-zero-configuration 1936 enable self-contained, embeddable, 1937 zero-configuration ImageMagick 1938 --enable-hdri accurately represent the wide range of intensity 1939 levels found in real scenes 1940 --enable-pipes enable pipes (|) in filenames 1941 --enable-indirect-reads enable indirect reads (@) in filenames 1942 --disable-assert disable assert() statements in build 1943 --enable-maintainer-mode 1944 enable make rules and dependencies not useful (and 1945 sometimes confusing) to the casual installer 1946 --enable-hugepages enable 'huge pages' support 1947 --enable-ccmalloc enable 'ccmalloc' memory debug support 1948 --enable-efence enable 'efence' memory debug support 1949 --enable-prof enable 'prof' profiling support 1950 --enable-gprof enable 'gprof' profiling support 1951 --enable-gcov enable 'gcov' profiling support 1952 --enable-legacy-support install legacy command-line utilities (default disabled) 1953 --disable-assert turn off assertions 1954 --disable-docs disable building of documentation 1955 1956Optional Packages: 1957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1959 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1960 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1961 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1962 instead of guessing 1963 --includearch-dir=DIR ARCH specific include directory 1964 --sharearch-dir=DIR ARCH specific config directory 1965 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig] 1966 --without-threads disable threads support 1967 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1968 both] 1969 --with-aix-soname=aix|svr4|both 1970 shared library versioning (aka "SONAME") variant to 1971 provide on AIX, [default=aix]. 1972 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1973 compiler's sysroot if not specified). 1974 --with-modules enable building dynamically loadable modules 1975 --with-method-prefix=PREFIX 1976 prefix MagickCore API methods 1977 --with-quantum-depth=DEPTH 1978 number of bits in a pixel quantum (default 16) 1979 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available 1980 memory) 1981 --with-frozenpaths freeze delegate paths 1982 --without-magick-plus-plus 1983 disable build/install of Magick++ 1984 --with-package-release-name=NAME 1985 encode this name into the shared library 1986 --with-perl enable build/install of PerlMagick 1987 --with-perl-options=OPTIONS 1988 options to pass on command-line when generating 1989 PerlMagick build file 1990 --with-jemalloc enable jemalloc memory allocation library support 1991 --with-umem enable umem memory allocation library support 1992 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) 1993 --without-bzlib disable BZLIB support 1994 --with-x use the X Window System 1995 --without-zlib disable ZLIB support 1996 --with-apple-font-dir=DIR 1997 Apple font directory 1998 --with-autotrace enable autotrace support 1999 --without-dps disable Display Postscript support 2000 --with-dejavu-font-dir=DIR 2001 DejaVu font directory 2002 --without-fftw disable FFTW support 2003 --without-flif disable FLIF support 2004 --without-fpx disable FlashPIX support 2005 --without-djvu disable DjVu support 2006 --without-fontconfig disable fontconfig support 2007 --without-freetype disable Freetype support 2008 --without-raqm disable Raqm support 2009 --with-gslib enable Ghostscript library support 2010 --with-fontpath=DIR prepend to default font search path 2011 --with-gs-font-dir=DIR Ghostscript font directory 2012 --with-gvc enable GVC support 2013 --without-jbig disable JBIG support 2014 --without-jpeg disable JPEG support 2015 --without-lcms disable lcms (v1.1X) support 2016 --without-openjp2 disable OpenJP2 support 2017 --without-lqr disable Liquid Rescale support 2018 --without-lzma disable LZMA support 2019 --without-openexr disable OpenEXR support 2020 --without-pango disable PANGO support 2021 --without-png disable PNG support 2022 --with-rsvg enable RSVG support 2023 --without-tiff disable TIFF support 2024 --without-webp disable WEBP support 2025 --with-windows-font-dir=DIR 2026 Windows font directory 2027 --with-wmf enable WMF support 2028 --without-xml disable XML support 2029 2030Some influential environment variables: 2031 CC C compiler command 2032 CFLAGS C compiler flags 2033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2034 nonstandard directory <lib dir> 2035 LIBS libraries to pass to the linker, e.g. -l<library> 2036 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2037 you have headers in a nonstandard directory <include dir> 2038 CPP C preprocessor 2039 CXX C++ compiler command 2040 CXXFLAGS C++ compiler flags 2041 PKG_CONFIG path to pkg-config utility 2042 PKG_CONFIG_PATH 2043 directories to add to pkg-config's search path 2044 PKG_CONFIG_LIBDIR 2045 path overriding pkg-config's built-in search path 2046 LT_SYS_LIBRARY_PATH 2047 User-defined run-time library search path. 2048 CXXCPP C++ preprocessor 2049 XMKMF Path to xmkmf, Makefile generator for X Window System 2050 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 2051 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 2052 AUTOTRACE_CFLAGS 2053 C compiler flags for AUTOTRACE, overriding pkg-config 2054 AUTOTRACE_LIBS 2055 linker flags for AUTOTRACE, overriding pkg-config 2056 fftw3_CFLAGS 2057 C compiler flags for fftw3, overriding pkg-config 2058 fftw3_LIBS linker flags for fftw3, overriding pkg-config 2059 ddjvuapi_CFLAGS 2060 C compiler flags for ddjvuapi, overriding pkg-config 2061 ddjvuapi_LIBS 2062 linker flags for ddjvuapi, overriding pkg-config 2063 FONTCONFIG_CFLAGS 2064 C compiler flags for FONTCONFIG, overriding pkg-config 2065 FONTCONFIG_LIBS 2066 linker flags for FONTCONFIG, overriding pkg-config 2067 FREETYPE_CFLAGS 2068 C compiler flags for FREETYPE, overriding pkg-config 2069 FREETYPE_LIBS 2070 linker flags for FREETYPE, overriding pkg-config 2071 RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config 2072 RAQM_LIBS linker flags for RAQM, overriding pkg-config 2073 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config 2074 GVC_LIBS linker flags for GVC, overriding pkg-config 2075 LCMS2_CFLAGS 2076 C compiler flags for LCMS2, overriding pkg-config 2077 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config 2078 LIBOPENJP2_CFLAGS 2079 C compiler flags for LIBOPENJP2, overriding pkg-config 2080 LIBOPENJP2_LIBS 2081 linker flags for LIBOPENJP2, overriding pkg-config 2082 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config 2083 LQR_LIBS linker flags for LQR, overriding pkg-config 2084 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 2085 LZMA_LIBS linker flags for LZMA, overriding pkg-config 2086 OPENEXR_CFLAGS 2087 C compiler flags for OPENEXR, overriding pkg-config 2088 OPENEXR_LIBS 2089 linker flags for OPENEXR, overriding pkg-config 2090 PANGO_CFLAGS 2091 C compiler flags for PANGO, overriding pkg-config 2092 PANGO_LIBS linker flags for PANGO, overriding pkg-config 2093 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2094 PNG_LIBS linker flags for PNG, overriding pkg-config 2095 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config 2096 RSVG_LIBS linker flags for RSVG, overriding pkg-config 2097 CAIRO_SVG_CFLAGS 2098 C compiler flags for CAIRO_SVG, overriding pkg-config 2099 CAIRO_SVG_LIBS 2100 linker flags for CAIRO_SVG, overriding pkg-config 2101 XML_CFLAGS C compiler flags for XML, overriding pkg-config 2102 XML_LIBS linker flags for XML, overriding pkg-config 2103 2104Use these variables to override the choices made by `configure' or to help 2105it to find libraries and programs with nonstandard names/locations. 2106 2107Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 2108ImageMagick home page: <http://www.imagemagick.org>. 2109_ACEOF 2110ac_status=$? 2111fi 2112 2113if test "$ac_init_help" = "recursive"; then 2114 # If there are subdirs, report their specific --help. 2115 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2116 test -d "$ac_dir" || 2117 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2118 continue 2119 ac_builddir=. 2120 2121case "$ac_dir" in 2122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2123*) 2124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2125 # A ".." for each directory in $ac_dir_suffix. 2126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2127 case $ac_top_builddir_sub in 2128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2130 esac ;; 2131esac 2132ac_abs_top_builddir=$ac_pwd 2133ac_abs_builddir=$ac_pwd$ac_dir_suffix 2134# for backward compatibility: 2135ac_top_builddir=$ac_top_build_prefix 2136 2137case $srcdir in 2138 .) # We are building in place. 2139 ac_srcdir=. 2140 ac_top_srcdir=$ac_top_builddir_sub 2141 ac_abs_top_srcdir=$ac_pwd ;; 2142 [\\/]* | ?:[\\/]* ) # Absolute name. 2143 ac_srcdir=$srcdir$ac_dir_suffix; 2144 ac_top_srcdir=$srcdir 2145 ac_abs_top_srcdir=$srcdir ;; 2146 *) # Relative name. 2147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2148 ac_top_srcdir=$ac_top_build_prefix$srcdir 2149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2150esac 2151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2152 2153 cd "$ac_dir" || { ac_status=$?; continue; } 2154 # Check for guested configure. 2155 if test -f "$ac_srcdir/configure.gnu"; then 2156 echo && 2157 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2158 elif test -f "$ac_srcdir/configure"; then 2159 echo && 2160 $SHELL "$ac_srcdir/configure" --help=recursive 2161 else 2162 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2163 fi || ac_status=$? 2164 cd "$ac_pwd" || { ac_status=$?; break; } 2165 done 2166fi 2167 2168test -n "$ac_init_help" && exit $ac_status 2169if $ac_init_version; then 2170 cat <<\_ACEOF 2171ImageMagick configure 7.0.1-9 2172generated by GNU Autoconf 2.69 2173 2174Copyright (C) 2012 Free Software Foundation, Inc. 2175This configure script is free software; the Free Software Foundation 2176gives unlimited permission to copy, distribute and modify it. 2177_ACEOF 2178 exit 2179fi 2180 2181## ------------------------ ## 2182## Autoconf initialization. ## 2183## ------------------------ ## 2184 2185# ac_fn_c_try_compile LINENO 2186# -------------------------- 2187# Try to compile conftest.$ac_ext, and return whether this succeeded. 2188ac_fn_c_try_compile () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 rm -f conftest.$ac_objext 2192 if { { ac_try="$ac_compile" 2193case "(($ac_try" in 2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2195 *) ac_try_echo=$ac_try;; 2196esac 2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2198$as_echo "$ac_try_echo"; } >&5 2199 (eval "$ac_compile") 2>conftest.err 2200 ac_status=$? 2201 if test -s conftest.err; then 2202 grep -v '^ *+' conftest.err >conftest.er1 2203 cat conftest.er1 >&5 2204 mv -f conftest.er1 conftest.err 2205 fi 2206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2207 test $ac_status = 0; } && { 2208 test -z "$ac_c_werror_flag" || 2209 test ! -s conftest.err 2210 } && test -s conftest.$ac_objext; then : 2211 ac_retval=0 2212else 2213 $as_echo "$as_me: failed program was:" >&5 2214sed 's/^/| /' conftest.$ac_ext >&5 2215 2216 ac_retval=1 2217fi 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 as_fn_set_status $ac_retval 2220 2221} # ac_fn_c_try_compile 2222 2223# ac_fn_c_try_cpp LINENO 2224# ---------------------- 2225# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2226ac_fn_c_try_cpp () 2227{ 2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2229 if { { ac_try="$ac_cpp conftest.$ac_ext" 2230case "(($ac_try" in 2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2232 *) ac_try_echo=$ac_try;; 2233esac 2234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2235$as_echo "$ac_try_echo"; } >&5 2236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2237 ac_status=$? 2238 if test -s conftest.err; then 2239 grep -v '^ *+' conftest.err >conftest.er1 2240 cat conftest.er1 >&5 2241 mv -f conftest.er1 conftest.err 2242 fi 2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2244 test $ac_status = 0; } > conftest.i && { 2245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2246 test ! -s conftest.err 2247 }; then : 2248 ac_retval=0 2249else 2250 $as_echo "$as_me: failed program was:" >&5 2251sed 's/^/| /' conftest.$ac_ext >&5 2252 2253 ac_retval=1 2254fi 2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2256 as_fn_set_status $ac_retval 2257 2258} # ac_fn_c_try_cpp 2259 2260# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2261# ------------------------------------------------------- 2262# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2263# the include files in INCLUDES and setting the cache variable VAR 2264# accordingly. 2265ac_fn_c_check_header_mongrel () 2266{ 2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2268 if eval \${$3+:} false; then : 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2270$as_echo_n "checking for $2... " >&6; } 2271if eval \${$3+:} false; then : 2272 $as_echo_n "(cached) " >&6 2273fi 2274eval ac_res=\$$3 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2276$as_echo "$ac_res" >&6; } 2277else 2278 # Is the header compilable? 2279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2280$as_echo_n "checking $2 usability... " >&6; } 2281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$4 2284#include <$2> 2285_ACEOF 2286if ac_fn_c_try_compile "$LINENO"; then : 2287 ac_header_compiler=yes 2288else 2289 ac_header_compiler=no 2290fi 2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2293$as_echo "$ac_header_compiler" >&6; } 2294 2295# Is the header present? 2296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2297$as_echo_n "checking $2 presence... " >&6; } 2298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2299/* end confdefs.h. */ 2300#include <$2> 2301_ACEOF 2302if ac_fn_c_try_cpp "$LINENO"; then : 2303 ac_header_preproc=yes 2304else 2305 ac_header_preproc=no 2306fi 2307rm -f conftest.err conftest.i conftest.$ac_ext 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2309$as_echo "$ac_header_preproc" >&6; } 2310 2311# So? What about this header? 2312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2313 yes:no: ) 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2315$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2317$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2318 ;; 2319 no:yes:* ) 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2321$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2323$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2325$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2327$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2329$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2330( $as_echo "## ---------------------------------------------------------------- ## 2331## Report this to https://github.com/ImageMagick/ImageMagick/issues ## 2332## ---------------------------------------------------------------- ##" 2333 ) | sed "s/^/$as_me: WARNING: /" >&2 2334 ;; 2335esac 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2337$as_echo_n "checking for $2... " >&6; } 2338if eval \${$3+:} false; then : 2339 $as_echo_n "(cached) " >&6 2340else 2341 eval "$3=\$ac_header_compiler" 2342fi 2343eval ac_res=\$$3 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2345$as_echo "$ac_res" >&6; } 2346fi 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 2349} # ac_fn_c_check_header_mongrel 2350 2351# ac_fn_c_try_run LINENO 2352# ---------------------- 2353# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2354# that executables *can* be run. 2355ac_fn_c_try_run () 2356{ 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 if { { ac_try="$ac_link" 2359case "(($ac_try" in 2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2361 *) ac_try_echo=$ac_try;; 2362esac 2363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2364$as_echo "$ac_try_echo"; } >&5 2365 (eval "$ac_link") 2>&5 2366 ac_status=$? 2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2368 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2369 { { case "(($ac_try" in 2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2371 *) ac_try_echo=$ac_try;; 2372esac 2373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2374$as_echo "$ac_try_echo"; } >&5 2375 (eval "$ac_try") 2>&5 2376 ac_status=$? 2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2378 test $ac_status = 0; }; }; then : 2379 ac_retval=0 2380else 2381 $as_echo "$as_me: program exited with status $ac_status" >&5 2382 $as_echo "$as_me: failed program was:" >&5 2383sed 's/^/| /' conftest.$ac_ext >&5 2384 2385 ac_retval=$ac_status 2386fi 2387 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2389 as_fn_set_status $ac_retval 2390 2391} # ac_fn_c_try_run 2392 2393# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2394# ------------------------------------------------------- 2395# Tests whether HEADER exists and can be compiled using the include files in 2396# INCLUDES, setting the cache variable VAR accordingly. 2397ac_fn_c_check_header_compile () 2398{ 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2401$as_echo_n "checking for $2... " >&6; } 2402if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2406/* end confdefs.h. */ 2407$4 2408#include <$2> 2409_ACEOF 2410if ac_fn_c_try_compile "$LINENO"; then : 2411 eval "$3=yes" 2412else 2413 eval "$3=no" 2414fi 2415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2416fi 2417eval ac_res=\$$3 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2419$as_echo "$ac_res" >&6; } 2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2421 2422} # ac_fn_c_check_header_compile 2423 2424# ac_fn_cxx_try_compile LINENO 2425# ---------------------------- 2426# Try to compile conftest.$ac_ext, and return whether this succeeded. 2427ac_fn_cxx_try_compile () 2428{ 2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2430 rm -f conftest.$ac_objext 2431 if { { ac_try="$ac_compile" 2432case "(($ac_try" in 2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2434 *) ac_try_echo=$ac_try;; 2435esac 2436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2437$as_echo "$ac_try_echo"; } >&5 2438 (eval "$ac_compile") 2>conftest.err 2439 ac_status=$? 2440 if test -s conftest.err; then 2441 grep -v '^ *+' conftest.err >conftest.er1 2442 cat conftest.er1 >&5 2443 mv -f conftest.er1 conftest.err 2444 fi 2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2446 test $ac_status = 0; } && { 2447 test -z "$ac_cxx_werror_flag" || 2448 test ! -s conftest.err 2449 } && test -s conftest.$ac_objext; then : 2450 ac_retval=0 2451else 2452 $as_echo "$as_me: failed program was:" >&5 2453sed 's/^/| /' conftest.$ac_ext >&5 2454 2455 ac_retval=1 2456fi 2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2458 as_fn_set_status $ac_retval 2459 2460} # ac_fn_cxx_try_compile 2461 2462# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2463# -------------------------------------------- 2464# Tries to find the compile-time value of EXPR in a program that includes 2465# INCLUDES, setting VAR accordingly. Returns whether the value could be 2466# computed 2467ac_fn_c_compute_int () 2468{ 2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2470 if test "$cross_compiling" = yes; then 2471 # Depending upon the size, compute the lo and hi bounds. 2472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2473/* end confdefs.h. */ 2474$4 2475int 2476main () 2477{ 2478static int test_array [1 - 2 * !(($2) >= 0)]; 2479test_array [0] = 0; 2480return test_array [0]; 2481 2482 ; 2483 return 0; 2484} 2485_ACEOF 2486if ac_fn_c_try_compile "$LINENO"; then : 2487 ac_lo=0 ac_mid=0 2488 while :; do 2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2490/* end confdefs.h. */ 2491$4 2492int 2493main () 2494{ 2495static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2496test_array [0] = 0; 2497return test_array [0]; 2498 2499 ; 2500 return 0; 2501} 2502_ACEOF 2503if ac_fn_c_try_compile "$LINENO"; then : 2504 ac_hi=$ac_mid; break 2505else 2506 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2507 if test $ac_lo -le $ac_mid; then 2508 ac_lo= ac_hi= 2509 break 2510 fi 2511 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2512fi 2513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2514 done 2515else 2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2517/* end confdefs.h. */ 2518$4 2519int 2520main () 2521{ 2522static int test_array [1 - 2 * !(($2) < 0)]; 2523test_array [0] = 0; 2524return test_array [0]; 2525 2526 ; 2527 return 0; 2528} 2529_ACEOF 2530if ac_fn_c_try_compile "$LINENO"; then : 2531 ac_hi=-1 ac_mid=-1 2532 while :; do 2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2534/* end confdefs.h. */ 2535$4 2536int 2537main () 2538{ 2539static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2540test_array [0] = 0; 2541return test_array [0]; 2542 2543 ; 2544 return 0; 2545} 2546_ACEOF 2547if ac_fn_c_try_compile "$LINENO"; then : 2548 ac_lo=$ac_mid; break 2549else 2550 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2551 if test $ac_mid -le $ac_hi; then 2552 ac_lo= ac_hi= 2553 break 2554 fi 2555 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2556fi 2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2558 done 2559else 2560 ac_lo= ac_hi= 2561fi 2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2563fi 2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2565# Binary search between lo and hi bounds. 2566while test "x$ac_lo" != "x$ac_hi"; do 2567 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2569/* end confdefs.h. */ 2570$4 2571int 2572main () 2573{ 2574static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2575test_array [0] = 0; 2576return test_array [0]; 2577 2578 ; 2579 return 0; 2580} 2581_ACEOF 2582if ac_fn_c_try_compile "$LINENO"; then : 2583 ac_hi=$ac_mid 2584else 2585 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2586fi 2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2588done 2589case $ac_lo in #(( 2590?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2591'') ac_retval=1 ;; 2592esac 2593 else 2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2595/* end confdefs.h. */ 2596$4 2597static long int longval () { return $2; } 2598static unsigned long int ulongval () { return $2; } 2599#include <stdio.h> 2600#include <stdlib.h> 2601int 2602main () 2603{ 2604 2605 FILE *f = fopen ("conftest.val", "w"); 2606 if (! f) 2607 return 1; 2608 if (($2) < 0) 2609 { 2610 long int i = longval (); 2611 if (i != ($2)) 2612 return 1; 2613 fprintf (f, "%ld", i); 2614 } 2615 else 2616 { 2617 unsigned long int i = ulongval (); 2618 if (i != ($2)) 2619 return 1; 2620 fprintf (f, "%lu", i); 2621 } 2622 /* Do not output a trailing newline, as this causes \r\n confusion 2623 on some platforms. */ 2624 return ferror (f) || fclose (f) != 0; 2625 2626 ; 2627 return 0; 2628} 2629_ACEOF 2630if ac_fn_c_try_run "$LINENO"; then : 2631 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2632else 2633 ac_retval=1 2634fi 2635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2636 conftest.$ac_objext conftest.beam conftest.$ac_ext 2637rm -f conftest.val 2638 2639 fi 2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2641 as_fn_set_status $ac_retval 2642 2643} # ac_fn_c_compute_int 2644 2645# ac_fn_c_try_link LINENO 2646# ----------------------- 2647# Try to link conftest.$ac_ext, and return whether this succeeded. 2648ac_fn_c_try_link () 2649{ 2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2651 rm -f conftest.$ac_objext conftest$ac_exeext 2652 if { { ac_try="$ac_link" 2653case "(($ac_try" in 2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2655 *) ac_try_echo=$ac_try;; 2656esac 2657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2658$as_echo "$ac_try_echo"; } >&5 2659 (eval "$ac_link") 2>conftest.err 2660 ac_status=$? 2661 if test -s conftest.err; then 2662 grep -v '^ *+' conftest.err >conftest.er1 2663 cat conftest.er1 >&5 2664 mv -f conftest.er1 conftest.err 2665 fi 2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2667 test $ac_status = 0; } && { 2668 test -z "$ac_c_werror_flag" || 2669 test ! -s conftest.err 2670 } && test -s conftest$ac_exeext && { 2671 test "$cross_compiling" = yes || 2672 test -x conftest$ac_exeext 2673 }; then : 2674 ac_retval=0 2675else 2676 $as_echo "$as_me: failed program was:" >&5 2677sed 's/^/| /' conftest.$ac_ext >&5 2678 2679 ac_retval=1 2680fi 2681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2683 # interfere with the next link command; also delete a directory that is 2684 # left behind by Apple's compiler. We do this before executing the actions. 2685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2687 as_fn_set_status $ac_retval 2688 2689} # ac_fn_c_try_link 2690 2691# ac_fn_c_check_func LINENO FUNC VAR 2692# ---------------------------------- 2693# Tests whether FUNC exists, setting the cache variable VAR accordingly 2694ac_fn_c_check_func () 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 $2" >&5 2698$as_echo_n "checking for $2... " >&6; } 2699if eval \${$3+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2703/* end confdefs.h. */ 2704/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2705 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2706#define $2 innocuous_$2 2707 2708/* System header to define __stub macros and hopefully few prototypes, 2709 which can conflict with char $2 (); below. 2710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2711 <limits.h> exists even on freestanding compilers. */ 2712 2713#ifdef __STDC__ 2714# include <limits.h> 2715#else 2716# include <assert.h> 2717#endif 2718 2719#undef $2 2720 2721/* Override any GCC internal prototype to avoid an error. 2722 Use char because int might match the return type of a GCC 2723 builtin and then its argument prototype would still apply. */ 2724#ifdef __cplusplus 2725extern "C" 2726#endif 2727char $2 (); 2728/* The GNU C library defines this for functions which it implements 2729 to always fail with ENOSYS. Some functions are actually named 2730 something starting with __ and the normal name is an alias. */ 2731#if defined __stub_$2 || defined __stub___$2 2732choke me 2733#endif 2734 2735int 2736main () 2737{ 2738return $2 (); 2739 ; 2740 return 0; 2741} 2742_ACEOF 2743if ac_fn_c_try_link "$LINENO"; then : 2744 eval "$3=yes" 2745else 2746 eval "$3=no" 2747fi 2748rm -f core conftest.err conftest.$ac_objext \ 2749 conftest$ac_exeext conftest.$ac_ext 2750fi 2751eval ac_res=\$$3 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2753$as_echo "$ac_res" >&6; } 2754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2755 2756} # ac_fn_c_check_func 2757 2758# ac_fn_cxx_try_cpp LINENO 2759# ------------------------ 2760# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2761ac_fn_cxx_try_cpp () 2762{ 2763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2764 if { { ac_try="$ac_cpp conftest.$ac_ext" 2765case "(($ac_try" in 2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2767 *) ac_try_echo=$ac_try;; 2768esac 2769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2770$as_echo "$ac_try_echo"; } >&5 2771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2772 ac_status=$? 2773 if test -s conftest.err; then 2774 grep -v '^ *+' conftest.err >conftest.er1 2775 cat conftest.er1 >&5 2776 mv -f conftest.er1 conftest.err 2777 fi 2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2779 test $ac_status = 0; } > conftest.i && { 2780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2781 test ! -s conftest.err 2782 }; then : 2783 ac_retval=0 2784else 2785 $as_echo "$as_me: failed program was:" >&5 2786sed 's/^/| /' conftest.$ac_ext >&5 2787 2788 ac_retval=1 2789fi 2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2791 as_fn_set_status $ac_retval 2792 2793} # ac_fn_cxx_try_cpp 2794 2795# ac_fn_cxx_try_link LINENO 2796# ------------------------- 2797# Try to link conftest.$ac_ext, and return whether this succeeded. 2798ac_fn_cxx_try_link () 2799{ 2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2801 rm -f conftest.$ac_objext conftest$ac_exeext 2802 if { { ac_try="$ac_link" 2803case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806esac 2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2808$as_echo "$ac_try_echo"; } >&5 2809 (eval "$ac_link") 2>conftest.err 2810 ac_status=$? 2811 if test -s conftest.err; then 2812 grep -v '^ *+' conftest.err >conftest.er1 2813 cat conftest.er1 >&5 2814 mv -f conftest.er1 conftest.err 2815 fi 2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2817 test $ac_status = 0; } && { 2818 test -z "$ac_cxx_werror_flag" || 2819 test ! -s conftest.err 2820 } && test -s conftest$ac_exeext && { 2821 test "$cross_compiling" = yes || 2822 test -x conftest$ac_exeext 2823 }; then : 2824 ac_retval=0 2825else 2826 $as_echo "$as_me: failed program was:" >&5 2827sed 's/^/| /' conftest.$ac_ext >&5 2828 2829 ac_retval=1 2830fi 2831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2833 # interfere with the next link command; also delete a directory that is 2834 # left behind by Apple's compiler. We do this before executing the actions. 2835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2837 as_fn_set_status $ac_retval 2838 2839} # ac_fn_cxx_try_link 2840 2841# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2842# ------------------------------------------- 2843# Tests whether TYPE exists after having included INCLUDES, setting cache 2844# variable VAR accordingly. 2845ac_fn_c_check_type () 2846{ 2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2849$as_echo_n "checking for $2... " >&6; } 2850if eval \${$3+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 eval "$3=no" 2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2855/* end confdefs.h. */ 2856$4 2857int 2858main () 2859{ 2860if (sizeof ($2)) 2861 return 0; 2862 ; 2863 return 0; 2864} 2865_ACEOF 2866if ac_fn_c_try_compile "$LINENO"; then : 2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2868/* end confdefs.h. */ 2869$4 2870int 2871main () 2872{ 2873if (sizeof (($2))) 2874 return 0; 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879if ac_fn_c_try_compile "$LINENO"; then : 2880 2881else 2882 eval "$3=yes" 2883fi 2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2885fi 2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2887fi 2888eval ac_res=\$$3 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2890$as_echo "$ac_res" >&6; } 2891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2892 2893} # ac_fn_c_check_type 2894 2895# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2896# ---------------------------------------------------- 2897# Tries to find if the field MEMBER exists in type AGGR, after including 2898# INCLUDES, setting cache variable VAR accordingly. 2899ac_fn_c_check_member () 2900{ 2901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2903$as_echo_n "checking for $2.$3... " >&6; } 2904if eval \${$4+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909$5 2910int 2911main () 2912{ 2913static $2 ac_aggr; 2914if (ac_aggr.$3) 2915return 0; 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920if ac_fn_c_try_compile "$LINENO"; then : 2921 eval "$4=yes" 2922else 2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2924/* end confdefs.h. */ 2925$5 2926int 2927main () 2928{ 2929static $2 ac_aggr; 2930if (sizeof ac_aggr.$3) 2931return 0; 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936if ac_fn_c_try_compile "$LINENO"; then : 2937 eval "$4=yes" 2938else 2939 eval "$4=no" 2940fi 2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2942fi 2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2944fi 2945eval ac_res=\$$4 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2947$as_echo "$ac_res" >&6; } 2948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2949 2950} # ac_fn_c_check_member 2951 2952# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2953# --------------------------------------------- 2954# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2955# accordingly. 2956ac_fn_c_check_decl () 2957{ 2958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2959 as_decl_name=`echo $2|sed 's/ *(.*//'` 2960 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2962$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2963if eval \${$3+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2967/* end confdefs.h. */ 2968$4 2969int 2970main () 2971{ 2972#ifndef $as_decl_name 2973#ifdef __cplusplus 2974 (void) $as_decl_use; 2975#else 2976 (void) $as_decl_name; 2977#endif 2978#endif 2979 2980 ; 2981 return 0; 2982} 2983_ACEOF 2984if ac_fn_c_try_compile "$LINENO"; then : 2985 eval "$3=yes" 2986else 2987 eval "$3=no" 2988fi 2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2990fi 2991eval ac_res=\$$3 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2993$as_echo "$ac_res" >&6; } 2994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2995 2996} # ac_fn_c_check_decl 2997 2998# ac_fn_c_find_intX_t LINENO BITS VAR 2999# ----------------------------------- 3000# Finds a signed integer type with width BITS, setting cache variable VAR 3001# accordingly. 3002ac_fn_c_find_intX_t () 3003{ 3004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 3006$as_echo_n "checking for int$2_t... " >&6; } 3007if eval \${$3+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 eval "$3=no" 3011 # Order is important - never check a type that is potentially smaller 3012 # than half of the expected target width. 3013 for ac_type in int$2_t 'int' 'long int' \ 3014 'long long int' 'short int' 'signed char'; do 3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3016/* end confdefs.h. */ 3017$ac_includes_default 3018 enum { N = $2 / 2 - 1 }; 3019int 3020main () 3021{ 3022static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 3023test_array [0] = 0; 3024return test_array [0]; 3025 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030if ac_fn_c_try_compile "$LINENO"; then : 3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3032/* end confdefs.h. */ 3033$ac_includes_default 3034 enum { N = $2 / 2 - 1 }; 3035int 3036main () 3037{ 3038static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 3039 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 3040test_array [0] = 0; 3041return test_array [0]; 3042 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047if ac_fn_c_try_compile "$LINENO"; then : 3048 3049else 3050 case $ac_type in #( 3051 int$2_t) : 3052 eval "$3=yes" ;; #( 3053 *) : 3054 eval "$3=\$ac_type" ;; 3055esac 3056fi 3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3058fi 3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3060 if eval test \"x\$"$3"\" = x"no"; then : 3061 3062else 3063 break 3064fi 3065 done 3066fi 3067eval ac_res=\$$3 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3069$as_echo "$ac_res" >&6; } 3070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3071 3072} # ac_fn_c_find_intX_t 3073 3074# ac_fn_c_find_uintX_t LINENO BITS VAR 3075# ------------------------------------ 3076# Finds an unsigned integer type with width BITS, setting cache variable VAR 3077# accordingly. 3078ac_fn_c_find_uintX_t () 3079{ 3080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 3082$as_echo_n "checking for uint$2_t... " >&6; } 3083if eval \${$3+:} false; then : 3084 $as_echo_n "(cached) " >&6 3085else 3086 eval "$3=no" 3087 # Order is important - never check a type that is potentially smaller 3088 # than half of the expected target width. 3089 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 3090 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3092/* end confdefs.h. */ 3093$ac_includes_default 3094int 3095main () 3096{ 3097static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 3098test_array [0] = 0; 3099return test_array [0]; 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105if ac_fn_c_try_compile "$LINENO"; then : 3106 case $ac_type in #( 3107 uint$2_t) : 3108 eval "$3=yes" ;; #( 3109 *) : 3110 eval "$3=\$ac_type" ;; 3111esac 3112fi 3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3114 if eval test \"x\$"$3"\" = x"no"; then : 3115 3116else 3117 break 3118fi 3119 done 3120fi 3121eval ac_res=\$$3 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3123$as_echo "$ac_res" >&6; } 3124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3125 3126} # ac_fn_c_find_uintX_t 3127 3128# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3129# --------------------------------------------------------- 3130# Tests whether HEADER exists, giving a warning if it cannot be compiled using 3131# the include files in INCLUDES and setting the cache variable VAR 3132# accordingly. 3133ac_fn_cxx_check_header_mongrel () 3134{ 3135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3136 if eval \${$3+:} false; then : 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3138$as_echo_n "checking for $2... " >&6; } 3139if eval \${$3+:} false; then : 3140 $as_echo_n "(cached) " >&6 3141fi 3142eval ac_res=\$$3 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3144$as_echo "$ac_res" >&6; } 3145else 3146 # Is the header compilable? 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3148$as_echo_n "checking $2 usability... " >&6; } 3149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3150/* end confdefs.h. */ 3151$4 3152#include <$2> 3153_ACEOF 3154if ac_fn_cxx_try_compile "$LINENO"; then : 3155 ac_header_compiler=yes 3156else 3157 ac_header_compiler=no 3158fi 3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3161$as_echo "$ac_header_compiler" >&6; } 3162 3163# Is the header present? 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3165$as_echo_n "checking $2 presence... " >&6; } 3166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3167/* end confdefs.h. */ 3168#include <$2> 3169_ACEOF 3170if ac_fn_cxx_try_cpp "$LINENO"; then : 3171 ac_header_preproc=yes 3172else 3173 ac_header_preproc=no 3174fi 3175rm -f conftest.err conftest.i conftest.$ac_ext 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3177$as_echo "$ac_header_preproc" >&6; } 3178 3179# So? What about this header? 3180case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3181 yes:no: ) 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3183$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3185$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3186 ;; 3187 no:yes:* ) 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3189$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3191$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3193$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3195$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3197$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3198( $as_echo "## ---------------------------------------------------------------- ## 3199## Report this to https://github.com/ImageMagick/ImageMagick/issues ## 3200## ---------------------------------------------------------------- ##" 3201 ) | sed "s/^/$as_me: WARNING: /" >&2 3202 ;; 3203esac 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3205$as_echo_n "checking for $2... " >&6; } 3206if eval \${$3+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 eval "$3=\$ac_header_compiler" 3210fi 3211eval ac_res=\$$3 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3213$as_echo "$ac_res" >&6; } 3214fi 3215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3216 3217} # ac_fn_cxx_check_header_mongrel 3218cat >config.log <<_ACEOF 3219This file contains any messages produced by compilers while 3220running configure, to aid debugging if configure makes a mistake. 3221 3222It was created by ImageMagick $as_me 7.0.1-9, which was 3223generated by GNU Autoconf 2.69. Invocation command line was 3224 3225 $ $0 $@ 3226 3227_ACEOF 3228exec 5>>config.log 3229{ 3230cat <<_ASUNAME 3231## --------- ## 3232## Platform. ## 3233## --------- ## 3234 3235hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3236uname -m = `(uname -m) 2>/dev/null || echo unknown` 3237uname -r = `(uname -r) 2>/dev/null || echo unknown` 3238uname -s = `(uname -s) 2>/dev/null || echo unknown` 3239uname -v = `(uname -v) 2>/dev/null || echo unknown` 3240 3241/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3242/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3243 3244/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3245/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3246/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3247/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3248/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3249/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3250/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3251 3252_ASUNAME 3253 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 $as_echo "PATH: $as_dir" 3260 done 3261IFS=$as_save_IFS 3262 3263} >&5 3264 3265cat >&5 <<_ACEOF 3266 3267 3268## ----------- ## 3269## Core tests. ## 3270## ----------- ## 3271 3272_ACEOF 3273 3274 3275# Keep a trace of the command line. 3276# Strip out --no-create and --no-recursion so they do not pile up. 3277# Strip out --silent because we don't want to record it for future runs. 3278# Also quote any args containing shell meta-characters. 3279# Make two passes to allow for proper duplicate-argument suppression. 3280ac_configure_args= 3281ac_configure_args0= 3282ac_configure_args1= 3283ac_must_keep_next=false 3284for ac_pass in 1 2 3285do 3286 for ac_arg 3287 do 3288 case $ac_arg in 3289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3291 | -silent | --silent | --silen | --sile | --sil) 3292 continue ;; 3293 *\'*) 3294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3295 esac 3296 case $ac_pass in 3297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3298 2) 3299 as_fn_append ac_configure_args1 " '$ac_arg'" 3300 if test $ac_must_keep_next = true; then 3301 ac_must_keep_next=false # Got value, back to normal. 3302 else 3303 case $ac_arg in 3304 *=* | --config-cache | -C | -disable-* | --disable-* \ 3305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3307 | -with-* | --with-* | -without-* | --without-* | --x) 3308 case "$ac_configure_args0 " in 3309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3310 esac 3311 ;; 3312 -* ) ac_must_keep_next=true ;; 3313 esac 3314 fi 3315 as_fn_append ac_configure_args " '$ac_arg'" 3316 ;; 3317 esac 3318 done 3319done 3320{ ac_configure_args0=; unset ac_configure_args0;} 3321{ ac_configure_args1=; unset ac_configure_args1;} 3322 3323# When interrupted or exit'd, cleanup temporary files, and complete 3324# config.log. We remove comments because anyway the quotes in there 3325# would cause problems or look ugly. 3326# WARNING: Use '\'' to represent an apostrophe within the trap. 3327# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3328trap 'exit_status=$? 3329 # Save into config.log some information that might help in debugging. 3330 { 3331 echo 3332 3333 $as_echo "## ---------------- ## 3334## Cache variables. ## 3335## ---------------- ##" 3336 echo 3337 # The following way of writing the cache mishandles newlines in values, 3338( 3339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3340 eval ac_val=\$$ac_var 3341 case $ac_val in #( 3342 *${as_nl}*) 3343 case $ac_var in #( 3344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3346 esac 3347 case $ac_var in #( 3348 _ | IFS | as_nl) ;; #( 3349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3350 *) { eval $ac_var=; unset $ac_var;} ;; 3351 esac ;; 3352 esac 3353 done 3354 (set) 2>&1 | 3355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3356 *${as_nl}ac_space=\ *) 3357 sed -n \ 3358 "s/'\''/'\''\\\\'\'''\''/g; 3359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3360 ;; #( 3361 *) 3362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3363 ;; 3364 esac | 3365 sort 3366) 3367 echo 3368 3369 $as_echo "## ----------------- ## 3370## Output variables. ## 3371## ----------------- ##" 3372 echo 3373 for ac_var in $ac_subst_vars 3374 do 3375 eval ac_val=\$$ac_var 3376 case $ac_val in 3377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3378 esac 3379 $as_echo "$ac_var='\''$ac_val'\''" 3380 done | sort 3381 echo 3382 3383 if test -n "$ac_subst_files"; then 3384 $as_echo "## ------------------- ## 3385## File substitutions. ## 3386## ------------------- ##" 3387 echo 3388 for ac_var in $ac_subst_files 3389 do 3390 eval ac_val=\$$ac_var 3391 case $ac_val in 3392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3393 esac 3394 $as_echo "$ac_var='\''$ac_val'\''" 3395 done | sort 3396 echo 3397 fi 3398 3399 if test -s confdefs.h; then 3400 $as_echo "## ----------- ## 3401## confdefs.h. ## 3402## ----------- ##" 3403 echo 3404 cat confdefs.h 3405 echo 3406 fi 3407 test "$ac_signal" != 0 && 3408 $as_echo "$as_me: caught signal $ac_signal" 3409 $as_echo "$as_me: exit $exit_status" 3410 } >&5 3411 rm -f core *.core core.conftest.* && 3412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3413 exit $exit_status 3414' 0 3415for ac_signal in 1 2 13 15; do 3416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3417done 3418ac_signal=0 3419 3420# confdefs.h avoids OS command line length limits that DEFS can exceed. 3421rm -f -r conftest* confdefs.h 3422 3423$as_echo "/* confdefs.h */" > confdefs.h 3424 3425# Predefined preprocessor variables. 3426 3427cat >>confdefs.h <<_ACEOF 3428#define PACKAGE_NAME "$PACKAGE_NAME" 3429_ACEOF 3430 3431cat >>confdefs.h <<_ACEOF 3432#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3433_ACEOF 3434 3435cat >>confdefs.h <<_ACEOF 3436#define PACKAGE_VERSION "$PACKAGE_VERSION" 3437_ACEOF 3438 3439cat >>confdefs.h <<_ACEOF 3440#define PACKAGE_STRING "$PACKAGE_STRING" 3441_ACEOF 3442 3443cat >>confdefs.h <<_ACEOF 3444#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3445_ACEOF 3446 3447cat >>confdefs.h <<_ACEOF 3448#define PACKAGE_URL "$PACKAGE_URL" 3449_ACEOF 3450 3451 3452# Let the site file select an alternate cache file if it wants to. 3453# Prefer an explicitly selected file to automatically selected ones. 3454ac_site_file1=NONE 3455ac_site_file2=NONE 3456if test -n "$CONFIG_SITE"; then 3457 # We do not want a PATH search for config.site. 3458 case $CONFIG_SITE in #(( 3459 -*) ac_site_file1=./$CONFIG_SITE;; 3460 */*) ac_site_file1=$CONFIG_SITE;; 3461 *) ac_site_file1=./$CONFIG_SITE;; 3462 esac 3463elif test "x$prefix" != xNONE; then 3464 ac_site_file1=$prefix/share/config.site 3465 ac_site_file2=$prefix/etc/config.site 3466else 3467 ac_site_file1=$ac_default_prefix/share/config.site 3468 ac_site_file2=$ac_default_prefix/etc/config.site 3469fi 3470for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3471do 3472 test "x$ac_site_file" = xNONE && continue 3473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3475$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3476 sed 's/^/| /' "$ac_site_file" >&5 3477 . "$ac_site_file" \ 3478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3480as_fn_error $? "failed to load site script $ac_site_file 3481See \`config.log' for more details" "$LINENO" 5; } 3482 fi 3483done 3484 3485if test -r "$cache_file"; then 3486 # Some versions of bash will fail to source /dev/null (special files 3487 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3490$as_echo "$as_me: loading cache $cache_file" >&6;} 3491 case $cache_file in 3492 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3493 *) . "./$cache_file";; 3494 esac 3495 fi 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3498$as_echo "$as_me: creating cache $cache_file" >&6;} 3499 >$cache_file 3500fi 3501 3502as_fn_append ac_header_list " stdlib.h" 3503as_fn_append ac_header_list " unistd.h" 3504as_fn_append ac_header_list " sys/param.h" 3505# Check that the precious variables saved in the cache have kept the same 3506# value. 3507ac_cache_corrupted=false 3508for ac_var in $ac_precious_vars; do 3509 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3510 eval ac_new_set=\$ac_env_${ac_var}_set 3511 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3512 eval ac_new_val=\$ac_env_${ac_var}_value 3513 case $ac_old_set,$ac_new_set in 3514 set,) 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3516$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3517 ac_cache_corrupted=: ;; 3518 ,set) 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3520$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3521 ac_cache_corrupted=: ;; 3522 ,);; 3523 *) 3524 if test "x$ac_old_val" != "x$ac_new_val"; then 3525 # differences in whitespace do not lead to failure. 3526 ac_old_val_w=`echo x $ac_old_val` 3527 ac_new_val_w=`echo x $ac_new_val` 3528 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3530$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3531 ac_cache_corrupted=: 3532 else 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3534$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3535 eval $ac_var=\$ac_old_val 3536 fi 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3538$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3540$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3541 fi;; 3542 esac 3543 # Pass precious variables to config.status. 3544 if test "$ac_new_set" = set; then 3545 case $ac_new_val in 3546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3547 *) ac_arg=$ac_var=$ac_new_val ;; 3548 esac 3549 case " $ac_configure_args " in 3550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3551 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3552 esac 3553 fi 3554done 3555if $ac_cache_corrupted; then 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3559$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3561fi 3562## -------------------- ## 3563## Main body of script. ## 3564## -------------------- ## 3565 3566ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571 3572 3573 3574ac_aux_dir= 3575for ac_dir in config "$srcdir"/config; do 3576 if test -f "$ac_dir/install-sh"; then 3577 ac_aux_dir=$ac_dir 3578 ac_install_sh="$ac_aux_dir/install-sh -c" 3579 break 3580 elif test -f "$ac_dir/install.sh"; then 3581 ac_aux_dir=$ac_dir 3582 ac_install_sh="$ac_aux_dir/install.sh -c" 3583 break 3584 elif test -f "$ac_dir/shtool"; then 3585 ac_aux_dir=$ac_dir 3586 ac_install_sh="$ac_aux_dir/shtool install -c" 3587 break 3588 fi 3589done 3590if test -z "$ac_aux_dir"; then 3591 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3592fi 3593 3594# These three variables are undocumented and unsupported, 3595# and are intended to be withdrawn in a future Autoconf release. 3596# They can cause serious problems if a builder's source tree is in a directory 3597# whose full name contains unusual characters. 3598ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3599ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3600ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3601 3602 3603 3604 3605ac_config_headers="$ac_config_headers config/config.h" 3606 3607 3608ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" 3609 3610# Make sure we can run config.sub. 3611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3613 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3615$as_echo_n "checking build system type... " >&6; } 3616if ${ac_cv_build+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_build_alias=$build_alias 3620test "x$ac_build_alias" = x && 3621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3622test "x$ac_build_alias" = x && 3623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3626 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3629$as_echo "$ac_cv_build" >&6; } 3630case $ac_cv_build in 3631*-*-*) ;; 3632*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3633esac 3634build=$ac_cv_build 3635ac_save_IFS=$IFS; IFS='-' 3636set x $ac_cv_build 3637shift 3638build_cpu=$1 3639build_vendor=$2 3640shift; shift 3641# Remember, the first character of IFS is used to create $*, 3642# except with old shells: 3643build_os=$* 3644IFS=$ac_save_IFS 3645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3646 3647 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3649$as_echo_n "checking host system type... " >&6; } 3650if ${ac_cv_host+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 if test "x$host_alias" = x; then 3654 ac_cv_host=$ac_cv_build 3655else 3656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3658fi 3659 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3662$as_echo "$ac_cv_host" >&6; } 3663case $ac_cv_host in 3664*-*-*) ;; 3665*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3666esac 3667host=$ac_cv_host 3668ac_save_IFS=$IFS; IFS='-' 3669set x $ac_cv_host 3670shift 3671host_cpu=$1 3672host_vendor=$2 3673shift; shift 3674# Remember, the first character of IFS is used to create $*, 3675# except with old shells: 3676host_os=$* 3677IFS=$ac_save_IFS 3678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3679 3680 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3682$as_echo_n "checking target system type... " >&6; } 3683if ${ac_cv_target+:} false; then : 3684 $as_echo_n "(cached) " >&6 3685else 3686 if test "x$target_alias" = x; then 3687 ac_cv_target=$ac_cv_host 3688else 3689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3691fi 3692 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3695$as_echo "$ac_cv_target" >&6; } 3696case $ac_cv_target in 3697*-*-*) ;; 3698*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3699esac 3700target=$ac_cv_target 3701ac_save_IFS=$IFS; IFS='-' 3702set x $ac_cv_target 3703shift 3704target_cpu=$1 3705target_vendor=$2 3706shift; shift 3707# Remember, the first character of IFS is used to create $*, 3708# except with old shells: 3709target_os=$* 3710IFS=$ac_save_IFS 3711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3712 3713 3714# The aliases save the names the user supplied, while $host etc. 3715# will get canonicalized. 3716test -n "$target_alias" && 3717 test "$program_prefix$program_suffix$program_transform_name" = \ 3718 NONENONEs,x,x, && 3719 program_prefix=${target_alias}- 3720 3721 3722am__api_version='1.15' 3723 3724# Find a good install program. We prefer a C program (faster), 3725# so one script is as good as another. But avoid the broken or 3726# incompatible versions: 3727# SysV /etc/install, /usr/sbin/install 3728# SunOS /usr/etc/install 3729# IRIX /sbin/install 3730# AIX /bin/install 3731# AmigaOS /C/install, which installs bootblocks on floppy discs 3732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3733# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3735# OS/2's system install, which has a completely different semantic 3736# ./install, which can be erroneously created by make from ./install.sh. 3737# Reject install programs that cannot install multiple files. 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3739$as_echo_n "checking for a BSD-compatible install... " >&6; } 3740if test -z "$INSTALL"; then 3741if ${ac_cv_path_install+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745for as_dir in $PATH 3746do 3747 IFS=$as_save_IFS 3748 test -z "$as_dir" && as_dir=. 3749 # Account for people who put trailing slashes in PATH elements. 3750case $as_dir/ in #(( 3751 ./ | .// | /[cC]/* | \ 3752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3753 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3754 /usr/ucb/* ) ;; 3755 *) 3756 # OSF1 and SCO ODT 3.0 have their own names for install. 3757 # Don't use installbsd from OSF since it installs stuff as root 3758 # by default. 3759 for ac_prog in ginstall scoinst install; do 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3762 if test $ac_prog = install && 3763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3764 # AIX install. It has an incompatible calling convention. 3765 : 3766 elif test $ac_prog = install && 3767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3768 # program-specific install script used by HP pwplus--don't use. 3769 : 3770 else 3771 rm -rf conftest.one conftest.two conftest.dir 3772 echo one > conftest.one 3773 echo two > conftest.two 3774 mkdir conftest.dir 3775 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3776 test -s conftest.one && test -s conftest.two && 3777 test -s conftest.dir/conftest.one && 3778 test -s conftest.dir/conftest.two 3779 then 3780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3781 break 3 3782 fi 3783 fi 3784 fi 3785 done 3786 done 3787 ;; 3788esac 3789 3790 done 3791IFS=$as_save_IFS 3792 3793rm -rf conftest.one conftest.two conftest.dir 3794 3795fi 3796 if test "${ac_cv_path_install+set}" = set; then 3797 INSTALL=$ac_cv_path_install 3798 else 3799 # As a last resort, use the slow shell script. Don't cache a 3800 # value for INSTALL within a source directory, because that will 3801 # break other packages using the cache if that directory is 3802 # removed, or if the value is a relative name. 3803 INSTALL=$ac_install_sh 3804 fi 3805fi 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3807$as_echo "$INSTALL" >&6; } 3808 3809# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3810# It thinks the first close brace ends the variable substitution. 3811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3812 3813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3814 3815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3816 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3818$as_echo_n "checking whether build environment is sane... " >&6; } 3819# Reject unsafe characters in $srcdir or the absolute working directory 3820# name. Accept space and tab only in the latter. 3821am_lf=' 3822' 3823case `pwd` in 3824 *[\\\"\#\$\&\'\`$am_lf]*) 3825 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3826esac 3827case $srcdir in 3828 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3829 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3830esac 3831 3832# Do 'set' in a subshell so we don't clobber the current shell's 3833# arguments. Must try -L first in case configure is actually a 3834# symlink; some systems play weird games with the mod time of symlinks 3835# (eg FreeBSD returns the mod time of the symlink's containing 3836# directory). 3837if ( 3838 am_has_slept=no 3839 for am_try in 1 2; do 3840 echo "timestamp, slept: $am_has_slept" > conftest.file 3841 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3842 if test "$*" = "X"; then 3843 # -L didn't work. 3844 set X `ls -t "$srcdir/configure" conftest.file` 3845 fi 3846 if test "$*" != "X $srcdir/configure conftest.file" \ 3847 && test "$*" != "X conftest.file $srcdir/configure"; then 3848 3849 # If neither matched, then we have a broken ls. This can happen 3850 # if, for instance, CONFIG_SHELL is bash and it inherits a 3851 # broken ls alias from the environment. This has actually 3852 # happened. Such a system could not be considered "sane". 3853 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3854 alias in your environment" "$LINENO" 5 3855 fi 3856 if test "$2" = conftest.file || test $am_try -eq 2; then 3857 break 3858 fi 3859 # Just in case. 3860 sleep 1 3861 am_has_slept=yes 3862 done 3863 test "$2" = conftest.file 3864 ) 3865then 3866 # Ok. 3867 : 3868else 3869 as_fn_error $? "newly created file is older than distributed files! 3870Check your system clock" "$LINENO" 5 3871fi 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3873$as_echo "yes" >&6; } 3874# If we didn't sleep, we still need to ensure time stamps of config.status and 3875# generated files are strictly newer. 3876am_sleep_pid= 3877if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3878 ( sleep 1 ) & 3879 am_sleep_pid=$! 3880fi 3881 3882rm -f conftest.file 3883 3884test "$program_prefix" != NONE && 3885 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3886# Use a double $ so make ignores it. 3887test "$program_suffix" != NONE && 3888 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3889# Double any \ or $. 3890# By default was `s,x,x', remove it if useless. 3891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3893 3894# Expand $ac_aux_dir to an absolute path. 3895am_aux_dir=`cd "$ac_aux_dir" && pwd` 3896 3897if test x"${MISSING+set}" != xset; then 3898 case $am_aux_dir in 3899 *\ * | *\ *) 3900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3901 *) 3902 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3903 esac 3904fi 3905# Use eval to expand $SHELL 3906if eval "$MISSING --is-lightweight"; then 3907 am_missing_run="$MISSING " 3908else 3909 am_missing_run= 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3911$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3912fi 3913 3914if test x"${install_sh+set}" != xset; then 3915 case $am_aux_dir in 3916 *\ * | *\ *) 3917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3918 *) 3919 install_sh="\${SHELL} $am_aux_dir/install-sh" 3920 esac 3921fi 3922 3923# Installed binaries are usually stripped using 'strip' when the user 3924# run "make install-strip". However 'strip' might not be the right 3925# tool to use in cross-compilation environments, therefore Automake 3926# will honor the 'STRIP' environment variable to overrule this program. 3927if test "$cross_compiling" != no; then 3928 if test -n "$ac_tool_prefix"; then 3929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3930set dummy ${ac_tool_prefix}strip; ac_word=$2 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3932$as_echo_n "checking for $ac_word... " >&6; } 3933if ${ac_cv_prog_STRIP+:} false; then : 3934 $as_echo_n "(cached) " >&6 3935else 3936 if test -n "$STRIP"; then 3937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3938else 3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3940for as_dir in $PATH 3941do 3942 IFS=$as_save_IFS 3943 test -z "$as_dir" && as_dir=. 3944 for ac_exec_ext in '' $ac_executable_extensions; do 3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3946 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3948 break 2 3949 fi 3950done 3951 done 3952IFS=$as_save_IFS 3953 3954fi 3955fi 3956STRIP=$ac_cv_prog_STRIP 3957if test -n "$STRIP"; then 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3959$as_echo "$STRIP" >&6; } 3960else 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3962$as_echo "no" >&6; } 3963fi 3964 3965 3966fi 3967if test -z "$ac_cv_prog_STRIP"; then 3968 ac_ct_STRIP=$STRIP 3969 # Extract the first word of "strip", so it can be a program name with args. 3970set dummy strip; ac_word=$2 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972$as_echo_n "checking for $ac_word... " >&6; } 3973if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 if test -n "$ac_ct_STRIP"; then 3977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3978else 3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3980for as_dir in $PATH 3981do 3982 IFS=$as_save_IFS 3983 test -z "$as_dir" && as_dir=. 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3986 ac_cv_prog_ac_ct_STRIP="strip" 3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3988 break 2 3989 fi 3990done 3991 done 3992IFS=$as_save_IFS 3993 3994fi 3995fi 3996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3997if test -n "$ac_ct_STRIP"; then 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3999$as_echo "$ac_ct_STRIP" >&6; } 4000else 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002$as_echo "no" >&6; } 4003fi 4004 4005 if test "x$ac_ct_STRIP" = x; then 4006 STRIP=":" 4007 else 4008 case $cross_compiling:$ac_tool_warned in 4009yes:) 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4012ac_tool_warned=yes ;; 4013esac 4014 STRIP=$ac_ct_STRIP 4015 fi 4016else 4017 STRIP="$ac_cv_prog_STRIP" 4018fi 4019 4020fi 4021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4022 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4025if test -z "$MKDIR_P"; then 4026 if ${ac_cv_path_mkdir+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_prog in mkdir gmkdir; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4038 'mkdir (GNU coreutils) '* | \ 4039 'mkdir (coreutils) '* | \ 4040 'mkdir (fileutils) '4.1*) 4041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4042 break 3;; 4043 esac 4044 done 4045 done 4046 done 4047IFS=$as_save_IFS 4048 4049fi 4050 4051 test -d ./--version && rmdir ./--version 4052 if test "${ac_cv_path_mkdir+set}" = set; then 4053 MKDIR_P="$ac_cv_path_mkdir -p" 4054 else 4055 # As a last resort, use the slow shell script. Don't cache a 4056 # value for MKDIR_P within a source directory, because that will 4057 # break other packages using the cache if that directory is 4058 # removed, or if the value is a relative name. 4059 MKDIR_P="$ac_install_sh -d" 4060 fi 4061fi 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4063$as_echo "$MKDIR_P" >&6; } 4064 4065for ac_prog in gawk mawk nawk awk 4066do 4067 # Extract the first word of "$ac_prog", so it can be a program name with args. 4068set dummy $ac_prog; ac_word=$2 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070$as_echo_n "checking for $ac_word... " >&6; } 4071if ${ac_cv_prog_AWK+:} false; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 if test -n "$AWK"; then 4075 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4076else 4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4078for as_dir in $PATH 4079do 4080 IFS=$as_save_IFS 4081 test -z "$as_dir" && as_dir=. 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4084 ac_cv_prog_AWK="$ac_prog" 4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4086 break 2 4087 fi 4088done 4089 done 4090IFS=$as_save_IFS 4091 4092fi 4093fi 4094AWK=$ac_cv_prog_AWK 4095if test -n "$AWK"; then 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4097$as_echo "$AWK" >&6; } 4098else 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4100$as_echo "no" >&6; } 4101fi 4102 4103 4104 test -n "$AWK" && break 4105done 4106 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4108$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4109set x ${MAKE-make} 4110ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4111if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 cat >conftest.make <<\_ACEOF 4115SHELL = /bin/sh 4116all: 4117 @echo '@@@%%%=$(MAKE)=@@@%%%' 4118_ACEOF 4119# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4120case `${MAKE-make} -f conftest.make 2>/dev/null` in 4121 *@@@%%%=?*=@@@%%%*) 4122 eval ac_cv_prog_make_${ac_make}_set=yes;; 4123 *) 4124 eval ac_cv_prog_make_${ac_make}_set=no;; 4125esac 4126rm -f conftest.make 4127fi 4128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4130$as_echo "yes" >&6; } 4131 SET_MAKE= 4132else 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134$as_echo "no" >&6; } 4135 SET_MAKE="MAKE=${MAKE-make}" 4136fi 4137 4138rm -rf .tst 2>/dev/null 4139mkdir .tst 2>/dev/null 4140if test -d .tst; then 4141 am__leading_dot=. 4142else 4143 am__leading_dot=_ 4144fi 4145rmdir .tst 2>/dev/null 4146 4147# Check whether --enable-silent-rules was given. 4148if test "${enable_silent_rules+set}" = set; then : 4149 enableval=$enable_silent_rules; 4150fi 4151 4152case $enable_silent_rules in # ((( 4153 yes) AM_DEFAULT_VERBOSITY=0;; 4154 no) AM_DEFAULT_VERBOSITY=1;; 4155 *) AM_DEFAULT_VERBOSITY=1;; 4156esac 4157am_make=${MAKE-make} 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4159$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4160if ${am_cv_make_support_nested_variables+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if $as_echo 'TRUE=$(BAR$(V)) 4164BAR0=false 4165BAR1=true 4166V=1 4167am__doit: 4168 @$(TRUE) 4169.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4170 am_cv_make_support_nested_variables=yes 4171else 4172 am_cv_make_support_nested_variables=no 4173fi 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4176$as_echo "$am_cv_make_support_nested_variables" >&6; } 4177if test $am_cv_make_support_nested_variables = yes; then 4178 AM_V='$(V)' 4179 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4180else 4181 AM_V=$AM_DEFAULT_VERBOSITY 4182 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4183fi 4184AM_BACKSLASH='\' 4185 4186if test "`cd $srcdir && pwd`" != "`pwd`"; then 4187 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4188 # is not polluted with repeated "-I." 4189 am__isrc=' -I$(srcdir)' 4190 # test to see if srcdir already configured 4191 if test -f $srcdir/config.status; then 4192 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4193 fi 4194fi 4195 4196# test whether we have cygpath 4197if test -z "$CYGPATH_W"; then 4198 if (cygpath --version) >/dev/null 2>/dev/null; then 4199 CYGPATH_W='cygpath -w' 4200 else 4201 CYGPATH_W=echo 4202 fi 4203fi 4204 4205 4206# Define the identity of the package. 4207 PACKAGE='ImageMagick' 4208 VERSION='7.0.1-9' 4209 4210 4211cat >>confdefs.h <<_ACEOF 4212#define PACKAGE "$PACKAGE" 4213_ACEOF 4214 4215 4216cat >>confdefs.h <<_ACEOF 4217#define VERSION "$VERSION" 4218_ACEOF 4219 4220# Some tools Automake needs. 4221 4222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4223 4224 4225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4226 4227 4228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4229 4230 4231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4232 4233 4234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4235 4236# For better backward compatibility. To be removed once Automake 1.9.x 4237# dies out for good. For more background, see: 4238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4240mkdir_p='$(MKDIR_P)' 4241 4242# We need awk for the "check" target (and possibly the TAP driver). The 4243# system "awk" is bad on some platforms. 4244# Always define AMTAR for backward compatibility. Yes, it's still used 4245# in the wild :-( We should find a proper way to deprecate it ... 4246AMTAR='$${TAR-tar}' 4247 4248 4249# We'll loop over all known methods to create a tar archive until one works. 4250_am_tools='gnutar plaintar pax cpio none' 4251 4252# The POSIX 1988 'ustar' format is defined with fixed-size fields. 4253 # There is notably a 21 bits limit for the UID and the GID. In fact, 4254 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4255 # and bug#13588). 4256 am_max_uid=2097151 # 2^21 - 1 4257 am_max_gid=$am_max_uid 4258 # The $UID and $GID variables are not portable, so we need to resort 4259 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4260 # below are definitely unexpected, so allow the users to see them 4261 # (that is, avoid stderr redirection). 4262 am_uid=`id -u || echo unknown` 4263 am_gid=`id -g || echo unknown` 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4265$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4266 if test $am_uid -le $am_max_uid; then 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4268$as_echo "yes" >&6; } 4269 else 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271$as_echo "no" >&6; } 4272 _am_tools=none 4273 fi 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4275$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4276 if test $am_gid -le $am_max_gid; then 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4278$as_echo "yes" >&6; } 4279 else 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4281$as_echo "no" >&6; } 4282 _am_tools=none 4283 fi 4284 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4286$as_echo_n "checking how to create a ustar tar archive... " >&6; } 4287 4288 # Go ahead even if we have the value already cached. We do so because we 4289 # need to set the values for the 'am__tar' and 'am__untar' variables. 4290 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4291 4292 for _am_tool in $_am_tools; do 4293 case $_am_tool in 4294 gnutar) 4295 for _am_tar in tar gnutar gtar; do 4296 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4297 ($_am_tar --version) >&5 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); } && break 4301 done 4302 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4303 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4304 am__untar="$_am_tar -xf -" 4305 ;; 4306 plaintar) 4307 # Must skip GNU tar: if it does not support --format= it doesn't create 4308 # ustar tarball either. 4309 (tar --version) >/dev/null 2>&1 && continue 4310 am__tar='tar chf - "$$tardir"' 4311 am__tar_='tar chf - "$tardir"' 4312 am__untar='tar xf -' 4313 ;; 4314 pax) 4315 am__tar='pax -L -x ustar -w "$$tardir"' 4316 am__tar_='pax -L -x ustar -w "$tardir"' 4317 am__untar='pax -r' 4318 ;; 4319 cpio) 4320 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4321 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4322 am__untar='cpio -i -H ustar -d' 4323 ;; 4324 none) 4325 am__tar=false 4326 am__tar_=false 4327 am__untar=false 4328 ;; 4329 esac 4330 4331 # If the value was cached, stop now. We just wanted to have am__tar 4332 # and am__untar set. 4333 test -n "${am_cv_prog_tar_ustar}" && break 4334 4335 # tar/untar a dummy directory, and stop if the command works. 4336 rm -rf conftest.dir 4337 mkdir conftest.dir 4338 echo GrepMe > conftest.dir/file 4339 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4340 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4341 ac_status=$? 4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4343 (exit $ac_status); } 4344 rm -rf conftest.dir 4345 if test -s conftest.tar; then 4346 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4347 ($am__untar <conftest.tar) >&5 2>&5 4348 ac_status=$? 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); } 4351 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4352 (cat conftest.dir/file) >&5 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); } 4356 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4357 fi 4358 done 4359 rm -rf conftest.dir 4360 4361 if ${am_cv_prog_tar_ustar+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 am_cv_prog_tar_ustar=$_am_tool 4365fi 4366 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4368$as_echo "$am_cv_prog_tar_ustar" >&6; } 4369 4370 4371 4372 4373 4374 4375# POSIX will say in a future version that running "rm -f" with no argument 4376# is OK; and we want to be able to make that assumption in our Makefile 4377# recipes. So use an aggressive probe to check that the usage we want is 4378# actually supported "in the wild" to an acceptable degree. 4379# See automake bug#10828. 4380# To make any issue more visible, cause the running configure to be aborted 4381# by default if the 'rm' program in use doesn't match our expectations; the 4382# user can still override this though. 4383if rm -f && rm -fr && rm -rf; then : OK; else 4384 cat >&2 <<'END' 4385Oops! 4386 4387Your 'rm' program seems unable to run without file operands specified 4388on the command line, even when the '-f' option is present. This is contrary 4389to the behaviour of most rm programs out there, and not conforming with 4390the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4391 4392Please tell bug-automake@gnu.org about your system, including the value 4393of your $PATH and any error possibly output before this message. This 4394can help us improve future automake versions. 4395 4396END 4397 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4398 echo 'Configuration will proceed anyway, since you have set the' >&2 4399 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4400 echo >&2 4401 else 4402 cat >&2 <<'END' 4403Aborting the configuration process, to ensure you take notice of the issue. 4404 4405You can download and install GNU coreutils to get an 'rm' implementation 4406that behaves properly: <http://www.gnu.org/software/coreutils/>. 4407 4408If you want to complete the configuration process using your problematic 4409'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4410to "yes", and re-run configure. 4411 4412END 4413 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4414 fi 4415fi 4416 4417# Check whether --enable-silent-rules was given. 4418if test "${enable_silent_rules+set}" = set; then : 4419 enableval=$enable_silent_rules; 4420fi 4421 4422case $enable_silent_rules in # ((( 4423 yes) AM_DEFAULT_VERBOSITY=0;; 4424 no) AM_DEFAULT_VERBOSITY=1;; 4425 *) AM_DEFAULT_VERBOSITY=0;; 4426esac 4427am_make=${MAKE-make} 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4429$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4430if ${am_cv_make_support_nested_variables+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 if $as_echo 'TRUE=$(BAR$(V)) 4434BAR0=false 4435BAR1=true 4436V=1 4437am__doit: 4438 @$(TRUE) 4439.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4440 am_cv_make_support_nested_variables=yes 4441else 4442 am_cv_make_support_nested_variables=no 4443fi 4444fi 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4446$as_echo "$am_cv_make_support_nested_variables" >&6; } 4447if test $am_cv_make_support_nested_variables = yes; then 4448 AM_V='$(V)' 4449 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4450else 4451 AM_V=$AM_DEFAULT_VERBOSITY 4452 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4453fi 4454AM_BACKSLASH='\' 4455 4456 4457# 4458# Save initial user-tunable values 4459# 4460USER_LIBS=$LIBS 4461for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do 4462 eval isset=\${$var+set} 4463 if test "$isset" = 'set'; then 4464 eval val=$`echo $var` 4465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 4466 fi 4467done 4468 4469 4470CONFIGURE_ARGS="$0 ${ac_configure_args}" 4471 4472 4473# Check whether --enable-reproducible-build was given. 4474if test "${enable_reproducible_build+set}" = set; then : 4475 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval 4476else 4477 enable_reproducible_build='no' 4478fi 4479 4480 4481# Source file containing package/library versioning information. 4482. ${srcdir}/version.sh 4483 4484echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 4485 4486MAGICK_TARGET_CPU=$host_cpu 4487 4488 4489cat >>confdefs.h <<_ACEOF 4490#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU 4491_ACEOF 4492 4493 4494MAGICK_TARGET_VENDOR=$host_vendor 4495 4496 4497cat >>confdefs.h <<_ACEOF 4498#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR 4499_ACEOF 4500 4501 4502MAGICK_TARGET_OS=$host_os 4503 4504 4505cat >>confdefs.h <<_ACEOF 4506#define MAGICK_TARGET_OS $MAGICK_TARGET_OS 4507_ACEOF 4508 4509 4510 4511# Substitute versioning 4512MAGICK_MAJOR_VERSION=7 4513 4514MAGICK_MINOR_VERSION=0 4515 4516MAGICK_MICRO_VERSION=1 4517 4518MAGICK_PATCHLEVEL_VERSION=9 4519 4520MAGICK_VERSION=7.0.1-9 4521 4522MAGICK_GIT_REVISION=18335:fe4eece:20160601 4523 4524 4525# Substitute library versioning 4526MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` 4527 4528MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE 4529 4530 4531MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE` 4532 4533MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE 4534 4535 4536if test X$enable_reproducible_build = Xyes; then : 4537 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE 4538elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then : 4539 4540fi 4541 4542 4543# Ensure that make can run correctly 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4545$as_echo_n "checking whether build environment is sane... " >&6; } 4546# Reject unsafe characters in $srcdir or the absolute working directory 4547# name. Accept space and tab only in the latter. 4548am_lf=' 4549' 4550case `pwd` in 4551 *[\\\"\#\$\&\'\`$am_lf]*) 4552 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4553esac 4554case $srcdir in 4555 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4556 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4557esac 4558 4559# Do 'set' in a subshell so we don't clobber the current shell's 4560# arguments. Must try -L first in case configure is actually a 4561# symlink; some systems play weird games with the mod time of symlinks 4562# (eg FreeBSD returns the mod time of the symlink's containing 4563# directory). 4564if ( 4565 am_has_slept=no 4566 for am_try in 1 2; do 4567 echo "timestamp, slept: $am_has_slept" > conftest.file 4568 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4569 if test "$*" = "X"; then 4570 # -L didn't work. 4571 set X `ls -t "$srcdir/configure" conftest.file` 4572 fi 4573 if test "$*" != "X $srcdir/configure conftest.file" \ 4574 && test "$*" != "X conftest.file $srcdir/configure"; then 4575 4576 # If neither matched, then we have a broken ls. This can happen 4577 # if, for instance, CONFIG_SHELL is bash and it inherits a 4578 # broken ls alias from the environment. This has actually 4579 # happened. Such a system could not be considered "sane". 4580 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4581 alias in your environment" "$LINENO" 5 4582 fi 4583 if test "$2" = conftest.file || test $am_try -eq 2; then 4584 break 4585 fi 4586 # Just in case. 4587 sleep 1 4588 am_has_slept=yes 4589 done 4590 test "$2" = conftest.file 4591 ) 4592then 4593 # Ok. 4594 : 4595else 4596 as_fn_error $? "newly created file is older than distributed files! 4597Check your system clock" "$LINENO" 5 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4600$as_echo "yes" >&6; } 4601# If we didn't sleep, we still need to ensure time stamps of config.status and 4602# generated files are strictly newer. 4603am_sleep_pid= 4604if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4605 ( sleep 1 ) & 4606 am_sleep_pid=$! 4607fi 4608 4609rm -f conftest.file 4610 4611 4612# versioning of library 4613MAGICK_LIB_VERSION="0x" 4614if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 4615 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4616fi 4617MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 4618if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 4619 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4620fi 4621MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 4622if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 4623 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4624fi 4625MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 4626 4627 4628# Definition used to define MagickLibVersionText in version.h 4629MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4630 4631 4632# Definition used to define MagickLibVersionNumber in version.h 4633MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4634 4635 4636MAGICKPP_LIB_VERSION="0x" 4637if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then 4638 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4639fi 4640MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT} 4641if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then 4642 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4643fi 4644MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE} 4645if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then 4646 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4647fi 4648MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION} 4649 4650 4651# Definition used to define MagickLibVersionText in version.h 4652MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4653 4654 4655# Definition used to define MagickLibVersionNumber in version.h 4656MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4657 4658 4659 4660 4661# Regenerate config.status if ChangeLog or version.sh is updated. 4662CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' 4663 4664 4665PERLMAINCC=$CC 4666 4667MAGICK_CFLAGS='' 4668MAGICK_CPPFLAGS=$CPPFLAGS_USER 4669MAGICK_PCFLAGS=$CPPFLAGS_USER 4670MAGICK_LDFLAGS='' 4671MAGICK_LIBS='' 4672MAGICK_FEATURES='' 4673 4674# 4675# Evaluate shell variable equivalents to Makefile directory variables 4676# 4677if test "x$prefix" = xNONE; then 4678 prefix=$ac_default_prefix 4679fi 4680# Let make expand exec_prefix. 4681if test "x$exec_prefix" = xNONE; then 4682 exec_prefix='${prefix}' 4683fi 4684 4685# 4686eval "eval PREFIX_DIR=${prefix}" 4687 4688eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 4689 4690eval "eval BIN_DIR=$bindir" 4691 4692eval "eval SBIN_DIR=$sbindir" 4693 4694eval "eval LIBEXEC_DIR=$libexecdir" 4695 4696eval "eval DATA_DIR=$datadir" 4697 4698eval "eval DOC_DIR=$datadir/doc" 4699 4700eval "eval SYSCONF_DIR=$sysconfdir" 4701 4702eval "eval SHAREDSTATE_DIR=$sharedstatedir" 4703 4704eval "eval LOCALSTATE_DIR=$localstatedir" 4705 4706eval "eval LIB_DIR=$libdir" 4707 4708eval "eval INCLUDE_DIR=$includedir" 4709 4710eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 4711 4712eval "eval INFO_DIR=$infodir" 4713 4714eval "eval MAN_DIR=$mandir" 4715 4716 4717# Get full paths to source and build directories 4718srcdirfull="`cd $srcdir && pwd`" 4719builddir="`pwd`" 4720 4721# 4722# Compute variables useful for running uninstalled software. 4723# 4724MAGICK_CODER_MODULE_PATH="${builddir}/coders" 4725MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 4726MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 4727MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 4728DIRSEP=':' 4729case "${build_os}" in 4730 mingw* ) 4731 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 4732 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 4733 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 4734 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 4735 DIRSEP=';' 4736 ;; 4737esac 4738case "${host_os}" in 4739 mingw* ) 4740 DIRSEP=';' 4741 ;; 4742esac 4743 4744 4745 4746 4747 4748 4749 4750# 4751# Enable OS features. 4752# 4753DEPDIR="${am__leading_dot}deps" 4754 4755ac_config_commands="$ac_config_commands depfiles" 4756 4757 4758am_make=${MAKE-make} 4759cat > confinc << 'END' 4760am__doit: 4761 @echo this is the am__doit target 4762.PHONY: am__doit 4763END 4764# If we don't find an include directive, just comment out the code. 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4766$as_echo_n "checking for style of include used by $am_make... " >&6; } 4767am__include="#" 4768am__quote= 4769_am_result=none 4770# First try GNU make style include. 4771echo "include confinc" > confmf 4772# Ignore all kinds of additional output from 'make'. 4773case `$am_make -s -f confmf 2> /dev/null` in #( 4774*the\ am__doit\ target*) 4775 am__include=include 4776 am__quote= 4777 _am_result=GNU 4778 ;; 4779esac 4780# Now try BSD make style include. 4781if test "$am__include" = "#"; then 4782 echo '.include "confinc"' > confmf 4783 case `$am_make -s -f confmf 2> /dev/null` in #( 4784 *the\ am__doit\ target*) 4785 am__include=.include 4786 am__quote="\"" 4787 _am_result=BSD 4788 ;; 4789 esac 4790fi 4791 4792 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4794$as_echo "$_am_result" >&6; } 4795rm -f confinc confmf 4796 4797# Check whether --enable-dependency-tracking was given. 4798if test "${enable_dependency_tracking+set}" = set; then : 4799 enableval=$enable_dependency_tracking; 4800fi 4801 4802if test "x$enable_dependency_tracking" != xno; then 4803 am_depcomp="$ac_aux_dir/depcomp" 4804 AMDEPBACKSLASH='\' 4805 am__nodep='_no' 4806fi 4807 if test "x$enable_dependency_tracking" != xno; then 4808 AMDEP_TRUE= 4809 AMDEP_FALSE='#' 4810else 4811 AMDEP_TRUE='#' 4812 AMDEP_FALSE= 4813fi 4814 4815 4816ac_ext=c 4817ac_cpp='$CPP $CPPFLAGS' 4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4820ac_compiler_gnu=$ac_cv_c_compiler_gnu 4821if test -n "$ac_tool_prefix"; then 4822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4823set dummy ${ac_tool_prefix}gcc; ac_word=$2 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4825$as_echo_n "checking for $ac_word... " >&6; } 4826if ${ac_cv_prog_CC+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 if test -n "$CC"; then 4830 ac_cv_prog_CC="$CC" # Let the user override the test. 4831else 4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4839 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843done 4844 done 4845IFS=$as_save_IFS 4846 4847fi 4848fi 4849CC=$ac_cv_prog_CC 4850if test -n "$CC"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4852$as_echo "$CC" >&6; } 4853else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855$as_echo "no" >&6; } 4856fi 4857 4858 4859fi 4860if test -z "$ac_cv_prog_CC"; then 4861 ac_ct_CC=$CC 4862 # Extract the first word of "gcc", so it can be a program name with args. 4863set dummy gcc; ac_word=$2 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865$as_echo_n "checking for $ac_word... " >&6; } 4866if ${ac_cv_prog_ac_ct_CC+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 if test -n "$ac_ct_CC"; then 4870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4871else 4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4873for as_dir in $PATH 4874do 4875 IFS=$as_save_IFS 4876 test -z "$as_dir" && as_dir=. 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4879 ac_cv_prog_ac_ct_CC="gcc" 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883done 4884 done 4885IFS=$as_save_IFS 4886 4887fi 4888fi 4889ac_ct_CC=$ac_cv_prog_ac_ct_CC 4890if test -n "$ac_ct_CC"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4892$as_echo "$ac_ct_CC" >&6; } 4893else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895$as_echo "no" >&6; } 4896fi 4897 4898 if test "x$ac_ct_CC" = x; then 4899 CC="" 4900 else 4901 case $cross_compiling:$ac_tool_warned in 4902yes:) 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4905ac_tool_warned=yes ;; 4906esac 4907 CC=$ac_ct_CC 4908 fi 4909else 4910 CC="$ac_cv_prog_CC" 4911fi 4912 4913if test -z "$CC"; then 4914 if test -n "$ac_tool_prefix"; then 4915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4916set dummy ${ac_tool_prefix}cc; ac_word=$2 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4918$as_echo_n "checking for $ac_word... " >&6; } 4919if ${ac_cv_prog_CC+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 if test -n "$CC"; then 4923 ac_cv_prog_CC="$CC" # Let the user override the test. 4924else 4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH 4927do 4928 IFS=$as_save_IFS 4929 test -z "$as_dir" && as_dir=. 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4932 ac_cv_prog_CC="${ac_tool_prefix}cc" 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4934 break 2 4935 fi 4936done 4937 done 4938IFS=$as_save_IFS 4939 4940fi 4941fi 4942CC=$ac_cv_prog_CC 4943if test -n "$CC"; then 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4945$as_echo "$CC" >&6; } 4946else 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4948$as_echo "no" >&6; } 4949fi 4950 4951 4952 fi 4953fi 4954if test -z "$CC"; then 4955 # Extract the first word of "cc", so it can be a program name with args. 4956set dummy cc; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_prog_CC+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$CC"; then 4963 ac_cv_prog_CC="$CC" # Let the user override the test. 4964else 4965 ac_prog_rejected=no 4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH 4968do 4969 IFS=$as_save_IFS 4970 test -z "$as_dir" && as_dir=. 4971 for ac_exec_ext in '' $ac_executable_extensions; do 4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4974 ac_prog_rejected=yes 4975 continue 4976 fi 4977 ac_cv_prog_CC="cc" 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985if test $ac_prog_rejected = yes; then 4986 # We found a bogon in the path, so make sure we never use it. 4987 set dummy $ac_cv_prog_CC 4988 shift 4989 if test $# != 0; then 4990 # We chose a different compiler from the bogus one. 4991 # However, it has the same basename, so the bogon will be chosen 4992 # first if we set CC to just the basename; use the full file name. 4993 shift 4994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4995 fi 4996fi 4997fi 4998fi 4999CC=$ac_cv_prog_CC 5000if test -n "$CC"; then 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5002$as_echo "$CC" >&6; } 5003else 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5005$as_echo "no" >&6; } 5006fi 5007 5008 5009fi 5010if test -z "$CC"; then 5011 if test -n "$ac_tool_prefix"; then 5012 for ac_prog in cl.exe 5013 do 5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5015set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5017$as_echo_n "checking for $ac_word... " >&6; } 5018if ${ac_cv_prog_CC+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 if test -n "$CC"; then 5022 ac_cv_prog_CC="$CC" # Let the user override the test. 5023else 5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5025for as_dir in $PATH 5026do 5027 IFS=$as_save_IFS 5028 test -z "$as_dir" && as_dir=. 5029 for ac_exec_ext in '' $ac_executable_extensions; do 5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5033 break 2 5034 fi 5035done 5036 done 5037IFS=$as_save_IFS 5038 5039fi 5040fi 5041CC=$ac_cv_prog_CC 5042if test -n "$CC"; then 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5044$as_echo "$CC" >&6; } 5045else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5047$as_echo "no" >&6; } 5048fi 5049 5050 5051 test -n "$CC" && break 5052 done 5053fi 5054if test -z "$CC"; then 5055 ac_ct_CC=$CC 5056 for ac_prog in cl.exe 5057do 5058 # Extract the first word of "$ac_prog", so it can be a program name with args. 5059set dummy $ac_prog; ac_word=$2 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5061$as_echo_n "checking for $ac_word... " >&6; } 5062if ${ac_cv_prog_ac_ct_CC+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 if test -n "$ac_ct_CC"; then 5066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5067else 5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069for as_dir in $PATH 5070do 5071 IFS=$as_save_IFS 5072 test -z "$as_dir" && as_dir=. 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5075 ac_cv_prog_ac_ct_CC="$ac_prog" 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079done 5080 done 5081IFS=$as_save_IFS 5082 5083fi 5084fi 5085ac_ct_CC=$ac_cv_prog_ac_ct_CC 5086if test -n "$ac_ct_CC"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5088$as_echo "$ac_ct_CC" >&6; } 5089else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5091$as_echo "no" >&6; } 5092fi 5093 5094 5095 test -n "$ac_ct_CC" && break 5096done 5097 5098 if test "x$ac_ct_CC" = x; then 5099 CC="" 5100 else 5101 case $cross_compiling:$ac_tool_warned in 5102yes:) 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5105ac_tool_warned=yes ;; 5106esac 5107 CC=$ac_ct_CC 5108 fi 5109fi 5110 5111fi 5112 5113 5114test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5116as_fn_error $? "no acceptable C compiler found in \$PATH 5117See \`config.log' for more details" "$LINENO" 5; } 5118 5119# Provide some information about the compiler. 5120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5121set X $ac_compile 5122ac_compiler=$2 5123for ac_option in --version -v -V -qversion; do 5124 { { ac_try="$ac_compiler $ac_option >&5" 5125case "(($ac_try" in 5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5127 *) ac_try_echo=$ac_try;; 5128esac 5129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5130$as_echo "$ac_try_echo"; } >&5 5131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5132 ac_status=$? 5133 if test -s conftest.err; then 5134 sed '10a\ 5135... rest of stderr output deleted ... 5136 10q' conftest.err >conftest.er1 5137 cat conftest.er1 >&5 5138 fi 5139 rm -f conftest.er1 conftest.err 5140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5141 test $ac_status = 0; } 5142done 5143 5144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146 5147int 5148main () 5149{ 5150 5151 ; 5152 return 0; 5153} 5154_ACEOF 5155ac_clean_files_save=$ac_clean_files 5156ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5157# Try to create an executable without -o first, disregard a.out. 5158# It will help us diagnose broken compilers, and finding out an intuition 5159# of exeext. 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5161$as_echo_n "checking whether the C compiler works... " >&6; } 5162ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5163 5164# The possible output files: 5165ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5166 5167ac_rmfiles= 5168for ac_file in $ac_files 5169do 5170 case $ac_file in 5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5172 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5173 esac 5174done 5175rm -f $ac_rmfiles 5176 5177if { { ac_try="$ac_link_default" 5178case "(($ac_try" in 5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5180 *) ac_try_echo=$ac_try;; 5181esac 5182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5183$as_echo "$ac_try_echo"; } >&5 5184 (eval "$ac_link_default") 2>&5 5185 ac_status=$? 5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5187 test $ac_status = 0; }; then : 5188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5189# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5190# in a Makefile. We should not override ac_cv_exeext if it was cached, 5191# so that the user can short-circuit this test for compilers unknown to 5192# Autoconf. 5193for ac_file in $ac_files '' 5194do 5195 test -f "$ac_file" || continue 5196 case $ac_file in 5197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5198 ;; 5199 [ab].out ) 5200 # We found the default executable, but exeext='' is most 5201 # certainly right. 5202 break;; 5203 *.* ) 5204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 5205 then :; else 5206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5207 fi 5208 # We set ac_cv_exeext here because the later test for it is not 5209 # safe: cross compilers may not add the suffix if given an `-o' 5210 # argument, so we may need to know it at that point already. 5211 # Even if this section looks crufty: it has the advantage of 5212 # actually working. 5213 break;; 5214 * ) 5215 break;; 5216 esac 5217done 5218test "$ac_cv_exeext" = no && ac_cv_exeext= 5219 5220else 5221 ac_file='' 5222fi 5223if test -z "$ac_file"; then : 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225$as_echo "no" >&6; } 5226$as_echo "$as_me: failed program was:" >&5 5227sed 's/^/| /' conftest.$ac_ext >&5 5228 5229{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5231as_fn_error 77 "C compiler cannot create executables 5232See \`config.log' for more details" "$LINENO" 5; } 5233else 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5235$as_echo "yes" >&6; } 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5238$as_echo_n "checking for C compiler default output file name... " >&6; } 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5240$as_echo "$ac_file" >&6; } 5241ac_exeext=$ac_cv_exeext 5242 5243rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5244ac_clean_files=$ac_clean_files_save 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5246$as_echo_n "checking for suffix of executables... " >&6; } 5247if { { ac_try="$ac_link" 5248case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251esac 5252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5253$as_echo "$ac_try_echo"; } >&5 5254 (eval "$ac_link") 2>&5 5255 ac_status=$? 5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5257 test $ac_status = 0; }; then : 5258 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5259# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5260# work properly (i.e., refer to `conftest.exe'), while it won't with 5261# `rm'. 5262for ac_file in conftest.exe conftest conftest.*; do 5263 test -f "$ac_file" || continue 5264 case $ac_file in 5265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5267 break;; 5268 * ) break;; 5269 esac 5270done 5271else 5272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5274as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5275See \`config.log' for more details" "$LINENO" 5; } 5276fi 5277rm -f conftest conftest$ac_cv_exeext 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5279$as_echo "$ac_cv_exeext" >&6; } 5280 5281rm -f conftest.$ac_ext 5282EXEEXT=$ac_cv_exeext 5283ac_exeext=$EXEEXT 5284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286#include <stdio.h> 5287int 5288main () 5289{ 5290FILE *f = fopen ("conftest.out", "w"); 5291 return ferror (f) || fclose (f) != 0; 5292 5293 ; 5294 return 0; 5295} 5296_ACEOF 5297ac_clean_files="$ac_clean_files conftest.out" 5298# Check that the compiler produces executables we can run. If not, either 5299# the compiler is broken, or we cross compile. 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5301$as_echo_n "checking whether we are cross compiling... " >&6; } 5302if test "$cross_compiling" != yes; then 5303 { { ac_try="$ac_link" 5304case "(($ac_try" in 5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5306 *) ac_try_echo=$ac_try;; 5307esac 5308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5309$as_echo "$ac_try_echo"; } >&5 5310 (eval "$ac_link") 2>&5 5311 ac_status=$? 5312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5313 test $ac_status = 0; } 5314 if { ac_try='./conftest$ac_cv_exeext' 5315 { { case "(($ac_try" in 5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5317 *) ac_try_echo=$ac_try;; 5318esac 5319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5320$as_echo "$ac_try_echo"; } >&5 5321 (eval "$ac_try") 2>&5 5322 ac_status=$? 5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5324 test $ac_status = 0; }; }; then 5325 cross_compiling=no 5326 else 5327 if test "$cross_compiling" = maybe; then 5328 cross_compiling=yes 5329 else 5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5332as_fn_error $? "cannot run C compiled programs. 5333If you meant to cross compile, use \`--host'. 5334See \`config.log' for more details" "$LINENO" 5; } 5335 fi 5336 fi 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5339$as_echo "$cross_compiling" >&6; } 5340 5341rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5342ac_clean_files=$ac_clean_files_save 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5344$as_echo_n "checking for suffix of object files... " >&6; } 5345if ${ac_cv_objext+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349/* end confdefs.h. */ 5350 5351int 5352main () 5353{ 5354 5355 ; 5356 return 0; 5357} 5358_ACEOF 5359rm -f conftest.o conftest.obj 5360if { { ac_try="$ac_compile" 5361case "(($ac_try" in 5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5363 *) ac_try_echo=$ac_try;; 5364esac 5365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5366$as_echo "$ac_try_echo"; } >&5 5367 (eval "$ac_compile") 2>&5 5368 ac_status=$? 5369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5370 test $ac_status = 0; }; then : 5371 for ac_file in conftest.o conftest.obj conftest.*; do 5372 test -f "$ac_file" || continue; 5373 case $ac_file in 5374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5375 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5376 break;; 5377 esac 5378done 5379else 5380 $as_echo "$as_me: failed program was:" >&5 5381sed 's/^/| /' conftest.$ac_ext >&5 5382 5383{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5385as_fn_error $? "cannot compute suffix of object files: cannot compile 5386See \`config.log' for more details" "$LINENO" 5; } 5387fi 5388rm -f conftest.$ac_cv_objext conftest.$ac_ext 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5391$as_echo "$ac_cv_objext" >&6; } 5392OBJEXT=$ac_cv_objext 5393ac_objext=$OBJEXT 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5395$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5396if ${ac_cv_c_compiler_gnu+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400/* end confdefs.h. */ 5401 5402int 5403main () 5404{ 5405#ifndef __GNUC__ 5406 choke me 5407#endif 5408 5409 ; 5410 return 0; 5411} 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO"; then : 5414 ac_compiler_gnu=yes 5415else 5416 ac_compiler_gnu=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419ac_cv_c_compiler_gnu=$ac_compiler_gnu 5420 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5423$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5424if test $ac_compiler_gnu = yes; then 5425 GCC=yes 5426else 5427 GCC= 5428fi 5429ac_test_CFLAGS=${CFLAGS+set} 5430ac_save_CFLAGS=$CFLAGS 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5432$as_echo_n "checking whether $CC accepts -g... " >&6; } 5433if ${ac_cv_prog_cc_g+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 ac_save_c_werror_flag=$ac_c_werror_flag 5437 ac_c_werror_flag=yes 5438 ac_cv_prog_cc_g=no 5439 CFLAGS="-g" 5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5441/* end confdefs.h. */ 5442 5443int 5444main () 5445{ 5446 5447 ; 5448 return 0; 5449} 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO"; then : 5452 ac_cv_prog_cc_g=yes 5453else 5454 CFLAGS="" 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457 5458int 5459main () 5460{ 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466if ac_fn_c_try_compile "$LINENO"; then : 5467 5468else 5469 ac_c_werror_flag=$ac_save_c_werror_flag 5470 CFLAGS="-g" 5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5472/* end confdefs.h. */ 5473 5474int 5475main () 5476{ 5477 5478 ; 5479 return 0; 5480} 5481_ACEOF 5482if ac_fn_c_try_compile "$LINENO"; then : 5483 ac_cv_prog_cc_g=yes 5484fi 5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488fi 5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5490 ac_c_werror_flag=$ac_save_c_werror_flag 5491fi 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5493$as_echo "$ac_cv_prog_cc_g" >&6; } 5494if test "$ac_test_CFLAGS" = set; then 5495 CFLAGS=$ac_save_CFLAGS 5496elif test $ac_cv_prog_cc_g = yes; then 5497 if test "$GCC" = yes; then 5498 CFLAGS="-g -O2" 5499 else 5500 CFLAGS="-g" 5501 fi 5502else 5503 if test "$GCC" = yes; then 5504 CFLAGS="-O2" 5505 else 5506 CFLAGS= 5507 fi 5508fi 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5510$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5511if ${ac_cv_prog_cc_c89+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 ac_cv_prog_cc_c89=no 5515ac_save_CC=$CC 5516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517/* end confdefs.h. */ 5518#include <stdarg.h> 5519#include <stdio.h> 5520struct stat; 5521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5522struct buf { int x; }; 5523FILE * (*rcsopen) (struct buf *, struct stat *, int); 5524static char *e (p, i) 5525 char **p; 5526 int i; 5527{ 5528 return p[i]; 5529} 5530static char *f (char * (*g) (char **, int), char **p, ...) 5531{ 5532 char *s; 5533 va_list v; 5534 va_start (v,p); 5535 s = g (p, va_arg (v,int)); 5536 va_end (v); 5537 return s; 5538} 5539 5540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5541 function prototypes and stuff, but not '\xHH' hex character constants. 5542 These don't provoke an error unfortunately, instead are silently treated 5543 as 'x'. The following induces an error, until -std is added to get 5544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5545 array size at least. It's necessary to write '\x00'==0 to get something 5546 that's true only with -std. */ 5547int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5548 5549/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5550 inside strings and character constants. */ 5551#define FOO(x) 'x' 5552int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5553 5554int test (int i, double x); 5555struct s1 {int (*f) (int a);}; 5556struct s2 {int (*f) (double a);}; 5557int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5558int argc; 5559char **argv; 5560int 5561main () 5562{ 5563return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5564 ; 5565 return 0; 5566} 5567_ACEOF 5568for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5570do 5571 CC="$ac_save_CC $ac_arg" 5572 if ac_fn_c_try_compile "$LINENO"; then : 5573 ac_cv_prog_cc_c89=$ac_arg 5574fi 5575rm -f core conftest.err conftest.$ac_objext 5576 test "x$ac_cv_prog_cc_c89" != "xno" && break 5577done 5578rm -f conftest.$ac_ext 5579CC=$ac_save_CC 5580 5581fi 5582# AC_CACHE_VAL 5583case "x$ac_cv_prog_cc_c89" in 5584 x) 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5586$as_echo "none needed" >&6; } ;; 5587 xno) 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5589$as_echo "unsupported" >&6; } ;; 5590 *) 5591 CC="$CC $ac_cv_prog_cc_c89" 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5593$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5594esac 5595if test "x$ac_cv_prog_cc_c89" != xno; then : 5596 5597fi 5598 5599ac_ext=c 5600ac_cpp='$CPP $CPPFLAGS' 5601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5603ac_compiler_gnu=$ac_cv_c_compiler_gnu 5604 5605ac_ext=c 5606ac_cpp='$CPP $CPPFLAGS' 5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5609ac_compiler_gnu=$ac_cv_c_compiler_gnu 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5611$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5612if ${am_cv_prog_cc_c_o+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617 5618int 5619main () 5620{ 5621 5622 ; 5623 return 0; 5624} 5625_ACEOF 5626 # Make sure it works both with $CC and with simple cc. 5627 # Following AC_PROG_CC_C_O, we do the test twice because some 5628 # compilers refuse to overwrite an existing .o file with -o, 5629 # though they will create one. 5630 am_cv_prog_cc_c_o=yes 5631 for am_i in 1 2; do 5632 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5633 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } \ 5637 && test -f conftest2.$ac_objext; then 5638 : OK 5639 else 5640 am_cv_prog_cc_c_o=no 5641 break 5642 fi 5643 done 5644 rm -f core conftest* 5645 unset am_i 5646fi 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5648$as_echo "$am_cv_prog_cc_c_o" >&6; } 5649if test "$am_cv_prog_cc_c_o" != yes; then 5650 # Losing compiler, so override with the script. 5651 # FIXME: It is wrong to rewrite CC. 5652 # But if we don't then we get into trouble of one sort or another. 5653 # A longer-term fix would be to have automake use am__CC in this case, 5654 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5655 CC="$am_aux_dir/compile $CC" 5656fi 5657ac_ext=c 5658ac_cpp='$CPP $CPPFLAGS' 5659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5661ac_compiler_gnu=$ac_cv_c_compiler_gnu 5662 5663 5664depcc="$CC" am_compiler_list= 5665 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5667$as_echo_n "checking dependency style of $depcc... " >&6; } 5668if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5672 # We make a subdir and do the tests there. Otherwise we can end up 5673 # making bogus files that we don't know about and never remove. For 5674 # instance it was reported that on HP-UX the gcc test will end up 5675 # making a dummy file named 'D' -- because '-MD' means "put the output 5676 # in D". 5677 rm -rf conftest.dir 5678 mkdir conftest.dir 5679 # Copy depcomp to subdir because otherwise we won't find it if we're 5680 # using a relative directory. 5681 cp "$am_depcomp" conftest.dir 5682 cd conftest.dir 5683 # We will build objects and dependencies in a subdirectory because 5684 # it helps to detect inapplicable dependency modes. For instance 5685 # both Tru64's cc and ICC support -MD to output dependencies as a 5686 # side effect of compilation, but ICC will put the dependencies in 5687 # the current directory while Tru64 will put them in the object 5688 # directory. 5689 mkdir sub 5690 5691 am_cv_CC_dependencies_compiler_type=none 5692 if test "$am_compiler_list" = ""; then 5693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5694 fi 5695 am__universal=false 5696 case " $depcc " in #( 5697 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5698 esac 5699 5700 for depmode in $am_compiler_list; do 5701 # Setup a source with many dependencies, because some compilers 5702 # like to wrap large dependency lists on column 80 (with \), and 5703 # we should not choose a depcomp mode which is confused by this. 5704 # 5705 # We need to recreate these files for each test, as the compiler may 5706 # overwrite some of them when testing with obscure command lines. 5707 # This happens at least with the AIX C compiler. 5708 : > sub/conftest.c 5709 for i in 1 2 3 4 5 6; do 5710 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5712 # Solaris 10 /bin/sh. 5713 echo '/* dummy */' > sub/conftst$i.h 5714 done 5715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5716 5717 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5718 # mode. It turns out that the SunPro C++ compiler does not properly 5719 # handle '-M -o', and we need to detect this. Also, some Intel 5720 # versions had trouble with output in subdirs. 5721 am__obj=sub/conftest.${OBJEXT-o} 5722 am__minus_obj="-o $am__obj" 5723 case $depmode in 5724 gcc) 5725 # This depmode causes a compiler race in universal mode. 5726 test "$am__universal" = false || continue 5727 ;; 5728 nosideeffect) 5729 # After this tag, mechanisms are not by side-effect, so they'll 5730 # only be used when explicitly requested. 5731 if test "x$enable_dependency_tracking" = xyes; then 5732 continue 5733 else 5734 break 5735 fi 5736 ;; 5737 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5738 # This compiler won't grok '-c -o', but also, the minuso test has 5739 # not run yet. These depmodes are late enough in the game, and 5740 # so weak that their functioning should not be impacted. 5741 am__obj=conftest.${OBJEXT-o} 5742 am__minus_obj= 5743 ;; 5744 none) break ;; 5745 esac 5746 if depmode=$depmode \ 5747 source=sub/conftest.c object=$am__obj \ 5748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5750 >/dev/null 2>conftest.err && 5751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5755 # icc doesn't choke on unknown options, it will just issue warnings 5756 # or remarks (even with -Werror). So we grep stderr for any message 5757 # that says an option was ignored or not supported. 5758 # When given -MP, icc 7.0 and 7.1 complain thusly: 5759 # icc: Command line warning: ignoring option '-M'; no argument required 5760 # The diagnosis changed in icc 8.0: 5761 # icc: Command line remark: option '-MP' not supported 5762 if (grep 'ignoring option' conftest.err || 5763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5764 am_cv_CC_dependencies_compiler_type=$depmode 5765 break 5766 fi 5767 fi 5768 done 5769 5770 cd .. 5771 rm -rf conftest.dir 5772else 5773 am_cv_CC_dependencies_compiler_type=none 5774fi 5775 5776fi 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5778$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5779CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5780 5781 if 5782 test "x$enable_dependency_tracking" != xno \ 5783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5784 am__fastdepCC_TRUE= 5785 am__fastdepCC_FALSE='#' 5786else 5787 am__fastdepCC_TRUE='#' 5788 am__fastdepCC_FALSE= 5789fi 5790 5791 5792 5793ac_ext=c 5794ac_cpp='$CPP $CPPFLAGS' 5795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5797ac_compiler_gnu=$ac_cv_c_compiler_gnu 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5799$as_echo_n "checking how to run the C preprocessor... " >&6; } 5800# On Suns, sometimes $CPP names a directory. 5801if test -n "$CPP" && test -d "$CPP"; then 5802 CPP= 5803fi 5804if test -z "$CPP"; then 5805 if ${ac_cv_prog_CPP+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 # Double quotes because CPP needs to be expanded 5809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5810 do 5811 ac_preproc_ok=false 5812for ac_c_preproc_warn_flag in '' yes 5813do 5814 # Use a header file that comes with gcc, so configuring glibc 5815 # with a fresh cross-compiler works. 5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5817 # <limits.h> exists even on freestanding compilers. 5818 # On the NeXT, cc -E runs the code through the compiler's parser, 5819 # not just through cpp. "Syntax error" is here to catch this case. 5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5821/* end confdefs.h. */ 5822#ifdef __STDC__ 5823# include <limits.h> 5824#else 5825# include <assert.h> 5826#endif 5827 Syntax error 5828_ACEOF 5829if ac_fn_c_try_cpp "$LINENO"; then : 5830 5831else 5832 # Broken: fails on valid input. 5833continue 5834fi 5835rm -f conftest.err conftest.i conftest.$ac_ext 5836 5837 # OK, works on sane cases. Now check whether nonexistent headers 5838 # can be detected and how. 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841#include <ac_nonexistent.h> 5842_ACEOF 5843if ac_fn_c_try_cpp "$LINENO"; then : 5844 # Broken: success on invalid input. 5845continue 5846else 5847 # Passes both tests. 5848ac_preproc_ok=: 5849break 5850fi 5851rm -f conftest.err conftest.i conftest.$ac_ext 5852 5853done 5854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5855rm -f conftest.i conftest.err conftest.$ac_ext 5856if $ac_preproc_ok; then : 5857 break 5858fi 5859 5860 done 5861 ac_cv_prog_CPP=$CPP 5862 5863fi 5864 CPP=$ac_cv_prog_CPP 5865else 5866 ac_cv_prog_CPP=$CPP 5867fi 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5869$as_echo "$CPP" >&6; } 5870ac_preproc_ok=false 5871for ac_c_preproc_warn_flag in '' yes 5872do 5873 # Use a header file that comes with gcc, so configuring glibc 5874 # with a fresh cross-compiler works. 5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5876 # <limits.h> exists even on freestanding compilers. 5877 # On the NeXT, cc -E runs the code through the compiler's parser, 5878 # not just through cpp. "Syntax error" is here to catch this case. 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881#ifdef __STDC__ 5882# include <limits.h> 5883#else 5884# include <assert.h> 5885#endif 5886 Syntax error 5887_ACEOF 5888if ac_fn_c_try_cpp "$LINENO"; then : 5889 5890else 5891 # Broken: fails on valid input. 5892continue 5893fi 5894rm -f conftest.err conftest.i conftest.$ac_ext 5895 5896 # OK, works on sane cases. Now check whether nonexistent headers 5897 # can be detected and how. 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900#include <ac_nonexistent.h> 5901_ACEOF 5902if ac_fn_c_try_cpp "$LINENO"; then : 5903 # Broken: success on invalid input. 5904continue 5905else 5906 # Passes both tests. 5907ac_preproc_ok=: 5908break 5909fi 5910rm -f conftest.err conftest.i conftest.$ac_ext 5911 5912done 5913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5914rm -f conftest.i conftest.err conftest.$ac_ext 5915if $ac_preproc_ok; then : 5916 5917else 5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5920as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5921See \`config.log' for more details" "$LINENO" 5; } 5922fi 5923 5924ac_ext=c 5925ac_cpp='$CPP $CPPFLAGS' 5926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5928ac_compiler_gnu=$ac_cv_c_compiler_gnu 5929 5930 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5932$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5933if ${ac_cv_path_GREP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -z "$GREP"; then 5937 ac_path_GREP_found=false 5938 # Loop through the user's path and test for each of PROGNAME-LIST 5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_prog in grep ggrep; do 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5947 as_fn_executable_p "$ac_path_GREP" || continue 5948# Check for GNU ac_path_GREP and select it if it is found. 5949 # Check for GNU $ac_path_GREP 5950case `"$ac_path_GREP" --version 2>&1` in 5951*GNU*) 5952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5953*) 5954 ac_count=0 5955 $as_echo_n 0123456789 >"conftest.in" 5956 while : 5957 do 5958 cat "conftest.in" "conftest.in" >"conftest.tmp" 5959 mv "conftest.tmp" "conftest.in" 5960 cp "conftest.in" "conftest.nl" 5961 $as_echo 'GREP' >> "conftest.nl" 5962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5964 as_fn_arith $ac_count + 1 && ac_count=$as_val 5965 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5966 # Best one so far, save it but keep looking for a better one 5967 ac_cv_path_GREP="$ac_path_GREP" 5968 ac_path_GREP_max=$ac_count 5969 fi 5970 # 10*(2^10) chars as input seems more than enough 5971 test $ac_count -gt 10 && break 5972 done 5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5974esac 5975 5976 $ac_path_GREP_found && break 3 5977 done 5978 done 5979 done 5980IFS=$as_save_IFS 5981 if test -z "$ac_cv_path_GREP"; then 5982 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5983 fi 5984else 5985 ac_cv_path_GREP=$GREP 5986fi 5987 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5990$as_echo "$ac_cv_path_GREP" >&6; } 5991 GREP="$ac_cv_path_GREP" 5992 5993 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5995$as_echo_n "checking for egrep... " >&6; } 5996if ${ac_cv_path_EGREP+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6000 then ac_cv_path_EGREP="$GREP -E" 6001 else 6002 if test -z "$EGREP"; then 6003 ac_path_EGREP_found=false 6004 # Loop through the user's path and test for each of PROGNAME-LIST 6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6007do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_prog in egrep; do 6011 for ac_exec_ext in '' $ac_executable_extensions; do 6012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6013 as_fn_executable_p "$ac_path_EGREP" || continue 6014# Check for GNU ac_path_EGREP and select it if it is found. 6015 # Check for GNU $ac_path_EGREP 6016case `"$ac_path_EGREP" --version 2>&1` in 6017*GNU*) 6018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6019*) 6020 ac_count=0 6021 $as_echo_n 0123456789 >"conftest.in" 6022 while : 6023 do 6024 cat "conftest.in" "conftest.in" >"conftest.tmp" 6025 mv "conftest.tmp" "conftest.in" 6026 cp "conftest.in" "conftest.nl" 6027 $as_echo 'EGREP' >> "conftest.nl" 6028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6030 as_fn_arith $ac_count + 1 && ac_count=$as_val 6031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6032 # Best one so far, save it but keep looking for a better one 6033 ac_cv_path_EGREP="$ac_path_EGREP" 6034 ac_path_EGREP_max=$ac_count 6035 fi 6036 # 10*(2^10) chars as input seems more than enough 6037 test $ac_count -gt 10 && break 6038 done 6039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6040esac 6041 6042 $ac_path_EGREP_found && break 3 6043 done 6044 done 6045 done 6046IFS=$as_save_IFS 6047 if test -z "$ac_cv_path_EGREP"; then 6048 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6049 fi 6050else 6051 ac_cv_path_EGREP=$EGREP 6052fi 6053 6054 fi 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6057$as_echo "$ac_cv_path_EGREP" >&6; } 6058 EGREP="$ac_cv_path_EGREP" 6059 6060 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6062$as_echo_n "checking for ANSI C header files... " >&6; } 6063if ${ac_cv_header_stdc+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068#include <stdlib.h> 6069#include <stdarg.h> 6070#include <string.h> 6071#include <float.h> 6072 6073int 6074main () 6075{ 6076 6077 ; 6078 return 0; 6079} 6080_ACEOF 6081if ac_fn_c_try_compile "$LINENO"; then : 6082 ac_cv_header_stdc=yes 6083else 6084 ac_cv_header_stdc=no 6085fi 6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6087 6088if test $ac_cv_header_stdc = yes; then 6089 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092#include <string.h> 6093 6094_ACEOF 6095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6096 $EGREP "memchr" >/dev/null 2>&1; then : 6097 6098else 6099 ac_cv_header_stdc=no 6100fi 6101rm -f conftest* 6102 6103fi 6104 6105if test $ac_cv_header_stdc = yes; then 6106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109#include <stdlib.h> 6110 6111_ACEOF 6112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6113 $EGREP "free" >/dev/null 2>&1; then : 6114 6115else 6116 ac_cv_header_stdc=no 6117fi 6118rm -f conftest* 6119 6120fi 6121 6122if test $ac_cv_header_stdc = yes; then 6123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6124 if test "$cross_compiling" = yes; then : 6125 : 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129#include <ctype.h> 6130#include <stdlib.h> 6131#if ((' ' & 0x0FF) == 0x020) 6132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6134#else 6135# define ISLOWER(c) \ 6136 (('a' <= (c) && (c) <= 'i') \ 6137 || ('j' <= (c) && (c) <= 'r') \ 6138 || ('s' <= (c) && (c) <= 'z')) 6139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6140#endif 6141 6142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6143int 6144main () 6145{ 6146 int i; 6147 for (i = 0; i < 256; i++) 6148 if (XOR (islower (i), ISLOWER (i)) 6149 || toupper (i) != TOUPPER (i)) 6150 return 2; 6151 return 0; 6152} 6153_ACEOF 6154if ac_fn_c_try_run "$LINENO"; then : 6155 6156else 6157 ac_cv_header_stdc=no 6158fi 6159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6160 conftest.$ac_objext conftest.beam conftest.$ac_ext 6161fi 6162 6163fi 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6166$as_echo "$ac_cv_header_stdc" >&6; } 6167if test $ac_cv_header_stdc = yes; then 6168 6169$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6170 6171fi 6172 6173# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6174for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6175 inttypes.h stdint.h unistd.h 6176do : 6177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6178ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6179" 6180if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6181 cat >>confdefs.h <<_ACEOF 6182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6183_ACEOF 6184 6185fi 6186 6187done 6188 6189 6190 6191 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6192if test "x$ac_cv_header_minix_config_h" = xyes; then : 6193 MINIX=yes 6194else 6195 MINIX= 6196fi 6197 6198 6199 if test "$MINIX" = yes; then 6200 6201$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6202 6203 6204$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6205 6206 6207$as_echo "#define _MINIX 1" >>confdefs.h 6208 6209 fi 6210 6211 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6213$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6214if ${ac_cv_safe_to_define___extensions__+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219 6220# define __EXTENSIONS__ 1 6221 $ac_includes_default 6222int 6223main () 6224{ 6225 6226 ; 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_c_try_compile "$LINENO"; then : 6231 ac_cv_safe_to_define___extensions__=yes 6232else 6233 ac_cv_safe_to_define___extensions__=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6238$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6239 test $ac_cv_safe_to_define___extensions__ = yes && 6240 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6241 6242 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6243 6244 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6245 6246 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6247 6248 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6249 6250 6251 6252# ============================================================================== 6253# Find required base packages 6254# ============================================================================== 6255if test -n "$ac_tool_prefix"; then 6256 for ac_prog in ar lib "link -lib" 6257 do 6258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6261$as_echo_n "checking for $ac_word... " >&6; } 6262if ${ac_cv_prog_AR+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 if test -n "$AR"; then 6266 ac_cv_prog_AR="$AR" # Let the user override the test. 6267else 6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6269for as_dir in $PATH 6270do 6271 IFS=$as_save_IFS 6272 test -z "$as_dir" && as_dir=. 6273 for ac_exec_ext in '' $ac_executable_extensions; do 6274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6275 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6277 break 2 6278 fi 6279done 6280 done 6281IFS=$as_save_IFS 6282 6283fi 6284fi 6285AR=$ac_cv_prog_AR 6286if test -n "$AR"; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6288$as_echo "$AR" >&6; } 6289else 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6291$as_echo "no" >&6; } 6292fi 6293 6294 6295 test -n "$AR" && break 6296 done 6297fi 6298if test -z "$AR"; then 6299 ac_ct_AR=$AR 6300 for ac_prog in ar lib "link -lib" 6301do 6302 # Extract the first word of "$ac_prog", so it can be a program name with args. 6303set dummy $ac_prog; ac_word=$2 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6305$as_echo_n "checking for $ac_word... " >&6; } 6306if ${ac_cv_prog_ac_ct_AR+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 if test -n "$ac_ct_AR"; then 6310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6311else 6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6313for as_dir in $PATH 6314do 6315 IFS=$as_save_IFS 6316 test -z "$as_dir" && as_dir=. 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6319 ac_cv_prog_ac_ct_AR="$ac_prog" 6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323done 6324 done 6325IFS=$as_save_IFS 6326 6327fi 6328fi 6329ac_ct_AR=$ac_cv_prog_ac_ct_AR 6330if test -n "$ac_ct_AR"; then 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6332$as_echo "$ac_ct_AR" >&6; } 6333else 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335$as_echo "no" >&6; } 6336fi 6337 6338 6339 test -n "$ac_ct_AR" && break 6340done 6341 6342 if test "x$ac_ct_AR" = x; then 6343 AR="false" 6344 else 6345 case $cross_compiling:$ac_tool_warned in 6346yes:) 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6349ac_tool_warned=yes ;; 6350esac 6351 AR=$ac_ct_AR 6352 fi 6353fi 6354 6355: ${AR=ar} 6356 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6358$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6359if ${am_cv_ar_interface+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 ac_ext=c 6363ac_cpp='$CPP $CPPFLAGS' 6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6366ac_compiler_gnu=$ac_cv_c_compiler_gnu 6367 6368 am_cv_ar_interface=ar 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int some_variable = 0; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6376 (eval $am_ar_try) 2>&5 6377 ac_status=$? 6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6379 test $ac_status = 0; } 6380 if test "$ac_status" -eq 0; then 6381 am_cv_ar_interface=ar 6382 else 6383 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6385 (eval $am_ar_try) 2>&5 6386 ac_status=$? 6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6388 test $ac_status = 0; } 6389 if test "$ac_status" -eq 0; then 6390 am_cv_ar_interface=lib 6391 else 6392 am_cv_ar_interface=unknown 6393 fi 6394 fi 6395 rm -f conftest.lib libconftest.a 6396 6397fi 6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6399 ac_ext=c 6400ac_cpp='$CPP $CPPFLAGS' 6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6403ac_compiler_gnu=$ac_cv_c_compiler_gnu 6404 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6407$as_echo "$am_cv_ar_interface" >&6; } 6408 6409case $am_cv_ar_interface in 6410ar) 6411 ;; 6412lib) 6413 # Microsoft lib, so override with the ar-lib wrapper script. 6414 # FIXME: It is wrong to rewrite AR. 6415 # But if we don't then we get into trouble of one sort or another. 6416 # A longer-term fix would be to have automake use am__AR in this case, 6417 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6418 # similar. 6419 AR="$am_aux_dir/ar-lib $AR" 6420 ;; 6421unknown) 6422 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6423 ;; 6424esac 6425 6426ac_ext=c 6427ac_cpp='$CPP $CPPFLAGS' 6428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6430ac_compiler_gnu=$ac_cv_c_compiler_gnu 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}gcc; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_CC+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$CC"; then 6440 ac_cv_prog_CC="$CC" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459CC=$ac_cv_prog_CC 6460if test -n "$CC"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6462$as_echo "$CC" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_CC"; then 6471 ac_ct_CC=$CC 6472 # Extract the first word of "gcc", so it can be a program name with args. 6473set dummy gcc; ac_word=$2 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475$as_echo_n "checking for $ac_word... " >&6; } 6476if ${ac_cv_prog_ac_ct_CC+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 if test -n "$ac_ct_CC"; then 6480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_prog_ac_ct_CC="gcc" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494 done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_CC=$ac_cv_prog_ac_ct_CC 6500if test -n "$ac_ct_CC"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6502$as_echo "$ac_ct_CC" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505$as_echo "no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_CC" = x; then 6509 CC="" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 CC=$ac_ct_CC 6518 fi 6519else 6520 CC="$ac_cv_prog_CC" 6521fi 6522 6523if test -z "$CC"; then 6524 if test -n "$ac_tool_prefix"; then 6525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6526set dummy ${ac_tool_prefix}cc; ac_word=$2 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528$as_echo_n "checking for $ac_word... " >&6; } 6529if ${ac_cv_prog_CC+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 if test -n "$CC"; then 6533 ac_cv_prog_CC="$CC" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 test -z "$as_dir" && as_dir=. 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6542 ac_cv_prog_CC="${ac_tool_prefix}cc" 6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6544 break 2 6545 fi 6546done 6547 done 6548IFS=$as_save_IFS 6549 6550fi 6551fi 6552CC=$ac_cv_prog_CC 6553if test -n "$CC"; then 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6555$as_echo "$CC" >&6; } 6556else 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6558$as_echo "no" >&6; } 6559fi 6560 6561 6562 fi 6563fi 6564if test -z "$CC"; then 6565 # Extract the first word of "cc", so it can be a program name with args. 6566set dummy cc; ac_word=$2 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568$as_echo_n "checking for $ac_word... " >&6; } 6569if ${ac_cv_prog_CC+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 if test -n "$CC"; then 6573 ac_cv_prog_CC="$CC" # Let the user override the test. 6574else 6575 ac_prog_rejected=no 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6584 ac_prog_rejected=yes 6585 continue 6586 fi 6587 ac_cv_prog_CC="cc" 6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592 done 6593IFS=$as_save_IFS 6594 6595if test $ac_prog_rejected = yes; then 6596 # We found a bogon in the path, so make sure we never use it. 6597 set dummy $ac_cv_prog_CC 6598 shift 6599 if test $# != 0; then 6600 # We chose a different compiler from the bogus one. 6601 # However, it has the same basename, so the bogon will be chosen 6602 # first if we set CC to just the basename; use the full file name. 6603 shift 6604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6605 fi 6606fi 6607fi 6608fi 6609CC=$ac_cv_prog_CC 6610if test -n "$CC"; then 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6612$as_echo "$CC" >&6; } 6613else 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6615$as_echo "no" >&6; } 6616fi 6617 6618 6619fi 6620if test -z "$CC"; then 6621 if test -n "$ac_tool_prefix"; then 6622 for ac_prog in cl.exe 6623 do 6624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6625set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627$as_echo_n "checking for $ac_word... " >&6; } 6628if ${ac_cv_prog_CC+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 if test -n "$CC"; then 6632 ac_cv_prog_CC="$CC" # Let the user override the test. 6633else 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6643 break 2 6644 fi 6645done 6646 done 6647IFS=$as_save_IFS 6648 6649fi 6650fi 6651CC=$ac_cv_prog_CC 6652if test -n "$CC"; then 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6654$as_echo "$CC" >&6; } 6655else 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6657$as_echo "no" >&6; } 6658fi 6659 6660 6661 test -n "$CC" && break 6662 done 6663fi 6664if test -z "$CC"; then 6665 ac_ct_CC=$CC 6666 for ac_prog in cl.exe 6667do 6668 # Extract the first word of "$ac_prog", so it can be a program name with args. 6669set dummy $ac_prog; ac_word=$2 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671$as_echo_n "checking for $ac_word... " >&6; } 6672if ${ac_cv_prog_ac_ct_CC+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 if test -n "$ac_ct_CC"; then 6676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6685 ac_cv_prog_ac_ct_CC="$ac_prog" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695ac_ct_CC=$ac_cv_prog_ac_ct_CC 6696if test -n "$ac_ct_CC"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6698$as_echo "$ac_ct_CC" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703 6704 6705 test -n "$ac_ct_CC" && break 6706done 6707 6708 if test "x$ac_ct_CC" = x; then 6709 CC="" 6710 else 6711 case $cross_compiling:$ac_tool_warned in 6712yes:) 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6715ac_tool_warned=yes ;; 6716esac 6717 CC=$ac_ct_CC 6718 fi 6719fi 6720 6721fi 6722 6723 6724test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6726as_fn_error $? "no acceptable C compiler found in \$PATH 6727See \`config.log' for more details" "$LINENO" 5; } 6728 6729# Provide some information about the compiler. 6730$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6731set X $ac_compile 6732ac_compiler=$2 6733for ac_option in --version -v -V -qversion; do 6734 { { ac_try="$ac_compiler $ac_option >&5" 6735case "(($ac_try" in 6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6737 *) ac_try_echo=$ac_try;; 6738esac 6739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6740$as_echo "$ac_try_echo"; } >&5 6741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6742 ac_status=$? 6743 if test -s conftest.err; then 6744 sed '10a\ 6745... rest of stderr output deleted ... 6746 10q' conftest.err >conftest.er1 6747 cat conftest.er1 >&5 6748 fi 6749 rm -f conftest.er1 conftest.err 6750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6751 test $ac_status = 0; } 6752done 6753 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6755$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6756if ${ac_cv_c_compiler_gnu+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761 6762int 6763main () 6764{ 6765#ifndef __GNUC__ 6766 choke me 6767#endif 6768 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773if ac_fn_c_try_compile "$LINENO"; then : 6774 ac_compiler_gnu=yes 6775else 6776 ac_compiler_gnu=no 6777fi 6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779ac_cv_c_compiler_gnu=$ac_compiler_gnu 6780 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6783$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6784if test $ac_compiler_gnu = yes; then 6785 GCC=yes 6786else 6787 GCC= 6788fi 6789ac_test_CFLAGS=${CFLAGS+set} 6790ac_save_CFLAGS=$CFLAGS 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6792$as_echo_n "checking whether $CC accepts -g... " >&6; } 6793if ${ac_cv_prog_cc_g+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 ac_save_c_werror_flag=$ac_c_werror_flag 6797 ac_c_werror_flag=yes 6798 ac_cv_prog_cc_g=no 6799 CFLAGS="-g" 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802 6803int 6804main () 6805{ 6806 6807 ; 6808 return 0; 6809} 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO"; then : 6812 ac_cv_prog_cc_g=yes 6813else 6814 CFLAGS="" 6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6816/* end confdefs.h. */ 6817 6818int 6819main () 6820{ 6821 6822 ; 6823 return 0; 6824} 6825_ACEOF 6826if ac_fn_c_try_compile "$LINENO"; then : 6827 6828else 6829 ac_c_werror_flag=$ac_save_c_werror_flag 6830 CFLAGS="-g" 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833 6834int 6835main () 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_compile "$LINENO"; then : 6843 ac_cv_prog_cc_g=yes 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850 ac_c_werror_flag=$ac_save_c_werror_flag 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6853$as_echo "$ac_cv_prog_cc_g" >&6; } 6854if test "$ac_test_CFLAGS" = set; then 6855 CFLAGS=$ac_save_CFLAGS 6856elif test $ac_cv_prog_cc_g = yes; then 6857 if test "$GCC" = yes; then 6858 CFLAGS="-g -O2" 6859 else 6860 CFLAGS="-g" 6861 fi 6862else 6863 if test "$GCC" = yes; then 6864 CFLAGS="-O2" 6865 else 6866 CFLAGS= 6867 fi 6868fi 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6870$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6871if ${ac_cv_prog_cc_c89+:} false; then : 6872 $as_echo_n "(cached) " >&6 6873else 6874 ac_cv_prog_cc_c89=no 6875ac_save_CC=$CC 6876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878#include <stdarg.h> 6879#include <stdio.h> 6880struct stat; 6881/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6882struct buf { int x; }; 6883FILE * (*rcsopen) (struct buf *, struct stat *, int); 6884static char *e (p, i) 6885 char **p; 6886 int i; 6887{ 6888 return p[i]; 6889} 6890static char *f (char * (*g) (char **, int), char **p, ...) 6891{ 6892 char *s; 6893 va_list v; 6894 va_start (v,p); 6895 s = g (p, va_arg (v,int)); 6896 va_end (v); 6897 return s; 6898} 6899 6900/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6901 function prototypes and stuff, but not '\xHH' hex character constants. 6902 These don't provoke an error unfortunately, instead are silently treated 6903 as 'x'. The following induces an error, until -std is added to get 6904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6905 array size at least. It's necessary to write '\x00'==0 to get something 6906 that's true only with -std. */ 6907int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6908 6909/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6910 inside strings and character constants. */ 6911#define FOO(x) 'x' 6912int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6913 6914int test (int i, double x); 6915struct s1 {int (*f) (int a);}; 6916struct s2 {int (*f) (double a);}; 6917int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6918int argc; 6919char **argv; 6920int 6921main () 6922{ 6923return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6930do 6931 CC="$ac_save_CC $ac_arg" 6932 if ac_fn_c_try_compile "$LINENO"; then : 6933 ac_cv_prog_cc_c89=$ac_arg 6934fi 6935rm -f core conftest.err conftest.$ac_objext 6936 test "x$ac_cv_prog_cc_c89" != "xno" && break 6937done 6938rm -f conftest.$ac_ext 6939CC=$ac_save_CC 6940 6941fi 6942# AC_CACHE_VAL 6943case "x$ac_cv_prog_cc_c89" in 6944 x) 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6946$as_echo "none needed" >&6; } ;; 6947 xno) 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6949$as_echo "unsupported" >&6; } ;; 6950 *) 6951 CC="$CC $ac_cv_prog_cc_c89" 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6953$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6954esac 6955if test "x$ac_cv_prog_cc_c89" != xno; then : 6956 6957fi 6958 6959ac_ext=c 6960ac_cpp='$CPP $CPPFLAGS' 6961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6963ac_compiler_gnu=$ac_cv_c_compiler_gnu 6964 6965ac_ext=c 6966ac_cpp='$CPP $CPPFLAGS' 6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6969ac_compiler_gnu=$ac_cv_c_compiler_gnu 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6971$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6972if ${am_cv_prog_cc_c_o+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977 6978int 6979main () 6980{ 6981 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986 # Make sure it works both with $CC and with simple cc. 6987 # Following AC_PROG_CC_C_O, we do the test twice because some 6988 # compilers refuse to overwrite an existing .o file with -o, 6989 # though they will create one. 6990 am_cv_prog_cc_c_o=yes 6991 for am_i in 1 2; do 6992 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6993 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6994 ac_status=$? 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); } \ 6997 && test -f conftest2.$ac_objext; then 6998 : OK 6999 else 7000 am_cv_prog_cc_c_o=no 7001 break 7002 fi 7003 done 7004 rm -f core conftest* 7005 unset am_i 7006fi 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 7008$as_echo "$am_cv_prog_cc_c_o" >&6; } 7009if test "$am_cv_prog_cc_c_o" != yes; then 7010 # Losing compiler, so override with the script. 7011 # FIXME: It is wrong to rewrite CC. 7012 # But if we don't then we get into trouble of one sort or another. 7013 # A longer-term fix would be to have automake use am__CC in this case, 7014 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7015 CC="$am_aux_dir/compile $CC" 7016fi 7017ac_ext=c 7018ac_cpp='$CPP $CPPFLAGS' 7019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7021ac_compiler_gnu=$ac_cv_c_compiler_gnu 7022 7023 7024depcc="$CC" am_compiler_list= 7025 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7027$as_echo_n "checking dependency style of $depcc... " >&6; } 7028if ${am_cv_CC_dependencies_compiler_type+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7032 # We make a subdir and do the tests there. Otherwise we can end up 7033 # making bogus files that we don't know about and never remove. For 7034 # instance it was reported that on HP-UX the gcc test will end up 7035 # making a dummy file named 'D' -- because '-MD' means "put the output 7036 # in D". 7037 rm -rf conftest.dir 7038 mkdir conftest.dir 7039 # Copy depcomp to subdir because otherwise we won't find it if we're 7040 # using a relative directory. 7041 cp "$am_depcomp" conftest.dir 7042 cd conftest.dir 7043 # We will build objects and dependencies in a subdirectory because 7044 # it helps to detect inapplicable dependency modes. For instance 7045 # both Tru64's cc and ICC support -MD to output dependencies as a 7046 # side effect of compilation, but ICC will put the dependencies in 7047 # the current directory while Tru64 will put them in the object 7048 # directory. 7049 mkdir sub 7050 7051 am_cv_CC_dependencies_compiler_type=none 7052 if test "$am_compiler_list" = ""; then 7053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7054 fi 7055 am__universal=false 7056 case " $depcc " in #( 7057 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7058 esac 7059 7060 for depmode in $am_compiler_list; do 7061 # Setup a source with many dependencies, because some compilers 7062 # like to wrap large dependency lists on column 80 (with \), and 7063 # we should not choose a depcomp mode which is confused by this. 7064 # 7065 # We need to recreate these files for each test, as the compiler may 7066 # overwrite some of them when testing with obscure command lines. 7067 # This happens at least with the AIX C compiler. 7068 : > sub/conftest.c 7069 for i in 1 2 3 4 5 6; do 7070 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7072 # Solaris 10 /bin/sh. 7073 echo '/* dummy */' > sub/conftst$i.h 7074 done 7075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7076 7077 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7078 # mode. It turns out that the SunPro C++ compiler does not properly 7079 # handle '-M -o', and we need to detect this. Also, some Intel 7080 # versions had trouble with output in subdirs. 7081 am__obj=sub/conftest.${OBJEXT-o} 7082 am__minus_obj="-o $am__obj" 7083 case $depmode in 7084 gcc) 7085 # This depmode causes a compiler race in universal mode. 7086 test "$am__universal" = false || continue 7087 ;; 7088 nosideeffect) 7089 # After this tag, mechanisms are not by side-effect, so they'll 7090 # only be used when explicitly requested. 7091 if test "x$enable_dependency_tracking" = xyes; then 7092 continue 7093 else 7094 break 7095 fi 7096 ;; 7097 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7098 # This compiler won't grok '-c -o', but also, the minuso test has 7099 # not run yet. These depmodes are late enough in the game, and 7100 # so weak that their functioning should not be impacted. 7101 am__obj=conftest.${OBJEXT-o} 7102 am__minus_obj= 7103 ;; 7104 none) break ;; 7105 esac 7106 if depmode=$depmode \ 7107 source=sub/conftest.c object=$am__obj \ 7108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7110 >/dev/null 2>conftest.err && 7111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7115 # icc doesn't choke on unknown options, it will just issue warnings 7116 # or remarks (even with -Werror). So we grep stderr for any message 7117 # that says an option was ignored or not supported. 7118 # When given -MP, icc 7.0 and 7.1 complain thusly: 7119 # icc: Command line warning: ignoring option '-M'; no argument required 7120 # The diagnosis changed in icc 8.0: 7121 # icc: Command line remark: option '-MP' not supported 7122 if (grep 'ignoring option' conftest.err || 7123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7124 am_cv_CC_dependencies_compiler_type=$depmode 7125 break 7126 fi 7127 fi 7128 done 7129 7130 cd .. 7131 rm -rf conftest.dir 7132else 7133 am_cv_CC_dependencies_compiler_type=none 7134fi 7135 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7138$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 7139CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7140 7141 if 7142 test "x$enable_dependency_tracking" != xno \ 7143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7144 am__fastdepCC_TRUE= 7145 am__fastdepCC_FALSE='#' 7146else 7147 am__fastdepCC_TRUE='#' 7148 am__fastdepCC_FALSE= 7149fi 7150 7151 7152ac_ext=cpp 7153ac_cpp='$CXXCPP $CPPFLAGS' 7154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7157if test -z "$CXX"; then 7158 if test -n "$CCC"; then 7159 CXX=$CCC 7160 else 7161 if test -n "$ac_tool_prefix"; then 7162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7163 do 7164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7167$as_echo_n "checking for $ac_word... " >&6; } 7168if ${ac_cv_prog_CXX+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 if test -n "$CXX"; then 7172 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7173else 7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175for as_dir in $PATH 7176do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7181 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185done 7186 done 7187IFS=$as_save_IFS 7188 7189fi 7190fi 7191CXX=$ac_cv_prog_CXX 7192if test -n "$CXX"; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7194$as_echo "$CXX" >&6; } 7195else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197$as_echo "no" >&6; } 7198fi 7199 7200 7201 test -n "$CXX" && break 7202 done 7203fi 7204if test -z "$CXX"; then 7205 ac_ct_CXX=$CXX 7206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7207do 7208 # Extract the first word of "$ac_prog", so it can be a program name with args. 7209set dummy $ac_prog; ac_word=$2 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7211$as_echo_n "checking for $ac_word... " >&6; } 7212if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 if test -n "$ac_ct_CXX"; then 7216 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7217else 7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219for as_dir in $PATH 7220do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_prog_ac_ct_CXX="$ac_prog" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229done 7230 done 7231IFS=$as_save_IFS 7232 7233fi 7234fi 7235ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7236if test -n "$ac_ct_CXX"; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7238$as_echo "$ac_ct_CXX" >&6; } 7239else 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7241$as_echo "no" >&6; } 7242fi 7243 7244 7245 test -n "$ac_ct_CXX" && break 7246done 7247 7248 if test "x$ac_ct_CXX" = x; then 7249 CXX="g++" 7250 else 7251 case $cross_compiling:$ac_tool_warned in 7252yes:) 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7255ac_tool_warned=yes ;; 7256esac 7257 CXX=$ac_ct_CXX 7258 fi 7259fi 7260 7261 fi 7262fi 7263# Provide some information about the compiler. 7264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7265set X $ac_compile 7266ac_compiler=$2 7267for ac_option in --version -v -V -qversion; do 7268 { { ac_try="$ac_compiler $ac_option >&5" 7269case "(($ac_try" in 7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7271 *) ac_try_echo=$ac_try;; 7272esac 7273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7274$as_echo "$ac_try_echo"; } >&5 7275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7276 ac_status=$? 7277 if test -s conftest.err; then 7278 sed '10a\ 7279... rest of stderr output deleted ... 7280 10q' conftest.err >conftest.er1 7281 cat conftest.er1 >&5 7282 fi 7283 rm -f conftest.er1 conftest.err 7284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7285 test $ac_status = 0; } 7286done 7287 7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7289$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7290if ${ac_cv_cxx_compiler_gnu+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292else 7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294/* end confdefs.h. */ 7295 7296int 7297main () 7298{ 7299#ifndef __GNUC__ 7300 choke me 7301#endif 7302 7303 ; 7304 return 0; 7305} 7306_ACEOF 7307if ac_fn_cxx_try_compile "$LINENO"; then : 7308 ac_compiler_gnu=yes 7309else 7310 ac_compiler_gnu=no 7311fi 7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7313ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7314 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7317$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7318if test $ac_compiler_gnu = yes; then 7319 GXX=yes 7320else 7321 GXX= 7322fi 7323ac_test_CXXFLAGS=${CXXFLAGS+set} 7324ac_save_CXXFLAGS=$CXXFLAGS 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7326$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7327if ${ac_cv_prog_cxx_g+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7331 ac_cxx_werror_flag=yes 7332 ac_cv_prog_cxx_g=no 7333 CXXFLAGS="-g" 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_cxx_try_compile "$LINENO"; then : 7346 ac_cv_prog_cxx_g=yes 7347else 7348 CXXFLAGS="" 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351 7352int 7353main () 7354{ 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_cxx_try_compile "$LINENO"; then : 7361 7362else 7363 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7364 CXXFLAGS="-g" 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_cxx_try_compile "$LINENO"; then : 7377 ac_cv_prog_cxx_g=yes 7378fi 7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7380fi 7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7385fi 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7387$as_echo "$ac_cv_prog_cxx_g" >&6; } 7388if test "$ac_test_CXXFLAGS" = set; then 7389 CXXFLAGS=$ac_save_CXXFLAGS 7390elif test $ac_cv_prog_cxx_g = yes; then 7391 if test "$GXX" = yes; then 7392 CXXFLAGS="-g -O2" 7393 else 7394 CXXFLAGS="-g" 7395 fi 7396else 7397 if test "$GXX" = yes; then 7398 CXXFLAGS="-O2" 7399 else 7400 CXXFLAGS= 7401 fi 7402fi 7403ac_ext=c 7404ac_cpp='$CPP $CPPFLAGS' 7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7407ac_compiler_gnu=$ac_cv_c_compiler_gnu 7408 7409depcc="$CXX" am_compiler_list= 7410 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7412$as_echo_n "checking dependency style of $depcc... " >&6; } 7413if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7417 # We make a subdir and do the tests there. Otherwise we can end up 7418 # making bogus files that we don't know about and never remove. For 7419 # instance it was reported that on HP-UX the gcc test will end up 7420 # making a dummy file named 'D' -- because '-MD' means "put the output 7421 # in D". 7422 rm -rf conftest.dir 7423 mkdir conftest.dir 7424 # Copy depcomp to subdir because otherwise we won't find it if we're 7425 # using a relative directory. 7426 cp "$am_depcomp" conftest.dir 7427 cd conftest.dir 7428 # We will build objects and dependencies in a subdirectory because 7429 # it helps to detect inapplicable dependency modes. For instance 7430 # both Tru64's cc and ICC support -MD to output dependencies as a 7431 # side effect of compilation, but ICC will put the dependencies in 7432 # the current directory while Tru64 will put them in the object 7433 # directory. 7434 mkdir sub 7435 7436 am_cv_CXX_dependencies_compiler_type=none 7437 if test "$am_compiler_list" = ""; then 7438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7439 fi 7440 am__universal=false 7441 case " $depcc " in #( 7442 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7443 esac 7444 7445 for depmode in $am_compiler_list; do 7446 # Setup a source with many dependencies, because some compilers 7447 # like to wrap large dependency lists on column 80 (with \), and 7448 # we should not choose a depcomp mode which is confused by this. 7449 # 7450 # We need to recreate these files for each test, as the compiler may 7451 # overwrite some of them when testing with obscure command lines. 7452 # This happens at least with the AIX C compiler. 7453 : > sub/conftest.c 7454 for i in 1 2 3 4 5 6; do 7455 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7456 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7457 # Solaris 10 /bin/sh. 7458 echo '/* dummy */' > sub/conftst$i.h 7459 done 7460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7461 7462 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7463 # mode. It turns out that the SunPro C++ compiler does not properly 7464 # handle '-M -o', and we need to detect this. Also, some Intel 7465 # versions had trouble with output in subdirs. 7466 am__obj=sub/conftest.${OBJEXT-o} 7467 am__minus_obj="-o $am__obj" 7468 case $depmode in 7469 gcc) 7470 # This depmode causes a compiler race in universal mode. 7471 test "$am__universal" = false || continue 7472 ;; 7473 nosideeffect) 7474 # After this tag, mechanisms are not by side-effect, so they'll 7475 # only be used when explicitly requested. 7476 if test "x$enable_dependency_tracking" = xyes; then 7477 continue 7478 else 7479 break 7480 fi 7481 ;; 7482 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7483 # This compiler won't grok '-c -o', but also, the minuso test has 7484 # not run yet. These depmodes are late enough in the game, and 7485 # so weak that their functioning should not be impacted. 7486 am__obj=conftest.${OBJEXT-o} 7487 am__minus_obj= 7488 ;; 7489 none) break ;; 7490 esac 7491 if depmode=$depmode \ 7492 source=sub/conftest.c object=$am__obj \ 7493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7494 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7495 >/dev/null 2>conftest.err && 7496 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7498 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7500 # icc doesn't choke on unknown options, it will just issue warnings 7501 # or remarks (even with -Werror). So we grep stderr for any message 7502 # that says an option was ignored or not supported. 7503 # When given -MP, icc 7.0 and 7.1 complain thusly: 7504 # icc: Command line warning: ignoring option '-M'; no argument required 7505 # The diagnosis changed in icc 8.0: 7506 # icc: Command line remark: option '-MP' not supported 7507 if (grep 'ignoring option' conftest.err || 7508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7509 am_cv_CXX_dependencies_compiler_type=$depmode 7510 break 7511 fi 7512 fi 7513 done 7514 7515 cd .. 7516 rm -rf conftest.dir 7517else 7518 am_cv_CXX_dependencies_compiler_type=none 7519fi 7520 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7523$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7524CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7525 7526 if 7527 test "x$enable_dependency_tracking" != xno \ 7528 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7529 am__fastdepCXX_TRUE= 7530 am__fastdepCXX_FALSE='#' 7531else 7532 am__fastdepCXX_TRUE='#' 7533 am__fastdepCXX_FALSE= 7534fi 7535 7536 7537 case $ac_cv_prog_cc_stdc in #( 7538 no) : 7539 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 7540 *) : 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 7542$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 7543if ${ac_cv_prog_cc_c99+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 ac_cv_prog_cc_c99=no 7547ac_save_CC=$CC 7548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550#include <stdarg.h> 7551#include <stdbool.h> 7552#include <stdlib.h> 7553#include <wchar.h> 7554#include <stdio.h> 7555 7556// Check varargs macros. These examples are taken from C99 6.10.3.5. 7557#define debug(...) fprintf (stderr, __VA_ARGS__) 7558#define showlist(...) puts (#__VA_ARGS__) 7559#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 7560static void 7561test_varargs_macros (void) 7562{ 7563 int x = 1234; 7564 int y = 5678; 7565 debug ("Flag"); 7566 debug ("X = %d\n", x); 7567 showlist (The first, second, and third items.); 7568 report (x>y, "x is %d but y is %d", x, y); 7569} 7570 7571// Check long long types. 7572#define BIG64 18446744073709551615ull 7573#define BIG32 4294967295ul 7574#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 7575#if !BIG_OK 7576 your preprocessor is broken; 7577#endif 7578#if BIG_OK 7579#else 7580 your preprocessor is broken; 7581#endif 7582static long long int bignum = -9223372036854775807LL; 7583static unsigned long long int ubignum = BIG64; 7584 7585struct incomplete_array 7586{ 7587 int datasize; 7588 double data[]; 7589}; 7590 7591struct named_init { 7592 int number; 7593 const wchar_t *name; 7594 double average; 7595}; 7596 7597typedef const char *ccp; 7598 7599static inline int 7600test_restrict (ccp restrict text) 7601{ 7602 // See if C++-style comments work. 7603 // Iterate through items via the restricted pointer. 7604 // Also check for declarations in for loops. 7605 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 7606 continue; 7607 return 0; 7608} 7609 7610// Check varargs and va_copy. 7611static void 7612test_varargs (const char *format, ...) 7613{ 7614 va_list args; 7615 va_start (args, format); 7616 va_list args_copy; 7617 va_copy (args_copy, args); 7618 7619 const char *str; 7620 int number; 7621 float fnumber; 7622 7623 while (*format) 7624 { 7625 switch (*format++) 7626 { 7627 case 's': // string 7628 str = va_arg (args_copy, const char *); 7629 break; 7630 case 'd': // int 7631 number = va_arg (args_copy, int); 7632 break; 7633 case 'f': // float 7634 fnumber = va_arg (args_copy, double); 7635 break; 7636 default: 7637 break; 7638 } 7639 } 7640 va_end (args_copy); 7641 va_end (args); 7642} 7643 7644int 7645main () 7646{ 7647 7648 // Check bool. 7649 _Bool success = false; 7650 7651 // Check restrict. 7652 if (test_restrict ("String literal") == 0) 7653 success = true; 7654 char *restrict newvar = "Another string"; 7655 7656 // Check varargs. 7657 test_varargs ("s, d' f .", "string", 65, 34.234); 7658 test_varargs_macros (); 7659 7660 // Check flexible array members. 7661 struct incomplete_array *ia = 7662 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 7663 ia->datasize = 10; 7664 for (int i = 0; i < ia->datasize; ++i) 7665 ia->data[i] = i * 1.234; 7666 7667 // Check named initializers. 7668 struct named_init ni = { 7669 .number = 34, 7670 .name = L"Test wide string", 7671 .average = 543.34343, 7672 }; 7673 7674 ni.number = 58; 7675 7676 int dynamic_array[ni.number]; 7677 dynamic_array[ni.number - 1] = 543; 7678 7679 // work around unused variable warnings 7680 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7681 || dynamic_array[ni.number - 1] != 543); 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7688do 7689 CC="$ac_save_CC $ac_arg" 7690 if ac_fn_c_try_compile "$LINENO"; then : 7691 ac_cv_prog_cc_c99=$ac_arg 7692fi 7693rm -f core conftest.err conftest.$ac_objext 7694 test "x$ac_cv_prog_cc_c99" != "xno" && break 7695done 7696rm -f conftest.$ac_ext 7697CC=$ac_save_CC 7698 7699fi 7700# AC_CACHE_VAL 7701case "x$ac_cv_prog_cc_c99" in 7702 x) 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7704$as_echo "none needed" >&6; } ;; 7705 xno) 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7707$as_echo "unsupported" >&6; } ;; 7708 *) 7709 CC="$CC $ac_cv_prog_cc_c99" 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7711$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7712esac 7713if test "x$ac_cv_prog_cc_c99" != xno; then : 7714 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7715else 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7717$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7718if ${ac_cv_prog_cc_c89+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 ac_cv_prog_cc_c89=no 7722ac_save_CC=$CC 7723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725#include <stdarg.h> 7726#include <stdio.h> 7727struct stat; 7728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7729struct buf { int x; }; 7730FILE * (*rcsopen) (struct buf *, struct stat *, int); 7731static char *e (p, i) 7732 char **p; 7733 int i; 7734{ 7735 return p[i]; 7736} 7737static char *f (char * (*g) (char **, int), char **p, ...) 7738{ 7739 char *s; 7740 va_list v; 7741 va_start (v,p); 7742 s = g (p, va_arg (v,int)); 7743 va_end (v); 7744 return s; 7745} 7746 7747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7748 function prototypes and stuff, but not '\xHH' hex character constants. 7749 These don't provoke an error unfortunately, instead are silently treated 7750 as 'x'. The following induces an error, until -std is added to get 7751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7752 array size at least. It's necessary to write '\x00'==0 to get something 7753 that's true only with -std. */ 7754int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7755 7756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7757 inside strings and character constants. */ 7758#define FOO(x) 'x' 7759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7760 7761int test (int i, double x); 7762struct s1 {int (*f) (int a);}; 7763struct s2 {int (*f) (double a);}; 7764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7765int argc; 7766char **argv; 7767int 7768main () 7769{ 7770return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7777do 7778 CC="$ac_save_CC $ac_arg" 7779 if ac_fn_c_try_compile "$LINENO"; then : 7780 ac_cv_prog_cc_c89=$ac_arg 7781fi 7782rm -f core conftest.err conftest.$ac_objext 7783 test "x$ac_cv_prog_cc_c89" != "xno" && break 7784done 7785rm -f conftest.$ac_ext 7786CC=$ac_save_CC 7787 7788fi 7789# AC_CACHE_VAL 7790case "x$ac_cv_prog_cc_c89" in 7791 x) 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7793$as_echo "none needed" >&6; } ;; 7794 xno) 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7796$as_echo "unsupported" >&6; } ;; 7797 *) 7798 CC="$CC $ac_cv_prog_cc_c89" 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7800$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7801esac 7802if test "x$ac_cv_prog_cc_c89" != xno; then : 7803 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7804else 7805 ac_cv_prog_cc_stdc=no 7806fi 7807 7808fi 7809 ;; 7810esac 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 7812$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 7813 if ${ac_cv_prog_cc_stdc+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815fi 7816 7817 case $ac_cv_prog_cc_stdc in #( 7818 no) : 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7820$as_echo "unsupported" >&6; } ;; #( 7821 '') : 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7823$as_echo "none needed" >&6; } ;; #( 7824 *) : 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 7826$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 7827esac 7828 7829ac_ext=c 7830ac_cpp='$CPP $CPPFLAGS' 7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7833ac_compiler_gnu=$ac_cv_c_compiler_gnu 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7835$as_echo_n "checking how to run the C preprocessor... " >&6; } 7836# On Suns, sometimes $CPP names a directory. 7837if test -n "$CPP" && test -d "$CPP"; then 7838 CPP= 7839fi 7840if test -z "$CPP"; then 7841 if ${ac_cv_prog_CPP+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 # Double quotes because CPP needs to be expanded 7845 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7846 do 7847 ac_preproc_ok=false 7848for ac_c_preproc_warn_flag in '' yes 7849do 7850 # Use a header file that comes with gcc, so configuring glibc 7851 # with a fresh cross-compiler works. 7852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7853 # <limits.h> exists even on freestanding compilers. 7854 # On the NeXT, cc -E runs the code through the compiler's parser, 7855 # not just through cpp. "Syntax error" is here to catch this case. 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858#ifdef __STDC__ 7859# include <limits.h> 7860#else 7861# include <assert.h> 7862#endif 7863 Syntax error 7864_ACEOF 7865if ac_fn_c_try_cpp "$LINENO"; then : 7866 7867else 7868 # Broken: fails on valid input. 7869continue 7870fi 7871rm -f conftest.err conftest.i conftest.$ac_ext 7872 7873 # OK, works on sane cases. Now check whether nonexistent headers 7874 # can be detected and how. 7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7876/* end confdefs.h. */ 7877#include <ac_nonexistent.h> 7878_ACEOF 7879if ac_fn_c_try_cpp "$LINENO"; then : 7880 # Broken: success on invalid input. 7881continue 7882else 7883 # Passes both tests. 7884ac_preproc_ok=: 7885break 7886fi 7887rm -f conftest.err conftest.i conftest.$ac_ext 7888 7889done 7890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7891rm -f conftest.i conftest.err conftest.$ac_ext 7892if $ac_preproc_ok; then : 7893 break 7894fi 7895 7896 done 7897 ac_cv_prog_CPP=$CPP 7898 7899fi 7900 CPP=$ac_cv_prog_CPP 7901else 7902 ac_cv_prog_CPP=$CPP 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7905$as_echo "$CPP" >&6; } 7906ac_preproc_ok=false 7907for ac_c_preproc_warn_flag in '' yes 7908do 7909 # Use a header file that comes with gcc, so configuring glibc 7910 # with a fresh cross-compiler works. 7911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7912 # <limits.h> exists even on freestanding compilers. 7913 # On the NeXT, cc -E runs the code through the compiler's parser, 7914 # not just through cpp. "Syntax error" is here to catch this case. 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917#ifdef __STDC__ 7918# include <limits.h> 7919#else 7920# include <assert.h> 7921#endif 7922 Syntax error 7923_ACEOF 7924if ac_fn_c_try_cpp "$LINENO"; then : 7925 7926else 7927 # Broken: fails on valid input. 7928continue 7929fi 7930rm -f conftest.err conftest.i conftest.$ac_ext 7931 7932 # OK, works on sane cases. Now check whether nonexistent headers 7933 # can be detected and how. 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936#include <ac_nonexistent.h> 7937_ACEOF 7938if ac_fn_c_try_cpp "$LINENO"; then : 7939 # Broken: success on invalid input. 7940continue 7941else 7942 # Passes both tests. 7943ac_preproc_ok=: 7944break 7945fi 7946rm -f conftest.err conftest.i conftest.$ac_ext 7947 7948done 7949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7950rm -f conftest.i conftest.err conftest.$ac_ext 7951if $ac_preproc_ok; then : 7952 7953else 7954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7956as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7957See \`config.log' for more details" "$LINENO" 5; } 7958fi 7959 7960ac_ext=c 7961ac_cpp='$CPP $CPPFLAGS' 7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7964ac_compiler_gnu=$ac_cv_c_compiler_gnu 7965 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7967$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7968if ${ac_cv_path_SED+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7972 for ac_i in 1 2 3 4 5 6 7; do 7973 ac_script="$ac_script$as_nl$ac_script" 7974 done 7975 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7976 { ac_script=; unset ac_script;} 7977 if test -z "$SED"; then 7978 ac_path_SED_found=false 7979 # Loop through the user's path and test for each of PROGNAME-LIST 7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981for as_dir in $PATH 7982do 7983 IFS=$as_save_IFS 7984 test -z "$as_dir" && as_dir=. 7985 for ac_prog in sed gsed; do 7986 for ac_exec_ext in '' $ac_executable_extensions; do 7987 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7988 as_fn_executable_p "$ac_path_SED" || continue 7989# Check for GNU ac_path_SED and select it if it is found. 7990 # Check for GNU $ac_path_SED 7991case `"$ac_path_SED" --version 2>&1` in 7992*GNU*) 7993 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7994*) 7995 ac_count=0 7996 $as_echo_n 0123456789 >"conftest.in" 7997 while : 7998 do 7999 cat "conftest.in" "conftest.in" >"conftest.tmp" 8000 mv "conftest.tmp" "conftest.in" 8001 cp "conftest.in" "conftest.nl" 8002 $as_echo '' >> "conftest.nl" 8003 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8005 as_fn_arith $ac_count + 1 && ac_count=$as_val 8006 if test $ac_count -gt ${ac_path_SED_max-0}; then 8007 # Best one so far, save it but keep looking for a better one 8008 ac_cv_path_SED="$ac_path_SED" 8009 ac_path_SED_max=$ac_count 8010 fi 8011 # 10*(2^10) chars as input seems more than enough 8012 test $ac_count -gt 10 && break 8013 done 8014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8015esac 8016 8017 $ac_path_SED_found && break 3 8018 done 8019 done 8020 done 8021IFS=$as_save_IFS 8022 if test -z "$ac_cv_path_SED"; then 8023 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8024 fi 8025else 8026 ac_cv_path_SED=$SED 8027fi 8028 8029fi 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8031$as_echo "$ac_cv_path_SED" >&6; } 8032 SED="$ac_cv_path_SED" 8033 rm -f conftest.sed 8034 8035test -z "$SED" && SED=sed 8036Xsed="$SED -e 1s/^X//" 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8049$as_echo_n "checking for fgrep... " >&6; } 8050if ${ac_cv_path_FGREP+:} false; then : 8051 $as_echo_n "(cached) " >&6 8052else 8053 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8054 then ac_cv_path_FGREP="$GREP -F" 8055 else 8056 if test -z "$FGREP"; then 8057 ac_path_FGREP_found=false 8058 # Loop through the user's path and test for each of PROGNAME-LIST 8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_prog in fgrep; do 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8067 as_fn_executable_p "$ac_path_FGREP" || continue 8068# Check for GNU ac_path_FGREP and select it if it is found. 8069 # Check for GNU $ac_path_FGREP 8070case `"$ac_path_FGREP" --version 2>&1` in 8071*GNU*) 8072 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8073*) 8074 ac_count=0 8075 $as_echo_n 0123456789 >"conftest.in" 8076 while : 8077 do 8078 cat "conftest.in" "conftest.in" >"conftest.tmp" 8079 mv "conftest.tmp" "conftest.in" 8080 cp "conftest.in" "conftest.nl" 8081 $as_echo 'FGREP' >> "conftest.nl" 8082 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8084 as_fn_arith $ac_count + 1 && ac_count=$as_val 8085 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8086 # Best one so far, save it but keep looking for a better one 8087 ac_cv_path_FGREP="$ac_path_FGREP" 8088 ac_path_FGREP_max=$ac_count 8089 fi 8090 # 10*(2^10) chars as input seems more than enough 8091 test $ac_count -gt 10 && break 8092 done 8093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8094esac 8095 8096 $ac_path_FGREP_found && break 3 8097 done 8098 done 8099 done 8100IFS=$as_save_IFS 8101 if test -z "$ac_cv_path_FGREP"; then 8102 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8103 fi 8104else 8105 ac_cv_path_FGREP=$FGREP 8106fi 8107 8108 fi 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8111$as_echo "$ac_cv_path_FGREP" >&6; } 8112 FGREP="$ac_cv_path_FGREP" 8113 8114 8115test -z "$GREP" && GREP=grep 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8134ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8135ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8136 8137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8138$as_echo_n "checking how to print strings... " >&6; } 8139# Test print first, because it will be a builtin if present. 8140if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8141 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8142 ECHO='print -r --' 8143elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8144 ECHO='printf %s\n' 8145else 8146 # Use this function as a fallback that always works. 8147 func_fallback_echo () 8148 { 8149 eval 'cat <<_LTECHO_EOF 8150$1 8151_LTECHO_EOF' 8152 } 8153 ECHO='func_fallback_echo' 8154fi 8155 8156# func_echo_all arg... 8157# Invoke $ECHO with all args, space-separated. 8158func_echo_all () 8159{ 8160 $ECHO "" 8161} 8162 8163case $ECHO in 8164 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8165$as_echo "printf" >&6; } ;; 8166 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8167$as_echo "print -r" >&6; } ;; 8168 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8169$as_echo "cat" >&6; } ;; 8170esac 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187# Check whether --with-gnu-ld was given. 8188if test "${with_gnu_ld+set}" = set; then : 8189 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8190else 8191 with_gnu_ld=no 8192fi 8193 8194ac_prog=ld 8195if test yes = "$GCC"; then 8196 # Check if gcc -print-prog-name=ld gives a path. 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8198$as_echo_n "checking for ld used by $CC... " >&6; } 8199 case $host in 8200 *-*-mingw*) 8201 # gcc leaves a trailing carriage return, which upsets mingw 8202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8203 *) 8204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8205 esac 8206 case $ac_prog in 8207 # Accept absolute paths. 8208 [\\/]* | ?:[\\/]*) 8209 re_direlt='/[^/][^/]*/\.\./' 8210 # Canonicalize the pathname of ld 8211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8214 done 8215 test -z "$LD" && LD=$ac_prog 8216 ;; 8217 "") 8218 # If it fails, then pretend we aren't using GCC. 8219 ac_prog=ld 8220 ;; 8221 *) 8222 # If it is relative, then search for the first ld in PATH. 8223 with_gnu_ld=unknown 8224 ;; 8225 esac 8226elif test yes = "$with_gnu_ld"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8228$as_echo_n "checking for GNU ld... " >&6; } 8229else 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8231$as_echo_n "checking for non-GNU ld... " >&6; } 8232fi 8233if ${lt_cv_path_LD+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 if test -z "$LD"; then 8237 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8238 for ac_dir in $PATH; do 8239 IFS=$lt_save_ifs 8240 test -z "$ac_dir" && ac_dir=. 8241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8242 lt_cv_path_LD=$ac_dir/$ac_prog 8243 # Check to see if the program is GNU ld. I'd rather use --version, 8244 # but apparently some variants of GNU ld only accept -v. 8245 # Break only if it was the GNU/non-GNU ld that we prefer. 8246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8247 *GNU* | *'with BFD'*) 8248 test no != "$with_gnu_ld" && break 8249 ;; 8250 *) 8251 test yes != "$with_gnu_ld" && break 8252 ;; 8253 esac 8254 fi 8255 done 8256 IFS=$lt_save_ifs 8257else 8258 lt_cv_path_LD=$LD # Let the user override the test with a path. 8259fi 8260fi 8261 8262LD=$lt_cv_path_LD 8263if test -n "$LD"; then 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8265$as_echo "$LD" >&6; } 8266else 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8268$as_echo "no" >&6; } 8269fi 8270test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8272$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8273if ${lt_cv_prog_gnu_ld+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8277case `$LD -v 2>&1 </dev/null` in 8278*GNU* | *'with BFD'*) 8279 lt_cv_prog_gnu_ld=yes 8280 ;; 8281*) 8282 lt_cv_prog_gnu_ld=no 8283 ;; 8284esac 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8287$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8288with_gnu_ld=$lt_cv_prog_gnu_ld 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8300$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8301if ${ac_cv_prog_cc_c99+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 ac_cv_prog_cc_c99=no 8305ac_save_CC=$CC 8306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307/* end confdefs.h. */ 8308#include <stdarg.h> 8309#include <stdbool.h> 8310#include <stdlib.h> 8311#include <wchar.h> 8312#include <stdio.h> 8313 8314// Check varargs macros. These examples are taken from C99 6.10.3.5. 8315#define debug(...) fprintf (stderr, __VA_ARGS__) 8316#define showlist(...) puts (#__VA_ARGS__) 8317#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8318static void 8319test_varargs_macros (void) 8320{ 8321 int x = 1234; 8322 int y = 5678; 8323 debug ("Flag"); 8324 debug ("X = %d\n", x); 8325 showlist (The first, second, and third items.); 8326 report (x>y, "x is %d but y is %d", x, y); 8327} 8328 8329// Check long long types. 8330#define BIG64 18446744073709551615ull 8331#define BIG32 4294967295ul 8332#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8333#if !BIG_OK 8334 your preprocessor is broken; 8335#endif 8336#if BIG_OK 8337#else 8338 your preprocessor is broken; 8339#endif 8340static long long int bignum = -9223372036854775807LL; 8341static unsigned long long int ubignum = BIG64; 8342 8343struct incomplete_array 8344{ 8345 int datasize; 8346 double data[]; 8347}; 8348 8349struct named_init { 8350 int number; 8351 const wchar_t *name; 8352 double average; 8353}; 8354 8355typedef const char *ccp; 8356 8357static inline int 8358test_restrict (ccp restrict text) 8359{ 8360 // See if C++-style comments work. 8361 // Iterate through items via the restricted pointer. 8362 // Also check for declarations in for loops. 8363 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8364 continue; 8365 return 0; 8366} 8367 8368// Check varargs and va_copy. 8369static void 8370test_varargs (const char *format, ...) 8371{ 8372 va_list args; 8373 va_start (args, format); 8374 va_list args_copy; 8375 va_copy (args_copy, args); 8376 8377 const char *str; 8378 int number; 8379 float fnumber; 8380 8381 while (*format) 8382 { 8383 switch (*format++) 8384 { 8385 case 's': // string 8386 str = va_arg (args_copy, const char *); 8387 break; 8388 case 'd': // int 8389 number = va_arg (args_copy, int); 8390 break; 8391 case 'f': // float 8392 fnumber = va_arg (args_copy, double); 8393 break; 8394 default: 8395 break; 8396 } 8397 } 8398 va_end (args_copy); 8399 va_end (args); 8400} 8401 8402int 8403main () 8404{ 8405 8406 // Check bool. 8407 _Bool success = false; 8408 8409 // Check restrict. 8410 if (test_restrict ("String literal") == 0) 8411 success = true; 8412 char *restrict newvar = "Another string"; 8413 8414 // Check varargs. 8415 test_varargs ("s, d' f .", "string", 65, 34.234); 8416 test_varargs_macros (); 8417 8418 // Check flexible array members. 8419 struct incomplete_array *ia = 8420 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 8421 ia->datasize = 10; 8422 for (int i = 0; i < ia->datasize; ++i) 8423 ia->data[i] = i * 1.234; 8424 8425 // Check named initializers. 8426 struct named_init ni = { 8427 .number = 34, 8428 .name = L"Test wide string", 8429 .average = 543.34343, 8430 }; 8431 8432 ni.number = 58; 8433 8434 int dynamic_array[ni.number]; 8435 dynamic_array[ni.number - 1] = 543; 8436 8437 // work around unused variable warnings 8438 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 8439 || dynamic_array[ni.number - 1] != 543); 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 8446do 8447 CC="$ac_save_CC $ac_arg" 8448 if ac_fn_c_try_compile "$LINENO"; then : 8449 ac_cv_prog_cc_c99=$ac_arg 8450fi 8451rm -f core conftest.err conftest.$ac_objext 8452 test "x$ac_cv_prog_cc_c99" != "xno" && break 8453done 8454rm -f conftest.$ac_ext 8455CC=$ac_save_CC 8456 8457fi 8458# AC_CACHE_VAL 8459case "x$ac_cv_prog_cc_c99" in 8460 x) 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8462$as_echo "none needed" >&6; } ;; 8463 xno) 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8465$as_echo "unsupported" >&6; } ;; 8466 *) 8467 CC="$CC $ac_cv_prog_cc_c99" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8469$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 8470esac 8471if test "x$ac_cv_prog_cc_c99" != xno; then : 8472 8473fi 8474 8475 8476 8477ac_ext=c 8478ac_cpp='$CPP $CPPFLAGS' 8479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8481ac_compiler_gnu=$ac_cv_c_compiler_gnu 8482 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 8484$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 8485if ${ac_cv_cflags_warn_all+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 ac_cv_cflags_warn_all="no, unknown" 8489ac_save_CFLAGS="$CFLAGS" 8490for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 8491do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494 8495int 8496main () 8497{ 8498 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503if ac_fn_c_try_compile "$LINENO"; then : 8504 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 8505fi 8506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8507done 8508CFLAGS="$ac_save_CFLAGS" 8509 8510fi 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 8512$as_echo "$ac_cv_cflags_warn_all" >&6; } 8513 8514 8515case ".$ac_cv_cflags_warn_all" in 8516 .ok|.ok,*) ;; 8517 .|.no|.no,*) ;; 8518 *) 8519if ${CFLAGS+:} false; then : 8520 8521 case " $CFLAGS " in #( 8522 *" $ac_cv_cflags_warn_all "*) : 8523 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 8524 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 8525 ac_status=$? 8526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8527 test $ac_status = 0; } ;; #( 8528 *) : 8529 8530 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 8531 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8532 (: CFLAGS="$CFLAGS") 2>&5 8533 ac_status=$? 8534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8535 test $ac_status = 0; } 8536 ;; 8537esac 8538 8539else 8540 8541 CFLAGS=$ac_cv_cflags_warn_all 8542 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8543 (: CFLAGS="$CFLAGS") 2>&5 8544 ac_status=$? 8545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8546 test $ac_status = 0; } 8547 8548fi 8549 ;; 8550esac 8551 8552ac_ext=c 8553ac_cpp='$CPP $CPPFLAGS' 8554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8556ac_compiler_gnu=$ac_cv_c_compiler_gnu 8557 8558 8559 8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8561$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8562set x ${MAKE-make} 8563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8564if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 cat >conftest.make <<\_ACEOF 8568SHELL = /bin/sh 8569all: 8570 @echo '@@@%%%=$(MAKE)=@@@%%%' 8571_ACEOF 8572# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8573case `${MAKE-make} -f conftest.make 2>/dev/null` in 8574 *@@@%%%=?*=@@@%%%*) 8575 eval ac_cv_prog_make_${ac_make}_set=yes;; 8576 *) 8577 eval ac_cv_prog_make_${ac_make}_set=no;; 8578esac 8579rm -f conftest.make 8580fi 8581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8583$as_echo "yes" >&6; } 8584 SET_MAKE= 8585else 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8587$as_echo "no" >&6; } 8588 SET_MAKE="MAKE=${MAKE-make}" 8589fi 8590 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8592$as_echo_n "checking whether ln -s works... " >&6; } 8593LN_S=$as_ln_s 8594if test "$LN_S" = "ln -s"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8596$as_echo "yes" >&6; } 8597else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8599$as_echo "no, using $LN_S" >&6; } 8600fi 8601 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8603$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8604if ${ac_cv_path_SED+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8608 for ac_i in 1 2 3 4 5 6 7; do 8609 ac_script="$ac_script$as_nl$ac_script" 8610 done 8611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8612 { ac_script=; unset ac_script;} 8613 if test -z "$SED"; then 8614 ac_path_SED_found=false 8615 # Loop through the user's path and test for each of PROGNAME-LIST 8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8617for as_dir in $PATH 8618do 8619 IFS=$as_save_IFS 8620 test -z "$as_dir" && as_dir=. 8621 for ac_prog in sed gsed; do 8622 for ac_exec_ext in '' $ac_executable_extensions; do 8623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8624 as_fn_executable_p "$ac_path_SED" || continue 8625# Check for GNU ac_path_SED and select it if it is found. 8626 # Check for GNU $ac_path_SED 8627case `"$ac_path_SED" --version 2>&1` in 8628*GNU*) 8629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8630*) 8631 ac_count=0 8632 $as_echo_n 0123456789 >"conftest.in" 8633 while : 8634 do 8635 cat "conftest.in" "conftest.in" >"conftest.tmp" 8636 mv "conftest.tmp" "conftest.in" 8637 cp "conftest.in" "conftest.nl" 8638 $as_echo '' >> "conftest.nl" 8639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8641 as_fn_arith $ac_count + 1 && ac_count=$as_val 8642 if test $ac_count -gt ${ac_path_SED_max-0}; then 8643 # Best one so far, save it but keep looking for a better one 8644 ac_cv_path_SED="$ac_path_SED" 8645 ac_path_SED_max=$ac_count 8646 fi 8647 # 10*(2^10) chars as input seems more than enough 8648 test $ac_count -gt 10 && break 8649 done 8650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8651esac 8652 8653 $ac_path_SED_found && break 3 8654 done 8655 done 8656 done 8657IFS=$as_save_IFS 8658 if test -z "$ac_cv_path_SED"; then 8659 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8660 fi 8661else 8662 ac_cv_path_SED=$SED 8663fi 8664 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8667$as_echo "$ac_cv_path_SED" >&6; } 8668 SED="$ac_cv_path_SED" 8669 rm -f conftest.sed 8670 8671for ac_prog in gawk mawk nawk awk 8672do 8673 # Extract the first word of "$ac_prog", so it can be a program name with args. 8674set dummy $ac_prog; ac_word=$2 8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8676$as_echo_n "checking for $ac_word... " >&6; } 8677if ${ac_cv_prog_AWK+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 if test -n "$AWK"; then 8681 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8682else 8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8684for as_dir in $PATH 8685do 8686 IFS=$as_save_IFS 8687 test -z "$as_dir" && as_dir=. 8688 for ac_exec_ext in '' $ac_executable_extensions; do 8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8690 ac_cv_prog_AWK="$ac_prog" 8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8692 break 2 8693 fi 8694done 8695 done 8696IFS=$as_save_IFS 8697 8698fi 8699fi 8700AWK=$ac_cv_prog_AWK 8701if test -n "$AWK"; then 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8703$as_echo "$AWK" >&6; } 8704else 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8706$as_echo "no" >&6; } 8707fi 8708 8709 8710 test -n "$AWK" && break 8711done 8712 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 8714$as_echo_n "checking if malloc debugging is wanted... " >&6; } 8715 8716# Check whether --with-dmalloc was given. 8717if test "${with_dmalloc+set}" = set; then : 8718 withval=$with_dmalloc; if test "$withval" = yes; then 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8720$as_echo "yes" >&6; } 8721 8722$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 8723 8724 LIBS="$LIBS -ldmalloc" 8725 LDFLAGS="$LDFLAGS -g" 8726else 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8728$as_echo "no" >&6; } 8729fi 8730else 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8732$as_echo "no" >&6; } 8733fi 8734 8735 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8738$as_echo_n "checking for __attribute__... " >&6; } 8739if ${ax_cv___attribute__+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8743/* end confdefs.h. */ 8744#include <stdlib.h> 8745 static void foo(void) __attribute__ ((unused)); 8746 static void 8747 foo(void) { 8748 exit(1); 8749 } 8750 8751int 8752main () 8753{ 8754 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO"; then : 8760 ax_cv___attribute__=yes 8761else 8762 ax_cv___attribute__=no 8763 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766 8767fi 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8769$as_echo "$ax_cv___attribute__" >&6; } 8770 if test "$ax_cv___attribute__" = "yes"; then 8771 8772$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8773 8774 fi 8775 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 8777$as_echo_n "checking for C compiler vendor... " >&6; } 8778if ${ax_cv_c_compiler_vendor+:} false; then : 8779 $as_echo_n "(cached) " >&6 8780else 8781 # note: don't check for gcc first since some other compilers define __GNUC__ 8782 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 8783 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 8784 pathscale: __PATHCC__,__PATHSCALE__ 8785 clang: __clang__ 8786 cray: _CRAYC 8787 fujitsu: __FUJITSU 8788 gnu: __GNUC__ 8789 sun: __SUNPRO_C,__SUNPRO_CC 8790 hp: __HP_cc,__HP_aCC 8791 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 8792 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 8793 comeau: __COMO__ 8794 kai: __KCC 8795 lcc: __LCC__ 8796 sgi: __sgi,sgi 8797 microsoft: _MSC_VER 8798 metrowerks: __MWERKS__ 8799 watcom: __WATCOMC__ 8800 portland: __PGI 8801 tcc: __TINYC__ 8802 unknown: UNKNOWN" 8803 for ventest in $vendors; do 8804 case $ventest in 8805 *:) vendor=$ventest; continue ;; 8806 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 8807 esac 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810 8811int 8812main () 8813{ 8814 8815 #if !($vencpp) 8816 thisisanerror; 8817 #endif 8818 8819 ; 8820 return 0; 8821} 8822_ACEOF 8823if ac_fn_c_try_compile "$LINENO"; then : 8824 break 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8827 done 8828 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 8829 8830fi 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 8832$as_echo "$ax_cv_c_compiler_vendor" >&6; } 8833 8834 8835 8836 8837 8838 8839 8840# Check whether --with-gcc-arch was given. 8841if test "${with_gcc_arch+set}" = set; then : 8842 withval=$with_gcc_arch; ax_gcc_arch=$withval 8843else 8844 ax_gcc_arch=yes 8845fi 8846 8847 8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8849$as_echo_n "checking for gcc architecture flag... " >&6; } 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 8851$as_echo "" >&6; } 8852if ${ax_cv_gcc_archflag+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 8856ax_cv_gcc_archflag="unknown" 8857 8858if test "$GCC" = yes; then 8859 8860if test "x$ax_gcc_arch" = xyes; then 8861ax_gcc_arch="" 8862if test "$cross_compiling" = no; then 8863case $host_cpu in 8864 i[3456]86*|x86_64*|amd64*) # use cpuid codes 8865 8866ac_ext=c 8867ac_cpp='$CPP $CPPFLAGS' 8868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8870ac_compiler_gnu=$ac_cv_c_compiler_gnu 8871 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 8873$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 8874if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 if test "$cross_compiling" = yes; then : 8878 ax_cv_gcc_x86_cpuid_0=unknown 8879else 8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8881/* end confdefs.h. */ 8882#include <stdio.h> 8883int 8884main () 8885{ 8886 8887 int op = 0, level = 0, eax, ebx, ecx, edx; 8888 FILE *f; 8889 __asm__ __volatile__ ("cpuid" 8890 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8891 : "a" (op), "2" (level)); 8892 8893 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8894 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8895 fclose(f); 8896 return 0; 8897 8898 ; 8899 return 0; 8900} 8901_ACEOF 8902if ac_fn_c_try_run "$LINENO"; then : 8903 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 8904else 8905 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 8906fi 8907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8908 conftest.$ac_objext conftest.beam conftest.$ac_ext 8909fi 8910 8911fi 8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 8913$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 8914ac_ext=c 8915ac_cpp='$CPP $CPPFLAGS' 8916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8918ac_compiler_gnu=$ac_cv_c_compiler_gnu 8919 8920 8921 8922 8923ac_ext=c 8924ac_cpp='$CPP $CPPFLAGS' 8925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8927ac_compiler_gnu=$ac_cv_c_compiler_gnu 8928 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8930$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 8931if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933else 8934 if test "$cross_compiling" = yes; then : 8935 ax_cv_gcc_x86_cpuid_1=unknown 8936else 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938/* end confdefs.h. */ 8939#include <stdio.h> 8940int 8941main () 8942{ 8943 8944 int op = 1, level = 0, eax, ebx, ecx, edx; 8945 FILE *f; 8946 __asm__ __volatile__ ("cpuid" 8947 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8948 : "a" (op), "2" (level)); 8949 8950 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8951 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8952 fclose(f); 8953 return 0; 8954 8955 ; 8956 return 0; 8957} 8958_ACEOF 8959if ac_fn_c_try_run "$LINENO"; then : 8960 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8961else 8962 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8963fi 8964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8965 conftest.$ac_objext conftest.beam conftest.$ac_ext 8966fi 8967 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8970$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 8971ac_ext=c 8972ac_cpp='$CPP $CPPFLAGS' 8973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8975ac_compiler_gnu=$ac_cv_c_compiler_gnu 8976 8977 8978 8979 case $ax_cv_gcc_x86_cpuid_0 in 8980 *:756e6547:6c65746e:49656e69) # Intel 8981 case $ax_cv_gcc_x86_cpuid_1 in 8982 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8983 *5[123]?:*:*:*) ax_gcc_arch=pentium ;; 8984 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;; 8985 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8986 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8987 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8988 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;; 8989 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8990 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8991 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;; 8992 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;; 8993 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8994 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8995 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8996 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8997 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;; 8998 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;; 8999 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 9000 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;; 9001 # fallback 9002 *5??:*:*:*) ax_gcc_arch=pentium ;; 9003 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 9004 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 9005 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 9006 esac ;; 9007 *:68747541:444d4163:69746e65) # AMD 9008 case $ax_cv_gcc_x86_cpuid_1 in 9009 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 9010 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 9011 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 9012 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 9013 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 9014 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 9015 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 9016 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 9017 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 9018 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 9019 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 9020 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 9021 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 9022 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 9023 # fallback 9024 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 9025 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 9026 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 9027 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 9028 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 9029 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 9030 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 9031 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 9032 esac ;; 9033 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur) 9034 case $ax_cv_gcc_x86_cpuid_1 in 9035 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 9036 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;; 9037 *66?:*:*:*) ax_gcc_arch=winchip2 ;; 9038 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 9039 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 9040 esac ;; 9041 esac 9042 if test x"$ax_gcc_arch" = x; then # fallback 9043 case $host_cpu in 9044 i586*) ax_gcc_arch=pentium ;; 9045 i686*) ax_gcc_arch=pentiumpro ;; 9046 esac 9047 fi 9048 ;; 9049 9050 sparc*) 9051 # Extract the first word of "prtdiag", so it can be a program name with args. 9052set dummy prtdiag; ac_word=$2 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9054$as_echo_n "checking for $ac_word... " >&6; } 9055if ${ac_cv_path_PRTDIAG+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 case $PRTDIAG in 9059 [\\/]* | ?:[\\/]*) 9060 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 9061 ;; 9062 *) 9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9064as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 9065for as_dir in $as_dummy 9066do 9067 IFS=$as_save_IFS 9068 test -z "$as_dir" && as_dir=. 9069 for ac_exec_ext in '' $ac_executable_extensions; do 9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9071 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9073 break 2 9074 fi 9075done 9076 done 9077IFS=$as_save_IFS 9078 9079 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 9080 ;; 9081esac 9082fi 9083PRTDIAG=$ac_cv_path_PRTDIAG 9084if test -n "$PRTDIAG"; then 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 9086$as_echo "$PRTDIAG" >&6; } 9087else 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9089$as_echo "no" >&6; } 9090fi 9091 9092 9093 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` 9094 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` 9095 case $cputype in 9096 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 9097 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 9098 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 9099 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 9100 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 9101 *cypress*) ax_gcc_arch=cypress ;; 9102 esac ;; 9103 9104 alphaev5) ax_gcc_arch=ev5 ;; 9105 alphaev56) ax_gcc_arch=ev56 ;; 9106 alphapca56) ax_gcc_arch="pca56 ev56" ;; 9107 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 9108 alphaev6) ax_gcc_arch=ev6 ;; 9109 alphaev67) ax_gcc_arch=ev67 ;; 9110 alphaev68) ax_gcc_arch="ev68 ev67" ;; 9111 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 9112 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 9113 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 9114 9115 powerpc*) 9116 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` 9117 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'` 9118 case $cputype in 9119 *750*) ax_gcc_arch="750 G3" ;; 9120 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 9121 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 9122 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 9123 *970*) ax_gcc_arch="970 G5 power4";; 9124 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 9125 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 9126 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 9127 *) ax_gcc_arch=$cputype ;; 9128 esac 9129 ax_gcc_arch="$ax_gcc_arch powerpc" 9130 ;; 9131esac 9132fi # not cross-compiling 9133fi # guess arch 9134 9135if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 9136if test "xyes" = xyes; then # if we require portable code 9137 flag_prefixes="-mtune=" 9138 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi 9139 # -mcpu=$arch and m$arch generate nonportable code on every arch except 9140 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 9141 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac 9142else 9143 flag_prefixes="-march= -mcpu= -m" 9144fi 9145for flag_prefix in $flag_prefixes; do 9146 for arch in $ax_gcc_arch; do 9147 flag="$flag_prefix$arch" 9148 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9150$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9151if eval \${$as_CACHEVAR+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 9155 ax_check_save_flags=$CFLAGS 9156 CFLAGS="$CFLAGS $flag" 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159 9160int 9161main () 9162{ 9163 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_c_try_compile "$LINENO"; then : 9169 eval "$as_CACHEVAR=yes" 9170else 9171 eval "$as_CACHEVAR=no" 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174 CFLAGS=$ax_check_save_flags 9175fi 9176eval ac_res=\$$as_CACHEVAR 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9178$as_echo "$ac_res" >&6; } 9179if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9180 if test "x$ax_cv_c_compiler_vendor" = xclang; then 9181 if test "xyes" = xyes; then 9182 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi 9183 fi 9184 fi; ax_cv_gcc_archflag=$flag; break 9185else 9186 : 9187fi 9188 9189 done 9190 test "x$ax_cv_gcc_archflag" = xunknown || break 9191done 9192fi 9193 9194fi # $GCC=yes 9195 9196fi 9197 9198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 9199$as_echo_n "checking for gcc architecture flag... " >&6; } 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 9201$as_echo "$ax_cv_gcc_archflag" >&6; } 9202if test "x$ax_cv_gcc_archflag" = xunknown; then 9203 : 9204else 9205 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 9206fi 9207 9208 9209 9210 9211 9212 9213 9214 9215if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9216 if test -n "$ac_tool_prefix"; then 9217 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9218set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9220$as_echo_n "checking for $ac_word... " >&6; } 9221if ${ac_cv_path_PKG_CONFIG+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 case $PKG_CONFIG in 9225 [\\/]* | ?:[\\/]*) 9226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9227 ;; 9228 *) 9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9230for as_dir in $PATH 9231do 9232 IFS=$as_save_IFS 9233 test -z "$as_dir" && as_dir=. 9234 for ac_exec_ext in '' $ac_executable_extensions; do 9235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9238 break 2 9239 fi 9240done 9241 done 9242IFS=$as_save_IFS 9243 9244 ;; 9245esac 9246fi 9247PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9248if test -n "$PKG_CONFIG"; then 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9250$as_echo "$PKG_CONFIG" >&6; } 9251else 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9253$as_echo "no" >&6; } 9254fi 9255 9256 9257fi 9258if test -z "$ac_cv_path_PKG_CONFIG"; then 9259 ac_pt_PKG_CONFIG=$PKG_CONFIG 9260 # Extract the first word of "pkg-config", so it can be a program name with args. 9261set dummy pkg-config; ac_word=$2 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9263$as_echo_n "checking for $ac_word... " >&6; } 9264if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 case $ac_pt_PKG_CONFIG in 9268 [\\/]* | ?:[\\/]*) 9269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9270 ;; 9271 *) 9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9273for as_dir in $PATH 9274do 9275 IFS=$as_save_IFS 9276 test -z "$as_dir" && as_dir=. 9277 for ac_exec_ext in '' $ac_executable_extensions; do 9278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9279 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9281 break 2 9282 fi 9283done 9284 done 9285IFS=$as_save_IFS 9286 9287 ;; 9288esac 9289fi 9290ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9291if test -n "$ac_pt_PKG_CONFIG"; then 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9293$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9294else 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9296$as_echo "no" >&6; } 9297fi 9298 9299 if test "x$ac_pt_PKG_CONFIG" = x; then 9300 PKG_CONFIG="" 9301 else 9302 case $cross_compiling:$ac_tool_warned in 9303yes:) 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9306ac_tool_warned=yes ;; 9307esac 9308 PKG_CONFIG=$ac_pt_PKG_CONFIG 9309 fi 9310else 9311 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9312fi 9313 9314fi 9315if test -n "$PKG_CONFIG"; then 9316 _pkg_min_version=0.20 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9318$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9319 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9321$as_echo "yes" >&6; } 9322 else 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9324$as_echo "no" >&6; } 9325 PKG_CONFIG="" 9326 fi 9327fi 9328 9329 9330 9331# Test for 64-bit build. 9332# The cast to long int works around a bug in the HP C Compiler 9333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9335# This bug is HP SR number 8606223364. 9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 9337$as_echo_n "checking size of size_t... " >&6; } 9338if ${ac_cv_sizeof_size_t+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 9342 9343else 9344 if test "$ac_cv_type_size_t" = yes; then 9345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9347as_fn_error 77 "cannot compute sizeof (size_t) 9348See \`config.log' for more details" "$LINENO" 5; } 9349 else 9350 ac_cv_sizeof_size_t=0 9351 fi 9352fi 9353 9354fi 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 9356$as_echo "$ac_cv_sizeof_size_t" >&6; } 9357 9358 9359 9360cat >>confdefs.h <<_ACEOF 9361#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 9362_ACEOF 9363 9364 9365 9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 9367$as_echo_n "checking for C compiler vendor... " >&6; } 9368if ${ax_cv_c_compiler_vendor+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 # note: don't check for gcc first since some other compilers define __GNUC__ 9372 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 9373 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 9374 pathscale: __PATHCC__,__PATHSCALE__ 9375 clang: __clang__ 9376 cray: _CRAYC 9377 fujitsu: __FUJITSU 9378 gnu: __GNUC__ 9379 sun: __SUNPRO_C,__SUNPRO_CC 9380 hp: __HP_cc,__HP_aCC 9381 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 9382 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 9383 comeau: __COMO__ 9384 kai: __KCC 9385 lcc: __LCC__ 9386 sgi: __sgi,sgi 9387 microsoft: _MSC_VER 9388 metrowerks: __MWERKS__ 9389 watcom: __WATCOMC__ 9390 portland: __PGI 9391 tcc: __TINYC__ 9392 unknown: UNKNOWN" 9393 for ventest in $vendors; do 9394 case $ventest in 9395 *:) vendor=$ventest; continue ;; 9396 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 9397 esac 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400 9401int 9402main () 9403{ 9404 9405 #if !($vencpp) 9406 thisisanerror; 9407 #endif 9408 9409 ; 9410 return 0; 9411} 9412_ACEOF 9413if ac_fn_c_try_compile "$LINENO"; then : 9414 break 9415fi 9416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9417 done 9418 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 9419 9420fi 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 9422$as_echo "$ax_cv_c_compiler_vendor" >&6; } 9423 9424 9425 9426 # C support is enabled by default. 9427 9428 9429 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of 9430 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called 9431 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be 9432 # checked. 9433 9434 9435 9436 9437 9438 # Default value for IS-RELEASE is $ax_is_release 9439 ax_compiler_flags_is_release=$ax_is_release 9440 9441 # Check whether --enable-compile-warnings was given. 9442if test "${enable_compile_warnings+set}" = set; then : 9443 enableval=$enable_compile_warnings; 9444else 9445 if test "$ax_compiler_flags_is_release" = "yes"; then : 9446 enable_compile_warnings="yes" 9447else 9448 enable_compile_warnings="error" 9449fi 9450fi 9451 9452 # Check whether --enable-Werror was given. 9453if test "${enable_Werror+set}" = set; then : 9454 enableval=$enable_Werror; 9455else 9456 enable_Werror=maybe 9457fi 9458 9459 9460 # Return the user's chosen warning level 9461 if test "$enable_Werror" = "no" -a \ 9462 "$enable_compile_warnings" = "error"; then : 9463 9464 enable_compile_warnings="yes" 9465 9466fi 9467 9468 ax_enable_compile_warnings=$enable_compile_warnings 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 # Variable names 9480 9481 9482 ac_ext=c 9483ac_cpp='$CPP $CPPFLAGS' 9484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9486ac_compiler_gnu=$ac_cv_c_compiler_gnu 9487 9488 9489 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 9490 # flags, otherwise they are always appended to the warn_cflags variable, and 9491 # Clang warns on them for every compilation unit. 9492 # If this is passed to GCC, it will explode, so the flag must be enabled 9493 # conditionally. 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 9495$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 9496if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 9500 ax_check_save_flags=$CFLAGS 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503/* end confdefs.h. */ 9504 9505int 9506main () 9507{ 9508 9509 ; 9510 return 0; 9511} 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO"; then : 9514 ax_cv_check_cflags___Werror_unknown_warning_option=yes 9515else 9516 ax_cv_check_cflags___Werror_unknown_warning_option=no 9517fi 9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9519 CFLAGS=$ax_check_save_flags 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 9522$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 9523if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 9524 9525 ax_compiler_flags_test="-Werror=unknown-warning-option" 9526 9527else 9528 9529 ax_compiler_flags_test="" 9530 9531fi 9532 9533 9534 # Base flags 9535 9536 9537 9538 9539for flag in -fno-strict-aliasing ; do 9540 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9542$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9543if eval \${$as_CACHEVAR+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545else 9546 9547 ax_check_save_flags=$CFLAGS 9548 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9550/* end confdefs.h. */ 9551 9552int 9553main () 9554{ 9555 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO"; then : 9561 eval "$as_CACHEVAR=yes" 9562else 9563 eval "$as_CACHEVAR=no" 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9566 CFLAGS=$ax_check_save_flags 9567fi 9568eval ac_res=\$$as_CACHEVAR 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9570$as_echo "$ac_res" >&6; } 9571if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9572 9573if ${WARN_CFLAGS+:} false; then : 9574 9575 case " $WARN_CFLAGS " in #( 9576 *" $flag "*) : 9577 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9578 (: WARN_CFLAGS already contains $flag) 2>&5 9579 ac_status=$? 9580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9581 test $ac_status = 0; } ;; #( 9582 *) : 9583 9584 as_fn_append WARN_CFLAGS " $flag" 9585 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9586 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9587 ac_status=$? 9588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9589 test $ac_status = 0; } 9590 ;; 9591esac 9592 9593else 9594 9595 WARN_CFLAGS=$flag 9596 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9597 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9598 ac_status=$? 9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9600 test $ac_status = 0; } 9601 9602fi 9603 9604else 9605 : 9606fi 9607 9608done 9609 9610 9611 if test "$ax_enable_compile_warnings" != "no"; then : 9612 9613 # "yes" flags 9614 9615 9616 9617 9618for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do 9619 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9621$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9622if eval \${$as_CACHEVAR+:} false; then : 9623 $as_echo_n "(cached) " >&6 9624else 9625 9626 ax_check_save_flags=$CFLAGS 9627 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630 9631int 9632main () 9633{ 9634 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639if ac_fn_c_try_compile "$LINENO"; then : 9640 eval "$as_CACHEVAR=yes" 9641else 9642 eval "$as_CACHEVAR=no" 9643fi 9644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9645 CFLAGS=$ax_check_save_flags 9646fi 9647eval ac_res=\$$as_CACHEVAR 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9649$as_echo "$ac_res" >&6; } 9650if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9651 9652if ${WARN_CFLAGS+:} false; then : 9653 9654 case " $WARN_CFLAGS " in #( 9655 *" $flag "*) : 9656 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9657 (: WARN_CFLAGS already contains $flag) 2>&5 9658 ac_status=$? 9659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9660 test $ac_status = 0; } ;; #( 9661 *) : 9662 9663 as_fn_append WARN_CFLAGS " $flag" 9664 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9665 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9666 ac_status=$? 9667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9668 test $ac_status = 0; } 9669 ;; 9670esac 9671 9672else 9673 9674 WARN_CFLAGS=$flag 9675 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9676 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9677 ac_status=$? 9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9679 test $ac_status = 0; } 9680 9681fi 9682 9683else 9684 : 9685fi 9686 9687done 9688 9689 9690fi 9691 if test "$ax_enable_compile_warnings" = "error"; then : 9692 9693 # "error" flags; -Werror has to be appended unconditionally because 9694 # it's not possible to test for 9695 # 9696 # suggest-attribute=format is disabled because it gives too many false 9697 # positives 9698 9699if ${WARN_CFLAGS+:} false; then : 9700 9701 case " $WARN_CFLAGS " in #( 9702 *" -Werror "*) : 9703 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5 9704 (: WARN_CFLAGS already contains -Werror) 2>&5 9705 ac_status=$? 9706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9707 test $ac_status = 0; } ;; #( 9708 *) : 9709 9710 as_fn_append WARN_CFLAGS " -Werror" 9711 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9712 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9713 ac_status=$? 9714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9715 test $ac_status = 0; } 9716 ;; 9717esac 9718 9719else 9720 9721 WARN_CFLAGS=-Werror 9722 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9723 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9724 ac_status=$? 9725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9726 test $ac_status = 0; } 9727 9728fi 9729 9730 9731 9732 9733 9734 9735for flag in -Wno-suggest-attribute=format ; do 9736 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9738$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9739if eval \${$as_CACHEVAR+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 9743 ax_check_save_flags=$CFLAGS 9744 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747 9748int 9749main () 9750{ 9751 9752 ; 9753 return 0; 9754} 9755_ACEOF 9756if ac_fn_c_try_compile "$LINENO"; then : 9757 eval "$as_CACHEVAR=yes" 9758else 9759 eval "$as_CACHEVAR=no" 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9762 CFLAGS=$ax_check_save_flags 9763fi 9764eval ac_res=\$$as_CACHEVAR 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9766$as_echo "$ac_res" >&6; } 9767if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9768 9769if ${WARN_CFLAGS+:} false; then : 9770 9771 case " $WARN_CFLAGS " in #( 9772 *" $flag "*) : 9773 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9774 (: WARN_CFLAGS already contains $flag) 2>&5 9775 ac_status=$? 9776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9777 test $ac_status = 0; } ;; #( 9778 *) : 9779 9780 as_fn_append WARN_CFLAGS " $flag" 9781 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9782 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9783 ac_status=$? 9784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9785 test $ac_status = 0; } 9786 ;; 9787esac 9788 9789else 9790 9791 WARN_CFLAGS=$flag 9792 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9793 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9794 ac_status=$? 9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9796 test $ac_status = 0; } 9797 9798fi 9799 9800else 9801 : 9802fi 9803 9804done 9805 9806 9807fi 9808 9809 # In the flags below, when disabling specific flags, always add *both* 9810 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 9811 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall, 9812 # which effectively turns that flag back on again as an error. 9813 for flag in $WARN_CFLAGS; do 9814 case $flag in #( 9815 -Wno-*=*) : 9816 ;; #( 9817 -Wno-*) : 9818 9819 9820 9821 9822 9823for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 9824 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9826$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9827if eval \${$as_CACHEVAR+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829else 9830 9831 ax_check_save_flags=$CFLAGS 9832 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835 9836int 9837main () 9838{ 9839 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO"; then : 9845 eval "$as_CACHEVAR=yes" 9846else 9847 eval "$as_CACHEVAR=no" 9848fi 9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9850 CFLAGS=$ax_check_save_flags 9851fi 9852eval ac_res=\$$as_CACHEVAR 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9854$as_echo "$ac_res" >&6; } 9855if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9856 9857if ${WARN_CFLAGS+:} false; then : 9858 9859 case " $WARN_CFLAGS " in #( 9860 *" $flag "*) : 9861 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9862 (: WARN_CFLAGS already contains $flag) 2>&5 9863 ac_status=$? 9864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9865 test $ac_status = 0; } ;; #( 9866 *) : 9867 9868 as_fn_append WARN_CFLAGS " $flag" 9869 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9870 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9871 ac_status=$? 9872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9873 test $ac_status = 0; } 9874 ;; 9875esac 9876 9877else 9878 9879 WARN_CFLAGS=$flag 9880 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9881 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9882 ac_status=$? 9883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9884 test $ac_status = 0; } 9885 9886fi 9887 9888else 9889 : 9890fi 9891 9892done 9893 9894 ;; #( 9895 *) : 9896 ;; 9897esac 9898 done 9899 9900 ac_ext=c 9901ac_cpp='$CPP $CPPFLAGS' 9902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9904ac_compiler_gnu=$ac_cv_c_compiler_gnu 9905 9906 9907 # Substitute the variables 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 # Variable names 9920 9921 9922 ac_ext=cpp 9923ac_cpp='$CXXCPP $CPPFLAGS' 9924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9927 9928 9929 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 9930 # flags, otherwise they are always appended to the warn_cxxflags variable, 9931 # and Clang warns on them for every compilation unit. 9932 # If this is passed to GCC, it will explode, so the flag must be enabled 9933 # conditionally. 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5 9935$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; } 9936if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 9940 ax_check_save_flags=$CXXFLAGS 9941 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option" 9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9943/* end confdefs.h. */ 9944 9945int 9946main () 9947{ 9948 9949 ; 9950 return 0; 9951} 9952_ACEOF 9953if ac_fn_cxx_try_compile "$LINENO"; then : 9954 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes 9955else 9956 ax_cv_check_cxxflags___Werror_unknown_warning_option=no 9957fi 9958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9959 CXXFLAGS=$ax_check_save_flags 9960fi 9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5 9962$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; } 9963if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then : 9964 9965 ax_compiler_flags_test="-Werror=unknown-warning-option" 9966 9967else 9968 9969 ax_compiler_flags_test="" 9970 9971fi 9972 9973 9974 # Base flags 9975 9976 9977 9978 9979for flag in -fno-strict-aliasing ; do 9980 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 9982$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 9983if eval \${$as_CACHEVAR+:} false; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 9987 ax_check_save_flags=$CXXFLAGS 9988 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991 9992int 9993main () 9994{ 9995 9996 ; 9997 return 0; 9998} 9999_ACEOF 10000if ac_fn_cxx_try_compile "$LINENO"; then : 10001 eval "$as_CACHEVAR=yes" 10002else 10003 eval "$as_CACHEVAR=no" 10004fi 10005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10006 CXXFLAGS=$ax_check_save_flags 10007fi 10008eval ac_res=\$$as_CACHEVAR 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10010$as_echo "$ac_res" >&6; } 10011if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10012 10013if ${WARN_CXXFLAGS+:} false; then : 10014 10015 case " $WARN_CXXFLAGS " in #( 10016 *" $flag "*) : 10017 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10018 (: WARN_CXXFLAGS already contains $flag) 2>&5 10019 ac_status=$? 10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10021 test $ac_status = 0; } ;; #( 10022 *) : 10023 10024 as_fn_append WARN_CXXFLAGS " $flag" 10025 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10026 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10027 ac_status=$? 10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10029 test $ac_status = 0; } 10030 ;; 10031esac 10032 10033else 10034 10035 WARN_CXXFLAGS=$flag 10036 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10037 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10038 ac_status=$? 10039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10040 test $ac_status = 0; } 10041 10042fi 10043 10044else 10045 : 10046fi 10047 10048done 10049 10050 10051 if test "$ax_enable_compile_warnings" != "no"; then : 10052 10053 # "yes" flags 10054 10055 10056 10057 10058for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default ; do 10059 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10061$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10062if eval \${$as_CACHEVAR+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 10066 ax_check_save_flags=$CXXFLAGS 10067 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10069/* end confdefs.h. */ 10070 10071int 10072main () 10073{ 10074 10075 ; 10076 return 0; 10077} 10078_ACEOF 10079if ac_fn_cxx_try_compile "$LINENO"; then : 10080 eval "$as_CACHEVAR=yes" 10081else 10082 eval "$as_CACHEVAR=no" 10083fi 10084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10085 CXXFLAGS=$ax_check_save_flags 10086fi 10087eval ac_res=\$$as_CACHEVAR 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10089$as_echo "$ac_res" >&6; } 10090if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10091 10092if ${WARN_CXXFLAGS+:} false; then : 10093 10094 case " $WARN_CXXFLAGS " in #( 10095 *" $flag "*) : 10096 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10097 (: WARN_CXXFLAGS already contains $flag) 2>&5 10098 ac_status=$? 10099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10100 test $ac_status = 0; } ;; #( 10101 *) : 10102 10103 as_fn_append WARN_CXXFLAGS " $flag" 10104 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10105 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10106 ac_status=$? 10107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10108 test $ac_status = 0; } 10109 ;; 10110esac 10111 10112else 10113 10114 WARN_CXXFLAGS=$flag 10115 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10116 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10117 ac_status=$? 10118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10119 test $ac_status = 0; } 10120 10121fi 10122 10123else 10124 : 10125fi 10126 10127done 10128 10129 10130fi 10131 if test "$ax_enable_compile_warnings" = "error"; then : 10132 10133 # "error" flags; -Werror has to be appended unconditionally because 10134 # it's not possible to test for 10135 # 10136 # suggest-attribute=format is disabled because it gives too many false 10137 # positives 10138 10139if ${WARN_CXXFLAGS+:} false; then : 10140 10141 case " $WARN_CXXFLAGS " in #( 10142 *" -Werror "*) : 10143 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains -Werror"; } >&5 10144 (: WARN_CXXFLAGS already contains -Werror) 2>&5 10145 ac_status=$? 10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10147 test $ac_status = 0; } ;; #( 10148 *) : 10149 10150 as_fn_append WARN_CXXFLAGS " -Werror" 10151 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10152 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10153 ac_status=$? 10154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10155 test $ac_status = 0; } 10156 ;; 10157esac 10158 10159else 10160 10161 WARN_CXXFLAGS=-Werror 10162 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10163 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10164 ac_status=$? 10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10166 test $ac_status = 0; } 10167 10168fi 10169 10170 10171 10172 10173 10174 10175for flag in -Wno-suggest-attribute=format ; do 10176 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10178$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10179if eval \${$as_CACHEVAR+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 10183 ax_check_save_flags=$CXXFLAGS 10184 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187 10188int 10189main () 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196if ac_fn_cxx_try_compile "$LINENO"; then : 10197 eval "$as_CACHEVAR=yes" 10198else 10199 eval "$as_CACHEVAR=no" 10200fi 10201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10202 CXXFLAGS=$ax_check_save_flags 10203fi 10204eval ac_res=\$$as_CACHEVAR 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10206$as_echo "$ac_res" >&6; } 10207if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10208 10209if ${WARN_CXXFLAGS+:} false; then : 10210 10211 case " $WARN_CXXFLAGS " in #( 10212 *" $flag "*) : 10213 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10214 (: WARN_CXXFLAGS already contains $flag) 2>&5 10215 ac_status=$? 10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10217 test $ac_status = 0; } ;; #( 10218 *) : 10219 10220 as_fn_append WARN_CXXFLAGS " $flag" 10221 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10222 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10223 ac_status=$? 10224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10225 test $ac_status = 0; } 10226 ;; 10227esac 10228 10229else 10230 10231 WARN_CXXFLAGS=$flag 10232 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10233 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10234 ac_status=$? 10235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10236 test $ac_status = 0; } 10237 10238fi 10239 10240else 10241 : 10242fi 10243 10244done 10245 10246 10247fi 10248 10249 # In the flags below, when disabling specific flags, always add *both* 10250 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 10251 # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall, 10252 # which effectively turns that flag back on again as an error. 10253 for flag in $WARN_CXXFLAGS; do 10254 case $flag in #( 10255 -Wno-*=*) : 10256 ;; #( 10257 -Wno-*) : 10258 10259 10260 10261 10262 10263for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 10264 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10266$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10267if eval \${$as_CACHEVAR+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 10271 ax_check_save_flags=$CXXFLAGS 10272 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_cxx_try_compile "$LINENO"; then : 10285 eval "$as_CACHEVAR=yes" 10286else 10287 eval "$as_CACHEVAR=no" 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10290 CXXFLAGS=$ax_check_save_flags 10291fi 10292eval ac_res=\$$as_CACHEVAR 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10294$as_echo "$ac_res" >&6; } 10295if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10296 10297if ${WARN_CXXFLAGS+:} false; then : 10298 10299 case " $WARN_CXXFLAGS " in #( 10300 *" $flag "*) : 10301 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10302 (: WARN_CXXFLAGS already contains $flag) 2>&5 10303 ac_status=$? 10304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10305 test $ac_status = 0; } ;; #( 10306 *) : 10307 10308 as_fn_append WARN_CXXFLAGS " $flag" 10309 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10310 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10311 ac_status=$? 10312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10313 test $ac_status = 0; } 10314 ;; 10315esac 10316 10317else 10318 10319 WARN_CXXFLAGS=$flag 10320 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10321 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10322 ac_status=$? 10323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10324 test $ac_status = 0; } 10325 10326fi 10327 10328else 10329 : 10330fi 10331 10332done 10333 10334 ;; #( 10335 *) : 10336 ;; 10337esac 10338 done 10339 10340 ac_ext=c 10341ac_cpp='$CPP $CPPFLAGS' 10342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10344ac_compiler_gnu=$ac_cv_c_compiler_gnu 10345 10346 10347 # Substitute the variables 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 # Variable names 10359 10360 10361 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 10362 # flags, otherwise they are always appended to the warn_ldflags variable, 10363 # and Clang warns on them for every compilation unit. 10364 # If this is passed to GCC, it will explode, so the flag must be enabled 10365 # conditionally. 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 10367$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 10368if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 10372 ax_check_save_flags=$CFLAGS 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376 10377int 10378main () 10379{ 10380 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385if ac_fn_c_try_compile "$LINENO"; then : 10386 ax_cv_check_cflags___Werror_unknown_warning_option=yes 10387else 10388 ax_cv_check_cflags___Werror_unknown_warning_option=no 10389fi 10390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10391 CFLAGS=$ax_check_save_flags 10392fi 10393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 10394$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 10395if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 10396 10397 ax_compiler_flags_test="-Werror=unknown-warning-option" 10398 10399else 10400 10401 ax_compiler_flags_test="" 10402 10403fi 10404 10405 10406 # Base flags 10407 10408 10409 10410 10411for flag in -Wl,--no-as-needed ; do 10412 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10414$as_echo_n "checking whether the linker accepts $flag... " >&6; } 10415if eval \${$as_CACHEVAR+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 10419 ax_check_save_flags=$LDFLAGS 10420 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424int 10425main () 10426{ 10427 10428 ; 10429 return 0; 10430} 10431_ACEOF 10432if ac_fn_c_try_link "$LINENO"; then : 10433 eval "$as_CACHEVAR=yes" 10434else 10435 eval "$as_CACHEVAR=no" 10436fi 10437rm -f core conftest.err conftest.$ac_objext \ 10438 conftest$ac_exeext conftest.$ac_ext 10439 LDFLAGS=$ax_check_save_flags 10440fi 10441eval ac_res=\$$as_CACHEVAR 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10443$as_echo "$ac_res" >&6; } 10444if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10445 10446if ${WARN_LDFLAGS+:} false; then : 10447 10448 case " $WARN_LDFLAGS " in #( 10449 *" $flag "*) : 10450 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10451 (: WARN_LDFLAGS already contains $flag) 2>&5 10452 ac_status=$? 10453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10454 test $ac_status = 0; } ;; #( 10455 *) : 10456 10457 as_fn_append WARN_LDFLAGS " $flag" 10458 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10459 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10460 ac_status=$? 10461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10462 test $ac_status = 0; } 10463 ;; 10464esac 10465 10466else 10467 10468 WARN_LDFLAGS=$flag 10469 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10470 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10471 ac_status=$? 10472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10473 test $ac_status = 0; } 10474 10475fi 10476 10477else 10478 : 10479fi 10480 10481done 10482 10483 10484 if test "$ax_enable_compile_warnings" != "no"; then : 10485 10486 # "yes" flags 10487 10488 10489 10490 10491for flag in ; do 10492 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10494$as_echo_n "checking whether the linker accepts $flag... " >&6; } 10495if eval \${$as_CACHEVAR+:} false; then : 10496 $as_echo_n "(cached) " >&6 10497else 10498 10499 ax_check_save_flags=$LDFLAGS 10500 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503 10504int 10505main () 10506{ 10507 10508 ; 10509 return 0; 10510} 10511_ACEOF 10512if ac_fn_c_try_link "$LINENO"; then : 10513 eval "$as_CACHEVAR=yes" 10514else 10515 eval "$as_CACHEVAR=no" 10516fi 10517rm -f core conftest.err conftest.$ac_objext \ 10518 conftest$ac_exeext conftest.$ac_ext 10519 LDFLAGS=$ax_check_save_flags 10520fi 10521eval ac_res=\$$as_CACHEVAR 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10523$as_echo "$ac_res" >&6; } 10524if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10525 10526if ${WARN_LDFLAGS+:} false; then : 10527 10528 case " $WARN_LDFLAGS " in #( 10529 *" $flag "*) : 10530 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10531 (: WARN_LDFLAGS already contains $flag) 2>&5 10532 ac_status=$? 10533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10534 test $ac_status = 0; } ;; #( 10535 *) : 10536 10537 as_fn_append WARN_LDFLAGS " $flag" 10538 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10539 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10540 ac_status=$? 10541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10542 test $ac_status = 0; } 10543 ;; 10544esac 10545 10546else 10547 10548 WARN_LDFLAGS=$flag 10549 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10550 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10551 ac_status=$? 10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10553 test $ac_status = 0; } 10554 10555fi 10556 10557else 10558 : 10559fi 10560 10561done 10562 10563 10564fi 10565 if test "$ax_enable_compile_warnings" = "error"; then : 10566 10567 # "error" flags; -Werror has to be appended unconditionally because 10568 # it's not possible to test for 10569 # 10570 # suggest-attribute=format is disabled because it gives too many false 10571 # positives 10572 10573 10574 10575 10576for flag in -Wl,--fatal-warnings ; do 10577 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10579$as_echo_n "checking whether the linker accepts $flag... " >&6; } 10580if eval \${$as_CACHEVAR+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 10584 ax_check_save_flags=$LDFLAGS 10585 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10587/* end confdefs.h. */ 10588 10589int 10590main () 10591{ 10592 10593 ; 10594 return 0; 10595} 10596_ACEOF 10597if ac_fn_c_try_link "$LINENO"; then : 10598 eval "$as_CACHEVAR=yes" 10599else 10600 eval "$as_CACHEVAR=no" 10601fi 10602rm -f core conftest.err conftest.$ac_objext \ 10603 conftest$ac_exeext conftest.$ac_ext 10604 LDFLAGS=$ax_check_save_flags 10605fi 10606eval ac_res=\$$as_CACHEVAR 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10608$as_echo "$ac_res" >&6; } 10609if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10610 10611if ${WARN_LDFLAGS+:} false; then : 10612 10613 case " $WARN_LDFLAGS " in #( 10614 *" $flag "*) : 10615 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10616 (: WARN_LDFLAGS already contains $flag) 2>&5 10617 ac_status=$? 10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10619 test $ac_status = 0; } ;; #( 10620 *) : 10621 10622 as_fn_append WARN_LDFLAGS " $flag" 10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10624 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10625 ac_status=$? 10626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10627 test $ac_status = 0; } 10628 ;; 10629esac 10630 10631else 10632 10633 WARN_LDFLAGS=$flag 10634 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10635 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10636 ac_status=$? 10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10638 test $ac_status = 0; } 10639 10640fi 10641 10642else 10643 : 10644fi 10645 10646done 10647 10648 10649fi 10650 10651 # Substitute the variables 10652 10653 10654 10655 10656 10657 10658 # Variable names 10659 10660 10661 # Base flags 10662 10663if ${WARN_SCANNERFLAGS+:} false; then : 10664 10665 case " $WARN_SCANNERFLAGS " in #( 10666 *" "*) : 10667 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5 10668 (: WARN_SCANNERFLAGS already contains ) 2>&5 10669 ac_status=$? 10670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10671 test $ac_status = 0; } ;; #( 10672 *) : 10673 10674 as_fn_append WARN_SCANNERFLAGS " " 10675 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10676 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10677 ac_status=$? 10678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10679 test $ac_status = 0; } 10680 ;; 10681esac 10682 10683else 10684 10685 WARN_SCANNERFLAGS= 10686 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10687 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10688 ac_status=$? 10689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10690 test $ac_status = 0; } 10691 10692fi 10693 10694 10695 if test "$ax_enable_compile_warnings" != "no"; then : 10696 10697 # "yes" flags 10698 10699if ${WARN_SCANNERFLAGS+:} false; then : 10700 10701 case " $WARN_SCANNERFLAGS " in #( 10702 *" --warn-all "*) : 10703 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5 10704 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5 10705 ac_status=$? 10706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10707 test $ac_status = 0; } ;; #( 10708 *) : 10709 10710 as_fn_append WARN_SCANNERFLAGS " --warn-all " 10711 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10712 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10713 ac_status=$? 10714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10715 test $ac_status = 0; } 10716 ;; 10717esac 10718 10719else 10720 10721 WARN_SCANNERFLAGS= --warn-all 10722 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10723 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10724 ac_status=$? 10725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10726 test $ac_status = 0; } 10727 10728fi 10729 10730 10731fi 10732 if test "$ax_enable_compile_warnings" = "error"; then : 10733 10734 # "error" flags 10735 10736if ${WARN_SCANNERFLAGS+:} false; then : 10737 10738 case " $WARN_SCANNERFLAGS " in #( 10739 *" --warn-error "*) : 10740 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5 10741 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5 10742 ac_status=$? 10743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10744 test $ac_status = 0; } ;; #( 10745 *) : 10746 10747 as_fn_append WARN_SCANNERFLAGS " --warn-error " 10748 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10749 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10750 ac_status=$? 10751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10752 test $ac_status = 0; } 10753 ;; 10754esac 10755 10756else 10757 10758 WARN_SCANNERFLAGS= --warn-error 10759 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10760 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10761 ac_status=$? 10762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10763 test $ac_status = 0; } 10764 10765fi 10766 10767 10768fi 10769 10770 # Substitute the variables 10771 10772 10773 10774# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro 10775# compiler. 10776if test "$ax_cv_c_compiler_vendor" != "sun"; then 10777 ac_ext=c 10778ac_cpp='$CPP $CPPFLAGS' 10779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10781ac_compiler_gnu=$ac_cv_c_compiler_gnu 10782 10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 10784$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 10785if ${ac_cv_cflags_warn_all+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787else 10788 ac_cv_cflags_warn_all="no, unknown" 10789ac_save_CFLAGS="$CFLAGS" 10790for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 10791do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10793/* end confdefs.h. */ 10794 10795int 10796main () 10797{ 10798 10799 ; 10800 return 0; 10801} 10802_ACEOF 10803if ac_fn_c_try_compile "$LINENO"; then : 10804 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 10805fi 10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10807done 10808CFLAGS="$ac_save_CFLAGS" 10809 10810fi 10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 10812$as_echo "$ac_cv_cflags_warn_all" >&6; } 10813 10814 10815case ".$ac_cv_cflags_warn_all" in 10816 .ok|.ok,*) ;; 10817 .|.no|.no,*) ;; 10818 *) 10819if ${CFLAGS+:} false; then : 10820 10821 case " $CFLAGS " in #( 10822 *" $ac_cv_cflags_warn_all "*) : 10823 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 10824 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 10825 ac_status=$? 10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10827 test $ac_status = 0; } ;; #( 10828 *) : 10829 10830 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 10831 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 10832 (: CFLAGS="$CFLAGS") 2>&5 10833 ac_status=$? 10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10835 test $ac_status = 0; } 10836 ;; 10837esac 10838 10839else 10840 10841 CFLAGS=$ac_cv_cflags_warn_all 10842 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 10843 (: CFLAGS="$CFLAGS") 2>&5 10844 ac_status=$? 10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10846 test $ac_status = 0; } 10847 10848fi 10849 ;; 10850esac 10851 10852ac_ext=c 10853ac_cpp='$CPP $CPPFLAGS' 10854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10856ac_compiler_gnu=$ac_cv_c_compiler_gnu 10857 10858 10859fi 10860 10861if test "x$GCC" = "xyes"; then 10862 CFLAGS="$CFLAGS -fexceptions" 10863 touch local.exp 10864else 10865 cat > local.exp <<EOF 10866set CC_FOR_TARGET "$CC" 10867EOF 10868fi 10869 10870# Check for linker script support 10871 10872 # Check whether --enable-ld-version-script was given. 10873if test "${enable_ld_version_script+set}" = set; then : 10874 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 10875fi 10876 10877 if test -z "$have_ld_version_script"; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 10879$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 10880 save_LDFLAGS="$LDFLAGS" 10881 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 10882 cat > conftest.map <<EOF 10883foo 10884EOF 10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886/* end confdefs.h. */ 10887 10888int 10889main () 10890{ 10891 10892 ; 10893 return 0; 10894} 10895_ACEOF 10896if ac_fn_c_try_link "$LINENO"; then : 10897 accepts_syntax_errors=yes 10898else 10899 accepts_syntax_errors=no 10900fi 10901rm -f core conftest.err conftest.$ac_objext \ 10902 conftest$ac_exeext conftest.$ac_ext 10903 if test "$accepts_syntax_errors" = no; then 10904 cat > conftest.map <<EOF 10905VERS_1 { 10906 global: sym; 10907}; 10908 10909VERS_2 { 10910 global: sym; 10911} VERS_1; 10912EOF 10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10914/* end confdefs.h. */ 10915 10916int 10917main () 10918{ 10919 10920 ; 10921 return 0; 10922} 10923_ACEOF 10924if ac_fn_c_try_link "$LINENO"; then : 10925 have_ld_version_script=yes 10926else 10927 have_ld_version_script=no 10928fi 10929rm -f core conftest.err conftest.$ac_objext \ 10930 conftest$ac_exeext conftest.$ac_ext 10931 else 10932 have_ld_version_script=no 10933 fi 10934 rm -f conftest.map 10935 LDFLAGS="$save_LDFLAGS" 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 10937$as_echo "$have_ld_version_script" >&6; } 10938 fi 10939 if test "$have_ld_version_script" = "yes"; then 10940 HAVE_LD_VERSION_SCRIPT_TRUE= 10941 HAVE_LD_VERSION_SCRIPT_FALSE='#' 10942else 10943 HAVE_LD_VERSION_SCRIPT_TRUE='#' 10944 HAVE_LD_VERSION_SCRIPT_FALSE= 10945fi 10946 10947 10948 10949# 10950# Enable run-time checking. 10951# 10952# Check whether --enable-bounds-checking was given. 10953if test "${enable_bounds_checking+set}" = set; then : 10954 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval 10955else 10956 enable_bounds_checking='no' 10957fi 10958 10959 10960if test "$enable_bounds_checking" = yes; then 10961 10962$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h 10963 10964fi 10965 10966# 10967# Tests for Windows 10968# 10969 10970 10971 10972GDI32_LIBS='' 10973native_win32_build='no' 10974cygwin_build='no' 10975case "${host_os}" in 10976 cygwin* ) 10977 cygwin_build='yes' 10978 GDI32_LIBS='-lgdi32' 10979 ;; 10980 mingw* ) 10981 native_win32_build='yes' 10982 GDI32_LIBS='-lgdi32' 10983 ;; 10984esac 10985if test "${GDI32_LIBS}x" != 'x'; then 10986 10987$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h 10988 10989fi 10990 10991 if test "${GDI32_LIBS}x" != 'x' ; then 10992 WINGDI32_DELEGATE_TRUE= 10993 WINGDI32_DELEGATE_FALSE='#' 10994else 10995 WINGDI32_DELEGATE_TRUE='#' 10996 WINGDI32_DELEGATE_FALSE= 10997fi 10998 10999 if test "${native_win32_build}" = 'yes' ; then 11000 WIN32_NATIVE_BUILD_TRUE= 11001 WIN32_NATIVE_BUILD_FALSE='#' 11002else 11003 WIN32_NATIVE_BUILD_TRUE='#' 11004 WIN32_NATIVE_BUILD_FALSE= 11005fi 11006 11007 if test "${cygwin_build}" = 'yes' ; then 11008 CYGWIN_BUILD_TRUE= 11009 CYGWIN_BUILD_FALSE='#' 11010else 11011 CYGWIN_BUILD_TRUE='#' 11012 CYGWIN_BUILD_FALSE= 11013fi 11014 11015 if test "x${CC}" = 'xcl.exe' ; then 11016 USING_CL_TRUE= 11017 USING_CL_FALSE='#' 11018else 11019 USING_CL_TRUE='#' 11020 USING_CL_FALSE= 11021fi 11022 11023 11024WinPathScript="${srcdirfull}/winpath.sh" 11025 11026 11027# 11028# Compiler flags tweaks 11029# 11030if test "${GCC}" != "yes"; then 11031 case "${host}" in 11032 *-*-hpux* ) 11033 # aCC: HP ANSI C++ B3910B A.03.34 11034 CFLAGS="${CFLAGS} -Wp,-H30000" 11035 if test -n "${CXXFLAGS}"; then 11036 CXXFLAGS='-AA' 11037 else 11038 CXXFLAGS="${CXXFLAGS} -AA" 11039 fi 11040 ;; 11041 *-dec-osf5.* ) 11042 # Compaq alphaev68-dec-osf5.1 compiler 11043 if test -n "${CXXFLAGS}"; then 11044 CXXFLAGS='-std strict_ansi -noimplicit_include' 11045 else 11046 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 11047 fi 11048 esac 11049fi 11050 11051# Check for lazy-loading. 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 11053$as_echo_n "checking for linker lazyload option... " >&6; } 11054if ${im_cv_ld_lazyload+:} false; then : 11055 $as_echo_n "(cached) " >&6 11056else 11057 11058im_cv_ld_lazyload='none' 11059case "${host}" in 11060 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 11061 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 11062 im_cv_ld_lazyload='-Wl,-zlazyload' 11063 fi 11064 ;; 11065esac 11066 11067fi 11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 11069$as_echo "$im_cv_ld_lazyload" >&6; } 11070if test "${im_cv_ld_lazyload}" != 'none' ; then 11071 if test -z "${LDFLAGS}" ; then 11072 LDFLAGS="${im_cv_ld_lazyload}" 11073 else 11074 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 11075 fi 11076fi 11077 11078case "$host" in 11079 *darwin* | *-macos10*) 11080 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" 11081 # Check whether --enable-osx-universal-binary was given. 11082if test "${enable_osx_universal_binary+set}" = set; then : 11083 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" 11084else 11085 build_osxuniversal=no 11086fi 11087 11088 11089 if test "${build_osxuniversal}" != no ; then 11090 if test "$enable_dependency_tracking" != no ; then 11091 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. 11092Please re-run configure with these options: 11093 --disable-dependency-tracking --enable-osx-universal-binary 11094 " "$LINENO" 5 11095 fi 11096 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11097 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11098 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11099 fi 11100 ;; 11101esac 11102 11103# 11104# ARCH specific include directory 11105# 11106 11107# Check whether --with-includearch-dir was given. 11108if test "${with_includearch_dir+set}" = set; then : 11109 withval=$with_includearch_dir; includearch_dir=$withval 11110else 11111 includearch_dir=$INCLUDE_DIR 11112fi 11113 11114 11115eval "eval INCLUDEARCH_DIR=$includearch_dir" 11116 11117 11118# 11119# ARCH specific configuration directory 11120# 11121 11122# Check whether --with-sharearch-dir was given. 11123if test "${with_sharearch_dir+set}" = set; then : 11124 withval=$with_sharearch_dir; sharearch_dir=$withval 11125else 11126 sharearch_dir="${LIB_DIR}" 11127fi 11128 11129 11130eval "eval SHAREARCH_DIR=$sharearch_dir" 11131 11132 11133# Path to the pkgconfig folder 11134 11135# Check whether --with-pkgconfigdir was given. 11136if test "${with_pkgconfigdir+set}" = set; then : 11137 withval=$with_pkgconfigdir; pkgconfigdir="$withval" 11138else 11139 pkgconfigdir='${libdir}/pkgconfig' 11140fi 11141 11142 11143 11144# 11145# Enable support for threads 11146# 11147# Find Posix threads library 11148# 11149 11150# Check whether --with-threads was given. 11151if test "${with_threads+set}" = set; then : 11152 withval=$with_threads; with_threads=$withval 11153else 11154 with_threads='yes' 11155fi 11156 11157 11158THREAD_LIBS='' 11159have_threads=no 11160if test "$with_threads" != 'no'; then 11161 11162 11163ac_ext=c 11164ac_cpp='$CPP $CPPFLAGS' 11165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11167ac_compiler_gnu=$ac_cv_c_compiler_gnu 11168 11169ax_pthread_ok=no 11170 11171# We used to check for pthread.h first, but this fails if pthread.h 11172# requires special compiler flags (e.g. on True64 or Sequent). 11173# It gets checked for in the link test anyway. 11174 11175# First of all, check if the user has set any of the PTHREAD_LIBS, 11176# etcetera environment variables, and if threads linking works using 11177# them: 11178if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 11179 save_CFLAGS="$CFLAGS" 11180 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11181 save_LIBS="$LIBS" 11182 LIBS="$PTHREAD_LIBS $LIBS" 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 11184$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11186/* end confdefs.h. */ 11187 11188/* Override any GCC internal prototype to avoid an error. 11189 Use char because int might match the return type of a GCC 11190 builtin and then its argument prototype would still apply. */ 11191#ifdef __cplusplus 11192extern "C" 11193#endif 11194char pthread_join (); 11195int 11196main () 11197{ 11198return pthread_join (); 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203if ac_fn_c_try_link "$LINENO"; then : 11204 ax_pthread_ok=yes 11205fi 11206rm -f core conftest.err conftest.$ac_objext \ 11207 conftest$ac_exeext conftest.$ac_ext 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11209$as_echo "$ax_pthread_ok" >&6; } 11210 if test x"$ax_pthread_ok" = xno; then 11211 PTHREAD_LIBS="" 11212 PTHREAD_CFLAGS="" 11213 fi 11214 LIBS="$save_LIBS" 11215 CFLAGS="$save_CFLAGS" 11216fi 11217 11218# We must check for the threads library under a number of different 11219# names; the ordering is very important because some systems 11220# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 11221# libraries is broken (non-POSIX). 11222 11223# Create a list of thread flags to try. Items starting with a "-" are 11224# C compiler flags, and other items are library names, except for "none" 11225# which indicates that we try without any flags at all, and "pthread-config" 11226# which is a program returning the flags for the Pth emulation library. 11227 11228ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 11229 11230# The ordering *is* (sometimes) important. Some notes on the 11231# individual items follow: 11232 11233# pthreads: AIX (must check this before -lpthread) 11234# none: in case threads are in libc; should be tried before -Kthread and 11235# other compiler flags to prevent continual compiler warnings 11236# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 11237# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 11238# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 11239# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 11240# -pthreads: Solaris/gcc 11241# -mthreads: Mingw32/gcc, Lynx/gcc 11242# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 11243# doesn't hurt to check since this sometimes defines pthreads too; 11244# also defines -D_REENTRANT) 11245# ... -mt is also the pthreads flag for HP/aCC 11246# pthread: Linux, etcetera 11247# --thread-safe: KAI C++ 11248# pthread-config: use pthread-config program (for GNU Pth library) 11249 11250case ${host_os} in 11251 solaris*) 11252 11253 # On Solaris (at least, for some versions), libc contains stubbed 11254 # (non-functional) versions of the pthreads routines, so link-based 11255 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 11256 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 11257 # a function called by this macro, so we could check for that, but 11258 # who knows whether they'll stub that too in a future libc.) So, 11259 # we'll just look for -pthreads and -lpthread first: 11260 11261 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 11262 ;; 11263 11264 darwin*) 11265 ax_pthread_flags="-pthread $ax_pthread_flags" 11266 ;; 11267esac 11268 11269# Clang doesn't consider unrecognized options an error unless we specify 11270# -Werror. We throw in some extra Clang-specific options to ensure that 11271# this doesn't happen for GCC, which also accepts -Werror. 11272 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 11274$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 11275save_CFLAGS="$CFLAGS" 11276ax_pthread_extra_flags="-Werror" 11277CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 11278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11279/* end confdefs.h. */ 11280int foo(void); 11281int 11282main () 11283{ 11284foo() 11285 ; 11286 return 0; 11287} 11288_ACEOF 11289if ac_fn_c_try_compile "$LINENO"; then : 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11291$as_echo "yes" >&6; } 11292else 11293 ax_pthread_extra_flags= 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11295$as_echo "no" >&6; } 11296fi 11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11298CFLAGS="$save_CFLAGS" 11299 11300if test x"$ax_pthread_ok" = xno; then 11301for flag in $ax_pthread_flags; do 11302 11303 case $flag in 11304 none) 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 11306$as_echo_n "checking whether pthreads work without any flags... " >&6; } 11307 ;; 11308 11309 -*) 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 11311$as_echo_n "checking whether pthreads work with $flag... " >&6; } 11312 PTHREAD_CFLAGS="$flag" 11313 ;; 11314 11315 pthread-config) 11316 # Extract the first word of "pthread-config", so it can be a program name with args. 11317set dummy pthread-config; ac_word=$2 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11319$as_echo_n "checking for $ac_word... " >&6; } 11320if ${ac_cv_prog_ax_pthread_config+:} false; then : 11321 $as_echo_n "(cached) " >&6 11322else 11323 if test -n "$ax_pthread_config"; then 11324 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 11325else 11326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11327for as_dir in $PATH 11328do 11329 IFS=$as_save_IFS 11330 test -z "$as_dir" && as_dir=. 11331 for ac_exec_ext in '' $ac_executable_extensions; do 11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11333 ac_cv_prog_ax_pthread_config="yes" 11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11335 break 2 11336 fi 11337done 11338 done 11339IFS=$as_save_IFS 11340 11341 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 11342fi 11343fi 11344ax_pthread_config=$ac_cv_prog_ax_pthread_config 11345if test -n "$ax_pthread_config"; then 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 11347$as_echo "$ax_pthread_config" >&6; } 11348else 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11350$as_echo "no" >&6; } 11351fi 11352 11353 11354 if test x"$ax_pthread_config" = xno; then continue; fi 11355 PTHREAD_CFLAGS="`pthread-config --cflags`" 11356 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11357 ;; 11358 11359 *) 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 11361$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 11362 PTHREAD_LIBS="-l$flag" 11363 ;; 11364 esac 11365 11366 save_LIBS="$LIBS" 11367 save_CFLAGS="$CFLAGS" 11368 LIBS="$PTHREAD_LIBS $LIBS" 11369 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 11370 11371 # Check for various functions. We must include pthread.h, 11372 # since some functions may be macros. (On the Sequent, we 11373 # need a special flag -Kthread to make this header compile.) 11374 # We check for pthread_join because it is in -lpthread on IRIX 11375 # while pthread_create is in libc. We check for pthread_attr_init 11376 # due to DEC craziness with -lpthreads. We check for 11377 # pthread_cleanup_push because it is one of the few pthread 11378 # functions on Solaris that doesn't have a non-functional libc stub. 11379 # We try pthread_create on general principles. 11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11381/* end confdefs.h. */ 11382#include <pthread.h> 11383 static void routine(void *a) { a = 0; } 11384 static void *start_routine(void *a) { return a; } 11385int 11386main () 11387{ 11388pthread_t th; pthread_attr_t attr; 11389 pthread_create(&th, 0, start_routine, 0); 11390 pthread_join(th, 0); 11391 pthread_attr_init(&attr); 11392 pthread_cleanup_push(routine, 0); 11393 pthread_cleanup_pop(0) /* ; */ 11394 ; 11395 return 0; 11396} 11397_ACEOF 11398if ac_fn_c_try_link "$LINENO"; then : 11399 ax_pthread_ok=yes 11400fi 11401rm -f core conftest.err conftest.$ac_objext \ 11402 conftest$ac_exeext conftest.$ac_ext 11403 11404 LIBS="$save_LIBS" 11405 CFLAGS="$save_CFLAGS" 11406 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11408$as_echo "$ax_pthread_ok" >&6; } 11409 if test "x$ax_pthread_ok" = xyes; then 11410 break; 11411 fi 11412 11413 PTHREAD_LIBS="" 11414 PTHREAD_CFLAGS="" 11415done 11416fi 11417 11418# Various other checks: 11419if test "x$ax_pthread_ok" = xyes; then 11420 save_LIBS="$LIBS" 11421 LIBS="$PTHREAD_LIBS $LIBS" 11422 save_CFLAGS="$CFLAGS" 11423 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11424 11425 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 11427$as_echo_n "checking for joinable pthread attribute... " >&6; } 11428 attr_name=unknown 11429 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11431/* end confdefs.h. */ 11432#include <pthread.h> 11433int 11434main () 11435{ 11436int attr = $attr; return attr /* ; */ 11437 ; 11438 return 0; 11439} 11440_ACEOF 11441if ac_fn_c_try_link "$LINENO"; then : 11442 attr_name=$attr; break 11443fi 11444rm -f core conftest.err conftest.$ac_objext \ 11445 conftest$ac_exeext conftest.$ac_ext 11446 done 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 11448$as_echo "$attr_name" >&6; } 11449 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 11450 11451cat >>confdefs.h <<_ACEOF 11452#define PTHREAD_CREATE_JOINABLE $attr_name 11453_ACEOF 11454 11455 fi 11456 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 11458$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 11459 flag=no 11460 case ${host_os} in 11461 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 11462 osf* | hpux*) flag="-D_REENTRANT";; 11463 solaris*) 11464 if test "$GCC" = "yes"; then 11465 flag="-D_REENTRANT" 11466 else 11467 # TODO: What about Clang on Solaris? 11468 flag="-mt -D_REENTRANT" 11469 fi 11470 ;; 11471 esac 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 11473$as_echo "$flag" >&6; } 11474 if test "x$flag" != xno; then 11475 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 11476 fi 11477 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 11479$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 11480if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 11481 $as_echo_n "(cached) " >&6 11482else 11483 11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486#include <pthread.h> 11487int 11488main () 11489{ 11490int i = PTHREAD_PRIO_INHERIT; 11491 ; 11492 return 0; 11493} 11494_ACEOF 11495if ac_fn_c_try_link "$LINENO"; then : 11496 ax_cv_PTHREAD_PRIO_INHERIT=yes 11497else 11498 ax_cv_PTHREAD_PRIO_INHERIT=no 11499fi 11500rm -f core conftest.err conftest.$ac_objext \ 11501 conftest$ac_exeext conftest.$ac_ext 11502 11503fi 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 11505$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 11506 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 11507 11508$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 11509 11510fi 11511 11512 LIBS="$save_LIBS" 11513 CFLAGS="$save_CFLAGS" 11514 11515 # More AIX lossage: compile with *_r variant 11516 if test "x$GCC" != xyes; then 11517 case $host_os in 11518 aix*) 11519 case "x/$CC" in #( 11520 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 11521 #handle absolute path differently from PATH based program lookup 11522 case "x$CC" in #( 11523 x/*) : 11524 if as_fn_executable_p ${CC}_r; then : 11525 PTHREAD_CC="${CC}_r" 11526fi ;; #( 11527 *) : 11528 for ac_prog in ${CC}_r 11529do 11530 # Extract the first word of "$ac_prog", so it can be a program name with args. 11531set dummy $ac_prog; ac_word=$2 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11533$as_echo_n "checking for $ac_word... " >&6; } 11534if ${ac_cv_prog_PTHREAD_CC+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 if test -n "$PTHREAD_CC"; then 11538 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 11539else 11540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11541for as_dir in $PATH 11542do 11543 IFS=$as_save_IFS 11544 test -z "$as_dir" && as_dir=. 11545 for ac_exec_ext in '' $ac_executable_extensions; do 11546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11547 ac_cv_prog_PTHREAD_CC="$ac_prog" 11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11549 break 2 11550 fi 11551done 11552 done 11553IFS=$as_save_IFS 11554 11555fi 11556fi 11557PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 11558if test -n "$PTHREAD_CC"; then 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 11560$as_echo "$PTHREAD_CC" >&6; } 11561else 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11563$as_echo "no" >&6; } 11564fi 11565 11566 11567 test -n "$PTHREAD_CC" && break 11568done 11569test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 11570 ;; 11571esac ;; #( 11572 *) : 11573 ;; 11574esac 11575 ;; 11576 esac 11577 fi 11578fi 11579 11580test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 11581 11582 11583 11584 11585 11586# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 11587if test x"$ax_pthread_ok" = xyes; then 11588 11589$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 11590 11591 : 11592else 11593 ax_pthread_ok=no 11594 11595fi 11596ac_ext=c 11597ac_cpp='$CPP $CPPFLAGS' 11598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11600ac_compiler_gnu=$ac_cv_c_compiler_gnu 11601 11602 11603 if test "$ax_pthread_ok" = yes; then 11604 have_threads=yes 11605 DEF_THREAD="$PTHREAD_CFLAGS" 11606 CFLAGS="$CFLAGS $DEF_THREAD" 11607 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 11608 THREAD_LIBS="$PTHREAD_LIBS" 11609 if test "$CC" != "$PTHREAD_CC"; then 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 11611$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 11612 CC="$PTHREAD_CC" 11613 fi 11614 11615$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h 11616 11617 fi 11618fi 11619LIBS="$LIBS $THREAD_LIBS" 11620 11621 11622# Enable support for OpenMP 11623if test "$have_threads" != 'yes'; then 11624 ac_cv_prog_c_openmp=unsupported 11625fi 11626 11627 OPENMP_CFLAGS= 11628 # Check whether --enable-openmp was given. 11629if test "${enable_openmp+set}" = set; then : 11630 enableval=$enable_openmp; 11631fi 11632 11633 if test "$enable_openmp" != no; then 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 11635$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 11636if ${ac_cv_prog_c_openmp+:} false; then : 11637 $as_echo_n "(cached) " >&6 11638else 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640/* end confdefs.h. */ 11641 11642#ifndef _OPENMP 11643 choke me 11644#endif 11645#include <omp.h> 11646int main () { return omp_get_num_threads (); } 11647 11648_ACEOF 11649if ac_fn_c_try_link "$LINENO"; then : 11650 ac_cv_prog_c_openmp='none needed' 11651else 11652 ac_cv_prog_c_openmp='unsupported' 11653 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 11654 -Popenmp --openmp; do 11655 ac_save_CFLAGS=$CFLAGS 11656 CFLAGS="$CFLAGS $ac_option" 11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659 11660#ifndef _OPENMP 11661 choke me 11662#endif 11663#include <omp.h> 11664int main () { return omp_get_num_threads (); } 11665 11666_ACEOF 11667if ac_fn_c_try_link "$LINENO"; then : 11668 ac_cv_prog_c_openmp=$ac_option 11669fi 11670rm -f core conftest.err conftest.$ac_objext \ 11671 conftest$ac_exeext conftest.$ac_ext 11672 CFLAGS=$ac_save_CFLAGS 11673 if test "$ac_cv_prog_c_openmp" != unsupported; then 11674 break 11675 fi 11676 done 11677fi 11678rm -f core conftest.err conftest.$ac_objext \ 11679 conftest$ac_exeext conftest.$ac_ext 11680fi 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 11682$as_echo "$ac_cv_prog_c_openmp" >&6; } 11683 case $ac_cv_prog_c_openmp in #( 11684 "none needed" | unsupported) 11685 ;; #( 11686 *) 11687 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 11688 esac 11689 fi 11690 11691 11692CFLAGS="$OPENMP_CFLAGS $CFLAGS" 11693MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 11694 11695if test "$enable_openmp" != no; then 11696 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 11697 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 11698 fi 11699fi 11700 11701# Enable support for OpenCL 11702 11703 11704ac_ext=c 11705ac_cpp='$CPP $CPPFLAGS' 11706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11708ac_compiler_gnu=$ac_cv_c_compiler_gnu 11709 11710ax_pthread_ok=no 11711 11712# We used to check for pthread.h first, but this fails if pthread.h 11713# requires special compiler flags (e.g. on True64 or Sequent). 11714# It gets checked for in the link test anyway. 11715 11716# First of all, check if the user has set any of the PTHREAD_LIBS, 11717# etcetera environment variables, and if threads linking works using 11718# them: 11719if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 11720 save_CFLAGS="$CFLAGS" 11721 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11722 save_LIBS="$LIBS" 11723 LIBS="$PTHREAD_LIBS $LIBS" 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 11725$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11727/* end confdefs.h. */ 11728 11729/* Override any GCC internal prototype to avoid an error. 11730 Use char because int might match the return type of a GCC 11731 builtin and then its argument prototype would still apply. */ 11732#ifdef __cplusplus 11733extern "C" 11734#endif 11735char pthread_join (); 11736int 11737main () 11738{ 11739return pthread_join (); 11740 ; 11741 return 0; 11742} 11743_ACEOF 11744if ac_fn_c_try_link "$LINENO"; then : 11745 ax_pthread_ok=yes 11746fi 11747rm -f core conftest.err conftest.$ac_objext \ 11748 conftest$ac_exeext conftest.$ac_ext 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11750$as_echo "$ax_pthread_ok" >&6; } 11751 if test x"$ax_pthread_ok" = xno; then 11752 PTHREAD_LIBS="" 11753 PTHREAD_CFLAGS="" 11754 fi 11755 LIBS="$save_LIBS" 11756 CFLAGS="$save_CFLAGS" 11757fi 11758 11759# We must check for the threads library under a number of different 11760# names; the ordering is very important because some systems 11761# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 11762# libraries is broken (non-POSIX). 11763 11764# Create a list of thread flags to try. Items starting with a "-" are 11765# C compiler flags, and other items are library names, except for "none" 11766# which indicates that we try without any flags at all, and "pthread-config" 11767# which is a program returning the flags for the Pth emulation library. 11768 11769ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 11770 11771# The ordering *is* (sometimes) important. Some notes on the 11772# individual items follow: 11773 11774# pthreads: AIX (must check this before -lpthread) 11775# none: in case threads are in libc; should be tried before -Kthread and 11776# other compiler flags to prevent continual compiler warnings 11777# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 11778# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 11779# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 11780# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 11781# -pthreads: Solaris/gcc 11782# -mthreads: Mingw32/gcc, Lynx/gcc 11783# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 11784# doesn't hurt to check since this sometimes defines pthreads too; 11785# also defines -D_REENTRANT) 11786# ... -mt is also the pthreads flag for HP/aCC 11787# pthread: Linux, etcetera 11788# --thread-safe: KAI C++ 11789# pthread-config: use pthread-config program (for GNU Pth library) 11790 11791case ${host_os} in 11792 solaris*) 11793 11794 # On Solaris (at least, for some versions), libc contains stubbed 11795 # (non-functional) versions of the pthreads routines, so link-based 11796 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 11797 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 11798 # a function called by this macro, so we could check for that, but 11799 # who knows whether they'll stub that too in a future libc.) So, 11800 # we'll just look for -pthreads and -lpthread first: 11801 11802 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 11803 ;; 11804 11805 darwin*) 11806 ax_pthread_flags="-pthread $ax_pthread_flags" 11807 ;; 11808esac 11809 11810# Clang doesn't consider unrecognized options an error unless we specify 11811# -Werror. We throw in some extra Clang-specific options to ensure that 11812# this doesn't happen for GCC, which also accepts -Werror. 11813 11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 11815$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 11816save_CFLAGS="$CFLAGS" 11817ax_pthread_extra_flags="-Werror" 11818CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 11819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821int foo(void); 11822int 11823main () 11824{ 11825foo() 11826 ; 11827 return 0; 11828} 11829_ACEOF 11830if ac_fn_c_try_compile "$LINENO"; then : 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11832$as_echo "yes" >&6; } 11833else 11834 ax_pthread_extra_flags= 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11836$as_echo "no" >&6; } 11837fi 11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11839CFLAGS="$save_CFLAGS" 11840 11841if test x"$ax_pthread_ok" = xno; then 11842for flag in $ax_pthread_flags; do 11843 11844 case $flag in 11845 none) 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 11847$as_echo_n "checking whether pthreads work without any flags... " >&6; } 11848 ;; 11849 11850 -*) 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 11852$as_echo_n "checking whether pthreads work with $flag... " >&6; } 11853 PTHREAD_CFLAGS="$flag" 11854 ;; 11855 11856 pthread-config) 11857 # Extract the first word of "pthread-config", so it can be a program name with args. 11858set dummy pthread-config; ac_word=$2 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11860$as_echo_n "checking for $ac_word... " >&6; } 11861if ${ac_cv_prog_ax_pthread_config+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 if test -n "$ax_pthread_config"; then 11865 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 11866else 11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11868for as_dir in $PATH 11869do 11870 IFS=$as_save_IFS 11871 test -z "$as_dir" && as_dir=. 11872 for ac_exec_ext in '' $ac_executable_extensions; do 11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11874 ac_cv_prog_ax_pthread_config="yes" 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11876 break 2 11877 fi 11878done 11879 done 11880IFS=$as_save_IFS 11881 11882 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 11883fi 11884fi 11885ax_pthread_config=$ac_cv_prog_ax_pthread_config 11886if test -n "$ax_pthread_config"; then 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 11888$as_echo "$ax_pthread_config" >&6; } 11889else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891$as_echo "no" >&6; } 11892fi 11893 11894 11895 if test x"$ax_pthread_config" = xno; then continue; fi 11896 PTHREAD_CFLAGS="`pthread-config --cflags`" 11897 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11898 ;; 11899 11900 *) 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 11902$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 11903 PTHREAD_LIBS="-l$flag" 11904 ;; 11905 esac 11906 11907 save_LIBS="$LIBS" 11908 save_CFLAGS="$CFLAGS" 11909 LIBS="$PTHREAD_LIBS $LIBS" 11910 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 11911 11912 # Check for various functions. We must include pthread.h, 11913 # since some functions may be macros. (On the Sequent, we 11914 # need a special flag -Kthread to make this header compile.) 11915 # We check for pthread_join because it is in -lpthread on IRIX 11916 # while pthread_create is in libc. We check for pthread_attr_init 11917 # due to DEC craziness with -lpthreads. We check for 11918 # pthread_cleanup_push because it is one of the few pthread 11919 # functions on Solaris that doesn't have a non-functional libc stub. 11920 # We try pthread_create on general principles. 11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11922/* end confdefs.h. */ 11923#include <pthread.h> 11924 static void routine(void *a) { a = 0; } 11925 static void *start_routine(void *a) { return a; } 11926int 11927main () 11928{ 11929pthread_t th; pthread_attr_t attr; 11930 pthread_create(&th, 0, start_routine, 0); 11931 pthread_join(th, 0); 11932 pthread_attr_init(&attr); 11933 pthread_cleanup_push(routine, 0); 11934 pthread_cleanup_pop(0) /* ; */ 11935 ; 11936 return 0; 11937} 11938_ACEOF 11939if ac_fn_c_try_link "$LINENO"; then : 11940 ax_pthread_ok=yes 11941fi 11942rm -f core conftest.err conftest.$ac_objext \ 11943 conftest$ac_exeext conftest.$ac_ext 11944 11945 LIBS="$save_LIBS" 11946 CFLAGS="$save_CFLAGS" 11947 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11949$as_echo "$ax_pthread_ok" >&6; } 11950 if test "x$ax_pthread_ok" = xyes; then 11951 break; 11952 fi 11953 11954 PTHREAD_LIBS="" 11955 PTHREAD_CFLAGS="" 11956done 11957fi 11958 11959# Various other checks: 11960if test "x$ax_pthread_ok" = xyes; then 11961 save_LIBS="$LIBS" 11962 LIBS="$PTHREAD_LIBS $LIBS" 11963 save_CFLAGS="$CFLAGS" 11964 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11965 11966 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 11968$as_echo_n "checking for joinable pthread attribute... " >&6; } 11969 attr_name=unknown 11970 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11972/* end confdefs.h. */ 11973#include <pthread.h> 11974int 11975main () 11976{ 11977int attr = $attr; return attr /* ; */ 11978 ; 11979 return 0; 11980} 11981_ACEOF 11982if ac_fn_c_try_link "$LINENO"; then : 11983 attr_name=$attr; break 11984fi 11985rm -f core conftest.err conftest.$ac_objext \ 11986 conftest$ac_exeext conftest.$ac_ext 11987 done 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 11989$as_echo "$attr_name" >&6; } 11990 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 11991 11992cat >>confdefs.h <<_ACEOF 11993#define PTHREAD_CREATE_JOINABLE $attr_name 11994_ACEOF 11995 11996 fi 11997 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 11999$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 12000 flag=no 12001 case ${host_os} in 12002 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 12003 osf* | hpux*) flag="-D_REENTRANT";; 12004 solaris*) 12005 if test "$GCC" = "yes"; then 12006 flag="-D_REENTRANT" 12007 else 12008 # TODO: What about Clang on Solaris? 12009 flag="-mt -D_REENTRANT" 12010 fi 12011 ;; 12012 esac 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 12014$as_echo "$flag" >&6; } 12015 if test "x$flag" != xno; then 12016 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 12017 fi 12018 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 12020$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 12021if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 12022 $as_echo_n "(cached) " >&6 12023else 12024 12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12026/* end confdefs.h. */ 12027#include <pthread.h> 12028int 12029main () 12030{ 12031int i = PTHREAD_PRIO_INHERIT; 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_link "$LINENO"; then : 12037 ax_cv_PTHREAD_PRIO_INHERIT=yes 12038else 12039 ax_cv_PTHREAD_PRIO_INHERIT=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043 12044fi 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 12046$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 12047 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 12048 12049$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 12050 12051fi 12052 12053 LIBS="$save_LIBS" 12054 CFLAGS="$save_CFLAGS" 12055 12056 # More AIX lossage: compile with *_r variant 12057 if test "x$GCC" != xyes; then 12058 case $host_os in 12059 aix*) 12060 case "x/$CC" in #( 12061 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 12062 #handle absolute path differently from PATH based program lookup 12063 case "x$CC" in #( 12064 x/*) : 12065 if as_fn_executable_p ${CC}_r; then : 12066 PTHREAD_CC="${CC}_r" 12067fi ;; #( 12068 *) : 12069 for ac_prog in ${CC}_r 12070do 12071 # Extract the first word of "$ac_prog", so it can be a program name with args. 12072set dummy $ac_prog; ac_word=$2 12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12074$as_echo_n "checking for $ac_word... " >&6; } 12075if ${ac_cv_prog_PTHREAD_CC+:} false; then : 12076 $as_echo_n "(cached) " >&6 12077else 12078 if test -n "$PTHREAD_CC"; then 12079 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 12080else 12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12082for as_dir in $PATH 12083do 12084 IFS=$as_save_IFS 12085 test -z "$as_dir" && as_dir=. 12086 for ac_exec_ext in '' $ac_executable_extensions; do 12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12088 ac_cv_prog_PTHREAD_CC="$ac_prog" 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12090 break 2 12091 fi 12092done 12093 done 12094IFS=$as_save_IFS 12095 12096fi 12097fi 12098PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 12099if test -n "$PTHREAD_CC"; then 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 12101$as_echo "$PTHREAD_CC" >&6; } 12102else 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12104$as_echo "no" >&6; } 12105fi 12106 12107 12108 test -n "$PTHREAD_CC" && break 12109done 12110test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12111 ;; 12112esac ;; #( 12113 *) : 12114 ;; 12115esac 12116 ;; 12117 esac 12118 fi 12119fi 12120 12121test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12122 12123 12124 12125 12126 12127# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 12128if test x"$ax_pthread_ok" = xyes; then 12129 12130$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 12131 12132 : 12133else 12134 ax_pthread_ok=no 12135 12136fi 12137ac_ext=c 12138ac_cpp='$CPP $CPPFLAGS' 12139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12141ac_compiler_gnu=$ac_cv_c_compiler_gnu 12142 12143 12144 12145# Check whether --enable-opencl was given. 12146if test "${enable_opencl+set}" = set; then : 12147 enableval=$enable_opencl; enable_opencl=$enableval 12148else 12149 enable_opencl='no' 12150fi 12151 12152 12153if test "$enable_opencl" = 'yes'; then 12154 ac_ext=c 12155ac_cpp='$CPP $CPPFLAGS' 12156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12158ac_compiler_gnu=$ac_cv_c_compiler_gnu 12159 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 12161$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 12162if ${ax_cv_c_compiler_ms+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167 12168int 12169main () 12170{ 12171#ifndef _MSC_VER 12172 choke me 12173#endif 12174 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179if ac_fn_c_try_compile "$LINENO"; then : 12180 ax_compiler_ms=yes 12181else 12182 ax_compiler_ms=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12185ax_cv_c_compiler_ms=$ax_compiler_ms 12186 12187fi 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 12189$as_echo "$ax_cv_c_compiler_ms" >&6; } 12190 if test X$ax_compiler_ms = Xno; then : 12191 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 12192fi 12193 12194 ax_save_CPPFLAGS=$CPPFLAGS 12195 ax_save_CL_CFLAGS=$CL_CFLAGS 12196 12197 found_opencl_header='no' 12198 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12199 for ac_header in CL/cl.h OpenCL/cl.h 12200do : 12201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12202ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12204 cat >>confdefs.h <<_ACEOF 12205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12206_ACEOF 12207 found_opencl_header='yes' 12208 break; 12209else 12210 found_opencl_header='no' 12211fi 12212 12213done 12214 12215 12216 if test X$found_opencl_header = Xno; then : 12217 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;} 12218 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;} 12219 CL_CFLAGS="-I$AMDAPPSDKROOT/include" 12220 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS" 12221 for ac_header in CL/cl.h OpenCL/cl.h 12222do : 12223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12224ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12225if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12226 cat >>confdefs.h <<_ACEOF 12227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12228_ACEOF 12229 found_opencl_header='yes' 12230 break; 12231else 12232 found_opencl_header='no' 12233fi 12234 12235done 12236 12237 12238fi 12239 12240 CPPFLAGS="$ax_save_CPPFLAGS" 12241 12242 for ac_header in windows.h 12243do : 12244 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 12245if test "x$ac_cv_header_windows_h" = xyes; then : 12246 cat >>confdefs.h <<_ACEOF 12247#define HAVE_WINDOWS_H 1 12248_ACEOF 12249 12250fi 12251 12252done 12253 12254 12255 12256 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 12258$as_echo_n "checking for OpenCL library... " >&6; } 12259if ${ax_cv_check_cl_libcl+:} false; then : 12260 $as_echo_n "(cached) " >&6 12261else 12262 ax_cv_check_cl_libcl=no 12263 case $host_cpu in 12264 x86_64) ax_check_cl_libdir=lib64 12265 ax_check_cl_amd_libdir=x86_64 12266 ;; 12267 *) ax_check_cl_libdir=lib 12268 ax_check_cl_amd_libdir=x86 12269 ;; 12270 esac 12271 ax_save_CPPFLAGS=$CPPFLAGS 12272 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12273 ax_save_LIBS=$LIBS 12274 LIBS="" 12275 ax_check_libs="-lOpenCL -lCL -lclparser" 12276 for ax_lib in $ax_check_libs; do 12277 if test X$ax_compiler_ms = Xyes; then : 12278 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 12279else 12280 ax_try_lib=$ax_lib 12281fi 12282 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12284/* end confdefs.h. */ 12285 12286 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12287 # include <windows.h> 12288 # endif 12289 # ifdef HAVE_CL_CL_H 12290 # include <CL/cl.h> 12291 # elif defined(HAVE_OPENCL_CL_H) 12292 # include <OpenCL/cl.h> 12293 # else 12294 # error no CL.h 12295 # endif 12296int 12297main () 12298{ 12299clCreateContextFromType(0,0,0,0,0) 12300 ; 12301 return 0; 12302} 12303_ACEOF 12304if ac_fn_c_try_link "$LINENO"; then : 12305 ax_cv_check_cl_libcl=$ax_try_lib; break 12306else 12307 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" 12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12309/* end confdefs.h. */ 12310 12311 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12312 # include <windows.h> 12313 # endif 12314 # ifdef HAVE_CL_CL_H 12315 # include <CL/cl.h> 12316 # elif defined(HAVE_OPENCL_CL_H) 12317 # include <OpenCL/cl.h> 12318 # else 12319 # error no CL.h 12320 # endif 12321int 12322main () 12323{ 12324clCreateContextFromType(0,0,0,0,0) 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_link "$LINENO"; then : 12330 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 12331else 12332 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" 12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12334/* end confdefs.h. */ 12335 12336 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12337 # include <windows.h> 12338 # endif 12339 # ifdef HAVE_CL_CL_H 12340 # include <CL/cl.h> 12341 # elif defined(HAVE_OPENCL_CL_H) 12342 # include <OpenCL/cl.h> 12343 # else 12344 # error no CL.h 12345 # endif 12346int 12347main () 12348{ 12349clCreateContextFromType(0,0,0,0,0) 12350 ; 12351 return 0; 12352} 12353_ACEOF 12354if ac_fn_c_try_link "$LINENO"; then : 12355 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 12356else 12357 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS" 12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360 12361 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12362 # include <windows.h> 12363 # endif 12364 # ifdef HAVE_CL_CL_H 12365 # include <CL/cl.h> 12366 # elif defined(HAVE_OPENCL_CL_H) 12367 # include <OpenCL/cl.h> 12368 # else 12369 # error no CL.h 12370 # endif 12371int 12372main () 12373{ 12374clCreateContextFromType(0,0,0,0,0) 12375 ; 12376 return 0; 12377} 12378_ACEOF 12379if ac_fn_c_try_link "$LINENO"; then : 12380 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break 12381 12382fi 12383rm -f core conftest.err conftest.$ac_objext \ 12384 conftest$ac_exeext conftest.$ac_ext 12385 12386 12387fi 12388rm -f core conftest.err conftest.$ac_objext \ 12389 conftest$ac_exeext conftest.$ac_ext 12390fi 12391rm -f core conftest.err conftest.$ac_objext \ 12392 conftest$ac_exeext conftest.$ac_ext 12393fi 12394rm -f core conftest.err conftest.$ac_objext \ 12395 conftest$ac_exeext conftest.$ac_ext 12396 done 12397 12398 if test "X$ax_cv_check_cl_libcl" = Xno; then : 12399 LIBS='-Wl,-framework,OpenCL' 12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12401/* end confdefs.h. */ 12402 12403 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12404 # include <windows.h> 12405 # endif 12406 # ifdef HAVE_CL_CL_H 12407 # include <CL/cl.h> 12408 # elif defined(HAVE_OPENCL_CL_H) 12409 # include <OpenCL/cl.h> 12410 # else 12411 # error no CL.h 12412 # endif 12413int 12414main () 12415{ 12416clCreateContextFromType(0,0,0,0,0) 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421if ac_fn_c_try_link "$LINENO"; then : 12422 ax_cv_check_cl_libcl=$LIBS 12423fi 12424rm -f core conftest.err conftest.$ac_objext \ 12425 conftest$ac_exeext conftest.$ac_ext 12426fi 12427 12428 LIBS=$ax_save_LIBS 12429 CPPFLAGS=$ax_save_CPPFLAGS 12430fi 12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 12432$as_echo "$ax_cv_check_cl_libcl" >&6; } 12433 12434 if test "X$ax_cv_check_cl_libcl" = Xno; then : 12435 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 12436else 12437 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 12438$as_echo "#define _OPENCL 1" >>confdefs.h 12439 12440fi 12441 ac_ext=c 12442ac_cpp='$CPP $CPPFLAGS' 12443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12445ac_compiler_gnu=$ac_cv_c_compiler_gnu 12446 12447fi 12448 12449 12450 12451#remove static link on Linux 12452CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'` 12453 12454 12455CFLAGS="$CL_CFLAGS $CFLAGS" 12456CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12457LIBS="$CL_LIBS $LIBS" 12458 12459if test "$enable_opencl" != no; then 12460 if test "X$ax_cv_check_cl_libcl" != Xno; then : 12461 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 12462 fi 12463fi 12464 12465######## 12466# 12467# Check for large file support 12468# 12469######## 12470# Check whether --enable-largefile was given. 12471if test "${enable_largefile+set}" = set; then : 12472 enableval=$enable_largefile; 12473fi 12474 12475if test "$enable_largefile" != no; then 12476 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12478$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12479if ${ac_cv_sys_largefile_CC+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481else 12482 ac_cv_sys_largefile_CC=no 12483 if test "$GCC" != yes; then 12484 ac_save_CC=$CC 12485 while :; do 12486 # IRIX 6.2 and later do not support large files by default, 12487 # so use the C compiler's -n32 option if that helps. 12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12489/* end confdefs.h. */ 12490#include <sys/types.h> 12491 /* Check that off_t can represent 2**63 - 1 correctly. 12492 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12493 since some C++ compilers masquerading as C compilers 12494 incorrectly reject 9223372036854775807. */ 12495#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12497 && LARGE_OFF_T % 2147483647 == 1) 12498 ? 1 : -1]; 12499int 12500main () 12501{ 12502 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507 if ac_fn_c_try_compile "$LINENO"; then : 12508 break 12509fi 12510rm -f core conftest.err conftest.$ac_objext 12511 CC="$CC -n32" 12512 if ac_fn_c_try_compile "$LINENO"; then : 12513 ac_cv_sys_largefile_CC=' -n32'; break 12514fi 12515rm -f core conftest.err conftest.$ac_objext 12516 break 12517 done 12518 CC=$ac_save_CC 12519 rm -f conftest.$ac_ext 12520 fi 12521fi 12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12523$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12524 if test "$ac_cv_sys_largefile_CC" != no; then 12525 CC=$CC$ac_cv_sys_largefile_CC 12526 fi 12527 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12529$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12530if ${ac_cv_sys_file_offset_bits+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 while :; do 12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536#include <sys/types.h> 12537 /* Check that off_t can represent 2**63 - 1 correctly. 12538 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12539 since some C++ compilers masquerading as C compilers 12540 incorrectly reject 9223372036854775807. */ 12541#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12543 && LARGE_OFF_T % 2147483647 == 1) 12544 ? 1 : -1]; 12545int 12546main () 12547{ 12548 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553if ac_fn_c_try_compile "$LINENO"; then : 12554 ac_cv_sys_file_offset_bits=no; break 12555fi 12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12558/* end confdefs.h. */ 12559#define _FILE_OFFSET_BITS 64 12560#include <sys/types.h> 12561 /* Check that off_t can represent 2**63 - 1 correctly. 12562 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12563 since some C++ compilers masquerading as C compilers 12564 incorrectly reject 9223372036854775807. */ 12565#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12567 && LARGE_OFF_T % 2147483647 == 1) 12568 ? 1 : -1]; 12569int 12570main () 12571{ 12572 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_compile "$LINENO"; then : 12578 ac_cv_sys_file_offset_bits=64; break 12579fi 12580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12581 ac_cv_sys_file_offset_bits=unknown 12582 break 12583done 12584fi 12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12586$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12587case $ac_cv_sys_file_offset_bits in #( 12588 no | unknown) ;; 12589 *) 12590cat >>confdefs.h <<_ACEOF 12591#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12592_ACEOF 12593;; 12594esac 12595rm -rf conftest* 12596 if test $ac_cv_sys_file_offset_bits = unknown; then 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12598$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12599if ${ac_cv_sys_large_files+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 while :; do 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605#include <sys/types.h> 12606 /* Check that off_t can represent 2**63 - 1 correctly. 12607 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12608 since some C++ compilers masquerading as C compilers 12609 incorrectly reject 9223372036854775807. */ 12610#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12612 && LARGE_OFF_T % 2147483647 == 1) 12613 ? 1 : -1]; 12614int 12615main () 12616{ 12617 12618 ; 12619 return 0; 12620} 12621_ACEOF 12622if ac_fn_c_try_compile "$LINENO"; then : 12623 ac_cv_sys_large_files=no; break 12624fi 12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12627/* end confdefs.h. */ 12628#define _LARGE_FILES 1 12629#include <sys/types.h> 12630 /* Check that off_t can represent 2**63 - 1 correctly. 12631 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12632 since some C++ compilers masquerading as C compilers 12633 incorrectly reject 9223372036854775807. */ 12634#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12636 && LARGE_OFF_T % 2147483647 == 1) 12637 ? 1 : -1]; 12638int 12639main () 12640{ 12641 12642 ; 12643 return 0; 12644} 12645_ACEOF 12646if ac_fn_c_try_compile "$LINENO"; then : 12647 ac_cv_sys_large_files=1; break 12648fi 12649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12650 ac_cv_sys_large_files=unknown 12651 break 12652done 12653fi 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12655$as_echo "$ac_cv_sys_large_files" >&6; } 12656case $ac_cv_sys_large_files in #( 12657 no | unknown) ;; 12658 *) 12659cat >>confdefs.h <<_ACEOF 12660#define _LARGE_FILES $ac_cv_sys_large_files 12661_ACEOF 12662;; 12663esac 12664rm -rf conftest* 12665 fi 12666 12667 12668fi 12669 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12671$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12672if ${ac_cv_sys_largefile_source+:} false; then : 12673 $as_echo_n "(cached) " >&6 12674else 12675 while :; do 12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12677/* end confdefs.h. */ 12678#include <sys/types.h> /* for off_t */ 12679 #include <stdio.h> 12680int 12681main () 12682{ 12683int (*fp) (FILE *, off_t, int) = fseeko; 12684 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689if ac_fn_c_try_link "$LINENO"; then : 12690 ac_cv_sys_largefile_source=no; break 12691fi 12692rm -f core conftest.err conftest.$ac_objext \ 12693 conftest$ac_exeext conftest.$ac_ext 12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12695/* end confdefs.h. */ 12696#define _LARGEFILE_SOURCE 1 12697#include <sys/types.h> /* for off_t */ 12698 #include <stdio.h> 12699int 12700main () 12701{ 12702int (*fp) (FILE *, off_t, int) = fseeko; 12703 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12704 ; 12705 return 0; 12706} 12707_ACEOF 12708if ac_fn_c_try_link "$LINENO"; then : 12709 ac_cv_sys_largefile_source=1; break 12710fi 12711rm -f core conftest.err conftest.$ac_objext \ 12712 conftest$ac_exeext conftest.$ac_ext 12713 ac_cv_sys_largefile_source=unknown 12714 break 12715done 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12718$as_echo "$ac_cv_sys_largefile_source" >&6; } 12719case $ac_cv_sys_largefile_source in #( 12720 no | unknown) ;; 12721 *) 12722cat >>confdefs.h <<_ACEOF 12723#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12724_ACEOF 12725;; 12726esac 12727rm -rf conftest* 12728 12729# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12730# in glibc 2.1.3, but that breaks too many other things. 12731# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12732if test $ac_cv_sys_largefile_source != unknown; then 12733 12734$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12735 12736fi 12737 12738LFS_CPPFLAGS='' 12739if test "$enable_largefile" != no; then 12740 case $ac_cv_sys_file_offset_bits in 12741 no) 12742 # nothing to do here as the host supports LFS fine 12743 ;; 12744 unknown) 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 12746$as_echo_n "checking for native large file support... " >&6; } 12747 if test "$cross_compiling" = yes; then : 12748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12750as_fn_error $? "cannot run test program while cross compiling 12751See \`config.log' for more details" "$LINENO" 5; } 12752else 12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12754/* end confdefs.h. */ 12755#include <unistd.h> 12756 main () { 12757 exit(!(sizeof(off_t) == 8)); 12758 } 12759int 12760main () 12761{ 12762 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_run "$LINENO"; then : 12768 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12769 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12771$as_echo "yes" >&6; } 12772else 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12774$as_echo "no" >&6; } 12775fi 12776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12777 conftest.$ac_objext conftest.beam conftest.$ac_ext 12778fi 12779 12780 ;; 12781 *) 12782 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 12783 ;; 12784 esac 12785 if test "$ac_cv_sys_large_files" != 'no'; then 12786 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 12787 fi 12788 if test "$ac_cv_sys_largefile_source" != 'no'; then 12789 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 12790 fi 12791fi 12792 12793 12794# Configure libtool 12795enable_dlopen=yes 12796 12797 12798 12799case `pwd` in 12800 *\ * | *\ *) 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12802$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12803esac 12804 12805 12806 12807macro_version='2.4.6' 12808macro_revision='2.4.6' 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822ltmain=$ac_aux_dir/ltmain.sh 12823 12824# Backslashify metacharacters that are still active within 12825# double-quoted strings. 12826sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12827 12828# Same as above, but do not quote variable references. 12829double_quote_subst='s/\(["`\\]\)/\\\1/g' 12830 12831# Sed substitution to delay expansion of an escaped shell variable in a 12832# double_quote_subst'ed string. 12833delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12834 12835# Sed substitution to delay expansion of an escaped single quote. 12836delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12837 12838# Sed substitution to avoid accidental globbing in evaled expressions 12839no_glob_subst='s/\*/\\\*/g' 12840 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12842$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12843if ${lt_cv_path_NM+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 if test -n "$NM"; then 12847 # Let the user override the test. 12848 lt_cv_path_NM=$NM 12849else 12850 lt_nm_to_check=${ac_tool_prefix}nm 12851 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12852 lt_nm_to_check="$lt_nm_to_check nm" 12853 fi 12854 for lt_tmp_nm in $lt_nm_to_check; do 12855 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12856 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12857 IFS=$lt_save_ifs 12858 test -z "$ac_dir" && ac_dir=. 12859 tmp_nm=$ac_dir/$lt_tmp_nm 12860 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12861 # Check to see if the nm accepts a BSD-compat flag. 12862 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12863 # nm: unknown option "B" ignored 12864 # Tru64's nm complains that /dev/null is an invalid object file 12865 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12866 case $build_os in 12867 mingw*) lt_bad_file=conftest.nm/nofile ;; 12868 *) lt_bad_file=/dev/null ;; 12869 esac 12870 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 12871 *$lt_bad_file* | *'Invalid file or object type'*) 12872 lt_cv_path_NM="$tmp_nm -B" 12873 break 2 12874 ;; 12875 *) 12876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12877 */dev/null*) 12878 lt_cv_path_NM="$tmp_nm -p" 12879 break 2 12880 ;; 12881 *) 12882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12883 continue # so that we can try to find one that supports BSD flags 12884 ;; 12885 esac 12886 ;; 12887 esac 12888 fi 12889 done 12890 IFS=$lt_save_ifs 12891 done 12892 : ${lt_cv_path_NM=no} 12893fi 12894fi 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12896$as_echo "$lt_cv_path_NM" >&6; } 12897if test no != "$lt_cv_path_NM"; then 12898 NM=$lt_cv_path_NM 12899else 12900 # Didn't find any BSD compatible name lister, look for dumpbin. 12901 if test -n "$DUMPBIN"; then : 12902 # Let the user override the test. 12903 else 12904 if test -n "$ac_tool_prefix"; then 12905 for ac_prog in dumpbin "link -dump" 12906 do 12907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12908set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12910$as_echo_n "checking for $ac_word... " >&6; } 12911if ${ac_cv_prog_DUMPBIN+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 if test -n "$DUMPBIN"; then 12915 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12916else 12917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12918for as_dir in $PATH 12919do 12920 IFS=$as_save_IFS 12921 test -z "$as_dir" && as_dir=. 12922 for ac_exec_ext in '' $ac_executable_extensions; do 12923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12926 break 2 12927 fi 12928done 12929 done 12930IFS=$as_save_IFS 12931 12932fi 12933fi 12934DUMPBIN=$ac_cv_prog_DUMPBIN 12935if test -n "$DUMPBIN"; then 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12937$as_echo "$DUMPBIN" >&6; } 12938else 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12940$as_echo "no" >&6; } 12941fi 12942 12943 12944 test -n "$DUMPBIN" && break 12945 done 12946fi 12947if test -z "$DUMPBIN"; then 12948 ac_ct_DUMPBIN=$DUMPBIN 12949 for ac_prog in dumpbin "link -dump" 12950do 12951 # Extract the first word of "$ac_prog", so it can be a program name with args. 12952set dummy $ac_prog; ac_word=$2 12953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12954$as_echo_n "checking for $ac_word... " >&6; } 12955if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 12956 $as_echo_n "(cached) " >&6 12957else 12958 if test -n "$ac_ct_DUMPBIN"; then 12959 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12960else 12961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12962for as_dir in $PATH 12963do 12964 IFS=$as_save_IFS 12965 test -z "$as_dir" && as_dir=. 12966 for ac_exec_ext in '' $ac_executable_extensions; do 12967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12970 break 2 12971 fi 12972done 12973 done 12974IFS=$as_save_IFS 12975 12976fi 12977fi 12978ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12979if test -n "$ac_ct_DUMPBIN"; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12981$as_echo "$ac_ct_DUMPBIN" >&6; } 12982else 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12984$as_echo "no" >&6; } 12985fi 12986 12987 12988 test -n "$ac_ct_DUMPBIN" && break 12989done 12990 12991 if test "x$ac_ct_DUMPBIN" = x; then 12992 DUMPBIN=":" 12993 else 12994 case $cross_compiling:$ac_tool_warned in 12995yes:) 12996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12998ac_tool_warned=yes ;; 12999esac 13000 DUMPBIN=$ac_ct_DUMPBIN 13001 fi 13002fi 13003 13004 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13005 *COFF*) 13006 DUMPBIN="$DUMPBIN -symbols -headers" 13007 ;; 13008 *) 13009 DUMPBIN=: 13010 ;; 13011 esac 13012 fi 13013 13014 if test : != "$DUMPBIN"; then 13015 NM=$DUMPBIN 13016 fi 13017fi 13018test -z "$NM" && NM=nm 13019 13020 13021 13022 13023 13024 13025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13026$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13027if ${lt_cv_nm_interface+:} false; then : 13028 $as_echo_n "(cached) " >&6 13029else 13030 lt_cv_nm_interface="BSD nm" 13031 echo "int some_variable = 0;" > conftest.$ac_ext 13032 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13033 (eval "$ac_compile" 2>conftest.err) 13034 cat conftest.err >&5 13035 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13036 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13037 cat conftest.err >&5 13038 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13039 cat conftest.out >&5 13040 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13041 lt_cv_nm_interface="MS dumpbin" 13042 fi 13043 rm -f conftest* 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13046$as_echo "$lt_cv_nm_interface" >&6; } 13047 13048# find the maximum length of command line arguments 13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13050$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13051if ${lt_cv_sys_max_cmd_len+:} false; then : 13052 $as_echo_n "(cached) " >&6 13053else 13054 i=0 13055 teststring=ABCD 13056 13057 case $build_os in 13058 msdosdjgpp*) 13059 # On DJGPP, this test can blow up pretty badly due to problems in libc 13060 # (any single argument exceeding 2000 bytes causes a buffer overrun 13061 # during glob expansion). Even if it were fixed, the result of this 13062 # check would be larger than it should be. 13063 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13064 ;; 13065 13066 gnu*) 13067 # Under GNU Hurd, this test is not required because there is 13068 # no limit to the length of command line arguments. 13069 # Libtool will interpret -1 as no limit whatsoever 13070 lt_cv_sys_max_cmd_len=-1; 13071 ;; 13072 13073 cygwin* | mingw* | cegcc*) 13074 # On Win9x/ME, this test blows up -- it succeeds, but takes 13075 # about 5 minutes as the teststring grows exponentially. 13076 # Worse, since 9x/ME are not pre-emptively multitasking, 13077 # you end up with a "frozen" computer, even though with patience 13078 # the test eventually succeeds (with a max line length of 256k). 13079 # Instead, let's just punt: use the minimum linelength reported by 13080 # all of the supported platforms: 8192 (on NT/2K/XP). 13081 lt_cv_sys_max_cmd_len=8192; 13082 ;; 13083 13084 mint*) 13085 # On MiNT this can take a long time and run out of memory. 13086 lt_cv_sys_max_cmd_len=8192; 13087 ;; 13088 13089 amigaos*) 13090 # On AmigaOS with pdksh, this test takes hours, literally. 13091 # So we just punt and use a minimum line length of 8192. 13092 lt_cv_sys_max_cmd_len=8192; 13093 ;; 13094 13095 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13096 # This has been around since 386BSD, at least. Likely further. 13097 if test -x /sbin/sysctl; then 13098 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13099 elif test -x /usr/sbin/sysctl; then 13100 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13101 else 13102 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13103 fi 13104 # And add a safety zone 13105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13107 ;; 13108 13109 interix*) 13110 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13111 lt_cv_sys_max_cmd_len=196608 13112 ;; 13113 13114 os2*) 13115 # The test takes a long time on OS/2. 13116 lt_cv_sys_max_cmd_len=8192 13117 ;; 13118 13119 osf*) 13120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13122 # nice to cause kernel panics so lets avoid the loop below. 13123 # First set a reasonable default. 13124 lt_cv_sys_max_cmd_len=16384 13125 # 13126 if test -x /sbin/sysconfig; then 13127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13128 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13129 esac 13130 fi 13131 ;; 13132 sco3.2v5*) 13133 lt_cv_sys_max_cmd_len=102400 13134 ;; 13135 sysv5* | sco5v6* | sysv4.2uw2*) 13136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13137 if test -n "$kargmax"; then 13138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13139 else 13140 lt_cv_sys_max_cmd_len=32768 13141 fi 13142 ;; 13143 *) 13144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13145 if test -n "$lt_cv_sys_max_cmd_len" && \ 13146 test undefined != "$lt_cv_sys_max_cmd_len"; then 13147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13149 else 13150 # Make teststring a little bigger before we do anything with it. 13151 # a 1K string should be a reasonable start. 13152 for i in 1 2 3 4 5 6 7 8; do 13153 teststring=$teststring$teststring 13154 done 13155 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13156 # If test is not a shell built-in, we'll probably end up computing a 13157 # maximum length that is only half of the actual maximum length, but 13158 # we can't tell. 13159 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13160 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13161 test 17 != "$i" # 1/2 MB should be enough 13162 do 13163 i=`expr $i + 1` 13164 teststring=$teststring$teststring 13165 done 13166 # Only check the string length outside the loop. 13167 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13168 teststring= 13169 # Add a significant safety factor because C++ compilers can tack on 13170 # massive amounts of additional arguments before passing them to the 13171 # linker. It appears as though 1/2 is a usable value. 13172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13173 fi 13174 ;; 13175 esac 13176 13177fi 13178 13179if test -n "$lt_cv_sys_max_cmd_len"; then 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13181$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13182else 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13184$as_echo "none" >&6; } 13185fi 13186max_cmd_len=$lt_cv_sys_max_cmd_len 13187 13188 13189 13190 13191 13192 13193: ${CP="cp -f"} 13194: ${MV="mv -f"} 13195: ${RM="rm -f"} 13196 13197if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13198 lt_unset=unset 13199else 13200 lt_unset=false 13201fi 13202 13203 13204 13205 13206 13207# test EBCDIC or ASCII 13208case `echo X|tr X '\101'` in 13209 A) # ASCII based system 13210 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 13211 lt_SP2NL='tr \040 \012' 13212 lt_NL2SP='tr \015\012 \040\040' 13213 ;; 13214 *) # EBCDIC based system 13215 lt_SP2NL='tr \100 \n' 13216 lt_NL2SP='tr \r\n \100\100' 13217 ;; 13218esac 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 13229$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 13230if ${lt_cv_to_host_file_cmd+:} false; then : 13231 $as_echo_n "(cached) " >&6 13232else 13233 case $host in 13234 *-*-mingw* ) 13235 case $build in 13236 *-*-mingw* ) # actually msys 13237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 13238 ;; 13239 *-*-cygwin* ) 13240 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 13241 ;; 13242 * ) # otherwise, assume *nix 13243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 13244 ;; 13245 esac 13246 ;; 13247 *-*-cygwin* ) 13248 case $build in 13249 *-*-mingw* ) # actually msys 13250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 13251 ;; 13252 *-*-cygwin* ) 13253 lt_cv_to_host_file_cmd=func_convert_file_noop 13254 ;; 13255 * ) # otherwise, assume *nix 13256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 13257 ;; 13258 esac 13259 ;; 13260 * ) # unhandled hosts (and "normal" native builds) 13261 lt_cv_to_host_file_cmd=func_convert_file_noop 13262 ;; 13263esac 13264 13265fi 13266 13267to_host_file_cmd=$lt_cv_to_host_file_cmd 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 13269$as_echo "$lt_cv_to_host_file_cmd" >&6; } 13270 13271 13272 13273 13274 13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 13276$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 13277if ${lt_cv_to_tool_file_cmd+:} false; then : 13278 $as_echo_n "(cached) " >&6 13279else 13280 #assume ordinary cross tools, or native build. 13281lt_cv_to_tool_file_cmd=func_convert_file_noop 13282case $host in 13283 *-*-mingw* ) 13284 case $build in 13285 *-*-mingw* ) # actually msys 13286 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 13287 ;; 13288 esac 13289 ;; 13290esac 13291 13292fi 13293 13294to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 13296$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 13297 13298 13299 13300 13301 13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 13303$as_echo_n "checking for $LD option to reload object files... " >&6; } 13304if ${lt_cv_ld_reload_flag+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306else 13307 lt_cv_ld_reload_flag='-r' 13308fi 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 13310$as_echo "$lt_cv_ld_reload_flag" >&6; } 13311reload_flag=$lt_cv_ld_reload_flag 13312case $reload_flag in 13313"" | " "*) ;; 13314*) reload_flag=" $reload_flag" ;; 13315esac 13316reload_cmds='$LD$reload_flag -o $output$reload_objs' 13317case $host_os in 13318 cygwin* | mingw* | pw32* | cegcc*) 13319 if test yes != "$GCC"; then 13320 reload_cmds=false 13321 fi 13322 ;; 13323 darwin*) 13324 if test yes = "$GCC"; then 13325 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 13326 else 13327 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13328 fi 13329 ;; 13330esac 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340if test -n "$ac_tool_prefix"; then 13341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13342set dummy ${ac_tool_prefix}objdump; ac_word=$2 13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13344$as_echo_n "checking for $ac_word... " >&6; } 13345if ${ac_cv_prog_OBJDUMP+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347else 13348 if test -n "$OBJDUMP"; then 13349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13350else 13351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13352for as_dir in $PATH 13353do 13354 IFS=$as_save_IFS 13355 test -z "$as_dir" && as_dir=. 13356 for ac_exec_ext in '' $ac_executable_extensions; do 13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13360 break 2 13361 fi 13362done 13363 done 13364IFS=$as_save_IFS 13365 13366fi 13367fi 13368OBJDUMP=$ac_cv_prog_OBJDUMP 13369if test -n "$OBJDUMP"; then 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13371$as_echo "$OBJDUMP" >&6; } 13372else 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13374$as_echo "no" >&6; } 13375fi 13376 13377 13378fi 13379if test -z "$ac_cv_prog_OBJDUMP"; then 13380 ac_ct_OBJDUMP=$OBJDUMP 13381 # Extract the first word of "objdump", so it can be a program name with args. 13382set dummy objdump; ac_word=$2 13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13384$as_echo_n "checking for $ac_word... " >&6; } 13385if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13386 $as_echo_n "(cached) " >&6 13387else 13388 if test -n "$ac_ct_OBJDUMP"; then 13389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13390else 13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13392for as_dir in $PATH 13393do 13394 IFS=$as_save_IFS 13395 test -z "$as_dir" && as_dir=. 13396 for ac_exec_ext in '' $ac_executable_extensions; do 13397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13398 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13400 break 2 13401 fi 13402done 13403 done 13404IFS=$as_save_IFS 13405 13406fi 13407fi 13408ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13409if test -n "$ac_ct_OBJDUMP"; then 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13411$as_echo "$ac_ct_OBJDUMP" >&6; } 13412else 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13414$as_echo "no" >&6; } 13415fi 13416 13417 if test "x$ac_ct_OBJDUMP" = x; then 13418 OBJDUMP="false" 13419 else 13420 case $cross_compiling:$ac_tool_warned in 13421yes:) 13422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13424ac_tool_warned=yes ;; 13425esac 13426 OBJDUMP=$ac_ct_OBJDUMP 13427 fi 13428else 13429 OBJDUMP="$ac_cv_prog_OBJDUMP" 13430fi 13431 13432test -z "$OBJDUMP" && OBJDUMP=objdump 13433 13434 13435 13436 13437 13438 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13440$as_echo_n "checking how to recognize dependent libraries... " >&6; } 13441if ${lt_cv_deplibs_check_method+:} false; then : 13442 $as_echo_n "(cached) " >&6 13443else 13444 lt_cv_file_magic_cmd='$MAGIC_CMD' 13445lt_cv_file_magic_test_file= 13446lt_cv_deplibs_check_method='unknown' 13447# Need to set the preceding variable on all platforms that support 13448# interlibrary dependencies. 13449# 'none' -- dependencies not supported. 13450# 'unknown' -- same as none, but documents that we really don't know. 13451# 'pass_all' -- all dependencies passed with no checks. 13452# 'test_compile' -- check by making test program. 13453# 'file_magic [[regex]]' -- check by looking for files in library path 13454# that responds to the $file_magic_cmd with a given extended regex. 13455# If you have 'file' or equivalent on your system and you're not sure 13456# whether 'pass_all' will *always* work, you probably want this one. 13457 13458case $host_os in 13459aix[4-9]*) 13460 lt_cv_deplibs_check_method=pass_all 13461 ;; 13462 13463beos*) 13464 lt_cv_deplibs_check_method=pass_all 13465 ;; 13466 13467bsdi[45]*) 13468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13469 lt_cv_file_magic_cmd='/usr/bin/file -L' 13470 lt_cv_file_magic_test_file=/shlib/libc.so 13471 ;; 13472 13473cygwin*) 13474 # func_win32_libid is a shell function defined in ltmain.sh 13475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13476 lt_cv_file_magic_cmd='func_win32_libid' 13477 ;; 13478 13479mingw* | pw32*) 13480 # Base MSYS/MinGW do not provide the 'file' command needed by 13481 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13482 # unless we find 'file', for example because we are cross-compiling. 13483 if ( file / ) >/dev/null 2>&1; then 13484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13485 lt_cv_file_magic_cmd='func_win32_libid' 13486 else 13487 # Keep this pattern in sync with the one in func_win32_libid. 13488 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13489 lt_cv_file_magic_cmd='$OBJDUMP -f' 13490 fi 13491 ;; 13492 13493cegcc*) 13494 # use the weaker test based on 'objdump'. See mingw*. 13495 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13496 lt_cv_file_magic_cmd='$OBJDUMP -f' 13497 ;; 13498 13499darwin* | rhapsody*) 13500 lt_cv_deplibs_check_method=pass_all 13501 ;; 13502 13503freebsd* | dragonfly*) 13504 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13505 case $host_cpu in 13506 i*86 ) 13507 # Not sure whether the presence of OpenBSD here was a mistake. 13508 # Let's accept both of them until this is cleared up. 13509 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13510 lt_cv_file_magic_cmd=/usr/bin/file 13511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13512 ;; 13513 esac 13514 else 13515 lt_cv_deplibs_check_method=pass_all 13516 fi 13517 ;; 13518 13519haiku*) 13520 lt_cv_deplibs_check_method=pass_all 13521 ;; 13522 13523hpux10.20* | hpux11*) 13524 lt_cv_file_magic_cmd=/usr/bin/file 13525 case $host_cpu in 13526 ia64*) 13527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13528 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13529 ;; 13530 hppa*64*) 13531 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]' 13532 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13533 ;; 13534 *) 13535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13536 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13537 ;; 13538 esac 13539 ;; 13540 13541interix[3-9]*) 13542 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13544 ;; 13545 13546irix5* | irix6* | nonstopux*) 13547 case $LD in 13548 *-32|*"-32 ") libmagic=32-bit;; 13549 *-n32|*"-n32 ") libmagic=N32;; 13550 *-64|*"-64 ") libmagic=64-bit;; 13551 *) libmagic=never-match;; 13552 esac 13553 lt_cv_deplibs_check_method=pass_all 13554 ;; 13555 13556# This must be glibc/ELF. 13557linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13558 lt_cv_deplibs_check_method=pass_all 13559 ;; 13560 13561netbsd*) 13562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13564 else 13565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13566 fi 13567 ;; 13568 13569newos6*) 13570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13571 lt_cv_file_magic_cmd=/usr/bin/file 13572 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13573 ;; 13574 13575*nto* | *qnx*) 13576 lt_cv_deplibs_check_method=pass_all 13577 ;; 13578 13579openbsd* | bitrig*) 13580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13582 else 13583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13584 fi 13585 ;; 13586 13587osf3* | osf4* | osf5*) 13588 lt_cv_deplibs_check_method=pass_all 13589 ;; 13590 13591rdos*) 13592 lt_cv_deplibs_check_method=pass_all 13593 ;; 13594 13595solaris*) 13596 lt_cv_deplibs_check_method=pass_all 13597 ;; 13598 13599sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13600 lt_cv_deplibs_check_method=pass_all 13601 ;; 13602 13603sysv4 | sysv4.3*) 13604 case $host_vendor in 13605 motorola) 13606 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]' 13607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13608 ;; 13609 ncr) 13610 lt_cv_deplibs_check_method=pass_all 13611 ;; 13612 sequent) 13613 lt_cv_file_magic_cmd='/bin/file' 13614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13615 ;; 13616 sni) 13617 lt_cv_file_magic_cmd='/bin/file' 13618 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13619 lt_cv_file_magic_test_file=/lib/libc.so 13620 ;; 13621 siemens) 13622 lt_cv_deplibs_check_method=pass_all 13623 ;; 13624 pc) 13625 lt_cv_deplibs_check_method=pass_all 13626 ;; 13627 esac 13628 ;; 13629 13630tpf*) 13631 lt_cv_deplibs_check_method=pass_all 13632 ;; 13633os2*) 13634 lt_cv_deplibs_check_method=pass_all 13635 ;; 13636esac 13637 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13640$as_echo "$lt_cv_deplibs_check_method" >&6; } 13641 13642file_magic_glob= 13643want_nocaseglob=no 13644if test "$build" = "$host"; then 13645 case $host_os in 13646 mingw* | pw32*) 13647 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13648 want_nocaseglob=yes 13649 else 13650 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13651 fi 13652 ;; 13653 esac 13654fi 13655 13656file_magic_cmd=$lt_cv_file_magic_cmd 13657deplibs_check_method=$lt_cv_deplibs_check_method 13658test -z "$deplibs_check_method" && deplibs_check_method=unknown 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681if test -n "$ac_tool_prefix"; then 13682 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13683set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13685$as_echo_n "checking for $ac_word... " >&6; } 13686if ${ac_cv_prog_DLLTOOL+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 if test -n "$DLLTOOL"; then 13690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13691else 13692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13693for as_dir in $PATH 13694do 13695 IFS=$as_save_IFS 13696 test -z "$as_dir" && as_dir=. 13697 for ac_exec_ext in '' $ac_executable_extensions; do 13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13699 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13701 break 2 13702 fi 13703done 13704 done 13705IFS=$as_save_IFS 13706 13707fi 13708fi 13709DLLTOOL=$ac_cv_prog_DLLTOOL 13710if test -n "$DLLTOOL"; then 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13712$as_echo "$DLLTOOL" >&6; } 13713else 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13715$as_echo "no" >&6; } 13716fi 13717 13718 13719fi 13720if test -z "$ac_cv_prog_DLLTOOL"; then 13721 ac_ct_DLLTOOL=$DLLTOOL 13722 # Extract the first word of "dlltool", so it can be a program name with args. 13723set dummy dlltool; ac_word=$2 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13725$as_echo_n "checking for $ac_word... " >&6; } 13726if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 if test -n "$ac_ct_DLLTOOL"; then 13730 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13731else 13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13733for as_dir in $PATH 13734do 13735 IFS=$as_save_IFS 13736 test -z "$as_dir" && as_dir=. 13737 for ac_exec_ext in '' $ac_executable_extensions; do 13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13739 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13741 break 2 13742 fi 13743done 13744 done 13745IFS=$as_save_IFS 13746 13747fi 13748fi 13749ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13750if test -n "$ac_ct_DLLTOOL"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13752$as_echo "$ac_ct_DLLTOOL" >&6; } 13753else 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13755$as_echo "no" >&6; } 13756fi 13757 13758 if test "x$ac_ct_DLLTOOL" = x; then 13759 DLLTOOL="false" 13760 else 13761 case $cross_compiling:$ac_tool_warned in 13762yes:) 13763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13765ac_tool_warned=yes ;; 13766esac 13767 DLLTOOL=$ac_ct_DLLTOOL 13768 fi 13769else 13770 DLLTOOL="$ac_cv_prog_DLLTOOL" 13771fi 13772 13773test -z "$DLLTOOL" && DLLTOOL=dlltool 13774 13775 13776 13777 13778 13779 13780 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13782$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 13783if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 13784 $as_echo_n "(cached) " >&6 13785else 13786 lt_cv_sharedlib_from_linklib_cmd='unknown' 13787 13788case $host_os in 13789cygwin* | mingw* | pw32* | cegcc*) 13790 # two different shell functions defined in ltmain.sh; 13791 # decide which one to use based on capabilities of $DLLTOOL 13792 case `$DLLTOOL --help 2>&1` in 13793 *--identify-strict*) 13794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13795 ;; 13796 *) 13797 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13798 ;; 13799 esac 13800 ;; 13801*) 13802 # fallback: assume linklib IS sharedlib 13803 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13804 ;; 13805esac 13806 13807fi 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13809$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13810sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13811test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13812 13813 13814 13815 13816 13817 13818 13819if test -n "$ac_tool_prefix"; then 13820 for ac_prog in ar 13821 do 13822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13825$as_echo_n "checking for $ac_word... " >&6; } 13826if ${ac_cv_prog_AR+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 if test -n "$AR"; then 13830 ac_cv_prog_AR="$AR" # Let the user override the test. 13831else 13832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13833for as_dir in $PATH 13834do 13835 IFS=$as_save_IFS 13836 test -z "$as_dir" && as_dir=. 13837 for ac_exec_ext in '' $ac_executable_extensions; do 13838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13841 break 2 13842 fi 13843done 13844 done 13845IFS=$as_save_IFS 13846 13847fi 13848fi 13849AR=$ac_cv_prog_AR 13850if test -n "$AR"; then 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13852$as_echo "$AR" >&6; } 13853else 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13855$as_echo "no" >&6; } 13856fi 13857 13858 13859 test -n "$AR" && break 13860 done 13861fi 13862if test -z "$AR"; then 13863 ac_ct_AR=$AR 13864 for ac_prog in ar 13865do 13866 # Extract the first word of "$ac_prog", so it can be a program name with args. 13867set dummy $ac_prog; ac_word=$2 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13869$as_echo_n "checking for $ac_word... " >&6; } 13870if ${ac_cv_prog_ac_ct_AR+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 if test -n "$ac_ct_AR"; then 13874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13875else 13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13877for as_dir in $PATH 13878do 13879 IFS=$as_save_IFS 13880 test -z "$as_dir" && as_dir=. 13881 for ac_exec_ext in '' $ac_executable_extensions; do 13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13883 ac_cv_prog_ac_ct_AR="$ac_prog" 13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13885 break 2 13886 fi 13887done 13888 done 13889IFS=$as_save_IFS 13890 13891fi 13892fi 13893ac_ct_AR=$ac_cv_prog_ac_ct_AR 13894if test -n "$ac_ct_AR"; then 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13896$as_echo "$ac_ct_AR" >&6; } 13897else 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13899$as_echo "no" >&6; } 13900fi 13901 13902 13903 test -n "$ac_ct_AR" && break 13904done 13905 13906 if test "x$ac_ct_AR" = x; then 13907 AR="false" 13908 else 13909 case $cross_compiling:$ac_tool_warned in 13910yes:) 13911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13913ac_tool_warned=yes ;; 13914esac 13915 AR=$ac_ct_AR 13916 fi 13917fi 13918 13919: ${AR=ar} 13920: ${AR_FLAGS=cru} 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13933$as_echo_n "checking for archiver @FILE support... " >&6; } 13934if ${lt_cv_ar_at_file+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 lt_cv_ar_at_file=no 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13939/* end confdefs.h. */ 13940 13941int 13942main () 13943{ 13944 13945 ; 13946 return 0; 13947} 13948_ACEOF 13949if ac_fn_c_try_compile "$LINENO"; then : 13950 echo conftest.$ac_objext > conftest.lst 13951 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13953 (eval $lt_ar_try) 2>&5 13954 ac_status=$? 13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13956 test $ac_status = 0; } 13957 if test 0 -eq "$ac_status"; then 13958 # Ensure the archiver fails upon bogus file names. 13959 rm -f conftest.$ac_objext libconftest.a 13960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13961 (eval $lt_ar_try) 2>&5 13962 ac_status=$? 13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13964 test $ac_status = 0; } 13965 if test 0 -ne "$ac_status"; then 13966 lt_cv_ar_at_file=@ 13967 fi 13968 fi 13969 rm -f conftest.* libconftest.a 13970 13971fi 13972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13973 13974fi 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13976$as_echo "$lt_cv_ar_at_file" >&6; } 13977 13978if test no = "$lt_cv_ar_at_file"; then 13979 archiver_list_spec= 13980else 13981 archiver_list_spec=$lt_cv_ar_at_file 13982fi 13983 13984 13985 13986 13987 13988 13989 13990if test -n "$ac_tool_prefix"; then 13991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13992set dummy ${ac_tool_prefix}strip; ac_word=$2 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13994$as_echo_n "checking for $ac_word... " >&6; } 13995if ${ac_cv_prog_STRIP+:} false; then : 13996 $as_echo_n "(cached) " >&6 13997else 13998 if test -n "$STRIP"; then 13999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14000else 14001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14002for as_dir in $PATH 14003do 14004 IFS=$as_save_IFS 14005 test -z "$as_dir" && as_dir=. 14006 for ac_exec_ext in '' $ac_executable_extensions; do 14007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14008 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14010 break 2 14011 fi 14012done 14013 done 14014IFS=$as_save_IFS 14015 14016fi 14017fi 14018STRIP=$ac_cv_prog_STRIP 14019if test -n "$STRIP"; then 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14021$as_echo "$STRIP" >&6; } 14022else 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14024$as_echo "no" >&6; } 14025fi 14026 14027 14028fi 14029if test -z "$ac_cv_prog_STRIP"; then 14030 ac_ct_STRIP=$STRIP 14031 # Extract the first word of "strip", so it can be a program name with args. 14032set dummy strip; ac_word=$2 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14034$as_echo_n "checking for $ac_word... " >&6; } 14035if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14036 $as_echo_n "(cached) " >&6 14037else 14038 if test -n "$ac_ct_STRIP"; then 14039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14040else 14041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14042for as_dir in $PATH 14043do 14044 IFS=$as_save_IFS 14045 test -z "$as_dir" && as_dir=. 14046 for ac_exec_ext in '' $ac_executable_extensions; do 14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14048 ac_cv_prog_ac_ct_STRIP="strip" 14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14050 break 2 14051 fi 14052done 14053 done 14054IFS=$as_save_IFS 14055 14056fi 14057fi 14058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14059if test -n "$ac_ct_STRIP"; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14061$as_echo "$ac_ct_STRIP" >&6; } 14062else 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14064$as_echo "no" >&6; } 14065fi 14066 14067 if test "x$ac_ct_STRIP" = x; then 14068 STRIP=":" 14069 else 14070 case $cross_compiling:$ac_tool_warned in 14071yes:) 14072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14074ac_tool_warned=yes ;; 14075esac 14076 STRIP=$ac_ct_STRIP 14077 fi 14078else 14079 STRIP="$ac_cv_prog_STRIP" 14080fi 14081 14082test -z "$STRIP" && STRIP=: 14083 14084 14085 14086 14087 14088 14089if test -n "$ac_tool_prefix"; then 14090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14091set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14093$as_echo_n "checking for $ac_word... " >&6; } 14094if ${ac_cv_prog_RANLIB+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 if test -n "$RANLIB"; then 14098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14099else 14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14101for as_dir in $PATH 14102do 14103 IFS=$as_save_IFS 14104 test -z "$as_dir" && as_dir=. 14105 for ac_exec_ext in '' $ac_executable_extensions; do 14106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14109 break 2 14110 fi 14111done 14112 done 14113IFS=$as_save_IFS 14114 14115fi 14116fi 14117RANLIB=$ac_cv_prog_RANLIB 14118if test -n "$RANLIB"; then 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14120$as_echo "$RANLIB" >&6; } 14121else 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14123$as_echo "no" >&6; } 14124fi 14125 14126 14127fi 14128if test -z "$ac_cv_prog_RANLIB"; then 14129 ac_ct_RANLIB=$RANLIB 14130 # Extract the first word of "ranlib", so it can be a program name with args. 14131set dummy ranlib; ac_word=$2 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14133$as_echo_n "checking for $ac_word... " >&6; } 14134if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14135 $as_echo_n "(cached) " >&6 14136else 14137 if test -n "$ac_ct_RANLIB"; then 14138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14139else 14140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14141for as_dir in $PATH 14142do 14143 IFS=$as_save_IFS 14144 test -z "$as_dir" && as_dir=. 14145 for ac_exec_ext in '' $ac_executable_extensions; do 14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14147 ac_cv_prog_ac_ct_RANLIB="ranlib" 14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14149 break 2 14150 fi 14151done 14152 done 14153IFS=$as_save_IFS 14154 14155fi 14156fi 14157ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14158if test -n "$ac_ct_RANLIB"; then 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14160$as_echo "$ac_ct_RANLIB" >&6; } 14161else 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14163$as_echo "no" >&6; } 14164fi 14165 14166 if test "x$ac_ct_RANLIB" = x; then 14167 RANLIB=":" 14168 else 14169 case $cross_compiling:$ac_tool_warned in 14170yes:) 14171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14173ac_tool_warned=yes ;; 14174esac 14175 RANLIB=$ac_ct_RANLIB 14176 fi 14177else 14178 RANLIB="$ac_cv_prog_RANLIB" 14179fi 14180 14181test -z "$RANLIB" && RANLIB=: 14182 14183 14184 14185 14186 14187 14188# Determine commands to create old-style static archives. 14189old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 14190old_postinstall_cmds='chmod 644 $oldlib' 14191old_postuninstall_cmds= 14192 14193if test -n "$RANLIB"; then 14194 case $host_os in 14195 bitrig* | openbsd*) 14196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 14197 ;; 14198 *) 14199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 14200 ;; 14201 esac 14202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 14203fi 14204 14205case $host_os in 14206 darwin*) 14207 lock_old_archive_extraction=yes ;; 14208 *) 14209 lock_old_archive_extraction=no ;; 14210esac 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250# If no C compiler was specified, use CC. 14251LTCC=${LTCC-"$CC"} 14252 14253# If no C compiler flags were specified, use CFLAGS. 14254LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14255 14256# Allow CC to be a program name with arguments. 14257compiler=$CC 14258 14259 14260# Check for command to grab the raw symbol name followed by C symbol from nm. 14261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 14262$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 14263if ${lt_cv_sys_global_symbol_pipe+:} false; then : 14264 $as_echo_n "(cached) " >&6 14265else 14266 14267# These are sane defaults that work on at least a few old systems. 14268# [They come from Ultrix. What could be older than Ultrix?!! ;)] 14269 14270# Character class describing NM global symbol codes. 14271symcode='[BCDEGRST]' 14272 14273# Regexp to match symbols that can be accessed directly from C. 14274sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 14275 14276# Define system-specific variables. 14277case $host_os in 14278aix*) 14279 symcode='[BCDT]' 14280 ;; 14281cygwin* | mingw* | pw32* | cegcc*) 14282 symcode='[ABCDGISTW]' 14283 ;; 14284hpux*) 14285 if test ia64 = "$host_cpu"; then 14286 symcode='[ABCDEGRST]' 14287 fi 14288 ;; 14289irix* | nonstopux*) 14290 symcode='[BCDEGRST]' 14291 ;; 14292osf*) 14293 symcode='[BCDEGQRST]' 14294 ;; 14295solaris*) 14296 symcode='[BDRT]' 14297 ;; 14298sco3.2v5*) 14299 symcode='[DT]' 14300 ;; 14301sysv4.2uw2*) 14302 symcode='[DT]' 14303 ;; 14304sysv5* | sco5v6* | unixware* | OpenUNIX*) 14305 symcode='[ABDT]' 14306 ;; 14307sysv4) 14308 symcode='[DFNSTU]' 14309 ;; 14310esac 14311 14312# If we're using GNU nm, then use its standard symbol codes. 14313case `$NM -V 2>&1` in 14314*GNU* | *'with BFD'*) 14315 symcode='[ABCDGIRSTW]' ;; 14316esac 14317 14318if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14319 # Gets list of data symbols to import. 14320 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 14321 # Adjust the below global symbol transforms to fixup imported variables. 14322 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 14323 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 14324 lt_c_name_lib_hook="\ 14325 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 14326 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 14327else 14328 # Disable hooks by default. 14329 lt_cv_sys_global_symbol_to_import= 14330 lt_cdecl_hook= 14331 lt_c_name_hook= 14332 lt_c_name_lib_hook= 14333fi 14334 14335# Transform an extracted symbol line into a proper C declaration. 14336# Some systems (esp. on ia64) link data and code symbols differently, 14337# so use this general approach. 14338lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 14339$lt_cdecl_hook\ 14340" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 14341" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 14342 14343# Transform an extracted symbol line into symbol name and symbol address 14344lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 14345$lt_c_name_hook\ 14346" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14347" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 14348 14349# Transform an extracted symbol line into symbol name with lib prefix and 14350# symbol address. 14351lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 14352$lt_c_name_lib_hook\ 14353" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14354" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 14355" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 14356 14357# Handle CRLF in mingw tool chain 14358opt_cr= 14359case $build_os in 14360mingw*) 14361 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 14362 ;; 14363esac 14364 14365# Try without a prefix underscore, then with it. 14366for ac_symprfx in "" "_"; do 14367 14368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 14369 symxfrm="\\1 $ac_symprfx\\2 \\2" 14370 14371 # Write the raw and C identifiers. 14372 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14373 # Fake it for dumpbin and say T for any non-static function, 14374 # D for any global variable and I for any imported variable. 14375 # Also find C++ and __fastcall symbols from MSVC++, 14376 # which start with @ or ?. 14377 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14378" {last_section=section; section=\$ 3};"\ 14379" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 14380" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14381" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 14382" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 14383" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 14384" \$ 0!~/External *\|/{next};"\ 14385" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14386" {if(hide[section]) next};"\ 14387" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 14388" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 14389" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 14390" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 14391" ' prfx=^$ac_symprfx" 14392 else 14393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14394 fi 14395 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 14396 14397 # Check to see that the pipe works correctly. 14398 pipe_works=no 14399 14400 rm -f conftest* 14401 cat > conftest.$ac_ext <<_LT_EOF 14402#ifdef __cplusplus 14403extern "C" { 14404#endif 14405char nm_test_var; 14406void nm_test_func(void); 14407void nm_test_func(void){} 14408#ifdef __cplusplus 14409} 14410#endif 14411int main(){nm_test_var='a';nm_test_func();return(0);} 14412_LT_EOF 14413 14414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14415 (eval $ac_compile) 2>&5 14416 ac_status=$? 14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14418 test $ac_status = 0; }; then 14419 # Now try to grab the symbols. 14420 nlist=conftest.nm 14421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14422 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14423 ac_status=$? 14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14425 test $ac_status = 0; } && test -s "$nlist"; then 14426 # Try sorting and uniquifying the output. 14427 if sort "$nlist" | uniq > "$nlist"T; then 14428 mv -f "$nlist"T "$nlist" 14429 else 14430 rm -f "$nlist"T 14431 fi 14432 14433 # Make sure that we snagged all the symbols we need. 14434 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14435 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14436 cat <<_LT_EOF > conftest.$ac_ext 14437/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14438#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 14439/* DATA imports from DLLs on WIN32 can't be const, because runtime 14440 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14441# define LT_DLSYM_CONST 14442#elif defined __osf__ 14443/* This system does not cope well with relocations in const data. */ 14444# define LT_DLSYM_CONST 14445#else 14446# define LT_DLSYM_CONST const 14447#endif 14448 14449#ifdef __cplusplus 14450extern "C" { 14451#endif 14452 14453_LT_EOF 14454 # Now generate the symbol file. 14455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14456 14457 cat <<_LT_EOF >> conftest.$ac_ext 14458 14459/* The mapping between symbol names and symbols. */ 14460LT_DLSYM_CONST struct { 14461 const char *name; 14462 void *address; 14463} 14464lt__PROGRAM__LTX_preloaded_symbols[] = 14465{ 14466 { "@PROGRAM@", (void *) 0 }, 14467_LT_EOF 14468 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14469 cat <<\_LT_EOF >> conftest.$ac_ext 14470 {0, (void *) 0} 14471}; 14472 14473/* This works around a problem in FreeBSD linker */ 14474#ifdef FREEBSD_WORKAROUND 14475static const void *lt_preloaded_setup() { 14476 return lt__PROGRAM__LTX_preloaded_symbols; 14477} 14478#endif 14479 14480#ifdef __cplusplus 14481} 14482#endif 14483_LT_EOF 14484 # Now try linking the two files. 14485 mv conftest.$ac_objext conftstm.$ac_objext 14486 lt_globsym_save_LIBS=$LIBS 14487 lt_globsym_save_CFLAGS=$CFLAGS 14488 LIBS=conftstm.$ac_objext 14489 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14491 (eval $ac_link) 2>&5 14492 ac_status=$? 14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14494 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14495 pipe_works=yes 14496 fi 14497 LIBS=$lt_globsym_save_LIBS 14498 CFLAGS=$lt_globsym_save_CFLAGS 14499 else 14500 echo "cannot find nm_test_func in $nlist" >&5 14501 fi 14502 else 14503 echo "cannot find nm_test_var in $nlist" >&5 14504 fi 14505 else 14506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14507 fi 14508 else 14509 echo "$progname: failed program was:" >&5 14510 cat conftest.$ac_ext >&5 14511 fi 14512 rm -rf conftest* conftst* 14513 14514 # Do not use the global_symbol_pipe unless it works. 14515 if test yes = "$pipe_works"; then 14516 break 14517 else 14518 lt_cv_sys_global_symbol_pipe= 14519 fi 14520done 14521 14522fi 14523 14524if test -z "$lt_cv_sys_global_symbol_pipe"; then 14525 lt_cv_sys_global_symbol_to_cdecl= 14526fi 14527if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14529$as_echo "failed" >&6; } 14530else 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14532$as_echo "ok" >&6; } 14533fi 14534 14535# Response file support. 14536if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14537 nm_file_list_spec='@' 14538elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14539 nm_file_list_spec='@' 14540fi 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14579$as_echo_n "checking for sysroot... " >&6; } 14580 14581# Check whether --with-sysroot was given. 14582if test "${with_sysroot+set}" = set; then : 14583 withval=$with_sysroot; 14584else 14585 with_sysroot=no 14586fi 14587 14588 14589lt_sysroot= 14590case $with_sysroot in #( 14591 yes) 14592 if test yes = "$GCC"; then 14593 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14594 fi 14595 ;; #( 14596 /*) 14597 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14598 ;; #( 14599 no|'') 14600 ;; #( 14601 *) 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14603$as_echo "$with_sysroot" >&6; } 14604 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14605 ;; 14606esac 14607 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14609$as_echo "${lt_sysroot:-no}" >&6; } 14610 14611 14612 14613 14614 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14616$as_echo_n "checking for a working dd... " >&6; } 14617if ${ac_cv_path_lt_DD+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 printf 0123456789abcdef0123456789abcdef >conftest.i 14621cat conftest.i conftest.i >conftest2.i 14622: ${lt_DD:=$DD} 14623if test -z "$lt_DD"; then 14624 ac_path_lt_DD_found=false 14625 # Loop through the user's path and test for each of PROGNAME-LIST 14626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14627for as_dir in $PATH 14628do 14629 IFS=$as_save_IFS 14630 test -z "$as_dir" && as_dir=. 14631 for ac_prog in dd; do 14632 for ac_exec_ext in '' $ac_executable_extensions; do 14633 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 14634 as_fn_executable_p "$ac_path_lt_DD" || continue 14635if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14636 cmp -s conftest.i conftest.out \ 14637 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14638fi 14639 $ac_path_lt_DD_found && break 3 14640 done 14641 done 14642 done 14643IFS=$as_save_IFS 14644 if test -z "$ac_cv_path_lt_DD"; then 14645 : 14646 fi 14647else 14648 ac_cv_path_lt_DD=$lt_DD 14649fi 14650 14651rm -f conftest.i conftest2.i conftest.out 14652fi 14653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14654$as_echo "$ac_cv_path_lt_DD" >&6; } 14655 14656 14657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14658$as_echo_n "checking how to truncate binary pipes... " >&6; } 14659if ${lt_cv_truncate_bin+:} false; then : 14660 $as_echo_n "(cached) " >&6 14661else 14662 printf 0123456789abcdef0123456789abcdef >conftest.i 14663cat conftest.i conftest.i >conftest2.i 14664lt_cv_truncate_bin= 14665if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14666 cmp -s conftest.i conftest.out \ 14667 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14668fi 14669rm -f conftest.i conftest2.i conftest.out 14670test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14671fi 14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14673$as_echo "$lt_cv_truncate_bin" >&6; } 14674 14675 14676 14677 14678 14679 14680 14681# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14682func_cc_basename () 14683{ 14684 for cc_temp in $*""; do 14685 case $cc_temp in 14686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14688 \-*) ;; 14689 *) break;; 14690 esac 14691 done 14692 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14693} 14694 14695# Check whether --enable-libtool-lock was given. 14696if test "${enable_libtool_lock+set}" = set; then : 14697 enableval=$enable_libtool_lock; 14698fi 14699 14700test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14701 14702# Some flags need to be propagated to the compiler or linker for good 14703# libtool support. 14704case $host in 14705ia64-*-hpux*) 14706 # Find out what ABI is being produced by ac_compile, and set mode 14707 # options accordingly. 14708 echo 'int i;' > conftest.$ac_ext 14709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14710 (eval $ac_compile) 2>&5 14711 ac_status=$? 14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14713 test $ac_status = 0; }; then 14714 case `/usr/bin/file conftest.$ac_objext` in 14715 *ELF-32*) 14716 HPUX_IA64_MODE=32 14717 ;; 14718 *ELF-64*) 14719 HPUX_IA64_MODE=64 14720 ;; 14721 esac 14722 fi 14723 rm -rf conftest* 14724 ;; 14725*-*-irix6*) 14726 # Find out what ABI is being produced by ac_compile, and set linker 14727 # options accordingly. 14728 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14730 (eval $ac_compile) 2>&5 14731 ac_status=$? 14732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14733 test $ac_status = 0; }; then 14734 if test yes = "$lt_cv_prog_gnu_ld"; then 14735 case `/usr/bin/file conftest.$ac_objext` in 14736 *32-bit*) 14737 LD="${LD-ld} -melf32bsmip" 14738 ;; 14739 *N32*) 14740 LD="${LD-ld} -melf32bmipn32" 14741 ;; 14742 *64-bit*) 14743 LD="${LD-ld} -melf64bmip" 14744 ;; 14745 esac 14746 else 14747 case `/usr/bin/file conftest.$ac_objext` in 14748 *32-bit*) 14749 LD="${LD-ld} -32" 14750 ;; 14751 *N32*) 14752 LD="${LD-ld} -n32" 14753 ;; 14754 *64-bit*) 14755 LD="${LD-ld} -64" 14756 ;; 14757 esac 14758 fi 14759 fi 14760 rm -rf conftest* 14761 ;; 14762 14763mips64*-*linux*) 14764 # Find out what ABI is being produced by ac_compile, and set linker 14765 # options accordingly. 14766 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14768 (eval $ac_compile) 2>&5 14769 ac_status=$? 14770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14771 test $ac_status = 0; }; then 14772 emul=elf 14773 case `/usr/bin/file conftest.$ac_objext` in 14774 *32-bit*) 14775 emul="${emul}32" 14776 ;; 14777 *64-bit*) 14778 emul="${emul}64" 14779 ;; 14780 esac 14781 case `/usr/bin/file conftest.$ac_objext` in 14782 *MSB*) 14783 emul="${emul}btsmip" 14784 ;; 14785 *LSB*) 14786 emul="${emul}ltsmip" 14787 ;; 14788 esac 14789 case `/usr/bin/file conftest.$ac_objext` in 14790 *N32*) 14791 emul="${emul}n32" 14792 ;; 14793 esac 14794 LD="${LD-ld} -m $emul" 14795 fi 14796 rm -rf conftest* 14797 ;; 14798 14799x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14800s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14801 # Find out what ABI is being produced by ac_compile, and set linker 14802 # options accordingly. Note that the listed cases only cover the 14803 # situations where additional linker options are needed (such as when 14804 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14805 # vice versa); the common cases where no linker options are needed do 14806 # not appear in the list. 14807 echo 'int i;' > conftest.$ac_ext 14808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14809 (eval $ac_compile) 2>&5 14810 ac_status=$? 14811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14812 test $ac_status = 0; }; then 14813 case `/usr/bin/file conftest.o` in 14814 *32-bit*) 14815 case $host in 14816 x86_64-*kfreebsd*-gnu) 14817 LD="${LD-ld} -m elf_i386_fbsd" 14818 ;; 14819 x86_64-*linux*) 14820 case `/usr/bin/file conftest.o` in 14821 *x86-64*) 14822 LD="${LD-ld} -m elf32_x86_64" 14823 ;; 14824 *) 14825 LD="${LD-ld} -m elf_i386" 14826 ;; 14827 esac 14828 ;; 14829 powerpc64le-*linux*) 14830 LD="${LD-ld} -m elf32lppclinux" 14831 ;; 14832 powerpc64-*linux*) 14833 LD="${LD-ld} -m elf32ppclinux" 14834 ;; 14835 s390x-*linux*) 14836 LD="${LD-ld} -m elf_s390" 14837 ;; 14838 sparc64-*linux*) 14839 LD="${LD-ld} -m elf32_sparc" 14840 ;; 14841 esac 14842 ;; 14843 *64-bit*) 14844 case $host in 14845 x86_64-*kfreebsd*-gnu) 14846 LD="${LD-ld} -m elf_x86_64_fbsd" 14847 ;; 14848 x86_64-*linux*) 14849 LD="${LD-ld} -m elf_x86_64" 14850 ;; 14851 powerpcle-*linux*) 14852 LD="${LD-ld} -m elf64lppc" 14853 ;; 14854 powerpc-*linux*) 14855 LD="${LD-ld} -m elf64ppc" 14856 ;; 14857 s390*-*linux*|s390*-*tpf*) 14858 LD="${LD-ld} -m elf64_s390" 14859 ;; 14860 sparc*-*linux*) 14861 LD="${LD-ld} -m elf64_sparc" 14862 ;; 14863 esac 14864 ;; 14865 esac 14866 fi 14867 rm -rf conftest* 14868 ;; 14869 14870*-*-sco3.2v5*) 14871 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14872 SAVE_CFLAGS=$CFLAGS 14873 CFLAGS="$CFLAGS -belf" 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14875$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14876if ${lt_cv_cc_needs_belf+:} false; then : 14877 $as_echo_n "(cached) " >&6 14878else 14879 ac_ext=c 14880ac_cpp='$CPP $CPPFLAGS' 14881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14883ac_compiler_gnu=$ac_cv_c_compiler_gnu 14884 14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886/* end confdefs.h. */ 14887 14888int 14889main () 14890{ 14891 14892 ; 14893 return 0; 14894} 14895_ACEOF 14896if ac_fn_c_try_link "$LINENO"; then : 14897 lt_cv_cc_needs_belf=yes 14898else 14899 lt_cv_cc_needs_belf=no 14900fi 14901rm -f core conftest.err conftest.$ac_objext \ 14902 conftest$ac_exeext conftest.$ac_ext 14903 ac_ext=c 14904ac_cpp='$CPP $CPPFLAGS' 14905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14907ac_compiler_gnu=$ac_cv_c_compiler_gnu 14908 14909fi 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14911$as_echo "$lt_cv_cc_needs_belf" >&6; } 14912 if test yes != "$lt_cv_cc_needs_belf"; then 14913 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14914 CFLAGS=$SAVE_CFLAGS 14915 fi 14916 ;; 14917*-*solaris*) 14918 # Find out what ABI is being produced by ac_compile, and set linker 14919 # options accordingly. 14920 echo 'int i;' > conftest.$ac_ext 14921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14922 (eval $ac_compile) 2>&5 14923 ac_status=$? 14924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14925 test $ac_status = 0; }; then 14926 case `/usr/bin/file conftest.o` in 14927 *64-bit*) 14928 case $lt_cv_prog_gnu_ld in 14929 yes*) 14930 case $host in 14931 i?86-*-solaris*|x86_64-*-solaris*) 14932 LD="${LD-ld} -m elf_x86_64" 14933 ;; 14934 sparc*-*-solaris*) 14935 LD="${LD-ld} -m elf64_sparc" 14936 ;; 14937 esac 14938 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14939 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14940 LD=${LD-ld}_sol2 14941 fi 14942 ;; 14943 *) 14944 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14945 LD="${LD-ld} -64" 14946 fi 14947 ;; 14948 esac 14949 ;; 14950 esac 14951 fi 14952 rm -rf conftest* 14953 ;; 14954esac 14955 14956need_locks=$enable_libtool_lock 14957 14958if test -n "$ac_tool_prefix"; then 14959 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14960set dummy ${ac_tool_prefix}mt; ac_word=$2 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14962$as_echo_n "checking for $ac_word... " >&6; } 14963if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 if test -n "$MANIFEST_TOOL"; then 14967 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14968else 14969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14970for as_dir in $PATH 14971do 14972 IFS=$as_save_IFS 14973 test -z "$as_dir" && as_dir=. 14974 for ac_exec_ext in '' $ac_executable_extensions; do 14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14976 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14978 break 2 14979 fi 14980done 14981 done 14982IFS=$as_save_IFS 14983 14984fi 14985fi 14986MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14987if test -n "$MANIFEST_TOOL"; then 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14989$as_echo "$MANIFEST_TOOL" >&6; } 14990else 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14992$as_echo "no" >&6; } 14993fi 14994 14995 14996fi 14997if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14998 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14999 # Extract the first word of "mt", so it can be a program name with args. 15000set dummy mt; ac_word=$2 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15002$as_echo_n "checking for $ac_word... " >&6; } 15003if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 if test -n "$ac_ct_MANIFEST_TOOL"; then 15007 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15008else 15009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15010for as_dir in $PATH 15011do 15012 IFS=$as_save_IFS 15013 test -z "$as_dir" && as_dir=. 15014 for ac_exec_ext in '' $ac_executable_extensions; do 15015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15016 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15018 break 2 15019 fi 15020done 15021 done 15022IFS=$as_save_IFS 15023 15024fi 15025fi 15026ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15027if test -n "$ac_ct_MANIFEST_TOOL"; then 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15029$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15030else 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15032$as_echo "no" >&6; } 15033fi 15034 15035 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15036 MANIFEST_TOOL=":" 15037 else 15038 case $cross_compiling:$ac_tool_warned in 15039yes:) 15040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15042ac_tool_warned=yes ;; 15043esac 15044 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15045 fi 15046else 15047 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15048fi 15049 15050test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15052$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15053if ${lt_cv_path_mainfest_tool+:} false; then : 15054 $as_echo_n "(cached) " >&6 15055else 15056 lt_cv_path_mainfest_tool=no 15057 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15058 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15059 cat conftest.err >&5 15060 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15061 lt_cv_path_mainfest_tool=yes 15062 fi 15063 rm -f conftest* 15064fi 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15066$as_echo "$lt_cv_path_mainfest_tool" >&6; } 15067if test yes != "$lt_cv_path_mainfest_tool"; then 15068 MANIFEST_TOOL=: 15069fi 15070 15071 15072 15073 15074 15075 15076 case $host_os in 15077 rhapsody* | darwin*) 15078 if test -n "$ac_tool_prefix"; then 15079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15082$as_echo_n "checking for $ac_word... " >&6; } 15083if ${ac_cv_prog_DSYMUTIL+:} false; then : 15084 $as_echo_n "(cached) " >&6 15085else 15086 if test -n "$DSYMUTIL"; then 15087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15088else 15089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15090for as_dir in $PATH 15091do 15092 IFS=$as_save_IFS 15093 test -z "$as_dir" && as_dir=. 15094 for ac_exec_ext in '' $ac_executable_extensions; do 15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15098 break 2 15099 fi 15100done 15101 done 15102IFS=$as_save_IFS 15103 15104fi 15105fi 15106DSYMUTIL=$ac_cv_prog_DSYMUTIL 15107if test -n "$DSYMUTIL"; then 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15109$as_echo "$DSYMUTIL" >&6; } 15110else 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15112$as_echo "no" >&6; } 15113fi 15114 15115 15116fi 15117if test -z "$ac_cv_prog_DSYMUTIL"; then 15118 ac_ct_DSYMUTIL=$DSYMUTIL 15119 # Extract the first word of "dsymutil", so it can be a program name with args. 15120set dummy dsymutil; ac_word=$2 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15122$as_echo_n "checking for $ac_word... " >&6; } 15123if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15124 $as_echo_n "(cached) " >&6 15125else 15126 if test -n "$ac_ct_DSYMUTIL"; then 15127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15128else 15129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15130for as_dir in $PATH 15131do 15132 IFS=$as_save_IFS 15133 test -z "$as_dir" && as_dir=. 15134 for ac_exec_ext in '' $ac_executable_extensions; do 15135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15136 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15138 break 2 15139 fi 15140done 15141 done 15142IFS=$as_save_IFS 15143 15144fi 15145fi 15146ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15147if test -n "$ac_ct_DSYMUTIL"; then 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15149$as_echo "$ac_ct_DSYMUTIL" >&6; } 15150else 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15152$as_echo "no" >&6; } 15153fi 15154 15155 if test "x$ac_ct_DSYMUTIL" = x; then 15156 DSYMUTIL=":" 15157 else 15158 case $cross_compiling:$ac_tool_warned in 15159yes:) 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15162ac_tool_warned=yes ;; 15163esac 15164 DSYMUTIL=$ac_ct_DSYMUTIL 15165 fi 15166else 15167 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15168fi 15169 15170 if test -n "$ac_tool_prefix"; then 15171 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15172set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15174$as_echo_n "checking for $ac_word... " >&6; } 15175if ${ac_cv_prog_NMEDIT+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 if test -n "$NMEDIT"; then 15179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15180else 15181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15182for as_dir in $PATH 15183do 15184 IFS=$as_save_IFS 15185 test -z "$as_dir" && as_dir=. 15186 for ac_exec_ext in '' $ac_executable_extensions; do 15187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15190 break 2 15191 fi 15192done 15193 done 15194IFS=$as_save_IFS 15195 15196fi 15197fi 15198NMEDIT=$ac_cv_prog_NMEDIT 15199if test -n "$NMEDIT"; then 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 15201$as_echo "$NMEDIT" >&6; } 15202else 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15204$as_echo "no" >&6; } 15205fi 15206 15207 15208fi 15209if test -z "$ac_cv_prog_NMEDIT"; then 15210 ac_ct_NMEDIT=$NMEDIT 15211 # Extract the first word of "nmedit", so it can be a program name with args. 15212set dummy nmedit; ac_word=$2 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15214$as_echo_n "checking for $ac_word... " >&6; } 15215if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 if test -n "$ac_ct_NMEDIT"; then 15219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 15220else 15221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15222for as_dir in $PATH 15223do 15224 IFS=$as_save_IFS 15225 test -z "$as_dir" && as_dir=. 15226 for ac_exec_ext in '' $ac_executable_extensions; do 15227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15228 ac_cv_prog_ac_ct_NMEDIT="nmedit" 15229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15230 break 2 15231 fi 15232done 15233 done 15234IFS=$as_save_IFS 15235 15236fi 15237fi 15238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 15239if test -n "$ac_ct_NMEDIT"; then 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 15241$as_echo "$ac_ct_NMEDIT" >&6; } 15242else 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15244$as_echo "no" >&6; } 15245fi 15246 15247 if test "x$ac_ct_NMEDIT" = x; then 15248 NMEDIT=":" 15249 else 15250 case $cross_compiling:$ac_tool_warned in 15251yes:) 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15254ac_tool_warned=yes ;; 15255esac 15256 NMEDIT=$ac_ct_NMEDIT 15257 fi 15258else 15259 NMEDIT="$ac_cv_prog_NMEDIT" 15260fi 15261 15262 if test -n "$ac_tool_prefix"; then 15263 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 15264set dummy ${ac_tool_prefix}lipo; ac_word=$2 15265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15266$as_echo_n "checking for $ac_word... " >&6; } 15267if ${ac_cv_prog_LIPO+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 if test -n "$LIPO"; then 15271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15272else 15273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15274for as_dir in $PATH 15275do 15276 IFS=$as_save_IFS 15277 test -z "$as_dir" && as_dir=. 15278 for ac_exec_ext in '' $ac_executable_extensions; do 15279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15280 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15282 break 2 15283 fi 15284done 15285 done 15286IFS=$as_save_IFS 15287 15288fi 15289fi 15290LIPO=$ac_cv_prog_LIPO 15291if test -n "$LIPO"; then 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15293$as_echo "$LIPO" >&6; } 15294else 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15296$as_echo "no" >&6; } 15297fi 15298 15299 15300fi 15301if test -z "$ac_cv_prog_LIPO"; then 15302 ac_ct_LIPO=$LIPO 15303 # Extract the first word of "lipo", so it can be a program name with args. 15304set dummy lipo; ac_word=$2 15305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15306$as_echo_n "checking for $ac_word... " >&6; } 15307if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15308 $as_echo_n "(cached) " >&6 15309else 15310 if test -n "$ac_ct_LIPO"; then 15311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15312else 15313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15314for as_dir in $PATH 15315do 15316 IFS=$as_save_IFS 15317 test -z "$as_dir" && as_dir=. 15318 for ac_exec_ext in '' $ac_executable_extensions; do 15319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15320 ac_cv_prog_ac_ct_LIPO="lipo" 15321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15322 break 2 15323 fi 15324done 15325 done 15326IFS=$as_save_IFS 15327 15328fi 15329fi 15330ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15331if test -n "$ac_ct_LIPO"; then 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15333$as_echo "$ac_ct_LIPO" >&6; } 15334else 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15336$as_echo "no" >&6; } 15337fi 15338 15339 if test "x$ac_ct_LIPO" = x; then 15340 LIPO=":" 15341 else 15342 case $cross_compiling:$ac_tool_warned in 15343yes:) 15344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15346ac_tool_warned=yes ;; 15347esac 15348 LIPO=$ac_ct_LIPO 15349 fi 15350else 15351 LIPO="$ac_cv_prog_LIPO" 15352fi 15353 15354 if test -n "$ac_tool_prefix"; then 15355 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15356set dummy ${ac_tool_prefix}otool; ac_word=$2 15357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15358$as_echo_n "checking for $ac_word... " >&6; } 15359if ${ac_cv_prog_OTOOL+:} false; then : 15360 $as_echo_n "(cached) " >&6 15361else 15362 if test -n "$OTOOL"; then 15363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15364else 15365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15366for as_dir in $PATH 15367do 15368 IFS=$as_save_IFS 15369 test -z "$as_dir" && as_dir=. 15370 for ac_exec_ext in '' $ac_executable_extensions; do 15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15372 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15374 break 2 15375 fi 15376done 15377 done 15378IFS=$as_save_IFS 15379 15380fi 15381fi 15382OTOOL=$ac_cv_prog_OTOOL 15383if test -n "$OTOOL"; then 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15385$as_echo "$OTOOL" >&6; } 15386else 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15388$as_echo "no" >&6; } 15389fi 15390 15391 15392fi 15393if test -z "$ac_cv_prog_OTOOL"; then 15394 ac_ct_OTOOL=$OTOOL 15395 # Extract the first word of "otool", so it can be a program name with args. 15396set dummy otool; ac_word=$2 15397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15398$as_echo_n "checking for $ac_word... " >&6; } 15399if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15400 $as_echo_n "(cached) " >&6 15401else 15402 if test -n "$ac_ct_OTOOL"; then 15403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15404else 15405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15406for as_dir in $PATH 15407do 15408 IFS=$as_save_IFS 15409 test -z "$as_dir" && as_dir=. 15410 for ac_exec_ext in '' $ac_executable_extensions; do 15411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15412 ac_cv_prog_ac_ct_OTOOL="otool" 15413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15414 break 2 15415 fi 15416done 15417 done 15418IFS=$as_save_IFS 15419 15420fi 15421fi 15422ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15423if test -n "$ac_ct_OTOOL"; then 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15425$as_echo "$ac_ct_OTOOL" >&6; } 15426else 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15428$as_echo "no" >&6; } 15429fi 15430 15431 if test "x$ac_ct_OTOOL" = x; then 15432 OTOOL=":" 15433 else 15434 case $cross_compiling:$ac_tool_warned in 15435yes:) 15436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15438ac_tool_warned=yes ;; 15439esac 15440 OTOOL=$ac_ct_OTOOL 15441 fi 15442else 15443 OTOOL="$ac_cv_prog_OTOOL" 15444fi 15445 15446 if test -n "$ac_tool_prefix"; then 15447 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15448set dummy ${ac_tool_prefix}otool64; ac_word=$2 15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15450$as_echo_n "checking for $ac_word... " >&6; } 15451if ${ac_cv_prog_OTOOL64+:} false; then : 15452 $as_echo_n "(cached) " >&6 15453else 15454 if test -n "$OTOOL64"; then 15455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15456else 15457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15458for as_dir in $PATH 15459do 15460 IFS=$as_save_IFS 15461 test -z "$as_dir" && as_dir=. 15462 for ac_exec_ext in '' $ac_executable_extensions; do 15463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15464 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15466 break 2 15467 fi 15468done 15469 done 15470IFS=$as_save_IFS 15471 15472fi 15473fi 15474OTOOL64=$ac_cv_prog_OTOOL64 15475if test -n "$OTOOL64"; then 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15477$as_echo "$OTOOL64" >&6; } 15478else 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15480$as_echo "no" >&6; } 15481fi 15482 15483 15484fi 15485if test -z "$ac_cv_prog_OTOOL64"; then 15486 ac_ct_OTOOL64=$OTOOL64 15487 # Extract the first word of "otool64", so it can be a program name with args. 15488set dummy otool64; ac_word=$2 15489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15490$as_echo_n "checking for $ac_word... " >&6; } 15491if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15492 $as_echo_n "(cached) " >&6 15493else 15494 if test -n "$ac_ct_OTOOL64"; then 15495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15496else 15497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15498for as_dir in $PATH 15499do 15500 IFS=$as_save_IFS 15501 test -z "$as_dir" && as_dir=. 15502 for ac_exec_ext in '' $ac_executable_extensions; do 15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15504 ac_cv_prog_ac_ct_OTOOL64="otool64" 15505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15506 break 2 15507 fi 15508done 15509 done 15510IFS=$as_save_IFS 15511 15512fi 15513fi 15514ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15515if test -n "$ac_ct_OTOOL64"; then 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15517$as_echo "$ac_ct_OTOOL64" >&6; } 15518else 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15520$as_echo "no" >&6; } 15521fi 15522 15523 if test "x$ac_ct_OTOOL64" = x; then 15524 OTOOL64=":" 15525 else 15526 case $cross_compiling:$ac_tool_warned in 15527yes:) 15528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15530ac_tool_warned=yes ;; 15531esac 15532 OTOOL64=$ac_ct_OTOOL64 15533 fi 15534else 15535 OTOOL64="$ac_cv_prog_OTOOL64" 15536fi 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15565$as_echo_n "checking for -single_module linker flag... " >&6; } 15566if ${lt_cv_apple_cc_single_mod+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 lt_cv_apple_cc_single_mod=no 15570 if test -z "$LT_MULTI_MODULE"; then 15571 # By default we will add the -single_module flag. You can override 15572 # by either setting the environment variable LT_MULTI_MODULE 15573 # non-empty at configure time, or by adding -multi_module to the 15574 # link flags. 15575 rm -rf libconftest.dylib* 15576 echo "int foo(void){return 1;}" > conftest.c 15577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15578-dynamiclib -Wl,-single_module conftest.c" >&5 15579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15581 _lt_result=$? 15582 # If there is a non-empty error log, and "single_module" 15583 # appears in it, assume the flag caused a linker warning 15584 if test -s conftest.err && $GREP single_module conftest.err; then 15585 cat conftest.err >&5 15586 # Otherwise, if the output was created with a 0 exit code from 15587 # the compiler, it worked. 15588 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15589 lt_cv_apple_cc_single_mod=yes 15590 else 15591 cat conftest.err >&5 15592 fi 15593 rm -rf libconftest.dylib* 15594 rm -f conftest.* 15595 fi 15596fi 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15598$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15599 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15601$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15602if ${lt_cv_ld_exported_symbols_list+:} false; then : 15603 $as_echo_n "(cached) " >&6 15604else 15605 lt_cv_ld_exported_symbols_list=no 15606 save_LDFLAGS=$LDFLAGS 15607 echo "_main" > conftest.sym 15608 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610/* end confdefs.h. */ 15611 15612int 15613main () 15614{ 15615 15616 ; 15617 return 0; 15618} 15619_ACEOF 15620if ac_fn_c_try_link "$LINENO"; then : 15621 lt_cv_ld_exported_symbols_list=yes 15622else 15623 lt_cv_ld_exported_symbols_list=no 15624fi 15625rm -f core conftest.err conftest.$ac_objext \ 15626 conftest$ac_exeext conftest.$ac_ext 15627 LDFLAGS=$save_LDFLAGS 15628 15629fi 15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15631$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15632 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15634$as_echo_n "checking for -force_load linker flag... " >&6; } 15635if ${lt_cv_ld_force_load+:} false; then : 15636 $as_echo_n "(cached) " >&6 15637else 15638 lt_cv_ld_force_load=no 15639 cat > conftest.c << _LT_EOF 15640int forced_loaded() { return 2;} 15641_LT_EOF 15642 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15643 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15644 echo "$AR cru libconftest.a conftest.o" >&5 15645 $AR cru libconftest.a conftest.o 2>&5 15646 echo "$RANLIB libconftest.a" >&5 15647 $RANLIB libconftest.a 2>&5 15648 cat > conftest.c << _LT_EOF 15649int main() { return 0;} 15650_LT_EOF 15651 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15652 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15653 _lt_result=$? 15654 if test -s conftest.err && $GREP force_load conftest.err; then 15655 cat conftest.err >&5 15656 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15657 lt_cv_ld_force_load=yes 15658 else 15659 cat conftest.err >&5 15660 fi 15661 rm -f conftest.err libconftest.a conftest conftest.c 15662 rm -rf conftest.dSYM 15663 15664fi 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15666$as_echo "$lt_cv_ld_force_load" >&6; } 15667 case $host_os in 15668 rhapsody* | darwin1.[012]) 15669 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15670 darwin1.*) 15671 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15672 darwin*) # darwin 5.x on 15673 # if running on 10.5 or later, the deployment target defaults 15674 # to the OS version, if on x86, and 10.4, the deployment 15675 # target defaults to 10.4. Don't you love it? 15676 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15677 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15678 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15679 10.[012][,.]*) 15680 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15681 10.*) 15682 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15683 esac 15684 ;; 15685 esac 15686 if test yes = "$lt_cv_apple_cc_single_mod"; then 15687 _lt_dar_single_mod='$single_module' 15688 fi 15689 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15690 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15691 else 15692 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15693 fi 15694 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15695 _lt_dsymutil='~$DSYMUTIL $lib || :' 15696 else 15697 _lt_dsymutil= 15698 fi 15699 ;; 15700 esac 15701 15702# func_munge_path_list VARIABLE PATH 15703# ----------------------------------- 15704# VARIABLE is name of variable containing _space_ separated list of 15705# directories to be munged by the contents of PATH, which is string 15706# having a format: 15707# "DIR[:DIR]:" 15708# string "DIR[ DIR]" will be prepended to VARIABLE 15709# ":DIR[:DIR]" 15710# string "DIR[ DIR]" will be appended to VARIABLE 15711# "DIRP[:DIRP]::[DIRA:]DIRA" 15712# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15713# "DIRA[ DIRA]" will be appended to VARIABLE 15714# "DIR[:DIR]" 15715# VARIABLE will be replaced by "DIR[ DIR]" 15716func_munge_path_list () 15717{ 15718 case x$2 in 15719 x) 15720 ;; 15721 *:) 15722 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15723 ;; 15724 x:*) 15725 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15726 ;; 15727 *::*) 15728 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15729 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15730 ;; 15731 *) 15732 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15733 ;; 15734 esac 15735} 15736 15737for ac_header in dlfcn.h 15738do : 15739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15740" 15741if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15742 cat >>confdefs.h <<_ACEOF 15743#define HAVE_DLFCN_H 1 15744_ACEOF 15745 15746fi 15747 15748done 15749 15750 15751 15752func_stripname_cnf () 15753{ 15754 case $2 in 15755 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15756 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15757 esac 15758} # func_stripname_cnf 15759 15760 15761 15762 15763 15764# Set options 15765enable_win32_dll=yes 15766 15767case $host in 15768*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 15769 if test -n "$ac_tool_prefix"; then 15770 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 15771set dummy ${ac_tool_prefix}as; ac_word=$2 15772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15773$as_echo_n "checking for $ac_word... " >&6; } 15774if ${ac_cv_prog_AS+:} false; then : 15775 $as_echo_n "(cached) " >&6 15776else 15777 if test -n "$AS"; then 15778 ac_cv_prog_AS="$AS" # Let the user override the test. 15779else 15780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15781for as_dir in $PATH 15782do 15783 IFS=$as_save_IFS 15784 test -z "$as_dir" && as_dir=. 15785 for ac_exec_ext in '' $ac_executable_extensions; do 15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15787 ac_cv_prog_AS="${ac_tool_prefix}as" 15788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15789 break 2 15790 fi 15791done 15792 done 15793IFS=$as_save_IFS 15794 15795fi 15796fi 15797AS=$ac_cv_prog_AS 15798if test -n "$AS"; then 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 15800$as_echo "$AS" >&6; } 15801else 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15803$as_echo "no" >&6; } 15804fi 15805 15806 15807fi 15808if test -z "$ac_cv_prog_AS"; then 15809 ac_ct_AS=$AS 15810 # Extract the first word of "as", so it can be a program name with args. 15811set dummy as; ac_word=$2 15812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15813$as_echo_n "checking for $ac_word... " >&6; } 15814if ${ac_cv_prog_ac_ct_AS+:} false; then : 15815 $as_echo_n "(cached) " >&6 15816else 15817 if test -n "$ac_ct_AS"; then 15818 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 15819else 15820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15821for as_dir in $PATH 15822do 15823 IFS=$as_save_IFS 15824 test -z "$as_dir" && as_dir=. 15825 for ac_exec_ext in '' $ac_executable_extensions; do 15826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15827 ac_cv_prog_ac_ct_AS="as" 15828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15829 break 2 15830 fi 15831done 15832 done 15833IFS=$as_save_IFS 15834 15835fi 15836fi 15837ac_ct_AS=$ac_cv_prog_ac_ct_AS 15838if test -n "$ac_ct_AS"; then 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 15840$as_echo "$ac_ct_AS" >&6; } 15841else 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15843$as_echo "no" >&6; } 15844fi 15845 15846 if test "x$ac_ct_AS" = x; then 15847 AS="false" 15848 else 15849 case $cross_compiling:$ac_tool_warned in 15850yes:) 15851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15853ac_tool_warned=yes ;; 15854esac 15855 AS=$ac_ct_AS 15856 fi 15857else 15858 AS="$ac_cv_prog_AS" 15859fi 15860 15861 if test -n "$ac_tool_prefix"; then 15862 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15863set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15865$as_echo_n "checking for $ac_word... " >&6; } 15866if ${ac_cv_prog_DLLTOOL+:} false; then : 15867 $as_echo_n "(cached) " >&6 15868else 15869 if test -n "$DLLTOOL"; then 15870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15871else 15872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15873for as_dir in $PATH 15874do 15875 IFS=$as_save_IFS 15876 test -z "$as_dir" && as_dir=. 15877 for ac_exec_ext in '' $ac_executable_extensions; do 15878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15879 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15881 break 2 15882 fi 15883done 15884 done 15885IFS=$as_save_IFS 15886 15887fi 15888fi 15889DLLTOOL=$ac_cv_prog_DLLTOOL 15890if test -n "$DLLTOOL"; then 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15892$as_echo "$DLLTOOL" >&6; } 15893else 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15895$as_echo "no" >&6; } 15896fi 15897 15898 15899fi 15900if test -z "$ac_cv_prog_DLLTOOL"; then 15901 ac_ct_DLLTOOL=$DLLTOOL 15902 # Extract the first word of "dlltool", so it can be a program name with args. 15903set dummy dlltool; ac_word=$2 15904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15905$as_echo_n "checking for $ac_word... " >&6; } 15906if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 if test -n "$ac_ct_DLLTOOL"; then 15910 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15911else 15912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15913for as_dir in $PATH 15914do 15915 IFS=$as_save_IFS 15916 test -z "$as_dir" && as_dir=. 15917 for ac_exec_ext in '' $ac_executable_extensions; do 15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15919 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15921 break 2 15922 fi 15923done 15924 done 15925IFS=$as_save_IFS 15926 15927fi 15928fi 15929ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15930if test -n "$ac_ct_DLLTOOL"; then 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15932$as_echo "$ac_ct_DLLTOOL" >&6; } 15933else 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15935$as_echo "no" >&6; } 15936fi 15937 15938 if test "x$ac_ct_DLLTOOL" = x; then 15939 DLLTOOL="false" 15940 else 15941 case $cross_compiling:$ac_tool_warned in 15942yes:) 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15945ac_tool_warned=yes ;; 15946esac 15947 DLLTOOL=$ac_ct_DLLTOOL 15948 fi 15949else 15950 DLLTOOL="$ac_cv_prog_DLLTOOL" 15951fi 15952 15953 if test -n "$ac_tool_prefix"; then 15954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 15955set dummy ${ac_tool_prefix}objdump; ac_word=$2 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15957$as_echo_n "checking for $ac_word... " >&6; } 15958if ${ac_cv_prog_OBJDUMP+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 if test -n "$OBJDUMP"; then 15962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 15963else 15964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15965for as_dir in $PATH 15966do 15967 IFS=$as_save_IFS 15968 test -z "$as_dir" && as_dir=. 15969 for ac_exec_ext in '' $ac_executable_extensions; do 15970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 15972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15973 break 2 15974 fi 15975done 15976 done 15977IFS=$as_save_IFS 15978 15979fi 15980fi 15981OBJDUMP=$ac_cv_prog_OBJDUMP 15982if test -n "$OBJDUMP"; then 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 15984$as_echo "$OBJDUMP" >&6; } 15985else 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15987$as_echo "no" >&6; } 15988fi 15989 15990 15991fi 15992if test -z "$ac_cv_prog_OBJDUMP"; then 15993 ac_ct_OBJDUMP=$OBJDUMP 15994 # Extract the first word of "objdump", so it can be a program name with args. 15995set dummy objdump; ac_word=$2 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15997$as_echo_n "checking for $ac_word... " >&6; } 15998if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 15999 $as_echo_n "(cached) " >&6 16000else 16001 if test -n "$ac_ct_OBJDUMP"; then 16002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16003else 16004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16005for as_dir in $PATH 16006do 16007 IFS=$as_save_IFS 16008 test -z "$as_dir" && as_dir=. 16009 for ac_exec_ext in '' $ac_executable_extensions; do 16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16011 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16013 break 2 16014 fi 16015done 16016 done 16017IFS=$as_save_IFS 16018 16019fi 16020fi 16021ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16022if test -n "$ac_ct_OBJDUMP"; then 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16024$as_echo "$ac_ct_OBJDUMP" >&6; } 16025else 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16027$as_echo "no" >&6; } 16028fi 16029 16030 if test "x$ac_ct_OBJDUMP" = x; then 16031 OBJDUMP="false" 16032 else 16033 case $cross_compiling:$ac_tool_warned in 16034yes:) 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16037ac_tool_warned=yes ;; 16038esac 16039 OBJDUMP=$ac_ct_OBJDUMP 16040 fi 16041else 16042 OBJDUMP="$ac_cv_prog_OBJDUMP" 16043fi 16044 16045 ;; 16046esac 16047 16048test -z "$AS" && AS=as 16049 16050 16051 16052 16053 16054test -z "$DLLTOOL" && DLLTOOL=dlltool 16055 16056 16057 16058 16059 16060test -z "$OBJDUMP" && OBJDUMP=objdump 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 # Check whether --enable-shared was given. 16071if test "${enable_shared+set}" = set; then : 16072 enableval=$enable_shared; p=${PACKAGE-default} 16073 case $enableval in 16074 yes) enable_shared=yes ;; 16075 no) enable_shared=no ;; 16076 *) 16077 enable_shared=no 16078 # Look at the argument we got. We use all the common list separators. 16079 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16080 for pkg in $enableval; do 16081 IFS=$lt_save_ifs 16082 if test "X$pkg" = "X$p"; then 16083 enable_shared=yes 16084 fi 16085 done 16086 IFS=$lt_save_ifs 16087 ;; 16088 esac 16089else 16090 enable_shared=yes 16091fi 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 # Check whether --enable-static was given. 16102if test "${enable_static+set}" = set; then : 16103 enableval=$enable_static; p=${PACKAGE-default} 16104 case $enableval in 16105 yes) enable_static=yes ;; 16106 no) enable_static=no ;; 16107 *) 16108 enable_static=no 16109 # Look at the argument we got. We use all the common list separators. 16110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16111 for pkg in $enableval; do 16112 IFS=$lt_save_ifs 16113 if test "X$pkg" = "X$p"; then 16114 enable_static=yes 16115 fi 16116 done 16117 IFS=$lt_save_ifs 16118 ;; 16119 esac 16120else 16121 enable_static=yes 16122fi 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133# Check whether --with-pic was given. 16134if test "${with_pic+set}" = set; then : 16135 withval=$with_pic; lt_p=${PACKAGE-default} 16136 case $withval in 16137 yes|no) pic_mode=$withval ;; 16138 *) 16139 pic_mode=default 16140 # Look at the argument we got. We use all the common list separators. 16141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16142 for lt_pkg in $withval; do 16143 IFS=$lt_save_ifs 16144 if test "X$lt_pkg" = "X$lt_p"; then 16145 pic_mode=yes 16146 fi 16147 done 16148 IFS=$lt_save_ifs 16149 ;; 16150 esac 16151else 16152 pic_mode=default 16153fi 16154 16155 16156 16157 16158 16159 16160 16161 16162 # Check whether --enable-fast-install was given. 16163if test "${enable_fast_install+set}" = set; then : 16164 enableval=$enable_fast_install; p=${PACKAGE-default} 16165 case $enableval in 16166 yes) enable_fast_install=yes ;; 16167 no) enable_fast_install=no ;; 16168 *) 16169 enable_fast_install=no 16170 # Look at the argument we got. We use all the common list separators. 16171 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16172 for pkg in $enableval; do 16173 IFS=$lt_save_ifs 16174 if test "X$pkg" = "X$p"; then 16175 enable_fast_install=yes 16176 fi 16177 done 16178 IFS=$lt_save_ifs 16179 ;; 16180 esac 16181else 16182 enable_fast_install=yes 16183fi 16184 16185 16186 16187 16188 16189 16190 16191 16192 shared_archive_member_spec= 16193case $host,$enable_shared in 16194power*-*-aix[5-9]*,yes) 16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 16196$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 16197 16198# Check whether --with-aix-soname was given. 16199if test "${with_aix_soname+set}" = set; then : 16200 withval=$with_aix_soname; case $withval in 16201 aix|svr4|both) 16202 ;; 16203 *) 16204 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 16205 ;; 16206 esac 16207 lt_cv_with_aix_soname=$with_aix_soname 16208else 16209 if ${lt_cv_with_aix_soname+:} false; then : 16210 $as_echo_n "(cached) " >&6 16211else 16212 lt_cv_with_aix_soname=aix 16213fi 16214 16215 with_aix_soname=$lt_cv_with_aix_soname 16216fi 16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 16219$as_echo "$with_aix_soname" >&6; } 16220 if test aix != "$with_aix_soname"; then 16221 # For the AIX way of multilib, we name the shared archive member 16222 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 16223 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 16224 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 16225 # the AIX toolchain works better with OBJECT_MODE set (default 32). 16226 if test 64 = "${OBJECT_MODE-32}"; then 16227 shared_archive_member_spec=shr_64 16228 else 16229 shared_archive_member_spec=shr 16230 fi 16231 fi 16232 ;; 16233*) 16234 with_aix_soname=aix 16235 ;; 16236esac 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247# This can be used to rebuild libtool when needed 16248LIBTOOL_DEPS=$ltmain 16249 16250# Always use our own libtool. 16251LIBTOOL='$(SHELL) $(top_builddir)/libtool' 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282test -z "$LN_S" && LN_S="ln -s" 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297if test -n "${ZSH_VERSION+set}"; then 16298 setopt NO_GLOB_SUBST 16299fi 16300 16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 16302$as_echo_n "checking for objdir... " >&6; } 16303if ${lt_cv_objdir+:} false; then : 16304 $as_echo_n "(cached) " >&6 16305else 16306 rm -f .libs 2>/dev/null 16307mkdir .libs 2>/dev/null 16308if test -d .libs; then 16309 lt_cv_objdir=.libs 16310else 16311 # MS-DOS does not allow filenames that begin with a dot. 16312 lt_cv_objdir=_libs 16313fi 16314rmdir .libs 2>/dev/null 16315fi 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 16317$as_echo "$lt_cv_objdir" >&6; } 16318objdir=$lt_cv_objdir 16319 16320 16321 16322 16323 16324cat >>confdefs.h <<_ACEOF 16325#define LT_OBJDIR "$lt_cv_objdir/" 16326_ACEOF 16327 16328 16329 16330 16331case $host_os in 16332aix3*) 16333 # AIX sometimes has problems with the GCC collect2 program. For some 16334 # reason, if we set the COLLECT_NAMES environment variable, the problems 16335 # vanish in a puff of smoke. 16336 if test set != "${COLLECT_NAMES+set}"; then 16337 COLLECT_NAMES= 16338 export COLLECT_NAMES 16339 fi 16340 ;; 16341esac 16342 16343# Global variables: 16344ofile=libtool 16345can_build_shared=yes 16346 16347# All known linkers require a '.a' archive for static linking (except MSVC, 16348# which needs '.lib'). 16349libext=a 16350 16351with_gnu_ld=$lt_cv_prog_gnu_ld 16352 16353old_CC=$CC 16354old_CFLAGS=$CFLAGS 16355 16356# Set sane defaults for various variables 16357test -z "$CC" && CC=cc 16358test -z "$LTCC" && LTCC=$CC 16359test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 16360test -z "$LD" && LD=ld 16361test -z "$ac_objext" && ac_objext=o 16362 16363func_cc_basename $compiler 16364cc_basename=$func_cc_basename_result 16365 16366 16367# Only perform the check for file, if the check method requires it 16368test -z "$MAGIC_CMD" && MAGIC_CMD=file 16369case $deplibs_check_method in 16370file_magic*) 16371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 16373$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 16374if ${lt_cv_path_MAGIC_CMD+:} false; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 case $MAGIC_CMD in 16378[\\/*] | ?:[\\/]*) 16379 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 16380 ;; 16381*) 16382 lt_save_MAGIC_CMD=$MAGIC_CMD 16383 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16385 for ac_dir in $ac_dummy; do 16386 IFS=$lt_save_ifs 16387 test -z "$ac_dir" && ac_dir=. 16388 if test -f "$ac_dir/${ac_tool_prefix}file"; then 16389 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 16390 if test -n "$file_magic_test_file"; then 16391 case $deplibs_check_method in 16392 "file_magic "*) 16393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16394 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16396 $EGREP "$file_magic_regex" > /dev/null; then 16397 : 16398 else 16399 cat <<_LT_EOF 1>&2 16400 16401*** Warning: the command libtool uses to detect shared libraries, 16402*** $file_magic_cmd, produces output that libtool cannot recognize. 16403*** The result is that libtool may fail to recognize shared libraries 16404*** as such. This will affect the creation of libtool libraries that 16405*** depend on shared libraries, but programs linked with such libtool 16406*** libraries will work regardless of this problem. Nevertheless, you 16407*** may want to report the problem to your system manager and/or to 16408*** bug-libtool@gnu.org 16409 16410_LT_EOF 16411 fi ;; 16412 esac 16413 fi 16414 break 16415 fi 16416 done 16417 IFS=$lt_save_ifs 16418 MAGIC_CMD=$lt_save_MAGIC_CMD 16419 ;; 16420esac 16421fi 16422 16423MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16424if test -n "$MAGIC_CMD"; then 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16426$as_echo "$MAGIC_CMD" >&6; } 16427else 16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16429$as_echo "no" >&6; } 16430fi 16431 16432 16433 16434 16435 16436if test -z "$lt_cv_path_MAGIC_CMD"; then 16437 if test -n "$ac_tool_prefix"; then 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 16439$as_echo_n "checking for file... " >&6; } 16440if ${lt_cv_path_MAGIC_CMD+:} false; then : 16441 $as_echo_n "(cached) " >&6 16442else 16443 case $MAGIC_CMD in 16444[\\/*] | ?:[\\/]*) 16445 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 16446 ;; 16447*) 16448 lt_save_MAGIC_CMD=$MAGIC_CMD 16449 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16451 for ac_dir in $ac_dummy; do 16452 IFS=$lt_save_ifs 16453 test -z "$ac_dir" && ac_dir=. 16454 if test -f "$ac_dir/file"; then 16455 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 16456 if test -n "$file_magic_test_file"; then 16457 case $deplibs_check_method in 16458 "file_magic "*) 16459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16462 $EGREP "$file_magic_regex" > /dev/null; then 16463 : 16464 else 16465 cat <<_LT_EOF 1>&2 16466 16467*** Warning: the command libtool uses to detect shared libraries, 16468*** $file_magic_cmd, produces output that libtool cannot recognize. 16469*** The result is that libtool may fail to recognize shared libraries 16470*** as such. This will affect the creation of libtool libraries that 16471*** depend on shared libraries, but programs linked with such libtool 16472*** libraries will work regardless of this problem. Nevertheless, you 16473*** may want to report the problem to your system manager and/or to 16474*** bug-libtool@gnu.org 16475 16476_LT_EOF 16477 fi ;; 16478 esac 16479 fi 16480 break 16481 fi 16482 done 16483 IFS=$lt_save_ifs 16484 MAGIC_CMD=$lt_save_MAGIC_CMD 16485 ;; 16486esac 16487fi 16488 16489MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16490if test -n "$MAGIC_CMD"; then 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16492$as_echo "$MAGIC_CMD" >&6; } 16493else 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16495$as_echo "no" >&6; } 16496fi 16497 16498 16499 else 16500 MAGIC_CMD=: 16501 fi 16502fi 16503 16504 fi 16505 ;; 16506esac 16507 16508# Use C for the default configuration in the libtool script 16509 16510lt_save_CC=$CC 16511ac_ext=c 16512ac_cpp='$CPP $CPPFLAGS' 16513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16515ac_compiler_gnu=$ac_cv_c_compiler_gnu 16516 16517 16518# Source file extension for C test sources. 16519ac_ext=c 16520 16521# Object file extension for compiled C test sources. 16522objext=o 16523objext=$objext 16524 16525# Code to be used in simple compile tests 16526lt_simple_compile_test_code="int some_variable = 0;" 16527 16528# Code to be used in simple link tests 16529lt_simple_link_test_code='int main(){return(0);}' 16530 16531 16532 16533 16534 16535 16536 16537# If no C compiler was specified, use CC. 16538LTCC=${LTCC-"$CC"} 16539 16540# If no C compiler flags were specified, use CFLAGS. 16541LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16542 16543# Allow CC to be a program name with arguments. 16544compiler=$CC 16545 16546# Save the default compiler, since it gets overwritten when the other 16547# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16548compiler_DEFAULT=$CC 16549 16550# save warnings/boilerplate of simple test code 16551ac_outfile=conftest.$ac_objext 16552echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16553eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16554_lt_compiler_boilerplate=`cat conftest.err` 16555$RM conftest* 16556 16557ac_outfile=conftest.$ac_objext 16558echo "$lt_simple_link_test_code" >conftest.$ac_ext 16559eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16560_lt_linker_boilerplate=`cat conftest.err` 16561$RM -r conftest* 16562 16563 16564## CAVEAT EMPTOR: 16565## There is no encapsulation within the following macros, do not change 16566## the running order or otherwise move them around unless you know exactly 16567## what you are doing... 16568if test -n "$compiler"; then 16569 16570lt_prog_compiler_no_builtin_flag= 16571 16572if test yes = "$GCC"; then 16573 case $cc_basename in 16574 nvcc*) 16575 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16576 *) 16577 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16578 esac 16579 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16581$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16582if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16583 $as_echo_n "(cached) " >&6 16584else 16585 lt_cv_prog_compiler_rtti_exceptions=no 16586 ac_outfile=conftest.$ac_objext 16587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16588 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 16589 # Insert the option either (1) after the last *FLAGS variable, or 16590 # (2) before a word containing "conftest.", or (3) at the end. 16591 # Note that $ac_compile itself does not contain backslashes and begins 16592 # with a dollar sign (not a hyphen), so the echo should work correctly. 16593 # The option is referenced via a variable to avoid confusing sed. 16594 lt_compile=`echo "$ac_compile" | $SED \ 16595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16597 -e 's:$: $lt_compiler_flag:'` 16598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16599 (eval "$lt_compile" 2>conftest.err) 16600 ac_status=$? 16601 cat conftest.err >&5 16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16603 if (exit $ac_status) && test -s "$ac_outfile"; then 16604 # The compiler can only warn and ignore the option if not recognized 16605 # So say no if there are warnings other than the usual output. 16606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16609 lt_cv_prog_compiler_rtti_exceptions=yes 16610 fi 16611 fi 16612 $RM conftest* 16613 16614fi 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16616$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16617 16618if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 16619 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16620else 16621 : 16622fi 16623 16624fi 16625 16626 16627 16628 16629 16630 16631 lt_prog_compiler_wl= 16632lt_prog_compiler_pic= 16633lt_prog_compiler_static= 16634 16635 16636 if test yes = "$GCC"; then 16637 lt_prog_compiler_wl='-Wl,' 16638 lt_prog_compiler_static='-static' 16639 16640 case $host_os in 16641 aix*) 16642 # All AIX code is PIC. 16643 if test ia64 = "$host_cpu"; then 16644 # AIX 5 now supports IA64 processor 16645 lt_prog_compiler_static='-Bstatic' 16646 fi 16647 lt_prog_compiler_pic='-fPIC' 16648 ;; 16649 16650 amigaos*) 16651 case $host_cpu in 16652 powerpc) 16653 # see comment about AmigaOS4 .so support 16654 lt_prog_compiler_pic='-fPIC' 16655 ;; 16656 m68k) 16657 # FIXME: we need at least 68020 code to build shared libraries, but 16658 # adding the '-m68020' flag to GCC prevents building anything better, 16659 # like '-m68040'. 16660 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16661 ;; 16662 esac 16663 ;; 16664 16665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16666 # PIC is the default for these OSes. 16667 ;; 16668 16669 mingw* | cygwin* | pw32* | os2* | cegcc*) 16670 # This hack is so that the source file can tell whether it is being 16671 # built for inclusion in a dll (and should export symbols for example). 16672 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16673 # (--disable-auto-import) libraries 16674 lt_prog_compiler_pic='-DDLL_EXPORT' 16675 case $host_os in 16676 os2*) 16677 lt_prog_compiler_static='$wl-static' 16678 ;; 16679 esac 16680 ;; 16681 16682 darwin* | rhapsody*) 16683 # PIC is the default on this platform 16684 # Common symbols not allowed in MH_DYLIB files 16685 lt_prog_compiler_pic='-fno-common' 16686 ;; 16687 16688 haiku*) 16689 # PIC is the default for Haiku. 16690 # The "-static" flag exists, but is broken. 16691 lt_prog_compiler_static= 16692 ;; 16693 16694 hpux*) 16695 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16696 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16697 # sets the default TLS model and affects inlining. 16698 case $host_cpu in 16699 hppa*64*) 16700 # +Z the default 16701 ;; 16702 *) 16703 lt_prog_compiler_pic='-fPIC' 16704 ;; 16705 esac 16706 ;; 16707 16708 interix[3-9]*) 16709 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16710 # Instead, we relocate shared libraries at runtime. 16711 ;; 16712 16713 msdosdjgpp*) 16714 # Just because we use GCC doesn't mean we suddenly get shared libraries 16715 # on systems that don't support them. 16716 lt_prog_compiler_can_build_shared=no 16717 enable_shared=no 16718 ;; 16719 16720 *nto* | *qnx*) 16721 # QNX uses GNU C++, but need to define -shared option too, otherwise 16722 # it will coredump. 16723 lt_prog_compiler_pic='-fPIC -shared' 16724 ;; 16725 16726 sysv4*MP*) 16727 if test -d /usr/nec; then 16728 lt_prog_compiler_pic=-Kconform_pic 16729 fi 16730 ;; 16731 16732 *) 16733 lt_prog_compiler_pic='-fPIC' 16734 ;; 16735 esac 16736 16737 case $cc_basename in 16738 nvcc*) # Cuda Compiler Driver 2.2 16739 lt_prog_compiler_wl='-Xlinker ' 16740 if test -n "$lt_prog_compiler_pic"; then 16741 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16742 fi 16743 ;; 16744 esac 16745 else 16746 # PORTME Check for flag to pass linker flags through the system compiler. 16747 case $host_os in 16748 aix*) 16749 lt_prog_compiler_wl='-Wl,' 16750 if test ia64 = "$host_cpu"; then 16751 # AIX 5 now supports IA64 processor 16752 lt_prog_compiler_static='-Bstatic' 16753 else 16754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16755 fi 16756 ;; 16757 16758 darwin* | rhapsody*) 16759 # PIC is the default on this platform 16760 # Common symbols not allowed in MH_DYLIB files 16761 lt_prog_compiler_pic='-fno-common' 16762 case $cc_basename in 16763 nagfor*) 16764 # NAG Fortran compiler 16765 lt_prog_compiler_wl='-Wl,-Wl,,' 16766 lt_prog_compiler_pic='-PIC' 16767 lt_prog_compiler_static='-Bstatic' 16768 ;; 16769 esac 16770 ;; 16771 16772 mingw* | cygwin* | pw32* | os2* | cegcc*) 16773 # This hack is so that the source file can tell whether it is being 16774 # built for inclusion in a dll (and should export symbols for example). 16775 lt_prog_compiler_pic='-DDLL_EXPORT' 16776 case $host_os in 16777 os2*) 16778 lt_prog_compiler_static='$wl-static' 16779 ;; 16780 esac 16781 ;; 16782 16783 hpux9* | hpux10* | hpux11*) 16784 lt_prog_compiler_wl='-Wl,' 16785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16786 # not for PA HP-UX. 16787 case $host_cpu in 16788 hppa*64*|ia64*) 16789 # +Z the default 16790 ;; 16791 *) 16792 lt_prog_compiler_pic='+Z' 16793 ;; 16794 esac 16795 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16796 lt_prog_compiler_static='$wl-a ${wl}archive' 16797 ;; 16798 16799 irix5* | irix6* | nonstopux*) 16800 lt_prog_compiler_wl='-Wl,' 16801 # PIC (with -KPIC) is the default. 16802 lt_prog_compiler_static='-non_shared' 16803 ;; 16804 16805 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16806 case $cc_basename in 16807 # old Intel for x86_64, which still supported -KPIC. 16808 ecc*) 16809 lt_prog_compiler_wl='-Wl,' 16810 lt_prog_compiler_pic='-KPIC' 16811 lt_prog_compiler_static='-static' 16812 ;; 16813 # icc used to be incompatible with GCC. 16814 # ICC 10 doesn't accept -KPIC any more. 16815 icc* | ifort*) 16816 lt_prog_compiler_wl='-Wl,' 16817 lt_prog_compiler_pic='-fPIC' 16818 lt_prog_compiler_static='-static' 16819 ;; 16820 # Lahey Fortran 8.1. 16821 lf95*) 16822 lt_prog_compiler_wl='-Wl,' 16823 lt_prog_compiler_pic='--shared' 16824 lt_prog_compiler_static='--static' 16825 ;; 16826 nagfor*) 16827 # NAG Fortran compiler 16828 lt_prog_compiler_wl='-Wl,-Wl,,' 16829 lt_prog_compiler_pic='-PIC' 16830 lt_prog_compiler_static='-Bstatic' 16831 ;; 16832 tcc*) 16833 # Fabrice Bellard et al's Tiny C Compiler 16834 lt_prog_compiler_wl='-Wl,' 16835 lt_prog_compiler_pic='-fPIC' 16836 lt_prog_compiler_static='-static' 16837 ;; 16838 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16839 # Portland Group compilers (*not* the Pentium gcc compiler, 16840 # which looks to be a dead project) 16841 lt_prog_compiler_wl='-Wl,' 16842 lt_prog_compiler_pic='-fpic' 16843 lt_prog_compiler_static='-Bstatic' 16844 ;; 16845 ccc*) 16846 lt_prog_compiler_wl='-Wl,' 16847 # All Alpha code is PIC. 16848 lt_prog_compiler_static='-non_shared' 16849 ;; 16850 xl* | bgxl* | bgf* | mpixl*) 16851 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16852 lt_prog_compiler_wl='-Wl,' 16853 lt_prog_compiler_pic='-qpic' 16854 lt_prog_compiler_static='-qstaticlink' 16855 ;; 16856 *) 16857 case `$CC -V 2>&1 | sed 5q` in 16858 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16859 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16860 lt_prog_compiler_pic='-KPIC' 16861 lt_prog_compiler_static='-Bstatic' 16862 lt_prog_compiler_wl='' 16863 ;; 16864 *Sun\ F* | *Sun*Fortran*) 16865 lt_prog_compiler_pic='-KPIC' 16866 lt_prog_compiler_static='-Bstatic' 16867 lt_prog_compiler_wl='-Qoption ld ' 16868 ;; 16869 *Sun\ C*) 16870 # Sun C 5.9 16871 lt_prog_compiler_pic='-KPIC' 16872 lt_prog_compiler_static='-Bstatic' 16873 lt_prog_compiler_wl='-Wl,' 16874 ;; 16875 *Intel*\ [CF]*Compiler*) 16876 lt_prog_compiler_wl='-Wl,' 16877 lt_prog_compiler_pic='-fPIC' 16878 lt_prog_compiler_static='-static' 16879 ;; 16880 *Portland\ Group*) 16881 lt_prog_compiler_wl='-Wl,' 16882 lt_prog_compiler_pic='-fpic' 16883 lt_prog_compiler_static='-Bstatic' 16884 ;; 16885 esac 16886 ;; 16887 esac 16888 ;; 16889 16890 newsos6) 16891 lt_prog_compiler_pic='-KPIC' 16892 lt_prog_compiler_static='-Bstatic' 16893 ;; 16894 16895 *nto* | *qnx*) 16896 # QNX uses GNU C++, but need to define -shared option too, otherwise 16897 # it will coredump. 16898 lt_prog_compiler_pic='-fPIC -shared' 16899 ;; 16900 16901 osf3* | osf4* | osf5*) 16902 lt_prog_compiler_wl='-Wl,' 16903 # All OSF/1 code is PIC. 16904 lt_prog_compiler_static='-non_shared' 16905 ;; 16906 16907 rdos*) 16908 lt_prog_compiler_static='-non_shared' 16909 ;; 16910 16911 solaris*) 16912 lt_prog_compiler_pic='-KPIC' 16913 lt_prog_compiler_static='-Bstatic' 16914 case $cc_basename in 16915 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16916 lt_prog_compiler_wl='-Qoption ld ';; 16917 *) 16918 lt_prog_compiler_wl='-Wl,';; 16919 esac 16920 ;; 16921 16922 sunos4*) 16923 lt_prog_compiler_wl='-Qoption ld ' 16924 lt_prog_compiler_pic='-PIC' 16925 lt_prog_compiler_static='-Bstatic' 16926 ;; 16927 16928 sysv4 | sysv4.2uw2* | sysv4.3*) 16929 lt_prog_compiler_wl='-Wl,' 16930 lt_prog_compiler_pic='-KPIC' 16931 lt_prog_compiler_static='-Bstatic' 16932 ;; 16933 16934 sysv4*MP*) 16935 if test -d /usr/nec; then 16936 lt_prog_compiler_pic='-Kconform_pic' 16937 lt_prog_compiler_static='-Bstatic' 16938 fi 16939 ;; 16940 16941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16942 lt_prog_compiler_wl='-Wl,' 16943 lt_prog_compiler_pic='-KPIC' 16944 lt_prog_compiler_static='-Bstatic' 16945 ;; 16946 16947 unicos*) 16948 lt_prog_compiler_wl='-Wl,' 16949 lt_prog_compiler_can_build_shared=no 16950 ;; 16951 16952 uts4*) 16953 lt_prog_compiler_pic='-pic' 16954 lt_prog_compiler_static='-Bstatic' 16955 ;; 16956 16957 *) 16958 lt_prog_compiler_can_build_shared=no 16959 ;; 16960 esac 16961 fi 16962 16963case $host_os in 16964 # For platforms that do not support PIC, -DPIC is meaningless: 16965 *djgpp*) 16966 lt_prog_compiler_pic= 16967 ;; 16968 *) 16969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16970 ;; 16971esac 16972 16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16974$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16975if ${lt_cv_prog_compiler_pic+:} false; then : 16976 $as_echo_n "(cached) " >&6 16977else 16978 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16979fi 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16981$as_echo "$lt_cv_prog_compiler_pic" >&6; } 16982lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16983 16984# 16985# Check to make sure the PIC flag actually works. 16986# 16987if test -n "$lt_prog_compiler_pic"; then 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16989$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16990if ${lt_cv_prog_compiler_pic_works+:} false; then : 16991 $as_echo_n "(cached) " >&6 16992else 16993 lt_cv_prog_compiler_pic_works=no 16994 ac_outfile=conftest.$ac_objext 16995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16997 # Insert the option either (1) after the last *FLAGS variable, or 16998 # (2) before a word containing "conftest.", or (3) at the end. 16999 # Note that $ac_compile itself does not contain backslashes and begins 17000 # with a dollar sign (not a hyphen), so the echo should work correctly. 17001 # The option is referenced via a variable to avoid confusing sed. 17002 lt_compile=`echo "$ac_compile" | $SED \ 17003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17005 -e 's:$: $lt_compiler_flag:'` 17006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17007 (eval "$lt_compile" 2>conftest.err) 17008 ac_status=$? 17009 cat conftest.err >&5 17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17011 if (exit $ac_status) && test -s "$ac_outfile"; then 17012 # The compiler can only warn and ignore the option if not recognized 17013 # So say no if there are warnings other than the usual output. 17014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17017 lt_cv_prog_compiler_pic_works=yes 17018 fi 17019 fi 17020 $RM conftest* 17021 17022fi 17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17024$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17025 17026if test yes = "$lt_cv_prog_compiler_pic_works"; then 17027 case $lt_prog_compiler_pic in 17028 "" | " "*) ;; 17029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17030 esac 17031else 17032 lt_prog_compiler_pic= 17033 lt_prog_compiler_can_build_shared=no 17034fi 17035 17036fi 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048# 17049# Check to make sure the static flag actually works. 17050# 17051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17054if ${lt_cv_prog_compiler_static_works+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 lt_cv_prog_compiler_static_works=no 17058 save_LDFLAGS=$LDFLAGS 17059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17060 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17062 # The linker can only warn and ignore the option if not recognized 17063 # So say no if there are warnings 17064 if test -s conftest.err; then 17065 # Append any errors to the config.log. 17066 cat conftest.err 1>&5 17067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17069 if diff conftest.exp conftest.er2 >/dev/null; then 17070 lt_cv_prog_compiler_static_works=yes 17071 fi 17072 else 17073 lt_cv_prog_compiler_static_works=yes 17074 fi 17075 fi 17076 $RM -r conftest* 17077 LDFLAGS=$save_LDFLAGS 17078 17079fi 17080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17081$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17082 17083if test yes = "$lt_cv_prog_compiler_static_works"; then 17084 : 17085else 17086 lt_prog_compiler_static= 17087fi 17088 17089 17090 17091 17092 17093 17094 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17097if ${lt_cv_prog_compiler_c_o+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 lt_cv_prog_compiler_c_o=no 17101 $RM -r conftest 2>/dev/null 17102 mkdir conftest 17103 cd conftest 17104 mkdir out 17105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17106 17107 lt_compiler_flag="-o out/conftest2.$ac_objext" 17108 # Insert the option either (1) after the last *FLAGS variable, or 17109 # (2) before a word containing "conftest.", or (3) at the end. 17110 # Note that $ac_compile itself does not contain backslashes and begins 17111 # with a dollar sign (not a hyphen), so the echo should work correctly. 17112 lt_compile=`echo "$ac_compile" | $SED \ 17113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17115 -e 's:$: $lt_compiler_flag:'` 17116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17117 (eval "$lt_compile" 2>out/conftest.err) 17118 ac_status=$? 17119 cat out/conftest.err >&5 17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17121 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17122 then 17123 # The compiler can only warn and ignore the option if not recognized 17124 # So say no if there are warnings 17125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17128 lt_cv_prog_compiler_c_o=yes 17129 fi 17130 fi 17131 chmod u+w . 2>&5 17132 $RM conftest* 17133 # SGI C++ compiler will create directory out/ii_files/ for 17134 # template instantiation 17135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17136 $RM out/* && rmdir out 17137 cd .. 17138 $RM -r conftest 17139 $RM conftest* 17140 17141fi 17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17143$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17144 17145 17146 17147 17148 17149 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17152if ${lt_cv_prog_compiler_c_o+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 lt_cv_prog_compiler_c_o=no 17156 $RM -r conftest 2>/dev/null 17157 mkdir conftest 17158 cd conftest 17159 mkdir out 17160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17161 17162 lt_compiler_flag="-o out/conftest2.$ac_objext" 17163 # Insert the option either (1) after the last *FLAGS variable, or 17164 # (2) before a word containing "conftest.", or (3) at the end. 17165 # Note that $ac_compile itself does not contain backslashes and begins 17166 # with a dollar sign (not a hyphen), so the echo should work correctly. 17167 lt_compile=`echo "$ac_compile" | $SED \ 17168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17170 -e 's:$: $lt_compiler_flag:'` 17171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17172 (eval "$lt_compile" 2>out/conftest.err) 17173 ac_status=$? 17174 cat out/conftest.err >&5 17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17176 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17177 then 17178 # The compiler can only warn and ignore the option if not recognized 17179 # So say no if there are warnings 17180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17183 lt_cv_prog_compiler_c_o=yes 17184 fi 17185 fi 17186 chmod u+w . 2>&5 17187 $RM conftest* 17188 # SGI C++ compiler will create directory out/ii_files/ for 17189 # template instantiation 17190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17191 $RM out/* && rmdir out 17192 cd .. 17193 $RM -r conftest 17194 $RM conftest* 17195 17196fi 17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17198$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17199 17200 17201 17202 17203hard_links=nottested 17204if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 17205 # do not overwrite the value of need_locks provided by the user 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17207$as_echo_n "checking if we can lock with hard links... " >&6; } 17208 hard_links=yes 17209 $RM conftest* 17210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17211 touch conftest.a 17212 ln conftest.a conftest.b 2>&5 || hard_links=no 17213 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17215$as_echo "$hard_links" >&6; } 17216 if test no = "$hard_links"; then 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17218$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17219 need_locks=warn 17220 fi 17221else 17222 need_locks=no 17223fi 17224 17225 17226 17227 17228 17229 17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17232 17233 runpath_var= 17234 allow_undefined_flag= 17235 always_export_symbols=no 17236 archive_cmds= 17237 archive_expsym_cmds= 17238 compiler_needs_object=no 17239 enable_shared_with_static_runtimes=no 17240 export_dynamic_flag_spec= 17241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17242 hardcode_automatic=no 17243 hardcode_direct=no 17244 hardcode_direct_absolute=no 17245 hardcode_libdir_flag_spec= 17246 hardcode_libdir_separator= 17247 hardcode_minus_L=no 17248 hardcode_shlibpath_var=unsupported 17249 inherit_rpath=no 17250 link_all_deplibs=unknown 17251 module_cmds= 17252 module_expsym_cmds= 17253 old_archive_from_new_cmds= 17254 old_archive_from_expsyms_cmds= 17255 thread_safe_flag_spec= 17256 whole_archive_flag_spec= 17257 # include_expsyms should be a list of space-separated symbols to be *always* 17258 # included in the symbol list 17259 include_expsyms= 17260 # exclude_expsyms can be an extended regexp of symbols to exclude 17261 # it will be wrapped by ' (' and ')$', so one must not match beginning or 17262 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 17263 # as well as any symbol that contains 'd'. 17264 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17266 # platforms (ab)use it in PIC code, but their linkers get confused if 17267 # the symbol is explicitly referenced. Since portable code cannot 17268 # rely on this symbol name, it's probably fine to never include it in 17269 # preloaded symbol tables. 17270 # Exclude shared library initialization/finalization symbols. 17271 extract_expsyms_cmds= 17272 17273 case $host_os in 17274 cygwin* | mingw* | pw32* | cegcc*) 17275 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17276 # When not using gcc, we currently assume that we are using 17277 # Microsoft Visual C++. 17278 if test yes != "$GCC"; then 17279 with_gnu_ld=no 17280 fi 17281 ;; 17282 interix*) 17283 # we just hope/assume this is gcc and not c89 (= MSVC++) 17284 with_gnu_ld=yes 17285 ;; 17286 openbsd* | bitrig*) 17287 with_gnu_ld=no 17288 ;; 17289 esac 17290 17291 ld_shlibs=yes 17292 17293 # On some targets, GNU ld is compatible enough with the native linker 17294 # that we're better off using the native interface for both. 17295 lt_use_gnu_ld_interface=no 17296 if test yes = "$with_gnu_ld"; then 17297 case $host_os in 17298 aix*) 17299 # The AIX port of GNU ld has always aspired to compatibility 17300 # with the native linker. However, as the warning in the GNU ld 17301 # block says, versions before 2.19.5* couldn't really create working 17302 # shared libraries, regardless of the interface used. 17303 case `$LD -v 2>&1` in 17304 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 17305 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 17306 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 17307 *) 17308 lt_use_gnu_ld_interface=yes 17309 ;; 17310 esac 17311 ;; 17312 *) 17313 lt_use_gnu_ld_interface=yes 17314 ;; 17315 esac 17316 fi 17317 17318 if test yes = "$lt_use_gnu_ld_interface"; then 17319 # If archive_cmds runs LD, not CC, wlarc should be empty 17320 wlarc='$wl' 17321 17322 # Set some defaults for GNU ld with shared library support. These 17323 # are reset later if shared libraries are not supported. Putting them 17324 # here allows them to be overridden if necessary. 17325 runpath_var=LD_RUN_PATH 17326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17327 export_dynamic_flag_spec='$wl--export-dynamic' 17328 # ancient GNU ld didn't support --whole-archive et. al. 17329 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 17330 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17331 else 17332 whole_archive_flag_spec= 17333 fi 17334 supports_anon_versioning=no 17335 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 17336 *GNU\ gold*) supports_anon_versioning=yes ;; 17337 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17338 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17339 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17340 *\ 2.11.*) ;; # other 2.11 versions 17341 *) supports_anon_versioning=yes ;; 17342 esac 17343 17344 # See if GNU ld supports shared libraries. 17345 case $host_os in 17346 aix[3-9]*) 17347 # On AIX/PPC, the GNU linker is very broken 17348 if test ia64 != "$host_cpu"; then 17349 ld_shlibs=no 17350 cat <<_LT_EOF 1>&2 17351 17352*** Warning: the GNU linker, at least up to release 2.19, is reported 17353*** to be unable to reliably create shared libraries on AIX. 17354*** Therefore, libtool is disabling shared libraries support. If you 17355*** really care for shared libraries, you may want to install binutils 17356*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 17357*** You will then need to restart the configuration process. 17358 17359_LT_EOF 17360 fi 17361 ;; 17362 17363 amigaos*) 17364 case $host_cpu in 17365 powerpc) 17366 # see comment about AmigaOS4 .so support 17367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17368 archive_expsym_cmds='' 17369 ;; 17370 m68k) 17371 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)' 17372 hardcode_libdir_flag_spec='-L$libdir' 17373 hardcode_minus_L=yes 17374 ;; 17375 esac 17376 ;; 17377 17378 beos*) 17379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17380 allow_undefined_flag=unsupported 17381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17382 # support --undefined. This deserves some investigation. FIXME 17383 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17384 else 17385 ld_shlibs=no 17386 fi 17387 ;; 17388 17389 cygwin* | mingw* | pw32* | cegcc*) 17390 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 17391 # as there is no search path for DLLs. 17392 hardcode_libdir_flag_spec='-L$libdir' 17393 export_dynamic_flag_spec='$wl--export-all-symbols' 17394 allow_undefined_flag=unsupported 17395 always_export_symbols=no 17396 enable_shared_with_static_runtimes=yes 17397 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' 17398 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17399 17400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17402 # If the export-symbols file already is a .def file, use it as 17403 # is; otherwise, prepend EXPORTS... 17404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17405 cp $export_symbols $output_objdir/$soname.def; 17406 else 17407 echo EXPORTS > $output_objdir/$soname.def; 17408 cat $export_symbols >> $output_objdir/$soname.def; 17409 fi~ 17410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17411 else 17412 ld_shlibs=no 17413 fi 17414 ;; 17415 17416 haiku*) 17417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17418 link_all_deplibs=yes 17419 ;; 17420 17421 os2*) 17422 hardcode_libdir_flag_spec='-L$libdir' 17423 hardcode_minus_L=yes 17424 allow_undefined_flag=unsupported 17425 shrext_cmds=.dll 17426 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17427 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17428 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17429 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17430 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17431 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17432 emximp -o $lib $output_objdir/$libname.def' 17433 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17434 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17435 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17436 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17437 prefix_cmds="$SED"~ 17438 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17439 prefix_cmds="$prefix_cmds -e 1d"; 17440 fi~ 17441 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17442 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17443 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17444 emximp -o $lib $output_objdir/$libname.def' 17445 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17446 enable_shared_with_static_runtimes=yes 17447 ;; 17448 17449 interix[3-9]*) 17450 hardcode_direct=no 17451 hardcode_shlibpath_var=no 17452 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17453 export_dynamic_flag_spec='$wl-E' 17454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17455 # Instead, shared libraries are loaded at an image base (0x10000000 by 17456 # default) and relocated if they conflict, which is a slow very memory 17457 # consuming and fragmenting process. To avoid this, we pick a random, 17458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17459 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17461 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' 17462 ;; 17463 17464 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 17465 tmp_diet=no 17466 if test linux-dietlibc = "$host_os"; then 17467 case $cc_basename in 17468 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 17469 esac 17470 fi 17471 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 17472 && test no = "$tmp_diet" 17473 then 17474 tmp_addflag=' $pic_flag' 17475 tmp_sharedflag='-shared' 17476 case $cc_basename,$host_cpu in 17477 pgcc*) # Portland Group C compiler 17478 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' 17479 tmp_addflag=' $pic_flag' 17480 ;; 17481 pgf77* | pgf90* | pgf95* | pgfortran*) 17482 # Portland Group f77 and f90 compilers 17483 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' 17484 tmp_addflag=' $pic_flag -Mnomain' ;; 17485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17486 tmp_addflag=' -i_dynamic' ;; 17487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17488 tmp_addflag=' -i_dynamic -nofor_main' ;; 17489 ifc* | ifort*) # Intel Fortran compiler 17490 tmp_addflag=' -nofor_main' ;; 17491 lf95*) # Lahey Fortran 8.1 17492 whole_archive_flag_spec= 17493 tmp_sharedflag='--shared' ;; 17494 nagfor*) # NAGFOR 5.3 17495 tmp_sharedflag='-Wl,-shared' ;; 17496 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 17497 tmp_sharedflag='-qmkshrobj' 17498 tmp_addflag= ;; 17499 nvcc*) # Cuda Compiler Driver 2.2 17500 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' 17501 compiler_needs_object=yes 17502 ;; 17503 esac 17504 case `$CC -V 2>&1 | sed 5q` in 17505 *Sun\ C*) # Sun C 5.9 17506 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' 17507 compiler_needs_object=yes 17508 tmp_sharedflag='-G' ;; 17509 *Sun\ F*) # Sun Fortran 8.3 17510 tmp_sharedflag='-G' ;; 17511 esac 17512 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17513 17514 if test yes = "$supports_anon_versioning"; then 17515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17517 echo "local: *; };" >> $output_objdir/$libname.ver~ 17518 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 17519 fi 17520 17521 case $cc_basename in 17522 tcc*) 17523 export_dynamic_flag_spec='-rdynamic' 17524 ;; 17525 xlf* | bgf* | bgxlf* | mpixlf*) 17526 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 17527 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 17528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17529 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 17530 if test yes = "$supports_anon_versioning"; then 17531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17533 echo "local: *; };" >> $output_objdir/$libname.ver~ 17534 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 17535 fi 17536 ;; 17537 esac 17538 else 17539 ld_shlibs=no 17540 fi 17541 ;; 17542 17543 netbsd*) 17544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17545 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17546 wlarc= 17547 else 17548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17550 fi 17551 ;; 17552 17553 solaris*) 17554 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 17555 ld_shlibs=no 17556 cat <<_LT_EOF 1>&2 17557 17558*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17559*** create shared libraries on Solaris systems. Therefore, libtool 17560*** is disabling shared libraries support. We urge you to upgrade GNU 17561*** binutils to release 2.9.1 or newer. Another option is to modify 17562*** your PATH or compiler configuration so that the native linker is 17563*** used, and then restart. 17564 17565_LT_EOF 17566 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17569 else 17570 ld_shlibs=no 17571 fi 17572 ;; 17573 17574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17575 case `$LD -v 2>&1` in 17576 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17577 ld_shlibs=no 17578 cat <<_LT_EOF 1>&2 17579 17580*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 17581*** reliably create shared libraries on SCO systems. Therefore, libtool 17582*** is disabling shared libraries support. We urge you to upgrade GNU 17583*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17584*** your PATH or compiler configuration so that the native linker is 17585*** used, and then restart. 17586 17587_LT_EOF 17588 ;; 17589 *) 17590 # For security reasons, it is highly recommended that you always 17591 # use absolute paths for naming shared libraries, and exclude the 17592 # DT_RUNPATH tag from executables and libraries. But doing so 17593 # requires that you compile everything twice, which is a pain. 17594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17598 else 17599 ld_shlibs=no 17600 fi 17601 ;; 17602 esac 17603 ;; 17604 17605 sunos4*) 17606 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17607 wlarc= 17608 hardcode_direct=yes 17609 hardcode_shlibpath_var=no 17610 ;; 17611 17612 *) 17613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17616 else 17617 ld_shlibs=no 17618 fi 17619 ;; 17620 esac 17621 17622 if test no = "$ld_shlibs"; then 17623 runpath_var= 17624 hardcode_libdir_flag_spec= 17625 export_dynamic_flag_spec= 17626 whole_archive_flag_spec= 17627 fi 17628 else 17629 # PORTME fill in a description of your system's linker (not GNU ld) 17630 case $host_os in 17631 aix3*) 17632 allow_undefined_flag=unsupported 17633 always_export_symbols=yes 17634 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' 17635 # Note: this linker hardcodes the directories in LIBPATH if there 17636 # are no directories specified by -L. 17637 hardcode_minus_L=yes 17638 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17639 # Neither direct hardcoding nor static linking is supported with a 17640 # broken collect2. 17641 hardcode_direct=unsupported 17642 fi 17643 ;; 17644 17645 aix[4-9]*) 17646 if test ia64 = "$host_cpu"; then 17647 # On IA64, the linker does run time linking by default, so we don't 17648 # have to do anything special. 17649 aix_use_runtimelinking=no 17650 exp_sym_flag='-Bexport' 17651 no_entry_flag= 17652 else 17653 # If we're using GNU nm, then we don't want the "-C" option. 17654 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17655 # Without the "-l" option, or with the "-B" option, AIX nm treats 17656 # weak defined symbols like other global defined symbols, whereas 17657 # GNU nm marks them as "W". 17658 # While the 'weak' keyword is ignored in the Export File, we need 17659 # it in the Import File for the 'aix-soname' feature, so we have 17660 # to replace the "-B" option with "-P" for AIX nm. 17661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17662 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17663 else 17664 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17665 fi 17666 aix_use_runtimelinking=no 17667 17668 # Test if we are trying to use run time linking or normal 17669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17670 # have runtime linking enabled, and use it for executables. 17671 # For shared libraries, we enable/disable runtime linking 17672 # depending on the kind of the shared library created - 17673 # when "with_aix_soname,aix_use_runtimelinking" is: 17674 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17675 # "aix,yes" lib.so shared, rtl:yes, for executables 17676 # lib.a static archive 17677 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17678 # lib.a(lib.so.V) shared, rtl:no, for executables 17679 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17680 # lib.a(lib.so.V) shared, rtl:no 17681 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17682 # lib.a static archive 17683 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17684 for ld_flag in $LDFLAGS; do 17685 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17686 aix_use_runtimelinking=yes 17687 break 17688 fi 17689 done 17690 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17691 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17692 # so we don't have lib.a shared libs to link our executables. 17693 # We have to force runtime linking in this case. 17694 aix_use_runtimelinking=yes 17695 LDFLAGS="$LDFLAGS -Wl,-brtl" 17696 fi 17697 ;; 17698 esac 17699 17700 exp_sym_flag='-bexport' 17701 no_entry_flag='-bnoentry' 17702 fi 17703 17704 # When large executables or shared objects are built, AIX ld can 17705 # have problems creating the table of contents. If linking a library 17706 # or program results in "error TOC overflow" add -mminimal-toc to 17707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17709 17710 archive_cmds='' 17711 hardcode_direct=yes 17712 hardcode_direct_absolute=yes 17713 hardcode_libdir_separator=':' 17714 link_all_deplibs=yes 17715 file_list_spec='$wl-f,' 17716 case $with_aix_soname,$aix_use_runtimelinking in 17717 aix,*) ;; # traditional, no import file 17718 svr4,* | *,yes) # use import file 17719 # The Import File defines what to hardcode. 17720 hardcode_direct=no 17721 hardcode_direct_absolute=no 17722 ;; 17723 esac 17724 17725 if test yes = "$GCC"; then 17726 case $host_os in aix4.[012]|aix4.[012].*) 17727 # We only want to do this on AIX 4.2 and lower, the check 17728 # below for broken collect2 doesn't work under 4.3+ 17729 collect2name=`$CC -print-prog-name=collect2` 17730 if test -f "$collect2name" && 17731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17732 then 17733 # We have reworked collect2 17734 : 17735 else 17736 # We have old collect2 17737 hardcode_direct=unsupported 17738 # It fails to find uninstalled libraries when the uninstalled 17739 # path is not listed in the libpath. Setting hardcode_minus_L 17740 # to unsupported forces relinking 17741 hardcode_minus_L=yes 17742 hardcode_libdir_flag_spec='-L$libdir' 17743 hardcode_libdir_separator= 17744 fi 17745 ;; 17746 esac 17747 shared_flag='-shared' 17748 if test yes = "$aix_use_runtimelinking"; then 17749 shared_flag="$shared_flag "'$wl-G' 17750 fi 17751 # Need to ensure runtime linking is disabled for the traditional 17752 # shared library, or the linker may eventually find shared libraries 17753 # /with/ Import File - we do not want to mix them. 17754 shared_flag_aix='-shared' 17755 shared_flag_svr4='-shared $wl-G' 17756 else 17757 # not using gcc 17758 if test ia64 = "$host_cpu"; then 17759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17760 # chokes on -Wl,-G. The following line is correct: 17761 shared_flag='-G' 17762 else 17763 if test yes = "$aix_use_runtimelinking"; then 17764 shared_flag='$wl-G' 17765 else 17766 shared_flag='$wl-bM:SRE' 17767 fi 17768 shared_flag_aix='$wl-bM:SRE' 17769 shared_flag_svr4='$wl-G' 17770 fi 17771 fi 17772 17773 export_dynamic_flag_spec='$wl-bexpall' 17774 # It seems that -bexpall does not export symbols beginning with 17775 # underscore (_), so it is better to generate a list of symbols to export. 17776 always_export_symbols=yes 17777 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17778 # Warning - without using the other runtime loading flags (-brtl), 17779 # -berok will link without error, but may produce a broken library. 17780 allow_undefined_flag='-berok' 17781 # Determine the default libpath from the value encoded in an 17782 # empty executable. 17783 if test set = "${lt_cv_aix_libpath+set}"; then 17784 aix_libpath=$lt_cv_aix_libpath 17785else 17786 if ${lt_cv_aix_libpath_+:} false; then : 17787 $as_echo_n "(cached) " >&6 17788else 17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17790/* end confdefs.h. */ 17791 17792int 17793main () 17794{ 17795 17796 ; 17797 return 0; 17798} 17799_ACEOF 17800if ac_fn_c_try_link "$LINENO"; then : 17801 17802 lt_aix_libpath_sed=' 17803 /Import File Strings/,/^$/ { 17804 /^0/ { 17805 s/^0 *\([^ ]*\) *$/\1/ 17806 p 17807 } 17808 }' 17809 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17810 # Check for a 64-bit object if we didn't find anything. 17811 if test -z "$lt_cv_aix_libpath_"; then 17812 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17813 fi 17814fi 17815rm -f core conftest.err conftest.$ac_objext \ 17816 conftest$ac_exeext conftest.$ac_ext 17817 if test -z "$lt_cv_aix_libpath_"; then 17818 lt_cv_aix_libpath_=/usr/lib:/lib 17819 fi 17820 17821fi 17822 17823 aix_libpath=$lt_cv_aix_libpath_ 17824fi 17825 17826 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17827 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17828 else 17829 if test ia64 = "$host_cpu"; then 17830 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17831 allow_undefined_flag="-z nodefs" 17832 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" 17833 else 17834 # Determine the default libpath from the value encoded in an 17835 # empty executable. 17836 if test set = "${lt_cv_aix_libpath+set}"; then 17837 aix_libpath=$lt_cv_aix_libpath 17838else 17839 if ${lt_cv_aix_libpath_+:} false; then : 17840 $as_echo_n "(cached) " >&6 17841else 17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844 17845int 17846main () 17847{ 17848 17849 ; 17850 return 0; 17851} 17852_ACEOF 17853if ac_fn_c_try_link "$LINENO"; then : 17854 17855 lt_aix_libpath_sed=' 17856 /Import File Strings/,/^$/ { 17857 /^0/ { 17858 s/^0 *\([^ ]*\) *$/\1/ 17859 p 17860 } 17861 }' 17862 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17863 # Check for a 64-bit object if we didn't find anything. 17864 if test -z "$lt_cv_aix_libpath_"; then 17865 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17866 fi 17867fi 17868rm -f core conftest.err conftest.$ac_objext \ 17869 conftest$ac_exeext conftest.$ac_ext 17870 if test -z "$lt_cv_aix_libpath_"; then 17871 lt_cv_aix_libpath_=/usr/lib:/lib 17872 fi 17873 17874fi 17875 17876 aix_libpath=$lt_cv_aix_libpath_ 17877fi 17878 17879 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17880 # Warning - without using the other run time loading flags, 17881 # -berok will link without error, but may produce a broken library. 17882 no_undefined_flag=' $wl-bernotok' 17883 allow_undefined_flag=' $wl-berok' 17884 if test yes = "$with_gnu_ld"; then 17885 # We only use this code for GNU lds that support --whole-archive. 17886 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17887 else 17888 # Exported symbols can be pulled into shared objects from archives 17889 whole_archive_flag_spec='$convenience' 17890 fi 17891 archive_cmds_need_lc=yes 17892 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17893 # -brtl affects multiple linker settings, -berok does not and is overridden later 17894 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17895 if test svr4 != "$with_aix_soname"; then 17896 # This is similar to how AIX traditionally builds its shared libraries. 17897 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17898 fi 17899 if test aix != "$with_aix_soname"; then 17900 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17901 else 17902 # used by -dlpreopen to get the symbols 17903 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17904 fi 17905 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17906 fi 17907 fi 17908 ;; 17909 17910 amigaos*) 17911 case $host_cpu in 17912 powerpc) 17913 # see comment about AmigaOS4 .so support 17914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17915 archive_expsym_cmds='' 17916 ;; 17917 m68k) 17918 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)' 17919 hardcode_libdir_flag_spec='-L$libdir' 17920 hardcode_minus_L=yes 17921 ;; 17922 esac 17923 ;; 17924 17925 bsdi[45]*) 17926 export_dynamic_flag_spec=-rdynamic 17927 ;; 17928 17929 cygwin* | mingw* | pw32* | cegcc*) 17930 # When not using gcc, we currently assume that we are using 17931 # Microsoft Visual C++. 17932 # hardcode_libdir_flag_spec is actually meaningless, as there is 17933 # no search path for DLLs. 17934 case $cc_basename in 17935 cl*) 17936 # Native MSVC 17937 hardcode_libdir_flag_spec=' ' 17938 allow_undefined_flag=unsupported 17939 always_export_symbols=yes 17940 file_list_spec='@' 17941 # Tell ltmain to make .lib files, not .a files. 17942 libext=lib 17943 # Tell ltmain to make .dll files, not .so files. 17944 shrext_cmds=.dll 17945 # FIXME: Setting linknames here is a bad hack. 17946 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17947 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17948 cp "$export_symbols" "$output_objdir/$soname.def"; 17949 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17950 else 17951 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17952 fi~ 17953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17954 linknames=' 17955 # The linker will not automatically build a static lib if we build a DLL. 17956 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17957 enable_shared_with_static_runtimes=yes 17958 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17960 # Don't use ranlib 17961 old_postinstall_cmds='chmod 644 $oldlib' 17962 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17963 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17964 case $lt_outputfile in 17965 *.exe|*.EXE) ;; 17966 *) 17967 lt_outputfile=$lt_outputfile.exe 17968 lt_tool_outputfile=$lt_tool_outputfile.exe 17969 ;; 17970 esac~ 17971 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17973 $RM "$lt_outputfile.manifest"; 17974 fi' 17975 ;; 17976 *) 17977 # Assume MSVC wrapper 17978 hardcode_libdir_flag_spec=' ' 17979 allow_undefined_flag=unsupported 17980 # Tell ltmain to make .lib files, not .a files. 17981 libext=lib 17982 # Tell ltmain to make .dll files, not .so files. 17983 shrext_cmds=.dll 17984 # FIXME: Setting linknames here is a bad hack. 17985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17986 # The linker will automatically build a .lib file if we build a DLL. 17987 old_archive_from_new_cmds='true' 17988 # FIXME: Should let the user specify the lib program. 17989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17990 enable_shared_with_static_runtimes=yes 17991 ;; 17992 esac 17993 ;; 17994 17995 darwin* | rhapsody*) 17996 17997 17998 archive_cmds_need_lc=no 17999 hardcode_direct=no 18000 hardcode_automatic=yes 18001 hardcode_shlibpath_var=unsupported 18002 if test yes = "$lt_cv_ld_force_load"; then 18003 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\"`' 18004 18005 else 18006 whole_archive_flag_spec='' 18007 fi 18008 link_all_deplibs=yes 18009 allow_undefined_flag=$_lt_dar_allow_undefined 18010 case $cc_basename in 18011 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18012 *) _lt_dar_can_shared=$GCC ;; 18013 esac 18014 if test yes = "$_lt_dar_can_shared"; then 18015 output_verbose_link_cmd=func_echo_all 18016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18018 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" 18019 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" 18020 18021 else 18022 ld_shlibs=no 18023 fi 18024 18025 ;; 18026 18027 dgux*) 18028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18029 hardcode_libdir_flag_spec='-L$libdir' 18030 hardcode_shlibpath_var=no 18031 ;; 18032 18033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18034 # support. Future versions do this automatically, but an explicit c++rt0.o 18035 # does not break anything, and helps significantly (at the cost of a little 18036 # extra space). 18037 freebsd2.2*) 18038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18039 hardcode_libdir_flag_spec='-R$libdir' 18040 hardcode_direct=yes 18041 hardcode_shlibpath_var=no 18042 ;; 18043 18044 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18045 freebsd2.*) 18046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18047 hardcode_direct=yes 18048 hardcode_minus_L=yes 18049 hardcode_shlibpath_var=no 18050 ;; 18051 18052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18053 freebsd* | dragonfly*) 18054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18055 hardcode_libdir_flag_spec='-R$libdir' 18056 hardcode_direct=yes 18057 hardcode_shlibpath_var=no 18058 ;; 18059 18060 hpux9*) 18061 if test yes = "$GCC"; then 18062 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18063 else 18064 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18065 fi 18066 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18067 hardcode_libdir_separator=: 18068 hardcode_direct=yes 18069 18070 # hardcode_minus_L: Not really in the search PATH, 18071 # but as the default location of the library. 18072 hardcode_minus_L=yes 18073 export_dynamic_flag_spec='$wl-E' 18074 ;; 18075 18076 hpux10*) 18077 if test yes,no = "$GCC,$with_gnu_ld"; then 18078 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18079 else 18080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18081 fi 18082 if test no = "$with_gnu_ld"; then 18083 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18084 hardcode_libdir_separator=: 18085 hardcode_direct=yes 18086 hardcode_direct_absolute=yes 18087 export_dynamic_flag_spec='$wl-E' 18088 # hardcode_minus_L: Not really in the search PATH, 18089 # but as the default location of the library. 18090 hardcode_minus_L=yes 18091 fi 18092 ;; 18093 18094 hpux11*) 18095 if test yes,no = "$GCC,$with_gnu_ld"; then 18096 case $host_cpu in 18097 hppa*64*) 18098 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18099 ;; 18100 ia64*) 18101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18102 ;; 18103 *) 18104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18105 ;; 18106 esac 18107 else 18108 case $host_cpu in 18109 hppa*64*) 18110 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18111 ;; 18112 ia64*) 18113 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18114 ;; 18115 *) 18116 18117 # Older versions of the 11.00 compiler do not understand -b yet 18118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18120$as_echo_n "checking if $CC understands -b... " >&6; } 18121if ${lt_cv_prog_compiler__b+:} false; then : 18122 $as_echo_n "(cached) " >&6 18123else 18124 lt_cv_prog_compiler__b=no 18125 save_LDFLAGS=$LDFLAGS 18126 LDFLAGS="$LDFLAGS -b" 18127 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18129 # The linker can only warn and ignore the option if not recognized 18130 # So say no if there are warnings 18131 if test -s conftest.err; then 18132 # Append any errors to the config.log. 18133 cat conftest.err 1>&5 18134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18136 if diff conftest.exp conftest.er2 >/dev/null; then 18137 lt_cv_prog_compiler__b=yes 18138 fi 18139 else 18140 lt_cv_prog_compiler__b=yes 18141 fi 18142 fi 18143 $RM -r conftest* 18144 LDFLAGS=$save_LDFLAGS 18145 18146fi 18147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18148$as_echo "$lt_cv_prog_compiler__b" >&6; } 18149 18150if test yes = "$lt_cv_prog_compiler__b"; then 18151 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18152else 18153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18154fi 18155 18156 ;; 18157 esac 18158 fi 18159 if test no = "$with_gnu_ld"; then 18160 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18161 hardcode_libdir_separator=: 18162 18163 case $host_cpu in 18164 hppa*64*|ia64*) 18165 hardcode_direct=no 18166 hardcode_shlibpath_var=no 18167 ;; 18168 *) 18169 hardcode_direct=yes 18170 hardcode_direct_absolute=yes 18171 export_dynamic_flag_spec='$wl-E' 18172 18173 # hardcode_minus_L: Not really in the search PATH, 18174 # but as the default location of the library. 18175 hardcode_minus_L=yes 18176 ;; 18177 esac 18178 fi 18179 ;; 18180 18181 irix5* | irix6* | nonstopux*) 18182 if test yes = "$GCC"; then 18183 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' 18184 # Try to use the -exported_symbol ld option, if it does not 18185 # work, assume that -exports_file does not work either and 18186 # implicitly export all symbols. 18187 # This should be the same for all languages, so no per-tag cache variable. 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 18189$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 18190if ${lt_cv_irix_exported_symbol+:} false; then : 18191 $as_echo_n "(cached) " >&6 18192else 18193 save_LDFLAGS=$LDFLAGS 18194 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18196/* end confdefs.h. */ 18197int foo (void) { return 0; } 18198_ACEOF 18199if ac_fn_c_try_link "$LINENO"; then : 18200 lt_cv_irix_exported_symbol=yes 18201else 18202 lt_cv_irix_exported_symbol=no 18203fi 18204rm -f core conftest.err conftest.$ac_objext \ 18205 conftest$ac_exeext conftest.$ac_ext 18206 LDFLAGS=$save_LDFLAGS 18207fi 18208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 18209$as_echo "$lt_cv_irix_exported_symbol" >&6; } 18210 if test yes = "$lt_cv_irix_exported_symbol"; then 18211 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' 18212 fi 18213 else 18214 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' 18215 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' 18216 fi 18217 archive_cmds_need_lc='no' 18218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18219 hardcode_libdir_separator=: 18220 inherit_rpath=yes 18221 link_all_deplibs=yes 18222 ;; 18223 18224 linux*) 18225 case $cc_basename in 18226 tcc*) 18227 # Fabrice Bellard et al's Tiny C Compiler 18228 ld_shlibs=yes 18229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18230 ;; 18231 esac 18232 ;; 18233 18234 netbsd*) 18235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18237 else 18238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18239 fi 18240 hardcode_libdir_flag_spec='-R$libdir' 18241 hardcode_direct=yes 18242 hardcode_shlibpath_var=no 18243 ;; 18244 18245 newsos6) 18246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18247 hardcode_direct=yes 18248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18249 hardcode_libdir_separator=: 18250 hardcode_shlibpath_var=no 18251 ;; 18252 18253 *nto* | *qnx*) 18254 ;; 18255 18256 openbsd* | bitrig*) 18257 if test -f /usr/libexec/ld.so; then 18258 hardcode_direct=yes 18259 hardcode_shlibpath_var=no 18260 hardcode_direct_absolute=yes 18261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 18264 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18265 export_dynamic_flag_spec='$wl-E' 18266 else 18267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18268 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18269 fi 18270 else 18271 ld_shlibs=no 18272 fi 18273 ;; 18274 18275 os2*) 18276 hardcode_libdir_flag_spec='-L$libdir' 18277 hardcode_minus_L=yes 18278 allow_undefined_flag=unsupported 18279 shrext_cmds=.dll 18280 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18283 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18284 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18286 emximp -o $lib $output_objdir/$libname.def' 18287 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18290 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18291 prefix_cmds="$SED"~ 18292 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18293 prefix_cmds="$prefix_cmds -e 1d"; 18294 fi~ 18295 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18296 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18298 emximp -o $lib $output_objdir/$libname.def' 18299 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18300 enable_shared_with_static_runtimes=yes 18301 ;; 18302 18303 osf3*) 18304 if test yes = "$GCC"; then 18305 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 18306 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' 18307 else 18308 allow_undefined_flag=' -expect_unresolved \*' 18309 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' 18310 fi 18311 archive_cmds_need_lc='no' 18312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18313 hardcode_libdir_separator=: 18314 ;; 18315 18316 osf4* | osf5*) # as osf3* with the addition of -msym flag 18317 if test yes = "$GCC"; then 18318 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 18319 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' 18320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18321 else 18322 allow_undefined_flag=' -expect_unresolved \*' 18323 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' 18324 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~ 18325 $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' 18326 18327 # Both c and cxx compiler support -rpath directly 18328 hardcode_libdir_flag_spec='-rpath $libdir' 18329 fi 18330 archive_cmds_need_lc='no' 18331 hardcode_libdir_separator=: 18332 ;; 18333 18334 solaris*) 18335 no_undefined_flag=' -z defs' 18336 if test yes = "$GCC"; then 18337 wlarc='$wl' 18338 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18340 $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' 18341 else 18342 case `$CC -V 2>&1` in 18343 *"Compilers 5.0"*) 18344 wlarc='' 18345 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 18346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18347 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 18348 ;; 18349 *) 18350 wlarc='$wl' 18351 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 18352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18353 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18354 ;; 18355 esac 18356 fi 18357 hardcode_libdir_flag_spec='-R$libdir' 18358 hardcode_shlibpath_var=no 18359 case $host_os in 18360 solaris2.[0-5] | solaris2.[0-5].*) ;; 18361 *) 18362 # The compiler driver will combine and reorder linker options, 18363 # but understands '-z linker_flag'. GCC discards it without '$wl', 18364 # but is careful enough not to reorder. 18365 # Supported since Solaris 2.6 (maybe 2.5.1?) 18366 if test yes = "$GCC"; then 18367 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 18368 else 18369 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 18370 fi 18371 ;; 18372 esac 18373 link_all_deplibs=yes 18374 ;; 18375 18376 sunos4*) 18377 if test sequent = "$host_vendor"; then 18378 # Use $CC to link under sequent, because it throws in some extra .o 18379 # files that make .init and .fini sections work. 18380 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18381 else 18382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18383 fi 18384 hardcode_libdir_flag_spec='-L$libdir' 18385 hardcode_direct=yes 18386 hardcode_minus_L=yes 18387 hardcode_shlibpath_var=no 18388 ;; 18389 18390 sysv4) 18391 case $host_vendor in 18392 sni) 18393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18394 hardcode_direct=yes # is this really true??? 18395 ;; 18396 siemens) 18397 ## LD is ld it makes a PLAMLIB 18398 ## CC just makes a GrossModule. 18399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18400 reload_cmds='$CC -r -o $output$reload_objs' 18401 hardcode_direct=no 18402 ;; 18403 motorola) 18404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 18406 ;; 18407 esac 18408 runpath_var='LD_RUN_PATH' 18409 hardcode_shlibpath_var=no 18410 ;; 18411 18412 sysv4.3*) 18413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18414 hardcode_shlibpath_var=no 18415 export_dynamic_flag_spec='-Bexport' 18416 ;; 18417 18418 sysv4*MP*) 18419 if test -d /usr/nec; then 18420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18421 hardcode_shlibpath_var=no 18422 runpath_var=LD_RUN_PATH 18423 hardcode_runpath_var=yes 18424 ld_shlibs=yes 18425 fi 18426 ;; 18427 18428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18429 no_undefined_flag='$wl-z,text' 18430 archive_cmds_need_lc=no 18431 hardcode_shlibpath_var=no 18432 runpath_var='LD_RUN_PATH' 18433 18434 if test yes = "$GCC"; then 18435 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18436 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18437 else 18438 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18439 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18440 fi 18441 ;; 18442 18443 sysv5* | sco3.2v5* | sco5v6*) 18444 # Note: We CANNOT use -z defs as we might desire, because we do not 18445 # link with -lc, and that would cause any symbols used from libc to 18446 # always be unresolved, which means just about no library would 18447 # ever link correctly. If we're not using GNU ld we use -z text 18448 # though, which does catch some bad symbols but isn't as heavy-handed 18449 # as -z defs. 18450 no_undefined_flag='$wl-z,text' 18451 allow_undefined_flag='$wl-z,nodefs' 18452 archive_cmds_need_lc=no 18453 hardcode_shlibpath_var=no 18454 hardcode_libdir_flag_spec='$wl-R,$libdir' 18455 hardcode_libdir_separator=':' 18456 link_all_deplibs=yes 18457 export_dynamic_flag_spec='$wl-Bexport' 18458 runpath_var='LD_RUN_PATH' 18459 18460 if test yes = "$GCC"; then 18461 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18462 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18463 else 18464 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18465 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18466 fi 18467 ;; 18468 18469 uts4*) 18470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18471 hardcode_libdir_flag_spec='-L$libdir' 18472 hardcode_shlibpath_var=no 18473 ;; 18474 18475 *) 18476 ld_shlibs=no 18477 ;; 18478 esac 18479 18480 if test sni = "$host_vendor"; then 18481 case $host in 18482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18483 export_dynamic_flag_spec='$wl-Blargedynsym' 18484 ;; 18485 esac 18486 fi 18487 fi 18488 18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 18490$as_echo "$ld_shlibs" >&6; } 18491test no = "$ld_shlibs" && can_build_shared=no 18492 18493with_gnu_ld=$with_gnu_ld 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509# 18510# Do we need to explicitly link libc? 18511# 18512case "x$archive_cmds_need_lc" in 18513x|xyes) 18514 # Assume -lc should be added 18515 archive_cmds_need_lc=yes 18516 18517 if test yes,yes = "$GCC,$enable_shared"; then 18518 case $archive_cmds in 18519 *'~'*) 18520 # FIXME: we may have to deal with multi-command sequences. 18521 ;; 18522 '$CC '*) 18523 # Test whether the compiler implicitly links with -lc since on some 18524 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18525 # to ld, don't add -lc before -lgcc. 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18527$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18528if ${lt_cv_archive_cmds_need_lc+:} false; then : 18529 $as_echo_n "(cached) " >&6 18530else 18531 $RM conftest* 18532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18533 18534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18535 (eval $ac_compile) 2>&5 18536 ac_status=$? 18537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18538 test $ac_status = 0; } 2>conftest.err; then 18539 soname=conftest 18540 lib=conftest 18541 libobjs=conftest.$ac_objext 18542 deplibs= 18543 wl=$lt_prog_compiler_wl 18544 pic_flag=$lt_prog_compiler_pic 18545 compiler_flags=-v 18546 linker_flags=-v 18547 verstring= 18548 output_objdir=. 18549 libname=conftest 18550 lt_save_allow_undefined_flag=$allow_undefined_flag 18551 allow_undefined_flag= 18552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18553 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18554 ac_status=$? 18555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18556 test $ac_status = 0; } 18557 then 18558 lt_cv_archive_cmds_need_lc=no 18559 else 18560 lt_cv_archive_cmds_need_lc=yes 18561 fi 18562 allow_undefined_flag=$lt_save_allow_undefined_flag 18563 else 18564 cat conftest.err 1>&5 18565 fi 18566 $RM conftest* 18567 18568fi 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18570$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 18571 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18572 ;; 18573 esac 18574 fi 18575 ;; 18576esac 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18730$as_echo_n "checking dynamic linker characteristics... " >&6; } 18731 18732if test yes = "$GCC"; then 18733 case $host_os in 18734 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18735 *) lt_awk_arg='/^libraries:/' ;; 18736 esac 18737 case $host_os in 18738 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18739 *) lt_sed_strip_eq='s|=/|/|g' ;; 18740 esac 18741 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18742 case $lt_search_path_spec in 18743 *\;*) 18744 # if the path contains ";" then we assume it to be the separator 18745 # otherwise default to the standard path separator (i.e. ":") - it is 18746 # assumed that no part of a normal pathname contains ";" but that should 18747 # okay in the real world where ";" in dirpaths is itself problematic. 18748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18749 ;; 18750 *) 18751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18752 ;; 18753 esac 18754 # Ok, now we have the path, separated by spaces, we can step through it 18755 # and add multilib dir if necessary... 18756 lt_tmp_lt_search_path_spec= 18757 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18758 # ...but if some path component already ends with the multilib dir we assume 18759 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18760 case "$lt_multi_os_dir; $lt_search_path_spec " in 18761 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18762 lt_multi_os_dir= 18763 ;; 18764 esac 18765 for lt_sys_path in $lt_search_path_spec; do 18766 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18768 elif test -n "$lt_multi_os_dir"; then 18769 test -d "$lt_sys_path" && \ 18770 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18771 fi 18772 done 18773 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18774BEGIN {RS = " "; FS = "/|\n";} { 18775 lt_foo = ""; 18776 lt_count = 0; 18777 for (lt_i = NF; lt_i > 0; lt_i--) { 18778 if ($lt_i != "" && $lt_i != ".") { 18779 if ($lt_i == "..") { 18780 lt_count++; 18781 } else { 18782 if (lt_count == 0) { 18783 lt_foo = "/" $lt_i lt_foo; 18784 } else { 18785 lt_count--; 18786 } 18787 } 18788 } 18789 } 18790 if (lt_foo != "") { lt_freq[lt_foo]++; } 18791 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18792}'` 18793 # AWK program above erroneously prepends '/' to C:/dos/paths 18794 # for these hosts. 18795 case $host_os in 18796 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18797 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18798 esac 18799 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18800else 18801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18802fi 18803library_names_spec= 18804libname_spec='lib$name' 18805soname_spec= 18806shrext_cmds=.so 18807postinstall_cmds= 18808postuninstall_cmds= 18809finish_cmds= 18810finish_eval= 18811shlibpath_var= 18812shlibpath_overrides_runpath=unknown 18813version_type=none 18814dynamic_linker="$host_os ld.so" 18815sys_lib_dlsearch_path_spec="/lib /usr/lib" 18816need_lib_prefix=unknown 18817hardcode_into_libs=no 18818 18819# when you set need_version to no, make sure it does not cause -set_version 18820# flags to be left without arguments 18821need_version=unknown 18822 18823 18824 18825case $host_os in 18826aix3*) 18827 version_type=linux # correct to gnu/linux during the next big refactor 18828 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18829 shlibpath_var=LIBPATH 18830 18831 # AIX 3 has no versioning support, so we append a major version to the name. 18832 soname_spec='$libname$release$shared_ext$major' 18833 ;; 18834 18835aix[4-9]*) 18836 version_type=linux # correct to gnu/linux during the next big refactor 18837 need_lib_prefix=no 18838 need_version=no 18839 hardcode_into_libs=yes 18840 if test ia64 = "$host_cpu"; then 18841 # AIX 5 supports IA64 18842 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18843 shlibpath_var=LD_LIBRARY_PATH 18844 else 18845 # With GCC up to 2.95.x, collect2 would create an import file 18846 # for dependence libraries. The import file would start with 18847 # the line '#! .'. This would cause the generated library to 18848 # depend on '.', always an invalid library. This was fixed in 18849 # development snapshots of GCC prior to 3.0. 18850 case $host_os in 18851 aix4 | aix4.[01] | aix4.[01].*) 18852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18853 echo ' yes ' 18854 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18855 : 18856 else 18857 can_build_shared=no 18858 fi 18859 ;; 18860 esac 18861 # Using Import Files as archive members, it is possible to support 18862 # filename-based versioning of shared library archives on AIX. While 18863 # this would work for both with and without runtime linking, it will 18864 # prevent static linking of such archives. So we do filename-based 18865 # shared library versioning with .so extension only, which is used 18866 # when both runtime linking and shared linking is enabled. 18867 # Unfortunately, runtime linking may impact performance, so we do 18868 # not want this to be the default eventually. Also, we use the 18869 # versioned .so libs for executables only if there is the -brtl 18870 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18871 # To allow for filename-based versioning support, we need to create 18872 # libNAME.so.V as an archive file, containing: 18873 # *) an Import File, referring to the versioned filename of the 18874 # archive as well as the shared archive member, telling the 18875 # bitwidth (32 or 64) of that shared object, and providing the 18876 # list of exported symbols of that shared object, eventually 18877 # decorated with the 'weak' keyword 18878 # *) the shared object with the F_LOADONLY flag set, to really avoid 18879 # it being seen by the linker. 18880 # At run time we better use the real file rather than another symlink, 18881 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18882 18883 case $with_aix_soname,$aix_use_runtimelinking in 18884 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18885 # soname into executable. Probably we can add versioning support to 18886 # collect2, so additional links can be useful in future. 18887 aix,yes) # traditional libtool 18888 dynamic_linker='AIX unversionable lib.so' 18889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18890 # instead of lib<name>.a to let people know that these are not 18891 # typical AIX shared libraries. 18892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18893 ;; 18894 aix,no) # traditional AIX only 18895 dynamic_linker='AIX lib.a(lib.so.V)' 18896 # We preserve .a as extension for shared libraries through AIX4.2 18897 # and later when we are not doing run time linking. 18898 library_names_spec='$libname$release.a $libname.a' 18899 soname_spec='$libname$release$shared_ext$major' 18900 ;; 18901 svr4,*) # full svr4 only 18902 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18903 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18904 # We do not specify a path in Import Files, so LIBPATH fires. 18905 shlibpath_overrides_runpath=yes 18906 ;; 18907 *,yes) # both, prefer svr4 18908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18910 # unpreferred sharedlib libNAME.a needs extra handling 18911 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18912 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18913 # We do not specify a path in Import Files, so LIBPATH fires. 18914 shlibpath_overrides_runpath=yes 18915 ;; 18916 *,no) # both, prefer aix 18917 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18918 library_names_spec='$libname$release.a $libname.a' 18919 soname_spec='$libname$release$shared_ext$major' 18920 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18921 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18922 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18923 ;; 18924 esac 18925 shlibpath_var=LIBPATH 18926 fi 18927 ;; 18928 18929amigaos*) 18930 case $host_cpu in 18931 powerpc) 18932 # Since July 2007 AmigaOS4 officially supports .so libraries. 18933 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18935 ;; 18936 m68k) 18937 library_names_spec='$libname.ixlibrary $libname.a' 18938 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18939 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18940 ;; 18941 esac 18942 ;; 18943 18944beos*) 18945 library_names_spec='$libname$shared_ext' 18946 dynamic_linker="$host_os ld.so" 18947 shlibpath_var=LIBRARY_PATH 18948 ;; 18949 18950bsdi[45]*) 18951 version_type=linux # correct to gnu/linux during the next big refactor 18952 need_version=no 18953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18954 soname_spec='$libname$release$shared_ext$major' 18955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18956 shlibpath_var=LD_LIBRARY_PATH 18957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18959 # the default ld.so.conf also contains /usr/contrib/lib and 18960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18961 # libtool to hard-code these into programs 18962 ;; 18963 18964cygwin* | mingw* | pw32* | cegcc*) 18965 version_type=windows 18966 shrext_cmds=.dll 18967 need_version=no 18968 need_lib_prefix=no 18969 18970 case $GCC,$cc_basename in 18971 yes,*) 18972 # gcc 18973 library_names_spec='$libname.dll.a' 18974 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18975 postinstall_cmds='base_file=`basename \$file`~ 18976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18977 dldir=$destdir/`dirname \$dlpath`~ 18978 test -d \$dldir || mkdir -p \$dldir~ 18979 $install_prog $dir/$dlname \$dldir/$dlname~ 18980 chmod a+x \$dldir/$dlname~ 18981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18983 fi' 18984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18985 dlpath=$dir/\$dldll~ 18986 $RM \$dlpath' 18987 shlibpath_overrides_runpath=yes 18988 18989 case $host_os in 18990 cygwin*) 18991 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18992 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18993 18994 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18995 ;; 18996 mingw* | cegcc*) 18997 # MinGW DLLs use traditional 'lib' prefix 18998 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18999 ;; 19000 pw32*) 19001 # pw32 DLLs use 'pw' prefix rather than 'lib' 19002 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19003 ;; 19004 esac 19005 dynamic_linker='Win32 ld.exe' 19006 ;; 19007 19008 *,cl*) 19009 # Native MSVC 19010 libname_spec='$name' 19011 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19012 library_names_spec='$libname.dll.lib' 19013 19014 case $build_os in 19015 mingw*) 19016 sys_lib_search_path_spec= 19017 lt_save_ifs=$IFS 19018 IFS=';' 19019 for lt_path in $LIB 19020 do 19021 IFS=$lt_save_ifs 19022 # Let DOS variable expansion print the short 8.3 style file name. 19023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19025 done 19026 IFS=$lt_save_ifs 19027 # Convert to MSYS style. 19028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19029 ;; 19030 cygwin*) 19031 # Convert to unix form, then to dos form, then back to unix form 19032 # but this time dos style (no spaces!) so that the unix form looks 19033 # like /cygdrive/c/PROGRA~1:/cygdr... 19034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19037 ;; 19038 *) 19039 sys_lib_search_path_spec=$LIB 19040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19041 # It is most probably a Windows format PATH. 19042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19043 else 19044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19045 fi 19046 # FIXME: find the short name or the path components, as spaces are 19047 # common. (e.g. "Program Files" -> "PROGRA~1") 19048 ;; 19049 esac 19050 19051 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19052 postinstall_cmds='base_file=`basename \$file`~ 19053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19054 dldir=$destdir/`dirname \$dlpath`~ 19055 test -d \$dldir || mkdir -p \$dldir~ 19056 $install_prog $dir/$dlname \$dldir/$dlname' 19057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19058 dlpath=$dir/\$dldll~ 19059 $RM \$dlpath' 19060 shlibpath_overrides_runpath=yes 19061 dynamic_linker='Win32 link.exe' 19062 ;; 19063 19064 *) 19065 # Assume MSVC wrapper 19066 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19067 dynamic_linker='Win32 ld.exe' 19068 ;; 19069 esac 19070 # FIXME: first we should search . and the directory the executable is in 19071 shlibpath_var=PATH 19072 ;; 19073 19074darwin* | rhapsody*) 19075 dynamic_linker="$host_os dyld" 19076 version_type=darwin 19077 need_lib_prefix=no 19078 need_version=no 19079 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 19080 soname_spec='$libname$release$major$shared_ext' 19081 shlibpath_overrides_runpath=yes 19082 shlibpath_var=DYLD_LIBRARY_PATH 19083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19084 19085 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19087 ;; 19088 19089dgux*) 19090 version_type=linux # correct to gnu/linux during the next big refactor 19091 need_lib_prefix=no 19092 need_version=no 19093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19094 soname_spec='$libname$release$shared_ext$major' 19095 shlibpath_var=LD_LIBRARY_PATH 19096 ;; 19097 19098freebsd* | dragonfly*) 19099 # DragonFly does not have aout. When/if they implement a new 19100 # versioning mechanism, adjust this. 19101 if test -x /usr/bin/objformat; then 19102 objformat=`/usr/bin/objformat` 19103 else 19104 case $host_os in 19105 freebsd[23].*) objformat=aout ;; 19106 *) objformat=elf ;; 19107 esac 19108 fi 19109 version_type=freebsd-$objformat 19110 case $version_type in 19111 freebsd-elf*) 19112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19113 soname_spec='$libname$release$shared_ext$major' 19114 need_version=no 19115 need_lib_prefix=no 19116 ;; 19117 freebsd-*) 19118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19119 need_version=yes 19120 ;; 19121 esac 19122 shlibpath_var=LD_LIBRARY_PATH 19123 case $host_os in 19124 freebsd2.*) 19125 shlibpath_overrides_runpath=yes 19126 ;; 19127 freebsd3.[01]* | freebsdelf3.[01]*) 19128 shlibpath_overrides_runpath=yes 19129 hardcode_into_libs=yes 19130 ;; 19131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19133 shlibpath_overrides_runpath=no 19134 hardcode_into_libs=yes 19135 ;; 19136 *) # from 4.6 on, and DragonFly 19137 shlibpath_overrides_runpath=yes 19138 hardcode_into_libs=yes 19139 ;; 19140 esac 19141 ;; 19142 19143haiku*) 19144 version_type=linux # correct to gnu/linux during the next big refactor 19145 need_lib_prefix=no 19146 need_version=no 19147 dynamic_linker="$host_os runtime_loader" 19148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19149 soname_spec='$libname$release$shared_ext$major' 19150 shlibpath_var=LIBRARY_PATH 19151 shlibpath_overrides_runpath=no 19152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19153 hardcode_into_libs=yes 19154 ;; 19155 19156hpux9* | hpux10* | hpux11*) 19157 # Give a soname corresponding to the major version so that dld.sl refuses to 19158 # link against other versions. 19159 version_type=sunos 19160 need_lib_prefix=no 19161 need_version=no 19162 case $host_cpu in 19163 ia64*) 19164 shrext_cmds='.so' 19165 hardcode_into_libs=yes 19166 dynamic_linker="$host_os dld.so" 19167 shlibpath_var=LD_LIBRARY_PATH 19168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19170 soname_spec='$libname$release$shared_ext$major' 19171 if test 32 = "$HPUX_IA64_MODE"; then 19172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19173 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 19174 else 19175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19176 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 19177 fi 19178 ;; 19179 hppa*64*) 19180 shrext_cmds='.sl' 19181 hardcode_into_libs=yes 19182 dynamic_linker="$host_os dld.sl" 19183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19186 soname_spec='$libname$release$shared_ext$major' 19187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19189 ;; 19190 *) 19191 shrext_cmds='.sl' 19192 dynamic_linker="$host_os dld.sl" 19193 shlibpath_var=SHLIB_PATH 19194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19196 soname_spec='$libname$release$shared_ext$major' 19197 ;; 19198 esac 19199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 19200 postinstall_cmds='chmod 555 $lib' 19201 # or fails outright, so override atomically: 19202 install_override_mode=555 19203 ;; 19204 19205interix[3-9]*) 19206 version_type=linux # correct to gnu/linux during the next big refactor 19207 need_lib_prefix=no 19208 need_version=no 19209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19210 soname_spec='$libname$release$shared_ext$major' 19211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19212 shlibpath_var=LD_LIBRARY_PATH 19213 shlibpath_overrides_runpath=no 19214 hardcode_into_libs=yes 19215 ;; 19216 19217irix5* | irix6* | nonstopux*) 19218 case $host_os in 19219 nonstopux*) version_type=nonstopux ;; 19220 *) 19221 if test yes = "$lt_cv_prog_gnu_ld"; then 19222 version_type=linux # correct to gnu/linux during the next big refactor 19223 else 19224 version_type=irix 19225 fi ;; 19226 esac 19227 need_lib_prefix=no 19228 need_version=no 19229 soname_spec='$libname$release$shared_ext$major' 19230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 19231 case $host_os in 19232 irix5* | nonstopux*) 19233 libsuff= shlibsuff= 19234 ;; 19235 *) 19236 case $LD in # libtool.m4 will add one of these switches to LD 19237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19238 libsuff= shlibsuff= libmagic=32-bit;; 19239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19240 libsuff=32 shlibsuff=N32 libmagic=N32;; 19241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19242 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19243 *) libsuff= shlibsuff= libmagic=never-match;; 19244 esac 19245 ;; 19246 esac 19247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19248 shlibpath_overrides_runpath=no 19249 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 19250 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 19251 hardcode_into_libs=yes 19252 ;; 19253 19254# No shared lib support for Linux oldld, aout, or coff. 19255linux*oldld* | linux*aout* | linux*coff*) 19256 dynamic_linker=no 19257 ;; 19258 19259linux*android*) 19260 version_type=none # Android doesn't support versioned libraries. 19261 need_lib_prefix=no 19262 need_version=no 19263 library_names_spec='$libname$release$shared_ext' 19264 soname_spec='$libname$release$shared_ext' 19265 finish_cmds= 19266 shlibpath_var=LD_LIBRARY_PATH 19267 shlibpath_overrides_runpath=yes 19268 19269 # This implies no fast_install, which is unacceptable. 19270 # Some rework will be needed to allow for fast_install 19271 # before this can be enabled. 19272 hardcode_into_libs=yes 19273 19274 dynamic_linker='Android linker' 19275 # Don't embed -rpath directories since the linker doesn't support them. 19276 hardcode_libdir_flag_spec='-L$libdir' 19277 ;; 19278 19279# This must be glibc/ELF. 19280linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19281 version_type=linux # correct to gnu/linux during the next big refactor 19282 need_lib_prefix=no 19283 need_version=no 19284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19285 soname_spec='$libname$release$shared_ext$major' 19286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19287 shlibpath_var=LD_LIBRARY_PATH 19288 shlibpath_overrides_runpath=no 19289 19290 # Some binutils ld are patched to set DT_RUNPATH 19291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 19292 $as_echo_n "(cached) " >&6 19293else 19294 lt_cv_shlibpath_overrides_runpath=no 19295 save_LDFLAGS=$LDFLAGS 19296 save_libdir=$libdir 19297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 19298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19300/* end confdefs.h. */ 19301 19302int 19303main () 19304{ 19305 19306 ; 19307 return 0; 19308} 19309_ACEOF 19310if ac_fn_c_try_link "$LINENO"; then : 19311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19312 lt_cv_shlibpath_overrides_runpath=yes 19313fi 19314fi 19315rm -f core conftest.err conftest.$ac_objext \ 19316 conftest$ac_exeext conftest.$ac_ext 19317 LDFLAGS=$save_LDFLAGS 19318 libdir=$save_libdir 19319 19320fi 19321 19322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 19323 19324 # This implies no fast_install, which is unacceptable. 19325 # Some rework will be needed to allow for fast_install 19326 # before this can be enabled. 19327 hardcode_into_libs=yes 19328 19329 # Add ABI-specific directories to the system library path. 19330 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 19331 19332 # Ideally, we could use ldconfig to report *all* directores which are 19333 # searched for libraries, however this is still not possible. Aside from not 19334 # being certain /sbin/ldconfig is available, command 19335 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 19336 # even though it is searched at run-time. Try to do the best guess by 19337 # appending ld.so.conf contents (and includes) to the search path. 19338 if test -f /etc/ld.so.conf; then 19339 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' ' '` 19340 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 19341 fi 19342 19343 # We used to test for /lib/ld.so.1 and disable shared libraries on 19344 # powerpc, because MkLinux only supported shared libraries with the 19345 # GNU dynamic linker. Since this was broken with cross compilers, 19346 # most powerpc-linux boxes support dynamic linking these days and 19347 # people can always --disable-shared, the test was removed, and we 19348 # assume the GNU/Linux dynamic linker is in use. 19349 dynamic_linker='GNU/Linux ld.so' 19350 ;; 19351 19352netbsd*) 19353 version_type=sunos 19354 need_lib_prefix=no 19355 need_version=no 19356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19359 dynamic_linker='NetBSD (a.out) ld.so' 19360 else 19361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19362 soname_spec='$libname$release$shared_ext$major' 19363 dynamic_linker='NetBSD ld.elf_so' 19364 fi 19365 shlibpath_var=LD_LIBRARY_PATH 19366 shlibpath_overrides_runpath=yes 19367 hardcode_into_libs=yes 19368 ;; 19369 19370newsos6) 19371 version_type=linux # correct to gnu/linux during the next big refactor 19372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19373 shlibpath_var=LD_LIBRARY_PATH 19374 shlibpath_overrides_runpath=yes 19375 ;; 19376 19377*nto* | *qnx*) 19378 version_type=qnx 19379 need_lib_prefix=no 19380 need_version=no 19381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19382 soname_spec='$libname$release$shared_ext$major' 19383 shlibpath_var=LD_LIBRARY_PATH 19384 shlibpath_overrides_runpath=no 19385 hardcode_into_libs=yes 19386 dynamic_linker='ldqnx.so' 19387 ;; 19388 19389openbsd* | bitrig*) 19390 version_type=sunos 19391 sys_lib_dlsearch_path_spec=/usr/lib 19392 need_lib_prefix=no 19393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19394 need_version=no 19395 else 19396 need_version=yes 19397 fi 19398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19400 shlibpath_var=LD_LIBRARY_PATH 19401 shlibpath_overrides_runpath=yes 19402 ;; 19403 19404os2*) 19405 libname_spec='$name' 19406 version_type=windows 19407 shrext_cmds=.dll 19408 need_version=no 19409 need_lib_prefix=no 19410 # OS/2 can only load a DLL with a base name of 8 characters or less. 19411 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 19412 v=$($ECHO $release$versuffix | tr -d .-); 19413 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 19414 $ECHO $n$v`$shared_ext' 19415 library_names_spec='${libname}_dll.$libext' 19416 dynamic_linker='OS/2 ld.exe' 19417 shlibpath_var=BEGINLIBPATH 19418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19420 postinstall_cmds='base_file=`basename \$file`~ 19421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 19422 dldir=$destdir/`dirname \$dlpath`~ 19423 test -d \$dldir || mkdir -p \$dldir~ 19424 $install_prog $dir/$dlname \$dldir/$dlname~ 19425 chmod a+x \$dldir/$dlname~ 19426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19428 fi' 19429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 19430 dlpath=$dir/\$dldll~ 19431 $RM \$dlpath' 19432 ;; 19433 19434osf3* | osf4* | osf5*) 19435 version_type=osf 19436 need_lib_prefix=no 19437 need_version=no 19438 soname_spec='$libname$release$shared_ext$major' 19439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19440 shlibpath_var=LD_LIBRARY_PATH 19441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19443 ;; 19444 19445rdos*) 19446 dynamic_linker=no 19447 ;; 19448 19449solaris*) 19450 version_type=linux # correct to gnu/linux during the next big refactor 19451 need_lib_prefix=no 19452 need_version=no 19453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19454 soname_spec='$libname$release$shared_ext$major' 19455 shlibpath_var=LD_LIBRARY_PATH 19456 shlibpath_overrides_runpath=yes 19457 hardcode_into_libs=yes 19458 # ldd complains unless libraries are executable 19459 postinstall_cmds='chmod +x $lib' 19460 ;; 19461 19462sunos4*) 19463 version_type=sunos 19464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19466 shlibpath_var=LD_LIBRARY_PATH 19467 shlibpath_overrides_runpath=yes 19468 if test yes = "$with_gnu_ld"; then 19469 need_lib_prefix=no 19470 fi 19471 need_version=yes 19472 ;; 19473 19474sysv4 | sysv4.3*) 19475 version_type=linux # correct to gnu/linux during the next big refactor 19476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19477 soname_spec='$libname$release$shared_ext$major' 19478 shlibpath_var=LD_LIBRARY_PATH 19479 case $host_vendor in 19480 sni) 19481 shlibpath_overrides_runpath=no 19482 need_lib_prefix=no 19483 runpath_var=LD_RUN_PATH 19484 ;; 19485 siemens) 19486 need_lib_prefix=no 19487 ;; 19488 motorola) 19489 need_lib_prefix=no 19490 need_version=no 19491 shlibpath_overrides_runpath=no 19492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19493 ;; 19494 esac 19495 ;; 19496 19497sysv4*MP*) 19498 if test -d /usr/nec; then 19499 version_type=linux # correct to gnu/linux during the next big refactor 19500 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 19501 soname_spec='$libname$shared_ext.$major' 19502 shlibpath_var=LD_LIBRARY_PATH 19503 fi 19504 ;; 19505 19506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19507 version_type=sco 19508 need_lib_prefix=no 19509 need_version=no 19510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19511 soname_spec='$libname$release$shared_ext$major' 19512 shlibpath_var=LD_LIBRARY_PATH 19513 shlibpath_overrides_runpath=yes 19514 hardcode_into_libs=yes 19515 if test yes = "$with_gnu_ld"; then 19516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19517 else 19518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19519 case $host_os in 19520 sco3.2v5*) 19521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19522 ;; 19523 esac 19524 fi 19525 sys_lib_dlsearch_path_spec='/usr/lib' 19526 ;; 19527 19528tpf*) 19529 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19530 version_type=linux # correct to gnu/linux during the next big refactor 19531 need_lib_prefix=no 19532 need_version=no 19533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19534 shlibpath_var=LD_LIBRARY_PATH 19535 shlibpath_overrides_runpath=no 19536 hardcode_into_libs=yes 19537 ;; 19538 19539uts4*) 19540 version_type=linux # correct to gnu/linux during the next big refactor 19541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19542 soname_spec='$libname$release$shared_ext$major' 19543 shlibpath_var=LD_LIBRARY_PATH 19544 ;; 19545 19546*) 19547 dynamic_linker=no 19548 ;; 19549esac 19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19551$as_echo "$dynamic_linker" >&6; } 19552test no = "$dynamic_linker" && can_build_shared=no 19553 19554variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19555if test yes = "$GCC"; then 19556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19557fi 19558 19559if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19560 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19561fi 19562 19563if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19564 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19565fi 19566 19567# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19568configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19569 19570# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19571func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19572 19573# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19574configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19673$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19674hardcode_action= 19675if test -n "$hardcode_libdir_flag_spec" || 19676 test -n "$runpath_var" || 19677 test yes = "$hardcode_automatic"; then 19678 19679 # We can hardcode non-existent directories. 19680 if test no != "$hardcode_direct" && 19681 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19682 # have to relink, otherwise we might link with an installed library 19683 # when we should be linking with a yet-to-be-installed one 19684 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19685 test no != "$hardcode_minus_L"; then 19686 # Linking always hardcodes the temporary library directory. 19687 hardcode_action=relink 19688 else 19689 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19690 hardcode_action=immediate 19691 fi 19692else 19693 # We cannot hardcode anything, or else we can only hardcode existing 19694 # directories. 19695 hardcode_action=unsupported 19696fi 19697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19698$as_echo "$hardcode_action" >&6; } 19699 19700if test relink = "$hardcode_action" || 19701 test yes = "$inherit_rpath"; then 19702 # Fast installation is not supported 19703 enable_fast_install=no 19704elif test yes = "$shlibpath_overrides_runpath" || 19705 test no = "$enable_shared"; then 19706 # Fast installation is not necessary 19707 enable_fast_install=needless 19708fi 19709 19710 19711 19712 19713 19714 19715 if test yes != "$enable_dlopen"; then 19716 enable_dlopen=unknown 19717 enable_dlopen_self=unknown 19718 enable_dlopen_self_static=unknown 19719else 19720 lt_cv_dlopen=no 19721 lt_cv_dlopen_libs= 19722 19723 case $host_os in 19724 beos*) 19725 lt_cv_dlopen=load_add_on 19726 lt_cv_dlopen_libs= 19727 lt_cv_dlopen_self=yes 19728 ;; 19729 19730 mingw* | pw32* | cegcc*) 19731 lt_cv_dlopen=LoadLibrary 19732 lt_cv_dlopen_libs= 19733 ;; 19734 19735 cygwin*) 19736 lt_cv_dlopen=dlopen 19737 lt_cv_dlopen_libs= 19738 ;; 19739 19740 darwin*) 19741 # if libdl is installed we need to link against it 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19743$as_echo_n "checking for dlopen in -ldl... " >&6; } 19744if ${ac_cv_lib_dl_dlopen+:} false; then : 19745 $as_echo_n "(cached) " >&6 19746else 19747 ac_check_lib_save_LIBS=$LIBS 19748LIBS="-ldl $LIBS" 19749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19750/* end confdefs.h. */ 19751 19752/* Override any GCC internal prototype to avoid an error. 19753 Use char because int might match the return type of a GCC 19754 builtin and then its argument prototype would still apply. */ 19755#ifdef __cplusplus 19756extern "C" 19757#endif 19758char dlopen (); 19759int 19760main () 19761{ 19762return dlopen (); 19763 ; 19764 return 0; 19765} 19766_ACEOF 19767if ac_fn_c_try_link "$LINENO"; then : 19768 ac_cv_lib_dl_dlopen=yes 19769else 19770 ac_cv_lib_dl_dlopen=no 19771fi 19772rm -f core conftest.err conftest.$ac_objext \ 19773 conftest$ac_exeext conftest.$ac_ext 19774LIBS=$ac_check_lib_save_LIBS 19775fi 19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19777$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19778if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19779 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19780else 19781 19782 lt_cv_dlopen=dyld 19783 lt_cv_dlopen_libs= 19784 lt_cv_dlopen_self=yes 19785 19786fi 19787 19788 ;; 19789 19790 tpf*) 19791 # Don't try to run any link tests for TPF. We know it's impossible 19792 # because TPF is a cross-compiler, and we know how we open DSOs. 19793 lt_cv_dlopen=dlopen 19794 lt_cv_dlopen_libs= 19795 lt_cv_dlopen_self=no 19796 ;; 19797 19798 *) 19799 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19800if test "x$ac_cv_func_shl_load" = xyes; then : 19801 lt_cv_dlopen=shl_load 19802else 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19804$as_echo_n "checking for shl_load in -ldld... " >&6; } 19805if ${ac_cv_lib_dld_shl_load+:} false; then : 19806 $as_echo_n "(cached) " >&6 19807else 19808 ac_check_lib_save_LIBS=$LIBS 19809LIBS="-ldld $LIBS" 19810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19811/* end confdefs.h. */ 19812 19813/* Override any GCC internal prototype to avoid an error. 19814 Use char because int might match the return type of a GCC 19815 builtin and then its argument prototype would still apply. */ 19816#ifdef __cplusplus 19817extern "C" 19818#endif 19819char shl_load (); 19820int 19821main () 19822{ 19823return shl_load (); 19824 ; 19825 return 0; 19826} 19827_ACEOF 19828if ac_fn_c_try_link "$LINENO"; then : 19829 ac_cv_lib_dld_shl_load=yes 19830else 19831 ac_cv_lib_dld_shl_load=no 19832fi 19833rm -f core conftest.err conftest.$ac_objext \ 19834 conftest$ac_exeext conftest.$ac_ext 19835LIBS=$ac_check_lib_save_LIBS 19836fi 19837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19838$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19839if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19840 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19841else 19842 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19843if test "x$ac_cv_func_dlopen" = xyes; then : 19844 lt_cv_dlopen=dlopen 19845else 19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19847$as_echo_n "checking for dlopen in -ldl... " >&6; } 19848if ${ac_cv_lib_dl_dlopen+:} false; then : 19849 $as_echo_n "(cached) " >&6 19850else 19851 ac_check_lib_save_LIBS=$LIBS 19852LIBS="-ldl $LIBS" 19853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19854/* end confdefs.h. */ 19855 19856/* Override any GCC internal prototype to avoid an error. 19857 Use char because int might match the return type of a GCC 19858 builtin and then its argument prototype would still apply. */ 19859#ifdef __cplusplus 19860extern "C" 19861#endif 19862char dlopen (); 19863int 19864main () 19865{ 19866return dlopen (); 19867 ; 19868 return 0; 19869} 19870_ACEOF 19871if ac_fn_c_try_link "$LINENO"; then : 19872 ac_cv_lib_dl_dlopen=yes 19873else 19874 ac_cv_lib_dl_dlopen=no 19875fi 19876rm -f core conftest.err conftest.$ac_objext \ 19877 conftest$ac_exeext conftest.$ac_ext 19878LIBS=$ac_check_lib_save_LIBS 19879fi 19880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19881$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19882if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19884else 19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19886$as_echo_n "checking for dlopen in -lsvld... " >&6; } 19887if ${ac_cv_lib_svld_dlopen+:} false; then : 19888 $as_echo_n "(cached) " >&6 19889else 19890 ac_check_lib_save_LIBS=$LIBS 19891LIBS="-lsvld $LIBS" 19892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19893/* end confdefs.h. */ 19894 19895/* Override any GCC internal prototype to avoid an error. 19896 Use char because int might match the return type of a GCC 19897 builtin and then its argument prototype would still apply. */ 19898#ifdef __cplusplus 19899extern "C" 19900#endif 19901char dlopen (); 19902int 19903main () 19904{ 19905return dlopen (); 19906 ; 19907 return 0; 19908} 19909_ACEOF 19910if ac_fn_c_try_link "$LINENO"; then : 19911 ac_cv_lib_svld_dlopen=yes 19912else 19913 ac_cv_lib_svld_dlopen=no 19914fi 19915rm -f core conftest.err conftest.$ac_objext \ 19916 conftest$ac_exeext conftest.$ac_ext 19917LIBS=$ac_check_lib_save_LIBS 19918fi 19919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19920$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19921if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19922 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19923else 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19925$as_echo_n "checking for dld_link in -ldld... " >&6; } 19926if ${ac_cv_lib_dld_dld_link+:} false; then : 19927 $as_echo_n "(cached) " >&6 19928else 19929 ac_check_lib_save_LIBS=$LIBS 19930LIBS="-ldld $LIBS" 19931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19932/* end confdefs.h. */ 19933 19934/* Override any GCC internal prototype to avoid an error. 19935 Use char because int might match the return type of a GCC 19936 builtin and then its argument prototype would still apply. */ 19937#ifdef __cplusplus 19938extern "C" 19939#endif 19940char dld_link (); 19941int 19942main () 19943{ 19944return dld_link (); 19945 ; 19946 return 0; 19947} 19948_ACEOF 19949if ac_fn_c_try_link "$LINENO"; then : 19950 ac_cv_lib_dld_dld_link=yes 19951else 19952 ac_cv_lib_dld_dld_link=no 19953fi 19954rm -f core conftest.err conftest.$ac_objext \ 19955 conftest$ac_exeext conftest.$ac_ext 19956LIBS=$ac_check_lib_save_LIBS 19957fi 19958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19959$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19960if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19961 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19962fi 19963 19964 19965fi 19966 19967 19968fi 19969 19970 19971fi 19972 19973 19974fi 19975 19976 19977fi 19978 19979 ;; 19980 esac 19981 19982 if test no = "$lt_cv_dlopen"; then 19983 enable_dlopen=no 19984 else 19985 enable_dlopen=yes 19986 fi 19987 19988 case $lt_cv_dlopen in 19989 dlopen) 19990 save_CPPFLAGS=$CPPFLAGS 19991 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19992 19993 save_LDFLAGS=$LDFLAGS 19994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19995 19996 save_LIBS=$LIBS 19997 LIBS="$lt_cv_dlopen_libs $LIBS" 19998 19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20000$as_echo_n "checking whether a program can dlopen itself... " >&6; } 20001if ${lt_cv_dlopen_self+:} false; then : 20002 $as_echo_n "(cached) " >&6 20003else 20004 if test yes = "$cross_compiling"; then : 20005 lt_cv_dlopen_self=cross 20006else 20007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20008 lt_status=$lt_dlunknown 20009 cat > conftest.$ac_ext <<_LT_EOF 20010#line $LINENO "configure" 20011#include "confdefs.h" 20012 20013#if HAVE_DLFCN_H 20014#include <dlfcn.h> 20015#endif 20016 20017#include <stdio.h> 20018 20019#ifdef RTLD_GLOBAL 20020# define LT_DLGLOBAL RTLD_GLOBAL 20021#else 20022# ifdef DL_GLOBAL 20023# define LT_DLGLOBAL DL_GLOBAL 20024# else 20025# define LT_DLGLOBAL 0 20026# endif 20027#endif 20028 20029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20030 find out it does not work in some platform. */ 20031#ifndef LT_DLLAZY_OR_NOW 20032# ifdef RTLD_LAZY 20033# define LT_DLLAZY_OR_NOW RTLD_LAZY 20034# else 20035# ifdef DL_LAZY 20036# define LT_DLLAZY_OR_NOW DL_LAZY 20037# else 20038# ifdef RTLD_NOW 20039# define LT_DLLAZY_OR_NOW RTLD_NOW 20040# else 20041# ifdef DL_NOW 20042# define LT_DLLAZY_OR_NOW DL_NOW 20043# else 20044# define LT_DLLAZY_OR_NOW 0 20045# endif 20046# endif 20047# endif 20048# endif 20049#endif 20050 20051/* When -fvisibility=hidden is used, assume the code has been annotated 20052 correspondingly for the symbols needed. */ 20053#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20054int fnord () __attribute__((visibility("default"))); 20055#endif 20056 20057int fnord () { return 42; } 20058int main () 20059{ 20060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20061 int status = $lt_dlunknown; 20062 20063 if (self) 20064 { 20065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20066 else 20067 { 20068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20069 else puts (dlerror ()); 20070 } 20071 /* dlclose (self); */ 20072 } 20073 else 20074 puts (dlerror ()); 20075 20076 return status; 20077} 20078_LT_EOF 20079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20080 (eval $ac_link) 2>&5 20081 ac_status=$? 20082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20083 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20084 (./conftest; exit; ) >&5 2>/dev/null 20085 lt_status=$? 20086 case x$lt_status in 20087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20089 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20090 esac 20091 else : 20092 # compilation failed 20093 lt_cv_dlopen_self=no 20094 fi 20095fi 20096rm -fr conftest* 20097 20098 20099fi 20100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20101$as_echo "$lt_cv_dlopen_self" >&6; } 20102 20103 if test yes = "$lt_cv_dlopen_self"; then 20104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20106$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20107if ${lt_cv_dlopen_self_static+:} false; then : 20108 $as_echo_n "(cached) " >&6 20109else 20110 if test yes = "$cross_compiling"; then : 20111 lt_cv_dlopen_self_static=cross 20112else 20113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20114 lt_status=$lt_dlunknown 20115 cat > conftest.$ac_ext <<_LT_EOF 20116#line $LINENO "configure" 20117#include "confdefs.h" 20118 20119#if HAVE_DLFCN_H 20120#include <dlfcn.h> 20121#endif 20122 20123#include <stdio.h> 20124 20125#ifdef RTLD_GLOBAL 20126# define LT_DLGLOBAL RTLD_GLOBAL 20127#else 20128# ifdef DL_GLOBAL 20129# define LT_DLGLOBAL DL_GLOBAL 20130# else 20131# define LT_DLGLOBAL 0 20132# endif 20133#endif 20134 20135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20136 find out it does not work in some platform. */ 20137#ifndef LT_DLLAZY_OR_NOW 20138# ifdef RTLD_LAZY 20139# define LT_DLLAZY_OR_NOW RTLD_LAZY 20140# else 20141# ifdef DL_LAZY 20142# define LT_DLLAZY_OR_NOW DL_LAZY 20143# else 20144# ifdef RTLD_NOW 20145# define LT_DLLAZY_OR_NOW RTLD_NOW 20146# else 20147# ifdef DL_NOW 20148# define LT_DLLAZY_OR_NOW DL_NOW 20149# else 20150# define LT_DLLAZY_OR_NOW 0 20151# endif 20152# endif 20153# endif 20154# endif 20155#endif 20156 20157/* When -fvisibility=hidden is used, assume the code has been annotated 20158 correspondingly for the symbols needed. */ 20159#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20160int fnord () __attribute__((visibility("default"))); 20161#endif 20162 20163int fnord () { return 42; } 20164int main () 20165{ 20166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20167 int status = $lt_dlunknown; 20168 20169 if (self) 20170 { 20171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20172 else 20173 { 20174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20175 else puts (dlerror ()); 20176 } 20177 /* dlclose (self); */ 20178 } 20179 else 20180 puts (dlerror ()); 20181 20182 return status; 20183} 20184_LT_EOF 20185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20186 (eval $ac_link) 2>&5 20187 ac_status=$? 20188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20189 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20190 (./conftest; exit; ) >&5 2>/dev/null 20191 lt_status=$? 20192 case x$lt_status in 20193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20195 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 20196 esac 20197 else : 20198 # compilation failed 20199 lt_cv_dlopen_self_static=no 20200 fi 20201fi 20202rm -fr conftest* 20203 20204 20205fi 20206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 20207$as_echo "$lt_cv_dlopen_self_static" >&6; } 20208 fi 20209 20210 CPPFLAGS=$save_CPPFLAGS 20211 LDFLAGS=$save_LDFLAGS 20212 LIBS=$save_LIBS 20213 ;; 20214 esac 20215 20216 case $lt_cv_dlopen_self in 20217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20218 *) enable_dlopen_self=unknown ;; 20219 esac 20220 20221 case $lt_cv_dlopen_self_static in 20222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20223 *) enable_dlopen_self_static=unknown ;; 20224 esac 20225fi 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243striplib= 20244old_striplib= 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 20246$as_echo_n "checking whether stripping libraries is possible... " >&6; } 20247if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20248 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 20249 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20251$as_echo "yes" >&6; } 20252else 20253# FIXME - insert some real tests, host_os isn't really good enough 20254 case $host_os in 20255 darwin*) 20256 if test -n "$STRIP"; then 20257 striplib="$STRIP -x" 20258 old_striplib="$STRIP -S" 20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20260$as_echo "yes" >&6; } 20261 else 20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20263$as_echo "no" >&6; } 20264 fi 20265 ;; 20266 *) 20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20268$as_echo "no" >&6; } 20269 ;; 20270 esac 20271fi 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 # Report what library types will actually be built 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 20286$as_echo_n "checking if libtool supports shared libraries... " >&6; } 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 20288$as_echo "$can_build_shared" >&6; } 20289 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 20291$as_echo_n "checking whether to build shared libraries... " >&6; } 20292 test no = "$can_build_shared" && enable_shared=no 20293 20294 # On AIX, shared libraries and static libraries use the same namespace, and 20295 # are all built from PIC. 20296 case $host_os in 20297 aix3*) 20298 test yes = "$enable_shared" && enable_static=no 20299 if test -n "$RANLIB"; then 20300 archive_cmds="$archive_cmds~\$RANLIB \$lib" 20301 postinstall_cmds='$RANLIB $lib' 20302 fi 20303 ;; 20304 20305 aix[4-9]*) 20306 if test ia64 != "$host_cpu"; then 20307 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 20308 yes,aix,yes) ;; # shared object as lib.so file only 20309 yes,svr4,*) ;; # shared object as lib.so archive member only 20310 yes,*) enable_static=no ;; # shared object in lib.a archive as well 20311 esac 20312 fi 20313 ;; 20314 esac 20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 20316$as_echo "$enable_shared" >&6; } 20317 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 20319$as_echo_n "checking whether to build static libraries... " >&6; } 20320 # Make sure either enable_shared or enable_static is yes. 20321 test yes = "$enable_shared" || enable_static=yes 20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 20323$as_echo "$enable_static" >&6; } 20324 20325 20326 20327 20328fi 20329ac_ext=c 20330ac_cpp='$CPP $CPPFLAGS' 20331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20333ac_compiler_gnu=$ac_cv_c_compiler_gnu 20334 20335CC=$lt_save_CC 20336 20337 if test -n "$CXX" && ( test no != "$CXX" && 20338 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 20339 (test g++ != "$CXX"))); then 20340 ac_ext=cpp 20341ac_cpp='$CXXCPP $CPPFLAGS' 20342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 20346$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 20347if test -z "$CXXCPP"; then 20348 if ${ac_cv_prog_CXXCPP+:} false; then : 20349 $as_echo_n "(cached) " >&6 20350else 20351 # Double quotes because CXXCPP needs to be expanded 20352 for CXXCPP in "$CXX -E" "/lib/cpp" 20353 do 20354 ac_preproc_ok=false 20355for ac_cxx_preproc_warn_flag in '' yes 20356do 20357 # Use a header file that comes with gcc, so configuring glibc 20358 # with a fresh cross-compiler works. 20359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20360 # <limits.h> exists even on freestanding compilers. 20361 # On the NeXT, cc -E runs the code through the compiler's parser, 20362 # not just through cpp. "Syntax error" is here to catch this case. 20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20364/* end confdefs.h. */ 20365#ifdef __STDC__ 20366# include <limits.h> 20367#else 20368# include <assert.h> 20369#endif 20370 Syntax error 20371_ACEOF 20372if ac_fn_cxx_try_cpp "$LINENO"; then : 20373 20374else 20375 # Broken: fails on valid input. 20376continue 20377fi 20378rm -f conftest.err conftest.i conftest.$ac_ext 20379 20380 # OK, works on sane cases. Now check whether nonexistent headers 20381 # can be detected and how. 20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20383/* end confdefs.h. */ 20384#include <ac_nonexistent.h> 20385_ACEOF 20386if ac_fn_cxx_try_cpp "$LINENO"; then : 20387 # Broken: success on invalid input. 20388continue 20389else 20390 # Passes both tests. 20391ac_preproc_ok=: 20392break 20393fi 20394rm -f conftest.err conftest.i conftest.$ac_ext 20395 20396done 20397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20398rm -f conftest.i conftest.err conftest.$ac_ext 20399if $ac_preproc_ok; then : 20400 break 20401fi 20402 20403 done 20404 ac_cv_prog_CXXCPP=$CXXCPP 20405 20406fi 20407 CXXCPP=$ac_cv_prog_CXXCPP 20408else 20409 ac_cv_prog_CXXCPP=$CXXCPP 20410fi 20411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 20412$as_echo "$CXXCPP" >&6; } 20413ac_preproc_ok=false 20414for ac_cxx_preproc_warn_flag in '' yes 20415do 20416 # Use a header file that comes with gcc, so configuring glibc 20417 # with a fresh cross-compiler works. 20418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20419 # <limits.h> exists even on freestanding compilers. 20420 # On the NeXT, cc -E runs the code through the compiler's parser, 20421 # not just through cpp. "Syntax error" is here to catch this case. 20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20423/* end confdefs.h. */ 20424#ifdef __STDC__ 20425# include <limits.h> 20426#else 20427# include <assert.h> 20428#endif 20429 Syntax error 20430_ACEOF 20431if ac_fn_cxx_try_cpp "$LINENO"; then : 20432 20433else 20434 # Broken: fails on valid input. 20435continue 20436fi 20437rm -f conftest.err conftest.i conftest.$ac_ext 20438 20439 # OK, works on sane cases. Now check whether nonexistent headers 20440 # can be detected and how. 20441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20442/* end confdefs.h. */ 20443#include <ac_nonexistent.h> 20444_ACEOF 20445if ac_fn_cxx_try_cpp "$LINENO"; then : 20446 # Broken: success on invalid input. 20447continue 20448else 20449 # Passes both tests. 20450ac_preproc_ok=: 20451break 20452fi 20453rm -f conftest.err conftest.i conftest.$ac_ext 20454 20455done 20456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20457rm -f conftest.i conftest.err conftest.$ac_ext 20458if $ac_preproc_ok; then : 20459 20460else 20461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20463as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 20464See \`config.log' for more details" "$LINENO" 5; } 20465fi 20466 20467ac_ext=c 20468ac_cpp='$CPP $CPPFLAGS' 20469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20471ac_compiler_gnu=$ac_cv_c_compiler_gnu 20472 20473else 20474 _lt_caught_CXX_error=yes 20475fi 20476 20477ac_ext=cpp 20478ac_cpp='$CXXCPP $CPPFLAGS' 20479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20482 20483archive_cmds_need_lc_CXX=no 20484allow_undefined_flag_CXX= 20485always_export_symbols_CXX=no 20486archive_expsym_cmds_CXX= 20487compiler_needs_object_CXX=no 20488export_dynamic_flag_spec_CXX= 20489hardcode_direct_CXX=no 20490hardcode_direct_absolute_CXX=no 20491hardcode_libdir_flag_spec_CXX= 20492hardcode_libdir_separator_CXX= 20493hardcode_minus_L_CXX=no 20494hardcode_shlibpath_var_CXX=unsupported 20495hardcode_automatic_CXX=no 20496inherit_rpath_CXX=no 20497module_cmds_CXX= 20498module_expsym_cmds_CXX= 20499link_all_deplibs_CXX=unknown 20500old_archive_cmds_CXX=$old_archive_cmds 20501reload_flag_CXX=$reload_flag 20502reload_cmds_CXX=$reload_cmds 20503no_undefined_flag_CXX= 20504whole_archive_flag_spec_CXX= 20505enable_shared_with_static_runtimes_CXX=no 20506 20507# Source file extension for C++ test sources. 20508ac_ext=cpp 20509 20510# Object file extension for compiled C++ test sources. 20511objext=o 20512objext_CXX=$objext 20513 20514# No sense in running all these tests if we already determined that 20515# the CXX compiler isn't working. Some variables (like enable_shared) 20516# are currently assumed to apply to all compilers on this platform, 20517# and will be corrupted by setting them based on a non-working compiler. 20518if test yes != "$_lt_caught_CXX_error"; then 20519 # Code to be used in simple compile tests 20520 lt_simple_compile_test_code="int some_variable = 0;" 20521 20522 # Code to be used in simple link tests 20523 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 20524 20525 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 20526 20527 20528 20529 20530 20531 20532# If no C compiler was specified, use CC. 20533LTCC=${LTCC-"$CC"} 20534 20535# If no C compiler flags were specified, use CFLAGS. 20536LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20537 20538# Allow CC to be a program name with arguments. 20539compiler=$CC 20540 20541 20542 # save warnings/boilerplate of simple test code 20543 ac_outfile=conftest.$ac_objext 20544echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20545eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20546_lt_compiler_boilerplate=`cat conftest.err` 20547$RM conftest* 20548 20549 ac_outfile=conftest.$ac_objext 20550echo "$lt_simple_link_test_code" >conftest.$ac_ext 20551eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20552_lt_linker_boilerplate=`cat conftest.err` 20553$RM -r conftest* 20554 20555 20556 # Allow CC to be a program name with arguments. 20557 lt_save_CC=$CC 20558 lt_save_CFLAGS=$CFLAGS 20559 lt_save_LD=$LD 20560 lt_save_GCC=$GCC 20561 GCC=$GXX 20562 lt_save_with_gnu_ld=$with_gnu_ld 20563 lt_save_path_LD=$lt_cv_path_LD 20564 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20565 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20566 else 20567 $as_unset lt_cv_prog_gnu_ld 20568 fi 20569 if test -n "${lt_cv_path_LDCXX+set}"; then 20570 lt_cv_path_LD=$lt_cv_path_LDCXX 20571 else 20572 $as_unset lt_cv_path_LD 20573 fi 20574 test -z "${LDCXX+set}" || LD=$LDCXX 20575 CC=${CXX-"c++"} 20576 CFLAGS=$CXXFLAGS 20577 compiler=$CC 20578 compiler_CXX=$CC 20579 func_cc_basename $compiler 20580cc_basename=$func_cc_basename_result 20581 20582 20583 if test -n "$compiler"; then 20584 # We don't want -fno-exception when compiling C++ code, so set the 20585 # no_builtin_flag separately 20586 if test yes = "$GXX"; then 20587 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20588 else 20589 lt_prog_compiler_no_builtin_flag_CXX= 20590 fi 20591 20592 if test yes = "$GXX"; then 20593 # Set up default GNU C++ configuration 20594 20595 20596 20597# Check whether --with-gnu-ld was given. 20598if test "${with_gnu_ld+set}" = set; then : 20599 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 20600else 20601 with_gnu_ld=no 20602fi 20603 20604ac_prog=ld 20605if test yes = "$GCC"; then 20606 # Check if gcc -print-prog-name=ld gives a path. 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20608$as_echo_n "checking for ld used by $CC... " >&6; } 20609 case $host in 20610 *-*-mingw*) 20611 # gcc leaves a trailing carriage return, which upsets mingw 20612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20613 *) 20614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20615 esac 20616 case $ac_prog in 20617 # Accept absolute paths. 20618 [\\/]* | ?:[\\/]*) 20619 re_direlt='/[^/][^/]*/\.\./' 20620 # Canonicalize the pathname of ld 20621 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20622 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20623 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20624 done 20625 test -z "$LD" && LD=$ac_prog 20626 ;; 20627 "") 20628 # If it fails, then pretend we aren't using GCC. 20629 ac_prog=ld 20630 ;; 20631 *) 20632 # If it is relative, then search for the first ld in PATH. 20633 with_gnu_ld=unknown 20634 ;; 20635 esac 20636elif test yes = "$with_gnu_ld"; then 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20638$as_echo_n "checking for GNU ld... " >&6; } 20639else 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20641$as_echo_n "checking for non-GNU ld... " >&6; } 20642fi 20643if ${lt_cv_path_LD+:} false; then : 20644 $as_echo_n "(cached) " >&6 20645else 20646 if test -z "$LD"; then 20647 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 20648 for ac_dir in $PATH; do 20649 IFS=$lt_save_ifs 20650 test -z "$ac_dir" && ac_dir=. 20651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20652 lt_cv_path_LD=$ac_dir/$ac_prog 20653 # Check to see if the program is GNU ld. I'd rather use --version, 20654 # but apparently some variants of GNU ld only accept -v. 20655 # Break only if it was the GNU/non-GNU ld that we prefer. 20656 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20657 *GNU* | *'with BFD'*) 20658 test no != "$with_gnu_ld" && break 20659 ;; 20660 *) 20661 test yes != "$with_gnu_ld" && break 20662 ;; 20663 esac 20664 fi 20665 done 20666 IFS=$lt_save_ifs 20667else 20668 lt_cv_path_LD=$LD # Let the user override the test with a path. 20669fi 20670fi 20671 20672LD=$lt_cv_path_LD 20673if test -n "$LD"; then 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20675$as_echo "$LD" >&6; } 20676else 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20678$as_echo "no" >&6; } 20679fi 20680test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20682$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20683if ${lt_cv_prog_gnu_ld+:} false; then : 20684 $as_echo_n "(cached) " >&6 20685else 20686 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20687case `$LD -v 2>&1 </dev/null` in 20688*GNU* | *'with BFD'*) 20689 lt_cv_prog_gnu_ld=yes 20690 ;; 20691*) 20692 lt_cv_prog_gnu_ld=no 20693 ;; 20694esac 20695fi 20696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20697$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20698with_gnu_ld=$lt_cv_prog_gnu_ld 20699 20700 20701 20702 20703 20704 20705 20706 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20707 # archiving commands below assume that GNU ld is being used. 20708 if test yes = "$with_gnu_ld"; then 20709 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20710 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' 20711 20712 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20713 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20714 20715 # If archive_cmds runs LD, not CC, wlarc should be empty 20716 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20717 # investigate it a little bit more. (MM) 20718 wlarc='$wl' 20719 20720 # ancient GNU ld didn't support --whole-archive et. al. 20721 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20722 $GREP 'no-whole-archive' > /dev/null; then 20723 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20724 else 20725 whole_archive_flag_spec_CXX= 20726 fi 20727 else 20728 with_gnu_ld=no 20729 wlarc= 20730 20731 # A generic and very simple default shared library creation 20732 # command for GNU C++ for the case where it uses the native 20733 # linker, instead of GNU ld. If possible, this setting should 20734 # overridden to take advantage of the native linker features on 20735 # the platform it is being used on. 20736 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20737 fi 20738 20739 # Commands to make compiler produce verbose output that lists 20740 # what "hidden" libraries, object files and flags are used when 20741 # linking a shared library. 20742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20743 20744 else 20745 GXX=no 20746 with_gnu_ld=no 20747 wlarc= 20748 fi 20749 20750 # PORTME: fill in a description of your system's C++ link characteristics 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20752$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20753 ld_shlibs_CXX=yes 20754 case $host_os in 20755 aix3*) 20756 # FIXME: insert proper C++ library support 20757 ld_shlibs_CXX=no 20758 ;; 20759 aix[4-9]*) 20760 if test ia64 = "$host_cpu"; then 20761 # On IA64, the linker does run time linking by default, so we don't 20762 # have to do anything special. 20763 aix_use_runtimelinking=no 20764 exp_sym_flag='-Bexport' 20765 no_entry_flag= 20766 else 20767 aix_use_runtimelinking=no 20768 20769 # Test if we are trying to use run time linking or normal 20770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20771 # have runtime linking enabled, and use it for executables. 20772 # For shared libraries, we enable/disable runtime linking 20773 # depending on the kind of the shared library created - 20774 # when "with_aix_soname,aix_use_runtimelinking" is: 20775 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20776 # "aix,yes" lib.so shared, rtl:yes, for executables 20777 # lib.a static archive 20778 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20779 # lib.a(lib.so.V) shared, rtl:no, for executables 20780 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20781 # lib.a(lib.so.V) shared, rtl:no 20782 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20783 # lib.a static archive 20784 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20785 for ld_flag in $LDFLAGS; do 20786 case $ld_flag in 20787 *-brtl*) 20788 aix_use_runtimelinking=yes 20789 break 20790 ;; 20791 esac 20792 done 20793 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20794 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20795 # so we don't have lib.a shared libs to link our executables. 20796 # We have to force runtime linking in this case. 20797 aix_use_runtimelinking=yes 20798 LDFLAGS="$LDFLAGS -Wl,-brtl" 20799 fi 20800 ;; 20801 esac 20802 20803 exp_sym_flag='-bexport' 20804 no_entry_flag='-bnoentry' 20805 fi 20806 20807 # When large executables or shared objects are built, AIX ld can 20808 # have problems creating the table of contents. If linking a library 20809 # or program results in "error TOC overflow" add -mminimal-toc to 20810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20812 20813 archive_cmds_CXX='' 20814 hardcode_direct_CXX=yes 20815 hardcode_direct_absolute_CXX=yes 20816 hardcode_libdir_separator_CXX=':' 20817 link_all_deplibs_CXX=yes 20818 file_list_spec_CXX='$wl-f,' 20819 case $with_aix_soname,$aix_use_runtimelinking in 20820 aix,*) ;; # no import file 20821 svr4,* | *,yes) # use import file 20822 # The Import File defines what to hardcode. 20823 hardcode_direct_CXX=no 20824 hardcode_direct_absolute_CXX=no 20825 ;; 20826 esac 20827 20828 if test yes = "$GXX"; then 20829 case $host_os in aix4.[012]|aix4.[012].*) 20830 # We only want to do this on AIX 4.2 and lower, the check 20831 # below for broken collect2 doesn't work under 4.3+ 20832 collect2name=`$CC -print-prog-name=collect2` 20833 if test -f "$collect2name" && 20834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20835 then 20836 # We have reworked collect2 20837 : 20838 else 20839 # We have old collect2 20840 hardcode_direct_CXX=unsupported 20841 # It fails to find uninstalled libraries when the uninstalled 20842 # path is not listed in the libpath. Setting hardcode_minus_L 20843 # to unsupported forces relinking 20844 hardcode_minus_L_CXX=yes 20845 hardcode_libdir_flag_spec_CXX='-L$libdir' 20846 hardcode_libdir_separator_CXX= 20847 fi 20848 esac 20849 shared_flag='-shared' 20850 if test yes = "$aix_use_runtimelinking"; then 20851 shared_flag=$shared_flag' $wl-G' 20852 fi 20853 # Need to ensure runtime linking is disabled for the traditional 20854 # shared library, or the linker may eventually find shared libraries 20855 # /with/ Import File - we do not want to mix them. 20856 shared_flag_aix='-shared' 20857 shared_flag_svr4='-shared $wl-G' 20858 else 20859 # not using gcc 20860 if test ia64 = "$host_cpu"; then 20861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20862 # chokes on -Wl,-G. The following line is correct: 20863 shared_flag='-G' 20864 else 20865 if test yes = "$aix_use_runtimelinking"; then 20866 shared_flag='$wl-G' 20867 else 20868 shared_flag='$wl-bM:SRE' 20869 fi 20870 shared_flag_aix='$wl-bM:SRE' 20871 shared_flag_svr4='$wl-G' 20872 fi 20873 fi 20874 20875 export_dynamic_flag_spec_CXX='$wl-bexpall' 20876 # It seems that -bexpall does not export symbols beginning with 20877 # underscore (_), so it is better to generate a list of symbols to 20878 # export. 20879 always_export_symbols_CXX=yes 20880 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20881 # Warning - without using the other runtime loading flags (-brtl), 20882 # -berok will link without error, but may produce a broken library. 20883 # The "-G" linker flag allows undefined symbols. 20884 no_undefined_flag_CXX='-bernotok' 20885 # Determine the default libpath from the value encoded in an empty 20886 # executable. 20887 if test set = "${lt_cv_aix_libpath+set}"; then 20888 aix_libpath=$lt_cv_aix_libpath 20889else 20890 if ${lt_cv_aix_libpath__CXX+:} false; then : 20891 $as_echo_n "(cached) " >&6 20892else 20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20894/* end confdefs.h. */ 20895 20896int 20897main () 20898{ 20899 20900 ; 20901 return 0; 20902} 20903_ACEOF 20904if ac_fn_cxx_try_link "$LINENO"; then : 20905 20906 lt_aix_libpath_sed=' 20907 /Import File Strings/,/^$/ { 20908 /^0/ { 20909 s/^0 *\([^ ]*\) *$/\1/ 20910 p 20911 } 20912 }' 20913 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20914 # Check for a 64-bit object if we didn't find anything. 20915 if test -z "$lt_cv_aix_libpath__CXX"; then 20916 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20917 fi 20918fi 20919rm -f core conftest.err conftest.$ac_objext \ 20920 conftest$ac_exeext conftest.$ac_ext 20921 if test -z "$lt_cv_aix_libpath__CXX"; then 20922 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20923 fi 20924 20925fi 20926 20927 aix_libpath=$lt_cv_aix_libpath__CXX 20928fi 20929 20930 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20931 20932 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20933 else 20934 if test ia64 = "$host_cpu"; then 20935 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 20936 allow_undefined_flag_CXX="-z nodefs" 20937 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" 20938 else 20939 # Determine the default libpath from the value encoded in an 20940 # empty executable. 20941 if test set = "${lt_cv_aix_libpath+set}"; then 20942 aix_libpath=$lt_cv_aix_libpath 20943else 20944 if ${lt_cv_aix_libpath__CXX+:} false; then : 20945 $as_echo_n "(cached) " >&6 20946else 20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20948/* end confdefs.h. */ 20949 20950int 20951main () 20952{ 20953 20954 ; 20955 return 0; 20956} 20957_ACEOF 20958if ac_fn_cxx_try_link "$LINENO"; then : 20959 20960 lt_aix_libpath_sed=' 20961 /Import File Strings/,/^$/ { 20962 /^0/ { 20963 s/^0 *\([^ ]*\) *$/\1/ 20964 p 20965 } 20966 }' 20967 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20968 # Check for a 64-bit object if we didn't find anything. 20969 if test -z "$lt_cv_aix_libpath__CXX"; then 20970 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20971 fi 20972fi 20973rm -f core conftest.err conftest.$ac_objext \ 20974 conftest$ac_exeext conftest.$ac_ext 20975 if test -z "$lt_cv_aix_libpath__CXX"; then 20976 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20977 fi 20978 20979fi 20980 20981 aix_libpath=$lt_cv_aix_libpath__CXX 20982fi 20983 20984 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20985 # Warning - without using the other run time loading flags, 20986 # -berok will link without error, but may produce a broken library. 20987 no_undefined_flag_CXX=' $wl-bernotok' 20988 allow_undefined_flag_CXX=' $wl-berok' 20989 if test yes = "$with_gnu_ld"; then 20990 # We only use this code for GNU lds that support --whole-archive. 20991 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20992 else 20993 # Exported symbols can be pulled into shared objects from archives 20994 whole_archive_flag_spec_CXX='$convenience' 20995 fi 20996 archive_cmds_need_lc_CXX=yes 20997 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20998 # -brtl affects multiple linker settings, -berok does not and is overridden later 20999 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 21000 if test svr4 != "$with_aix_soname"; then 21001 # This is similar to how AIX traditionally builds its shared 21002 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 21003 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 21004 fi 21005 if test aix != "$with_aix_soname"; then 21006 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 21007 else 21008 # used by -dlpreopen to get the symbols 21009 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 21010 fi 21011 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 21012 fi 21013 fi 21014 ;; 21015 21016 beos*) 21017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 21018 allow_undefined_flag_CXX=unsupported 21019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 21020 # support --undefined. This deserves some investigation. FIXME 21021 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21022 else 21023 ld_shlibs_CXX=no 21024 fi 21025 ;; 21026 21027 chorus*) 21028 case $cc_basename in 21029 *) 21030 # FIXME: insert proper C++ library support 21031 ld_shlibs_CXX=no 21032 ;; 21033 esac 21034 ;; 21035 21036 cygwin* | mingw* | pw32* | cegcc*) 21037 case $GXX,$cc_basename in 21038 ,cl* | no,cl*) 21039 # Native MSVC 21040 # hardcode_libdir_flag_spec is actually meaningless, as there is 21041 # no search path for DLLs. 21042 hardcode_libdir_flag_spec_CXX=' ' 21043 allow_undefined_flag_CXX=unsupported 21044 always_export_symbols_CXX=yes 21045 file_list_spec_CXX='@' 21046 # Tell ltmain to make .lib files, not .a files. 21047 libext=lib 21048 # Tell ltmain to make .dll files, not .so files. 21049 shrext_cmds=.dll 21050 # FIXME: Setting linknames here is a bad hack. 21051 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 21052 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 21053 cp "$export_symbols" "$output_objdir/$soname.def"; 21054 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 21055 else 21056 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 21057 fi~ 21058 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 21059 linknames=' 21060 # The linker will not automatically build a static lib if we build a DLL. 21061 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 21062 enable_shared_with_static_runtimes_CXX=yes 21063 # Don't use ranlib 21064 old_postinstall_cmds_CXX='chmod 644 $oldlib' 21065 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 21066 lt_tool_outputfile="@TOOL_OUTPUT@"~ 21067 case $lt_outputfile in 21068 *.exe|*.EXE) ;; 21069 *) 21070 lt_outputfile=$lt_outputfile.exe 21071 lt_tool_outputfile=$lt_tool_outputfile.exe 21072 ;; 21073 esac~ 21074 func_to_tool_file "$lt_outputfile"~ 21075 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 21076 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 21077 $RM "$lt_outputfile.manifest"; 21078 fi' 21079 ;; 21080 *) 21081 # g++ 21082 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 21083 # as there is no search path for DLLs. 21084 hardcode_libdir_flag_spec_CXX='-L$libdir' 21085 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 21086 allow_undefined_flag_CXX=unsupported 21087 always_export_symbols_CXX=no 21088 enable_shared_with_static_runtimes_CXX=yes 21089 21090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 21091 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' 21092 # If the export-symbols file already is a .def file, use it as 21093 # is; otherwise, prepend EXPORTS... 21094 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 21095 cp $export_symbols $output_objdir/$soname.def; 21096 else 21097 echo EXPORTS > $output_objdir/$soname.def; 21098 cat $export_symbols >> $output_objdir/$soname.def; 21099 fi~ 21100 $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' 21101 else 21102 ld_shlibs_CXX=no 21103 fi 21104 ;; 21105 esac 21106 ;; 21107 darwin* | rhapsody*) 21108 21109 21110 archive_cmds_need_lc_CXX=no 21111 hardcode_direct_CXX=no 21112 hardcode_automatic_CXX=yes 21113 hardcode_shlibpath_var_CXX=unsupported 21114 if test yes = "$lt_cv_ld_force_load"; then 21115 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\"`' 21116 21117 else 21118 whole_archive_flag_spec_CXX='' 21119 fi 21120 link_all_deplibs_CXX=yes 21121 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 21122 case $cc_basename in 21123 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 21124 *) _lt_dar_can_shared=$GCC ;; 21125 esac 21126 if test yes = "$_lt_dar_can_shared"; then 21127 output_verbose_link_cmd=func_echo_all 21128 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" 21129 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 21130 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" 21131 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" 21132 if test yes != "$lt_cv_apple_cc_single_mod"; then 21133 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" 21134 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" 21135 fi 21136 21137 else 21138 ld_shlibs_CXX=no 21139 fi 21140 21141 ;; 21142 21143 os2*) 21144 hardcode_libdir_flag_spec_CXX='-L$libdir' 21145 hardcode_minus_L_CXX=yes 21146 allow_undefined_flag_CXX=unsupported 21147 shrext_cmds=.dll 21148 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21151 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21152 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 21153 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21154 emximp -o $lib $output_objdir/$libname.def' 21155 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21158 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21159 prefix_cmds="$SED"~ 21160 if test EXPORTS = "`$SED 1q $export_symbols`"; then 21161 prefix_cmds="$prefix_cmds -e 1d"; 21162 fi~ 21163 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 21164 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 21165 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21166 emximp -o $lib $output_objdir/$libname.def' 21167 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 21168 enable_shared_with_static_runtimes_CXX=yes 21169 ;; 21170 21171 dgux*) 21172 case $cc_basename in 21173 ec++*) 21174 # FIXME: insert proper C++ library support 21175 ld_shlibs_CXX=no 21176 ;; 21177 ghcx*) 21178 # Green Hills C++ Compiler 21179 # FIXME: insert proper C++ library support 21180 ld_shlibs_CXX=no 21181 ;; 21182 *) 21183 # FIXME: insert proper C++ library support 21184 ld_shlibs_CXX=no 21185 ;; 21186 esac 21187 ;; 21188 21189 freebsd2.*) 21190 # C++ shared libraries reported to be fairly broken before 21191 # switch to ELF 21192 ld_shlibs_CXX=no 21193 ;; 21194 21195 freebsd-elf*) 21196 archive_cmds_need_lc_CXX=no 21197 ;; 21198 21199 freebsd* | dragonfly*) 21200 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 21201 # conventions 21202 ld_shlibs_CXX=yes 21203 ;; 21204 21205 haiku*) 21206 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21207 link_all_deplibs_CXX=yes 21208 ;; 21209 21210 hpux9*) 21211 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 21212 hardcode_libdir_separator_CXX=: 21213 export_dynamic_flag_spec_CXX='$wl-E' 21214 hardcode_direct_CXX=yes 21215 hardcode_minus_L_CXX=yes # Not in the search PATH, 21216 # but as the default 21217 # location of the library. 21218 21219 case $cc_basename in 21220 CC*) 21221 # FIXME: insert proper C++ library support 21222 ld_shlibs_CXX=no 21223 ;; 21224 aCC*) 21225 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21226 # Commands to make compiler produce verbose output that lists 21227 # what "hidden" libraries, object files and flags are used when 21228 # linking a shared library. 21229 # 21230 # There doesn't appear to be a way to prevent this compiler from 21231 # explicitly linking system object files so we need to strip them 21232 # from the output so that they don't get included in the library 21233 # dependencies. 21234 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"' 21235 ;; 21236 *) 21237 if test yes = "$GXX"; then 21238 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21239 else 21240 # FIXME: insert proper C++ library support 21241 ld_shlibs_CXX=no 21242 fi 21243 ;; 21244 esac 21245 ;; 21246 21247 hpux10*|hpux11*) 21248 if test no = "$with_gnu_ld"; then 21249 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 21250 hardcode_libdir_separator_CXX=: 21251 21252 case $host_cpu in 21253 hppa*64*|ia64*) 21254 ;; 21255 *) 21256 export_dynamic_flag_spec_CXX='$wl-E' 21257 ;; 21258 esac 21259 fi 21260 case $host_cpu in 21261 hppa*64*|ia64*) 21262 hardcode_direct_CXX=no 21263 hardcode_shlibpath_var_CXX=no 21264 ;; 21265 *) 21266 hardcode_direct_CXX=yes 21267 hardcode_direct_absolute_CXX=yes 21268 hardcode_minus_L_CXX=yes # Not in the search PATH, 21269 # but as the default 21270 # location of the library. 21271 ;; 21272 esac 21273 21274 case $cc_basename in 21275 CC*) 21276 # FIXME: insert proper C++ library support 21277 ld_shlibs_CXX=no 21278 ;; 21279 aCC*) 21280 case $host_cpu in 21281 hppa*64*) 21282 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21283 ;; 21284 ia64*) 21285 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21286 ;; 21287 *) 21288 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21289 ;; 21290 esac 21291 # Commands to make compiler produce verbose output that lists 21292 # what "hidden" libraries, object files and flags are used when 21293 # linking a shared library. 21294 # 21295 # There doesn't appear to be a way to prevent this compiler from 21296 # explicitly linking system object files so we need to strip them 21297 # from the output so that they don't get included in the library 21298 # dependencies. 21299 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"' 21300 ;; 21301 *) 21302 if test yes = "$GXX"; then 21303 if test no = "$with_gnu_ld"; then 21304 case $host_cpu in 21305 hppa*64*) 21306 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21307 ;; 21308 ia64*) 21309 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21310 ;; 21311 *) 21312 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' 21313 ;; 21314 esac 21315 fi 21316 else 21317 # FIXME: insert proper C++ library support 21318 ld_shlibs_CXX=no 21319 fi 21320 ;; 21321 esac 21322 ;; 21323 21324 interix[3-9]*) 21325 hardcode_direct_CXX=no 21326 hardcode_shlibpath_var_CXX=no 21327 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21328 export_dynamic_flag_spec_CXX='$wl-E' 21329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 21330 # Instead, shared libraries are loaded at an image base (0x10000000 by 21331 # default) and relocated if they conflict, which is a slow very memory 21332 # consuming and fragmenting process. To avoid this, we pick a random, 21333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 21334 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 21335 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' 21336 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' 21337 ;; 21338 irix5* | irix6*) 21339 case $cc_basename in 21340 CC*) 21341 # SGI C++ 21342 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' 21343 21344 # Archives containing C++ object files must be created using 21345 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 21346 # necessary to make sure instantiated templates are included 21347 # in the archive. 21348 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 21349 ;; 21350 *) 21351 if test yes = "$GXX"; then 21352 if test no = "$with_gnu_ld"; then 21353 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 21354 else 21355 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' 21356 fi 21357 fi 21358 link_all_deplibs_CXX=yes 21359 ;; 21360 esac 21361 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21362 hardcode_libdir_separator_CXX=: 21363 inherit_rpath_CXX=yes 21364 ;; 21365 21366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21367 case $cc_basename in 21368 KCC*) 21369 # Kuck and Associates, Inc. (KAI) C++ Compiler 21370 21371 # KCC will only create a shared library if the output file 21372 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21373 # to its proper name (with version) after linking. 21374 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' 21375 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' 21376 # Commands to make compiler produce verbose output that lists 21377 # what "hidden" libraries, object files and flags are used when 21378 # linking a shared library. 21379 # 21380 # There doesn't appear to be a way to prevent this compiler from 21381 # explicitly linking system object files so we need to strip them 21382 # from the output so that they don't get included in the library 21383 # dependencies. 21384 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"' 21385 21386 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21387 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21388 21389 # Archives containing C++ object files must be created using 21390 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 21391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 21392 ;; 21393 icpc* | ecpc* ) 21394 # Intel C++ 21395 with_gnu_ld=yes 21396 # version 8.0 and above of icpc choke on multiply defined symbols 21397 # if we add $predep_objects and $postdep_objects, however 7.1 and 21398 # earlier do not add the objects themselves. 21399 case `$CC -V 2>&1` in 21400 *"Version 7."*) 21401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21402 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' 21403 ;; 21404 *) # Version 8.0 or newer 21405 tmp_idyn= 21406 case $host_cpu in 21407 ia64*) tmp_idyn=' -i_dynamic';; 21408 esac 21409 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21410 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' 21411 ;; 21412 esac 21413 archive_cmds_need_lc_CXX=no 21414 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21415 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21416 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 21417 ;; 21418 pgCC* | pgcpp*) 21419 # Portland Group C++ compiler 21420 case `$CC -V` in 21421 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 21422 prelink_cmds_CXX='tpldir=Template.dir~ 21423 rm -rf $tpldir~ 21424 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 21425 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 21426 old_archive_cmds_CXX='tpldir=Template.dir~ 21427 rm -rf $tpldir~ 21428 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 21429 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 21430 $RANLIB $oldlib' 21431 archive_cmds_CXX='tpldir=Template.dir~ 21432 rm -rf $tpldir~ 21433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 21434 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21435 archive_expsym_cmds_CXX='tpldir=Template.dir~ 21436 rm -rf $tpldir~ 21437 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 21438 $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' 21439 ;; 21440 *) # Version 6 and above use weak symbols 21441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21442 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' 21443 ;; 21444 esac 21445 21446 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 21447 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21448 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' 21449 ;; 21450 cxx*) 21451 # Compaq C++ 21452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21453 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' 21454 21455 runpath_var=LD_RUN_PATH 21456 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21457 hardcode_libdir_separator_CXX=: 21458 21459 # Commands to make compiler produce verbose output that lists 21460 # what "hidden" libraries, object files and flags are used when 21461 # linking a shared library. 21462 # 21463 # There doesn't appear to be a way to prevent this compiler from 21464 # explicitly linking system object files so we need to strip them 21465 # from the output so that they don't get included in the library 21466 # dependencies. 21467 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' 21468 ;; 21469 xl* | mpixl* | bgxl*) 21470 # IBM XL 8.0 on PPC, with GNU ld 21471 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21472 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21473 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21474 if test yes = "$supports_anon_versioning"; then 21475 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 21476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 21477 echo "local: *; };" >> $output_objdir/$libname.ver~ 21478 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 21479 fi 21480 ;; 21481 *) 21482 case `$CC -V 2>&1 | sed 5q` in 21483 *Sun\ C*) 21484 # Sun C++ 5.9 21485 no_undefined_flag_CXX=' -zdefs' 21486 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21487 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' 21488 hardcode_libdir_flag_spec_CXX='-R$libdir' 21489 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' 21490 compiler_needs_object_CXX=yes 21491 21492 # Not sure whether something based on 21493 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 21494 # would be better. 21495 output_verbose_link_cmd='func_echo_all' 21496 21497 # Archives containing C++ object files must be created using 21498 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21499 # necessary to make sure instantiated templates are included 21500 # in the archive. 21501 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21502 ;; 21503 esac 21504 ;; 21505 esac 21506 ;; 21507 21508 lynxos*) 21509 # FIXME: insert proper C++ library support 21510 ld_shlibs_CXX=no 21511 ;; 21512 21513 m88k*) 21514 # FIXME: insert proper C++ library support 21515 ld_shlibs_CXX=no 21516 ;; 21517 21518 mvs*) 21519 case $cc_basename in 21520 cxx*) 21521 # FIXME: insert proper C++ library support 21522 ld_shlibs_CXX=no 21523 ;; 21524 *) 21525 # FIXME: insert proper C++ library support 21526 ld_shlibs_CXX=no 21527 ;; 21528 esac 21529 ;; 21530 21531 netbsd*) 21532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21533 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 21534 wlarc= 21535 hardcode_libdir_flag_spec_CXX='-R$libdir' 21536 hardcode_direct_CXX=yes 21537 hardcode_shlibpath_var_CXX=no 21538 fi 21539 # Workaround some broken pre-1.5 toolchains 21540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 21541 ;; 21542 21543 *nto* | *qnx*) 21544 ld_shlibs_CXX=yes 21545 ;; 21546 21547 openbsd* | bitrig*) 21548 if test -f /usr/libexec/ld.so; then 21549 hardcode_direct_CXX=yes 21550 hardcode_shlibpath_var_CXX=no 21551 hardcode_direct_absolute_CXX=yes 21552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21553 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 21555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 21556 export_dynamic_flag_spec_CXX='$wl-E' 21557 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 21558 fi 21559 output_verbose_link_cmd=func_echo_all 21560 else 21561 ld_shlibs_CXX=no 21562 fi 21563 ;; 21564 21565 osf3* | osf4* | osf5*) 21566 case $cc_basename in 21567 KCC*) 21568 # Kuck and Associates, Inc. (KAI) C++ Compiler 21569 21570 # KCC will only create a shared library if the output file 21571 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21572 # to its proper name (with version) after linking. 21573 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' 21574 21575 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21576 hardcode_libdir_separator_CXX=: 21577 21578 # Archives containing C++ object files must be created using 21579 # the KAI C++ compiler. 21580 case $host in 21581 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 21582 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 21583 esac 21584 ;; 21585 RCC*) 21586 # Rational C++ 2.4.1 21587 # FIXME: insert proper C++ library support 21588 ld_shlibs_CXX=no 21589 ;; 21590 cxx*) 21591 case $host in 21592 osf3*) 21593 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21594 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' 21595 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21596 ;; 21597 *) 21598 allow_undefined_flag_CXX=' -expect_unresolved \*' 21599 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' 21600 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21601 echo "-hidden">> $lib.exp~ 21602 $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~ 21603 $RM $lib.exp' 21604 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21605 ;; 21606 esac 21607 21608 hardcode_libdir_separator_CXX=: 21609 21610 # Commands to make compiler produce verbose output that lists 21611 # what "hidden" libraries, object files and flags are used when 21612 # linking a shared library. 21613 # 21614 # There doesn't appear to be a way to prevent this compiler from 21615 # explicitly linking system object files so we need to strip them 21616 # from the output so that they don't get included in the library 21617 # dependencies. 21618 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"' 21619 ;; 21620 *) 21621 if test yes,no = "$GXX,$with_gnu_ld"; then 21622 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21623 case $host in 21624 osf3*) 21625 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' 21626 ;; 21627 *) 21628 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' 21629 ;; 21630 esac 21631 21632 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21633 hardcode_libdir_separator_CXX=: 21634 21635 # Commands to make compiler produce verbose output that lists 21636 # what "hidden" libraries, object files and flags are used when 21637 # linking a shared library. 21638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21639 21640 else 21641 # FIXME: insert proper C++ library support 21642 ld_shlibs_CXX=no 21643 fi 21644 ;; 21645 esac 21646 ;; 21647 21648 psos*) 21649 # FIXME: insert proper C++ library support 21650 ld_shlibs_CXX=no 21651 ;; 21652 21653 sunos4*) 21654 case $cc_basename in 21655 CC*) 21656 # Sun C++ 4.x 21657 # FIXME: insert proper C++ library support 21658 ld_shlibs_CXX=no 21659 ;; 21660 lcc*) 21661 # Lucid 21662 # FIXME: insert proper C++ library support 21663 ld_shlibs_CXX=no 21664 ;; 21665 *) 21666 # FIXME: insert proper C++ library support 21667 ld_shlibs_CXX=no 21668 ;; 21669 esac 21670 ;; 21671 21672 solaris*) 21673 case $cc_basename in 21674 CC* | sunCC*) 21675 # Sun C++ 4.2, 5.x and Centerline C++ 21676 archive_cmds_need_lc_CXX=yes 21677 no_undefined_flag_CXX=' -zdefs' 21678 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21680 $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' 21681 21682 hardcode_libdir_flag_spec_CXX='-R$libdir' 21683 hardcode_shlibpath_var_CXX=no 21684 case $host_os in 21685 solaris2.[0-5] | solaris2.[0-5].*) ;; 21686 *) 21687 # The compiler driver will combine and reorder linker options, 21688 # but understands '-z linker_flag'. 21689 # Supported since Solaris 2.6 (maybe 2.5.1?) 21690 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21691 ;; 21692 esac 21693 link_all_deplibs_CXX=yes 21694 21695 output_verbose_link_cmd='func_echo_all' 21696 21697 # Archives containing C++ object files must be created using 21698 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21699 # necessary to make sure instantiated templates are included 21700 # in the archive. 21701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21702 ;; 21703 gcx*) 21704 # Green Hills C++ Compiler 21705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21706 21707 # The C++ compiler must be used to create the archive. 21708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21709 ;; 21710 *) 21711 # GNU C++ compiler with Solaris linker 21712 if test yes,no = "$GXX,$with_gnu_ld"; then 21713 no_undefined_flag_CXX=' $wl-z ${wl}defs' 21714 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21715 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21717 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21718 21719 # Commands to make compiler produce verbose output that lists 21720 # what "hidden" libraries, object files and flags are used when 21721 # linking a shared library. 21722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21723 else 21724 # g++ 2.7 appears to require '-G' NOT '-shared' on this 21725 # platform. 21726 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21728 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21729 21730 # Commands to make compiler produce verbose output that lists 21731 # what "hidden" libraries, object files and flags are used when 21732 # linking a shared library. 21733 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21734 fi 21735 21736 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 21737 case $host_os in 21738 solaris2.[0-5] | solaris2.[0-5].*) ;; 21739 *) 21740 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21741 ;; 21742 esac 21743 fi 21744 ;; 21745 esac 21746 ;; 21747 21748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21749 no_undefined_flag_CXX='$wl-z,text' 21750 archive_cmds_need_lc_CXX=no 21751 hardcode_shlibpath_var_CXX=no 21752 runpath_var='LD_RUN_PATH' 21753 21754 case $cc_basename in 21755 CC*) 21756 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21757 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21758 ;; 21759 *) 21760 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21761 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21762 ;; 21763 esac 21764 ;; 21765 21766 sysv5* | sco3.2v5* | sco5v6*) 21767 # Note: We CANNOT use -z defs as we might desire, because we do not 21768 # link with -lc, and that would cause any symbols used from libc to 21769 # always be unresolved, which means just about no library would 21770 # ever link correctly. If we're not using GNU ld we use -z text 21771 # though, which does catch some bad symbols but isn't as heavy-handed 21772 # as -z defs. 21773 no_undefined_flag_CXX='$wl-z,text' 21774 allow_undefined_flag_CXX='$wl-z,nodefs' 21775 archive_cmds_need_lc_CXX=no 21776 hardcode_shlibpath_var_CXX=no 21777 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 21778 hardcode_libdir_separator_CXX=':' 21779 link_all_deplibs_CXX=yes 21780 export_dynamic_flag_spec_CXX='$wl-Bexport' 21781 runpath_var='LD_RUN_PATH' 21782 21783 case $cc_basename in 21784 CC*) 21785 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21786 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21787 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21788 '"$old_archive_cmds_CXX" 21789 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21790 '"$reload_cmds_CXX" 21791 ;; 21792 *) 21793 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21794 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21795 ;; 21796 esac 21797 ;; 21798 21799 tandem*) 21800 case $cc_basename in 21801 NCC*) 21802 # NonStop-UX NCC 3.20 21803 # FIXME: insert proper C++ library support 21804 ld_shlibs_CXX=no 21805 ;; 21806 *) 21807 # FIXME: insert proper C++ library support 21808 ld_shlibs_CXX=no 21809 ;; 21810 esac 21811 ;; 21812 21813 vxworks*) 21814 # FIXME: insert proper C++ library support 21815 ld_shlibs_CXX=no 21816 ;; 21817 21818 *) 21819 # FIXME: insert proper C++ library support 21820 ld_shlibs_CXX=no 21821 ;; 21822 esac 21823 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21825$as_echo "$ld_shlibs_CXX" >&6; } 21826 test no = "$ld_shlibs_CXX" && can_build_shared=no 21827 21828 GCC_CXX=$GXX 21829 LD_CXX=$LD 21830 21831 ## CAVEAT EMPTOR: 21832 ## There is no encapsulation within the following macros, do not change 21833 ## the running order or otherwise move them around unless you know exactly 21834 ## what you are doing... 21835 # Dependencies to place before and after the object being linked: 21836predep_objects_CXX= 21837postdep_objects_CXX= 21838predeps_CXX= 21839postdeps_CXX= 21840compiler_lib_search_path_CXX= 21841 21842cat > conftest.$ac_ext <<_LT_EOF 21843class Foo 21844{ 21845public: 21846 Foo (void) { a = 0; } 21847private: 21848 int a; 21849}; 21850_LT_EOF 21851 21852 21853_lt_libdeps_save_CFLAGS=$CFLAGS 21854case "$CC $CFLAGS " in #( 21855*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21856*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21857*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21858esac 21859 21860if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21861 (eval $ac_compile) 2>&5 21862 ac_status=$? 21863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21864 test $ac_status = 0; }; then 21865 # Parse the compiler output and extract the necessary 21866 # objects, libraries and library flags. 21867 21868 # Sentinel used to keep track of whether or not we are before 21869 # the conftest object file. 21870 pre_test_object_deps_done=no 21871 21872 for p in `eval "$output_verbose_link_cmd"`; do 21873 case $prev$p in 21874 21875 -L* | -R* | -l*) 21876 # Some compilers place space between "-{L,R}" and the path. 21877 # Remove the space. 21878 if test x-L = "$p" || 21879 test x-R = "$p"; then 21880 prev=$p 21881 continue 21882 fi 21883 21884 # Expand the sysroot to ease extracting the directories later. 21885 if test -z "$prev"; then 21886 case $p in 21887 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 21888 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 21889 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 21890 esac 21891 fi 21892 case $p in 21893 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 21894 esac 21895 if test no = "$pre_test_object_deps_done"; then 21896 case $prev in 21897 -L | -R) 21898 # Internal compiler library paths should come after those 21899 # provided the user. The postdeps already come after the 21900 # user supplied libs so there is no need to process them. 21901 if test -z "$compiler_lib_search_path_CXX"; then 21902 compiler_lib_search_path_CXX=$prev$p 21903 else 21904 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 21905 fi 21906 ;; 21907 # The "-l" case would never come before the object being 21908 # linked, so don't bother handling this case. 21909 esac 21910 else 21911 if test -z "$postdeps_CXX"; then 21912 postdeps_CXX=$prev$p 21913 else 21914 postdeps_CXX="${postdeps_CXX} $prev$p" 21915 fi 21916 fi 21917 prev= 21918 ;; 21919 21920 *.lto.$objext) ;; # Ignore GCC LTO objects 21921 *.$objext) 21922 # This assumes that the test object file only shows up 21923 # once in the compiler output. 21924 if test "$p" = "conftest.$objext"; then 21925 pre_test_object_deps_done=yes 21926 continue 21927 fi 21928 21929 if test no = "$pre_test_object_deps_done"; then 21930 if test -z "$predep_objects_CXX"; then 21931 predep_objects_CXX=$p 21932 else 21933 predep_objects_CXX="$predep_objects_CXX $p" 21934 fi 21935 else 21936 if test -z "$postdep_objects_CXX"; then 21937 postdep_objects_CXX=$p 21938 else 21939 postdep_objects_CXX="$postdep_objects_CXX $p" 21940 fi 21941 fi 21942 ;; 21943 21944 *) ;; # Ignore the rest. 21945 21946 esac 21947 done 21948 21949 # Clean up. 21950 rm -f a.out a.exe 21951else 21952 echo "libtool.m4: error: problem compiling CXX test program" 21953fi 21954 21955$RM -f confest.$objext 21956CFLAGS=$_lt_libdeps_save_CFLAGS 21957 21958# PORTME: override above test on systems where it is broken 21959case $host_os in 21960interix[3-9]*) 21961 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21962 # hack all around it, let's just trust "g++" to DTRT. 21963 predep_objects_CXX= 21964 postdep_objects_CXX= 21965 postdeps_CXX= 21966 ;; 21967esac 21968 21969 21970case " $postdeps_CXX " in 21971*" -lc "*) archive_cmds_need_lc_CXX=no ;; 21972esac 21973 compiler_lib_search_dirs_CXX= 21974if test -n "${compiler_lib_search_path_CXX}"; then 21975 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 21976fi 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 lt_prog_compiler_wl_CXX= 22009lt_prog_compiler_pic_CXX= 22010lt_prog_compiler_static_CXX= 22011 22012 22013 # C++ specific cases for pic, static, wl, etc. 22014 if test yes = "$GXX"; then 22015 lt_prog_compiler_wl_CXX='-Wl,' 22016 lt_prog_compiler_static_CXX='-static' 22017 22018 case $host_os in 22019 aix*) 22020 # All AIX code is PIC. 22021 if test ia64 = "$host_cpu"; then 22022 # AIX 5 now supports IA64 processor 22023 lt_prog_compiler_static_CXX='-Bstatic' 22024 fi 22025 lt_prog_compiler_pic_CXX='-fPIC' 22026 ;; 22027 22028 amigaos*) 22029 case $host_cpu in 22030 powerpc) 22031 # see comment about AmigaOS4 .so support 22032 lt_prog_compiler_pic_CXX='-fPIC' 22033 ;; 22034 m68k) 22035 # FIXME: we need at least 68020 code to build shared libraries, but 22036 # adding the '-m68020' flag to GCC prevents building anything better, 22037 # like '-m68040'. 22038 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 22039 ;; 22040 esac 22041 ;; 22042 22043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22044 # PIC is the default for these OSes. 22045 ;; 22046 mingw* | cygwin* | os2* | pw32* | cegcc*) 22047 # This hack is so that the source file can tell whether it is being 22048 # built for inclusion in a dll (and should export symbols for example). 22049 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22050 # (--disable-auto-import) libraries 22051 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22052 case $host_os in 22053 os2*) 22054 lt_prog_compiler_static_CXX='$wl-static' 22055 ;; 22056 esac 22057 ;; 22058 darwin* | rhapsody*) 22059 # PIC is the default on this platform 22060 # Common symbols not allowed in MH_DYLIB files 22061 lt_prog_compiler_pic_CXX='-fno-common' 22062 ;; 22063 *djgpp*) 22064 # DJGPP does not support shared libraries at all 22065 lt_prog_compiler_pic_CXX= 22066 ;; 22067 haiku*) 22068 # PIC is the default for Haiku. 22069 # The "-static" flag exists, but is broken. 22070 lt_prog_compiler_static_CXX= 22071 ;; 22072 interix[3-9]*) 22073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22074 # Instead, we relocate shared libraries at runtime. 22075 ;; 22076 sysv4*MP*) 22077 if test -d /usr/nec; then 22078 lt_prog_compiler_pic_CXX=-Kconform_pic 22079 fi 22080 ;; 22081 hpux*) 22082 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22083 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22084 # sets the default TLS model and affects inlining. 22085 case $host_cpu in 22086 hppa*64*) 22087 ;; 22088 *) 22089 lt_prog_compiler_pic_CXX='-fPIC' 22090 ;; 22091 esac 22092 ;; 22093 *qnx* | *nto*) 22094 # QNX uses GNU C++, but need to define -shared option too, otherwise 22095 # it will coredump. 22096 lt_prog_compiler_pic_CXX='-fPIC -shared' 22097 ;; 22098 *) 22099 lt_prog_compiler_pic_CXX='-fPIC' 22100 ;; 22101 esac 22102 else 22103 case $host_os in 22104 aix[4-9]*) 22105 # All AIX code is PIC. 22106 if test ia64 = "$host_cpu"; then 22107 # AIX 5 now supports IA64 processor 22108 lt_prog_compiler_static_CXX='-Bstatic' 22109 else 22110 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 22111 fi 22112 ;; 22113 chorus*) 22114 case $cc_basename in 22115 cxch68*) 22116 # Green Hills C++ Compiler 22117 # _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" 22118 ;; 22119 esac 22120 ;; 22121 mingw* | cygwin* | os2* | pw32* | cegcc*) 22122 # This hack is so that the source file can tell whether it is being 22123 # built for inclusion in a dll (and should export symbols for example). 22124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22125 ;; 22126 dgux*) 22127 case $cc_basename in 22128 ec++*) 22129 lt_prog_compiler_pic_CXX='-KPIC' 22130 ;; 22131 ghcx*) 22132 # Green Hills C++ Compiler 22133 lt_prog_compiler_pic_CXX='-pic' 22134 ;; 22135 *) 22136 ;; 22137 esac 22138 ;; 22139 freebsd* | dragonfly*) 22140 # FreeBSD uses GNU C++ 22141 ;; 22142 hpux9* | hpux10* | hpux11*) 22143 case $cc_basename in 22144 CC*) 22145 lt_prog_compiler_wl_CXX='-Wl,' 22146 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 22147 if test ia64 != "$host_cpu"; then 22148 lt_prog_compiler_pic_CXX='+Z' 22149 fi 22150 ;; 22151 aCC*) 22152 lt_prog_compiler_wl_CXX='-Wl,' 22153 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 22154 case $host_cpu in 22155 hppa*64*|ia64*) 22156 # +Z the default 22157 ;; 22158 *) 22159 lt_prog_compiler_pic_CXX='+Z' 22160 ;; 22161 esac 22162 ;; 22163 *) 22164 ;; 22165 esac 22166 ;; 22167 interix*) 22168 # This is c89, which is MS Visual C++ (no shared libs) 22169 # Anyone wants to do a port? 22170 ;; 22171 irix5* | irix6* | nonstopux*) 22172 case $cc_basename in 22173 CC*) 22174 lt_prog_compiler_wl_CXX='-Wl,' 22175 lt_prog_compiler_static_CXX='-non_shared' 22176 # CC pic flag -KPIC is the default. 22177 ;; 22178 *) 22179 ;; 22180 esac 22181 ;; 22182 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22183 case $cc_basename in 22184 KCC*) 22185 # KAI C++ Compiler 22186 lt_prog_compiler_wl_CXX='--backend -Wl,' 22187 lt_prog_compiler_pic_CXX='-fPIC' 22188 ;; 22189 ecpc* ) 22190 # old Intel C++ for x86_64, which still supported -KPIC. 22191 lt_prog_compiler_wl_CXX='-Wl,' 22192 lt_prog_compiler_pic_CXX='-KPIC' 22193 lt_prog_compiler_static_CXX='-static' 22194 ;; 22195 icpc* ) 22196 # Intel C++, used to be incompatible with GCC. 22197 # ICC 10 doesn't accept -KPIC any more. 22198 lt_prog_compiler_wl_CXX='-Wl,' 22199 lt_prog_compiler_pic_CXX='-fPIC' 22200 lt_prog_compiler_static_CXX='-static' 22201 ;; 22202 pgCC* | pgcpp*) 22203 # Portland Group C++ compiler 22204 lt_prog_compiler_wl_CXX='-Wl,' 22205 lt_prog_compiler_pic_CXX='-fpic' 22206 lt_prog_compiler_static_CXX='-Bstatic' 22207 ;; 22208 cxx*) 22209 # Compaq C++ 22210 # Make sure the PIC flag is empty. It appears that all Alpha 22211 # Linux and Compaq Tru64 Unix objects are PIC. 22212 lt_prog_compiler_pic_CXX= 22213 lt_prog_compiler_static_CXX='-non_shared' 22214 ;; 22215 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 22216 # IBM XL 8.0, 9.0 on PPC and BlueGene 22217 lt_prog_compiler_wl_CXX='-Wl,' 22218 lt_prog_compiler_pic_CXX='-qpic' 22219 lt_prog_compiler_static_CXX='-qstaticlink' 22220 ;; 22221 *) 22222 case `$CC -V 2>&1 | sed 5q` in 22223 *Sun\ C*) 22224 # Sun C++ 5.9 22225 lt_prog_compiler_pic_CXX='-KPIC' 22226 lt_prog_compiler_static_CXX='-Bstatic' 22227 lt_prog_compiler_wl_CXX='-Qoption ld ' 22228 ;; 22229 esac 22230 ;; 22231 esac 22232 ;; 22233 lynxos*) 22234 ;; 22235 m88k*) 22236 ;; 22237 mvs*) 22238 case $cc_basename in 22239 cxx*) 22240 lt_prog_compiler_pic_CXX='-W c,exportall' 22241 ;; 22242 *) 22243 ;; 22244 esac 22245 ;; 22246 netbsd*) 22247 ;; 22248 *qnx* | *nto*) 22249 # QNX uses GNU C++, but need to define -shared option too, otherwise 22250 # it will coredump. 22251 lt_prog_compiler_pic_CXX='-fPIC -shared' 22252 ;; 22253 osf3* | osf4* | osf5*) 22254 case $cc_basename in 22255 KCC*) 22256 lt_prog_compiler_wl_CXX='--backend -Wl,' 22257 ;; 22258 RCC*) 22259 # Rational C++ 2.4.1 22260 lt_prog_compiler_pic_CXX='-pic' 22261 ;; 22262 cxx*) 22263 # Digital/Compaq C++ 22264 lt_prog_compiler_wl_CXX='-Wl,' 22265 # Make sure the PIC flag is empty. It appears that all Alpha 22266 # Linux and Compaq Tru64 Unix objects are PIC. 22267 lt_prog_compiler_pic_CXX= 22268 lt_prog_compiler_static_CXX='-non_shared' 22269 ;; 22270 *) 22271 ;; 22272 esac 22273 ;; 22274 psos*) 22275 ;; 22276 solaris*) 22277 case $cc_basename in 22278 CC* | sunCC*) 22279 # Sun C++ 4.2, 5.x and Centerline C++ 22280 lt_prog_compiler_pic_CXX='-KPIC' 22281 lt_prog_compiler_static_CXX='-Bstatic' 22282 lt_prog_compiler_wl_CXX='-Qoption ld ' 22283 ;; 22284 gcx*) 22285 # Green Hills C++ Compiler 22286 lt_prog_compiler_pic_CXX='-PIC' 22287 ;; 22288 *) 22289 ;; 22290 esac 22291 ;; 22292 sunos4*) 22293 case $cc_basename in 22294 CC*) 22295 # Sun C++ 4.x 22296 lt_prog_compiler_pic_CXX='-pic' 22297 lt_prog_compiler_static_CXX='-Bstatic' 22298 ;; 22299 lcc*) 22300 # Lucid 22301 lt_prog_compiler_pic_CXX='-pic' 22302 ;; 22303 *) 22304 ;; 22305 esac 22306 ;; 22307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22308 case $cc_basename in 22309 CC*) 22310 lt_prog_compiler_wl_CXX='-Wl,' 22311 lt_prog_compiler_pic_CXX='-KPIC' 22312 lt_prog_compiler_static_CXX='-Bstatic' 22313 ;; 22314 esac 22315 ;; 22316 tandem*) 22317 case $cc_basename in 22318 NCC*) 22319 # NonStop-UX NCC 3.20 22320 lt_prog_compiler_pic_CXX='-KPIC' 22321 ;; 22322 *) 22323 ;; 22324 esac 22325 ;; 22326 vxworks*) 22327 ;; 22328 *) 22329 lt_prog_compiler_can_build_shared_CXX=no 22330 ;; 22331 esac 22332 fi 22333 22334case $host_os in 22335 # For platforms that do not support PIC, -DPIC is meaningless: 22336 *djgpp*) 22337 lt_prog_compiler_pic_CXX= 22338 ;; 22339 *) 22340 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 22341 ;; 22342esac 22343 22344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22345$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 22346if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 22347 $as_echo_n "(cached) " >&6 22348else 22349 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 22350fi 22351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 22352$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 22353lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 22354 22355# 22356# Check to make sure the PIC flag actually works. 22357# 22358if test -n "$lt_prog_compiler_pic_CXX"; then 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 22360$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 22361if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 22362 $as_echo_n "(cached) " >&6 22363else 22364 lt_cv_prog_compiler_pic_works_CXX=no 22365 ac_outfile=conftest.$ac_objext 22366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22367 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 22368 # Insert the option either (1) after the last *FLAGS variable, or 22369 # (2) before a word containing "conftest.", or (3) at the end. 22370 # Note that $ac_compile itself does not contain backslashes and begins 22371 # with a dollar sign (not a hyphen), so the echo should work correctly. 22372 # The option is referenced via a variable to avoid confusing sed. 22373 lt_compile=`echo "$ac_compile" | $SED \ 22374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22376 -e 's:$: $lt_compiler_flag:'` 22377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22378 (eval "$lt_compile" 2>conftest.err) 22379 ac_status=$? 22380 cat conftest.err >&5 22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22382 if (exit $ac_status) && test -s "$ac_outfile"; then 22383 # The compiler can only warn and ignore the option if not recognized 22384 # So say no if there are warnings other than the usual output. 22385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22388 lt_cv_prog_compiler_pic_works_CXX=yes 22389 fi 22390 fi 22391 $RM conftest* 22392 22393fi 22394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 22395$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 22396 22397if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 22398 case $lt_prog_compiler_pic_CXX in 22399 "" | " "*) ;; 22400 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 22401 esac 22402else 22403 lt_prog_compiler_pic_CXX= 22404 lt_prog_compiler_can_build_shared_CXX=no 22405fi 22406 22407fi 22408 22409 22410 22411 22412 22413# 22414# Check to make sure the static flag actually works. 22415# 22416wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 22417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22418$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22419if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 22420 $as_echo_n "(cached) " >&6 22421else 22422 lt_cv_prog_compiler_static_works_CXX=no 22423 save_LDFLAGS=$LDFLAGS 22424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22425 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22427 # The linker can only warn and ignore the option if not recognized 22428 # So say no if there are warnings 22429 if test -s conftest.err; then 22430 # Append any errors to the config.log. 22431 cat conftest.err 1>&5 22432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22434 if diff conftest.exp conftest.er2 >/dev/null; then 22435 lt_cv_prog_compiler_static_works_CXX=yes 22436 fi 22437 else 22438 lt_cv_prog_compiler_static_works_CXX=yes 22439 fi 22440 fi 22441 $RM -r conftest* 22442 LDFLAGS=$save_LDFLAGS 22443 22444fi 22445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 22446$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 22447 22448if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 22449 : 22450else 22451 lt_prog_compiler_static_CXX= 22452fi 22453 22454 22455 22456 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22458$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22459if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22460 $as_echo_n "(cached) " >&6 22461else 22462 lt_cv_prog_compiler_c_o_CXX=no 22463 $RM -r conftest 2>/dev/null 22464 mkdir conftest 22465 cd conftest 22466 mkdir out 22467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22468 22469 lt_compiler_flag="-o out/conftest2.$ac_objext" 22470 # Insert the option either (1) after the last *FLAGS variable, or 22471 # (2) before a word containing "conftest.", or (3) at the end. 22472 # Note that $ac_compile itself does not contain backslashes and begins 22473 # with a dollar sign (not a hyphen), so the echo should work correctly. 22474 lt_compile=`echo "$ac_compile" | $SED \ 22475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22477 -e 's:$: $lt_compiler_flag:'` 22478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22479 (eval "$lt_compile" 2>out/conftest.err) 22480 ac_status=$? 22481 cat out/conftest.err >&5 22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22483 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22484 then 22485 # The compiler can only warn and ignore the option if not recognized 22486 # So say no if there are warnings 22487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22490 lt_cv_prog_compiler_c_o_CXX=yes 22491 fi 22492 fi 22493 chmod u+w . 2>&5 22494 $RM conftest* 22495 # SGI C++ compiler will create directory out/ii_files/ for 22496 # template instantiation 22497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22498 $RM out/* && rmdir out 22499 cd .. 22500 $RM -r conftest 22501 $RM conftest* 22502 22503fi 22504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22505$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22506 22507 22508 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22510$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22511if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22512 $as_echo_n "(cached) " >&6 22513else 22514 lt_cv_prog_compiler_c_o_CXX=no 22515 $RM -r conftest 2>/dev/null 22516 mkdir conftest 22517 cd conftest 22518 mkdir out 22519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22520 22521 lt_compiler_flag="-o out/conftest2.$ac_objext" 22522 # Insert the option either (1) after the last *FLAGS variable, or 22523 # (2) before a word containing "conftest.", or (3) at the end. 22524 # Note that $ac_compile itself does not contain backslashes and begins 22525 # with a dollar sign (not a hyphen), so the echo should work correctly. 22526 lt_compile=`echo "$ac_compile" | $SED \ 22527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22529 -e 's:$: $lt_compiler_flag:'` 22530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22531 (eval "$lt_compile" 2>out/conftest.err) 22532 ac_status=$? 22533 cat out/conftest.err >&5 22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22535 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22536 then 22537 # The compiler can only warn and ignore the option if not recognized 22538 # So say no if there are warnings 22539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22542 lt_cv_prog_compiler_c_o_CXX=yes 22543 fi 22544 fi 22545 chmod u+w . 2>&5 22546 $RM conftest* 22547 # SGI C++ compiler will create directory out/ii_files/ for 22548 # template instantiation 22549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22550 $RM out/* && rmdir out 22551 cd .. 22552 $RM -r conftest 22553 $RM conftest* 22554 22555fi 22556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22557$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22558 22559 22560 22561 22562hard_links=nottested 22563if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 22564 # do not overwrite the value of need_locks provided by the user 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22566$as_echo_n "checking if we can lock with hard links... " >&6; } 22567 hard_links=yes 22568 $RM conftest* 22569 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22570 touch conftest.a 22571 ln conftest.a conftest.b 2>&5 || hard_links=no 22572 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22574$as_echo "$hard_links" >&6; } 22575 if test no = "$hard_links"; then 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 22577$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 22578 need_locks=warn 22579 fi 22580else 22581 need_locks=no 22582fi 22583 22584 22585 22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22587$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22588 22589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22590 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22591 case $host_os in 22592 aix[4-9]*) 22593 # If we're using GNU nm, then we don't want the "-C" option. 22594 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 22595 # Without the "-l" option, or with the "-B" option, AIX nm treats 22596 # weak defined symbols like other global defined symbols, whereas 22597 # GNU nm marks them as "W". 22598 # While the 'weak' keyword is ignored in the Export File, we need 22599 # it in the Import File for the 'aix-soname' feature, so we have 22600 # to replace the "-B" option with "-P" for AIX nm. 22601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22602 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 22603 else 22604 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 22605 fi 22606 ;; 22607 pw32*) 22608 export_symbols_cmds_CXX=$ltdll_cmds 22609 ;; 22610 cygwin* | mingw* | cegcc*) 22611 case $cc_basename in 22612 cl*) 22613 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 22614 ;; 22615 *) 22616 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' 22617 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 22618 ;; 22619 esac 22620 ;; 22621 *) 22622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22623 ;; 22624 esac 22625 22626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22627$as_echo "$ld_shlibs_CXX" >&6; } 22628test no = "$ld_shlibs_CXX" && can_build_shared=no 22629 22630with_gnu_ld_CXX=$with_gnu_ld 22631 22632 22633 22634 22635 22636 22637# 22638# Do we need to explicitly link libc? 22639# 22640case "x$archive_cmds_need_lc_CXX" in 22641x|xyes) 22642 # Assume -lc should be added 22643 archive_cmds_need_lc_CXX=yes 22644 22645 if test yes,yes = "$GCC,$enable_shared"; then 22646 case $archive_cmds_CXX in 22647 *'~'*) 22648 # FIXME: we may have to deal with multi-command sequences. 22649 ;; 22650 '$CC '*) 22651 # Test whether the compiler implicitly links with -lc since on some 22652 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22653 # to ld, don't add -lc before -lgcc. 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22655$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22656if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22657 $as_echo_n "(cached) " >&6 22658else 22659 $RM conftest* 22660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22661 22662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22663 (eval $ac_compile) 2>&5 22664 ac_status=$? 22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22666 test $ac_status = 0; } 2>conftest.err; then 22667 soname=conftest 22668 lib=conftest 22669 libobjs=conftest.$ac_objext 22670 deplibs= 22671 wl=$lt_prog_compiler_wl_CXX 22672 pic_flag=$lt_prog_compiler_pic_CXX 22673 compiler_flags=-v 22674 linker_flags=-v 22675 verstring= 22676 output_objdir=. 22677 libname=conftest 22678 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22679 allow_undefined_flag_CXX= 22680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22681 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22682 ac_status=$? 22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22684 test $ac_status = 0; } 22685 then 22686 lt_cv_archive_cmds_need_lc_CXX=no 22687 else 22688 lt_cv_archive_cmds_need_lc_CXX=yes 22689 fi 22690 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22691 else 22692 cat conftest.err 1>&5 22693 fi 22694 $RM conftest* 22695 22696fi 22697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22698$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22699 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22700 ;; 22701 esac 22702 fi 22703 ;; 22704esac 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22768$as_echo_n "checking dynamic linker characteristics... " >&6; } 22769 22770library_names_spec= 22771libname_spec='lib$name' 22772soname_spec= 22773shrext_cmds=.so 22774postinstall_cmds= 22775postuninstall_cmds= 22776finish_cmds= 22777finish_eval= 22778shlibpath_var= 22779shlibpath_overrides_runpath=unknown 22780version_type=none 22781dynamic_linker="$host_os ld.so" 22782sys_lib_dlsearch_path_spec="/lib /usr/lib" 22783need_lib_prefix=unknown 22784hardcode_into_libs=no 22785 22786# when you set need_version to no, make sure it does not cause -set_version 22787# flags to be left without arguments 22788need_version=unknown 22789 22790 22791 22792case $host_os in 22793aix3*) 22794 version_type=linux # correct to gnu/linux during the next big refactor 22795 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22796 shlibpath_var=LIBPATH 22797 22798 # AIX 3 has no versioning support, so we append a major version to the name. 22799 soname_spec='$libname$release$shared_ext$major' 22800 ;; 22801 22802aix[4-9]*) 22803 version_type=linux # correct to gnu/linux during the next big refactor 22804 need_lib_prefix=no 22805 need_version=no 22806 hardcode_into_libs=yes 22807 if test ia64 = "$host_cpu"; then 22808 # AIX 5 supports IA64 22809 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22810 shlibpath_var=LD_LIBRARY_PATH 22811 else 22812 # With GCC up to 2.95.x, collect2 would create an import file 22813 # for dependence libraries. The import file would start with 22814 # the line '#! .'. This would cause the generated library to 22815 # depend on '.', always an invalid library. This was fixed in 22816 # development snapshots of GCC prior to 3.0. 22817 case $host_os in 22818 aix4 | aix4.[01] | aix4.[01].*) 22819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22820 echo ' yes ' 22821 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22822 : 22823 else 22824 can_build_shared=no 22825 fi 22826 ;; 22827 esac 22828 # Using Import Files as archive members, it is possible to support 22829 # filename-based versioning of shared library archives on AIX. While 22830 # this would work for both with and without runtime linking, it will 22831 # prevent static linking of such archives. So we do filename-based 22832 # shared library versioning with .so extension only, which is used 22833 # when both runtime linking and shared linking is enabled. 22834 # Unfortunately, runtime linking may impact performance, so we do 22835 # not want this to be the default eventually. Also, we use the 22836 # versioned .so libs for executables only if there is the -brtl 22837 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22838 # To allow for filename-based versioning support, we need to create 22839 # libNAME.so.V as an archive file, containing: 22840 # *) an Import File, referring to the versioned filename of the 22841 # archive as well as the shared archive member, telling the 22842 # bitwidth (32 or 64) of that shared object, and providing the 22843 # list of exported symbols of that shared object, eventually 22844 # decorated with the 'weak' keyword 22845 # *) the shared object with the F_LOADONLY flag set, to really avoid 22846 # it being seen by the linker. 22847 # At run time we better use the real file rather than another symlink, 22848 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22849 22850 case $with_aix_soname,$aix_use_runtimelinking in 22851 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22852 # soname into executable. Probably we can add versioning support to 22853 # collect2, so additional links can be useful in future. 22854 aix,yes) # traditional libtool 22855 dynamic_linker='AIX unversionable lib.so' 22856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22857 # instead of lib<name>.a to let people know that these are not 22858 # typical AIX shared libraries. 22859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22860 ;; 22861 aix,no) # traditional AIX only 22862 dynamic_linker='AIX lib.a(lib.so.V)' 22863 # We preserve .a as extension for shared libraries through AIX4.2 22864 # and later when we are not doing run time linking. 22865 library_names_spec='$libname$release.a $libname.a' 22866 soname_spec='$libname$release$shared_ext$major' 22867 ;; 22868 svr4,*) # full svr4 only 22869 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22870 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22871 # We do not specify a path in Import Files, so LIBPATH fires. 22872 shlibpath_overrides_runpath=yes 22873 ;; 22874 *,yes) # both, prefer svr4 22875 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22876 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22877 # unpreferred sharedlib libNAME.a needs extra handling 22878 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 22879 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 22880 # We do not specify a path in Import Files, so LIBPATH fires. 22881 shlibpath_overrides_runpath=yes 22882 ;; 22883 *,no) # both, prefer aix 22884 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22885 library_names_spec='$libname$release.a $libname.a' 22886 soname_spec='$libname$release$shared_ext$major' 22887 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22888 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 22889 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 22890 ;; 22891 esac 22892 shlibpath_var=LIBPATH 22893 fi 22894 ;; 22895 22896amigaos*) 22897 case $host_cpu in 22898 powerpc) 22899 # Since July 2007 AmigaOS4 officially supports .so libraries. 22900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22902 ;; 22903 m68k) 22904 library_names_spec='$libname.ixlibrary $libname.a' 22905 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22906 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 22907 ;; 22908 esac 22909 ;; 22910 22911beos*) 22912 library_names_spec='$libname$shared_ext' 22913 dynamic_linker="$host_os ld.so" 22914 shlibpath_var=LIBRARY_PATH 22915 ;; 22916 22917bsdi[45]*) 22918 version_type=linux # correct to gnu/linux during the next big refactor 22919 need_version=no 22920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22921 soname_spec='$libname$release$shared_ext$major' 22922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22923 shlibpath_var=LD_LIBRARY_PATH 22924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22926 # the default ld.so.conf also contains /usr/contrib/lib and 22927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22928 # libtool to hard-code these into programs 22929 ;; 22930 22931cygwin* | mingw* | pw32* | cegcc*) 22932 version_type=windows 22933 shrext_cmds=.dll 22934 need_version=no 22935 need_lib_prefix=no 22936 22937 case $GCC,$cc_basename in 22938 yes,*) 22939 # gcc 22940 library_names_spec='$libname.dll.a' 22941 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22942 postinstall_cmds='base_file=`basename \$file`~ 22943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22944 dldir=$destdir/`dirname \$dlpath`~ 22945 test -d \$dldir || mkdir -p \$dldir~ 22946 $install_prog $dir/$dlname \$dldir/$dlname~ 22947 chmod a+x \$dldir/$dlname~ 22948 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22949 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22950 fi' 22951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22952 dlpath=$dir/\$dldll~ 22953 $RM \$dlpath' 22954 shlibpath_overrides_runpath=yes 22955 22956 case $host_os in 22957 cygwin*) 22958 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22959 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22960 22961 ;; 22962 mingw* | cegcc*) 22963 # MinGW DLLs use traditional 'lib' prefix 22964 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22965 ;; 22966 pw32*) 22967 # pw32 DLLs use 'pw' prefix rather than 'lib' 22968 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22969 ;; 22970 esac 22971 dynamic_linker='Win32 ld.exe' 22972 ;; 22973 22974 *,cl*) 22975 # Native MSVC 22976 libname_spec='$name' 22977 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22978 library_names_spec='$libname.dll.lib' 22979 22980 case $build_os in 22981 mingw*) 22982 sys_lib_search_path_spec= 22983 lt_save_ifs=$IFS 22984 IFS=';' 22985 for lt_path in $LIB 22986 do 22987 IFS=$lt_save_ifs 22988 # Let DOS variable expansion print the short 8.3 style file name. 22989 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22990 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22991 done 22992 IFS=$lt_save_ifs 22993 # Convert to MSYS style. 22994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22995 ;; 22996 cygwin*) 22997 # Convert to unix form, then to dos form, then back to unix form 22998 # but this time dos style (no spaces!) so that the unix form looks 22999 # like /cygdrive/c/PROGRA~1:/cygdr... 23000 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 23001 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 23002 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 23003 ;; 23004 *) 23005 sys_lib_search_path_spec=$LIB 23006 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 23007 # It is most probably a Windows format PATH. 23008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 23009 else 23010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 23011 fi 23012 # FIXME: find the short name or the path components, as spaces are 23013 # common. (e.g. "Program Files" -> "PROGRA~1") 23014 ;; 23015 esac 23016 23017 # DLL is installed to $(libdir)/../bin by postinstall_cmds 23018 postinstall_cmds='base_file=`basename \$file`~ 23019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 23020 dldir=$destdir/`dirname \$dlpath`~ 23021 test -d \$dldir || mkdir -p \$dldir~ 23022 $install_prog $dir/$dlname \$dldir/$dlname' 23023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 23024 dlpath=$dir/\$dldll~ 23025 $RM \$dlpath' 23026 shlibpath_overrides_runpath=yes 23027 dynamic_linker='Win32 link.exe' 23028 ;; 23029 23030 *) 23031 # Assume MSVC wrapper 23032 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 23033 dynamic_linker='Win32 ld.exe' 23034 ;; 23035 esac 23036 # FIXME: first we should search . and the directory the executable is in 23037 shlibpath_var=PATH 23038 ;; 23039 23040darwin* | rhapsody*) 23041 dynamic_linker="$host_os dyld" 23042 version_type=darwin 23043 need_lib_prefix=no 23044 need_version=no 23045 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 23046 soname_spec='$libname$release$major$shared_ext' 23047 shlibpath_overrides_runpath=yes 23048 shlibpath_var=DYLD_LIBRARY_PATH 23049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 23050 23051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 23052 ;; 23053 23054dgux*) 23055 version_type=linux # correct to gnu/linux during the next big refactor 23056 need_lib_prefix=no 23057 need_version=no 23058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23059 soname_spec='$libname$release$shared_ext$major' 23060 shlibpath_var=LD_LIBRARY_PATH 23061 ;; 23062 23063freebsd* | dragonfly*) 23064 # DragonFly does not have aout. When/if they implement a new 23065 # versioning mechanism, adjust this. 23066 if test -x /usr/bin/objformat; then 23067 objformat=`/usr/bin/objformat` 23068 else 23069 case $host_os in 23070 freebsd[23].*) objformat=aout ;; 23071 *) objformat=elf ;; 23072 esac 23073 fi 23074 version_type=freebsd-$objformat 23075 case $version_type in 23076 freebsd-elf*) 23077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23078 soname_spec='$libname$release$shared_ext$major' 23079 need_version=no 23080 need_lib_prefix=no 23081 ;; 23082 freebsd-*) 23083 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23084 need_version=yes 23085 ;; 23086 esac 23087 shlibpath_var=LD_LIBRARY_PATH 23088 case $host_os in 23089 freebsd2.*) 23090 shlibpath_overrides_runpath=yes 23091 ;; 23092 freebsd3.[01]* | freebsdelf3.[01]*) 23093 shlibpath_overrides_runpath=yes 23094 hardcode_into_libs=yes 23095 ;; 23096 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 23097 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 23098 shlibpath_overrides_runpath=no 23099 hardcode_into_libs=yes 23100 ;; 23101 *) # from 4.6 on, and DragonFly 23102 shlibpath_overrides_runpath=yes 23103 hardcode_into_libs=yes 23104 ;; 23105 esac 23106 ;; 23107 23108haiku*) 23109 version_type=linux # correct to gnu/linux during the next big refactor 23110 need_lib_prefix=no 23111 need_version=no 23112 dynamic_linker="$host_os runtime_loader" 23113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23114 soname_spec='$libname$release$shared_ext$major' 23115 shlibpath_var=LIBRARY_PATH 23116 shlibpath_overrides_runpath=no 23117 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 23118 hardcode_into_libs=yes 23119 ;; 23120 23121hpux9* | hpux10* | hpux11*) 23122 # Give a soname corresponding to the major version so that dld.sl refuses to 23123 # link against other versions. 23124 version_type=sunos 23125 need_lib_prefix=no 23126 need_version=no 23127 case $host_cpu in 23128 ia64*) 23129 shrext_cmds='.so' 23130 hardcode_into_libs=yes 23131 dynamic_linker="$host_os dld.so" 23132 shlibpath_var=LD_LIBRARY_PATH 23133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23135 soname_spec='$libname$release$shared_ext$major' 23136 if test 32 = "$HPUX_IA64_MODE"; then 23137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 23138 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 23139 else 23140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 23141 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 23142 fi 23143 ;; 23144 hppa*64*) 23145 shrext_cmds='.sl' 23146 hardcode_into_libs=yes 23147 dynamic_linker="$host_os dld.sl" 23148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 23149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23151 soname_spec='$libname$release$shared_ext$major' 23152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 23153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23154 ;; 23155 *) 23156 shrext_cmds='.sl' 23157 dynamic_linker="$host_os dld.sl" 23158 shlibpath_var=SHLIB_PATH 23159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 23160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23161 soname_spec='$libname$release$shared_ext$major' 23162 ;; 23163 esac 23164 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 23165 postinstall_cmds='chmod 555 $lib' 23166 # or fails outright, so override atomically: 23167 install_override_mode=555 23168 ;; 23169 23170interix[3-9]*) 23171 version_type=linux # correct to gnu/linux during the next big refactor 23172 need_lib_prefix=no 23173 need_version=no 23174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23175 soname_spec='$libname$release$shared_ext$major' 23176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 23177 shlibpath_var=LD_LIBRARY_PATH 23178 shlibpath_overrides_runpath=no 23179 hardcode_into_libs=yes 23180 ;; 23181 23182irix5* | irix6* | nonstopux*) 23183 case $host_os in 23184 nonstopux*) version_type=nonstopux ;; 23185 *) 23186 if test yes = "$lt_cv_prog_gnu_ld"; then 23187 version_type=linux # correct to gnu/linux during the next big refactor 23188 else 23189 version_type=irix 23190 fi ;; 23191 esac 23192 need_lib_prefix=no 23193 need_version=no 23194 soname_spec='$libname$release$shared_ext$major' 23195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 23196 case $host_os in 23197 irix5* | nonstopux*) 23198 libsuff= shlibsuff= 23199 ;; 23200 *) 23201 case $LD in # libtool.m4 will add one of these switches to LD 23202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 23203 libsuff= shlibsuff= libmagic=32-bit;; 23204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 23205 libsuff=32 shlibsuff=N32 libmagic=N32;; 23206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 23207 libsuff=64 shlibsuff=64 libmagic=64-bit;; 23208 *) libsuff= shlibsuff= libmagic=never-match;; 23209 esac 23210 ;; 23211 esac 23212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 23213 shlibpath_overrides_runpath=no 23214 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 23215 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 23216 hardcode_into_libs=yes 23217 ;; 23218 23219# No shared lib support for Linux oldld, aout, or coff. 23220linux*oldld* | linux*aout* | linux*coff*) 23221 dynamic_linker=no 23222 ;; 23223 23224linux*android*) 23225 version_type=none # Android doesn't support versioned libraries. 23226 need_lib_prefix=no 23227 need_version=no 23228 library_names_spec='$libname$release$shared_ext' 23229 soname_spec='$libname$release$shared_ext' 23230 finish_cmds= 23231 shlibpath_var=LD_LIBRARY_PATH 23232 shlibpath_overrides_runpath=yes 23233 23234 # This implies no fast_install, which is unacceptable. 23235 # Some rework will be needed to allow for fast_install 23236 # before this can be enabled. 23237 hardcode_into_libs=yes 23238 23239 dynamic_linker='Android linker' 23240 # Don't embed -rpath directories since the linker doesn't support them. 23241 hardcode_libdir_flag_spec_CXX='-L$libdir' 23242 ;; 23243 23244# This must be glibc/ELF. 23245linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 23246 version_type=linux # correct to gnu/linux during the next big refactor 23247 need_lib_prefix=no 23248 need_version=no 23249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23250 soname_spec='$libname$release$shared_ext$major' 23251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 23252 shlibpath_var=LD_LIBRARY_PATH 23253 shlibpath_overrides_runpath=no 23254 23255 # Some binutils ld are patched to set DT_RUNPATH 23256 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 23257 $as_echo_n "(cached) " >&6 23258else 23259 lt_cv_shlibpath_overrides_runpath=no 23260 save_LDFLAGS=$LDFLAGS 23261 save_libdir=$libdir 23262 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 23263 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23265/* end confdefs.h. */ 23266 23267int 23268main () 23269{ 23270 23271 ; 23272 return 0; 23273} 23274_ACEOF 23275if ac_fn_cxx_try_link "$LINENO"; then : 23276 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 23277 lt_cv_shlibpath_overrides_runpath=yes 23278fi 23279fi 23280rm -f core conftest.err conftest.$ac_objext \ 23281 conftest$ac_exeext conftest.$ac_ext 23282 LDFLAGS=$save_LDFLAGS 23283 libdir=$save_libdir 23284 23285fi 23286 23287 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 23288 23289 # This implies no fast_install, which is unacceptable. 23290 # Some rework will be needed to allow for fast_install 23291 # before this can be enabled. 23292 hardcode_into_libs=yes 23293 23294 # Add ABI-specific directories to the system library path. 23295 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 23296 23297 # Ideally, we could use ldconfig to report *all* directores which are 23298 # searched for libraries, however this is still not possible. Aside from not 23299 # being certain /sbin/ldconfig is available, command 23300 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 23301 # even though it is searched at run-time. Try to do the best guess by 23302 # appending ld.so.conf contents (and includes) to the search path. 23303 if test -f /etc/ld.so.conf; then 23304 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' ' '` 23305 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 23306 fi 23307 23308 # We used to test for /lib/ld.so.1 and disable shared libraries on 23309 # powerpc, because MkLinux only supported shared libraries with the 23310 # GNU dynamic linker. Since this was broken with cross compilers, 23311 # most powerpc-linux boxes support dynamic linking these days and 23312 # people can always --disable-shared, the test was removed, and we 23313 # assume the GNU/Linux dynamic linker is in use. 23314 dynamic_linker='GNU/Linux ld.so' 23315 ;; 23316 23317netbsd*) 23318 version_type=sunos 23319 need_lib_prefix=no 23320 need_version=no 23321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23322 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23324 dynamic_linker='NetBSD (a.out) ld.so' 23325 else 23326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23327 soname_spec='$libname$release$shared_ext$major' 23328 dynamic_linker='NetBSD ld.elf_so' 23329 fi 23330 shlibpath_var=LD_LIBRARY_PATH 23331 shlibpath_overrides_runpath=yes 23332 hardcode_into_libs=yes 23333 ;; 23334 23335newsos6) 23336 version_type=linux # correct to gnu/linux during the next big refactor 23337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23338 shlibpath_var=LD_LIBRARY_PATH 23339 shlibpath_overrides_runpath=yes 23340 ;; 23341 23342*nto* | *qnx*) 23343 version_type=qnx 23344 need_lib_prefix=no 23345 need_version=no 23346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23347 soname_spec='$libname$release$shared_ext$major' 23348 shlibpath_var=LD_LIBRARY_PATH 23349 shlibpath_overrides_runpath=no 23350 hardcode_into_libs=yes 23351 dynamic_linker='ldqnx.so' 23352 ;; 23353 23354openbsd* | bitrig*) 23355 version_type=sunos 23356 sys_lib_dlsearch_path_spec=/usr/lib 23357 need_lib_prefix=no 23358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 23359 need_version=no 23360 else 23361 need_version=yes 23362 fi 23363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23365 shlibpath_var=LD_LIBRARY_PATH 23366 shlibpath_overrides_runpath=yes 23367 ;; 23368 23369os2*) 23370 libname_spec='$name' 23371 version_type=windows 23372 shrext_cmds=.dll 23373 need_version=no 23374 need_lib_prefix=no 23375 # OS/2 can only load a DLL with a base name of 8 characters or less. 23376 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 23377 v=$($ECHO $release$versuffix | tr -d .-); 23378 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 23379 $ECHO $n$v`$shared_ext' 23380 library_names_spec='${libname}_dll.$libext' 23381 dynamic_linker='OS/2 ld.exe' 23382 shlibpath_var=BEGINLIBPATH 23383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 23384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23385 postinstall_cmds='base_file=`basename \$file`~ 23386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 23387 dldir=$destdir/`dirname \$dlpath`~ 23388 test -d \$dldir || mkdir -p \$dldir~ 23389 $install_prog $dir/$dlname \$dldir/$dlname~ 23390 chmod a+x \$dldir/$dlname~ 23391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 23392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 23393 fi' 23394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 23395 dlpath=$dir/\$dldll~ 23396 $RM \$dlpath' 23397 ;; 23398 23399osf3* | osf4* | osf5*) 23400 version_type=osf 23401 need_lib_prefix=no 23402 need_version=no 23403 soname_spec='$libname$release$shared_ext$major' 23404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23405 shlibpath_var=LD_LIBRARY_PATH 23406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 23407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23408 ;; 23409 23410rdos*) 23411 dynamic_linker=no 23412 ;; 23413 23414solaris*) 23415 version_type=linux # correct to gnu/linux during the next big refactor 23416 need_lib_prefix=no 23417 need_version=no 23418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23419 soname_spec='$libname$release$shared_ext$major' 23420 shlibpath_var=LD_LIBRARY_PATH 23421 shlibpath_overrides_runpath=yes 23422 hardcode_into_libs=yes 23423 # ldd complains unless libraries are executable 23424 postinstall_cmds='chmod +x $lib' 23425 ;; 23426 23427sunos4*) 23428 version_type=sunos 23429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 23431 shlibpath_var=LD_LIBRARY_PATH 23432 shlibpath_overrides_runpath=yes 23433 if test yes = "$with_gnu_ld"; then 23434 need_lib_prefix=no 23435 fi 23436 need_version=yes 23437 ;; 23438 23439sysv4 | sysv4.3*) 23440 version_type=linux # correct to gnu/linux during the next big refactor 23441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23442 soname_spec='$libname$release$shared_ext$major' 23443 shlibpath_var=LD_LIBRARY_PATH 23444 case $host_vendor in 23445 sni) 23446 shlibpath_overrides_runpath=no 23447 need_lib_prefix=no 23448 runpath_var=LD_RUN_PATH 23449 ;; 23450 siemens) 23451 need_lib_prefix=no 23452 ;; 23453 motorola) 23454 need_lib_prefix=no 23455 need_version=no 23456 shlibpath_overrides_runpath=no 23457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 23458 ;; 23459 esac 23460 ;; 23461 23462sysv4*MP*) 23463 if test -d /usr/nec; then 23464 version_type=linux # correct to gnu/linux during the next big refactor 23465 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 23466 soname_spec='$libname$shared_ext.$major' 23467 shlibpath_var=LD_LIBRARY_PATH 23468 fi 23469 ;; 23470 23471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 23472 version_type=sco 23473 need_lib_prefix=no 23474 need_version=no 23475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 23476 soname_spec='$libname$release$shared_ext$major' 23477 shlibpath_var=LD_LIBRARY_PATH 23478 shlibpath_overrides_runpath=yes 23479 hardcode_into_libs=yes 23480 if test yes = "$with_gnu_ld"; then 23481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 23482 else 23483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 23484 case $host_os in 23485 sco3.2v5*) 23486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 23487 ;; 23488 esac 23489 fi 23490 sys_lib_dlsearch_path_spec='/usr/lib' 23491 ;; 23492 23493tpf*) 23494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 23495 version_type=linux # correct to gnu/linux during the next big refactor 23496 need_lib_prefix=no 23497 need_version=no 23498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23499 shlibpath_var=LD_LIBRARY_PATH 23500 shlibpath_overrides_runpath=no 23501 hardcode_into_libs=yes 23502 ;; 23503 23504uts4*) 23505 version_type=linux # correct to gnu/linux during the next big refactor 23506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23507 soname_spec='$libname$release$shared_ext$major' 23508 shlibpath_var=LD_LIBRARY_PATH 23509 ;; 23510 23511*) 23512 dynamic_linker=no 23513 ;; 23514esac 23515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 23516$as_echo "$dynamic_linker" >&6; } 23517test no = "$dynamic_linker" && can_build_shared=no 23518 23519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 23520if test yes = "$GCC"; then 23521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 23522fi 23523 23524if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 23525 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 23526fi 23527 23528if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 23529 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 23530fi 23531 23532# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 23533configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 23534 23535# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 23536func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 23537 23538# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 23539configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 23581$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 23582hardcode_action_CXX= 23583if test -n "$hardcode_libdir_flag_spec_CXX" || 23584 test -n "$runpath_var_CXX" || 23585 test yes = "$hardcode_automatic_CXX"; then 23586 23587 # We can hardcode non-existent directories. 23588 if test no != "$hardcode_direct_CXX" && 23589 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23590 # have to relink, otherwise we might link with an installed library 23591 # when we should be linking with a yet-to-be-installed one 23592 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 23593 test no != "$hardcode_minus_L_CXX"; then 23594 # Linking always hardcodes the temporary library directory. 23595 hardcode_action_CXX=relink 23596 else 23597 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23598 hardcode_action_CXX=immediate 23599 fi 23600else 23601 # We cannot hardcode anything, or else we can only hardcode existing 23602 # directories. 23603 hardcode_action_CXX=unsupported 23604fi 23605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 23606$as_echo "$hardcode_action_CXX" >&6; } 23607 23608if test relink = "$hardcode_action_CXX" || 23609 test yes = "$inherit_rpath_CXX"; then 23610 # Fast installation is not supported 23611 enable_fast_install=no 23612elif test yes = "$shlibpath_overrides_runpath" || 23613 test no = "$enable_shared"; then 23614 # Fast installation is not necessary 23615 enable_fast_install=needless 23616fi 23617 23618 23619 23620 23621 23622 23623 23624 fi # test -n "$compiler" 23625 23626 CC=$lt_save_CC 23627 CFLAGS=$lt_save_CFLAGS 23628 LDCXX=$LD 23629 LD=$lt_save_LD 23630 GCC=$lt_save_GCC 23631 with_gnu_ld=$lt_save_with_gnu_ld 23632 lt_cv_path_LDCXX=$lt_cv_path_LD 23633 lt_cv_path_LD=$lt_save_path_LD 23634 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 23635 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 23636fi # test yes != "$_lt_caught_CXX_error" 23637 23638ac_ext=c 23639ac_cpp='$CPP $CPPFLAGS' 23640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23642ac_compiler_gnu=$ac_cv_c_compiler_gnu 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 ac_config_commands="$ac_config_commands libtool" 23659 23660 23661 23662 23663# Only expand once: 23664 23665 23666 23667 23668 23669# Check to see if building shared libraries 23670libtool_build_shared_libs='no' 23671if test "$enable_shared" = 'yes'; then 23672 libtool_build_shared_libs='yes' 23673fi 23674 23675# Check to see if building static libraries 23676libtool_build_static_libs='no' 23677if test "$enable_static" = 'yes'; then 23678 libtool_build_static_libs='yes' 23679fi 23680 23681 if test "${libtool_build_shared_libs}" = 'yes'; then 23682 WITH_SHARED_LIBS_TRUE= 23683 WITH_SHARED_LIBS_FALSE='#' 23684else 23685 WITH_SHARED_LIBS_TRUE='#' 23686 WITH_SHARED_LIBS_FALSE= 23687fi 23688 23689# 23690# Enable support for building loadable modules 23691# 23692build_modules='no' 23693 23694# Check whether --with-modules was given. 23695if test "${with_modules+set}" = set; then : 23696 withval=$with_modules; with_modules=$withval 23697else 23698 with_modules='no' 23699fi 23700 23701 23702# Only allow building loadable modules if we are building shared libraries 23703if test "$with_modules" != 'no' ; then 23704 if test "$libtool_build_shared_libs" = 'no'; then 23705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 23706$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} 23707 build_modules='no' 23708 else 23709 build_modules='yes' 23710 fi 23711fi 23712if test "$build_modules" != 'no' ; then 23713 23714$as_echo "#define BUILD_MODULES 1" >>confdefs.h 23715 23716 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 23717fi 23718 if test "$build_modules" != 'no'; then 23719 WITH_MODULES_TRUE= 23720 WITH_MODULES_FALSE='#' 23721else 23722 WITH_MODULES_TRUE='#' 23723 WITH_MODULES_FALSE= 23724fi 23725 23726 23727# Enable build using delegate libraries built in subdirectories rather than installed 23728# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 23729# Check whether --enable-delegate-build was given. 23730if test "${enable_delegate_build+set}" = set; then : 23731 enableval=$enable_delegate_build; enable_delegate_build=$enableval 23732else 23733 enable_delegate_build='no' 23734fi 23735 23736 23737# Check whether --enable-deprecated was given. 23738if test "${enable_deprecated+set}" = set; then : 23739 enableval=$enable_deprecated; enable_deprecated=$enableval 23740else 23741 enable_deprecated='no' 23742fi 23743 23744 23745if test "$enable_deprecated" = 'yes'; then 23746 23747$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h 23748 23749else 23750 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 23751fi 23752 23753# Build a version of ImageMagick which operates uninstalled. 23754# Used to build distributions located via MAGICK_HOME / executable path 23755# Check whether --enable-installed was given. 23756if test "${enable_installed+set}" = set; then : 23757 enableval=$enable_installed; enable_installed=$enableval 23758else 23759 enable_installed='yes' 23760fi 23761 23762 23763if test "$enable_installed" = 'yes'; then 23764 23765$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h 23766 23767else 23768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 23769fi 23770 23771# Permit enciphering and deciphering image pixels. 23772# Check whether --enable-cipher was given. 23773if test "${enable_cipher+set}" = set; then : 23774 enableval=$enable_cipher; enable_cipher=$enableval 23775else 23776 enable_cipher='yes' 23777fi 23778 23779 23780if test "$enable_cipher" = 'yes'; then 23781 23782$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h 23783 23784 MAGICK_FEATURES="Cipher $MAGICK_FEATURES" 23785fi 23786 23787# Build a zero-configuration version of ImageMagick. 23788# Check whether --enable-zero-configuration was given. 23789if test "${enable_zero_configuration+set}" = set; then : 23790 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval 23791else 23792 enable_zero_configuration='no' 23793fi 23794 23795 23796if test "$enable_zero_configuration" = 'yes'; then 23797 23798$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h 23799 23800 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES" 23801fi 23802 23803# Build a high dynamic range version of ImageMagick. 23804# Check whether --enable-hdri was given. 23805if test "${enable_hdri+set}" = set; then : 23806 enableval=$enable_hdri; enable_hdri=$enableval 23807else 23808 enable_hdri='yes' 23809fi 23810 23811 23812MAGICK_HDRI="" 23813if test "$enable_hdri" = 'yes'; then 23814 MAGICK_HDRI="HDRI" 23815 magick_hdri_enable='1'; 23816 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 23817else 23818 magick_hdri_enable='0' 23819fi 23820 23821cat >>confdefs.h <<_ACEOF 23822#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable 23823_ACEOF 23824 23825MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23826CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23827CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23828 23829# Enable pipes (|) in filenames. 23830# Check whether --enable-pipes was given. 23831if test "${enable_pipes+set}" = set; then : 23832 enableval=$enable_pipes; enable_pipes=$enableval 23833else 23834 enable_pipes='no' 23835fi 23836 23837 23838if test "$enable_pipes" = 'yes'; then 23839 23840$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h 23841 23842 MAGICK_FEATURES="Pipes $MAGICK_FEATURES" 23843fi 23844 23845# Enable indirect reads (@) in filenames. 23846# Check whether --enable-indirect-reads was given. 23847if test "${enable_indirect_reads+set}" = set; then : 23848 enableval=$enable_indirect_reads; enable_indirect_reads=$enableval 23849else 23850 enable_indirect_reads='no' 23851fi 23852 23853 23854if test "$enable_indirect-reads" = 'yes'; then 23855 23856$as_echo "#define INDIRECT_READS_SUPPORT 1" >>confdefs.h 23857 23858 MAGICK_FEATURES="IndirectReads $MAGICK_FEATURES" 23859fi 23860 23861# Build a version of ImageMagick with assert statements. 23862# Check whether --enable-assert was given. 23863if test "${enable_assert+set}" = set; then : 23864 enableval=$enable_assert; enable_assert=$enableval 23865else 23866 enable_assert='yes' 23867fi 23868 23869 23870if test "$enable_assert" = 'no'; then 23871 23872$as_echo "#define NDEBUG 1" >>confdefs.h 23873 23874fi 23875 23876# Don't emit "rebuild rules" for configure, Makefile.ins, etc. 23877 23878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 23879$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 23880 # Check whether --enable-maintainer-mode was given. 23881if test "${enable_maintainer_mode+set}" = set; then : 23882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 23883else 23884 USE_MAINTAINER_MODE=no 23885fi 23886 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 23888$as_echo "$USE_MAINTAINER_MODE" >&6; } 23889 if test $USE_MAINTAINER_MODE = yes; then 23890 MAINTAINER_MODE_TRUE= 23891 MAINTAINER_MODE_FALSE='#' 23892else 23893 MAINTAINER_MODE_TRUE='#' 23894 MAINTAINER_MODE_FALSE= 23895fi 23896 23897 MAINT=$MAINTAINER_MODE_TRUE 23898 23899 23900 23901# Enable hugepages support 23902# Check whether --enable-hugepages was given. 23903if test "${enable_hugepages+set}" = set; then : 23904 enableval=$enable_hugepages; enable_hugepages=$enableval 23905else 23906 enable_hugepages='no' 23907fi 23908 23909 23910# Enable ccmalloc memory debugging support 23911# Check whether --enable-ccmalloc was given. 23912if test "${enable_ccmalloc+set}" = set; then : 23913 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval 23914else 23915 enable_ccmalloc='no' 23916fi 23917 23918 23919# Enable Electric Fence memory debugging support 23920# Check whether --enable-efence was given. 23921if test "${enable_efence+set}" = set; then : 23922 enableval=$enable_efence; enable_efence=$enableval 23923else 23924 enable_efence='no' 23925fi 23926 23927 23928# Enable prof-based profiling support 23929# Check whether --enable-prof was given. 23930if test "${enable_prof+set}" = set; then : 23931 enableval=$enable_prof; enable_prof=$enableval 23932else 23933 enable_prof='no' 23934fi 23935 23936 23937# Enable gprof-based profiling support 23938# Check whether --enable-gprof was given. 23939if test "${enable_gprof+set}" = set; then : 23940 enableval=$enable_gprof; enable_gprof=$enableval 23941else 23942 enable_gprof='no' 23943fi 23944 23945 23946# Enable gcov-based profiling support 23947# Check whether --enable-gcov was given. 23948if test "${enable_gcov+set}" = set; then : 23949 enableval=$enable_gcov; enable_gcov=$enableval 23950else 23951 enable_gcov='no' 23952fi 23953 23954 23955enable_profiling='no' 23956if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 23957 enable_profiling='yes' 23958 if test "$libtool_build_shared_libs" = 'yes'; then 23959 echo "Warning: Can not profile code using shared libraries" 23960 fi 23961fi 23962 23963# Magick API method prefix 23964 23965# Check whether --with-method-prefix was given. 23966if test "${with_method_prefix+set}" = set; then : 23967 withval=$with_method_prefix; with_method_prefix=$withval 23968else 23969 with_method_prefix='no' 23970fi 23971 23972 23973if test "$with_method_prefix" != 'no'; then 23974 23975cat >>confdefs.h <<_ACEOF 23976#define NAMESPACE_PREFIX $with_method_prefix 23977_ACEOF 23978 23979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 23980fi 23981 23982# Enable legacy support (default no) 23983# Check whether --enable-legacy-support was given. 23984if test "${enable_legacy_support+set}" = set; then : 23985 enableval=$enable_legacy_support; with_legacy_support=$enableval 23986else 23987 with_legacy_support='no' 23988fi 23989 23990 if test "$with_legacy_support" != 'no'; then 23991 LEGACY_SUPPORT_TRUE= 23992 LEGACY_SUPPORT_FALSE='#' 23993else 23994 LEGACY_SUPPORT_TRUE='#' 23995 LEGACY_SUPPORT_FALSE= 23996fi 23997 23998 23999# Number of bits in a Quantum 24000 24001# Check whether --with-quantum-depth was given. 24002if test "${with_quantum_depth+set}" = set; then : 24003 withval=$with_quantum_depth; with_quantum_depth=$withval 24004else 24005 with_quantum_depth=16 24006fi 24007 24008 24009if test "$with_quantum_depth" != '8'; then 24010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 24011fi 24012 24013case "${with_quantum_depth}" in 24014 8 ) ;; 24015 16 ) ;; 24016 32 ) ;; 24017 64 ) ;; 24018 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; 24019esac 24020QUANTUM_DEPTH="$with_quantum_depth" 24021 24022cat >>confdefs.h <<_ACEOF 24023#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH 24024_ACEOF 24025 24026MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24027CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24028CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24029 24030# define a lib suffix for abi purpose 24031MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 24032if test "$enable_hdri" = 'yes'; then 24033 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 24034fi 24035 24036 24037# Set pixel cache threshold 24038 24039# Check whether --with-cache was given. 24040if test "${with_cache+set}" = set; then : 24041 withval=$with_cache; with_cache=$withval 24042else 24043 with_cache='' 24044fi 24045 24046 24047if test "$with_cache" != ''; then 24048 24049cat >>confdefs.h <<_ACEOF 24050#define PixelCacheThreshold $with_cache 24051_ACEOF 24052 24053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 24054fi 24055 24056# Disable/Enable support for full delegate paths 24057 24058# Check whether --with-frozenpaths was given. 24059if test "${with_frozenpaths+set}" = set; then : 24060 withval=$with_frozenpaths; with_frozenpaths=$withval 24061else 24062 with_frozenpaths='no' 24063fi 24064 24065 24066# Enable build/install of Magick++ 24067 24068# Check whether --with-magick-plus-plus was given. 24069if test "${with_magick_plus_plus+set}" = set; then : 24070 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval 24071else 24072 with_magick_plus_plus='yes' 24073fi 24074 24075 24076# Encode the this name into the shared library. 24077 24078# Check whether --with-package-release-name was given. 24079if test "${with_package_release_name+set}" = set; then : 24080 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" 24081fi 24082 24083 24084 24085# Disable build/install of PerlMagick. 24086 24087# Check whether --with-perl was given. 24088if test "${with_perl+set}" = set; then : 24089 withval=$with_perl; with_perl=$withval 24090else 24091 with_perl='no' 24092fi 24093 24094 24095# Options to pass when configuring PerlMagick 24096 24097# Check whether --with-perl-options was given. 24098if test "${with_perl_options+set}" = set; then : 24099 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval 24100fi 24101 24102 24103 24104# Enable jemalloc, object-caching memory allocation library. 24105 24106# Check whether --with-jemalloc was given. 24107if test "${with_jemalloc+set}" = set; then : 24108 withval=$with_jemalloc; with_jemalloc=$withval 24109else 24110 with_jemalloc='no' 24111fi 24112 24113if test "$with_jemalloc" != 'yes' ; then 24114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc " 24115fi 24116 24117# Enable umem, object-caching memory allocation library. 24118 24119# Check whether --with-umem was given. 24120if test "${with_umem+set}" = set; then : 24121 withval=$with_umem; with_umem=$withval 24122else 24123 with_umem='no' 24124fi 24125 24126if test "$with_umem" != 'yes' ; then 24127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 24128fi 24129 24130# 24131# Specify path to shared libstdc++ if not in normal location 24132# 24133 24134# Check whether --with-libstdc was given. 24135if test "${with_libstdc+set}" = set; then : 24136 withval=$with_libstdc; with_libstdc=$withval 24137else 24138 with_libstdc='' 24139fi 24140 24141 24142if test "$with_libstdc" != ''; then 24143 if test -d "$with_libstdc"; then 24144 LIBSTDCLDFLAGS="-L$with_libstdc" 24145 fi 24146fi 24147 24148 24149# Does gcc required -traditional? 24150if test $ac_cv_c_compiler_gnu = yes; then 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 24152$as_echo_n "checking whether $CC needs -traditional... " >&6; } 24153if ${ac_cv_prog_gcc_traditional+:} false; then : 24154 $as_echo_n "(cached) " >&6 24155else 24156 ac_pattern="Autoconf.*'x'" 24157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24158/* end confdefs.h. */ 24159#include <sgtty.h> 24160Autoconf TIOCGETP 24161_ACEOF 24162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24163 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 24164 ac_cv_prog_gcc_traditional=yes 24165else 24166 ac_cv_prog_gcc_traditional=no 24167fi 24168rm -f conftest* 24169 24170 24171 if test $ac_cv_prog_gcc_traditional = no; then 24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24173/* end confdefs.h. */ 24174#include <termio.h> 24175Autoconf TCGETA 24176_ACEOF 24177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24178 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 24179 ac_cv_prog_gcc_traditional=yes 24180fi 24181rm -f conftest* 24182 24183 fi 24184fi 24185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 24186$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 24187 if test $ac_cv_prog_gcc_traditional = yes; then 24188 CC="$CC -traditional" 24189 fi 24190fi 24191 24192 24193######## 24194# 24195# Set defines required to build DLLs and modules using MinGW 24196# 24197######## 24198# These options are set for multi-thread DLL module build 24199# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 24200# module: _DLL 24201# executable/Magick++: _DLL _MAGICKMOD_ 24202MODULE_EXTRA_CPPFLAGS='' 24203LIBRARY_EXTRA_CPPFLAGS='' 24204if test "${native_win32_build}" = 'yes'; then 24205 if test "${libtool_build_shared_libs}" = 'yes'; then 24206 CPPFLAGS="$CPPFLAGS -D_DLL" 24207 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 24208 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 24209 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 24210 if test "$build_modules" = 'yes'; then 24211 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 24212 else 24213 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 24214 fi 24215 else 24216 CPPFLAGS="$CPPFLAGS -D_LIB" 24217 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 24218 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 24219 fi 24220 if test "$with_threads" = 'yes'; then 24221 CPPFLAGS="$CPPFLAGS -D_MT" 24222 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 24223 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 24224 fi 24225fi 24226 24227 24228 24229# Check standard headers 24230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 24231$as_echo_n "checking for ANSI C header files... " >&6; } 24232if ${ac_cv_header_stdc+:} false; then : 24233 $as_echo_n "(cached) " >&6 24234else 24235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24236/* end confdefs.h. */ 24237#include <stdlib.h> 24238#include <stdarg.h> 24239#include <string.h> 24240#include <float.h> 24241 24242int 24243main () 24244{ 24245 24246 ; 24247 return 0; 24248} 24249_ACEOF 24250if ac_fn_c_try_compile "$LINENO"; then : 24251 ac_cv_header_stdc=yes 24252else 24253 ac_cv_header_stdc=no 24254fi 24255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24256 24257if test $ac_cv_header_stdc = yes; then 24258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 24259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24260/* end confdefs.h. */ 24261#include <string.h> 24262 24263_ACEOF 24264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24265 $EGREP "memchr" >/dev/null 2>&1; then : 24266 24267else 24268 ac_cv_header_stdc=no 24269fi 24270rm -f conftest* 24271 24272fi 24273 24274if test $ac_cv_header_stdc = yes; then 24275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 24276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24277/* end confdefs.h. */ 24278#include <stdlib.h> 24279 24280_ACEOF 24281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24282 $EGREP "free" >/dev/null 2>&1; then : 24283 24284else 24285 ac_cv_header_stdc=no 24286fi 24287rm -f conftest* 24288 24289fi 24290 24291if test $ac_cv_header_stdc = yes; then 24292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 24293 if test "$cross_compiling" = yes; then : 24294 : 24295else 24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24297/* end confdefs.h. */ 24298#include <ctype.h> 24299#include <stdlib.h> 24300#if ((' ' & 0x0FF) == 0x020) 24301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 24302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 24303#else 24304# define ISLOWER(c) \ 24305 (('a' <= (c) && (c) <= 'i') \ 24306 || ('j' <= (c) && (c) <= 'r') \ 24307 || ('s' <= (c) && (c) <= 'z')) 24308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 24309#endif 24310 24311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 24312int 24313main () 24314{ 24315 int i; 24316 for (i = 0; i < 256; i++) 24317 if (XOR (islower (i), ISLOWER (i)) 24318 || toupper (i) != TOUPPER (i)) 24319 return 2; 24320 return 0; 24321} 24322_ACEOF 24323if ac_fn_c_try_run "$LINENO"; then : 24324 24325else 24326 ac_cv_header_stdc=no 24327fi 24328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24329 conftest.$ac_objext conftest.beam conftest.$ac_ext 24330fi 24331 24332fi 24333fi 24334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 24335$as_echo "$ac_cv_header_stdc" >&6; } 24336if test $ac_cv_header_stdc = yes; then 24337 24338$as_echo "#define STDC_HEADERS 1" >>confdefs.h 24339 24340fi 24341 24342if ! test x"$ac_cv_header_stdc" = x"yes"; then 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C 24344 header files. Compilation cannot proceed. Please install the ANSI C 24345 headers and rerun this script." >&5 24346$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C 24347 header files. Compilation cannot proceed. Please install the ANSI C 24348 headers and rerun this script." >&2;}; 24349fi 24350 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 24352$as_echo_n "checking whether to enable assertions... " >&6; } 24353 # Check whether --enable-assert was given. 24354if test "${enable_assert+set}" = set; then : 24355 enableval=$enable_assert; ac_enable_assert=$enableval 24356 if test "x$enableval" = xno; then : 24357 24358$as_echo "#define NDEBUG 1" >>confdefs.h 24359 24360elif test "x$enableval" != xyes; then : 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 24362$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 24363 ac_enable_assert=yes 24364fi 24365else 24366 ac_enable_assert=yes 24367fi 24368 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 24370$as_echo "$ac_enable_assert" >&6; } 24371 24372ac_header_dirent=no 24373for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 24374 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 24375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 24376$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 24377if eval \${$as_ac_Header+:} false; then : 24378 $as_echo_n "(cached) " >&6 24379else 24380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24381/* end confdefs.h. */ 24382#include <sys/types.h> 24383#include <$ac_hdr> 24384 24385int 24386main () 24387{ 24388if ((DIR *) 0) 24389return 0; 24390 ; 24391 return 0; 24392} 24393_ACEOF 24394if ac_fn_c_try_compile "$LINENO"; then : 24395 eval "$as_ac_Header=yes" 24396else 24397 eval "$as_ac_Header=no" 24398fi 24399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24400fi 24401eval ac_res=\$$as_ac_Header 24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24403$as_echo "$ac_res" >&6; } 24404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24405 cat >>confdefs.h <<_ACEOF 24406#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 24407_ACEOF 24408 24409ac_header_dirent=$ac_hdr; break 24410fi 24411 24412done 24413# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 24414if test $ac_header_dirent = dirent.h; then 24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24416$as_echo_n "checking for library containing opendir... " >&6; } 24417if ${ac_cv_search_opendir+:} false; then : 24418 $as_echo_n "(cached) " >&6 24419else 24420 ac_func_search_save_LIBS=$LIBS 24421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24422/* end confdefs.h. */ 24423 24424/* Override any GCC internal prototype to avoid an error. 24425 Use char because int might match the return type of a GCC 24426 builtin and then its argument prototype would still apply. */ 24427#ifdef __cplusplus 24428extern "C" 24429#endif 24430char opendir (); 24431int 24432main () 24433{ 24434return opendir (); 24435 ; 24436 return 0; 24437} 24438_ACEOF 24439for ac_lib in '' dir; do 24440 if test -z "$ac_lib"; then 24441 ac_res="none required" 24442 else 24443 ac_res=-l$ac_lib 24444 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24445 fi 24446 if ac_fn_c_try_link "$LINENO"; then : 24447 ac_cv_search_opendir=$ac_res 24448fi 24449rm -f core conftest.err conftest.$ac_objext \ 24450 conftest$ac_exeext 24451 if ${ac_cv_search_opendir+:} false; then : 24452 break 24453fi 24454done 24455if ${ac_cv_search_opendir+:} false; then : 24456 24457else 24458 ac_cv_search_opendir=no 24459fi 24460rm conftest.$ac_ext 24461LIBS=$ac_func_search_save_LIBS 24462fi 24463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24464$as_echo "$ac_cv_search_opendir" >&6; } 24465ac_res=$ac_cv_search_opendir 24466if test "$ac_res" != no; then : 24467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24468 24469fi 24470 24471else 24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24473$as_echo_n "checking for library containing opendir... " >&6; } 24474if ${ac_cv_search_opendir+:} false; then : 24475 $as_echo_n "(cached) " >&6 24476else 24477 ac_func_search_save_LIBS=$LIBS 24478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24479/* end confdefs.h. */ 24480 24481/* Override any GCC internal prototype to avoid an error. 24482 Use char because int might match the return type of a GCC 24483 builtin and then its argument prototype would still apply. */ 24484#ifdef __cplusplus 24485extern "C" 24486#endif 24487char opendir (); 24488int 24489main () 24490{ 24491return opendir (); 24492 ; 24493 return 0; 24494} 24495_ACEOF 24496for ac_lib in '' x; do 24497 if test -z "$ac_lib"; then 24498 ac_res="none required" 24499 else 24500 ac_res=-l$ac_lib 24501 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24502 fi 24503 if ac_fn_c_try_link "$LINENO"; then : 24504 ac_cv_search_opendir=$ac_res 24505fi 24506rm -f core conftest.err conftest.$ac_objext \ 24507 conftest$ac_exeext 24508 if ${ac_cv_search_opendir+:} false; then : 24509 break 24510fi 24511done 24512if ${ac_cv_search_opendir+:} false; then : 24513 24514else 24515 ac_cv_search_opendir=no 24516fi 24517rm conftest.$ac_ext 24518LIBS=$ac_func_search_save_LIBS 24519fi 24520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24521$as_echo "$ac_cv_search_opendir" >&6; } 24522ac_res=$ac_cv_search_opendir 24523if test "$ac_res" != no; then : 24524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24525 24526fi 24527 24528fi 24529 24530 24531# Check additional headers 24532for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h utime.h wchar.h xlocale.h 24533do : 24534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24535ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24537 cat >>confdefs.h <<_ACEOF 24538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24539_ACEOF 24540 24541fi 24542 24543done 24544 24545 24546######## 24547# 24548# Checks for typedefs, structures, and compiler characteristics. 24549# 24550######## 24551 24552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 24553$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 24554if ${ac_cv_header_stdbool_h+:} false; then : 24555 $as_echo_n "(cached) " >&6 24556else 24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24558/* end confdefs.h. */ 24559 24560 #include <stdbool.h> 24561 #ifndef bool 24562 "error: bool is not defined" 24563 #endif 24564 #ifndef false 24565 "error: false is not defined" 24566 #endif 24567 #if false 24568 "error: false is not 0" 24569 #endif 24570 #ifndef true 24571 "error: true is not defined" 24572 #endif 24573 #if true != 1 24574 "error: true is not 1" 24575 #endif 24576 #ifndef __bool_true_false_are_defined 24577 "error: __bool_true_false_are_defined is not defined" 24578 #endif 24579 24580 struct s { _Bool s: 1; _Bool t; } s; 24581 24582 char a[true == 1 ? 1 : -1]; 24583 char b[false == 0 ? 1 : -1]; 24584 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 24585 char d[(bool) 0.5 == true ? 1 : -1]; 24586 /* See body of main program for 'e'. */ 24587 char f[(_Bool) 0.0 == false ? 1 : -1]; 24588 char g[true]; 24589 char h[sizeof (_Bool)]; 24590 char i[sizeof s.t]; 24591 enum { j = false, k = true, l = false * true, m = true * 256 }; 24592 /* The following fails for 24593 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 24594 _Bool n[m]; 24595 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 24596 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 24597 /* Catch a bug in an HP-UX C compiler. See 24598 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 24599 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 24600 */ 24601 _Bool q = true; 24602 _Bool *pq = &q; 24603 24604int 24605main () 24606{ 24607 24608 bool e = &s; 24609 *pq |= q; 24610 *pq |= ! q; 24611 /* Refer to every declared value, to avoid compiler optimizations. */ 24612 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 24613 + !m + !n + !o + !p + !q + !pq); 24614 24615 ; 24616 return 0; 24617} 24618_ACEOF 24619if ac_fn_c_try_compile "$LINENO"; then : 24620 ac_cv_header_stdbool_h=yes 24621else 24622 ac_cv_header_stdbool_h=no 24623fi 24624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24625fi 24626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 24627$as_echo "$ac_cv_header_stdbool_h" >&6; } 24628 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 24629if test "x$ac_cv_type__Bool" = xyes; then : 24630 24631cat >>confdefs.h <<_ACEOF 24632#define HAVE__BOOL 1 24633_ACEOF 24634 24635 24636fi 24637 24638 24639if test $ac_cv_header_stdbool_h = yes; then 24640 24641$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 24642 24643fi 24644 24645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 24646$as_echo_n "checking for working volatile... " >&6; } 24647if ${ac_cv_c_volatile+:} false; then : 24648 $as_echo_n "(cached) " >&6 24649else 24650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24651/* end confdefs.h. */ 24652 24653int 24654main () 24655{ 24656 24657volatile int x; 24658int * volatile y = (int *) 0; 24659return !x && !y; 24660 ; 24661 return 0; 24662} 24663_ACEOF 24664if ac_fn_c_try_compile "$LINENO"; then : 24665 ac_cv_c_volatile=yes 24666else 24667 ac_cv_c_volatile=no 24668fi 24669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24670fi 24671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 24672$as_echo "$ac_cv_c_volatile" >&6; } 24673if test $ac_cv_c_volatile = no; then 24674 24675$as_echo "#define volatile /**/" >>confdefs.h 24676 24677fi 24678 24679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 24680$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 24681if ${ac_cv_c_stringize+:} false; then : 24682 $as_echo_n "(cached) " >&6 24683else 24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24685/* end confdefs.h. */ 24686#define x(y) #y 24687 24688char *s = x(teststring); 24689_ACEOF 24690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24691 $EGREP "#teststring" >/dev/null 2>&1; then : 24692 ac_cv_c_stringize=no 24693else 24694 ac_cv_c_stringize=yes 24695fi 24696rm -f conftest* 24697 24698fi 24699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 24700$as_echo "$ac_cv_c_stringize" >&6; } 24701if test $ac_cv_c_stringize = yes; then 24702 24703$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 24704 24705fi 24706 24707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 24708$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 24709if ${ac_cv_header_stat_broken+:} false; then : 24710 $as_echo_n "(cached) " >&6 24711else 24712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24713/* end confdefs.h. */ 24714#include <sys/types.h> 24715#include <sys/stat.h> 24716 24717#if defined S_ISBLK && defined S_IFDIR 24718extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 24719#endif 24720 24721#if defined S_ISBLK && defined S_IFCHR 24722extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 24723#endif 24724 24725#if defined S_ISLNK && defined S_IFREG 24726extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 24727#endif 24728 24729#if defined S_ISSOCK && defined S_IFREG 24730extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 24731#endif 24732 24733_ACEOF 24734if ac_fn_c_try_compile "$LINENO"; then : 24735 ac_cv_header_stat_broken=no 24736else 24737 ac_cv_header_stat_broken=yes 24738fi 24739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24740fi 24741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 24742$as_echo "$ac_cv_header_stat_broken" >&6; } 24743if test $ac_cv_header_stat_broken = yes; then 24744 24745$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 24746 24747fi 24748 24749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 24750$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 24751if ${ac_cv_header_time+:} false; then : 24752 $as_echo_n "(cached) " >&6 24753else 24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24755/* end confdefs.h. */ 24756#include <sys/types.h> 24757#include <sys/time.h> 24758#include <time.h> 24759 24760int 24761main () 24762{ 24763if ((struct tm *) 0) 24764return 0; 24765 ; 24766 return 0; 24767} 24768_ACEOF 24769if ac_fn_c_try_compile "$LINENO"; then : 24770 ac_cv_header_time=yes 24771else 24772 ac_cv_header_time=no 24773fi 24774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24775fi 24776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 24777$as_echo "$ac_cv_header_time" >&6; } 24778if test $ac_cv_header_time = yes; then 24779 24780$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 24781 24782fi 24783 24784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 24785$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 24786if ${ac_cv_struct_tm+:} false; then : 24787 $as_echo_n "(cached) " >&6 24788else 24789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24790/* end confdefs.h. */ 24791#include <sys/types.h> 24792#include <time.h> 24793 24794int 24795main () 24796{ 24797struct tm tm; 24798 int *p = &tm.tm_sec; 24799 return !p; 24800 ; 24801 return 0; 24802} 24803_ACEOF 24804if ac_fn_c_try_compile "$LINENO"; then : 24805 ac_cv_struct_tm=time.h 24806else 24807 ac_cv_struct_tm=sys/time.h 24808fi 24809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24810fi 24811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 24812$as_echo "$ac_cv_struct_tm" >&6; } 24813if test $ac_cv_struct_tm = sys/time.h; then 24814 24815$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 24816 24817fi 24818 24819ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 24820#include <$ac_cv_struct_tm> 24821 24822" 24823if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 24824 24825cat >>confdefs.h <<_ACEOF 24826#define HAVE_STRUCT_TM_TM_ZONE 1 24827_ACEOF 24828 24829 24830fi 24831 24832if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 24833 24834$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 24835 24836else 24837 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 24838" 24839if test "x$ac_cv_have_decl_tzname" = xyes; then : 24840 ac_have_decl=1 24841else 24842 ac_have_decl=0 24843fi 24844 24845cat >>confdefs.h <<_ACEOF 24846#define HAVE_DECL_TZNAME $ac_have_decl 24847_ACEOF 24848 24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 24850$as_echo_n "checking for tzname... " >&6; } 24851if ${ac_cv_var_tzname+:} false; then : 24852 $as_echo_n "(cached) " >&6 24853else 24854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24855/* end confdefs.h. */ 24856#include <time.h> 24857#if !HAVE_DECL_TZNAME 24858extern char *tzname[]; 24859#endif 24860 24861int 24862main () 24863{ 24864return tzname[0][0]; 24865 ; 24866 return 0; 24867} 24868_ACEOF 24869if ac_fn_c_try_link "$LINENO"; then : 24870 ac_cv_var_tzname=yes 24871else 24872 ac_cv_var_tzname=no 24873fi 24874rm -f core conftest.err conftest.$ac_objext \ 24875 conftest$ac_exeext conftest.$ac_ext 24876fi 24877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 24878$as_echo "$ac_cv_var_tzname" >&6; } 24879 if test $ac_cv_var_tzname = yes; then 24880 24881$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 24882 24883 fi 24884fi 24885 24886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 24887$as_echo_n "checking whether #! works in shell scripts... " >&6; } 24888if ${ac_cv_sys_interpreter+:} false; then : 24889 $as_echo_n "(cached) " >&6 24890else 24891 echo '#! /bin/cat 24892exit 69 24893' >conftest 24894chmod u+x conftest 24895(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 24896if test $? -ne 69; then 24897 ac_cv_sys_interpreter=yes 24898else 24899 ac_cv_sys_interpreter=no 24900fi 24901rm -f conftest 24902fi 24903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 24904$as_echo "$ac_cv_sys_interpreter" >&6; } 24905interpval=$ac_cv_sys_interpreter 24906 24907 24908# 24909# Checks for language qualifiers and semantics. 24910# 24911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 24912$as_echo_n "checking whether char is unsigned... " >&6; } 24913if ${ac_cv_c_char_unsigned+:} false; then : 24914 $as_echo_n "(cached) " >&6 24915else 24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24917/* end confdefs.h. */ 24918$ac_includes_default 24919int 24920main () 24921{ 24922static int test_array [1 - 2 * !(((char) -1) < 0)]; 24923test_array [0] = 0; 24924return test_array [0]; 24925 24926 ; 24927 return 0; 24928} 24929_ACEOF 24930if ac_fn_c_try_compile "$LINENO"; then : 24931 ac_cv_c_char_unsigned=no 24932else 24933 ac_cv_c_char_unsigned=yes 24934fi 24935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24936fi 24937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 24938$as_echo "$ac_cv_c_char_unsigned" >&6; } 24939if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 24940 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 24941 24942fi 24943 24944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 24945$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 24946if ${ac_cv_c_const+:} false; then : 24947 $as_echo_n "(cached) " >&6 24948else 24949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24950/* end confdefs.h. */ 24951 24952int 24953main () 24954{ 24955 24956#ifndef __cplusplus 24957 /* Ultrix mips cc rejects this sort of thing. */ 24958 typedef int charset[2]; 24959 const charset cs = { 0, 0 }; 24960 /* SunOS 4.1.1 cc rejects this. */ 24961 char const *const *pcpcc; 24962 char **ppc; 24963 /* NEC SVR4.0.2 mips cc rejects this. */ 24964 struct point {int x, y;}; 24965 static struct point const zero = {0,0}; 24966 /* AIX XL C 1.02.0.0 rejects this. 24967 It does not let you subtract one const X* pointer from another in 24968 an arm of an if-expression whose if-part is not a constant 24969 expression */ 24970 const char *g = "string"; 24971 pcpcc = &g + (g ? g-g : 0); 24972 /* HPUX 7.0 cc rejects these. */ 24973 ++pcpcc; 24974 ppc = (char**) pcpcc; 24975 pcpcc = (char const *const *) ppc; 24976 { /* SCO 3.2v4 cc rejects this sort of thing. */ 24977 char tx; 24978 char *t = &tx; 24979 char const *s = 0 ? (char *) 0 : (char const *) 0; 24980 24981 *t++ = 0; 24982 if (s) return 0; 24983 } 24984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24985 int x[] = {25, 17}; 24986 const int *foo = &x[0]; 24987 ++foo; 24988 } 24989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24990 typedef const int *iptr; 24991 iptr p = 0; 24992 ++p; 24993 } 24994 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 24995 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24996 struct s { int j; const int *ap[3]; } bx; 24997 struct s *b = &bx; b->j = 5; 24998 } 24999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 25000 const int foo = 10; 25001 if (!foo) return 0; 25002 } 25003 return !cs[0] && !zero.x; 25004#endif 25005 25006 ; 25007 return 0; 25008} 25009_ACEOF 25010if ac_fn_c_try_compile "$LINENO"; then : 25011 ac_cv_c_const=yes 25012else 25013 ac_cv_c_const=no 25014fi 25015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25016fi 25017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 25018$as_echo "$ac_cv_c_const" >&6; } 25019if test $ac_cv_c_const = no; then 25020 25021$as_echo "#define const /**/" >>confdefs.h 25022 25023fi 25024 25025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 25026$as_echo_n "checking for inline... " >&6; } 25027if ${ac_cv_c_inline+:} false; then : 25028 $as_echo_n "(cached) " >&6 25029else 25030 ac_cv_c_inline=no 25031for ac_kw in inline __inline__ __inline; do 25032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25033/* end confdefs.h. */ 25034#ifndef __cplusplus 25035typedef int foo_t; 25036static $ac_kw foo_t static_foo () {return 0; } 25037$ac_kw foo_t foo () {return 0; } 25038#endif 25039 25040_ACEOF 25041if ac_fn_c_try_compile "$LINENO"; then : 25042 ac_cv_c_inline=$ac_kw 25043fi 25044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25045 test "$ac_cv_c_inline" != no && break 25046done 25047 25048fi 25049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 25050$as_echo "$ac_cv_c_inline" >&6; } 25051 25052case $ac_cv_c_inline in 25053 inline | yes) ;; 25054 *) 25055 case $ac_cv_c_inline in 25056 no) ac_val=;; 25057 *) ac_val=$ac_cv_c_inline;; 25058 esac 25059 cat >>confdefs.h <<_ACEOF 25060#ifndef __cplusplus 25061#define inline $ac_val 25062#endif 25063_ACEOF 25064 ;; 25065esac 25066 25067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 25068$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 25069if ${ac_cv_c_restrict+:} false; then : 25070 $as_echo_n "(cached) " >&6 25071else 25072 ac_cv_c_restrict=no 25073 # The order here caters to the fact that C++ does not require restrict. 25074 for ac_kw in __restrict __restrict__ _Restrict restrict; do 25075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25076/* end confdefs.h. */ 25077typedef int * int_ptr; 25078 int foo (int_ptr $ac_kw ip) { 25079 return ip[0]; 25080 } 25081int 25082main () 25083{ 25084int s[1]; 25085 int * $ac_kw t = s; 25086 t[0] = 0; 25087 return foo(t) 25088 ; 25089 return 0; 25090} 25091_ACEOF 25092if ac_fn_c_try_compile "$LINENO"; then : 25093 ac_cv_c_restrict=$ac_kw 25094fi 25095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25096 test "$ac_cv_c_restrict" != no && break 25097 done 25098 25099fi 25100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 25101$as_echo "$ac_cv_c_restrict" >&6; } 25102 25103 case $ac_cv_c_restrict in 25104 restrict) ;; 25105 no) $as_echo "#define restrict /**/" >>confdefs.h 25106 ;; 25107 *) cat >>confdefs.h <<_ACEOF 25108#define restrict $ac_cv_c_restrict 25109_ACEOF 25110 ;; 25111 esac 25112 25113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 25114$as_echo_n "checking for working volatile... " >&6; } 25115if ${ac_cv_c_volatile+:} false; then : 25116 $as_echo_n "(cached) " >&6 25117else 25118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25119/* end confdefs.h. */ 25120 25121int 25122main () 25123{ 25124 25125volatile int x; 25126int * volatile y = (int *) 0; 25127return !x && !y; 25128 ; 25129 return 0; 25130} 25131_ACEOF 25132if ac_fn_c_try_compile "$LINENO"; then : 25133 ac_cv_c_volatile=yes 25134else 25135 ac_cv_c_volatile=no 25136fi 25137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25138fi 25139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 25140$as_echo "$ac_cv_c_volatile" >&6; } 25141if test $ac_cv_c_volatile = no; then 25142 25143$as_echo "#define volatile /**/" >>confdefs.h 25144 25145fi 25146 25147 25148# If words are stored with the most significant byte first (like 25149# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 25151$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 25152if ${ac_cv_c_bigendian+:} false; then : 25153 $as_echo_n "(cached) " >&6 25154else 25155 ac_cv_c_bigendian=unknown 25156 # See if we're dealing with a universal compiler. 25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25158/* end confdefs.h. */ 25159#ifndef __APPLE_CC__ 25160 not a universal capable compiler 25161 #endif 25162 typedef int dummy; 25163 25164_ACEOF 25165if ac_fn_c_try_compile "$LINENO"; then : 25166 25167 # Check for potential -arch flags. It is not universal unless 25168 # there are at least two -arch flags with different values. 25169 ac_arch= 25170 ac_prev= 25171 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 25172 if test -n "$ac_prev"; then 25173 case $ac_word in 25174 i?86 | x86_64 | ppc | ppc64) 25175 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 25176 ac_arch=$ac_word 25177 else 25178 ac_cv_c_bigendian=universal 25179 break 25180 fi 25181 ;; 25182 esac 25183 ac_prev= 25184 elif test "x$ac_word" = "x-arch"; then 25185 ac_prev=arch 25186 fi 25187 done 25188fi 25189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25190 if test $ac_cv_c_bigendian = unknown; then 25191 # See if sys/param.h defines the BYTE_ORDER macro. 25192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25193/* end confdefs.h. */ 25194#include <sys/types.h> 25195 #include <sys/param.h> 25196 25197int 25198main () 25199{ 25200#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 25201 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 25202 && LITTLE_ENDIAN) 25203 bogus endian macros 25204 #endif 25205 25206 ; 25207 return 0; 25208} 25209_ACEOF 25210if ac_fn_c_try_compile "$LINENO"; then : 25211 # It does; now see whether it defined to BIG_ENDIAN or not. 25212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25213/* end confdefs.h. */ 25214#include <sys/types.h> 25215 #include <sys/param.h> 25216 25217int 25218main () 25219{ 25220#if BYTE_ORDER != BIG_ENDIAN 25221 not big endian 25222 #endif 25223 25224 ; 25225 return 0; 25226} 25227_ACEOF 25228if ac_fn_c_try_compile "$LINENO"; then : 25229 ac_cv_c_bigendian=yes 25230else 25231 ac_cv_c_bigendian=no 25232fi 25233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25234fi 25235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25236 fi 25237 if test $ac_cv_c_bigendian = unknown; then 25238 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 25239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25240/* end confdefs.h. */ 25241#include <limits.h> 25242 25243int 25244main () 25245{ 25246#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 25247 bogus endian macros 25248 #endif 25249 25250 ; 25251 return 0; 25252} 25253_ACEOF 25254if ac_fn_c_try_compile "$LINENO"; then : 25255 # It does; now see whether it defined to _BIG_ENDIAN or not. 25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25257/* end confdefs.h. */ 25258#include <limits.h> 25259 25260int 25261main () 25262{ 25263#ifndef _BIG_ENDIAN 25264 not big endian 25265 #endif 25266 25267 ; 25268 return 0; 25269} 25270_ACEOF 25271if ac_fn_c_try_compile "$LINENO"; then : 25272 ac_cv_c_bigendian=yes 25273else 25274 ac_cv_c_bigendian=no 25275fi 25276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25277fi 25278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25279 fi 25280 if test $ac_cv_c_bigendian = unknown; then 25281 # Compile a test program. 25282 if test "$cross_compiling" = yes; then : 25283 # Try to guess by grepping values from an object file. 25284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25285/* end confdefs.h. */ 25286short int ascii_mm[] = 25287 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 25288 short int ascii_ii[] = 25289 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 25290 int use_ascii (int i) { 25291 return ascii_mm[i] + ascii_ii[i]; 25292 } 25293 short int ebcdic_ii[] = 25294 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 25295 short int ebcdic_mm[] = 25296 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 25297 int use_ebcdic (int i) { 25298 return ebcdic_mm[i] + ebcdic_ii[i]; 25299 } 25300 extern int foo; 25301 25302int 25303main () 25304{ 25305return use_ascii (foo) == use_ebcdic (foo); 25306 ; 25307 return 0; 25308} 25309_ACEOF 25310if ac_fn_c_try_compile "$LINENO"; then : 25311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 25312 ac_cv_c_bigendian=yes 25313 fi 25314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 25315 if test "$ac_cv_c_bigendian" = unknown; then 25316 ac_cv_c_bigendian=no 25317 else 25318 # finding both strings is unlikely to happen, but who knows? 25319 ac_cv_c_bigendian=unknown 25320 fi 25321 fi 25322fi 25323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25324else 25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25326/* end confdefs.h. */ 25327$ac_includes_default 25328int 25329main () 25330{ 25331 25332 /* Are we little or big endian? From Harbison&Steele. */ 25333 union 25334 { 25335 long int l; 25336 char c[sizeof (long int)]; 25337 } u; 25338 u.l = 1; 25339 return u.c[sizeof (long int) - 1] == 1; 25340 25341 ; 25342 return 0; 25343} 25344_ACEOF 25345if ac_fn_c_try_run "$LINENO"; then : 25346 ac_cv_c_bigendian=no 25347else 25348 ac_cv_c_bigendian=yes 25349fi 25350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25351 conftest.$ac_objext conftest.beam conftest.$ac_ext 25352fi 25353 25354 fi 25355fi 25356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 25357$as_echo "$ac_cv_c_bigendian" >&6; } 25358 case $ac_cv_c_bigendian in #( 25359 yes) 25360 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 25361;; #( 25362 no) 25363 ;; #( 25364 universal) 25365 25366$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 25367 25368 ;; #( 25369 *) 25370 as_fn_error $? "unknown endianness 25371 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 25372 esac 25373 25374 25375# Define to a suitable type, if standard headers do not define it. 25376ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 25377case $ac_cv_c_int8_t in #( 25378 no|yes) ;; #( 25379 *) 25380 25381cat >>confdefs.h <<_ACEOF 25382#define int8_t $ac_cv_c_int8_t 25383_ACEOF 25384;; 25385esac 25386 25387ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 25388case $ac_cv_c_int16_t in #( 25389 no|yes) ;; #( 25390 *) 25391 25392cat >>confdefs.h <<_ACEOF 25393#define int16_t $ac_cv_c_int16_t 25394_ACEOF 25395;; 25396esac 25397 25398ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 25399case $ac_cv_c_int32_t in #( 25400 no|yes) ;; #( 25401 *) 25402 25403cat >>confdefs.h <<_ACEOF 25404#define int32_t $ac_cv_c_int32_t 25405_ACEOF 25406;; 25407esac 25408 25409ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 25410case $ac_cv_c_int64_t in #( 25411 no|yes) ;; #( 25412 *) 25413 25414cat >>confdefs.h <<_ACEOF 25415#define int64_t $ac_cv_c_int64_t 25416_ACEOF 25417;; 25418esac 25419 25420 25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 25422$as_echo_n "checking for unsigned long long int... " >&6; } 25423if ${ac_cv_type_unsigned_long_long_int+:} false; then : 25424 $as_echo_n "(cached) " >&6 25425else 25426 ac_cv_type_unsigned_long_long_int=yes 25427 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25429/* end confdefs.h. */ 25430 25431 /* For now, do not test the preprocessor; as of 2007 there are too many 25432 implementations with broken preprocessors. Perhaps this can 25433 be revisited in 2012. In the meantime, code should not expect 25434 #if to work with literals wider than 32 bits. */ 25435 /* Test literals. */ 25436 long long int ll = 9223372036854775807ll; 25437 long long int nll = -9223372036854775807LL; 25438 unsigned long long int ull = 18446744073709551615ULL; 25439 /* Test constant expressions. */ 25440 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 25441 ? 1 : -1)]; 25442 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 25443 ? 1 : -1)]; 25444 int i = 63; 25445int 25446main () 25447{ 25448/* Test availability of runtime routines for shift and division. */ 25449 long long int llmax = 9223372036854775807ll; 25450 unsigned long long int ullmax = 18446744073709551615ull; 25451 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 25452 | (llmax / ll) | (llmax % ll) 25453 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 25454 | (ullmax / ull) | (ullmax % ull)); 25455 ; 25456 return 0; 25457} 25458 25459_ACEOF 25460if ac_fn_c_try_link "$LINENO"; then : 25461 25462else 25463 ac_cv_type_unsigned_long_long_int=no 25464fi 25465rm -f core conftest.err conftest.$ac_objext \ 25466 conftest$ac_exeext conftest.$ac_ext 25467 fi 25468fi 25469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 25470$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 25471 if test $ac_cv_type_unsigned_long_long_int = yes; then 25472 25473$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 25474 25475 fi 25476 25477 25478 25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 25480$as_echo_n "checking for long long int... " >&6; } 25481if ${ac_cv_type_long_long_int+:} false; then : 25482 $as_echo_n "(cached) " >&6 25483else 25484 ac_cv_type_long_long_int=yes 25485 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25486 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 25487 if test $ac_cv_type_long_long_int = yes; then 25488 if test "$cross_compiling" = yes; then : 25489 : 25490else 25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25492/* end confdefs.h. */ 25493#include <limits.h> 25494 #ifndef LLONG_MAX 25495 # define HALF \ 25496 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 25497 # define LLONG_MAX (HALF - 1 + HALF) 25498 #endif 25499int 25500main () 25501{ 25502long long int n = 1; 25503 int i; 25504 for (i = 0; ; i++) 25505 { 25506 long long int m = n << i; 25507 if (m >> i != n) 25508 return 1; 25509 if (LLONG_MAX / 2 < m) 25510 break; 25511 } 25512 return 0; 25513 ; 25514 return 0; 25515} 25516_ACEOF 25517if ac_fn_c_try_run "$LINENO"; then : 25518 25519else 25520 ac_cv_type_long_long_int=no 25521fi 25522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25523 conftest.$ac_objext conftest.beam conftest.$ac_ext 25524fi 25525 25526 fi 25527 fi 25528fi 25529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 25530$as_echo "$ac_cv_type_long_long_int" >&6; } 25531 if test $ac_cv_type_long_long_int = yes; then 25532 25533$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25534 25535 fi 25536 25537 25538 25539 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 25540if test "x$ac_cv_type_intmax_t" = xyes; then : 25541 25542$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 25543 25544else 25545 test $ac_cv_type_long_long_int = yes \ 25546 && ac_type='long long int' \ 25547 || ac_type='long int' 25548 25549cat >>confdefs.h <<_ACEOF 25550#define intmax_t $ac_type 25551_ACEOF 25552 25553fi 25554 25555 25556 25557 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 25558if test "x$ac_cv_type_intptr_t" = xyes; then : 25559 25560$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 25561 25562else 25563 for ac_type in 'int' 'long int' 'long long int'; do 25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25565/* end confdefs.h. */ 25566$ac_includes_default 25567int 25568main () 25569{ 25570static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 25571test_array [0] = 0; 25572return test_array [0]; 25573 25574 ; 25575 return 0; 25576} 25577_ACEOF 25578if ac_fn_c_try_compile "$LINENO"; then : 25579 25580cat >>confdefs.h <<_ACEOF 25581#define intptr_t $ac_type 25582_ACEOF 25583 25584 ac_type= 25585fi 25586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25587 test -z "$ac_type" && break 25588 done 25589fi 25590 25591 25592 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 25594$as_echo_n "checking for long double... " >&6; } 25595if ${ac_cv_type_long_double+:} false; then : 25596 $as_echo_n "(cached) " >&6 25597else 25598 if test "$GCC" = yes; then 25599 ac_cv_type_long_double=yes 25600 else 25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25602/* end confdefs.h. */ 25603/* The Stardent Vistra knows sizeof (long double), but does 25604 not support it. */ 25605 long double foo = 0.0L; 25606int 25607main () 25608{ 25609static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 25610 sizeof (double) <= sizeof (long double))]; 25611test_array [0] = 0; 25612return test_array [0]; 25613 25614 ; 25615 return 0; 25616} 25617_ACEOF 25618if ac_fn_c_try_compile "$LINENO"; then : 25619 ac_cv_type_long_double=yes 25620else 25621 ac_cv_type_long_double=no 25622fi 25623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25624 fi 25625fi 25626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 25627$as_echo "$ac_cv_type_long_double" >&6; } 25628 if test $ac_cv_type_long_double = yes; then 25629 25630$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 25631 25632 fi 25633 25634 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 25636$as_echo_n "checking for long double with more range or precision than double... " >&6; } 25637if ${ac_cv_type_long_double_wider+:} false; then : 25638 $as_echo_n "(cached) " >&6 25639else 25640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25641/* end confdefs.h. */ 25642#include <float.h> 25643 long double const a[] = 25644 { 25645 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 25646 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 25647 }; 25648 long double 25649 f (long double x) 25650 { 25651 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 25652 + (x ? f (x) : 'c')); 25653 } 25654 25655int 25656main () 25657{ 25658static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 25659 + (DBL_MANT_DIG < LDBL_MANT_DIG) 25660 - (LDBL_MAX_EXP < DBL_MAX_EXP) 25661 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 25662 && (int) LDBL_EPSILON == 0 25663 )]; 25664test_array [0] = 0; 25665return test_array [0]; 25666 25667 ; 25668 return 0; 25669} 25670_ACEOF 25671if ac_fn_c_try_compile "$LINENO"; then : 25672 ac_cv_type_long_double_wider=yes 25673else 25674 ac_cv_type_long_double_wider=no 25675fi 25676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25677fi 25678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 25679$as_echo "$ac_cv_type_long_double_wider" >&6; } 25680 if test $ac_cv_type_long_double_wider = yes; then 25681 25682$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 25683 25684 fi 25685 25686 25687 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 25689$as_echo_n "checking for long long int... " >&6; } 25690if ${ac_cv_type_long_long_int+:} false; then : 25691 $as_echo_n "(cached) " >&6 25692else 25693 ac_cv_type_long_long_int=yes 25694 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25695 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 25696 if test $ac_cv_type_long_long_int = yes; then 25697 if test "$cross_compiling" = yes; then : 25698 : 25699else 25700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25701/* end confdefs.h. */ 25702#include <limits.h> 25703 #ifndef LLONG_MAX 25704 # define HALF \ 25705 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 25706 # define LLONG_MAX (HALF - 1 + HALF) 25707 #endif 25708int 25709main () 25710{ 25711long long int n = 1; 25712 int i; 25713 for (i = 0; ; i++) 25714 { 25715 long long int m = n << i; 25716 if (m >> i != n) 25717 return 1; 25718 if (LLONG_MAX / 2 < m) 25719 break; 25720 } 25721 return 0; 25722 ; 25723 return 0; 25724} 25725_ACEOF 25726if ac_fn_c_try_run "$LINENO"; then : 25727 25728else 25729 ac_cv_type_long_long_int=no 25730fi 25731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25732 conftest.$ac_objext conftest.beam conftest.$ac_ext 25733fi 25734 25735 fi 25736 fi 25737fi 25738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 25739$as_echo "$ac_cv_type_long_long_int" >&6; } 25740 if test $ac_cv_type_long_long_int = yes; then 25741 25742$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25743 25744 fi 25745 25746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25747$as_echo_n "checking for mbstate_t... " >&6; } 25748if ${ac_cv_type_mbstate_t+:} false; then : 25749 $as_echo_n "(cached) " >&6 25750else 25751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25752/* end confdefs.h. */ 25753$ac_includes_default 25754# include <wchar.h> 25755int 25756main () 25757{ 25758mbstate_t x; return sizeof x; 25759 ; 25760 return 0; 25761} 25762_ACEOF 25763if ac_fn_c_try_compile "$LINENO"; then : 25764 ac_cv_type_mbstate_t=yes 25765else 25766 ac_cv_type_mbstate_t=no 25767fi 25768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25769fi 25770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25771$as_echo "$ac_cv_type_mbstate_t" >&6; } 25772 if test $ac_cv_type_mbstate_t = yes; then 25773 25774$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25775 25776 else 25777 25778$as_echo "#define mbstate_t int" >>confdefs.h 25779 25780 fi 25781ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 25782if test "x$ac_cv_type_mode_t" = xyes; then : 25783 25784else 25785 25786cat >>confdefs.h <<_ACEOF 25787#define mode_t int 25788_ACEOF 25789 25790fi 25791 25792ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 25793if test "x$ac_cv_type_off_t" = xyes; then : 25794 25795else 25796 25797cat >>confdefs.h <<_ACEOF 25798#define off_t long int 25799_ACEOF 25800 25801fi 25802 25803ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 25804if test "x$ac_cv_type_pid_t" = xyes; then : 25805 25806else 25807 25808cat >>confdefs.h <<_ACEOF 25809#define pid_t int 25810_ACEOF 25811 25812fi 25813 25814ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25815if test "x$ac_cv_type_size_t" = xyes; then : 25816 25817else 25818 25819cat >>confdefs.h <<_ACEOF 25820#define size_t unsigned int 25821_ACEOF 25822 25823fi 25824 25825ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 25826if test "x$ac_cv_type_ssize_t" = xyes; then : 25827 25828else 25829 25830cat >>confdefs.h <<_ACEOF 25831#define ssize_t int 25832_ACEOF 25833 25834fi 25835 25836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 25837$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 25838if ${ac_cv_type_uid_t+:} false; then : 25839 $as_echo_n "(cached) " >&6 25840else 25841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25842/* end confdefs.h. */ 25843#include <sys/types.h> 25844 25845_ACEOF 25846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25847 $EGREP "uid_t" >/dev/null 2>&1; then : 25848 ac_cv_type_uid_t=yes 25849else 25850 ac_cv_type_uid_t=no 25851fi 25852rm -f conftest* 25853 25854fi 25855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 25856$as_echo "$ac_cv_type_uid_t" >&6; } 25857if test $ac_cv_type_uid_t = no; then 25858 25859$as_echo "#define uid_t int" >>confdefs.h 25860 25861 25862$as_echo "#define gid_t int" >>confdefs.h 25863 25864fi 25865 25866ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 25867case $ac_cv_c_uint8_t in #( 25868 no|yes) ;; #( 25869 *) 25870 25871$as_echo "#define _UINT8_T 1" >>confdefs.h 25872 25873 25874cat >>confdefs.h <<_ACEOF 25875#define uint8_t $ac_cv_c_uint8_t 25876_ACEOF 25877;; 25878 esac 25879 25880ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 25881case $ac_cv_c_uint16_t in #( 25882 no|yes) ;; #( 25883 *) 25884 25885 25886cat >>confdefs.h <<_ACEOF 25887#define uint16_t $ac_cv_c_uint16_t 25888_ACEOF 25889;; 25890 esac 25891 25892ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 25893case $ac_cv_c_uint32_t in #( 25894 no|yes) ;; #( 25895 *) 25896 25897$as_echo "#define _UINT32_T 1" >>confdefs.h 25898 25899 25900cat >>confdefs.h <<_ACEOF 25901#define uint32_t $ac_cv_c_uint32_t 25902_ACEOF 25903;; 25904 esac 25905 25906ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 25907case $ac_cv_c_uint64_t in #( 25908 no|yes) ;; #( 25909 *) 25910 25911$as_echo "#define _UINT64_T 1" >>confdefs.h 25912 25913 25914cat >>confdefs.h <<_ACEOF 25915#define uint64_t $ac_cv_c_uint64_t 25916_ACEOF 25917;; 25918 esac 25919 25920 25921 25922 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 25923if test "x$ac_cv_type_uintmax_t" = xyes; then : 25924 25925$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 25926 25927else 25928 test $ac_cv_type_unsigned_long_long_int = yes \ 25929 && ac_type='unsigned long long int' \ 25930 || ac_type='unsigned long int' 25931 25932cat >>confdefs.h <<_ACEOF 25933#define uintmax_t $ac_type 25934_ACEOF 25935 25936fi 25937 25938 25939 25940 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 25941if test "x$ac_cv_type_uintptr_t" = xyes; then : 25942 25943$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 25944 25945else 25946 for ac_type in 'unsigned int' 'unsigned long int' \ 25947 'unsigned long long int'; do 25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25949/* end confdefs.h. */ 25950$ac_includes_default 25951int 25952main () 25953{ 25954static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 25955test_array [0] = 0; 25956return test_array [0]; 25957 25958 ; 25959 return 0; 25960} 25961_ACEOF 25962if ac_fn_c_try_compile "$LINENO"; then : 25963 25964cat >>confdefs.h <<_ACEOF 25965#define uintptr_t $ac_type 25966_ACEOF 25967 25968 ac_type= 25969fi 25970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25971 test -z "$ac_type" && break 25972 done 25973fi 25974 25975 25976 25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 25978$as_echo_n "checking for unsigned long long int... " >&6; } 25979if ${ac_cv_type_unsigned_long_long_int+:} false; then : 25980 $as_echo_n "(cached) " >&6 25981else 25982 ac_cv_type_unsigned_long_long_int=yes 25983 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25985/* end confdefs.h. */ 25986 25987 /* For now, do not test the preprocessor; as of 2007 there are too many 25988 implementations with broken preprocessors. Perhaps this can 25989 be revisited in 2012. In the meantime, code should not expect 25990 #if to work with literals wider than 32 bits. */ 25991 /* Test literals. */ 25992 long long int ll = 9223372036854775807ll; 25993 long long int nll = -9223372036854775807LL; 25994 unsigned long long int ull = 18446744073709551615ULL; 25995 /* Test constant expressions. */ 25996 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 25997 ? 1 : -1)]; 25998 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 25999 ? 1 : -1)]; 26000 int i = 63; 26001int 26002main () 26003{ 26004/* Test availability of runtime routines for shift and division. */ 26005 long long int llmax = 9223372036854775807ll; 26006 unsigned long long int ullmax = 18446744073709551615ull; 26007 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 26008 | (llmax / ll) | (llmax % ll) 26009 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 26010 | (ullmax / ull) | (ullmax % ull)); 26011 ; 26012 return 0; 26013} 26014 26015_ACEOF 26016if ac_fn_c_try_link "$LINENO"; then : 26017 26018else 26019 ac_cv_type_unsigned_long_long_int=no 26020fi 26021rm -f core conftest.err conftest.$ac_objext \ 26022 conftest$ac_exeext conftest.$ac_ext 26023 fi 26024fi 26025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 26026$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 26027 if test $ac_cv_type_unsigned_long_long_int = yes; then 26028 26029$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 26030 26031 fi 26032 26033 26034ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h> 26035" 26036if test "x$ac_cv_type_locale_t" = xyes; then : 26037 26038cat >>confdefs.h <<_ACEOF 26039#define HAVE_LOCALE_T 1 26040_ACEOF 26041 26042 26043fi 26044 26045 26046# Float_t and double_t are intended to be the the most efficient type. 26047ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> 26048" 26049if test "x$ac_cv_type_float_t" = xyes; then : 26050 26051cat >>confdefs.h <<_ACEOF 26052#define HAVE_FLOAT_T 1 26053_ACEOF 26054 26055 26056fi 26057 26058ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> 26059" 26060if test "x$ac_cv_type_double_t" = xyes; then : 26061 26062cat >>confdefs.h <<_ACEOF 26063#define HAVE_DOUBLE_T 1 26064_ACEOF 26065 26066 26067fi 26068 26069# The cast to long int works around a bug in the HP C Compiler 26070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26072# This bug is HP SR number 8606223364. 26073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 26074$as_echo_n "checking size of float_t... " >&6; } 26075if ${ac_cv_sizeof_float_t+:} false; then : 26076 $as_echo_n "(cached) " >&6 26077else 26078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> 26079"; then : 26080 26081else 26082 if test "$ac_cv_type_float_t" = yes; then 26083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26085as_fn_error 77 "cannot compute sizeof (float_t) 26086See \`config.log' for more details" "$LINENO" 5; } 26087 else 26088 ac_cv_sizeof_float_t=0 26089 fi 26090fi 26091 26092fi 26093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 26094$as_echo "$ac_cv_sizeof_float_t" >&6; } 26095 26096 26097 26098cat >>confdefs.h <<_ACEOF 26099#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t 26100_ACEOF 26101 26102 26103# The cast to long int works around a bug in the HP C Compiler 26104# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26105# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26106# This bug is HP SR number 8606223364. 26107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 26108$as_echo_n "checking size of double_t... " >&6; } 26109if ${ac_cv_sizeof_double_t+:} false; then : 26110 $as_echo_n "(cached) " >&6 26111else 26112 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> 26113"; then : 26114 26115else 26116 if test "$ac_cv_type_double_t" = yes; then 26117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26119as_fn_error 77 "cannot compute sizeof (double_t) 26120See \`config.log' for more details" "$LINENO" 5; } 26121 else 26122 ac_cv_sizeof_double_t=0 26123 fi 26124fi 26125 26126fi 26127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 26128$as_echo "$ac_cv_sizeof_double_t" >&6; } 26129 26130 26131 26132cat >>confdefs.h <<_ACEOF 26133#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t 26134_ACEOF 26135 26136 26137 26138# Get size of float, double and long double for comparaison. 26139# The cast to long int works around a bug in the HP C Compiler 26140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26142# This bug is HP SR number 8606223364. 26143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 26144$as_echo_n "checking size of float... " >&6; } 26145if ${ac_cv_sizeof_float+:} false; then : 26146 $as_echo_n "(cached) " >&6 26147else 26148 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 26149 26150else 26151 if test "$ac_cv_type_float" = yes; then 26152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26154as_fn_error 77 "cannot compute sizeof (float) 26155See \`config.log' for more details" "$LINENO" 5; } 26156 else 26157 ac_cv_sizeof_float=0 26158 fi 26159fi 26160 26161fi 26162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 26163$as_echo "$ac_cv_sizeof_float" >&6; } 26164 26165 26166 26167cat >>confdefs.h <<_ACEOF 26168#define SIZEOF_FLOAT $ac_cv_sizeof_float 26169_ACEOF 26170 26171 26172# The cast to long int works around a bug in the HP C Compiler 26173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26175# This bug is HP SR number 8606223364. 26176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 26177$as_echo_n "checking size of double... " >&6; } 26178if ${ac_cv_sizeof_double+:} false; then : 26179 $as_echo_n "(cached) " >&6 26180else 26181 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 26182 26183else 26184 if test "$ac_cv_type_double" = yes; then 26185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26187as_fn_error 77 "cannot compute sizeof (double) 26188See \`config.log' for more details" "$LINENO" 5; } 26189 else 26190 ac_cv_sizeof_double=0 26191 fi 26192fi 26193 26194fi 26195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 26196$as_echo "$ac_cv_sizeof_double" >&6; } 26197 26198 26199 26200cat >>confdefs.h <<_ACEOF 26201#define SIZEOF_DOUBLE $ac_cv_sizeof_double 26202_ACEOF 26203 26204 26205# The cast to long int works around a bug in the HP C Compiler 26206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26208# This bug is HP SR number 8606223364. 26209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 26210$as_echo_n "checking size of long double... " >&6; } 26211if ${ac_cv_sizeof_long_double+:} false; then : 26212 $as_echo_n "(cached) " >&6 26213else 26214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 26215 26216else 26217 if test "$ac_cv_type_long_double" = yes; then 26218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26220as_fn_error 77 "cannot compute sizeof (long double) 26221See \`config.log' for more details" "$LINENO" 5; } 26222 else 26223 ac_cv_sizeof_long_double=0 26224 fi 26225fi 26226 26227fi 26228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 26229$as_echo "$ac_cv_sizeof_long_double" >&6; } 26230 26231 26232 26233cat >>confdefs.h <<_ACEOF 26234#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 26235_ACEOF 26236 26237 26238 26239# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 26240# The cast to long int works around a bug in the HP C Compiler 26241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26243# This bug is HP SR number 8606223364. 26244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 26245$as_echo_n "checking size of signed short... " >&6; } 26246if ${ac_cv_sizeof_signed_short+:} false; then : 26247 $as_echo_n "(cached) " >&6 26248else 26249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 26250 26251else 26252 if test "$ac_cv_type_signed_short" = yes; then 26253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26255as_fn_error 77 "cannot compute sizeof (signed short) 26256See \`config.log' for more details" "$LINENO" 5; } 26257 else 26258 ac_cv_sizeof_signed_short=0 26259 fi 26260fi 26261 26262fi 26263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 26264$as_echo "$ac_cv_sizeof_signed_short" >&6; } 26265 26266 26267 26268cat >>confdefs.h <<_ACEOF 26269#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 26270_ACEOF 26271 26272 26273 26274# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 26275# The cast to long int works around a bug in the HP C Compiler 26276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26278# This bug is HP SR number 8606223364. 26279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 26280$as_echo_n "checking size of unsigned short... " >&6; } 26281if ${ac_cv_sizeof_unsigned_short+:} false; then : 26282 $as_echo_n "(cached) " >&6 26283else 26284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 26285 26286else 26287 if test "$ac_cv_type_unsigned_short" = yes; then 26288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26290as_fn_error 77 "cannot compute sizeof (unsigned short) 26291See \`config.log' for more details" "$LINENO" 5; } 26292 else 26293 ac_cv_sizeof_unsigned_short=0 26294 fi 26295fi 26296 26297fi 26298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 26299$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 26300 26301 26302 26303cat >>confdefs.h <<_ACEOF 26304#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 26305_ACEOF 26306 26307 26308 26309# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 26310# The cast to long int works around a bug in the HP C Compiler 26311# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26312# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26313# This bug is HP SR number 8606223364. 26314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 26315$as_echo_n "checking size of signed int... " >&6; } 26316if ${ac_cv_sizeof_signed_int+:} false; then : 26317 $as_echo_n "(cached) " >&6 26318else 26319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 26320 26321else 26322 if test "$ac_cv_type_signed_int" = yes; then 26323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26325as_fn_error 77 "cannot compute sizeof (signed int) 26326See \`config.log' for more details" "$LINENO" 5; } 26327 else 26328 ac_cv_sizeof_signed_int=0 26329 fi 26330fi 26331 26332fi 26333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 26334$as_echo "$ac_cv_sizeof_signed_int" >&6; } 26335 26336 26337 26338cat >>confdefs.h <<_ACEOF 26339#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 26340_ACEOF 26341 26342 26343 26344# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 26345# The cast to long int works around a bug in the HP C Compiler 26346# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26347# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26348# This bug is HP SR number 8606223364. 26349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 26350$as_echo_n "checking size of unsigned int... " >&6; } 26351if ${ac_cv_sizeof_unsigned_int+:} false; then : 26352 $as_echo_n "(cached) " >&6 26353else 26354 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 26355 26356else 26357 if test "$ac_cv_type_unsigned_int" = yes; then 26358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26360as_fn_error 77 "cannot compute sizeof (unsigned int) 26361See \`config.log' for more details" "$LINENO" 5; } 26362 else 26363 ac_cv_sizeof_unsigned_int=0 26364 fi 26365fi 26366 26367fi 26368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 26369$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 26370 26371 26372 26373cat >>confdefs.h <<_ACEOF 26374#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 26375_ACEOF 26376 26377 26378 26379# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 26380# The cast to long int works around a bug in the HP C Compiler 26381# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26382# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26383# This bug is HP SR number 8606223364. 26384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 26385$as_echo_n "checking size of signed long... " >&6; } 26386if ${ac_cv_sizeof_signed_long+:} false; then : 26387 $as_echo_n "(cached) " >&6 26388else 26389 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 26390 26391else 26392 if test "$ac_cv_type_signed_long" = yes; then 26393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26395as_fn_error 77 "cannot compute sizeof (signed long) 26396See \`config.log' for more details" "$LINENO" 5; } 26397 else 26398 ac_cv_sizeof_signed_long=0 26399 fi 26400fi 26401 26402fi 26403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 26404$as_echo "$ac_cv_sizeof_signed_long" >&6; } 26405 26406 26407 26408cat >>confdefs.h <<_ACEOF 26409#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 26410_ACEOF 26411 26412 26413 26414# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 26415# The cast to long int works around a bug in the HP C Compiler 26416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26418# This bug is HP SR number 8606223364. 26419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 26420$as_echo_n "checking size of unsigned long... " >&6; } 26421if ${ac_cv_sizeof_unsigned_long+:} false; then : 26422 $as_echo_n "(cached) " >&6 26423else 26424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 26425 26426else 26427 if test "$ac_cv_type_unsigned_long" = yes; then 26428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26430as_fn_error 77 "cannot compute sizeof (unsigned long) 26431See \`config.log' for more details" "$LINENO" 5; } 26432 else 26433 ac_cv_sizeof_unsigned_long=0 26434 fi 26435fi 26436 26437fi 26438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 26439$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 26440 26441 26442 26443cat >>confdefs.h <<_ACEOF 26444#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 26445_ACEOF 26446 26447 26448 26449# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If 26450# 'signed long long' is not supported then the value defined is zero. 26451# The cast to long int works around a bug in the HP C Compiler 26452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26454# This bug is HP SR number 8606223364. 26455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 26456$as_echo_n "checking size of signed long long... " >&6; } 26457if ${ac_cv_sizeof_signed_long_long+:} false; then : 26458 $as_echo_n "(cached) " >&6 26459else 26460 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 26461 26462else 26463 if test "$ac_cv_type_signed_long_long" = yes; then 26464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26466as_fn_error 77 "cannot compute sizeof (signed long long) 26467See \`config.log' for more details" "$LINENO" 5; } 26468 else 26469 ac_cv_sizeof_signed_long_long=0 26470 fi 26471fi 26472 26473fi 26474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 26475$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 26476 26477 26478 26479cat >>confdefs.h <<_ACEOF 26480#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 26481_ACEOF 26482 26483 26484 26485# Obtain size of a 'unsigned long long' and define as 26486# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 26487# supported then the value defined is zero. 26488# The cast to long int works around a bug in the HP C Compiler 26489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26491# This bug is HP SR number 8606223364. 26492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 26493$as_echo_n "checking size of unsigned long long... " >&6; } 26494if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 26495 $as_echo_n "(cached) " >&6 26496else 26497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 26498 26499else 26500 if test "$ac_cv_type_unsigned_long_long" = yes; then 26501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26503as_fn_error 77 "cannot compute sizeof (unsigned long long) 26504See \`config.log' for more details" "$LINENO" 5; } 26505 else 26506 ac_cv_sizeof_unsigned_long_long=0 26507 fi 26508fi 26509 26510fi 26511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 26512$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 26513 26514 26515 26516cat >>confdefs.h <<_ACEOF 26517#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 26518_ACEOF 26519 26520 26521 26522# Obtain size of off_t and define as SIZEOF_OFF_T 26523# The cast to long int works around a bug in the HP C Compiler 26524# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26525# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26526# This bug is HP SR number 8606223364. 26527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 26528$as_echo_n "checking size of off_t... " >&6; } 26529if ${ac_cv_sizeof_off_t+:} false; then : 26530 $as_echo_n "(cached) " >&6 26531else 26532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 26533 26534else 26535 if test "$ac_cv_type_off_t" = yes; then 26536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26538as_fn_error 77 "cannot compute sizeof (off_t) 26539See \`config.log' for more details" "$LINENO" 5; } 26540 else 26541 ac_cv_sizeof_off_t=0 26542 fi 26543fi 26544 26545fi 26546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 26547$as_echo "$ac_cv_sizeof_off_t" >&6; } 26548 26549 26550 26551cat >>confdefs.h <<_ACEOF 26552#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 26553_ACEOF 26554 26555 26556 26557# Obtain size of size_t and define as SIZEOF_SIZE_T 26558# The cast to long int works around a bug in the HP C Compiler 26559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26561# This bug is HP SR number 8606223364. 26562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 26563$as_echo_n "checking size of size_t... " >&6; } 26564if ${ac_cv_sizeof_size_t+:} false; then : 26565 $as_echo_n "(cached) " >&6 26566else 26567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 26568 26569else 26570 if test "$ac_cv_type_size_t" = yes; then 26571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26573as_fn_error 77 "cannot compute sizeof (size_t) 26574See \`config.log' for more details" "$LINENO" 5; } 26575 else 26576 ac_cv_sizeof_size_t=0 26577 fi 26578fi 26579 26580fi 26581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 26582$as_echo "$ac_cv_sizeof_size_t" >&6; } 26583 26584 26585 26586cat >>confdefs.h <<_ACEOF 26587#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 26588_ACEOF 26589 26590 26591 26592# Obtain size of ssize_t and define as SIZEOF_SSIZE_T 26593# The cast to long int works around a bug in the HP C Compiler 26594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26596# This bug is HP SR number 8606223364. 26597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 26598$as_echo_n "checking size of ssize_t... " >&6; } 26599if ${ac_cv_sizeof_ssize_t+:} false; then : 26600 $as_echo_n "(cached) " >&6 26601else 26602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 26603 26604else 26605 if test "$ac_cv_type_ssize_t" = yes; then 26606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26608as_fn_error 77 "cannot compute sizeof (ssize_t) 26609See \`config.log' for more details" "$LINENO" 5; } 26610 else 26611 ac_cv_sizeof_ssize_t=0 26612 fi 26613fi 26614 26615fi 26616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 26617$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 26618 26619 26620 26621cat >>confdefs.h <<_ACEOF 26622#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 26623_ACEOF 26624 26625 26626 26627# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP 26628# The cast to long int works around a bug in the HP C Compiler 26629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26631# This bug is HP SR number 8606223364. 26632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 26633$as_echo_n "checking size of unsigned int*... " >&6; } 26634if ${ac_cv_sizeof_unsigned_intp+:} false; then : 26635 $as_echo_n "(cached) " >&6 26636else 26637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : 26638 26639else 26640 if test "$ac_cv_type_unsigned_intp" = yes; then 26641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26643as_fn_error 77 "cannot compute sizeof (unsigned int*) 26644See \`config.log' for more details" "$LINENO" 5; } 26645 else 26646 ac_cv_sizeof_unsigned_intp=0 26647 fi 26648fi 26649 26650fi 26651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 26652$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } 26653 26654 26655 26656cat >>confdefs.h <<_ACEOF 26657#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp 26658_ACEOF 26659 26660 26661 26662# 26663# Compute sized types for current CPU and compiler options. 26664# 26665 26666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 26667$as_echo_n "checking for signed 8-bit type... " >&6; } 26668INT8_T='signed char' 26669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 26670$as_echo "$INT8_T" >&6; } 26671 26672 26673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 26674$as_echo_n "checking for unsigned 8-bit type... " >&6; } 26675UINT8_T='unsigned char' 26676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 26677$as_echo "$UINT8_T" >&6; } 26678 26679 26680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 26681$as_echo_n "checking for signed 16-bit type... " >&6; } 26682INT16_T='signed short' 26683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 26684$as_echo "$INT16_T" >&6; } 26685 26686 26687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 26688$as_echo_n "checking for unsigned 16-bit type... " >&6; } 26689UINT16_T='unsigned short' 26690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 26691$as_echo "$UINT16_T" >&6; } 26692 26693 26694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 26695$as_echo_n "checking for signed 32-bit type... " >&6; } 26696INT32_T='none' 26697INT32_F='none' 26698if test $ac_cv_sizeof_signed_int -eq 4; then 26699 INT32_T='signed int' 26700 INT32_F='""' 26701elif test $ac_cv_sizeof_signed_long -eq 4; then 26702 INT32_T='signed long' 26703 INT32_F='"l"' 26704fi 26705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 26706$as_echo "$INT32_T" >&6; } 26707 26708 26709 26710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 26711$as_echo_n "checking for unsigned 32-bit type... " >&6; } 26712UINT32_T='none' 26713UINT32_F='none' 26714if test $ac_cv_sizeof_unsigned_int -eq 4; then 26715 UINT32_T='unsigned int' 26716 UINT32_F='""' 26717elif test $ac_cv_sizeof_unsigned_long -eq 4; then 26718 UINT32_T='unsigned long' 26719 UINT32_F='"l"' 26720fi 26721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 26722$as_echo "$UINT32_T" >&6; } 26723 26724 26725 26726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 26727$as_echo_n "checking for signed 64-bit type... " >&6; } 26728INT64_T='none' 26729INT64_F='none' 26730if test $ac_cv_sizeof_signed_long -eq 8; then 26731 INT64_T='signed long' 26732 INT64_F='"l"' 26733elif test $ac_cv_sizeof_signed_long_long -eq 8; then 26734 INT64_T='signed long long' 26735 INT64_F='"ll"' 26736fi 26737case "${host_os}" in 26738 mingw* ) 26739 INT64_F='"I64"' 26740 ;; 26741esac 26742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 26743$as_echo "$INT64_T" >&6; } 26744 26745 26746 26747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 26748$as_echo_n "checking for unsigned 64-bit type... " >&6; } 26749UINT64_T='none' 26750UINT64_F='none' 26751if test $ac_cv_sizeof_unsigned_long -eq 8; then 26752 UINT64_T='unsigned long' 26753 UINT64_F='"l"' 26754elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then 26755 UINT64_T='unsigned long long' 26756 UINT64_F='"ll"' 26757fi 26758case "${host_os}" in 26759 mingw* ) 26760 UINT64_F='"I64"' 26761 ;; 26762esac 26763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 26764$as_echo "$UINT64_T" >&6; } 26765 26766 26767 26768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 26769$as_echo_n "checking for unsigned maximum type... " >&6; } 26770UINTMAX_T='none' 26771UINTMAX_F='none' 26772if test "$UINT64_T" != 'none'; then 26773 UINTMAX_T=$UINT64_T 26774 UINTMAX_F=$UINT64_F 26775elif test "$UINT32_T" != 'none'; then 26776 UINTMAX_T=$UINT32_T 26777 UINTMAX_F=$UINT32_F 26778fi 26779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 26780$as_echo "$UINTMAX_T" >&6; } 26781 26782 26783 26784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 26785$as_echo_n "checking for pointer difference type... " >&6; } 26786UINTPTR_T='none' 26787UINTPTR_F='none' 26788if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then 26789 UINTPTR_T='unsigned long' 26790 UINTPTR_F='"l"' 26791elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then 26792 UINTPTR_T='unsigned long long' 26793 UINTPTR_F='"ll"' 26794fi 26795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 26796$as_echo "$UINTPTR_T" >&6; } 26797 26798 26799 26800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 26801$as_echo_n "checking whether our compiler supports __func__... " >&6; } 26802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26803/* end confdefs.h. */ 26804 26805int 26806main () 26807{ 26808{ const char *func = __func__; return(func != 0 ? 0 : 1); } 26809 ; 26810 return 0; 26811} 26812_ACEOF 26813if ac_fn_c_try_compile "$LINENO"; then : 26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26815$as_echo "yes" >&6; } 26816else 26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26818$as_echo "no" >&6; } 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 26820$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 26821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26822/* end confdefs.h. */ 26823 26824int 26825main () 26826{ 26827{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } 26828 ; 26829 return 0; 26830} 26831_ACEOF 26832if ac_fn_c_try_compile "$LINENO"; then : 26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26834$as_echo "yes" >&6; } 26835 26836$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 26837 26838else 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26840$as_echo "no" >&6; } 26841 26842$as_echo "#define __func__ __FILE__" >>confdefs.h 26843 26844fi 26845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26846fi 26847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26848 26849######## 26850# 26851# Check for functions 26852# 26853######## 26854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 26855$as_echo_n "checking whether closedir returns void... " >&6; } 26856if ${ac_cv_func_closedir_void+:} false; then : 26857 $as_echo_n "(cached) " >&6 26858else 26859 if test "$cross_compiling" = yes; then : 26860 ac_cv_func_closedir_void=yes 26861else 26862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26863/* end confdefs.h. */ 26864$ac_includes_default 26865#include <$ac_header_dirent> 26866#ifndef __cplusplus 26867int closedir (); 26868#endif 26869 26870int 26871main () 26872{ 26873return closedir (opendir (".")) != 0; 26874 ; 26875 return 0; 26876} 26877_ACEOF 26878if ac_fn_c_try_run "$LINENO"; then : 26879 ac_cv_func_closedir_void=no 26880else 26881 ac_cv_func_closedir_void=yes 26882fi 26883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26884 conftest.$ac_objext conftest.beam conftest.$ac_ext 26885fi 26886 26887fi 26888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 26889$as_echo "$ac_cv_func_closedir_void" >&6; } 26890if test $ac_cv_func_closedir_void = yes; then 26891 26892$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 26893 26894fi 26895 26896 26897 26898 26899 for ac_header in $ac_header_list 26900do : 26901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26902ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 26903" 26904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26905 cat >>confdefs.h <<_ACEOF 26906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26907_ACEOF 26908 26909fi 26910 26911done 26912 26913 26914 26915 26916 26917 26918 26919 26920for ac_func in getpagesize 26921do : 26922 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 26923if test "x$ac_cv_func_getpagesize" = xyes; then : 26924 cat >>confdefs.h <<_ACEOF 26925#define HAVE_GETPAGESIZE 1 26926_ACEOF 26927 26928fi 26929done 26930 26931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 26932$as_echo_n "checking for working mmap... " >&6; } 26933if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 26934 $as_echo_n "(cached) " >&6 26935else 26936 if test "$cross_compiling" = yes; then : 26937 ac_cv_func_mmap_fixed_mapped=no 26938else 26939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26940/* end confdefs.h. */ 26941$ac_includes_default 26942/* malloc might have been renamed as rpl_malloc. */ 26943#undef malloc 26944 26945/* Thanks to Mike Haertel and Jim Avera for this test. 26946 Here is a matrix of mmap possibilities: 26947 mmap private not fixed 26948 mmap private fixed at somewhere currently unmapped 26949 mmap private fixed at somewhere already mapped 26950 mmap shared not fixed 26951 mmap shared fixed at somewhere currently unmapped 26952 mmap shared fixed at somewhere already mapped 26953 For private mappings, we should verify that changes cannot be read() 26954 back from the file, nor mmap's back from the file at a different 26955 address. (There have been systems where private was not correctly 26956 implemented like the infamous i386 svr4.0, and systems where the 26957 VM page cache was not coherent with the file system buffer cache 26958 like early versions of FreeBSD and possibly contemporary NetBSD.) 26959 For shared mappings, we should conversely verify that changes get 26960 propagated back to all the places they're supposed to be. 26961 26962 Grep wants private fixed already mapped. 26963 The main things grep needs to know about mmap are: 26964 * does it exist and is it safe to write into the mmap'd area 26965 * how to use it (BSD variants) */ 26966 26967#include <fcntl.h> 26968#include <sys/mman.h> 26969 26970#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 26971char *malloc (); 26972#endif 26973 26974/* This mess was copied from the GNU getpagesize.h. */ 26975#ifndef HAVE_GETPAGESIZE 26976# ifdef _SC_PAGESIZE 26977# define getpagesize() sysconf(_SC_PAGESIZE) 26978# else /* no _SC_PAGESIZE */ 26979# ifdef HAVE_SYS_PARAM_H 26980# include <sys/param.h> 26981# ifdef EXEC_PAGESIZE 26982# define getpagesize() EXEC_PAGESIZE 26983# else /* no EXEC_PAGESIZE */ 26984# ifdef NBPG 26985# define getpagesize() NBPG * CLSIZE 26986# ifndef CLSIZE 26987# define CLSIZE 1 26988# endif /* no CLSIZE */ 26989# else /* no NBPG */ 26990# ifdef NBPC 26991# define getpagesize() NBPC 26992# else /* no NBPC */ 26993# ifdef PAGESIZE 26994# define getpagesize() PAGESIZE 26995# endif /* PAGESIZE */ 26996# endif /* no NBPC */ 26997# endif /* no NBPG */ 26998# endif /* no EXEC_PAGESIZE */ 26999# else /* no HAVE_SYS_PARAM_H */ 27000# define getpagesize() 8192 /* punt totally */ 27001# endif /* no HAVE_SYS_PARAM_H */ 27002# endif /* no _SC_PAGESIZE */ 27003 27004#endif /* no HAVE_GETPAGESIZE */ 27005 27006int 27007main () 27008{ 27009 char *data, *data2, *data3; 27010 const char *cdata2; 27011 int i, pagesize; 27012 int fd, fd2; 27013 27014 pagesize = getpagesize (); 27015 27016 /* First, make a file with some known garbage in it. */ 27017 data = (char *) malloc (pagesize); 27018 if (!data) 27019 return 1; 27020 for (i = 0; i < pagesize; ++i) 27021 *(data + i) = rand (); 27022 umask (0); 27023 fd = creat ("conftest.mmap", 0600); 27024 if (fd < 0) 27025 return 2; 27026 if (write (fd, data, pagesize) != pagesize) 27027 return 3; 27028 close (fd); 27029 27030 /* Next, check that the tail of a page is zero-filled. File must have 27031 non-zero length, otherwise we risk SIGBUS for entire page. */ 27032 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 27033 if (fd2 < 0) 27034 return 4; 27035 cdata2 = ""; 27036 if (write (fd2, cdata2, 1) != 1) 27037 return 5; 27038 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 27039 if (data2 == MAP_FAILED) 27040 return 6; 27041 for (i = 0; i < pagesize; ++i) 27042 if (*(data2 + i)) 27043 return 7; 27044 close (fd2); 27045 if (munmap (data2, pagesize)) 27046 return 8; 27047 27048 /* Next, try to mmap the file at a fixed address which already has 27049 something else allocated at it. If we can, also make sure that 27050 we see the same garbage. */ 27051 fd = open ("conftest.mmap", O_RDWR); 27052 if (fd < 0) 27053 return 9; 27054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 27055 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 27056 return 10; 27057 for (i = 0; i < pagesize; ++i) 27058 if (*(data + i) != *(data2 + i)) 27059 return 11; 27060 27061 /* Finally, make sure that changes to the mapped area do not 27062 percolate back to the file as seen by read(). (This is a bug on 27063 some variants of i386 svr4.0.) */ 27064 for (i = 0; i < pagesize; ++i) 27065 *(data2 + i) = *(data2 + i) + 1; 27066 data3 = (char *) malloc (pagesize); 27067 if (!data3) 27068 return 12; 27069 if (read (fd, data3, pagesize) != pagesize) 27070 return 13; 27071 for (i = 0; i < pagesize; ++i) 27072 if (*(data + i) != *(data3 + i)) 27073 return 14; 27074 close (fd); 27075 return 0; 27076} 27077_ACEOF 27078if ac_fn_c_try_run "$LINENO"; then : 27079 ac_cv_func_mmap_fixed_mapped=yes 27080else 27081 ac_cv_func_mmap_fixed_mapped=no 27082fi 27083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27084 conftest.$ac_objext conftest.beam conftest.$ac_ext 27085fi 27086 27087fi 27088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 27089$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 27090if test $ac_cv_func_mmap_fixed_mapped = yes; then 27091 27092$as_echo "#define HAVE_MMAP 1" >>confdefs.h 27093 27094fi 27095rm -f conftest.mmap conftest.txt 27096 27097for ac_header in vfork.h 27098do : 27099 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 27100if test "x$ac_cv_header_vfork_h" = xyes; then : 27101 cat >>confdefs.h <<_ACEOF 27102#define HAVE_VFORK_H 1 27103_ACEOF 27104 27105fi 27106 27107done 27108 27109for ac_func in fork vfork 27110do : 27111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27112ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27113if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27114 cat >>confdefs.h <<_ACEOF 27115#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27116_ACEOF 27117 27118fi 27119done 27120 27121if test "x$ac_cv_func_fork" = xyes; then 27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 27123$as_echo_n "checking for working fork... " >&6; } 27124if ${ac_cv_func_fork_works+:} false; then : 27125 $as_echo_n "(cached) " >&6 27126else 27127 if test "$cross_compiling" = yes; then : 27128 ac_cv_func_fork_works=cross 27129else 27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27131/* end confdefs.h. */ 27132$ac_includes_default 27133int 27134main () 27135{ 27136 27137 /* By Ruediger Kuhlmann. */ 27138 return fork () < 0; 27139 27140 ; 27141 return 0; 27142} 27143_ACEOF 27144if ac_fn_c_try_run "$LINENO"; then : 27145 ac_cv_func_fork_works=yes 27146else 27147 ac_cv_func_fork_works=no 27148fi 27149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27150 conftest.$ac_objext conftest.beam conftest.$ac_ext 27151fi 27152 27153fi 27154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 27155$as_echo "$ac_cv_func_fork_works" >&6; } 27156 27157else 27158 ac_cv_func_fork_works=$ac_cv_func_fork 27159fi 27160if test "x$ac_cv_func_fork_works" = xcross; then 27161 case $host in 27162 *-*-amigaos* | *-*-msdosdjgpp*) 27163 # Override, as these systems have only a dummy fork() stub 27164 ac_cv_func_fork_works=no 27165 ;; 27166 *) 27167 ac_cv_func_fork_works=yes 27168 ;; 27169 esac 27170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 27171$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 27172fi 27173ac_cv_func_vfork_works=$ac_cv_func_vfork 27174if test "x$ac_cv_func_vfork" = xyes; then 27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 27176$as_echo_n "checking for working vfork... " >&6; } 27177if ${ac_cv_func_vfork_works+:} false; then : 27178 $as_echo_n "(cached) " >&6 27179else 27180 if test "$cross_compiling" = yes; then : 27181 ac_cv_func_vfork_works=cross 27182else 27183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27184/* end confdefs.h. */ 27185/* Thanks to Paul Eggert for this test. */ 27186$ac_includes_default 27187#include <sys/wait.h> 27188#ifdef HAVE_VFORK_H 27189# include <vfork.h> 27190#endif 27191/* On some sparc systems, changes by the child to local and incoming 27192 argument registers are propagated back to the parent. The compiler 27193 is told about this with #include <vfork.h>, but some compilers 27194 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 27195 static variable whose address is put into a register that is 27196 clobbered by the vfork. */ 27197static void 27198#ifdef __cplusplus 27199sparc_address_test (int arg) 27200# else 27201sparc_address_test (arg) int arg; 27202#endif 27203{ 27204 static pid_t child; 27205 if (!child) { 27206 child = vfork (); 27207 if (child < 0) { 27208 perror ("vfork"); 27209 _exit(2); 27210 } 27211 if (!child) { 27212 arg = getpid(); 27213 write(-1, "", 0); 27214 _exit (arg); 27215 } 27216 } 27217} 27218 27219int 27220main () 27221{ 27222 pid_t parent = getpid (); 27223 pid_t child; 27224 27225 sparc_address_test (0); 27226 27227 child = vfork (); 27228 27229 if (child == 0) { 27230 /* Here is another test for sparc vfork register problems. This 27231 test uses lots of local variables, at least as many local 27232 variables as main has allocated so far including compiler 27233 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 27234 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 27235 reuse the register of parent for one of the local variables, 27236 since it will think that parent can't possibly be used any more 27237 in this routine. Assigning to the local variable will thus 27238 munge parent in the parent process. */ 27239 pid_t 27240 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 27241 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 27242 /* Convince the compiler that p..p7 are live; otherwise, it might 27243 use the same hardware register for all 8 local variables. */ 27244 if (p != p1 || p != p2 || p != p3 || p != p4 27245 || p != p5 || p != p6 || p != p7) 27246 _exit(1); 27247 27248 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 27249 from child file descriptors. If the child closes a descriptor 27250 before it execs or exits, this munges the parent's descriptor 27251 as well. Test for this by closing stdout in the child. */ 27252 _exit(close(fileno(stdout)) != 0); 27253 } else { 27254 int status; 27255 struct stat st; 27256 27257 while (wait(&status) != child) 27258 ; 27259 return ( 27260 /* Was there some problem with vforking? */ 27261 child < 0 27262 27263 /* Did the child fail? (This shouldn't happen.) */ 27264 || status 27265 27266 /* Did the vfork/compiler bug occur? */ 27267 || parent != getpid() 27268 27269 /* Did the file descriptor bug occur? */ 27270 || fstat(fileno(stdout), &st) != 0 27271 ); 27272 } 27273} 27274_ACEOF 27275if ac_fn_c_try_run "$LINENO"; then : 27276 ac_cv_func_vfork_works=yes 27277else 27278 ac_cv_func_vfork_works=no 27279fi 27280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27281 conftest.$ac_objext conftest.beam conftest.$ac_ext 27282fi 27283 27284fi 27285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 27286$as_echo "$ac_cv_func_vfork_works" >&6; } 27287 27288fi; 27289if test "x$ac_cv_func_fork_works" = xcross; then 27290 ac_cv_func_vfork_works=$ac_cv_func_vfork 27291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 27292$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 27293fi 27294 27295if test "x$ac_cv_func_vfork_works" = xyes; then 27296 27297$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 27298 27299else 27300 27301$as_echo "#define vfork fork" >>confdefs.h 27302 27303fi 27304if test "x$ac_cv_func_fork_works" = xyes; then 27305 27306$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 27307 27308fi 27309 27310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 27311$as_echo_n "checking for working memcmp... " >&6; } 27312if ${ac_cv_func_memcmp_working+:} false; then : 27313 $as_echo_n "(cached) " >&6 27314else 27315 if test "$cross_compiling" = yes; then : 27316 ac_cv_func_memcmp_working=no 27317else 27318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27319/* end confdefs.h. */ 27320$ac_includes_default 27321int 27322main () 27323{ 27324 27325 /* Some versions of memcmp are not 8-bit clean. */ 27326 char c0 = '\100', c1 = '\200', c2 = '\201'; 27327 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 27328 return 1; 27329 27330 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 27331 or more and with at least one buffer not starting on a 4-byte boundary. 27332 William Lewis provided this test program. */ 27333 { 27334 char foo[21]; 27335 char bar[21]; 27336 int i; 27337 for (i = 0; i < 4; i++) 27338 { 27339 char *a = foo + i; 27340 char *b = bar + i; 27341 strcpy (a, "--------01111111"); 27342 strcpy (b, "--------10000000"); 27343 if (memcmp (a, b, 16) >= 0) 27344 return 1; 27345 } 27346 return 0; 27347 } 27348 27349 ; 27350 return 0; 27351} 27352_ACEOF 27353if ac_fn_c_try_run "$LINENO"; then : 27354 ac_cv_func_memcmp_working=yes 27355else 27356 ac_cv_func_memcmp_working=no 27357fi 27358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27359 conftest.$ac_objext conftest.beam conftest.$ac_ext 27360fi 27361 27362fi 27363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 27364$as_echo "$ac_cv_func_memcmp_working" >&6; } 27365test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 27366 *" memcmp.$ac_objext "* ) ;; 27367 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 27368 ;; 27369esac 27370 27371 27372for ac_header in sys/select.h sys/socket.h 27373do : 27374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27375ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27377 cat >>confdefs.h <<_ACEOF 27378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27379_ACEOF 27380 27381fi 27382 27383done 27384 27385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 27386$as_echo_n "checking types of arguments for select... " >&6; } 27387if ${ac_cv_func_select_args+:} false; then : 27388 $as_echo_n "(cached) " >&6 27389else 27390 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 27391 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 27392 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 27393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27394/* end confdefs.h. */ 27395$ac_includes_default 27396#ifdef HAVE_SYS_SELECT_H 27397# include <sys/select.h> 27398#endif 27399#ifdef HAVE_SYS_SOCKET_H 27400# include <sys/socket.h> 27401#endif 27402 27403int 27404main () 27405{ 27406extern int select ($ac_arg1, 27407 $ac_arg234, $ac_arg234, $ac_arg234, 27408 $ac_arg5); 27409 ; 27410 return 0; 27411} 27412_ACEOF 27413if ac_fn_c_try_compile "$LINENO"; then : 27414 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 27415fi 27416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27417 done 27418 done 27419done 27420# Provide a safe default value. 27421: "${ac_cv_func_select_args=int,int *,struct timeval *}" 27422 27423fi 27424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 27425$as_echo "$ac_cv_func_select_args" >&6; } 27426ac_save_IFS=$IFS; IFS=',' 27427set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 27428IFS=$ac_save_IFS 27429shift 27430 27431cat >>confdefs.h <<_ACEOF 27432#define SELECT_TYPE_ARG1 $1 27433_ACEOF 27434 27435 27436cat >>confdefs.h <<_ACEOF 27437#define SELECT_TYPE_ARG234 ($2) 27438_ACEOF 27439 27440 27441cat >>confdefs.h <<_ACEOF 27442#define SELECT_TYPE_ARG5 ($3) 27443_ACEOF 27444 27445rm -f conftest* 27446 27447if ${ac_cv_func_setvbuf_reversed+:} false; then : 27448 $as_echo_n "(cached) " >&6 27449else 27450 ac_cv_func_setvbuf_reversed=no 27451fi 27452 27453 27454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 27455$as_echo_n "checking return type of signal handlers... " >&6; } 27456if ${ac_cv_type_signal+:} false; then : 27457 $as_echo_n "(cached) " >&6 27458else 27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27460/* end confdefs.h. */ 27461#include <sys/types.h> 27462#include <signal.h> 27463 27464int 27465main () 27466{ 27467return *(signal (0, 0)) (0) == 1; 27468 ; 27469 return 0; 27470} 27471_ACEOF 27472if ac_fn_c_try_compile "$LINENO"; then : 27473 ac_cv_type_signal=int 27474else 27475 ac_cv_type_signal=void 27476fi 27477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27478fi 27479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 27480$as_echo "$ac_cv_type_signal" >&6; } 27481 27482cat >>confdefs.h <<_ACEOF 27483#define RETSIGTYPE $ac_cv_type_signal 27484_ACEOF 27485 27486 27487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 27488$as_echo_n "checking for working strtod... " >&6; } 27489if ${ac_cv_func_strtod+:} false; then : 27490 $as_echo_n "(cached) " >&6 27491else 27492 if test "$cross_compiling" = yes; then : 27493 ac_cv_func_strtod=no 27494else 27495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27496/* end confdefs.h. */ 27497 27498$ac_includes_default 27499#ifndef strtod 27500double strtod (); 27501#endif 27502int 27503main() 27504{ 27505 { 27506 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 27507 char *string = " +69"; 27508 char *term; 27509 double value; 27510 value = strtod (string, &term); 27511 if (value != 69 || term != (string + 4)) 27512 return 1; 27513 } 27514 27515 { 27516 /* Under Solaris 2.4, strtod returns the wrong value for the 27517 terminating character under some conditions. */ 27518 char *string = "NaN"; 27519 char *term; 27520 strtod (string, &term); 27521 if (term != string && *(term - 1) == 0) 27522 return 1; 27523 } 27524 return 0; 27525} 27526 27527_ACEOF 27528if ac_fn_c_try_run "$LINENO"; then : 27529 ac_cv_func_strtod=yes 27530else 27531 ac_cv_func_strtod=no 27532fi 27533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27534 conftest.$ac_objext conftest.beam conftest.$ac_ext 27535fi 27536 27537fi 27538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 27539$as_echo "$ac_cv_func_strtod" >&6; } 27540if test $ac_cv_func_strtod = no; then 27541 case " $LIBOBJS " in 27542 *" strtod.$ac_objext "* ) ;; 27543 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 27544 ;; 27545esac 27546 27547ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 27548if test "x$ac_cv_func_pow" = xyes; then : 27549 27550fi 27551 27552if test $ac_cv_func_pow = no; then 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 27554$as_echo_n "checking for pow in -lm... " >&6; } 27555if ${ac_cv_lib_m_pow+:} false; then : 27556 $as_echo_n "(cached) " >&6 27557else 27558 ac_check_lib_save_LIBS=$LIBS 27559LIBS="-lm $LIBS" 27560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27561/* end confdefs.h. */ 27562 27563/* Override any GCC internal prototype to avoid an error. 27564 Use char because int might match the return type of a GCC 27565 builtin and then its argument prototype would still apply. */ 27566#ifdef __cplusplus 27567extern "C" 27568#endif 27569char pow (); 27570int 27571main () 27572{ 27573return pow (); 27574 ; 27575 return 0; 27576} 27577_ACEOF 27578if ac_fn_c_try_link "$LINENO"; then : 27579 ac_cv_lib_m_pow=yes 27580else 27581 ac_cv_lib_m_pow=no 27582fi 27583rm -f core conftest.err conftest.$ac_objext \ 27584 conftest$ac_exeext conftest.$ac_ext 27585LIBS=$ac_check_lib_save_LIBS 27586fi 27587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 27588$as_echo "$ac_cv_lib_m_pow" >&6; } 27589if test "x$ac_cv_lib_m_pow" = xyes; then : 27590 POW_LIB=-lm 27591else 27592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 27593$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 27594fi 27595 27596fi 27597 27598fi 27599 27600ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 27601if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 27602 ac_have_decl=1 27603else 27604 ac_have_decl=0 27605fi 27606 27607cat >>confdefs.h <<_ACEOF 27608#define HAVE_DECL_STRERROR_R $ac_have_decl 27609_ACEOF 27610 27611for ac_func in strerror_r 27612do : 27613 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 27614if test "x$ac_cv_func_strerror_r" = xyes; then : 27615 cat >>confdefs.h <<_ACEOF 27616#define HAVE_STRERROR_R 1 27617_ACEOF 27618 27619fi 27620done 27621 27622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 27623$as_echo_n "checking whether strerror_r returns char *... " >&6; } 27624if ${ac_cv_func_strerror_r_char_p+:} false; then : 27625 $as_echo_n "(cached) " >&6 27626else 27627 27628 ac_cv_func_strerror_r_char_p=no 27629 if test $ac_cv_have_decl_strerror_r = yes; then 27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27631/* end confdefs.h. */ 27632$ac_includes_default 27633int 27634main () 27635{ 27636 27637 char buf[100]; 27638 char x = *strerror_r (0, buf, sizeof buf); 27639 char *p = strerror_r (0, buf, sizeof buf); 27640 return !p || x; 27641 27642 ; 27643 return 0; 27644} 27645_ACEOF 27646if ac_fn_c_try_compile "$LINENO"; then : 27647 ac_cv_func_strerror_r_char_p=yes 27648fi 27649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27650 else 27651 # strerror_r is not declared. Choose between 27652 # systems that have relatively inaccessible declarations for the 27653 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 27654 # former has a strerror_r that returns char*, while the latter 27655 # has a strerror_r that returns `int'. 27656 # This test should segfault on the DEC system. 27657 if test "$cross_compiling" = yes; then : 27658 : 27659else 27660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27661/* end confdefs.h. */ 27662$ac_includes_default 27663 extern char *strerror_r (); 27664int 27665main () 27666{ 27667char buf[100]; 27668 char x = *strerror_r (0, buf, sizeof buf); 27669 return ! isalpha (x); 27670 ; 27671 return 0; 27672} 27673_ACEOF 27674if ac_fn_c_try_run "$LINENO"; then : 27675 ac_cv_func_strerror_r_char_p=yes 27676fi 27677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27678 conftest.$ac_objext conftest.beam conftest.$ac_ext 27679fi 27680 27681 fi 27682 27683fi 27684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 27685$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 27686if test $ac_cv_func_strerror_r_char_p = yes; then 27687 27688$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 27689 27690fi 27691 27692for ac_func in vprintf 27693do : 27694 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 27695if test "x$ac_cv_func_vprintf" = xyes; then : 27696 cat >>confdefs.h <<_ACEOF 27697#define HAVE_VPRINTF 1 27698_ACEOF 27699 27700ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 27701if test "x$ac_cv_func__doprnt" = xyes; then : 27702 27703$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 27704 27705fi 27706 27707fi 27708done 27709 27710 27711 27712# 27713# Find math library 27714# 27715MATH_LIBS='' 27716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 27717$as_echo_n "checking for sqrt in -lm... " >&6; } 27718if ${ac_cv_lib_m_sqrt+:} false; then : 27719 $as_echo_n "(cached) " >&6 27720else 27721 ac_check_lib_save_LIBS=$LIBS 27722LIBS="-lm $LIBS" 27723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27724/* end confdefs.h. */ 27725 27726/* Override any GCC internal prototype to avoid an error. 27727 Use char because int might match the return type of a GCC 27728 builtin and then its argument prototype would still apply. */ 27729#ifdef __cplusplus 27730extern "C" 27731#endif 27732char sqrt (); 27733int 27734main () 27735{ 27736return sqrt (); 27737 ; 27738 return 0; 27739} 27740_ACEOF 27741if ac_fn_c_try_link "$LINENO"; then : 27742 ac_cv_lib_m_sqrt=yes 27743else 27744 ac_cv_lib_m_sqrt=no 27745fi 27746rm -f core conftest.err conftest.$ac_objext \ 27747 conftest$ac_exeext conftest.$ac_ext 27748LIBS=$ac_check_lib_save_LIBS 27749fi 27750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 27751$as_echo "$ac_cv_lib_m_sqrt" >&6; } 27752if test "x$ac_cv_lib_m_sqrt" = xyes; then : 27753 MATH_LIBS="-lm" 27754fi 27755 27756LIBS="$MATH_LIBS $LIBS" 27757 27758 27759# 27760# Find socket library 27761# 27762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 27763$as_echo_n "checking for library containing gethostbyname... " >&6; } 27764if ${ac_cv_search_gethostbyname+:} false; then : 27765 $as_echo_n "(cached) " >&6 27766else 27767 ac_func_search_save_LIBS=$LIBS 27768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27769/* end confdefs.h. */ 27770 27771/* Override any GCC internal prototype to avoid an error. 27772 Use char because int might match the return type of a GCC 27773 builtin and then its argument prototype would still apply. */ 27774#ifdef __cplusplus 27775extern "C" 27776#endif 27777char gethostbyname (); 27778int 27779main () 27780{ 27781return gethostbyname (); 27782 ; 27783 return 0; 27784} 27785_ACEOF 27786for ac_lib in '' resolv nsl; do 27787 if test -z "$ac_lib"; then 27788 ac_res="none required" 27789 else 27790 ac_res=-l$ac_lib 27791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27792 fi 27793 if ac_fn_c_try_link "$LINENO"; then : 27794 ac_cv_search_gethostbyname=$ac_res 27795fi 27796rm -f core conftest.err conftest.$ac_objext \ 27797 conftest$ac_exeext 27798 if ${ac_cv_search_gethostbyname+:} false; then : 27799 break 27800fi 27801done 27802if ${ac_cv_search_gethostbyname+:} false; then : 27803 27804else 27805 ac_cv_search_gethostbyname=no 27806fi 27807rm conftest.$ac_ext 27808LIBS=$ac_func_search_save_LIBS 27809fi 27810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 27811$as_echo "$ac_cv_search_gethostbyname" >&6; } 27812ac_res=$ac_cv_search_gethostbyname 27813if test "$ac_res" != no; then : 27814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27815 27816fi 27817 27818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 27819$as_echo_n "checking for library containing socket... " >&6; } 27820if ${ac_cv_search_socket+:} false; then : 27821 $as_echo_n "(cached) " >&6 27822else 27823 ac_func_search_save_LIBS=$LIBS 27824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27825/* end confdefs.h. */ 27826 27827/* Override any GCC internal prototype to avoid an error. 27828 Use char because int might match the return type of a GCC 27829 builtin and then its argument prototype would still apply. */ 27830#ifdef __cplusplus 27831extern "C" 27832#endif 27833char socket (); 27834int 27835main () 27836{ 27837return socket (); 27838 ; 27839 return 0; 27840} 27841_ACEOF 27842for ac_lib in '' socket; do 27843 if test -z "$ac_lib"; then 27844 ac_res="none required" 27845 else 27846 ac_res=-l$ac_lib 27847 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27848 fi 27849 if ac_fn_c_try_link "$LINENO"; then : 27850 ac_cv_search_socket=$ac_res 27851fi 27852rm -f core conftest.err conftest.$ac_objext \ 27853 conftest$ac_exeext 27854 if ${ac_cv_search_socket+:} false; then : 27855 break 27856fi 27857done 27858if ${ac_cv_search_socket+:} false; then : 27859 27860else 27861 ac_cv_search_socket=no 27862fi 27863rm conftest.$ac_ext 27864LIBS=$ac_func_search_save_LIBS 27865fi 27866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 27867$as_echo "$ac_cv_search_socket" >&6; } 27868ac_res=$ac_cv_search_socket 27869if test "$ac_res" != no; then : 27870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27871 27872 27873$as_echo "#define HAVE_SOCKET 1" >>confdefs.h 27874 27875 MAGICK_FEATURES="DPC $MAGICK_FEATURES" 27876 27877fi 27878 27879 27880for 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 sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat 27881do : 27882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27883ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27884if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27885 cat >>confdefs.h <<_ACEOF 27886#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27887_ACEOF 27888 27889fi 27890done 27891 27892 27893# 27894# Check for clock_gettime(). 27895# 27896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 27897$as_echo_n "checking for library containing clock_gettime... " >&6; } 27898if ${ac_cv_search_clock_gettime+:} false; then : 27899 $as_echo_n "(cached) " >&6 27900else 27901 ac_func_search_save_LIBS=$LIBS 27902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27903/* end confdefs.h. */ 27904 27905/* Override any GCC internal prototype to avoid an error. 27906 Use char because int might match the return type of a GCC 27907 builtin and then its argument prototype would still apply. */ 27908#ifdef __cplusplus 27909extern "C" 27910#endif 27911char clock_gettime (); 27912int 27913main () 27914{ 27915return clock_gettime (); 27916 ; 27917 return 0; 27918} 27919_ACEOF 27920for ac_lib in '' rt; do 27921 if test -z "$ac_lib"; then 27922 ac_res="none required" 27923 else 27924 ac_res=-l$ac_lib 27925 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27926 fi 27927 if ac_fn_c_try_link "$LINENO"; then : 27928 ac_cv_search_clock_gettime=$ac_res 27929fi 27930rm -f core conftest.err conftest.$ac_objext \ 27931 conftest$ac_exeext 27932 if ${ac_cv_search_clock_gettime+:} false; then : 27933 break 27934fi 27935done 27936if ${ac_cv_search_clock_gettime+:} false; then : 27937 27938else 27939 ac_cv_search_clock_gettime=no 27940fi 27941rm conftest.$ac_ext 27942LIBS=$ac_func_search_save_LIBS 27943fi 27944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 27945$as_echo "$ac_cv_search_clock_gettime" >&6; } 27946ac_res=$ac_cv_search_clock_gettime 27947if test "$ac_res" != no; then : 27948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27949 27950 27951$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 27952 27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 27954$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } 27955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27956/* end confdefs.h. */ 27957 27958 #include <time.h> 27959int 27960main () 27961{ 27962clockid_t clockType = CLOCK_REALTIME; 27963 ; 27964 return 0; 27965} 27966_ACEOF 27967if ac_fn_c_try_compile "$LINENO"; then : 27968 27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27970$as_echo "yes" >&6; } 27971 27972$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h 27973 27974 27975else 27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27977$as_echo "no" >&6; } 27978 27979fi 27980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27981 27982else 27983 27984 for ac_func in gettimeofday ftime 27985do : 27986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27988if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27989 cat >>confdefs.h <<_ACEOF 27990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27991_ACEOF 27992 break 27993fi 27994done 27995 27996 27997 27998fi 27999 28000 28001######## 28002# 28003# Check for function prototypes 28004# 28005######## 28006 28007ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 28008#include <unistd.h> 28009" 28010if test "x$ac_cv_have_decl_pread" = xyes; then : 28011 ac_have_decl=1 28012else 28013 ac_have_decl=0 28014fi 28015 28016cat >>confdefs.h <<_ACEOF 28017#define HAVE_DECL_PREAD $ac_have_decl 28018_ACEOF 28019ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 28020#include <unistd.h> 28021" 28022if test "x$ac_cv_have_decl_pwrite" = xyes; then : 28023 ac_have_decl=1 28024else 28025 ac_have_decl=0 28026fi 28027 28028cat >>confdefs.h <<_ACEOF 28029#define HAVE_DECL_PWRITE $ac_have_decl 28030_ACEOF 28031 28032 28033ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 28034#include <strings.h> 28035" 28036if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 28037 ac_have_decl=1 28038else 28039 ac_have_decl=0 28040fi 28041 28042cat >>confdefs.h <<_ACEOF 28043#define HAVE_DECL_STRLCPY $ac_have_decl 28044_ACEOF 28045 28046 28047ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 28048#include <stdio.h> 28049#include <stdarg.h> 28050" 28051if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 28052 ac_have_decl=1 28053else 28054 ac_have_decl=0 28055fi 28056 28057cat >>confdefs.h <<_ACEOF 28058#define HAVE_DECL_VSNPRINTF $ac_have_decl 28059_ACEOF 28060 28061 28062######## 28063# 28064# C++ Support Tests (For Magick++) 28065# 28066######## 28067have_magick_plus_plus='no' 28068if test "$with_magick_plus_plus" = 'yes'; then 28069 OLIBS="$LIBS" 28070 LIBS='' 28071 ac_ext=cpp 28072ac_cpp='$CXXCPP $CPPFLAGS' 28073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28076 28077 28078 # Full set of headers used... 28079 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 28080 # functional iomanip iosfwd iostream iterator list string strstream utility 28081 ac_ext=cpp 28082ac_cpp='$CXXCPP $CPPFLAGS' 28083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28086 28087 ac_ext=cpp 28088ac_cpp='$CXXCPP $CPPFLAGS' 28089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28092if test -z "$CXX"; then 28093 if test -n "$CCC"; then 28094 CXX=$CCC 28095 else 28096 if test -n "$ac_tool_prefix"; then 28097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 28098 do 28099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28100set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28102$as_echo_n "checking for $ac_word... " >&6; } 28103if ${ac_cv_prog_CXX+:} false; then : 28104 $as_echo_n "(cached) " >&6 28105else 28106 if test -n "$CXX"; then 28107 ac_cv_prog_CXX="$CXX" # Let the user override the test. 28108else 28109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28110for as_dir in $PATH 28111do 28112 IFS=$as_save_IFS 28113 test -z "$as_dir" && as_dir=. 28114 for ac_exec_ext in '' $ac_executable_extensions; do 28115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 28117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28118 break 2 28119 fi 28120done 28121 done 28122IFS=$as_save_IFS 28123 28124fi 28125fi 28126CXX=$ac_cv_prog_CXX 28127if test -n "$CXX"; then 28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 28129$as_echo "$CXX" >&6; } 28130else 28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28132$as_echo "no" >&6; } 28133fi 28134 28135 28136 test -n "$CXX" && break 28137 done 28138fi 28139if test -z "$CXX"; then 28140 ac_ct_CXX=$CXX 28141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 28142do 28143 # Extract the first word of "$ac_prog", so it can be a program name with args. 28144set dummy $ac_prog; ac_word=$2 28145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28146$as_echo_n "checking for $ac_word... " >&6; } 28147if ${ac_cv_prog_ac_ct_CXX+:} false; then : 28148 $as_echo_n "(cached) " >&6 28149else 28150 if test -n "$ac_ct_CXX"; then 28151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 28152else 28153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28154for as_dir in $PATH 28155do 28156 IFS=$as_save_IFS 28157 test -z "$as_dir" && as_dir=. 28158 for ac_exec_ext in '' $ac_executable_extensions; do 28159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28160 ac_cv_prog_ac_ct_CXX="$ac_prog" 28161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28162 break 2 28163 fi 28164done 28165 done 28166IFS=$as_save_IFS 28167 28168fi 28169fi 28170ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 28171if test -n "$ac_ct_CXX"; then 28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 28173$as_echo "$ac_ct_CXX" >&6; } 28174else 28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28176$as_echo "no" >&6; } 28177fi 28178 28179 28180 test -n "$ac_ct_CXX" && break 28181done 28182 28183 if test "x$ac_ct_CXX" = x; then 28184 CXX="g++" 28185 else 28186 case $cross_compiling:$ac_tool_warned in 28187yes:) 28188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28190ac_tool_warned=yes ;; 28191esac 28192 CXX=$ac_ct_CXX 28193 fi 28194fi 28195 28196 fi 28197fi 28198# Provide some information about the compiler. 28199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 28200set X $ac_compile 28201ac_compiler=$2 28202for ac_option in --version -v -V -qversion; do 28203 { { ac_try="$ac_compiler $ac_option >&5" 28204case "(($ac_try" in 28205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28206 *) ac_try_echo=$ac_try;; 28207esac 28208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28209$as_echo "$ac_try_echo"; } >&5 28210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28211 ac_status=$? 28212 if test -s conftest.err; then 28213 sed '10a\ 28214... rest of stderr output deleted ... 28215 10q' conftest.err >conftest.er1 28216 cat conftest.er1 >&5 28217 fi 28218 rm -f conftest.er1 conftest.err 28219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28220 test $ac_status = 0; } 28221done 28222 28223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 28224$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 28225if ${ac_cv_cxx_compiler_gnu+:} false; then : 28226 $as_echo_n "(cached) " >&6 28227else 28228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28229/* end confdefs.h. */ 28230 28231int 28232main () 28233{ 28234#ifndef __GNUC__ 28235 choke me 28236#endif 28237 28238 ; 28239 return 0; 28240} 28241_ACEOF 28242if ac_fn_cxx_try_compile "$LINENO"; then : 28243 ac_compiler_gnu=yes 28244else 28245 ac_compiler_gnu=no 28246fi 28247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28248ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 28249 28250fi 28251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 28252$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 28253if test $ac_compiler_gnu = yes; then 28254 GXX=yes 28255else 28256 GXX= 28257fi 28258ac_test_CXXFLAGS=${CXXFLAGS+set} 28259ac_save_CXXFLAGS=$CXXFLAGS 28260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 28261$as_echo_n "checking whether $CXX accepts -g... " >&6; } 28262if ${ac_cv_prog_cxx_g+:} false; then : 28263 $as_echo_n "(cached) " >&6 28264else 28265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 28266 ac_cxx_werror_flag=yes 28267 ac_cv_prog_cxx_g=no 28268 CXXFLAGS="-g" 28269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28270/* end confdefs.h. */ 28271 28272int 28273main () 28274{ 28275 28276 ; 28277 return 0; 28278} 28279_ACEOF 28280if ac_fn_cxx_try_compile "$LINENO"; then : 28281 ac_cv_prog_cxx_g=yes 28282else 28283 CXXFLAGS="" 28284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28285/* end confdefs.h. */ 28286 28287int 28288main () 28289{ 28290 28291 ; 28292 return 0; 28293} 28294_ACEOF 28295if ac_fn_cxx_try_compile "$LINENO"; then : 28296 28297else 28298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 28299 CXXFLAGS="-g" 28300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28301/* end confdefs.h. */ 28302 28303int 28304main () 28305{ 28306 28307 ; 28308 return 0; 28309} 28310_ACEOF 28311if ac_fn_cxx_try_compile "$LINENO"; then : 28312 ac_cv_prog_cxx_g=yes 28313fi 28314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28315fi 28316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28317fi 28318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 28320fi 28321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 28322$as_echo "$ac_cv_prog_cxx_g" >&6; } 28323if test "$ac_test_CXXFLAGS" = set; then 28324 CXXFLAGS=$ac_save_CXXFLAGS 28325elif test $ac_cv_prog_cxx_g = yes; then 28326 if test "$GXX" = yes; then 28327 CXXFLAGS="-g -O2" 28328 else 28329 CXXFLAGS="-g" 28330 fi 28331else 28332 if test "$GXX" = yes; then 28333 CXXFLAGS="-O2" 28334 else 28335 CXXFLAGS= 28336 fi 28337fi 28338ac_ext=cpp 28339ac_cpp='$CXXCPP $CPPFLAGS' 28340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28343 28344depcc="$CXX" am_compiler_list= 28345 28346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 28347$as_echo_n "checking dependency style of $depcc... " >&6; } 28348if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 28349 $as_echo_n "(cached) " >&6 28350else 28351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 28352 # We make a subdir and do the tests there. Otherwise we can end up 28353 # making bogus files that we don't know about and never remove. For 28354 # instance it was reported that on HP-UX the gcc test will end up 28355 # making a dummy file named 'D' -- because '-MD' means "put the output 28356 # in D". 28357 rm -rf conftest.dir 28358 mkdir conftest.dir 28359 # Copy depcomp to subdir because otherwise we won't find it if we're 28360 # using a relative directory. 28361 cp "$am_depcomp" conftest.dir 28362 cd conftest.dir 28363 # We will build objects and dependencies in a subdirectory because 28364 # it helps to detect inapplicable dependency modes. For instance 28365 # both Tru64's cc and ICC support -MD to output dependencies as a 28366 # side effect of compilation, but ICC will put the dependencies in 28367 # the current directory while Tru64 will put them in the object 28368 # directory. 28369 mkdir sub 28370 28371 am_cv_CXX_dependencies_compiler_type=none 28372 if test "$am_compiler_list" = ""; then 28373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 28374 fi 28375 am__universal=false 28376 case " $depcc " in #( 28377 *\ -arch\ *\ -arch\ *) am__universal=true ;; 28378 esac 28379 28380 for depmode in $am_compiler_list; do 28381 # Setup a source with many dependencies, because some compilers 28382 # like to wrap large dependency lists on column 80 (with \), and 28383 # we should not choose a depcomp mode which is confused by this. 28384 # 28385 # We need to recreate these files for each test, as the compiler may 28386 # overwrite some of them when testing with obscure command lines. 28387 # This happens at least with the AIX C compiler. 28388 : > sub/conftest.c 28389 for i in 1 2 3 4 5 6; do 28390 echo '#include "conftst'$i'.h"' >> sub/conftest.c 28391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 28392 # Solaris 10 /bin/sh. 28393 echo '/* dummy */' > sub/conftst$i.h 28394 done 28395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 28396 28397 # We check with '-c' and '-o' for the sake of the "dashmstdout" 28398 # mode. It turns out that the SunPro C++ compiler does not properly 28399 # handle '-M -o', and we need to detect this. Also, some Intel 28400 # versions had trouble with output in subdirs. 28401 am__obj=sub/conftest.${OBJEXT-o} 28402 am__minus_obj="-o $am__obj" 28403 case $depmode in 28404 gcc) 28405 # This depmode causes a compiler race in universal mode. 28406 test "$am__universal" = false || continue 28407 ;; 28408 nosideeffect) 28409 # After this tag, mechanisms are not by side-effect, so they'll 28410 # only be used when explicitly requested. 28411 if test "x$enable_dependency_tracking" = xyes; then 28412 continue 28413 else 28414 break 28415 fi 28416 ;; 28417 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 28418 # This compiler won't grok '-c -o', but also, the minuso test has 28419 # not run yet. These depmodes are late enough in the game, and 28420 # so weak that their functioning should not be impacted. 28421 am__obj=conftest.${OBJEXT-o} 28422 am__minus_obj= 28423 ;; 28424 none) break ;; 28425 esac 28426 if depmode=$depmode \ 28427 source=sub/conftest.c object=$am__obj \ 28428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 28429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 28430 >/dev/null 2>conftest.err && 28431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 28432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 28433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 28434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 28435 # icc doesn't choke on unknown options, it will just issue warnings 28436 # or remarks (even with -Werror). So we grep stderr for any message 28437 # that says an option was ignored or not supported. 28438 # When given -MP, icc 7.0 and 7.1 complain thusly: 28439 # icc: Command line warning: ignoring option '-M'; no argument required 28440 # The diagnosis changed in icc 8.0: 28441 # icc: Command line remark: option '-MP' not supported 28442 if (grep 'ignoring option' conftest.err || 28443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 28444 am_cv_CXX_dependencies_compiler_type=$depmode 28445 break 28446 fi 28447 fi 28448 done 28449 28450 cd .. 28451 rm -rf conftest.dir 28452else 28453 am_cv_CXX_dependencies_compiler_type=none 28454fi 28455 28456fi 28457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 28458$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 28459CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 28460 28461 if 28462 test "x$enable_dependency_tracking" != xno \ 28463 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 28464 am__fastdepCXX_TRUE= 28465 am__fastdepCXX_FALSE='#' 28466else 28467 am__fastdepCXX_TRUE='#' 28468 am__fastdepCXX_FALSE= 28469fi 28470 28471 28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 28473$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } 28474if ${ax_cv_cxx_bool+:} false; then : 28475 $as_echo_n "(cached) " >&6 28476else 28477 ac_ext=cpp 28478ac_cpp='$CXXCPP $CPPFLAGS' 28479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28482 28483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28484/* end confdefs.h. */ 28485 int f(int x){return 1;} 28486 int f(char x){return 1;} 28487 int f(bool x){return 1;} 28488int 28489main () 28490{ 28491bool b = true; return f(b); 28492 ; 28493 return 0; 28494} 28495_ACEOF 28496if ac_fn_cxx_try_compile "$LINENO"; then : 28497 ax_cv_cxx_bool=yes 28498else 28499 ax_cv_cxx_bool=no 28500fi 28501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28502 ac_ext=cpp 28503ac_cpp='$CXXCPP $CPPFLAGS' 28504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28507 28508 28509fi 28510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 28511$as_echo "$ax_cv_cxx_bool" >&6; } 28512 if test "X$ax_cv_cxx_bool" = Xyes; then : 28513 28514$as_echo "#define HAVE_BOOL /**/" >>confdefs.h 28515 28516fi 28517 28518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 28519$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 28520if ${ax_cv_cxx_namespaces+:} false; then : 28521 $as_echo_n "(cached) " >&6 28522else 28523 ac_ext=cpp 28524ac_cpp='$CXXCPP $CPPFLAGS' 28525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28528 28529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28530/* end confdefs.h. */ 28531namespace Outer { namespace Inner { int i = 0; }} 28532 using namespace Outer::Inner; int foo(void) { return i;} 28533_ACEOF 28534if ac_fn_cxx_try_compile "$LINENO"; then : 28535 ax_cv_cxx_namespaces=yes 28536else 28537 ax_cv_cxx_namespaces=no 28538fi 28539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28540 ac_ext=cpp 28541ac_cpp='$CXXCPP $CPPFLAGS' 28542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28545 28546 28547fi 28548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 28549$as_echo "$ax_cv_cxx_namespaces" >&6; } 28550if test "$ax_cv_cxx_namespaces" = yes; then 28551 28552$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 28553 28554fi 28555 28556 28557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 28558$as_echo_n "checking if g++ supports namespace std... " >&6; } 28559if ${ax_cv_cxx_have_std_namespace+:} false; then : 28560 $as_echo_n "(cached) " >&6 28561else 28562 28563 ac_ext=cpp 28564ac_cpp='$CXXCPP $CPPFLAGS' 28565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28568 28569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28570/* end confdefs.h. */ 28571#include <iostream> 28572 std::istream& is = std::cin; 28573int 28574main () 28575{ 28576 28577 ; 28578 return 0; 28579} 28580_ACEOF 28581if ac_fn_cxx_try_compile "$LINENO"; then : 28582 ax_cv_cxx_have_std_namespace=yes 28583else 28584 ax_cv_cxx_have_std_namespace=no 28585fi 28586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28587 ac_ext=cpp 28588ac_cpp='$CXXCPP $CPPFLAGS' 28589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28592 28593 28594fi 28595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 28596$as_echo "$ax_cv_cxx_have_std_namespace" >&6; } 28597 if test "$ax_cv_cxx_have_std_namespace" = yes; then 28598 28599$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h 28600 28601 fi 28602 28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 28604$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } 28605if ${ac_cv_cxx_have_std_libs+:} false; then : 28606 $as_echo_n "(cached) " >&6 28607else 28608 28609 28610 ac_ext=cpp 28611ac_cpp='$CXXCPP $CPPFLAGS' 28612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28615 28616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28617/* end confdefs.h. */ 28618#include <iostream> 28619#include <map> 28620#include <iomanip> 28621#include <cmath> 28622#ifdef HAVE_NAMESPACES 28623using namespace std; 28624#endif 28625int 28626main () 28627{ 28628return 0; 28629 ; 28630 return 0; 28631} 28632_ACEOF 28633if ac_fn_cxx_try_compile "$LINENO"; then : 28634 ac_cv_cxx_have_std_libs=yes 28635else 28636 ac_cv_cxx_have_std_libs=no 28637fi 28638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28639 ac_ext=cpp 28640ac_cpp='$CXXCPP $CPPFLAGS' 28641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28644 28645 28646fi 28647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 28648$as_echo "$ac_cv_cxx_have_std_libs" >&6; } 28649if test "$ac_cv_cxx_have_std_libs" = yes; then 28650 28651$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h 28652 28653fi 28654 28655 28656 OPENMP_CXXFLAGS= 28657 # Check whether --enable-openmp was given. 28658if test "${enable_openmp+set}" = set; then : 28659 enableval=$enable_openmp; 28660fi 28661 28662 if test "$enable_openmp" != no; then 28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 28664$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } 28665if ${ac_cv_prog_cxx_openmp+:} false; then : 28666 $as_echo_n "(cached) " >&6 28667else 28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28669/* end confdefs.h. */ 28670 28671#ifndef _OPENMP 28672 choke me 28673#endif 28674#include <omp.h> 28675int main () { return omp_get_num_threads (); } 28676 28677_ACEOF 28678if ac_fn_cxx_try_link "$LINENO"; then : 28679 ac_cv_prog_cxx_openmp='none needed' 28680else 28681 ac_cv_prog_cxx_openmp='unsupported' 28682 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 28683 -Popenmp --openmp; do 28684 ac_save_CXXFLAGS=$CXXFLAGS 28685 CXXFLAGS="$CXXFLAGS $ac_option" 28686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28687/* end confdefs.h. */ 28688 28689#ifndef _OPENMP 28690 choke me 28691#endif 28692#include <omp.h> 28693int main () { return omp_get_num_threads (); } 28694 28695_ACEOF 28696if ac_fn_cxx_try_link "$LINENO"; then : 28697 ac_cv_prog_cxx_openmp=$ac_option 28698fi 28699rm -f core conftest.err conftest.$ac_objext \ 28700 conftest$ac_exeext conftest.$ac_ext 28701 CXXFLAGS=$ac_save_CXXFLAGS 28702 if test "$ac_cv_prog_cxx_openmp" != unsupported; then 28703 break 28704 fi 28705 done 28706fi 28707rm -f core conftest.err conftest.$ac_objext \ 28708 conftest$ac_exeext conftest.$ac_ext 28709fi 28710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 28711$as_echo "$ac_cv_prog_cxx_openmp" >&6; } 28712 case $ac_cv_prog_cxx_openmp in #( 28713 "none needed" | unsupported) 28714 ;; #( 28715 *) 28716 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; 28717 esac 28718 fi 28719 28720 28721 ac_ext=c 28722ac_cpp='$CPP $CPPFLAGS' 28723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28725ac_compiler_gnu=$ac_cv_c_compiler_gnu 28726 28727 28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 28729$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } 28730 if \ 28731 test $ax_cv_cxx_bool = 'yes' && \ 28732 test $ax_cv_cxx_namespaces = 'yes' && \ 28733 test $ac_cv_cxx_have_std_libs = 'yes' && \ 28734 test $ax_cv_cxx_have_std_namespace = 'yes'; then 28735 have_magick_plus_plus='yes' 28736 else 28737 have_magick_plus_plus='no (failed tests)' 28738 fi 28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 28740$as_echo "$have_magick_plus_plus" >&6; } 28741 LIBS="$OLIBS" 28742fi 28743 if test "$have_magick_plus_plus" = 'yes'; then 28744 WITH_MAGICK_PLUS_PLUS_TRUE= 28745 WITH_MAGICK_PLUS_PLUS_FALSE='#' 28746else 28747 WITH_MAGICK_PLUS_PLUS_TRUE='#' 28748 WITH_MAGICK_PLUS_PLUS_FALSE= 28749fi 28750 28751 28752# Only check for delegate libraries in subdirectories if requested. 28753if test "$enable_delegate_build" != 'no'; then 28754 # Check for delegate sub-directories and add -I & -L options as required. 28755 # This presumes that delegates are installed as detailed in the ImageMagick 28756 # README. If delegates are installed in a standard location where the 28757 # compiler will automatically find them then these options should not be 28758 # required. 28759 28760 # 28761 # Most delegates have includes in the same directory as the library, but not all... 28762 # 28763 # Includes 28764 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do 28765 if test -d "$builddir/$dir"; then 28766 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 28767 else 28768 if test -d "$srcdirfull/$dir"; then 28769 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 28770 fi 28771 fi 28772 done 28773 28774 # Libraries 28775 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do 28776 if test -d "$builddir/$dir/.libs"; then 28777 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 28778 else 28779 if test -d "$srcdirfull/$dir/.libs"; then 28780 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 28781 fi 28782 fi 28783 if test -d "$builddir/$dir"; then 28784 LDFLAGS="$LDFLAGS -L$builddir/$dir" 28785 else 28786 if test -d "$srcdirfull/$dir"; then 28787 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 28788 fi 28789 fi 28790 done 28791fi 28792 28793# Assume that delegate headers reside under same directory as ImageMagick 28794# installation prefix. 28795MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS" 28796 28797# 28798# Find the X11 RGB database 28799# 28800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 28801$as_echo_n "checking for X11 configure files... " >&6; } 28802if ${im_cv_x_configure+:} false; then : 28803 $as_echo_n "(cached) " >&6 28804else 28805 # Look for the header file in a standard set of common directories. 28806# Check X11 before X11Rn because it is often a symlink to the current release. 28807 for ac_dir in \ 28808 /lib/usr/lib/X11 \ 28809 /usr/X11/lib \ 28810 /usr/X11R4/lib \ 28811 /usr/X11R5/lib \ 28812 /usr/X11R6/lib \ 28813 /usr/X11R7/lib \ 28814 /usr/X386/lib \ 28815 /usr/XFree86/lib/X11 \ 28816 /usr/athena/lib \ 28817 /usr/lib \ 28818 /usr/lib/X11 \ 28819 /usr/lib/X11R4 \ 28820 /usr/lib/X11R5 \ 28821 /usr/lib/X11R6 \ 28822 /usr/lib/X11R7 \ 28823 /usr/local/X11/lib \ 28824 /usr/local/X11R4/lib \ 28825 /usr/local/X11R5/lib \ 28826 /usr/local/X11R6/lib \ 28827 /usr/local/lib \ 28828 /usr/local/lib/X11 \ 28829 /usr/local/lib/X11R4 \ 28830 /usr/local/lib/X11R5 \ 28831 /usr/local/lib/X11R6 \ 28832 /usr/local/lib/X11R7 \ 28833 /usr/local/x11r5/lib \ 28834 /usr/lpp/Xamples/lib \ 28835 /usr/openwin/lib \ 28836 /usr/openwin/share/lib \ 28837 /usr/unsupported/lib \ 28838 /usr/x386/lib \ 28839 ; do 28840 if test -f "$ac_dir/X11/rgb.txt"; then 28841 im_cv_x_configure="$ac_dir/X11/" 28842 break 28843 elif test -f "$ac_dir/rgb.txt"; then 28844 im_cv_x_configure="$ac_dir/" 28845 break 28846 fi 28847 28848 done 28849fi 28850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 28851$as_echo "$im_cv_x_configure" >&6; } 28852X11_CONFIGURE_PATH="$im_cv_x_configure" 28853case "${build_os}" in 28854 mingw* ) 28855 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 28856 ;; 28857esac 28858 28859cat >>confdefs.h <<_ACEOF 28860#define X11_CONFIGURE_PATH "$X11ConfigurePath" 28861_ACEOF 28862 28863 28864# 28865# Find OpenMP library 28866# 28867GOMP_LIBS='' 28868if test "$enable_openmp" != 'no'; then 28869 if test "${GCC}" = "yes"; then 28870 # Open64 (passes for GCC but uses different OpenMP implementation) 28871 if test "x$GOMP_LIBS" = x ; then 28872 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 28874$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } 28875if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : 28876 $as_echo_n "(cached) " >&6 28877else 28878 ac_check_lib_save_LIBS=$LIBS 28879LIBS="-lopenmp $LIBS" 28880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28881/* end confdefs.h. */ 28882 28883/* Override any GCC internal prototype to avoid an error. 28884 Use char because int might match the return type of a GCC 28885 builtin and then its argument prototype would still apply. */ 28886#ifdef __cplusplus 28887extern "C" 28888#endif 28889char omp_get_num_procs (); 28890int 28891main () 28892{ 28893return omp_get_num_procs (); 28894 ; 28895 return 0; 28896} 28897_ACEOF 28898if ac_fn_c_try_link "$LINENO"; then : 28899 ac_cv_lib_openmp_omp_get_num_procs=yes 28900else 28901 ac_cv_lib_openmp_omp_get_num_procs=no 28902fi 28903rm -f core conftest.err conftest.$ac_objext \ 28904 conftest$ac_exeext conftest.$ac_ext 28905LIBS=$ac_check_lib_save_LIBS 28906fi 28907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 28908$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } 28909if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : 28910 GOMP_LIBS="-lopenmp" 28911fi 28912 28913 fi 28914 fi 28915 # GCC 28916 if test "x$GOMP_LIBS" = x ; then 28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 28918$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } 28919if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : 28920 $as_echo_n "(cached) " >&6 28921else 28922 ac_check_lib_save_LIBS=$LIBS 28923LIBS="-lgomp $LIBS" 28924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28925/* end confdefs.h. */ 28926 28927/* Override any GCC internal prototype to avoid an error. 28928 Use char because int might match the return type of a GCC 28929 builtin and then its argument prototype would still apply. */ 28930#ifdef __cplusplus 28931extern "C" 28932#endif 28933char GOMP_parallel_start (); 28934int 28935main () 28936{ 28937return GOMP_parallel_start (); 28938 ; 28939 return 0; 28940} 28941_ACEOF 28942if ac_fn_c_try_link "$LINENO"; then : 28943 ac_cv_lib_gomp_GOMP_parallel_start=yes 28944else 28945 ac_cv_lib_gomp_GOMP_parallel_start=no 28946fi 28947rm -f core conftest.err conftest.$ac_objext \ 28948 conftest$ac_exeext conftest.$ac_ext 28949LIBS=$ac_check_lib_save_LIBS 28950fi 28951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 28952$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } 28953if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : 28954 GOMP_LIBS="-lgomp" 28955fi 28956 28957 fi 28958 else 28959 # Sun CC 28960 if test "x$GOMP_LIBS" = x ; then 28961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 28962$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } 28963if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : 28964 $as_echo_n "(cached) " >&6 28965else 28966 ac_check_lib_save_LIBS=$LIBS 28967LIBS="-lmtsk $LIBS" 28968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28969/* end confdefs.h. */ 28970 28971/* Override any GCC internal prototype to avoid an error. 28972 Use char because int might match the return type of a GCC 28973 builtin and then its argument prototype would still apply. */ 28974#ifdef __cplusplus 28975extern "C" 28976#endif 28977char sunw_mp_register_warn (); 28978int 28979main () 28980{ 28981return sunw_mp_register_warn (); 28982 ; 28983 return 0; 28984} 28985_ACEOF 28986if ac_fn_c_try_link "$LINENO"; then : 28987 ac_cv_lib_mtsk_sunw_mp_register_warn=yes 28988else 28989 ac_cv_lib_mtsk_sunw_mp_register_warn=no 28990fi 28991rm -f core conftest.err conftest.$ac_objext \ 28992 conftest$ac_exeext conftest.$ac_ext 28993LIBS=$ac_check_lib_save_LIBS 28994fi 28995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 28996$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } 28997if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : 28998 GOMP_LIBS="-lmtsk" 28999fi 29000 29001 fi 29002 # AIX xlc 29003 if test "x$GOMP_LIBS" = x ; then 29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 29005$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } 29006if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : 29007 $as_echo_n "(cached) " >&6 29008else 29009 ac_check_lib_save_LIBS=$LIBS 29010LIBS="-lxlsmp $LIBS" 29011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29012/* end confdefs.h. */ 29013 29014/* Override any GCC internal prototype to avoid an error. 29015 Use char because int might match the return type of a GCC 29016 builtin and then its argument prototype would still apply. */ 29017#ifdef __cplusplus 29018extern "C" 29019#endif 29020char _xlsmpFlush (); 29021int 29022main () 29023{ 29024return _xlsmpFlush (); 29025 ; 29026 return 0; 29027} 29028_ACEOF 29029if ac_fn_c_try_link "$LINENO"; then : 29030 ac_cv_lib_xlsmp__xlsmpFlush=yes 29031else 29032 ac_cv_lib_xlsmp__xlsmpFlush=no 29033fi 29034rm -f core conftest.err conftest.$ac_objext \ 29035 conftest$ac_exeext conftest.$ac_ext 29036LIBS=$ac_check_lib_save_LIBS 29037fi 29038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 29039$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } 29040if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : 29041 GOMP_LIBS="-lxlsmp" 29042fi 29043 29044 fi 29045 # SGI IRIX 6.5 MIPSpro C/C++ 29046 if test "x$GOMP_LIBS" = x ; then 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 29048$as_echo_n "checking for mp_destroy in -lmp... " >&6; } 29049if ${ac_cv_lib_mp_mp_destroy+:} false; then : 29050 $as_echo_n "(cached) " >&6 29051else 29052 ac_check_lib_save_LIBS=$LIBS 29053LIBS="-lmp $LIBS" 29054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29055/* end confdefs.h. */ 29056 29057/* Override any GCC internal prototype to avoid an error. 29058 Use char because int might match the return type of a GCC 29059 builtin and then its argument prototype would still apply. */ 29060#ifdef __cplusplus 29061extern "C" 29062#endif 29063char mp_destroy (); 29064int 29065main () 29066{ 29067return mp_destroy (); 29068 ; 29069 return 0; 29070} 29071_ACEOF 29072if ac_fn_c_try_link "$LINENO"; then : 29073 ac_cv_lib_mp_mp_destroy=yes 29074else 29075 ac_cv_lib_mp_mp_destroy=no 29076fi 29077rm -f core conftest.err conftest.$ac_objext \ 29078 conftest$ac_exeext conftest.$ac_ext 29079LIBS=$ac_check_lib_save_LIBS 29080fi 29081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 29082$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } 29083if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : 29084 GOMP_LIBS="-lmp" 29085fi 29086 29087 fi 29088 fi 29089 LIBS="$GOMP_LIBS $LIBS" 29090fi 29091 29092 29093# 29094# Check for jemalloc. 29095# 29096have_jemalloc='no' 29097JEMALLOC_LIBS='' 29098if test "$with_jemalloc" != 'no'; then 29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5 29100$as_echo_n "checking for JEMALLOC support ... " >&6; } 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29102$as_echo "" >&6; } 29103 failed=0 29104 passed=0 29105 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default" 29106if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then : 29107 passed=`expr $passed + 1` 29108else 29109 failed=`expr $failed + 1` 29110fi 29111 29112 29113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5 29114$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; } 29115if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then : 29116 $as_echo_n "(cached) " >&6 29117else 29118 ac_check_lib_save_LIBS=$LIBS 29119LIBS="-ljemalloc $LIBS" 29120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29121/* end confdefs.h. */ 29122 29123/* Override any GCC internal prototype to avoid an error. 29124 Use char because int might match the return type of a GCC 29125 builtin and then its argument prototype would still apply. */ 29126#ifdef __cplusplus 29127extern "C" 29128#endif 29129char malloc_stats_print (); 29130int 29131main () 29132{ 29133return malloc_stats_print (); 29134 ; 29135 return 0; 29136} 29137_ACEOF 29138if ac_fn_c_try_link "$LINENO"; then : 29139 ac_cv_lib_jemalloc_malloc_stats_print=yes 29140else 29141 ac_cv_lib_jemalloc_malloc_stats_print=no 29142fi 29143rm -f core conftest.err conftest.$ac_objext \ 29144 conftest$ac_exeext conftest.$ac_ext 29145LIBS=$ac_check_lib_save_LIBS 29146fi 29147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5 29148$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; } 29149if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then : 29150 passed=`expr $passed + 1` 29151else 29152 failed=`expr $failed + 1` 29153fi 29154 29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5 29156$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; } 29157 if test $passed -gt 0; then 29158 if test $failed -gt 0; then 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29160$as_echo "no -- some components failed test" >&6; } 29161 have_jemalloc='no (failed tests)' 29162 else 29163 JEMALLOC_LIBS='-ljemalloc' 29164 LIBS="$JEMALLOC_LIBS $LIBS" 29165 29166$as_echo "#define HasJEMALLOC 1" >>confdefs.h 29167 29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29169$as_echo "yes" >&6; } 29170 have_jemalloc='yes' 29171 fi 29172 else 29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29174$as_echo "no" >&6; } 29175 fi 29176fi 29177 if test "$have_jemalloc" = 'yes'; then 29178 HasJEMALLOC_TRUE= 29179 HasJEMALLOC_FALSE='#' 29180else 29181 HasJEMALLOC_TRUE='#' 29182 HasJEMALLOC_FALSE= 29183fi 29184 29185 29186 29187# 29188# Check for umem. 29189# 29190have_umem='no' 29191UMEM_LIBS='' 29192if test "$with_umem" != 'no'; then 29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 29194$as_echo_n "checking for UMEM support ... " >&6; } 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29196$as_echo "" >&6; } 29197 failed=0 29198 passed=0 29199 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" 29200if test "x$ac_cv_header_umem_h" = xyes; then : 29201 passed=`expr $passed + 1` 29202else 29203 failed=`expr $failed + 1` 29204fi 29205 29206 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 29208$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 29209if ${ac_cv_lib_umem_umem_alloc+:} false; then : 29210 $as_echo_n "(cached) " >&6 29211else 29212 ac_check_lib_save_LIBS=$LIBS 29213LIBS="-lumem $LIBS" 29214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29215/* end confdefs.h. */ 29216 29217/* Override any GCC internal prototype to avoid an error. 29218 Use char because int might match the return type of a GCC 29219 builtin and then its argument prototype would still apply. */ 29220#ifdef __cplusplus 29221extern "C" 29222#endif 29223char umem_alloc (); 29224int 29225main () 29226{ 29227return umem_alloc (); 29228 ; 29229 return 0; 29230} 29231_ACEOF 29232if ac_fn_c_try_link "$LINENO"; then : 29233 ac_cv_lib_umem_umem_alloc=yes 29234else 29235 ac_cv_lib_umem_umem_alloc=no 29236fi 29237rm -f core conftest.err conftest.$ac_objext \ 29238 conftest$ac_exeext conftest.$ac_ext 29239LIBS=$ac_check_lib_save_LIBS 29240fi 29241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 29242$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 29243if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 29244 passed=`expr $passed + 1` 29245else 29246 failed=`expr $failed + 1` 29247fi 29248 29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 29250$as_echo_n "checking for umem_free in -lumem... " >&6; } 29251if ${ac_cv_lib_umem_umem_free+:} false; then : 29252 $as_echo_n "(cached) " >&6 29253else 29254 ac_check_lib_save_LIBS=$LIBS 29255LIBS="-lumem $LIBS" 29256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29257/* end confdefs.h. */ 29258 29259/* Override any GCC internal prototype to avoid an error. 29260 Use char because int might match the return type of a GCC 29261 builtin and then its argument prototype would still apply. */ 29262#ifdef __cplusplus 29263extern "C" 29264#endif 29265char umem_free (); 29266int 29267main () 29268{ 29269return umem_free (); 29270 ; 29271 return 0; 29272} 29273_ACEOF 29274if ac_fn_c_try_link "$LINENO"; then : 29275 ac_cv_lib_umem_umem_free=yes 29276else 29277 ac_cv_lib_umem_umem_free=no 29278fi 29279rm -f core conftest.err conftest.$ac_objext \ 29280 conftest$ac_exeext conftest.$ac_ext 29281LIBS=$ac_check_lib_save_LIBS 29282fi 29283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 29284$as_echo "$ac_cv_lib_umem_umem_free" >&6; } 29285if test "x$ac_cv_lib_umem_umem_free" = xyes; then : 29286 passed=`expr $passed + 1` 29287else 29288 failed=`expr $failed + 1` 29289fi 29290 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 29292$as_echo_n "checking if umem memory allocation library is complete... " >&6; } 29293 if test $passed -gt 0; then 29294 if test $failed -gt 0; then 29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29296$as_echo "no -- some components failed test" >&6; } 29297 have_umem='no (failed tests)' 29298 else 29299 UMEM_LIBS='-lumem' 29300 LIBS="$UMEM_LIBS $LIBS" 29301 29302$as_echo "#define HasUMEM 1" >>confdefs.h 29303 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29305$as_echo "yes" >&6; } 29306 have_umem='yes' 29307 fi 29308 else 29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29310$as_echo "no" >&6; } 29311 fi 29312fi 29313 if test "$have_umem" = 'yes'; then 29314 HasUMEM_TRUE= 29315 HasUMEM_FALSE='#' 29316else 29317 HasUMEM_TRUE='#' 29318 HasUMEM_FALSE= 29319fi 29320 29321 29322 29323# 29324# Add support for ccmalloc memory debugging library if requested 29325# 29326have_ccmalloc='no' 29327CCMALLOC_LIBS='' 29328if test "$enable_ccmalloc" = 'yes'; then 29329 # Extract the first word of "ccmalloc", so it can be a program name with args. 29330set dummy ccmalloc; ac_word=$2 29331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29332$as_echo_n "checking for $ac_word... " >&6; } 29333if ${ac_cv_path_CCMALLOCDelegate+:} false; then : 29334 $as_echo_n "(cached) " >&6 29335else 29336 case $CCMALLOCDelegate in 29337 [\\/]* | ?:[\\/]*) 29338 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. 29339 ;; 29340 *) 29341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29342for as_dir in $PATH 29343do 29344 IFS=$as_save_IFS 29345 test -z "$as_dir" && as_dir=. 29346 for ac_exec_ext in '' $ac_executable_extensions; do 29347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29348 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" 29349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29350 break 2 29351 fi 29352done 29353 done 29354IFS=$as_save_IFS 29355 29356 ;; 29357esac 29358fi 29359CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate 29360if test -n "$CCMALLOCDelegate"; then 29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 29362$as_echo "$CCMALLOCDelegate" >&6; } 29363else 29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29365$as_echo "no" >&6; } 29366fi 29367 29368 29369 if test -n "$CCMALLOCDelegate"; then 29370 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 29371 OLIBS="$LIBS" 29372 # Assume that gcc is used with ccmalloc. 29373 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 29374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 29375$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } 29376if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : 29377 $as_echo_n "(cached) " >&6 29378else 29379 ac_check_lib_save_LIBS=$LIBS 29380LIBS="-lccmalloc -ldl $LIBS" 29381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29382/* end confdefs.h. */ 29383 29384/* Override any GCC internal prototype to avoid an error. 29385 Use char because int might match the return type of a GCC 29386 builtin and then its argument prototype would still apply. */ 29387#ifdef __cplusplus 29388extern "C" 29389#endif 29390char ccmalloc_malloc (); 29391int 29392main () 29393{ 29394return ccmalloc_malloc (); 29395 ; 29396 return 0; 29397} 29398_ACEOF 29399if ac_fn_c_try_link "$LINENO"; then : 29400 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes 29401else 29402 ac_cv_lib_ccmalloc_ccmalloc_malloc=no 29403fi 29404rm -f core conftest.err conftest.$ac_objext \ 29405 conftest$ac_exeext conftest.$ac_ext 29406LIBS=$ac_check_lib_save_LIBS 29407fi 29408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 29409$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } 29410if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : 29411 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" 29412fi 29413 29414 if test -n "$CCMALLOC_LIBS"; then 29415 LIBS="$OLIBS" 29416 LIBS="$LIBS $CCMALLOC_LIBS" 29417 have_ccmalloc='yes' 29418 else 29419 LIBS="$OLIBS" 29420 fi 29421 fi 29422fi 29423 29424# 29425# Add support for 'huge pages' if requested 29426# 29427if test "x$enable_hugepages" != "xno"; then : 29428 29429 29430$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h 29431 29432 29433fi 29434 29435# 29436# Add support for efence memory debugging library if requested 29437# 29438if test "$enable_efence" = 'yes'; then 29439 EFENCE_LIBS='-lefence' 29440 LIBS="$EFENCE_LIBS $LIBS" 29441fi 29442 29443 29444# 29445# Check for BZLIB 29446# 29447 29448 29449# Check whether --with-bzlib was given. 29450if test "${with_bzlib+set}" = set; then : 29451 withval=$with_bzlib; with_bzlib=$withval 29452else 29453 with_bzlib='yes' 29454fi 29455 29456 29457if test "$with_bzlib" != 'yes'; then 29458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 29459fi 29460 29461have_bzlib='no' 29462if test "$with_bzlib" != 'no'; then 29463 BZLIB_LIBS='' 29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29465$as_echo "-------------------------------------------------------------" >&6; } 29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 29467$as_echo_n "checking for BZLIB... " >&6; } 29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29469$as_echo "" >&6; } 29470 failed=0 29471 passed=0 29472 found_libbz=0 29473 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 29474if test "x$ac_cv_header_bzlib_h" = xyes; then : 29475 passed=`expr $passed + 1` 29476else 29477 failed=`expr $failed + 1` 29478fi 29479 29480 29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 29482$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 29483if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : 29484 $as_echo_n "(cached) " >&6 29485else 29486 ac_check_lib_save_LIBS=$LIBS 29487LIBS="-lbz2 $LIBS" 29488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29489/* end confdefs.h. */ 29490 29491/* Override any GCC internal prototype to avoid an error. 29492 Use char because int might match the return type of a GCC 29493 builtin and then its argument prototype would still apply. */ 29494#ifdef __cplusplus 29495extern "C" 29496#endif 29497char BZ2_bzDecompress (); 29498int 29499main () 29500{ 29501return BZ2_bzDecompress (); 29502 ; 29503 return 0; 29504} 29505_ACEOF 29506if ac_fn_c_try_link "$LINENO"; then : 29507 ac_cv_lib_bz2_BZ2_bzDecompress=yes 29508else 29509 ac_cv_lib_bz2_BZ2_bzDecompress=no 29510fi 29511rm -f core conftest.err conftest.$ac_objext \ 29512 conftest$ac_exeext conftest.$ac_ext 29513LIBS=$ac_check_lib_save_LIBS 29514fi 29515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 29516$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 29517if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : 29518 found_libbz=`expr $found_libbz + 1` 29519fi 29520 29521 if test "$native_win32_build" = 'yes'; then 29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 29523$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } 29524if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : 29525 $as_echo_n "(cached) " >&6 29526else 29527 ac_check_lib_save_LIBS=$LIBS 29528LIBS="-lbz2 $LIBS" 29529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29530/* end confdefs.h. */ 29531 29532/* Override any GCC internal prototype to avoid an error. 29533 Use char because int might match the return type of a GCC 29534 builtin and then its argument prototype would still apply. */ 29535#ifdef __cplusplus 29536extern "C" 29537#endif 29538char _imp__BZ2_decompress (); 29539int 29540main () 29541{ 29542return _imp__BZ2_decompress (); 29543 ; 29544 return 0; 29545} 29546_ACEOF 29547if ac_fn_c_try_link "$LINENO"; then : 29548 ac_cv_lib_bz2__imp__BZ2_decompress=yes 29549else 29550 ac_cv_lib_bz2__imp__BZ2_decompress=no 29551fi 29552rm -f core conftest.err conftest.$ac_objext \ 29553 conftest$ac_exeext conftest.$ac_ext 29554LIBS=$ac_check_lib_save_LIBS 29555fi 29556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 29557$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } 29558if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : 29559 found_libbz=`expr $found_libbz + 1` 29560fi 29561 29562 fi 29563 if test $found_libbz -gt 0; then 29564 passed=`expr $passed + 1` 29565 else 29566 failed=`expr $failed + 1` 29567 fi 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 29569$as_echo_n "checking if BZLIB package is complete... " >&6; } 29570 if test $passed -gt 0; then 29571 if test $failed -gt 0; then 29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29573$as_echo "no -- some components failed test" >&6; } 29574 have_bzlib='no (failed tests)' 29575 else 29576 BZLIB_LIBS='-lbz2' 29577 LIBS="$BZLIB_LIBS $LIBS" 29578 29579$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h 29580 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29582$as_echo "yes" >&6; } 29583 have_bzlib='yes' 29584 fi 29585 else 29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29587$as_echo "no" >&6; } 29588 fi 29589fi 29590 if test "$have_bzlib" = 'yes'; then 29591 BZLIB_DELEGATE_TRUE= 29592 BZLIB_DELEGATE_FALSE='#' 29593else 29594 BZLIB_DELEGATE_TRUE='#' 29595 BZLIB_DELEGATE_FALSE= 29596fi 29597 29598 29599 29600# 29601# Find the X11 include and library directories. 29602# 29603IPC_LIBS='' 29604X11_LIBS='' 29605XEXT_LIBS='' 29606XT_LIBS='' 29607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 29608$as_echo_n "checking for X... " >&6; } 29609 29610 29611# Check whether --with-x was given. 29612if test "${with_x+set}" = set; then : 29613 withval=$with_x; 29614fi 29615 29616# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29617if test "x$with_x" = xno; then 29618 # The user explicitly disabled X. 29619 have_x=disabled 29620else 29621 case $x_includes,$x_libraries in #( 29622 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 29623 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 29624 $as_echo_n "(cached) " >&6 29625else 29626 # One or both of the vars are not set, and there is no cached value. 29627ac_x_includes=no ac_x_libraries=no 29628rm -f -r conftest.dir 29629if mkdir conftest.dir; then 29630 cd conftest.dir 29631 cat >Imakefile <<'_ACEOF' 29632incroot: 29633 @echo incroot='${INCROOT}' 29634usrlibdir: 29635 @echo usrlibdir='${USRLIBDIR}' 29636libdir: 29637 @echo libdir='${LIBDIR}' 29638_ACEOF 29639 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 29640 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29641 for ac_var in incroot usrlibdir libdir; do 29642 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 29643 done 29644 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29645 for ac_extension in a so sl dylib la dll; do 29646 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 29647 test -f "$ac_im_libdir/libX11.$ac_extension"; then 29648 ac_im_usrlibdir=$ac_im_libdir; break 29649 fi 29650 done 29651 # Screen out bogus values from the imake configuration. They are 29652 # bogus both because they are the default anyway, and because 29653 # using them would break gcc on systems where it needs fixed includes. 29654 case $ac_im_incroot in 29655 /usr/include) ac_x_includes= ;; 29656 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29657 esac 29658 case $ac_im_usrlibdir in 29659 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 29660 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29661 esac 29662 fi 29663 cd .. 29664 rm -f -r conftest.dir 29665fi 29666 29667# Standard set of common directories for X headers. 29668# Check X11 before X11Rn because it is often a symlink to the current release. 29669ac_x_header_dirs=' 29670/usr/X11/include 29671/usr/X11R7/include 29672/usr/X11R6/include 29673/usr/X11R5/include 29674/usr/X11R4/include 29675 29676/usr/include/X11 29677/usr/include/X11R7 29678/usr/include/X11R6 29679/usr/include/X11R5 29680/usr/include/X11R4 29681 29682/usr/local/X11/include 29683/usr/local/X11R7/include 29684/usr/local/X11R6/include 29685/usr/local/X11R5/include 29686/usr/local/X11R4/include 29687 29688/usr/local/include/X11 29689/usr/local/include/X11R7 29690/usr/local/include/X11R6 29691/usr/local/include/X11R5 29692/usr/local/include/X11R4 29693 29694/usr/X386/include 29695/usr/x386/include 29696/usr/XFree86/include/X11 29697 29698/usr/include 29699/usr/local/include 29700/usr/unsupported/include 29701/usr/athena/include 29702/usr/local/x11r5/include 29703/usr/lpp/Xamples/include 29704 29705/usr/openwin/include 29706/usr/openwin/share/include' 29707 29708if test "$ac_x_includes" = no; then 29709 # Guess where to find include files, by looking for Xlib.h. 29710 # First, try using that file with no special directory specified. 29711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29712/* end confdefs.h. */ 29713#include <X11/Xlib.h> 29714_ACEOF 29715if ac_fn_c_try_cpp "$LINENO"; then : 29716 # We can compile using X headers with no special include directory. 29717ac_x_includes= 29718else 29719 for ac_dir in $ac_x_header_dirs; do 29720 if test -r "$ac_dir/X11/Xlib.h"; then 29721 ac_x_includes=$ac_dir 29722 break 29723 fi 29724done 29725fi 29726rm -f conftest.err conftest.i conftest.$ac_ext 29727fi # $ac_x_includes = no 29728 29729if test "$ac_x_libraries" = no; then 29730 # Check for the libraries. 29731 # See if we find them without any special options. 29732 # Don't add to $LIBS permanently. 29733 ac_save_LIBS=$LIBS 29734 LIBS="-lX11 $LIBS" 29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29736/* end confdefs.h. */ 29737#include <X11/Xlib.h> 29738int 29739main () 29740{ 29741XrmInitialize () 29742 ; 29743 return 0; 29744} 29745_ACEOF 29746if ac_fn_c_try_link "$LINENO"; then : 29747 LIBS=$ac_save_LIBS 29748# We can link X programs with no special library path. 29749ac_x_libraries= 29750else 29751 LIBS=$ac_save_LIBS 29752for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 29753do 29754 # Don't even attempt the hair of trying to link an X program! 29755 for ac_extension in a so sl dylib la dll; do 29756 if test -r "$ac_dir/libX11.$ac_extension"; then 29757 ac_x_libraries=$ac_dir 29758 break 2 29759 fi 29760 done 29761done 29762fi 29763rm -f core conftest.err conftest.$ac_objext \ 29764 conftest$ac_exeext conftest.$ac_ext 29765fi # $ac_x_libraries = no 29766 29767case $ac_x_includes,$ac_x_libraries in #( 29768 no,* | *,no | *\'*) 29769 # Didn't find X, or a directory has "'" in its name. 29770 ac_cv_have_x="have_x=no";; #( 29771 *) 29772 # Record where we found X for the cache. 29773 ac_cv_have_x="have_x=yes\ 29774 ac_x_includes='$ac_x_includes'\ 29775 ac_x_libraries='$ac_x_libraries'" 29776esac 29777fi 29778;; #( 29779 *) have_x=yes;; 29780 esac 29781 eval "$ac_cv_have_x" 29782fi # $with_x != no 29783 29784if test "$have_x" != yes; then 29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 29786$as_echo "$have_x" >&6; } 29787 no_x=yes 29788else 29789 # If each of the values was on the command line, it overrides each guess. 29790 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 29791 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 29792 # Update the cache value to reflect the command line values. 29793 ac_cv_have_x="have_x=yes\ 29794 ac_x_includes='$x_includes'\ 29795 ac_x_libraries='$x_libraries'" 29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 29797$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 29798fi 29799 29800if test "$no_x" = yes; then 29801 # Not all programs may use this symbol, but it does not hurt to define it. 29802 29803$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 29804 29805 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 29806else 29807 if test -n "$x_includes"; then 29808 X_CFLAGS="$X_CFLAGS -I$x_includes" 29809 fi 29810 29811 # It would also be nice to do this for all -L options, not just this one. 29812 if test -n "$x_libraries"; then 29813 X_LIBS="$X_LIBS -L$x_libraries" 29814 # For Solaris; some versions of Sun CC require a space after -R and 29815 # others require no space. Words are not sufficient . . . . 29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 29817$as_echo_n "checking whether -R must be followed by a space... " >&6; } 29818 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 29819 ac_xsave_c_werror_flag=$ac_c_werror_flag 29820 ac_c_werror_flag=yes 29821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29822/* end confdefs.h. */ 29823 29824int 29825main () 29826{ 29827 29828 ; 29829 return 0; 29830} 29831_ACEOF 29832if ac_fn_c_try_link "$LINENO"; then : 29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29834$as_echo "no" >&6; } 29835 X_LIBS="$X_LIBS -R$x_libraries" 29836else 29837 LIBS="$ac_xsave_LIBS -R $x_libraries" 29838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29839/* end confdefs.h. */ 29840 29841int 29842main () 29843{ 29844 29845 ; 29846 return 0; 29847} 29848_ACEOF 29849if ac_fn_c_try_link "$LINENO"; then : 29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29851$as_echo "yes" >&6; } 29852 X_LIBS="$X_LIBS -R $x_libraries" 29853else 29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 29855$as_echo "neither works" >&6; } 29856fi 29857rm -f core conftest.err conftest.$ac_objext \ 29858 conftest$ac_exeext conftest.$ac_ext 29859fi 29860rm -f core conftest.err conftest.$ac_objext \ 29861 conftest$ac_exeext conftest.$ac_ext 29862 ac_c_werror_flag=$ac_xsave_c_werror_flag 29863 LIBS=$ac_xsave_LIBS 29864 fi 29865 29866 # Check for system-dependent libraries X programs must link with. 29867 # Do this before checking for the system-independent R6 libraries 29868 # (-lICE), since we may need -lsocket or whatever for X linking. 29869 29870 if test "$ISC" = yes; then 29871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 29872 else 29873 # Martyn Johnson says this is needed for Ultrix, if the X 29874 # libraries were built with DECnet support. And Karl Berry says 29875 # the Alpha needs dnet_stub (dnet does not exist). 29876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 29877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29878/* end confdefs.h. */ 29879 29880/* Override any GCC internal prototype to avoid an error. 29881 Use char because int might match the return type of a GCC 29882 builtin and then its argument prototype would still apply. */ 29883#ifdef __cplusplus 29884extern "C" 29885#endif 29886char XOpenDisplay (); 29887int 29888main () 29889{ 29890return XOpenDisplay (); 29891 ; 29892 return 0; 29893} 29894_ACEOF 29895if ac_fn_c_try_link "$LINENO"; then : 29896 29897else 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 29899$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 29900if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 29901 $as_echo_n "(cached) " >&6 29902else 29903 ac_check_lib_save_LIBS=$LIBS 29904LIBS="-ldnet $LIBS" 29905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29906/* end confdefs.h. */ 29907 29908/* Override any GCC internal prototype to avoid an error. 29909 Use char because int might match the return type of a GCC 29910 builtin and then its argument prototype would still apply. */ 29911#ifdef __cplusplus 29912extern "C" 29913#endif 29914char dnet_ntoa (); 29915int 29916main () 29917{ 29918return dnet_ntoa (); 29919 ; 29920 return 0; 29921} 29922_ACEOF 29923if ac_fn_c_try_link "$LINENO"; then : 29924 ac_cv_lib_dnet_dnet_ntoa=yes 29925else 29926 ac_cv_lib_dnet_dnet_ntoa=no 29927fi 29928rm -f core conftest.err conftest.$ac_objext \ 29929 conftest$ac_exeext conftest.$ac_ext 29930LIBS=$ac_check_lib_save_LIBS 29931fi 29932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 29933$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 29934if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 29935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 29936fi 29937 29938 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 29940$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 29941if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 29942 $as_echo_n "(cached) " >&6 29943else 29944 ac_check_lib_save_LIBS=$LIBS 29945LIBS="-ldnet_stub $LIBS" 29946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29947/* end confdefs.h. */ 29948 29949/* Override any GCC internal prototype to avoid an error. 29950 Use char because int might match the return type of a GCC 29951 builtin and then its argument prototype would still apply. */ 29952#ifdef __cplusplus 29953extern "C" 29954#endif 29955char dnet_ntoa (); 29956int 29957main () 29958{ 29959return dnet_ntoa (); 29960 ; 29961 return 0; 29962} 29963_ACEOF 29964if ac_fn_c_try_link "$LINENO"; then : 29965 ac_cv_lib_dnet_stub_dnet_ntoa=yes 29966else 29967 ac_cv_lib_dnet_stub_dnet_ntoa=no 29968fi 29969rm -f core conftest.err conftest.$ac_objext \ 29970 conftest$ac_exeext conftest.$ac_ext 29971LIBS=$ac_check_lib_save_LIBS 29972fi 29973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 29974$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 29975if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 29976 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 29977fi 29978 29979 fi 29980fi 29981rm -f core conftest.err conftest.$ac_objext \ 29982 conftest$ac_exeext conftest.$ac_ext 29983 LIBS="$ac_xsave_LIBS" 29984 29985 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 29986 # to get the SysV transport functions. 29987 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 29988 # needs -lnsl. 29989 # The nsl library prevents programs from opening the X display 29990 # on Irix 5.2, according to T.E. Dickey. 29991 # The functions gethostbyname, getservbyname, and inet_addr are 29992 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 29993 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 29994if test "x$ac_cv_func_gethostbyname" = xyes; then : 29995 29996fi 29997 29998 if test $ac_cv_func_gethostbyname = no; then 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 30000$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 30001if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 30002 $as_echo_n "(cached) " >&6 30003else 30004 ac_check_lib_save_LIBS=$LIBS 30005LIBS="-lnsl $LIBS" 30006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30007/* end confdefs.h. */ 30008 30009/* Override any GCC internal prototype to avoid an error. 30010 Use char because int might match the return type of a GCC 30011 builtin and then its argument prototype would still apply. */ 30012#ifdef __cplusplus 30013extern "C" 30014#endif 30015char gethostbyname (); 30016int 30017main () 30018{ 30019return gethostbyname (); 30020 ; 30021 return 0; 30022} 30023_ACEOF 30024if ac_fn_c_try_link "$LINENO"; then : 30025 ac_cv_lib_nsl_gethostbyname=yes 30026else 30027 ac_cv_lib_nsl_gethostbyname=no 30028fi 30029rm -f core conftest.err conftest.$ac_objext \ 30030 conftest$ac_exeext conftest.$ac_ext 30031LIBS=$ac_check_lib_save_LIBS 30032fi 30033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 30034$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 30035if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 30036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 30037fi 30038 30039 if test $ac_cv_lib_nsl_gethostbyname = no; then 30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 30041$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 30042if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 30043 $as_echo_n "(cached) " >&6 30044else 30045 ac_check_lib_save_LIBS=$LIBS 30046LIBS="-lbsd $LIBS" 30047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30048/* end confdefs.h. */ 30049 30050/* Override any GCC internal prototype to avoid an error. 30051 Use char because int might match the return type of a GCC 30052 builtin and then its argument prototype would still apply. */ 30053#ifdef __cplusplus 30054extern "C" 30055#endif 30056char gethostbyname (); 30057int 30058main () 30059{ 30060return gethostbyname (); 30061 ; 30062 return 0; 30063} 30064_ACEOF 30065if ac_fn_c_try_link "$LINENO"; then : 30066 ac_cv_lib_bsd_gethostbyname=yes 30067else 30068 ac_cv_lib_bsd_gethostbyname=no 30069fi 30070rm -f core conftest.err conftest.$ac_objext \ 30071 conftest$ac_exeext conftest.$ac_ext 30072LIBS=$ac_check_lib_save_LIBS 30073fi 30074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 30075$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 30076if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 30077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 30078fi 30079 30080 fi 30081 fi 30082 30083 # lieder@skyler.mavd.honeywell.com says without -lsocket, 30084 # socket/setsockopt and other routines are undefined under SCO ODT 30085 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 30086 # on later versions), says Simon Leinen: it contains gethostby* 30087 # variants that don't use the name server (or something). -lsocket 30088 # must be given before -lnsl if both are needed. We assume that 30089 # if connect needs -lnsl, so does gethostbyname. 30090 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 30091if test "x$ac_cv_func_connect" = xyes; then : 30092 30093fi 30094 30095 if test $ac_cv_func_connect = no; then 30096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 30097$as_echo_n "checking for connect in -lsocket... " >&6; } 30098if ${ac_cv_lib_socket_connect+:} false; then : 30099 $as_echo_n "(cached) " >&6 30100else 30101 ac_check_lib_save_LIBS=$LIBS 30102LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 30103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30104/* end confdefs.h. */ 30105 30106/* Override any GCC internal prototype to avoid an error. 30107 Use char because int might match the return type of a GCC 30108 builtin and then its argument prototype would still apply. */ 30109#ifdef __cplusplus 30110extern "C" 30111#endif 30112char connect (); 30113int 30114main () 30115{ 30116return connect (); 30117 ; 30118 return 0; 30119} 30120_ACEOF 30121if ac_fn_c_try_link "$LINENO"; then : 30122 ac_cv_lib_socket_connect=yes 30123else 30124 ac_cv_lib_socket_connect=no 30125fi 30126rm -f core conftest.err conftest.$ac_objext \ 30127 conftest$ac_exeext conftest.$ac_ext 30128LIBS=$ac_check_lib_save_LIBS 30129fi 30130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 30131$as_echo "$ac_cv_lib_socket_connect" >&6; } 30132if test "x$ac_cv_lib_socket_connect" = xyes; then : 30133 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 30134fi 30135 30136 fi 30137 30138 # Guillermo Gomez says -lposix is necessary on A/UX. 30139 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 30140if test "x$ac_cv_func_remove" = xyes; then : 30141 30142fi 30143 30144 if test $ac_cv_func_remove = no; then 30145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 30146$as_echo_n "checking for remove in -lposix... " >&6; } 30147if ${ac_cv_lib_posix_remove+:} false; then : 30148 $as_echo_n "(cached) " >&6 30149else 30150 ac_check_lib_save_LIBS=$LIBS 30151LIBS="-lposix $LIBS" 30152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30153/* end confdefs.h. */ 30154 30155/* Override any GCC internal prototype to avoid an error. 30156 Use char because int might match the return type of a GCC 30157 builtin and then its argument prototype would still apply. */ 30158#ifdef __cplusplus 30159extern "C" 30160#endif 30161char remove (); 30162int 30163main () 30164{ 30165return remove (); 30166 ; 30167 return 0; 30168} 30169_ACEOF 30170if ac_fn_c_try_link "$LINENO"; then : 30171 ac_cv_lib_posix_remove=yes 30172else 30173 ac_cv_lib_posix_remove=no 30174fi 30175rm -f core conftest.err conftest.$ac_objext \ 30176 conftest$ac_exeext conftest.$ac_ext 30177LIBS=$ac_check_lib_save_LIBS 30178fi 30179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 30180$as_echo "$ac_cv_lib_posix_remove" >&6; } 30181if test "x$ac_cv_lib_posix_remove" = xyes; then : 30182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 30183fi 30184 30185 fi 30186 30187 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 30188 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 30189if test "x$ac_cv_func_shmat" = xyes; then : 30190 30191fi 30192 30193 if test $ac_cv_func_shmat = no; then 30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 30195$as_echo_n "checking for shmat in -lipc... " >&6; } 30196if ${ac_cv_lib_ipc_shmat+:} false; then : 30197 $as_echo_n "(cached) " >&6 30198else 30199 ac_check_lib_save_LIBS=$LIBS 30200LIBS="-lipc $LIBS" 30201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30202/* end confdefs.h. */ 30203 30204/* Override any GCC internal prototype to avoid an error. 30205 Use char because int might match the return type of a GCC 30206 builtin and then its argument prototype would still apply. */ 30207#ifdef __cplusplus 30208extern "C" 30209#endif 30210char shmat (); 30211int 30212main () 30213{ 30214return shmat (); 30215 ; 30216 return 0; 30217} 30218_ACEOF 30219if ac_fn_c_try_link "$LINENO"; then : 30220 ac_cv_lib_ipc_shmat=yes 30221else 30222 ac_cv_lib_ipc_shmat=no 30223fi 30224rm -f core conftest.err conftest.$ac_objext \ 30225 conftest$ac_exeext conftest.$ac_ext 30226LIBS=$ac_check_lib_save_LIBS 30227fi 30228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 30229$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 30230if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 30231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 30232fi 30233 30234 fi 30235 fi 30236 30237 # Check for libraries that X11R6 Xt/Xaw programs need. 30238 ac_save_LDFLAGS=$LDFLAGS 30239 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 30240 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 30241 # check for ICE first), but we must link in the order -lSM -lICE or 30242 # we get undefined symbols. So assume we have SM if we have ICE. 30243 # These have to be linked with before -lX11, unlike the other 30244 # libraries we check for below, so use a different variable. 30245 # John Interrante, Karl Berry 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 30247$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 30248if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 30249 $as_echo_n "(cached) " >&6 30250else 30251 ac_check_lib_save_LIBS=$LIBS 30252LIBS="-lICE $X_EXTRA_LIBS $LIBS" 30253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30254/* end confdefs.h. */ 30255 30256/* Override any GCC internal prototype to avoid an error. 30257 Use char because int might match the return type of a GCC 30258 builtin and then its argument prototype would still apply. */ 30259#ifdef __cplusplus 30260extern "C" 30261#endif 30262char IceConnectionNumber (); 30263int 30264main () 30265{ 30266return IceConnectionNumber (); 30267 ; 30268 return 0; 30269} 30270_ACEOF 30271if ac_fn_c_try_link "$LINENO"; then : 30272 ac_cv_lib_ICE_IceConnectionNumber=yes 30273else 30274 ac_cv_lib_ICE_IceConnectionNumber=no 30275fi 30276rm -f core conftest.err conftest.$ac_objext \ 30277 conftest$ac_exeext conftest.$ac_ext 30278LIBS=$ac_check_lib_save_LIBS 30279fi 30280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 30281$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 30282if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 30283 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 30284fi 30285 30286 LDFLAGS=$ac_save_LDFLAGS 30287 30288fi 30289 30290if test "$no_x" != 'yes'; then 30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30292$as_echo "-------------------------------------------------------------" >&6; } 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 30294$as_echo_n "checking for X11... " >&6; } 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30296$as_echo "" >&6; } 30297 LDFLAGS="$LDFLAGS $X_LIBS" 30298 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 30299 LIBS="$X11_LIBS $LIBS" 30300 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 30301 30302 30303$as_echo "#define X11_DELEGATE 1" >>confdefs.h 30304 30305 # 30306 # Check for X11 shared memory extension 30307 # 30308 # shmctl is required to support the shared memory extension 30309 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" 30310if test "x$ac_cv_func_shmctl" = xyes; then : 30311 have_shmctl='yes' 30312fi 30313 30314 if test "$have_shmctl" != 'yes'; then 30315 PERSIST_LIBS=$LIBS 30316 LIBS="$LIBS -lcygipc" 30317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30318/* end confdefs.h. */ 30319 30320/* Override any GCC internal prototype to avoid an error. 30321 Use char because int might match the return type of a GCC 30322 builtin and then its argument prototype would still apply. */ 30323#ifdef __cplusplus 30324extern "C" 30325#endif 30326char shmctl (); 30327int 30328main () 30329{ 30330return shmctl (); 30331 ; 30332 return 0; 30333} 30334_ACEOF 30335if ac_fn_c_try_link "$LINENO"; then : 30336 have_shmctl='yes'; IPC_LIBS='-lcygipc' 30337fi 30338rm -f core conftest.err conftest.$ac_objext \ 30339 conftest$ac_exeext conftest.$ac_ext 30340 LIBS=$PERSIST_LIBS 30341 fi 30342 30343 if test "$have_shmctl" = 'yes'; then 30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 30345$as_echo_n "checking for XShmAttach in -lXext... " >&6; } 30346if ${ac_cv_lib_Xext_XShmAttach+:} false; then : 30347 $as_echo_n "(cached) " >&6 30348else 30349 ac_check_lib_save_LIBS=$LIBS 30350LIBS="-lXext $LIBS" 30351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30352/* end confdefs.h. */ 30353 30354/* Override any GCC internal prototype to avoid an error. 30355 Use char because int might match the return type of a GCC 30356 builtin and then its argument prototype would still apply. */ 30357#ifdef __cplusplus 30358extern "C" 30359#endif 30360char XShmAttach (); 30361int 30362main () 30363{ 30364return XShmAttach (); 30365 ; 30366 return 0; 30367} 30368_ACEOF 30369if ac_fn_c_try_link "$LINENO"; then : 30370 ac_cv_lib_Xext_XShmAttach=yes 30371else 30372 ac_cv_lib_Xext_XShmAttach=no 30373fi 30374rm -f core conftest.err conftest.$ac_objext \ 30375 conftest$ac_exeext conftest.$ac_ext 30376LIBS=$ac_check_lib_save_LIBS 30377fi 30378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 30379$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 30380if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : 30381 XEXT_LIBS='-lXext' ; 30382$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h 30383 30384fi 30385 30386 fi 30387 30388 # 30389 # Check for X11 shape extension 30390 # 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 30392$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } 30393if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : 30394 $as_echo_n "(cached) " >&6 30395else 30396 ac_check_lib_save_LIBS=$LIBS 30397LIBS="-lXext $LIBS" 30398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30399/* end confdefs.h. */ 30400 30401/* Override any GCC internal prototype to avoid an error. 30402 Use char because int might match the return type of a GCC 30403 builtin and then its argument prototype would still apply. */ 30404#ifdef __cplusplus 30405extern "C" 30406#endif 30407char XShapeCombineMask (); 30408int 30409main () 30410{ 30411return XShapeCombineMask (); 30412 ; 30413 return 0; 30414} 30415_ACEOF 30416if ac_fn_c_try_link "$LINENO"; then : 30417 ac_cv_lib_Xext_XShapeCombineMask=yes 30418else 30419 ac_cv_lib_Xext_XShapeCombineMask=no 30420fi 30421rm -f core conftest.err conftest.$ac_objext \ 30422 conftest$ac_exeext conftest.$ac_ext 30423LIBS=$ac_check_lib_save_LIBS 30424fi 30425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 30426$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } 30427if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : 30428 XEXT_LIBS='-lXext' ; 30429$as_echo "#define HAVE_SHAPE 1" >>confdefs.h 30430 30431fi 30432 30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 30434$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } 30435if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : 30436 $as_echo_n "(cached) " >&6 30437else 30438 ac_check_lib_save_LIBS=$LIBS 30439LIBS="-lXt $LIBS" 30440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30441/* end confdefs.h. */ 30442 30443/* Override any GCC internal prototype to avoid an error. 30444 Use char because int might match the return type of a GCC 30445 builtin and then its argument prototype would still apply. */ 30446#ifdef __cplusplus 30447extern "C" 30448#endif 30449char XtSetEventDispatcher (); 30450int 30451main () 30452{ 30453return XtSetEventDispatcher (); 30454 ; 30455 return 0; 30456} 30457_ACEOF 30458if ac_fn_c_try_link "$LINENO"; then : 30459 ac_cv_lib_Xt_XtSetEventDispatcher=yes 30460else 30461 ac_cv_lib_Xt_XtSetEventDispatcher=no 30462fi 30463rm -f core conftest.err conftest.$ac_objext \ 30464 conftest$ac_exeext conftest.$ac_ext 30465LIBS=$ac_check_lib_save_LIBS 30466fi 30467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 30468$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } 30469if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : 30470 XT_LIBS='-lXt' 30471fi 30472 30473 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 30474fi 30475if test "$no_x" != 'yes'; then 30476 have_x='yes' 30477else 30478 have_x='no' 30479fi 30480 if test "$have_x" = 'yes'; then 30481 X11_DELEGATE_TRUE= 30482 X11_DELEGATE_FALSE='#' 30483else 30484 X11_DELEGATE_TRUE='#' 30485 X11_DELEGATE_FALSE= 30486fi 30487 30488 30489 30490 30491 30492# 30493# Check for ZLIB 30494# 30495 30496# Check whether --with-zlib was given. 30497if test "${with_zlib+set}" = set; then : 30498 withval=$with_zlib; with_zlib=$withval 30499else 30500 with_zlib='yes' 30501fi 30502 30503 30504if test "$with_zlib" != 'yes'; then 30505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 30506fi 30507 30508have_zlib='no' 30509ZLIB_CFLAGS="" 30510ZLIB_LIBS="" 30511ZLIB_PKG="" 30512if test "x$with_zlib" = "xyes"; then 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30514$as_echo "-------------------------------------------------------------" >&6; } 30515 30516pkg_failed=no 30517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 30518$as_echo_n "checking for ZLIB... " >&6; } 30519 30520if test -n "$ZLIB_CFLAGS"; then 30521 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 30522 elif test -n "$PKG_CONFIG"; then 30523 if test -n "$PKG_CONFIG" && \ 30524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 30525 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 30526 ac_status=$? 30527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30528 test $ac_status = 0; }; then 30529 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null` 30530 test "x$?" != "x0" && pkg_failed=yes 30531else 30532 pkg_failed=yes 30533fi 30534 else 30535 pkg_failed=untried 30536fi 30537if test -n "$ZLIB_LIBS"; then 30538 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 30539 elif test -n "$PKG_CONFIG"; then 30540 if test -n "$PKG_CONFIG" && \ 30541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 30542 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 30543 ac_status=$? 30544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30545 test $ac_status = 0; }; then 30546 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null` 30547 test "x$?" != "x0" && pkg_failed=yes 30548else 30549 pkg_failed=yes 30550fi 30551 else 30552 pkg_failed=untried 30553fi 30554 30555 30556 30557if test $pkg_failed = yes; then 30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30559$as_echo "no" >&6; } 30560 30561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30562 _pkg_short_errors_supported=yes 30563else 30564 _pkg_short_errors_supported=no 30565fi 30566 if test $_pkg_short_errors_supported = yes; then 30567 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 30568 else 30569 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 30570 fi 30571 # Put the nasty error message in config.log where it belongs 30572 echo "$ZLIB_PKG_ERRORS" >&5 30573 30574 have_zlib=no 30575elif test $pkg_failed = untried; then 30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30577$as_echo "no" >&6; } 30578 have_zlib=no 30579else 30580 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 30581 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30583$as_echo "yes" >&6; } 30584 have_zlib=yes 30585fi 30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30587$as_echo "" >&6; } 30588fi 30589 30590if test "$have_zlib" = 'yes'; then 30591 30592$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h 30593 30594 CFLAGS="$ZLIB_CFLAGS $CFLAGS" 30595fi 30596 30597 if test "$have_zlib" = 'yes'; then 30598 ZLIB_DELEGATE_TRUE= 30599 ZLIB_DELEGATE_FALSE='#' 30600else 30601 ZLIB_DELEGATE_TRUE='#' 30602 ZLIB_DELEGATE_FALSE= 30603fi 30604 30605 30606 30607 30608 30609# whether modules are built or not. 30610with_ltdl='yes' 30611have_ltdl='no' 30612LTDL_LIBS='' 30613if test "$build_modules" != 'no' ; then 30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30615$as_echo "-------------------------------------------------------------" >&6; } 30616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 30617$as_echo_n "checking for libltdl... " >&6; } 30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30619$as_echo "" >&6; } 30620 failed=0 30621 passed=0 30622 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 30623if test "x$ac_cv_header_ltdl_h" = xyes; then : 30624 passed=`expr $passed + 1` 30625else 30626 failed=`expr $failed + 1` 30627fi 30628 30629 30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 30631$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 30632if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 30633 $as_echo_n "(cached) " >&6 30634else 30635 ac_check_lib_save_LIBS=$LIBS 30636LIBS="-lltdl $LIBS" 30637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30638/* end confdefs.h. */ 30639 30640/* Override any GCC internal prototype to avoid an error. 30641 Use char because int might match the return type of a GCC 30642 builtin and then its argument prototype would still apply. */ 30643#ifdef __cplusplus 30644extern "C" 30645#endif 30646char lt_dlinit (); 30647int 30648main () 30649{ 30650return lt_dlinit (); 30651 ; 30652 return 0; 30653} 30654_ACEOF 30655if ac_fn_c_try_link "$LINENO"; then : 30656 ac_cv_lib_ltdl_lt_dlinit=yes 30657else 30658 ac_cv_lib_ltdl_lt_dlinit=no 30659fi 30660rm -f core conftest.err conftest.$ac_objext \ 30661 conftest$ac_exeext conftest.$ac_ext 30662LIBS=$ac_check_lib_save_LIBS 30663fi 30664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 30665$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 30666if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 30667 passed=`expr $passed + 1` 30668else 30669 failed=`expr $failed + 1` 30670fi 30671 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 30673$as_echo_n "checking if libltdl package is complete... " >&6; } 30674 if test $passed -gt 0 ; then 30675 if test $failed -gt 0 ; then 30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30677$as_echo "no -- some components failed test" >&6; } 30678 have_ltdl='no (failed tests)' 30679 else 30680 LTDL_LIBS='-lltdl' 30681 LIBS="$LTDL_LIBS $LIBS" 30682 30683$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h 30684 30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30686$as_echo "yes" >&6; } 30687 have_ltdl='yes' 30688 fi 30689 else 30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30691$as_echo "no" >&6; } 30692 fi 30693 if test "$have_ltdl" != 'yes' ; then 30694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30696as_fn_error 1 "libltdl is required for modules build 30697See \`config.log' for more details" "$LINENO" 5; } 30698 fi 30699fi 30700 if test "$have_ltdl" != 'no'; then 30701 WITH_LTDL_TRUE= 30702 WITH_LTDL_FALSE='#' 30703else 30704 WITH_LTDL_TRUE='#' 30705 WITH_LTDL_FALSE= 30706fi 30707 30708 30709# 30710# If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 30711# 30712LIB_DL='' 30713if test "$enable_profiling" = 'yes'; then 30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 30715$as_echo_n "checking for dlopen in -ldl... " >&6; } 30716if ${ac_cv_lib_dl_dlopen+:} false; then : 30717 $as_echo_n "(cached) " >&6 30718else 30719 ac_check_lib_save_LIBS=$LIBS 30720LIBS="-ldl $LIBS" 30721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30722/* end confdefs.h. */ 30723 30724/* Override any GCC internal prototype to avoid an error. 30725 Use char because int might match the return type of a GCC 30726 builtin and then its argument prototype would still apply. */ 30727#ifdef __cplusplus 30728extern "C" 30729#endif 30730char dlopen (); 30731int 30732main () 30733{ 30734return dlopen (); 30735 ; 30736 return 0; 30737} 30738_ACEOF 30739if ac_fn_c_try_link "$LINENO"; then : 30740 ac_cv_lib_dl_dlopen=yes 30741else 30742 ac_cv_lib_dl_dlopen=no 30743fi 30744rm -f core conftest.err conftest.$ac_objext \ 30745 conftest$ac_exeext conftest.$ac_ext 30746LIBS=$ac_check_lib_save_LIBS 30747fi 30748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 30749$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 30750if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 30751 LIB_DL='-ldl' 30752fi 30753 30754 LIBS="$LIB_DL $LIBS" 30755fi 30756 30757 30758 30759# 30760# Set Apple font directory. 30761# 30762 30763# Check whether --with-apple-font-dir was given. 30764if test "${with_apple_font_dir+set}" = set; then : 30765 withval=$with_apple_font_dir; with_apple_font_dir=$withval 30766else 30767 with_apple_font_dir='default' 30768fi 30769 30770 30771if test "$with_apple_font_dir" != 'default'; then 30772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir " 30773fi 30774 30775 30776# 30777# Check for Autotrace delegate library. 30778# 30779 30780# Check whether --with-autotrace was given. 30781if test "${with_autotrace+set}" = set; then : 30782 withval=$with_autotrace; with_autotrace=$withval 30783else 30784 with_autotrace='no' 30785fi 30786 30787 30788if test "$with_autotrace" != 'yes'; then 30789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 30790fi 30791 30792have_autotrace='no' 30793AUTOTRACE_CFLAGS="" 30794AUTOTRACE_LIBS="" 30795AUTOTRACE_PKG="" 30796if test "x$with_autotrace" = "xyes"; then 30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30798$as_echo "-------------------------------------------------------------" >&6; } 30799 30800pkg_failed=no 30801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 30802$as_echo_n "checking for AUTOTRACE... " >&6; } 30803 30804if test -n "$AUTOTRACE_CFLAGS"; then 30805 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" 30806 elif test -n "$PKG_CONFIG"; then 30807 if test -n "$PKG_CONFIG" && \ 30808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 30809 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 30810 ac_status=$? 30811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30812 test $ac_status = 0; }; then 30813 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` 30814 test "x$?" != "x0" && pkg_failed=yes 30815else 30816 pkg_failed=yes 30817fi 30818 else 30819 pkg_failed=untried 30820fi 30821if test -n "$AUTOTRACE_LIBS"; then 30822 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" 30823 elif test -n "$PKG_CONFIG"; then 30824 if test -n "$PKG_CONFIG" && \ 30825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 30826 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 30827 ac_status=$? 30828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30829 test $ac_status = 0; }; then 30830 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` 30831 test "x$?" != "x0" && pkg_failed=yes 30832else 30833 pkg_failed=yes 30834fi 30835 else 30836 pkg_failed=untried 30837fi 30838 30839 30840 30841if test $pkg_failed = yes; then 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30843$as_echo "no" >&6; } 30844 30845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30846 _pkg_short_errors_supported=yes 30847else 30848 _pkg_short_errors_supported=no 30849fi 30850 if test $_pkg_short_errors_supported = yes; then 30851 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 30852 else 30853 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 30854 fi 30855 # Put the nasty error message in config.log where it belongs 30856 echo "$AUTOTRACE_PKG_ERRORS" >&5 30857 30858 have_autotrace=no 30859elif test $pkg_failed = untried; then 30860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30861$as_echo "no" >&6; } 30862 have_autotrace=no 30863else 30864 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS 30865 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS 30866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30867$as_echo "yes" >&6; } 30868 have_autotrace=yes 30869fi 30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30871$as_echo "" >&6; } 30872fi 30873 30874if test "$have_autotrace" = 'yes'; then 30875 30876$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h 30877 30878 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS" 30879fi 30880 30881 if test "$have_autotrace" = 'yes'; then 30882 AUTOTRACE_DELEGATE_TRUE= 30883 AUTOTRACE_DELEGATE_FALSE='#' 30884else 30885 AUTOTRACE_DELEGATE_TRUE='#' 30886 AUTOTRACE_DELEGATE_FALSE= 30887fi 30888 30889 30890 30891 30892 30893# 30894# Check for Display Postscript delegate library. 30895# 30896 30897# Check whether --with-dps was given. 30898if test "${with_dps+set}" = set; then : 30899 withval=$with_dps; with_dps=$withval 30900else 30901 with_dps='yes' 30902fi 30903 30904 30905if test "$with_dps" != 'yes'; then 30906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 30907fi 30908 30909have_dps='no' 30910DPS_LIBS='' 30911if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30913$as_echo "-------------------------------------------------------------" >&6; } 30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 30915$as_echo_n "checking for DPS... " >&6; } 30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30917$as_echo "" >&6; } 30918 failed=0 30919 passed=0 30920 PERSIST_CPPFLAGS="$CPPFLAGS" 30921 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 30922 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" 30923if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : 30924 passed=`expr $passed + 1` 30925else 30926 failed=`expr $failed + 1` 30927fi 30928 30929 30930 # DPS issues: 30931 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 30932 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 30933 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 30934 # ImageMagick itself doesn't use -lXt. 30935 have_libdps='no' 30936 LIBDPS_XT='' 30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 30938$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 30939if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 30940 $as_echo_n "(cached) " >&6 30941else 30942 ac_check_lib_save_LIBS=$LIBS 30943LIBS="-ldps $LIBS" 30944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30945/* end confdefs.h. */ 30946 30947/* Override any GCC internal prototype to avoid an error. 30948 Use char because int might match the return type of a GCC 30949 builtin and then its argument prototype would still apply. */ 30950#ifdef __cplusplus 30951extern "C" 30952#endif 30953char DPSInitialize (); 30954int 30955main () 30956{ 30957return DPSInitialize (); 30958 ; 30959 return 0; 30960} 30961_ACEOF 30962if ac_fn_c_try_link "$LINENO"; then : 30963 ac_cv_lib_dps_DPSInitialize=yes 30964else 30965 ac_cv_lib_dps_DPSInitialize=no 30966fi 30967rm -f core conftest.err conftest.$ac_objext \ 30968 conftest$ac_exeext conftest.$ac_ext 30969LIBS=$ac_check_lib_save_LIBS 30970fi 30971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 30972$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 30973if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 30974 have_libdps='yes' 30975else 30976 have_libdps='no' 30977fi 30978 30979 if test "$have_libdps" != 'yes'; then 30980 # Unset cache variable so we can try again. 30981 unset ac_cv_lib_dps_DPSInitialize 30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 30983$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 30984if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 30985 $as_echo_n "(cached) " >&6 30986else 30987 ac_check_lib_save_LIBS=$LIBS 30988LIBS="-ldps -lXt $LIBS" 30989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30990/* end confdefs.h. */ 30991 30992/* Override any GCC internal prototype to avoid an error. 30993 Use char because int might match the return type of a GCC 30994 builtin and then its argument prototype would still apply. */ 30995#ifdef __cplusplus 30996extern "C" 30997#endif 30998char DPSInitialize (); 30999int 31000main () 31001{ 31002return DPSInitialize (); 31003 ; 31004 return 0; 31005} 31006_ACEOF 31007if ac_fn_c_try_link "$LINENO"; then : 31008 ac_cv_lib_dps_DPSInitialize=yes 31009else 31010 ac_cv_lib_dps_DPSInitialize=no 31011fi 31012rm -f core conftest.err conftest.$ac_objext \ 31013 conftest$ac_exeext conftest.$ac_ext 31014LIBS=$ac_check_lib_save_LIBS 31015fi 31016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 31017$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 31018if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 31019 have_libdps='yes' 31020else 31021 have_libdps='no' 31022fi 31023 31024 if test "$have_libdps" = 'yes'; then 31025 LIBDPS_XT='-lXt' 31026 fi 31027 fi 31028 if test "$have_libdps" = 'yes'; then 31029 passed=`expr $passed + 1` 31030 else 31031 failed=`expr $failed + 1` 31032 fi 31033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 31034$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } 31035if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : 31036 $as_echo_n "(cached) " >&6 31037else 31038 ac_check_lib_save_LIBS=$LIBS 31039LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" 31040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31041/* end confdefs.h. */ 31042 31043/* Override any GCC internal prototype to avoid an error. 31044 Use char because int might match the return type of a GCC 31045 builtin and then its argument prototype would still apply. */ 31046#ifdef __cplusplus 31047extern "C" 31048#endif 31049char XDPSPixelsPerPoint (); 31050int 31051main () 31052{ 31053return XDPSPixelsPerPoint (); 31054 ; 31055 return 0; 31056} 31057_ACEOF 31058if ac_fn_c_try_link "$LINENO"; then : 31059 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes 31060else 31061 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no 31062fi 31063rm -f core conftest.err conftest.$ac_objext \ 31064 conftest$ac_exeext conftest.$ac_ext 31065LIBS=$ac_check_lib_save_LIBS 31066fi 31067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 31068$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } 31069if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : 31070 passed=`expr $passed + 1` 31071else 31072 failed=`expr $failed + 1` 31073fi 31074 31075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 31076$as_echo_n "checking if DPS package is complete... " >&6; } 31077 if test $passed -gt 0; then 31078 if test $failed -gt 0; then 31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31080$as_echo "no -- some components failed test" >&6; } 31081 have_dps='no (failed tests)' 31082 CPPFLAGS="$PERSIST_CPPFLAGS" 31083 else 31084 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 31085 LIBS="$DPS_LIBS $LIBS" 31086 31087$as_echo "#define DPS_DELEGATE 1" >>confdefs.h 31088 31089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31090$as_echo "yes" >&6; } 31091 have_dps='yes' 31092 fi 31093 else 31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31095$as_echo "no" >&6; } 31096 CPPFLAGS=$PERSIST_CPPFLAGS 31097 fi 31098fi 31099 if test "$have_dps" = 'yes'; then 31100 DPS_DELEGATE_TRUE= 31101 DPS_DELEGATE_FALSE='#' 31102else 31103 DPS_DELEGATE_TRUE='#' 31104 DPS_DELEGATE_FALSE= 31105fi 31106 31107 31108 31109 31110# 31111# Set DejaVu font directory. 31112# 31113 31114# Check whether --with-dejavu-font-dir was given. 31115if test "${with_dejavu_font_dir+set}" = set; then : 31116 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval 31117else 31118 with_dejavu_font_dir='default' 31119fi 31120 31121 31122if test "$with_dejavu_font_dir" != 'default'; then 31123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 31124fi 31125 31126 31127# 31128# Check for FFTW delegate library. 31129# 31130 31131# Check whether --with-fftw was given. 31132if test "${with_fftw+set}" = set; then : 31133 withval=$with_fftw; with_fftw=$withval 31134else 31135 with_fftw='yes' 31136fi 31137 31138 31139if test "$with_fftw" != 'yes'; then 31140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 31141fi 31142 31143have_fftw='no' 31144FFTW_CFLAGS="" 31145FFTW_LIBS="" 31146FFTW_PKG="" 31147if test "x$with_fftw" = "xyes"; then 31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31149$as_echo "-------------------------------------------------------------" >&6; } 31150 31151pkg_failed=no 31152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5 31153$as_echo_n "checking for fftw3... " >&6; } 31154 31155if test -n "$fftw3_CFLAGS"; then 31156 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS" 31157 elif test -n "$PKG_CONFIG"; then 31158 if test -n "$PKG_CONFIG" && \ 31159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 31160 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 31161 ac_status=$? 31162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31163 test $ac_status = 0; }; then 31164 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null` 31165 test "x$?" != "x0" && pkg_failed=yes 31166else 31167 pkg_failed=yes 31168fi 31169 else 31170 pkg_failed=untried 31171fi 31172if test -n "$fftw3_LIBS"; then 31173 pkg_cv_fftw3_LIBS="$fftw3_LIBS" 31174 elif test -n "$PKG_CONFIG"; then 31175 if test -n "$PKG_CONFIG" && \ 31176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 31177 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 31178 ac_status=$? 31179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31180 test $ac_status = 0; }; then 31181 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null` 31182 test "x$?" != "x0" && pkg_failed=yes 31183else 31184 pkg_failed=yes 31185fi 31186 else 31187 pkg_failed=untried 31188fi 31189 31190 31191 31192if test $pkg_failed = yes; then 31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31194$as_echo "no" >&6; } 31195 31196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31197 _pkg_short_errors_supported=yes 31198else 31199 _pkg_short_errors_supported=no 31200fi 31201 if test $_pkg_short_errors_supported = yes; then 31202 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 31203 else 31204 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 31205 fi 31206 # Put the nasty error message in config.log where it belongs 31207 echo "$fftw3_PKG_ERRORS" >&5 31208 31209 have_fftw=no 31210elif test $pkg_failed = untried; then 31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31212$as_echo "no" >&6; } 31213 have_fftw=no 31214else 31215 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS 31216 fftw3_LIBS=$pkg_cv_fftw3_LIBS 31217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31218$as_echo "yes" >&6; } 31219 have_fftw=yes 31220fi 31221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31222$as_echo "" >&6; } 31223fi 31224 31225if test "$have_fftw" = 'yes'; then 31226 31227$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h 31228 31229 FFTW_CFLAGS="$fftw3_CFLAGS" 31230 FFTW_LIBS="$fftw3_LIBS" 31231 CFLAGS="$fftw3_CFLAGS $CFLAGS" 31232fi 31233 31234 if test "$have_fftw" = 'yes'; then 31235 FFTW_DELEGATE_TRUE= 31236 FFTW_DELEGATE_FALSE='#' 31237else 31238 FFTW_DELEGATE_TRUE='#' 31239 FFTW_DELEGATE_FALSE= 31240fi 31241 31242 31243 31244 31245 31246# 31247# Check for FLIF delegate library. 31248# 31249 31250# Check whether --with-flif was given. 31251if test "${with_flif+set}" = set; then : 31252 withval=$with_flif; with_flif=$withval 31253else 31254 with_flif='yes' 31255fi 31256 31257 31258if test "$with_flif" != 'yes'; then 31259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif " 31260fi 31261 31262have_flif='no' 31263FLIF_LIBS='' 31264if test "$with_flif" != 'no'; then 31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31266$as_echo "-------------------------------------------------------------" >&6; } 31267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5 31268$as_echo_n "checking for FLIF... " >&6; } 31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31270$as_echo "" >&6; } 31271 failed=0 31272 passed=0 31273 ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default" 31274if test "x$ac_cv_header_flif_h" = xyes; then : 31275 passed=`expr $passed + 1` 31276else 31277 failed=`expr $failed + 1` 31278fi 31279 31280 31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5 31282$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; } 31283if ${ac_cv_lib_flif_flif_create_decoder+:} false; then : 31284 $as_echo_n "(cached) " >&6 31285else 31286 ac_check_lib_save_LIBS=$LIBS 31287LIBS="-lflif $LIBS" 31288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31289/* end confdefs.h. */ 31290 31291/* Override any GCC internal prototype to avoid an error. 31292 Use char because int might match the return type of a GCC 31293 builtin and then its argument prototype would still apply. */ 31294#ifdef __cplusplus 31295extern "C" 31296#endif 31297char flif_create_decoder (); 31298int 31299main () 31300{ 31301return flif_create_decoder (); 31302 ; 31303 return 0; 31304} 31305_ACEOF 31306if ac_fn_c_try_link "$LINENO"; then : 31307 ac_cv_lib_flif_flif_create_decoder=yes 31308else 31309 ac_cv_lib_flif_flif_create_decoder=no 31310fi 31311rm -f core conftest.err conftest.$ac_objext \ 31312 conftest$ac_exeext conftest.$ac_ext 31313LIBS=$ac_check_lib_save_LIBS 31314fi 31315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5 31316$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; } 31317if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then : 31318 passed=`expr $passed + 1` 31319else 31320 failed=`expr $failed + 1` 31321fi 31322 31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5 31324$as_echo_n "checking if FLIF package is complete... " >&6; } 31325 if test $passed -gt 0; then 31326 if test $failed -gt 0; then 31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31328$as_echo "no -- some components failed test" >&6; } 31329 have_flif='no (failed tests)' 31330 else 31331 FLIF_LIBS='-lflif' 31332 LIBS="$FLIF_LIBS $LIBS" 31333 31334$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h 31335 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31337$as_echo "yes" >&6; } 31338 have_flif='yes' 31339 fi 31340 else 31341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31342$as_echo "no" >&6; } 31343 fi 31344fi 31345 if test "$have_flif" = 'yes'; then 31346 FLIF_DELEGATE_TRUE= 31347 FLIF_DELEGATE_FALSE='#' 31348else 31349 FLIF_DELEGATE_TRUE='#' 31350 FLIF_DELEGATE_FALSE= 31351fi 31352 31353 31354 31355 31356# 31357# Check for FlashPIX delegate library. 31358# 31359 31360# Check whether --with-fpx was given. 31361if test "${with_fpx+set}" = set; then : 31362 withval=$with_fpx; with_fpx=$withval 31363else 31364 with_fpx='yes' 31365fi 31366 31367 31368if test "$with_fpx" != 'yes'; then 31369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 31370fi 31371 31372have_fpx='no' 31373FPX_LIBS='' 31374if test "$with_fpx" != 'no'; then 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31376$as_echo "-------------------------------------------------------------" >&6; } 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 31378$as_echo_n "checking for FlashPIX... " >&6; } 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31380$as_echo "" >&6; } 31381 failed=0 31382 passed=0 31383 ac_ext=cpp 31384ac_cpp='$CXXCPP $CPPFLAGS' 31385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31388 31389 31390ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" 31391if test "x$ac_cv_header_fpxlib_h" = xyes; then : 31392 passed=`expr $passed + 1` 31393else 31394 failed=`expr $failed + 1` 31395fi 31396 31397 31398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 31399$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } 31400if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : 31401 $as_echo_n "(cached) " >&6 31402else 31403 ac_check_lib_save_LIBS=$LIBS 31404LIBS="-lfpx $LIBS" 31405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31406/* end confdefs.h. */ 31407 31408/* Override any GCC internal prototype to avoid an error. 31409 Use char because int might match the return type of a GCC 31410 builtin and then its argument prototype would still apply. */ 31411#ifdef __cplusplus 31412extern "C" 31413#endif 31414char FPX_OpenImageByFilename (); 31415int 31416main () 31417{ 31418return FPX_OpenImageByFilename (); 31419 ; 31420 return 0; 31421} 31422_ACEOF 31423if ac_fn_cxx_try_link "$LINENO"; then : 31424 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes 31425else 31426 ac_cv_lib_fpx_FPX_OpenImageByFilename=no 31427fi 31428rm -f core conftest.err conftest.$ac_objext \ 31429 conftest$ac_exeext conftest.$ac_ext 31430LIBS=$ac_check_lib_save_LIBS 31431fi 31432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 31433$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } 31434if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : 31435 passed=`expr $passed + 1` 31436else 31437 failed=`expr $failed + 1` 31438fi 31439 31440 ac_ext=c 31441ac_cpp='$CPP $CPPFLAGS' 31442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31444ac_compiler_gnu=$ac_cv_c_compiler_gnu 31445 31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 31447$as_echo_n "checking if FlashPIX package is complete... " >&6; } 31448 if test $passed -gt 0; then 31449 if test $failed -gt 0; then 31450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31451$as_echo "no -- some components failed test" >&6; } 31452 have_fpx='no (failed tests)' 31453 else 31454 FPX_LIBS='-lfpx' 31455 31456$as_echo "#define FPX_DELEGATE 1" >>confdefs.h 31457 31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31459$as_echo "yes" >&6; } 31460 have_fpx='yes' 31461 PERLMAINCC="$CXX" 31462 fi 31463 else 31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31465$as_echo "no" >&6; } 31466 fi 31467fi 31468 if test "$have_fpx" = 'yes'; then 31469 FPX_DELEGATE_TRUE= 31470 FPX_DELEGATE_FALSE='#' 31471else 31472 FPX_DELEGATE_TRUE='#' 31473 FPX_DELEGATE_FALSE= 31474fi 31475 31476 31477 31478 31479# 31480# Check for DJVU delegate library. 31481# 31482 31483# Check whether --with-djvu was given. 31484if test "${with_djvu+set}" = set; then : 31485 withval=$with_djvu; with_djvu=$withval 31486else 31487 with_djvu='yes' 31488fi 31489 31490 31491if test "$with_djvu" != 'yes'; then 31492 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 31493fi 31494 31495have_djvu='no' 31496DJVU_CFLAGS="" 31497DJVU_LIBS="" 31498DJVU_PKG="" 31499if test "x$with_djvu" = "xyes"; then 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31501$as_echo "-------------------------------------------------------------" >&6; } 31502 31503pkg_failed=no 31504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5 31505$as_echo_n "checking for ddjvuapi... " >&6; } 31506 31507if test -n "$ddjvuapi_CFLAGS"; then 31508 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS" 31509 elif test -n "$PKG_CONFIG"; then 31510 if test -n "$PKG_CONFIG" && \ 31511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 31512 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 31513 ac_status=$? 31514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31515 test $ac_status = 0; }; then 31516 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null` 31517 test "x$?" != "x0" && pkg_failed=yes 31518else 31519 pkg_failed=yes 31520fi 31521 else 31522 pkg_failed=untried 31523fi 31524if test -n "$ddjvuapi_LIBS"; then 31525 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS" 31526 elif test -n "$PKG_CONFIG"; then 31527 if test -n "$PKG_CONFIG" && \ 31528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 31529 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 31530 ac_status=$? 31531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31532 test $ac_status = 0; }; then 31533 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null` 31534 test "x$?" != "x0" && pkg_failed=yes 31535else 31536 pkg_failed=yes 31537fi 31538 else 31539 pkg_failed=untried 31540fi 31541 31542 31543 31544if test $pkg_failed = yes; then 31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31546$as_echo "no" >&6; } 31547 31548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31549 _pkg_short_errors_supported=yes 31550else 31551 _pkg_short_errors_supported=no 31552fi 31553 if test $_pkg_short_errors_supported = yes; then 31554 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 31555 else 31556 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 31557 fi 31558 # Put the nasty error message in config.log where it belongs 31559 echo "$ddjvuapi_PKG_ERRORS" >&5 31560 31561 have_djvu=no 31562elif test $pkg_failed = untried; then 31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31564$as_echo "no" >&6; } 31565 have_djvu=no 31566else 31567 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS 31568 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS 31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31570$as_echo "yes" >&6; } 31571 have_djvu=yes 31572fi 31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31574$as_echo "" >&6; } 31575fi 31576 31577if test "$have_djvu" = 'yes'; then 31578 31579$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h 31580 31581 DJVU_CFLAGS="$ddjvuapi_CFLAGS" 31582 DJVU_LIBS="$ddjvuapi_LIBS" 31583 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS" 31584fi 31585 31586 if test "$have_djvu" = 'yes'; then 31587 DJVU_DELEGATE_TRUE= 31588 DJVU_DELEGATE_FALSE='#' 31589else 31590 DJVU_DELEGATE_TRUE='#' 31591 DJVU_DELEGATE_FALSE= 31592fi 31593 31594 31595 31596 31597 31598# 31599# Check for fontconfig delegate library. 31600# 31601 31602# Check whether --with-fontconfig was given. 31603if test "${with_fontconfig+set}" = set; then : 31604 withval=$with_fontconfig; with_fontconfig=$withval 31605else 31606 with_fontconfig='yes' 31607fi 31608 31609 31610if test "$with_fontconfig" != 'yes'; then 31611 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 31612fi 31613 31614have_fontconfig='no' 31615FONTCONFIG_CFLAGS="" 31616FONTCONFIG_LIBS="" 31617FONTCONFIG_PKG="" 31618if test "x$with_fontconfig" = "xyes"; then 31619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31620$as_echo "-------------------------------------------------------------" >&6; } 31621 31622pkg_failed=no 31623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 31624$as_echo_n "checking for FONTCONFIG... " >&6; } 31625 31626if test -n "$FONTCONFIG_CFLAGS"; then 31627 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 31628 elif test -n "$PKG_CONFIG"; then 31629 if test -n "$PKG_CONFIG" && \ 31630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 31631 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 31632 ac_status=$? 31633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31634 test $ac_status = 0; }; then 31635 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` 31636 test "x$?" != "x0" && pkg_failed=yes 31637else 31638 pkg_failed=yes 31639fi 31640 else 31641 pkg_failed=untried 31642fi 31643if test -n "$FONTCONFIG_LIBS"; then 31644 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 31645 elif test -n "$PKG_CONFIG"; then 31646 if test -n "$PKG_CONFIG" && \ 31647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 31648 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 31649 ac_status=$? 31650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31651 test $ac_status = 0; }; then 31652 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` 31653 test "x$?" != "x0" && pkg_failed=yes 31654else 31655 pkg_failed=yes 31656fi 31657 else 31658 pkg_failed=untried 31659fi 31660 31661 31662 31663if test $pkg_failed = yes; then 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31665$as_echo "no" >&6; } 31666 31667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31668 _pkg_short_errors_supported=yes 31669else 31670 _pkg_short_errors_supported=no 31671fi 31672 if test $_pkg_short_errors_supported = yes; then 31673 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 31674 else 31675 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 31676 fi 31677 # Put the nasty error message in config.log where it belongs 31678 echo "$FONTCONFIG_PKG_ERRORS" >&5 31679 31680 have_fontconfig=no 31681elif test $pkg_failed = untried; then 31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31683$as_echo "no" >&6; } 31684 have_fontconfig=no 31685else 31686 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 31687 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31689$as_echo "yes" >&6; } 31690 have_fontconfig=yes 31691fi 31692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31693$as_echo "" >&6; } 31694fi 31695 31696if test "$have_fontconfig" = 'yes'; then 31697 31698$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h 31699 31700 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS" 31701fi 31702 31703 if test "$have_fontconfig" = 'yes'; then 31704 FONTCONFIG_DELEGATE_TRUE= 31705 FONTCONFIG_DELEGATE_FALSE='#' 31706else 31707 FONTCONFIG_DELEGATE_TRUE='#' 31708 FONTCONFIG_DELEGATE_FALSE= 31709fi 31710 31711 31712 31713 31714 31715# 31716# Check for the Freetype delegate library. 31717# 31718 31719# Check whether --with-freetype was given. 31720if test "${with_freetype+set}" = set; then : 31721 withval=$with_freetype; with_freetype=$withval 31722else 31723 with_freetype='yes' 31724fi 31725 31726 31727if test "$with_freetype" != 'yes'; then 31728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 31729fi 31730 31731have_freetype='no' 31732FREETYPE_CFLAGS="" 31733FREETYPE_LIBS="" 31734FREETYPE_PKG="" 31735if test "x$with_freetype" = "xyes"; then 31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31737$as_echo "-------------------------------------------------------------" >&6; } 31738 31739pkg_failed=no 31740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 31741$as_echo_n "checking for FREETYPE... " >&6; } 31742 31743if test -n "$FREETYPE_CFLAGS"; then 31744 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 31745 elif test -n "$PKG_CONFIG"; then 31746 if test -n "$PKG_CONFIG" && \ 31747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31748 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31749 ac_status=$? 31750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31751 test $ac_status = 0; }; then 31752 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 31753 test "x$?" != "x0" && pkg_failed=yes 31754else 31755 pkg_failed=yes 31756fi 31757 else 31758 pkg_failed=untried 31759fi 31760if test -n "$FREETYPE_LIBS"; then 31761 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 31762 elif test -n "$PKG_CONFIG"; then 31763 if test -n "$PKG_CONFIG" && \ 31764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31765 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31766 ac_status=$? 31767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31768 test $ac_status = 0; }; then 31769 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 31770 test "x$?" != "x0" && pkg_failed=yes 31771else 31772 pkg_failed=yes 31773fi 31774 else 31775 pkg_failed=untried 31776fi 31777 31778 31779 31780if test $pkg_failed = yes; then 31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31782$as_echo "no" >&6; } 31783 31784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31785 _pkg_short_errors_supported=yes 31786else 31787 _pkg_short_errors_supported=no 31788fi 31789 if test $_pkg_short_errors_supported = yes; then 31790 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 31791 else 31792 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 31793 fi 31794 # Put the nasty error message in config.log where it belongs 31795 echo "$FREETYPE_PKG_ERRORS" >&5 31796 31797 have_freetype=no 31798elif test $pkg_failed = untried; then 31799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31800$as_echo "no" >&6; } 31801 have_freetype=no 31802else 31803 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 31804 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 31805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31806$as_echo "yes" >&6; } 31807 have_freetype=yes 31808fi 31809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31810$as_echo "" >&6; } 31811fi 31812 31813if test "$have_freetype" = 'yes'; then 31814 31815$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h 31816 31817 CFLAGS="$FREETYPE_CFLAGS $CFLAGS" 31818fi 31819 31820 if test "$have_freetype" = 'yes'; then 31821 FREETYPE_DELEGATE_TRUE= 31822 FREETYPE_DELEGATE_FALSE='#' 31823else 31824 FREETYPE_DELEGATE_TRUE='#' 31825 FREETYPE_DELEGATE_FALSE= 31826fi 31827 31828 31829 31830 31831 31832# 31833# Check for the raqm delegate library. 31834# 31835 31836# Check whether --with-raqm was given. 31837if test "${with_raqm+set}" = set; then : 31838 withval=$with_raqm; with_raqm=$withval 31839else 31840 with_raqm='yes' 31841fi 31842 31843 31844if test "$with_raqm" != 'yes'; then 31845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm " 31846fi 31847 31848have_raqm='no' 31849RAQM_CFLAGS="" 31850RAQM_LIBS="" 31851RAQM_PKG="" 31852if test "x$with_raqm" = "xyes"; then 31853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31854$as_echo "-------------------------------------------------------------" >&6; } 31855 31856pkg_failed=no 31857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAQM" >&5 31858$as_echo_n "checking for RAQM... " >&6; } 31859 31860if test -n "$RAQM_CFLAGS"; then 31861 pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS" 31862 elif test -n "$PKG_CONFIG"; then 31863 if test -n "$PKG_CONFIG" && \ 31864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 31865 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 31866 ac_status=$? 31867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31868 test $ac_status = 0; }; then 31869 pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null` 31870 test "x$?" != "x0" && pkg_failed=yes 31871else 31872 pkg_failed=yes 31873fi 31874 else 31875 pkg_failed=untried 31876fi 31877if test -n "$RAQM_LIBS"; then 31878 pkg_cv_RAQM_LIBS="$RAQM_LIBS" 31879 elif test -n "$PKG_CONFIG"; then 31880 if test -n "$PKG_CONFIG" && \ 31881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 31882 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 31883 ac_status=$? 31884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31885 test $ac_status = 0; }; then 31886 pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null` 31887 test "x$?" != "x0" && pkg_failed=yes 31888else 31889 pkg_failed=yes 31890fi 31891 else 31892 pkg_failed=untried 31893fi 31894 31895 31896 31897if test $pkg_failed = yes; then 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31899$as_echo "no" >&6; } 31900 31901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31902 _pkg_short_errors_supported=yes 31903else 31904 _pkg_short_errors_supported=no 31905fi 31906 if test $_pkg_short_errors_supported = yes; then 31907 RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1` 31908 else 31909 RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1` 31910 fi 31911 # Put the nasty error message in config.log where it belongs 31912 echo "$RAQM_PKG_ERRORS" >&5 31913 31914 have_raqm=no 31915elif test $pkg_failed = untried; then 31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31917$as_echo "no" >&6; } 31918 have_raqm=no 31919else 31920 RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS 31921 RAQM_LIBS=$pkg_cv_RAQM_LIBS 31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31923$as_echo "yes" >&6; } 31924 have_raqm=yes 31925fi 31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31927$as_echo "" >&6; } 31928fi 31929 31930if test "$have_raqm" = 'yes'; then 31931 31932$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h 31933 31934 CFLAGS="$RAQM_CFLAGS $CFLAGS" 31935fi 31936 31937 if test "$have_raqm" = 'yes'; then 31938 RAQM_DELEGATE_TRUE= 31939 RAQM_DELEGATE_FALSE='#' 31940else 31941 RAQM_DELEGATE_TRUE='#' 31942 RAQM_DELEGATE_FALSE= 31943fi 31944 31945 31946 31947 31948 31949# 31950# Check for Ghostscript library or framework. 31951# 31952# Test for iapi.h & test for gsapi_new_instance in -lgs 31953# or -framework Ghostscript 31954 31955 31956# Check whether --with-gslib was given. 31957if test "${with_gslib+set}" = set; then : 31958 withval=$with_gslib; with_gslib=$withval 31959else 31960 with_gslib='no' 31961fi 31962 31963 31964gslib_framework='no' 31965if test "$with_gslib" != 'yes'; then 31966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 31967fi 31968 31969have_gslib='no' 31970GS_LIBS='' 31971if test "$with_gslib" != 'no'; then 31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31973$as_echo "-------------------------------------------------------------" >&6; } 31974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 31975$as_echo_n "checking for Ghostscript... " >&6; } 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31977$as_echo "" >&6; } 31978 framework=0 31979 failed=0 31980 passed=0 31981 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" 31982if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : 31983 passed=`expr $passed + 1` 31984else 31985 failed=`expr $failed + 1` 31986fi 31987 31988 31989 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" 31990if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : 31991 passed=`expr $passed + 1` 31992else 31993 failed=`expr $failed + 1` 31994fi 31995 31996 31997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 31998$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } 31999if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : 32000 $as_echo_n "(cached) " >&6 32001else 32002 ac_check_framework_save_LIBS=$LIBS 32003LIBS="-framework Ghostscript $LIBS" 32004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32005/* end confdefs.h. */ 32006 32007/* Override any GCC internal prototype to avoid an error. 32008 Use char because int might match the return type of a GCC 32009 builtin and then its argument prototype would still apply. */ 32010#ifdef __cplusplus 32011extern "C" 32012#endif 32013char gsapi_new_instance (); 32014int 32015main () 32016{ 32017return gsapi_new_instance (); 32018 ; 32019 return 0; 32020} 32021_ACEOF 32022if ac_fn_c_try_link "$LINENO"; then : 32023 ac_cv_framework_Ghostscript_gsapi_new_instance=yes 32024else 32025 ac_cv_framework_Ghostscript_gsapi_new_instance=no 32026fi 32027rm -f core conftest.err conftest.$ac_objext \ 32028 conftest$ac_exeext conftest.$ac_ext 32029LIBS=$ac_check_framework_save_LIBS 32030fi 32031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 32032$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } 32033if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : 32034 framework=`expr $framework + 1` 32035else 32036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 32037$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } 32038if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : 32039 $as_echo_n "(cached) " >&6 32040else 32041 ac_check_lib_save_LIBS=$LIBS 32042LIBS="-lgs $LIBS" 32043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32044/* end confdefs.h. */ 32045 32046/* Override any GCC internal prototype to avoid an error. 32047 Use char because int might match the return type of a GCC 32048 builtin and then its argument prototype would still apply. */ 32049#ifdef __cplusplus 32050extern "C" 32051#endif 32052char gsapi_new_instance (); 32053int 32054main () 32055{ 32056return gsapi_new_instance (); 32057 ; 32058 return 0; 32059} 32060_ACEOF 32061if ac_fn_c_try_link "$LINENO"; then : 32062 ac_cv_lib_gs_gsapi_new_instance=yes 32063else 32064 ac_cv_lib_gs_gsapi_new_instance=no 32065fi 32066rm -f core conftest.err conftest.$ac_objext \ 32067 conftest$ac_exeext conftest.$ac_ext 32068LIBS=$ac_check_lib_save_LIBS 32069fi 32070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 32071$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } 32072if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : 32073 passed=`expr $passed + 1` 32074else 32075 failed=`expr $failed + 1` 32076fi 32077 32078fi 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 32080$as_echo_n "checking if Ghostscript package is complete... " >&6; } 32081 if test $passed -gt 0; then 32082 if test $failed -gt 0; then 32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32084$as_echo "no -- some components failed test" >&6; } 32085 have_gslib='no (failed tests)' 32086 else 32087 if test $framework -gt 0; then 32088 GS_LIBS='-framework Ghostscript' 32089 gslib_framework='yes' 32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 32091$as_echo "yes, using framework." >&6; } 32092 else 32093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 32094$as_echo "yes, using library." >&6; } 32095 GS_LIBS='-lgs' 32096 fi 32097 LIBS="$GS_LIBS $LIBS" 32098 32099$as_echo "#define GS_DELEGATE 1" >>confdefs.h 32100 32101 have_gslib='yes' 32102 fi 32103 else 32104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32105$as_echo "no" >&6; } 32106 fi 32107fi 32108 if test "$have_gslib" = 'yes'; then 32109 GS_DELEGATE_TRUE= 32110 GS_DELEGATE_FALSE='#' 32111else 32112 GS_DELEGATE_TRUE='#' 32113 GS_DELEGATE_FALSE= 32114fi 32115 32116 32117 32118# Set default font search path 32119 32120# Check whether --with-fontpath was given. 32121if test "${with_fontpath+set}" = set; then : 32122 withval=$with_fontpath; with_fontpath=$withval 32123else 32124 with_fontpath='' 32125fi 32126 32127 32128if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 32129 with_fontpath='' 32130else 32131 32132cat >>confdefs.h <<_ACEOF 32133#define MAGICK_FONT_PATH "$with_fontpath" 32134_ACEOF 32135 32136fi 32137if test "$with_fontpath=" != ''; then 32138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 32139fi 32140 32141# Set Ghostscript font directory 32142 32143# Check whether --with-gs-font-dir was given. 32144if test "${with_gs_font_dir+set}" = set; then : 32145 withval=$with_gs_font_dir; with_gs_font_dir=$withval 32146else 32147 with_gs_font_dir='default' 32148fi 32149 32150 32151if test "$with_gs_font_dir" != 'default'; then 32152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 32153fi 32154 32155 32156# 32157# Check for GVC delegate library. 32158# 32159 32160# Check whether --with-gvc was given. 32161if test "${with_gvc+set}" = set; then : 32162 withval=$with_gvc; with_gvc=$withval 32163else 32164 with_gvc='yes' 32165fi 32166 32167 32168if test "$with_gvc" != 'yes'; then 32169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 32170fi 32171 32172GVC_PKG="" 32173if test "x$with_gvc" = "xyes"; then 32174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32175$as_echo "-------------------------------------------------------------" >&6; } 32176 32177pkg_failed=no 32178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 32179$as_echo_n "checking for GVC... " >&6; } 32180 32181if test -n "$GVC_CFLAGS"; then 32182 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" 32183 elif test -n "$PKG_CONFIG"; then 32184 if test -n "$PKG_CONFIG" && \ 32185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 32186 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 32187 ac_status=$? 32188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32189 test $ac_status = 0; }; then 32190 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` 32191 test "x$?" != "x0" && pkg_failed=yes 32192else 32193 pkg_failed=yes 32194fi 32195 else 32196 pkg_failed=untried 32197fi 32198if test -n "$GVC_LIBS"; then 32199 pkg_cv_GVC_LIBS="$GVC_LIBS" 32200 elif test -n "$PKG_CONFIG"; then 32201 if test -n "$PKG_CONFIG" && \ 32202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 32203 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 32204 ac_status=$? 32205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32206 test $ac_status = 0; }; then 32207 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` 32208 test "x$?" != "x0" && pkg_failed=yes 32209else 32210 pkg_failed=yes 32211fi 32212 else 32213 pkg_failed=untried 32214fi 32215 32216 32217 32218if test $pkg_failed = yes; then 32219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32220$as_echo "no" >&6; } 32221 32222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32223 _pkg_short_errors_supported=yes 32224else 32225 _pkg_short_errors_supported=no 32226fi 32227 if test $_pkg_short_errors_supported = yes; then 32228 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 32229 else 32230 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 32231 fi 32232 # Put the nasty error message in config.log where it belongs 32233 echo "$GVC_PKG_ERRORS" >&5 32234 32235 have_gvc=no 32236elif test $pkg_failed = untried; then 32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32238$as_echo "no" >&6; } 32239 have_gvc=no 32240else 32241 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS 32242 GVC_LIBS=$pkg_cv_GVC_LIBS 32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32244$as_echo "yes" >&6; } 32245 have_gvc=yes 32246fi 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32248$as_echo "" >&6; } 32249fi 32250 32251if test "$have_gvc" = 'yes'; then 32252 32253$as_echo "#define GVC_DELEGATE 1" >>confdefs.h 32254 32255 CFLAGS="$GVC_CFLAGS $CFLAGS" 32256fi 32257 32258 if test "$have_gvc" = 'yes'; then 32259 GVC_DELEGATE_TRUE= 32260 GVC_DELEGATE_FALSE='#' 32261else 32262 GVC_DELEGATE_TRUE='#' 32263 GVC_DELEGATE_FALSE= 32264fi 32265 32266 32267 32268 32269 32270# 32271# Check for JBIG delegate library. 32272# 32273 32274 32275# Check whether --with-jbig was given. 32276if test "${with_jbig+set}" = set; then : 32277 withval=$with_jbig; with_jbig=$withval 32278else 32279 with_jbig='yes' 32280fi 32281 32282 32283have_jbig='no' 32284JBIG_LIBS='' 32285if test "$with_jbig" != 'no'; then 32286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32287$as_echo "-------------------------------------------------------------" >&6; } 32288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 32289$as_echo_n "checking for JBIG... " >&6; } 32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32291$as_echo "" >&6; } 32292 failed=0 32293 passed=0 32294 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 32295if test "x$ac_cv_header_jbig_h" = xyes; then : 32296 passed=`expr $passed + 1` 32297else 32298 failed=`expr $failed + 1` 32299fi 32300 32301 32302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 32303$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 32304if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 32305 $as_echo_n "(cached) " >&6 32306else 32307 ac_check_lib_save_LIBS=$LIBS 32308LIBS="-ljbig $LIBS" 32309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32310/* end confdefs.h. */ 32311 32312/* Override any GCC internal prototype to avoid an error. 32313 Use char because int might match the return type of a GCC 32314 builtin and then its argument prototype would still apply. */ 32315#ifdef __cplusplus 32316extern "C" 32317#endif 32318char jbg_dec_init (); 32319int 32320main () 32321{ 32322return jbg_dec_init (); 32323 ; 32324 return 0; 32325} 32326_ACEOF 32327if ac_fn_c_try_link "$LINENO"; then : 32328 ac_cv_lib_jbig_jbg_dec_init=yes 32329else 32330 ac_cv_lib_jbig_jbg_dec_init=no 32331fi 32332rm -f core conftest.err conftest.$ac_objext \ 32333 conftest$ac_exeext conftest.$ac_ext 32334LIBS=$ac_check_lib_save_LIBS 32335fi 32336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 32337$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 32338if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 32339 passed=`expr $passed + 1` 32340else 32341 failed=`expr $failed + 1` 32342fi 32343 32344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 32345$as_echo_n "checking if JBIG package is complete... " >&6; } 32346 if test $passed -gt 0; then 32347 if test $failed -gt 0; then 32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32349$as_echo "no -- some components failed test" >&6; } 32350 have_jbig='no (failed tests)' 32351 else 32352 JBIG_LIBS='-ljbig' 32353 LIBS="$JBIG_LIBS $LIBS" 32354 32355$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h 32356 32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32358$as_echo "yes" >&6; } 32359 have_jbig='yes' 32360 fi 32361 else 32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32363$as_echo "no" >&6; } 32364 fi 32365fi 32366 if test "$have_jbig" = 'yes'; then 32367 JBIG_DELEGATE_TRUE= 32368 JBIG_DELEGATE_FALSE='#' 32369else 32370 JBIG_DELEGATE_TRUE='#' 32371 JBIG_DELEGATE_FALSE= 32372fi 32373 32374 32375 32376 32377# 32378# Check for JPEG delegate library. 32379# 32380 32381# Check whether --with-jpeg was given. 32382if test "${with_jpeg+set}" = set; then : 32383 withval=$with_jpeg; with_jpeg=$withval 32384else 32385 with_jpeg='yes' 32386fi 32387 32388 32389if test "$with_jpeg" != 'yes'; then 32390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 32391fi 32392 32393have_jpeg='no' 32394JPEG_LIBS='' 32395if test "$with_jpeg" != 'no'; then 32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32397$as_echo "-------------------------------------------------------------" >&6; } 32398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 32399$as_echo_n "checking for JPEG... " >&6; } 32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32401$as_echo "" >&6; } 32402 failed=0 32403 passed=0 32404 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 32405if test "x$ac_cv_header_jconfig_h" = xyes; then : 32406 passed=`expr $passed + 1` 32407else 32408 failed=`expr $failed + 1` 32409fi 32410 32411 32412 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 32413if test "x$ac_cv_header_jerror_h" = xyes; then : 32414 passed=`expr $passed + 1` 32415else 32416 failed=`expr $failed + 1` 32417fi 32418 32419 32420 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" 32421if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 32422 passed=`expr $passed + 1` 32423else 32424 failed=`expr $failed + 1` 32425fi 32426 32427 32428 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 32429if test "x$ac_cv_header_jpeglib_h" = xyes; then : 32430 passed=`expr $passed + 1` 32431else 32432 failed=`expr $failed + 1` 32433fi 32434 32435 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 32437$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 32438if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 32439 $as_echo_n "(cached) " >&6 32440else 32441 ac_check_lib_save_LIBS=$LIBS 32442LIBS="-ljpeg $LIBS" 32443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32444/* end confdefs.h. */ 32445 32446/* Override any GCC internal prototype to avoid an error. 32447 Use char because int might match the return type of a GCC 32448 builtin and then its argument prototype would still apply. */ 32449#ifdef __cplusplus 32450extern "C" 32451#endif 32452char jpeg_read_header (); 32453int 32454main () 32455{ 32456return jpeg_read_header (); 32457 ; 32458 return 0; 32459} 32460_ACEOF 32461if ac_fn_c_try_link "$LINENO"; then : 32462 ac_cv_lib_jpeg_jpeg_read_header=yes 32463else 32464 ac_cv_lib_jpeg_jpeg_read_header=no 32465fi 32466rm -f core conftest.err conftest.$ac_objext \ 32467 conftest$ac_exeext conftest.$ac_ext 32468LIBS=$ac_check_lib_save_LIBS 32469fi 32470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 32471$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 32472if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 32473 passed=`expr $passed + 1` 32474else 32475 failed=`expr $failed + 1` 32476fi 32477 32478 32479# Test for compatible JPEG library 32480if test "$ac_cv_jpeg_version_ok" != 'yes'; then 32481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 32482$as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 32483if ${ac_cv_jpeg_version_ok+:} false; then : 32484 $as_echo_n "(cached) " >&6 32485else 32486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32487/* end confdefs.h. */ 32488#include <stdio.h> 32489#include <stdlib.h> 32490#include <jpeglib.h> 32491 32492int 32493main () 32494{ 32495 32496#if JPEG_LIB_VERSION < 62 32497#error IJG JPEG library must be version 6b or newer! 32498#endif 32499return 0; 32500 32501 ; 32502 return 0; 32503} 32504_ACEOF 32505if ac_fn_c_try_compile "$LINENO"; then : 32506 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` 32507else 32508 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` 32509fi 32510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32511fi 32512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 32513$as_echo "$ac_cv_jpeg_version_ok" >&6; } 32514fi 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 32516$as_echo_n "checking if JPEG package is complete... " >&6; } 32517 if test $passed -gt 0; then 32518 if test $failed -gt 0; then 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32520$as_echo "no -- some components failed test" >&6; } 32521 have_jpeg='no (failed tests)' 32522 else 32523 JPEG_LIBS='-ljpeg' 32524 LIBS="$JPEG_LIBS $LIBS" 32525 32526$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h 32527 32528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32529$as_echo "yes" >&6; } 32530 have_jpeg='yes' 32531 fi 32532 else 32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32534$as_echo "no" >&6; } 32535 fi 32536fi 32537 if test "$have_jpeg" = 'yes'; then 32538 JPEG_DELEGATE_TRUE= 32539 JPEG_DELEGATE_FALSE='#' 32540else 32541 JPEG_DELEGATE_TRUE='#' 32542 JPEG_DELEGATE_FALSE= 32543fi 32544 32545 32546 32547 32548# 32549# Check for LCMS delegate library. 32550# 32551 32552# Check whether --with-lcms was given. 32553if test "${with_lcms+set}" = set; then : 32554 withval=$with_lcms; with_lcms=$withval 32555else 32556 with_lcms='yes' 32557fi 32558 32559if test "$with_lcms" != 'yes' ; then 32560 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 32561fi 32562 32563have_lcms='no' 32564LCMS_CFLAGS="" 32565LCMS_LIBS="" 32566LCMS_PKG="" 32567if test "x$with_lcms" = "xyes"; then 32568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32569$as_echo "-------------------------------------------------------------" >&6; } 32570 32571pkg_failed=no 32572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5 32573$as_echo_n "checking for LCMS2... " >&6; } 32574 32575if test -n "$LCMS2_CFLAGS"; then 32576 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS" 32577 elif test -n "$PKG_CONFIG"; then 32578 if test -n "$PKG_CONFIG" && \ 32579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 32580 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 32581 ac_status=$? 32582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32583 test $ac_status = 0; }; then 32584 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null` 32585 test "x$?" != "x0" && pkg_failed=yes 32586else 32587 pkg_failed=yes 32588fi 32589 else 32590 pkg_failed=untried 32591fi 32592if test -n "$LCMS2_LIBS"; then 32593 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS" 32594 elif test -n "$PKG_CONFIG"; then 32595 if test -n "$PKG_CONFIG" && \ 32596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 32597 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 32598 ac_status=$? 32599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32600 test $ac_status = 0; }; then 32601 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null` 32602 test "x$?" != "x0" && pkg_failed=yes 32603else 32604 pkg_failed=yes 32605fi 32606 else 32607 pkg_failed=untried 32608fi 32609 32610 32611 32612if test $pkg_failed = yes; then 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32614$as_echo "no" >&6; } 32615 32616if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32617 _pkg_short_errors_supported=yes 32618else 32619 _pkg_short_errors_supported=no 32620fi 32621 if test $_pkg_short_errors_supported = yes; then 32622 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 32623 else 32624 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 32625 fi 32626 # Put the nasty error message in config.log where it belongs 32627 echo "$LCMS2_PKG_ERRORS" >&5 32628 32629 have_lcms=no 32630elif test $pkg_failed = untried; then 32631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32632$as_echo "no" >&6; } 32633 have_lcms=no 32634else 32635 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS 32636 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS 32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32638$as_echo "yes" >&6; } 32639 have_lcms=yes 32640fi 32641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32642$as_echo "" >&6; } 32643fi 32644 32645if test "$have_lcms" = 'yes'; then 32646 32647$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h 32648 32649 LCMS_CFLAGS="$LCMS2_CFLAGS" 32650 LCMS_LIBS="$LCMS2_LIBS" 32651 CFLAGS="$LCMS2_CFLAGS $CFLAGS" 32652 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" 32653if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : 32654 have_lcms_header='yes' 32655fi 32656 32657 32658 if test "$have_lcms_header" = 'yes'; then 32659 32660$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h 32661 32662 else 32663 32664$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h 32665 32666 fi 32667fi 32668 32669 if test "$have_lcms" = 'yes'; then 32670 LCMS_DELEGATE_TRUE= 32671 LCMS_DELEGATE_FALSE='#' 32672else 32673 LCMS_DELEGATE_TRUE='#' 32674 LCMS_DELEGATE_FALSE= 32675fi 32676 32677 32678 32679 32680 32681# 32682# Check for the OpenJP2 delegate library. 32683# 32684 32685# Check whether --with-openjp2 was given. 32686if test "${with_openjp2+set}" = set; then : 32687 withval=$with_openjp2; with_openjp2=$withval 32688else 32689 with_openjp2='yes' 32690fi 32691 32692 32693if test "$with_openjp2" != 'yes'; then 32694 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 " 32695fi 32696 32697have_openjp2='no' 32698LIBOPENJP2_CFLAGS="" 32699LIBOPENJP2_LIBS="" 32700LIBOPENJP2_PKG="" 32701if test "x$with_openjp2" = "xyes"; then 32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32703$as_echo "-------------------------------------------------------------" >&6; } 32704 32705pkg_failed=no 32706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5 32707$as_echo_n "checking for LIBOPENJP2... " >&6; } 32708 32709if test -n "$LIBOPENJP2_CFLAGS"; then 32710 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS" 32711 elif test -n "$PKG_CONFIG"; then 32712 if test -n "$PKG_CONFIG" && \ 32713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 32714 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 32715 ac_status=$? 32716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32717 test $ac_status = 0; }; then 32718 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null` 32719 test "x$?" != "x0" && pkg_failed=yes 32720else 32721 pkg_failed=yes 32722fi 32723 else 32724 pkg_failed=untried 32725fi 32726if test -n "$LIBOPENJP2_LIBS"; then 32727 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS" 32728 elif test -n "$PKG_CONFIG"; then 32729 if test -n "$PKG_CONFIG" && \ 32730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 32731 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 32732 ac_status=$? 32733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32734 test $ac_status = 0; }; then 32735 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null` 32736 test "x$?" != "x0" && pkg_failed=yes 32737else 32738 pkg_failed=yes 32739fi 32740 else 32741 pkg_failed=untried 32742fi 32743 32744 32745 32746if test $pkg_failed = yes; then 32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32748$as_echo "no" >&6; } 32749 32750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32751 _pkg_short_errors_supported=yes 32752else 32753 _pkg_short_errors_supported=no 32754fi 32755 if test $_pkg_short_errors_supported = yes; then 32756 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 32757 else 32758 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 32759 fi 32760 # Put the nasty error message in config.log where it belongs 32761 echo "$LIBOPENJP2_PKG_ERRORS" >&5 32762 32763 have_openjp2=no 32764elif test $pkg_failed = untried; then 32765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32766$as_echo "no" >&6; } 32767 have_openjp2=no 32768else 32769 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS 32770 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS 32771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32772$as_echo "yes" >&6; } 32773 have_openjp2=yes 32774fi 32775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32776$as_echo "" >&6; } 32777fi 32778 32779if test "$have_openjp2" = 'yes'; then 32780 32781$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h 32782 32783 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS" 32784fi 32785 32786 if test "$have_openjp2" = 'yes'; then 32787 LIBOPENJP2_DELEGATE_TRUE= 32788 LIBOPENJP2_DELEGATE_FALSE='#' 32789else 32790 LIBOPENJP2_DELEGATE_TRUE='#' 32791 LIBOPENJP2_DELEGATE_FALSE= 32792fi 32793 32794 32795 32796 32797 32798 32799# 32800# Check for the LQR (Liquid Rescale) delegate library. 32801# 32802 32803# Check whether --with-lqr was given. 32804if test "${with_lqr+set}" = set; then : 32805 withval=$with_lqr; with_lqr=$withval 32806else 32807 with_lqr='yes' 32808fi 32809 32810 32811if test "$with_lqr" != 'yes'; then 32812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 32813fi 32814 32815have_lqr='no' 32816LQR_CFLAGS="" 32817LQR_LIBS="" 32818LQR_PKG="" 32819if test "x$with_lqr" = "xyes"; then 32820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32821$as_echo "-------------------------------------------------------------" >&6; } 32822 32823pkg_failed=no 32824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 32825$as_echo_n "checking for LQR... " >&6; } 32826 32827if test -n "$LQR_CFLAGS"; then 32828 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" 32829 elif test -n "$PKG_CONFIG"; then 32830 if test -n "$PKG_CONFIG" && \ 32831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 32832 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 32833 ac_status=$? 32834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32835 test $ac_status = 0; }; then 32836 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` 32837 test "x$?" != "x0" && pkg_failed=yes 32838else 32839 pkg_failed=yes 32840fi 32841 else 32842 pkg_failed=untried 32843fi 32844if test -n "$LQR_LIBS"; then 32845 pkg_cv_LQR_LIBS="$LQR_LIBS" 32846 elif test -n "$PKG_CONFIG"; then 32847 if test -n "$PKG_CONFIG" && \ 32848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 32849 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 32850 ac_status=$? 32851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32852 test $ac_status = 0; }; then 32853 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` 32854 test "x$?" != "x0" && pkg_failed=yes 32855else 32856 pkg_failed=yes 32857fi 32858 else 32859 pkg_failed=untried 32860fi 32861 32862 32863 32864if test $pkg_failed = yes; then 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32866$as_echo "no" >&6; } 32867 32868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32869 _pkg_short_errors_supported=yes 32870else 32871 _pkg_short_errors_supported=no 32872fi 32873 if test $_pkg_short_errors_supported = yes; then 32874 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 32875 else 32876 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 32877 fi 32878 # Put the nasty error message in config.log where it belongs 32879 echo "$LQR_PKG_ERRORS" >&5 32880 32881 have_lqr=no 32882elif test $pkg_failed = untried; then 32883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32884$as_echo "no" >&6; } 32885 have_lqr=no 32886else 32887 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS 32888 LQR_LIBS=$pkg_cv_LQR_LIBS 32889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32890$as_echo "yes" >&6; } 32891 have_lqr=yes 32892fi 32893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32894$as_echo "" >&6; } 32895fi 32896 32897if test "$have_lqr" = 'yes'; then 32898 32899$as_echo "#define LQR_DELEGATE 1" >>confdefs.h 32900 32901 CFLAGS="$LQR_CFLAGS $CFLAGS" 32902fi 32903 32904 if test "$have_lqr" = 'yes'; then 32905 LQR_DELEGATE_TRUE= 32906 LQR_DELEGATE_FALSE='#' 32907else 32908 LQR_DELEGATE_TRUE='#' 32909 LQR_DELEGATE_FALSE= 32910fi 32911 32912 32913 32914 32915 32916# Disable LZMA (lzma library) 32917 32918# Check whether --with-lzma was given. 32919if test "${with_lzma+set}" = set; then : 32920 withval=$with_lzma; with_lzma=$withval 32921else 32922 with_lzma='yes' 32923fi 32924 32925if test "$with_lzma" != 'yes' ; then 32926 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 32927fi 32928 32929LZMA_PKG="" 32930if test "x$with_lzma" = "xyes"; then 32931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32932$as_echo "-------------------------------------------------------------" >&6; } 32933 32934pkg_failed=no 32935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 32936$as_echo_n "checking for LZMA... " >&6; } 32937 32938if test -n "$LZMA_CFLAGS"; then 32939 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 32940 elif test -n "$PKG_CONFIG"; then 32941 if test -n "$PKG_CONFIG" && \ 32942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 32943 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 32944 ac_status=$? 32945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32946 test $ac_status = 0; }; then 32947 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` 32948 test "x$?" != "x0" && pkg_failed=yes 32949else 32950 pkg_failed=yes 32951fi 32952 else 32953 pkg_failed=untried 32954fi 32955if test -n "$LZMA_LIBS"; then 32956 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 32957 elif test -n "$PKG_CONFIG"; then 32958 if test -n "$PKG_CONFIG" && \ 32959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 32960 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 32961 ac_status=$? 32962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32963 test $ac_status = 0; }; then 32964 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` 32965 test "x$?" != "x0" && pkg_failed=yes 32966else 32967 pkg_failed=yes 32968fi 32969 else 32970 pkg_failed=untried 32971fi 32972 32973 32974 32975if test $pkg_failed = yes; then 32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32977$as_echo "no" >&6; } 32978 32979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32980 _pkg_short_errors_supported=yes 32981else 32982 _pkg_short_errors_supported=no 32983fi 32984 if test $_pkg_short_errors_supported = yes; then 32985 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 32986 else 32987 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 32988 fi 32989 # Put the nasty error message in config.log where it belongs 32990 echo "$LZMA_PKG_ERRORS" >&5 32991 32992 have_lzma=no 32993elif test $pkg_failed = untried; then 32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32995$as_echo "no" >&6; } 32996 have_lzma=no 32997else 32998 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 32999 LZMA_LIBS=$pkg_cv_LZMA_LIBS 33000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33001$as_echo "yes" >&6; } 33002 have_lzma=yes 33003fi 33004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33005$as_echo "" >&6; } 33006fi 33007 33008if test "$have_lzma" = 'yes'; then 33009 33010$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h 33011 33012 CFLAGS="$LZMA_CFLAGS $CFLAGS" 33013fi 33014 33015 if test "$have_lzma" = 'yes'; then 33016 LZMA_DELEGATE_TRUE= 33017 LZMA_DELEGATE_FALSE='#' 33018else 33019 LZMA_DELEGATE_TRUE='#' 33020 LZMA_DELEGATE_FALSE= 33021fi 33022 33023 33024 33025 33026 33027# 33028# Check for the OpenEXR delegate library. 33029# 33030 33031# Check whether --with-openexr was given. 33032if test "${with_openexr+set}" = set; then : 33033 withval=$with_openexr; with_openexr=$withval 33034else 33035 with_openexr='yes' 33036fi 33037 33038 33039if test "$with_openexr" != 'yes'; then 33040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 33041fi 33042 33043have_openexr='no' 33044OPENEXR_CFLAGS="" 33045OPENEXR_LIBS="" 33046OPENEXR_PKG="" 33047if test "x$with_openexr" = "xyes"; then 33048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33049$as_echo "-------------------------------------------------------------" >&6; } 33050 33051pkg_failed=no 33052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 33053$as_echo_n "checking for OPENEXR... " >&6; } 33054 33055if test -n "$OPENEXR_CFLAGS"; then 33056 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" 33057 elif test -n "$PKG_CONFIG"; then 33058 if test -n "$PKG_CONFIG" && \ 33059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 33060 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 33061 ac_status=$? 33062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33063 test $ac_status = 0; }; then 33064 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` 33065 test "x$?" != "x0" && pkg_failed=yes 33066else 33067 pkg_failed=yes 33068fi 33069 else 33070 pkg_failed=untried 33071fi 33072if test -n "$OPENEXR_LIBS"; then 33073 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" 33074 elif test -n "$PKG_CONFIG"; then 33075 if test -n "$PKG_CONFIG" && \ 33076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 33077 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 33078 ac_status=$? 33079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33080 test $ac_status = 0; }; then 33081 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` 33082 test "x$?" != "x0" && pkg_failed=yes 33083else 33084 pkg_failed=yes 33085fi 33086 else 33087 pkg_failed=untried 33088fi 33089 33090 33091 33092if test $pkg_failed = yes; then 33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33094$as_echo "no" >&6; } 33095 33096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33097 _pkg_short_errors_supported=yes 33098else 33099 _pkg_short_errors_supported=no 33100fi 33101 if test $_pkg_short_errors_supported = yes; then 33102 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 33103 else 33104 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 33105 fi 33106 # Put the nasty error message in config.log where it belongs 33107 echo "$OPENEXR_PKG_ERRORS" >&5 33108 33109 have_openexr=no 33110elif test $pkg_failed = untried; then 33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33112$as_echo "no" >&6; } 33113 have_openexr=no 33114else 33115 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS 33116 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS 33117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33118$as_echo "yes" >&6; } 33119 have_openexr=yes 33120fi 33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33122$as_echo "" >&6; } 33123fi 33124 33125if test "$have_openexr" = 'yes'; then 33126 33127$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h 33128 33129 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 33130fi 33131 33132 if test "$have_openexr" = 'yes'; then 33133 OPENEXR_DELEGATE_TRUE= 33134 OPENEXR_DELEGATE_FALSE='#' 33135else 33136 OPENEXR_DELEGATE_TRUE='#' 33137 OPENEXR_DELEGATE_FALSE= 33138fi 33139 33140 33141 33142 33143 33144# 33145# Check for PANGO delegate library. 33146# 33147 33148# Check whether --with-pango was given. 33149if test "${with_pango+set}" = set; then : 33150 withval=$with_pango; with_pango=$withval 33151else 33152 with_pango='yes' 33153fi 33154 33155 33156if test "$with_pango" != 'yes'; then 33157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 33158fi 33159 33160have_pango='no' 33161have_pangocairo='no' 33162PANGO_CFLAGS="" 33163PANGO_LIBS="" 33164PANGO_PKG="" 33165if test "x$with_pango" = "xyes"; then 33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33167$as_echo "-------------------------------------------------------------" >&6; } 33168 33169pkg_failed=no 33170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 33171$as_echo_n "checking for PANGO... " >&6; } 33172 33173if test -n "$PANGO_CFLAGS"; then 33174 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 33175 elif test -n "$PKG_CONFIG"; then 33176 if test -n "$PKG_CONFIG" && \ 33177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 33178 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 33179 ac_status=$? 33180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33181 test $ac_status = 0; }; then 33182 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` 33183 test "x$?" != "x0" && pkg_failed=yes 33184else 33185 pkg_failed=yes 33186fi 33187 else 33188 pkg_failed=untried 33189fi 33190if test -n "$PANGO_LIBS"; then 33191 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 33192 elif test -n "$PKG_CONFIG"; then 33193 if test -n "$PKG_CONFIG" && \ 33194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 33195 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 33196 ac_status=$? 33197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33198 test $ac_status = 0; }; then 33199 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` 33200 test "x$?" != "x0" && pkg_failed=yes 33201else 33202 pkg_failed=yes 33203fi 33204 else 33205 pkg_failed=untried 33206fi 33207 33208 33209 33210if test $pkg_failed = yes; then 33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33212$as_echo "no" >&6; } 33213 33214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33215 _pkg_short_errors_supported=yes 33216else 33217 _pkg_short_errors_supported=no 33218fi 33219 if test $_pkg_short_errors_supported = yes; then 33220 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 33221 else 33222 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 33223 fi 33224 # Put the nasty error message in config.log where it belongs 33225 echo "$PANGO_PKG_ERRORS" >&5 33226 33227 have_pangocairo=no 33228elif test $pkg_failed = untried; then 33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33230$as_echo "no" >&6; } 33231 have_pangocairo=no 33232else 33233 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 33234 PANGO_LIBS=$pkg_cv_PANGO_LIBS 33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33236$as_echo "yes" >&6; } 33237 have_pangocairo=yes 33238fi 33239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33240$as_echo "" >&6; } 33241 33242pkg_failed=no 33243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 33244$as_echo_n "checking for PANGO... " >&6; } 33245 33246if test -n "$PANGO_CFLAGS"; then 33247 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 33248 elif test -n "$PKG_CONFIG"; then 33249 if test -n "$PKG_CONFIG" && \ 33250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 33251 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 33252 ac_status=$? 33253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33254 test $ac_status = 0; }; then 33255 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` 33256 test "x$?" != "x0" && pkg_failed=yes 33257else 33258 pkg_failed=yes 33259fi 33260 else 33261 pkg_failed=untried 33262fi 33263if test -n "$PANGO_LIBS"; then 33264 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 33265 elif test -n "$PKG_CONFIG"; then 33266 if test -n "$PKG_CONFIG" && \ 33267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 33268 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 33269 ac_status=$? 33270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33271 test $ac_status = 0; }; then 33272 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` 33273 test "x$?" != "x0" && pkg_failed=yes 33274else 33275 pkg_failed=yes 33276fi 33277 else 33278 pkg_failed=untried 33279fi 33280 33281 33282 33283if test $pkg_failed = yes; then 33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33285$as_echo "no" >&6; } 33286 33287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33288 _pkg_short_errors_supported=yes 33289else 33290 _pkg_short_errors_supported=no 33291fi 33292 if test $_pkg_short_errors_supported = yes; then 33293 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 33294 else 33295 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 33296 fi 33297 # Put the nasty error message in config.log where it belongs 33298 echo "$PANGO_PKG_ERRORS" >&5 33299 33300 have_pango=no 33301elif test $pkg_failed = untried; then 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33303$as_echo "no" >&6; } 33304 have_pango=no 33305else 33306 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 33307 PANGO_LIBS=$pkg_cv_PANGO_LIBS 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33309$as_echo "yes" >&6; } 33310 have_pango=yes 33311fi 33312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33313$as_echo "" >&6; } 33314fi 33315 33316if test "$have_pango" = 'yes'; then 33317 33318$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h 33319 33320 CFLAGS="$PANGO_CFLAGS $CFLAGS" 33321fi 33322 33323if test "$have_pangocairo" = 'yes'; then 33324 33325$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h 33326 33327 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS" 33328fi 33329 33330 if test "$have_pango" = 'yes'; then 33331 PANGO_DELEGATE_TRUE= 33332 PANGO_DELEGATE_FALSE='#' 33333else 33334 PANGO_DELEGATE_TRUE='#' 33335 PANGO_DELEGATE_FALSE= 33336fi 33337 33338 if test "$have_pangocairo" = 'yes'; then 33339 PANGOCAIRO_DELEGATE_TRUE= 33340 PANGOCAIRO_DELEGATE_FALSE='#' 33341else 33342 PANGOCAIRO_DELEGATE_TRUE='#' 33343 PANGOCAIRO_DELEGATE_FALSE= 33344fi 33345 33346 33347 33348 33349 33350# 33351# Check for PNG delegate library. 33352# 33353 33354# Check whether --with-png was given. 33355if test "${with_png+set}" = set; then : 33356 withval=$with_png; with_png=$withval 33357else 33358 with_png='yes' 33359fi 33360 33361 33362if test "$with_png" != 'yes'; then 33363 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 33364fi 33365 33366have_png='no' 33367PNG_CFLAGS="" 33368PNG_LIBS="" 33369PNG_PKG="" 33370if test "x$with_png" = "xyes"; then 33371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33372$as_echo "-------------------------------------------------------------" >&6; } 33373 33374pkg_failed=no 33375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 33376$as_echo_n "checking for PNG... " >&6; } 33377 33378if test -n "$PNG_CFLAGS"; then 33379 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 33380 elif test -n "$PKG_CONFIG"; then 33381 if test -n "$PKG_CONFIG" && \ 33382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 33383 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 33384 ac_status=$? 33385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33386 test $ac_status = 0; }; then 33387 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null` 33388 test "x$?" != "x0" && pkg_failed=yes 33389else 33390 pkg_failed=yes 33391fi 33392 else 33393 pkg_failed=untried 33394fi 33395if test -n "$PNG_LIBS"; then 33396 pkg_cv_PNG_LIBS="$PNG_LIBS" 33397 elif test -n "$PKG_CONFIG"; then 33398 if test -n "$PKG_CONFIG" && \ 33399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 33400 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 33401 ac_status=$? 33402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33403 test $ac_status = 0; }; then 33404 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null` 33405 test "x$?" != "x0" && pkg_failed=yes 33406else 33407 pkg_failed=yes 33408fi 33409 else 33410 pkg_failed=untried 33411fi 33412 33413 33414 33415if test $pkg_failed = yes; then 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33417$as_echo "no" >&6; } 33418 33419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33420 _pkg_short_errors_supported=yes 33421else 33422 _pkg_short_errors_supported=no 33423fi 33424 if test $_pkg_short_errors_supported = yes; then 33425 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 33426 else 33427 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 33428 fi 33429 # Put the nasty error message in config.log where it belongs 33430 echo "$PNG_PKG_ERRORS" >&5 33431 33432 have_png=no 33433elif test $pkg_failed = untried; then 33434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33435$as_echo "no" >&6; } 33436 have_png=no 33437else 33438 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 33439 PNG_LIBS=$pkg_cv_PNG_LIBS 33440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33441$as_echo "yes" >&6; } 33442 have_png=yes 33443fi 33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33445$as_echo "" >&6; } 33446fi 33447 33448if test "$have_png" = 'yes'; then 33449 33450$as_echo "#define PNG_DELEGATE 1" >>confdefs.h 33451 33452 CFLAGS="$PNG_CFLAGS $CFLAGS" 33453fi 33454 33455 if test "$have_png" = 'yes'; then 33456 PNG_DELEGATE_TRUE= 33457 PNG_DELEGATE_FALSE='#' 33458else 33459 PNG_DELEGATE_TRUE='#' 33460 PNG_DELEGATE_FALSE= 33461fi 33462 33463 33464 33465 33466 33467# 33468# Check for RSVG delegate library. 33469# 33470 33471# Check whether --with-rsvg was given. 33472if test "${with_rsvg+set}" = set; then : 33473 withval=$with_rsvg; with_rsvg=$withval 33474else 33475 with_rsvg='no' 33476fi 33477 33478 33479if test "$with_rsvg" != 'yes'; then 33480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 33481fi 33482 33483have_rsvg='no' 33484have_cairo='no' 33485RSVG_CFLAGS="" 33486RSVG_LIBS="" 33487RSVG_PKG="" 33488if test "x$with_rsvg" = "xyes"; then 33489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33490$as_echo "-------------------------------------------------------------" >&6; } 33491 33492pkg_failed=no 33493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 33494$as_echo_n "checking for RSVG... " >&6; } 33495 33496if test -n "$RSVG_CFLAGS"; then 33497 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" 33498 elif test -n "$PKG_CONFIG"; then 33499 if test -n "$PKG_CONFIG" && \ 33500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 33501 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 33502 ac_status=$? 33503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33504 test $ac_status = 0; }; then 33505 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` 33506 test "x$?" != "x0" && pkg_failed=yes 33507else 33508 pkg_failed=yes 33509fi 33510 else 33511 pkg_failed=untried 33512fi 33513if test -n "$RSVG_LIBS"; then 33514 pkg_cv_RSVG_LIBS="$RSVG_LIBS" 33515 elif test -n "$PKG_CONFIG"; then 33516 if test -n "$PKG_CONFIG" && \ 33517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 33518 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 33519 ac_status=$? 33520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33521 test $ac_status = 0; }; then 33522 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` 33523 test "x$?" != "x0" && pkg_failed=yes 33524else 33525 pkg_failed=yes 33526fi 33527 else 33528 pkg_failed=untried 33529fi 33530 33531 33532 33533if test $pkg_failed = yes; then 33534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33535$as_echo "no" >&6; } 33536 33537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33538 _pkg_short_errors_supported=yes 33539else 33540 _pkg_short_errors_supported=no 33541fi 33542 if test $_pkg_short_errors_supported = yes; then 33543 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 33544 else 33545 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 33546 fi 33547 # Put the nasty error message in config.log where it belongs 33548 echo "$RSVG_PKG_ERRORS" >&5 33549 33550 have_rsvg=no 33551elif test $pkg_failed = untried; then 33552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33553$as_echo "no" >&6; } 33554 have_rsvg=no 33555else 33556 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS 33557 RSVG_LIBS=$pkg_cv_RSVG_LIBS 33558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33559$as_echo "yes" >&6; } 33560 have_rsvg=yes 33561fi 33562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33563$as_echo "" >&6; } 33564 33565pkg_failed=no 33566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 33567$as_echo_n "checking for CAIRO_SVG... " >&6; } 33568 33569if test -n "$CAIRO_SVG_CFLAGS"; then 33570 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" 33571 elif test -n "$PKG_CONFIG"; then 33572 if test -n "$PKG_CONFIG" && \ 33573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 33574 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 33575 ac_status=$? 33576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33577 test $ac_status = 0; }; then 33578 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` 33579 test "x$?" != "x0" && pkg_failed=yes 33580else 33581 pkg_failed=yes 33582fi 33583 else 33584 pkg_failed=untried 33585fi 33586if test -n "$CAIRO_SVG_LIBS"; then 33587 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" 33588 elif test -n "$PKG_CONFIG"; then 33589 if test -n "$PKG_CONFIG" && \ 33590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 33591 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 33592 ac_status=$? 33593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33594 test $ac_status = 0; }; then 33595 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` 33596 test "x$?" != "x0" && pkg_failed=yes 33597else 33598 pkg_failed=yes 33599fi 33600 else 33601 pkg_failed=untried 33602fi 33603 33604 33605 33606if test $pkg_failed = yes; then 33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33608$as_echo "no" >&6; } 33609 33610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33611 _pkg_short_errors_supported=yes 33612else 33613 _pkg_short_errors_supported=no 33614fi 33615 if test $_pkg_short_errors_supported = yes; then 33616 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1` 33617 else 33618 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1` 33619 fi 33620 # Put the nasty error message in config.log where it belongs 33621 echo "$CAIRO_SVG_PKG_ERRORS" >&5 33622 33623 have_cairo=no 33624elif test $pkg_failed = untried; then 33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33626$as_echo "no" >&6; } 33627 have_cairo=no 33628else 33629 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS 33630 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS 33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33632$as_echo "yes" >&6; } 33633 have_cairo=yes 33634fi 33635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33636$as_echo "" >&6; } 33637fi 33638 33639if test "$have_rsvg" = 'yes'; then 33640 33641$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h 33642 33643 CFLAGS="$RSVG_CFLAGS $CFLAGS" 33644fi 33645 33646if test "$have_cairo" = 'yes'; then 33647 33648$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h 33649 33650 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS" 33651fi 33652 33653 if test "$have_rsvg" = 'yes'; then 33654 RSVG_DELEGATE_TRUE= 33655 RSVG_DELEGATE_FALSE='#' 33656else 33657 RSVG_DELEGATE_TRUE='#' 33658 RSVG_DELEGATE_FALSE= 33659fi 33660 33661 if test "$have_cairo" = 'yes'; then 33662 CAIRO_DELEGATE_TRUE= 33663 CAIRO_DELEGATE_FALSE='#' 33664else 33665 CAIRO_DELEGATE_TRUE='#' 33666 CAIRO_DELEGATE_FALSE= 33667fi 33668 33669 33670 33671 33672 33673# 33674# Check for TIFF delegate library. 33675# 33676 33677# Check whether --with-tiff was given. 33678if test "${with_tiff+set}" = set; then : 33679 withval=$with_tiff; with_tiff=$withval 33680else 33681 with_tiff='yes' 33682fi 33683 33684 33685if test "$with_tiff" != 'yes'; then 33686 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 33687fi 33688 33689have_tiff='no' 33690TIFF_LIBS='' 33691if test "$with_tiff" != 'no'; then 33692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33693$as_echo "-------------------------------------------------------------" >&6; } 33694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 33695$as_echo_n "checking for TIFF... " >&6; } 33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33697$as_echo "" >&6; } 33698 failed=0 33699 passed=0 33700 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 33701if test "x$ac_cv_header_tiff_h" = xyes; then : 33702 passed=`expr $passed + 1` 33703else 33704 failed=`expr $failed + 1` 33705fi 33706 33707 33708 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 33709if test "x$ac_cv_header_tiffio_h" = xyes; then : 33710 passed=`expr $passed + 1` 33711else 33712 failed=`expr $failed + 1` 33713fi 33714 33715 33716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 33717$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 33718if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 33719 $as_echo_n "(cached) " >&6 33720else 33721 ac_check_lib_save_LIBS=$LIBS 33722LIBS="-ltiff $LIBS" 33723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33724/* end confdefs.h. */ 33725 33726/* Override any GCC internal prototype to avoid an error. 33727 Use char because int might match the return type of a GCC 33728 builtin and then its argument prototype would still apply. */ 33729#ifdef __cplusplus 33730extern "C" 33731#endif 33732char TIFFOpen (); 33733int 33734main () 33735{ 33736return TIFFOpen (); 33737 ; 33738 return 0; 33739} 33740_ACEOF 33741if ac_fn_c_try_link "$LINENO"; then : 33742 ac_cv_lib_tiff_TIFFOpen=yes 33743else 33744 ac_cv_lib_tiff_TIFFOpen=no 33745fi 33746rm -f core conftest.err conftest.$ac_objext \ 33747 conftest$ac_exeext conftest.$ac_ext 33748LIBS=$ac_check_lib_save_LIBS 33749fi 33750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 33751$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 33752if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 33753 passed=`expr $passed + 1` 33754else 33755 failed=`expr $failed + 1` 33756fi 33757 33758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 33759$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 33760if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 33761 $as_echo_n "(cached) " >&6 33762else 33763 ac_check_lib_save_LIBS=$LIBS 33764LIBS="-ltiff $LIBS" 33765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33766/* end confdefs.h. */ 33767 33768/* Override any GCC internal prototype to avoid an error. 33769 Use char because int might match the return type of a GCC 33770 builtin and then its argument prototype would still apply. */ 33771#ifdef __cplusplus 33772extern "C" 33773#endif 33774char TIFFClientOpen (); 33775int 33776main () 33777{ 33778return TIFFClientOpen (); 33779 ; 33780 return 0; 33781} 33782_ACEOF 33783if ac_fn_c_try_link "$LINENO"; then : 33784 ac_cv_lib_tiff_TIFFClientOpen=yes 33785else 33786 ac_cv_lib_tiff_TIFFClientOpen=no 33787fi 33788rm -f core conftest.err conftest.$ac_objext \ 33789 conftest$ac_exeext conftest.$ac_ext 33790LIBS=$ac_check_lib_save_LIBS 33791fi 33792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 33793$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 33794if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 33795 passed=`expr $passed + 1` 33796else 33797 failed=`expr $failed + 1` 33798fi 33799 33800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 33801$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 33802if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 33803 $as_echo_n "(cached) " >&6 33804else 33805 ac_check_lib_save_LIBS=$LIBS 33806LIBS="-ltiff $LIBS" 33807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33808/* end confdefs.h. */ 33809 33810/* Override any GCC internal prototype to avoid an error. 33811 Use char because int might match the return type of a GCC 33812 builtin and then its argument prototype would still apply. */ 33813#ifdef __cplusplus 33814extern "C" 33815#endif 33816char TIFFIsByteSwapped (); 33817int 33818main () 33819{ 33820return TIFFIsByteSwapped (); 33821 ; 33822 return 0; 33823} 33824_ACEOF 33825if ac_fn_c_try_link "$LINENO"; then : 33826 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 33827else 33828 ac_cv_lib_tiff_TIFFIsByteSwapped=no 33829fi 33830rm -f core conftest.err conftest.$ac_objext \ 33831 conftest$ac_exeext conftest.$ac_ext 33832LIBS=$ac_check_lib_save_LIBS 33833fi 33834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 33835$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 33836if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 33837 passed=`expr $passed + 1` 33838else 33839 failed=`expr $failed + 1` 33840fi 33841 33842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 33843$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } 33844if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : 33845 $as_echo_n "(cached) " >&6 33846else 33847 ac_check_lib_save_LIBS=$LIBS 33848LIBS="-ltiff $LIBS" 33849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33850/* end confdefs.h. */ 33851 33852/* Override any GCC internal prototype to avoid an error. 33853 Use char because int might match the return type of a GCC 33854 builtin and then its argument prototype would still apply. */ 33855#ifdef __cplusplus 33856extern "C" 33857#endif 33858char TIFFReadRGBATile (); 33859int 33860main () 33861{ 33862return TIFFReadRGBATile (); 33863 ; 33864 return 0; 33865} 33866_ACEOF 33867if ac_fn_c_try_link "$LINENO"; then : 33868 ac_cv_lib_tiff_TIFFReadRGBATile=yes 33869else 33870 ac_cv_lib_tiff_TIFFReadRGBATile=no 33871fi 33872rm -f core conftest.err conftest.$ac_objext \ 33873 conftest$ac_exeext conftest.$ac_ext 33874LIBS=$ac_check_lib_save_LIBS 33875fi 33876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 33877$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } 33878if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : 33879 passed=`expr $passed + 1` 33880else 33881 failed=`expr $failed + 1` 33882fi 33883 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 33885$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } 33886if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : 33887 $as_echo_n "(cached) " >&6 33888else 33889 ac_check_lib_save_LIBS=$LIBS 33890LIBS="-ltiff $LIBS" 33891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33892/* end confdefs.h. */ 33893 33894/* Override any GCC internal prototype to avoid an error. 33895 Use char because int might match the return type of a GCC 33896 builtin and then its argument prototype would still apply. */ 33897#ifdef __cplusplus 33898extern "C" 33899#endif 33900char TIFFReadRGBAStrip (); 33901int 33902main () 33903{ 33904return TIFFReadRGBAStrip (); 33905 ; 33906 return 0; 33907} 33908_ACEOF 33909if ac_fn_c_try_link "$LINENO"; then : 33910 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes 33911else 33912 ac_cv_lib_tiff_TIFFReadRGBAStrip=no 33913fi 33914rm -f core conftest.err conftest.$ac_objext \ 33915 conftest$ac_exeext conftest.$ac_ext 33916LIBS=$ac_check_lib_save_LIBS 33917fi 33918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 33919$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } 33920if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : 33921 passed=`expr $passed + 1` 33922else 33923 failed=`expr $failed + 1` 33924fi 33925 33926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 33927$as_echo_n "checking if TIFF package is complete... " >&6; } 33928 if test $passed -gt 0; then 33929 if test $failed -gt 0; then 33930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 33931$as_echo "no -- some components failed test" >&6; } 33932 have_tiff='no (failed tests)' 33933 else 33934 TIFF_LIBS='-ltiff' 33935 LIBS="$TIFF_LIBS $LIBS" 33936 33937$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h 33938 33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33940$as_echo "yes" >&6; } 33941 have_tiff='yes' 33942 for ac_header in tiffconf.h 33943do : 33944 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 33945if test "x$ac_cv_header_tiffconf_h" = xyes; then : 33946 cat >>confdefs.h <<_ACEOF 33947#define HAVE_TIFFCONF_H 1 33948_ACEOF 33949 33950fi 33951 33952done 33953 33954 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ 33955 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 33956 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 33957 TIFFSwabArrayOfTriples 33958do : 33959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 33960ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 33961if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 33962 cat >>confdefs.h <<_ACEOF 33963#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 33964_ACEOF 33965 33966fi 33967done 33968 33969 fi 33970 else 33971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33972$as_echo "no" >&6; } 33973 fi 33974fi 33975 if test "$have_tiff" = 'yes'; then 33976 TIFF_DELEGATE_TRUE= 33977 TIFF_DELEGATE_FALSE='#' 33978else 33979 TIFF_DELEGATE_TRUE='#' 33980 TIFF_DELEGATE_FALSE= 33981fi 33982 33983 33984 33985 33986# 33987# Check for WEBP delegate library. 33988# 33989 33990# Check whether --with-webp was given. 33991if test "${with_webp+set}" = set; then : 33992 withval=$with_webp; with_webp=$withval 33993else 33994 with_webp='yes' 33995fi 33996 33997 33998if test "$with_webp" != 'yes'; then 33999 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 34000fi 34001 34002have_webp='no' 34003WEBP_LIBS='' 34004if test "$with_webp" != 'no'; then 34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34006$as_echo "-------------------------------------------------------------" >&6; } 34007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 34008$as_echo_n "checking for WEBP... " >&6; } 34009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34010$as_echo "" >&6; } 34011 failed=0 34012 passed=0 34013 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 34014if test "x$ac_cv_header_webp_decode_h" = xyes; then : 34015 passed=`expr $passed + 1` 34016else 34017 failed=`expr $failed + 1` 34018fi 34019 34020 34021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5 34022$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; } 34023if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then : 34024 $as_echo_n "(cached) " >&6 34025else 34026 ac_check_lib_save_LIBS=$LIBS 34027LIBS="-lwebp $LIBS" 34028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34029/* end confdefs.h. */ 34030 34031/* Override any GCC internal prototype to avoid an error. 34032 Use char because int might match the return type of a GCC 34033 builtin and then its argument prototype would still apply. */ 34034#ifdef __cplusplus 34035extern "C" 34036#endif 34037char WebPPictureInitInternal (); 34038int 34039main () 34040{ 34041return WebPPictureInitInternal (); 34042 ; 34043 return 0; 34044} 34045_ACEOF 34046if ac_fn_c_try_link "$LINENO"; then : 34047 ac_cv_lib_webp_WebPPictureInitInternal=yes 34048else 34049 ac_cv_lib_webp_WebPPictureInitInternal=no 34050fi 34051rm -f core conftest.err conftest.$ac_objext \ 34052 conftest$ac_exeext conftest.$ac_ext 34053LIBS=$ac_check_lib_save_LIBS 34054fi 34055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5 34056$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; } 34057if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then : 34058 passed=`expr $passed + 1` 34059else 34060 failed=`expr $failed + 1` 34061fi 34062 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 34064$as_echo_n "checking if WEBP package is complete... " >&6; } 34065 if test $passed -gt 0; then 34066 if test $failed -gt 0; then 34067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 34068$as_echo "no -- some components failed test" >&6; } 34069 have_webp='no (failed tests)' 34070 else 34071 WEBP_LIBS='-lwebp' 34072 LIBS="$WEBP_LIBS $LIBS" 34073 34074$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h 34075 34076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34077$as_echo "yes" >&6; } 34078 have_webp='yes' 34079 fi 34080 else 34081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34082$as_echo "no" >&6; } 34083 fi 34084fi 34085 if test "$have_webp" = 'yes'; then 34086 WEBP_DELEGATE_TRUE= 34087 WEBP_DELEGATE_FALSE='#' 34088else 34089 WEBP_DELEGATE_TRUE='#' 34090 WEBP_DELEGATE_FALSE= 34091fi 34092 34093 34094 34095 34096# 34097# Set Windows font directory. 34098# 34099 34100# Check whether --with-windows-font-dir was given. 34101if test "${with_windows_font_dir+set}" = set; then : 34102 withval=$with_windows_font_dir; with_windows_font_dir=$withval 34103else 34104 with_windows_font_dir='default' 34105fi 34106 34107 34108if test "$with_windows_font_dir" != 'default'; then 34109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 34110fi 34111 34112 34113# 34114# Check for WMF delegate library. 34115# 34116 34117# Check whether --with-wmf was given. 34118if test "${with_wmf+set}" = set; then : 34119 withval=$with_wmf; with_wmf=$withval 34120else 34121 with_wmf='yes' 34122fi 34123 34124 34125if test "$with_wmf" != 'yes'; then 34126 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 34127fi 34128 34129have_wmf='no' 34130WMF_LIBS='' 34131WMF_CFLAGS='' 34132OLIBS="$LIBS" 34133if test "$with_wmf" != 'no'; then 34134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5 34135$as_echo_n "checking for WMF support ... " >&6; } 34136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34137$as_echo "" >&6; } 34138 34139 have_libwmflite='no' 34140 have_libwmf_ipa_h='no' 34141 34142 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H 34143" 34144if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : 34145 have_libwmf_ipa_h='yes' 34146fi 34147 34148 34149 if test "$have_libwmf_ipa_h" = 'yes'; then 34150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 34151$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } 34152if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : 34153 $as_echo_n "(cached) " >&6 34154else 34155 ac_check_lib_save_LIBS=$LIBS 34156LIBS="-lwmflite $LIBS" 34157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34158/* end confdefs.h. */ 34159 34160/* Override any GCC internal prototype to avoid an error. 34161 Use char because int might match the return type of a GCC 34162 builtin and then its argument prototype would still apply. */ 34163#ifdef __cplusplus 34164extern "C" 34165#endif 34166char wmf_lite_create (); 34167int 34168main () 34169{ 34170return wmf_lite_create (); 34171 ; 34172 return 0; 34173} 34174_ACEOF 34175if ac_fn_c_try_link "$LINENO"; then : 34176 ac_cv_lib_wmflite_wmf_lite_create=yes 34177else 34178 ac_cv_lib_wmflite_wmf_lite_create=no 34179fi 34180rm -f core conftest.err conftest.$ac_objext \ 34181 conftest$ac_exeext conftest.$ac_ext 34182LIBS=$ac_check_lib_save_LIBS 34183fi 34184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 34185$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } 34186if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : 34187 have_libwmflite='yes' 34188fi 34189 34190 if test "$have_libwmflite" = 'yes'; then 34191 34192$as_echo "#define WMF_DELEGATE 1" >>confdefs.h 34193 34194 WMF_LIBS='-lwmflite' 34195 LIBS="$WMF_LIBS $LIBS" 34196 have_wmf='yes' 34197 else 34198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 34199$as_echo "no -- some components failed test" >&6; } 34200 have_wmf='no (failed tests)' 34201 have_wmflite='no (failed tests)' 34202 LIBS="$OLIBS" 34203 WMF_LIBS='' 34204 fi 34205 fi 34206fi 34207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5 34208$as_echo_n "checking if WMF package is complete ... " >&6; } 34209if test "$have_wmf" = 'yes'; then 34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34211$as_echo "yes" >&6; } 34212else 34213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34214$as_echo "no" >&6; } 34215fi 34216 if test "$have_wmf" = 'yes'; then 34217 WMF_DELEGATE_TRUE= 34218 WMF_DELEGATE_FALSE='#' 34219else 34220 WMF_DELEGATE_TRUE='#' 34221 WMF_DELEGATE_FALSE= 34222fi 34223 34224 34225 34226 34227 34228# 34229# Check for XML delegate library. 34230# 34231 34232# Check whether --with-xml was given. 34233if test "${with_xml+set}" = set; then : 34234 withval=$with_xml; with_xml=$withval 34235else 34236 with_xml='yes' 34237fi 34238 34239 34240if test "$with_xml" != 'yes' ; then 34241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 34242fi 34243 34244have_xml='no' 34245XML_CFLAGS="" 34246XML_LIBS="" 34247XML_PKG="" 34248if test "x$with_xml" = "xyes"; then 34249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34250$as_echo "-------------------------------------------------------------" >&6; } 34251 34252pkg_failed=no 34253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 34254$as_echo_n "checking for XML... " >&6; } 34255 34256if test -n "$XML_CFLAGS"; then 34257 pkg_cv_XML_CFLAGS="$XML_CFLAGS" 34258 elif test -n "$PKG_CONFIG"; then 34259 if test -n "$PKG_CONFIG" && \ 34260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 34261 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 34262 ac_status=$? 34263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34264 test $ac_status = 0; }; then 34265 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null` 34266 test "x$?" != "x0" && pkg_failed=yes 34267else 34268 pkg_failed=yes 34269fi 34270 else 34271 pkg_failed=untried 34272fi 34273if test -n "$XML_LIBS"; then 34274 pkg_cv_XML_LIBS="$XML_LIBS" 34275 elif test -n "$PKG_CONFIG"; then 34276 if test -n "$PKG_CONFIG" && \ 34277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 34278 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 34279 ac_status=$? 34280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34281 test $ac_status = 0; }; then 34282 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null` 34283 test "x$?" != "x0" && pkg_failed=yes 34284else 34285 pkg_failed=yes 34286fi 34287 else 34288 pkg_failed=untried 34289fi 34290 34291 34292 34293if test $pkg_failed = yes; then 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34295$as_echo "no" >&6; } 34296 34297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 34298 _pkg_short_errors_supported=yes 34299else 34300 _pkg_short_errors_supported=no 34301fi 34302 if test $_pkg_short_errors_supported = yes; then 34303 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 34304 else 34305 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 34306 fi 34307 # Put the nasty error message in config.log where it belongs 34308 echo "$XML_PKG_ERRORS" >&5 34309 34310 have_xml=no 34311elif test $pkg_failed = untried; then 34312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34313$as_echo "no" >&6; } 34314 have_xml=no 34315else 34316 XML_CFLAGS=$pkg_cv_XML_CFLAGS 34317 XML_LIBS=$pkg_cv_XML_LIBS 34318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34319$as_echo "yes" >&6; } 34320 have_xml=yes 34321fi 34322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34323$as_echo "" >&6; } 34324fi 34325 34326if test "$have_xml" = 'yes'; then 34327 34328$as_echo "#define XML_DELEGATE 1" >>confdefs.h 34329 34330 CFLAGS="$XML_CFLAGS $CFLAGS" 34331fi 34332 34333 if test "$have_xml" = 'yes'; then 34334 XML_DELEGATE_TRUE= 34335 XML_DELEGATE_FALSE='#' 34336else 34337 XML_DELEGATE_TRUE='#' 34338 XML_DELEGATE_FALSE= 34339fi 34340 34341 34342 34343 34344 34345# Substitute compiler name to build/link PerlMagick 34346# 34347 34348 34349# 34350# Configure install Paths 34351# 34352 34353# Path to ImageMagick header files 34354INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34355INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" 34356DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" 34357case "${build_os}" in 34358 mingw* ) 34359 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 34360 ;; 34361esac 34362 34363cat >>confdefs.h <<_ACEOF 34364#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" 34365_ACEOF 34366 34367 34368 34369# Path to ImageMagick header files (arch part) 34370INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 34371DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 34372case "${build_os}" in 34373 mingw* ) 34374 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` 34375 ;; 34376esac 34377 34378cat >>confdefs.h <<_ACEOF 34379#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH" 34380_ACEOF 34381 34382 34383 34384# Subdirectory under lib to place ImageMagick lib files 34385LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 34386 34387cat >>confdefs.h <<_ACEOF 34388#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" 34389_ACEOF 34390 34391 34392# Path to ImageMagick bin directory 34393EXECUTABLE_PATH="${BIN_DIR}" 34394DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 34395case "${build_os}" in 34396 mingw* ) 34397 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 34398 ;; 34399esac 34400 34401cat >>confdefs.h <<_ACEOF 34402#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" 34403_ACEOF 34404 34405 34406 34407# Path to ImageMagick lib 34408LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 34409DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 34410case "${build_os}" in 34411 mingw* ) 34412 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 34413 ;; 34414esac 34415 34416cat >>confdefs.h <<_ACEOF 34417#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" 34418_ACEOF 34419 34420 34421 34422# 34423# path to local binaries 34424if test "x$LIB_BIN_BASEDIRNAME" = "x"; then 34425 LIB_BIN_BASEDIRNAME="bin" 34426fi 34427 34428cat >>confdefs.h <<_ACEOF 34429#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME" 34430_ACEOF 34431 34432 34433 34434if test "x$LIB_BIN_DIR" = "x"; then 34435 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34436fi 34437 34438 34439LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR 34440 34441LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}" 34442 34443 34444# 34445# path to modules lib 34446if test "x$MODULES_BASEDIRNAME" = "x"; then 34447 MODULES_BASEDIRNAME="modules" 34448fi 34449 34450cat >>confdefs.h <<_ACEOF 34451#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" 34452_ACEOF 34453 34454 34455 34456if test "x$MODULES_DIRNAME" = "x"; then 34457 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34458else 34459 34460cat >>confdefs.h <<_ACEOF 34461#define MODULES_DIRNAME "$MODULES_DIRNAME" 34462_ACEOF 34463 34464fi 34465 34466 34467MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 34468 34469MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 34470 34471 34472# 34473# path to coders lib 34474if test "x$CODER_DIRNAME" = "x"; then 34475 CODER_DIRNAME="coders" 34476fi 34477 34478cat >>confdefs.h <<_ACEOF 34479#define CODER_DIRNAME "$CODER_DIRNAME" 34480_ACEOF 34481 34482 34483 34484CODER_RELATIVE_PATH="${CODER_DIRNAME}" 34485CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 34486 34487 34488# 34489# Subdirectory under lib to place ImageMagick filter module files 34490# 34491# path to coders lib 34492if test "x$FILTER_DIRNAME" = "x"; then 34493 FILTER_DIRNAME="filters" 34494fi 34495 34496cat >>confdefs.h <<_ACEOF 34497#define FILTER_DIRNAME "$FILTER_DIRNAME" 34498_ACEOF 34499 34500 34501 34502FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 34503FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 34504 34505 34506# 34507# Path to ImageMagick documentation files 34508DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34509DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 34510DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 34511case "${build_os}" in 34512 mingw* ) 34513 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 34514 ;; 34515esac 34516 34517cat >>confdefs.h <<_ACEOF 34518#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" 34519_ACEOF 34520 34521 34522 34523# 34524# Enable/Disable documentation 34525# Check whether --enable-docs was given. 34526if test "${enable_docs+set}" = set; then : 34527 enableval=$enable_docs; wantdocs=$enableval 34528else 34529 wantdocs=yes 34530fi 34531 34532 if test "$wantdocs" = "yes"; then 34533 INSTALL_DOC_TRUE= 34534 INSTALL_DOC_FALSE='#' 34535else 34536 INSTALL_DOC_TRUE='#' 34537 INSTALL_DOC_FALSE= 34538fi 34539 34540 34541# Subdirectory to place architecture-dependent configuration files 34542CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34543 34544cat >>confdefs.h <<_ACEOF 34545#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" 34546_ACEOF 34547 34548CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 34549DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 34550case "${build_os}" in 34551 mingw* ) 34552 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 34553 ;; 34554esac 34555 34556cat >>confdefs.h <<_ACEOF 34557#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" 34558_ACEOF 34559 34560 34561 34562# Subdirectory to place architecture-independent configuration files 34563SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34564 34565cat >>confdefs.h <<_ACEOF 34566#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" 34567_ACEOF 34568 34569SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 34570DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 34571case "${build_os}" in 34572 mingw* ) 34573 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 34574 ;; 34575esac 34576 34577cat >>confdefs.h <<_ACEOF 34578#define SHARE_PATH "$DEFINE_SHARE_PATH" 34579_ACEOF 34580 34581 34582 34583# 34584# Subdirectory to place architecture-dependent configuration files. 34585if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 34586 SHAREARCH_BASEDIRNAME="config" 34587fi 34588 34589cat >>confdefs.h <<_ACEOF 34590#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" 34591_ACEOF 34592 34593 34594 34595if test "x$SHAREARCH_DIRNAME" = "x"; then 34596 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34597else 34598 34599cat >>confdefs.h <<_ACEOF 34600#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" 34601_ACEOF 34602 34603fi 34604 34605 34606SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 34607 34608SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 34609 34610 34611# 34612# program_transform_name is formed for use in a Makefile, so create a 34613# modified version for use in a shell script. 34614configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 34615 34616# Default delegate definitions 34617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34618$as_echo "-------------------------------------------------------------" >&6; } 34619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 34620$as_echo_n "checking for ImageMagick delegate programs... " >&6; } 34621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34622$as_echo "" >&6; } 34623BPGDecodeDelegateDefault='bpgdec' 34624BPGEncodeDelegateDefault='bpgenc' 34625BlenderDecodeDelegateDefault='blender' 34626BrowseDelegateDefault='xdg-open' 34627DNGDecodeDelegateDefault='ufraw-batch' 34628DOCDecodeDelegateDefault='soffice' 34629GVCDecodeDelegateDefault='dot' 34630DVIDecodeDelegateDefault='dvips' 34631EditorDelegateDefault='xterm' 34632ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}` 34633DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}` 34634MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}` 34635HPGLDecodeDelegateDefault='hp2xx' 34636HTMLDecodeDelegateDefault='html2ps' 34637ILBMDecodeDelegateDefault='ilbmtoppm' 34638ILBMEncodeDelegateDefault='ppmtoilbm' 34639JXRDecodeDelegateDefault='JxrDecApp' 34640JXREncodeDelegateDefault='JxrEncApp' 34641LPDelegateDefault='lp' 34642LPRDelegateDefault='lpr' 34643LaunchDelegateDefault='gimp' 34644MPEGDecodeDelegateDefault='avconv' 34645MPEGEncodeDelegateDefault='avconv' 34646MrSIDDecodeDelegateDefault='mrsidgeodecode' 34647MVDelegateDefault='mv' 34648PCLDelegateDefault='pcl6' 34649if test "$native_win32_build" = 'yes'; then 34650 PSDelegateDefault='gswin32c' 34651elif test "$gslib_framework" = 'yes'; then 34652 PSDelegateDefault='gsc' 34653else 34654 PSDelegateDefault='gs' 34655fi 34656RMDelegateDefault='rm' 34657RSVGDecodeDelegateDefault='rsvg-convert' 34658SVGDecodeDelegateDefault='inkscape' 34659UniconvertorDelegateDefault='uniconvertor' 34660WebPDecodeDelegateDefault='dwebp' 34661WebPEncodeDelegateDefault='cwebp' 34662WWWDecodeDelegateDefault='curl' 34663XPSDelegateDefault='gxps' 34664 34665# Search for delegates 34666# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args. 34667set dummy "$BPGDecodeDelegateDefault"; ac_word=$2 34668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34669$as_echo_n "checking for $ac_word... " >&6; } 34670if ${ac_cv_path_BPGDecodeDelegate+:} false; then : 34671 $as_echo_n "(cached) " >&6 34672else 34673 case $BPGDecodeDelegate in 34674 [\\/]* | ?:[\\/]*) 34675 ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path. 34676 ;; 34677 *) 34678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34679for as_dir in $PATH 34680do 34681 IFS=$as_save_IFS 34682 test -z "$as_dir" && as_dir=. 34683 for ac_exec_ext in '' $ac_executable_extensions; do 34684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34685 ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34687 break 2 34688 fi 34689done 34690 done 34691IFS=$as_save_IFS 34692 34693 test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault"" 34694 ;; 34695esac 34696fi 34697BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate 34698if test -n "$BPGDecodeDelegate"; then 34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5 34700$as_echo "$BPGDecodeDelegate" >&6; } 34701else 34702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34703$as_echo "no" >&6; } 34704fi 34705 34706 34707# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args. 34708set dummy "$BPGEncodeDelegateDefault"; ac_word=$2 34709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34710$as_echo_n "checking for $ac_word... " >&6; } 34711if ${ac_cv_path_BPGEncodeDelegate+:} false; then : 34712 $as_echo_n "(cached) " >&6 34713else 34714 case $BPGEncodeDelegate in 34715 [\\/]* | ?:[\\/]*) 34716 ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path. 34717 ;; 34718 *) 34719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34720for as_dir in $PATH 34721do 34722 IFS=$as_save_IFS 34723 test -z "$as_dir" && as_dir=. 34724 for ac_exec_ext in '' $ac_executable_extensions; do 34725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34726 ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34728 break 2 34729 fi 34730done 34731 done 34732IFS=$as_save_IFS 34733 34734 test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault"" 34735 ;; 34736esac 34737fi 34738BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate 34739if test -n "$BPGEncodeDelegate"; then 34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5 34741$as_echo "$BPGEncodeDelegate" >&6; } 34742else 34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34744$as_echo "no" >&6; } 34745fi 34746 34747 34748# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. 34749set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 34750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34751$as_echo_n "checking for $ac_word... " >&6; } 34752if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : 34753 $as_echo_n "(cached) " >&6 34754else 34755 case $BlenderDecodeDelegate in 34756 [\\/]* | ?:[\\/]*) 34757 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. 34758 ;; 34759 *) 34760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34761for as_dir in $PATH 34762do 34763 IFS=$as_save_IFS 34764 test -z "$as_dir" && as_dir=. 34765 for ac_exec_ext in '' $ac_executable_extensions; do 34766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34767 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34769 break 2 34770 fi 34771done 34772 done 34773IFS=$as_save_IFS 34774 34775 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" 34776 ;; 34777esac 34778fi 34779BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate 34780if test -n "$BlenderDecodeDelegate"; then 34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 34782$as_echo "$BlenderDecodeDelegate" >&6; } 34783else 34784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34785$as_echo "no" >&6; } 34786fi 34787 34788 34789for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx 34790do 34791 # Extract the first word of "$ac_prog", so it can be a program name with args. 34792set dummy $ac_prog; ac_word=$2 34793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34794$as_echo_n "checking for $ac_word... " >&6; } 34795if ${ac_cv_path_BrowseDelegate+:} false; then : 34796 $as_echo_n "(cached) " >&6 34797else 34798 case $BrowseDelegate in 34799 [\\/]* | ?:[\\/]*) 34800 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. 34801 ;; 34802 *) 34803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34804for as_dir in $PATH 34805do 34806 IFS=$as_save_IFS 34807 test -z "$as_dir" && as_dir=. 34808 for ac_exec_ext in '' $ac_executable_extensions; do 34809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34810 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" 34811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34812 break 2 34813 fi 34814done 34815 done 34816IFS=$as_save_IFS 34817 34818 ;; 34819esac 34820fi 34821BrowseDelegate=$ac_cv_path_BrowseDelegate 34822if test -n "$BrowseDelegate"; then 34823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 34824$as_echo "$BrowseDelegate" >&6; } 34825else 34826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34827$as_echo "no" >&6; } 34828fi 34829 34830 34831 test -n "$BrowseDelegate" && break 34832done 34833test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" 34834 34835# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. 34836set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 34837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34838$as_echo_n "checking for $ac_word... " >&6; } 34839if ${ac_cv_path_DNGDecodeDelegate+:} false; then : 34840 $as_echo_n "(cached) " >&6 34841else 34842 case $DNGDecodeDelegate in 34843 [\\/]* | ?:[\\/]*) 34844 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. 34845 ;; 34846 *) 34847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34848for as_dir in $PATH 34849do 34850 IFS=$as_save_IFS 34851 test -z "$as_dir" && as_dir=. 34852 for ac_exec_ext in '' $ac_executable_extensions; do 34853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34854 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34856 break 2 34857 fi 34858done 34859 done 34860IFS=$as_save_IFS 34861 34862 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" 34863 ;; 34864esac 34865fi 34866DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate 34867if test -n "$DNGDecodeDelegate"; then 34868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 34869$as_echo "$DNGDecodeDelegate" >&6; } 34870else 34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34872$as_echo "no" >&6; } 34873fi 34874 34875 34876# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args. 34877set dummy "$DOCDecodeDelegateDefault"; ac_word=$2 34878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34879$as_echo_n "checking for $ac_word... " >&6; } 34880if ${ac_cv_path_DOCDecodeDelegate+:} false; then : 34881 $as_echo_n "(cached) " >&6 34882else 34883 case $DOCDecodeDelegate in 34884 [\\/]* | ?:[\\/]*) 34885 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path. 34886 ;; 34887 *) 34888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34889for as_dir in $PATH 34890do 34891 IFS=$as_save_IFS 34892 test -z "$as_dir" && as_dir=. 34893 for ac_exec_ext in '' $ac_executable_extensions; do 34894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34895 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34897 break 2 34898 fi 34899done 34900 done 34901IFS=$as_save_IFS 34902 34903 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault"" 34904 ;; 34905esac 34906fi 34907DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate 34908if test -n "$DOCDecodeDelegate"; then 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5 34910$as_echo "$DOCDecodeDelegate" >&6; } 34911else 34912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34913$as_echo "no" >&6; } 34914fi 34915 34916 34917# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. 34918set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 34919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34920$as_echo_n "checking for $ac_word... " >&6; } 34921if ${ac_cv_path_DVIDecodeDelegate+:} false; then : 34922 $as_echo_n "(cached) " >&6 34923else 34924 case $DVIDecodeDelegate in 34925 [\\/]* | ?:[\\/]*) 34926 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. 34927 ;; 34928 *) 34929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34930for as_dir in $PATH 34931do 34932 IFS=$as_save_IFS 34933 test -z "$as_dir" && as_dir=. 34934 for ac_exec_ext in '' $ac_executable_extensions; do 34935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34936 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34938 break 2 34939 fi 34940done 34941 done 34942IFS=$as_save_IFS 34943 34944 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" 34945 ;; 34946esac 34947fi 34948DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate 34949if test -n "$DVIDecodeDelegate"; then 34950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 34951$as_echo "$DVIDecodeDelegate" >&6; } 34952else 34953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34954$as_echo "no" >&6; } 34955fi 34956 34957 34958# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. 34959set dummy "$ConvertDelegateDefault"; ac_word=$2 34960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34961$as_echo_n "checking for $ac_word... " >&6; } 34962if ${ac_cv_path_ConvertDelegate+:} false; then : 34963 $as_echo_n "(cached) " >&6 34964else 34965 case $ConvertDelegate in 34966 [\\/]* | ?:[\\/]*) 34967 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. 34968 ;; 34969 *) 34970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34971for as_dir in $PATH 34972do 34973 IFS=$as_save_IFS 34974 test -z "$as_dir" && as_dir=. 34975 for ac_exec_ext in '' $ac_executable_extensions; do 34976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34977 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" 34978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34979 break 2 34980 fi 34981done 34982 done 34983IFS=$as_save_IFS 34984 34985 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" 34986 ;; 34987esac 34988fi 34989ConvertDelegate=$ac_cv_path_ConvertDelegate 34990if test -n "$ConvertDelegate"; then 34991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 34992$as_echo "$ConvertDelegate" >&6; } 34993else 34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34995$as_echo "no" >&6; } 34996fi 34997 34998 34999# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. 35000set dummy "$DisplayDelegateDefault"; ac_word=$2 35001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35002$as_echo_n "checking for $ac_word... " >&6; } 35003if ${ac_cv_path_DisplayDelegate+:} false; then : 35004 $as_echo_n "(cached) " >&6 35005else 35006 case $DisplayDelegate in 35007 [\\/]* | ?:[\\/]*) 35008 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. 35009 ;; 35010 *) 35011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35012for as_dir in $PATH 35013do 35014 IFS=$as_save_IFS 35015 test -z "$as_dir" && as_dir=. 35016 for ac_exec_ext in '' $ac_executable_extensions; do 35017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35018 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" 35019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35020 break 2 35021 fi 35022done 35023 done 35024IFS=$as_save_IFS 35025 35026 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" 35027 ;; 35028esac 35029fi 35030DisplayDelegate=$ac_cv_path_DisplayDelegate 35031if test -n "$DisplayDelegate"; then 35032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 35033$as_echo "$DisplayDelegate" >&6; } 35034else 35035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35036$as_echo "no" >&6; } 35037fi 35038 35039 35040# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. 35041set dummy "$EditorDelegateDefault"; ac_word=$2 35042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35043$as_echo_n "checking for $ac_word... " >&6; } 35044if ${ac_cv_path_EditorDelegate+:} false; then : 35045 $as_echo_n "(cached) " >&6 35046else 35047 case $EditorDelegate in 35048 [\\/]* | ?:[\\/]*) 35049 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. 35050 ;; 35051 *) 35052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35053for as_dir in $PATH 35054do 35055 IFS=$as_save_IFS 35056 test -z "$as_dir" && as_dir=. 35057 for ac_exec_ext in '' $ac_executable_extensions; do 35058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35059 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" 35060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35061 break 2 35062 fi 35063done 35064 done 35065IFS=$as_save_IFS 35066 35067 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" 35068 ;; 35069esac 35070fi 35071EditorDelegate=$ac_cv_path_EditorDelegate 35072if test -n "$EditorDelegate"; then 35073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 35074$as_echo "$EditorDelegate" >&6; } 35075else 35076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35077$as_echo "no" >&6; } 35078fi 35079 35080 35081# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. 35082set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 35083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35084$as_echo_n "checking for $ac_word... " >&6; } 35085if ${ac_cv_path_GVCDecodeDelegate+:} false; then : 35086 $as_echo_n "(cached) " >&6 35087else 35088 case $GVCDecodeDelegate in 35089 [\\/]* | ?:[\\/]*) 35090 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. 35091 ;; 35092 *) 35093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35094for as_dir in $PATH 35095do 35096 IFS=$as_save_IFS 35097 test -z "$as_dir" && as_dir=. 35098 for ac_exec_ext in '' $ac_executable_extensions; do 35099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35100 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35102 break 2 35103 fi 35104done 35105 done 35106IFS=$as_save_IFS 35107 35108 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" 35109 ;; 35110esac 35111fi 35112GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate 35113if test -n "$GVCDecodeDelegate"; then 35114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 35115$as_echo "$GVCDecodeDelegate" >&6; } 35116else 35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35118$as_echo "no" >&6; } 35119fi 35120 35121 35122# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. 35123set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 35124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35125$as_echo_n "checking for $ac_word... " >&6; } 35126if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : 35127 $as_echo_n "(cached) " >&6 35128else 35129 case $HPGLDecodeDelegate in 35130 [\\/]* | ?:[\\/]*) 35131 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. 35132 ;; 35133 *) 35134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35135for as_dir in $PATH 35136do 35137 IFS=$as_save_IFS 35138 test -z "$as_dir" && as_dir=. 35139 for ac_exec_ext in '' $ac_executable_extensions; do 35140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35141 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35143 break 2 35144 fi 35145done 35146 done 35147IFS=$as_save_IFS 35148 35149 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" 35150 ;; 35151esac 35152fi 35153HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate 35154if test -n "$HPGLDecodeDelegate"; then 35155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 35156$as_echo "$HPGLDecodeDelegate" >&6; } 35157else 35158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35159$as_echo "no" >&6; } 35160fi 35161 35162 35163# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. 35164set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 35165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35166$as_echo_n "checking for $ac_word... " >&6; } 35167if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : 35168 $as_echo_n "(cached) " >&6 35169else 35170 case $HTMLDecodeDelegate in 35171 [\\/]* | ?:[\\/]*) 35172 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. 35173 ;; 35174 *) 35175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35176for as_dir in $PATH 35177do 35178 IFS=$as_save_IFS 35179 test -z "$as_dir" && as_dir=. 35180 for ac_exec_ext in '' $ac_executable_extensions; do 35181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35182 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35184 break 2 35185 fi 35186done 35187 done 35188IFS=$as_save_IFS 35189 35190 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" 35191 ;; 35192esac 35193fi 35194HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate 35195if test -n "$HTMLDecodeDelegate"; then 35196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 35197$as_echo "$HTMLDecodeDelegate" >&6; } 35198else 35199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35200$as_echo "no" >&6; } 35201fi 35202 35203 35204# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. 35205set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 35206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35207$as_echo_n "checking for $ac_word... " >&6; } 35208if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : 35209 $as_echo_n "(cached) " >&6 35210else 35211 case $ILBMDecodeDelegate in 35212 [\\/]* | ?:[\\/]*) 35213 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. 35214 ;; 35215 *) 35216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35217for as_dir in $PATH 35218do 35219 IFS=$as_save_IFS 35220 test -z "$as_dir" && as_dir=. 35221 for ac_exec_ext in '' $ac_executable_extensions; do 35222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35223 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35225 break 2 35226 fi 35227done 35228 done 35229IFS=$as_save_IFS 35230 35231 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" 35232 ;; 35233esac 35234fi 35235ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate 35236if test -n "$ILBMDecodeDelegate"; then 35237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 35238$as_echo "$ILBMDecodeDelegate" >&6; } 35239else 35240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35241$as_echo "no" >&6; } 35242fi 35243 35244 35245# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. 35246set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 35247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35248$as_echo_n "checking for $ac_word... " >&6; } 35249if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : 35250 $as_echo_n "(cached) " >&6 35251else 35252 case $ILBMEncodeDelegate in 35253 [\\/]* | ?:[\\/]*) 35254 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. 35255 ;; 35256 *) 35257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35258for as_dir in $PATH 35259do 35260 IFS=$as_save_IFS 35261 test -z "$as_dir" && as_dir=. 35262 for ac_exec_ext in '' $ac_executable_extensions; do 35263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35264 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35266 break 2 35267 fi 35268done 35269 done 35270IFS=$as_save_IFS 35271 35272 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" 35273 ;; 35274esac 35275fi 35276ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate 35277if test -n "$ILBMEncodeDelegate"; then 35278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 35279$as_echo "$ILBMEncodeDelegate" >&6; } 35280else 35281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35282$as_echo "no" >&6; } 35283fi 35284 35285 35286# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args. 35287set dummy "$JXRDecodeDelegateDefault"; ac_word=$2 35288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35289$as_echo_n "checking for $ac_word... " >&6; } 35290if ${ac_cv_path_JXRDecodeDelegate+:} false; then : 35291 $as_echo_n "(cached) " >&6 35292else 35293 case $JXRDecodeDelegate in 35294 [\\/]* | ?:[\\/]*) 35295 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path. 35296 ;; 35297 *) 35298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35299for as_dir in $PATH 35300do 35301 IFS=$as_save_IFS 35302 test -z "$as_dir" && as_dir=. 35303 for ac_exec_ext in '' $ac_executable_extensions; do 35304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35305 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35307 break 2 35308 fi 35309done 35310 done 35311IFS=$as_save_IFS 35312 35313 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault"" 35314 ;; 35315esac 35316fi 35317JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate 35318if test -n "$JXRDecodeDelegate"; then 35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5 35320$as_echo "$JXRDecodeDelegate" >&6; } 35321else 35322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35323$as_echo "no" >&6; } 35324fi 35325 35326 35327# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args. 35328set dummy "$JXREncodeDelegateDefault"; ac_word=$2 35329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35330$as_echo_n "checking for $ac_word... " >&6; } 35331if ${ac_cv_path_JXREncodeDelegate+:} false; then : 35332 $as_echo_n "(cached) " >&6 35333else 35334 case $JXREncodeDelegate in 35335 [\\/]* | ?:[\\/]*) 35336 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path. 35337 ;; 35338 *) 35339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35340for as_dir in $PATH 35341do 35342 IFS=$as_save_IFS 35343 test -z "$as_dir" && as_dir=. 35344 for ac_exec_ext in '' $ac_executable_extensions; do 35345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35346 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35348 break 2 35349 fi 35350done 35351 done 35352IFS=$as_save_IFS 35353 35354 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault"" 35355 ;; 35356esac 35357fi 35358JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate 35359if test -n "$JXREncodeDelegate"; then 35360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5 35361$as_echo "$JXREncodeDelegate" >&6; } 35362else 35363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35364$as_echo "no" >&6; } 35365fi 35366 35367 35368# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. 35369set dummy "$LPDelegateDefault"; ac_word=$2 35370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35371$as_echo_n "checking for $ac_word... " >&6; } 35372if ${ac_cv_path_LPDelegate+:} false; then : 35373 $as_echo_n "(cached) " >&6 35374else 35375 case $LPDelegate in 35376 [\\/]* | ?:[\\/]*) 35377 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. 35378 ;; 35379 *) 35380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35381for as_dir in $PATH 35382do 35383 IFS=$as_save_IFS 35384 test -z "$as_dir" && as_dir=. 35385 for ac_exec_ext in '' $ac_executable_extensions; do 35386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35387 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" 35388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35389 break 2 35390 fi 35391done 35392 done 35393IFS=$as_save_IFS 35394 35395 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" 35396 ;; 35397esac 35398fi 35399LPDelegate=$ac_cv_path_LPDelegate 35400if test -n "$LPDelegate"; then 35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 35402$as_echo "$LPDelegate" >&6; } 35403else 35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35405$as_echo "no" >&6; } 35406fi 35407 35408 35409# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. 35410set dummy "$LPRDelegateDefault"; ac_word=$2 35411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35412$as_echo_n "checking for $ac_word... " >&6; } 35413if ${ac_cv_path_LPRDelegate+:} false; then : 35414 $as_echo_n "(cached) " >&6 35415else 35416 case $LPRDelegate in 35417 [\\/]* | ?:[\\/]*) 35418 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. 35419 ;; 35420 *) 35421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35422for as_dir in $PATH 35423do 35424 IFS=$as_save_IFS 35425 test -z "$as_dir" && as_dir=. 35426 for ac_exec_ext in '' $ac_executable_extensions; do 35427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35428 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" 35429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35430 break 2 35431 fi 35432done 35433 done 35434IFS=$as_save_IFS 35435 35436 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" 35437 ;; 35438esac 35439fi 35440LPRDelegate=$ac_cv_path_LPRDelegate 35441if test -n "$LPRDelegate"; then 35442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 35443$as_echo "$LPRDelegate" >&6; } 35444else 35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35446$as_echo "no" >&6; } 35447fi 35448 35449 35450# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. 35451set dummy "$LaunchDelegateDefault"; ac_word=$2 35452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35453$as_echo_n "checking for $ac_word... " >&6; } 35454if ${ac_cv_path_LaunchDelegate+:} false; then : 35455 $as_echo_n "(cached) " >&6 35456else 35457 case $LaunchDelegate in 35458 [\\/]* | ?:[\\/]*) 35459 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. 35460 ;; 35461 *) 35462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35463for as_dir in $PATH 35464do 35465 IFS=$as_save_IFS 35466 test -z "$as_dir" && as_dir=. 35467 for ac_exec_ext in '' $ac_executable_extensions; do 35468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35469 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" 35470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35471 break 2 35472 fi 35473done 35474 done 35475IFS=$as_save_IFS 35476 35477 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" 35478 ;; 35479esac 35480fi 35481LaunchDelegate=$ac_cv_path_LaunchDelegate 35482if test -n "$LaunchDelegate"; then 35483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 35484$as_echo "$LaunchDelegate" >&6; } 35485else 35486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35487$as_echo "no" >&6; } 35488fi 35489 35490 35491# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. 35492set dummy "$MogrifyDelegateDefault"; ac_word=$2 35493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35494$as_echo_n "checking for $ac_word... " >&6; } 35495if ${ac_cv_path_MogrifyDelegate+:} false; then : 35496 $as_echo_n "(cached) " >&6 35497else 35498 case $MogrifyDelegate in 35499 [\\/]* | ?:[\\/]*) 35500 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. 35501 ;; 35502 *) 35503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35504for as_dir in $PATH 35505do 35506 IFS=$as_save_IFS 35507 test -z "$as_dir" && as_dir=. 35508 for ac_exec_ext in '' $ac_executable_extensions; do 35509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35510 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" 35511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35512 break 2 35513 fi 35514done 35515 done 35516IFS=$as_save_IFS 35517 35518 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" 35519 ;; 35520esac 35521fi 35522MogrifyDelegate=$ac_cv_path_MogrifyDelegate 35523if test -n "$MogrifyDelegate"; then 35524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 35525$as_echo "$MogrifyDelegate" >&6; } 35526else 35527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35528$as_echo "no" >&6; } 35529fi 35530 35531 35532# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 35533set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 35534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35535$as_echo_n "checking for $ac_word... " >&6; } 35536if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 35537 $as_echo_n "(cached) " >&6 35538else 35539 case $MPEGDecodeDelegate in 35540 [\\/]* | ?:[\\/]*) 35541 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 35542 ;; 35543 *) 35544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35545for as_dir in $PATH 35546do 35547 IFS=$as_save_IFS 35548 test -z "$as_dir" && as_dir=. 35549 for ac_exec_ext in '' $ac_executable_extensions; do 35550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35551 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35553 break 2 35554 fi 35555done 35556 done 35557IFS=$as_save_IFS 35558 35559 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 35560 ;; 35561esac 35562fi 35563MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 35564if test -n "$MPEGDecodeDelegate"; then 35565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 35566$as_echo "$MPEGDecodeDelegate" >&6; } 35567else 35568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35569$as_echo "no" >&6; } 35570fi 35571 35572 35573if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then 35574 MPEGDecodeDelegateDefault='ffmpeg' 35575 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 35576set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 35577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35578$as_echo_n "checking for $ac_word... " >&6; } 35579if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 35580 $as_echo_n "(cached) " >&6 35581else 35582 case $MPEGDecodeDelegate in 35583 [\\/]* | ?:[\\/]*) 35584 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 35585 ;; 35586 *) 35587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35588for as_dir in $PATH 35589do 35590 IFS=$as_save_IFS 35591 test -z "$as_dir" && as_dir=. 35592 for ac_exec_ext in '' $ac_executable_extensions; do 35593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35594 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35596 break 2 35597 fi 35598done 35599 done 35600IFS=$as_save_IFS 35601 35602 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 35603 ;; 35604esac 35605fi 35606MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 35607if test -n "$MPEGDecodeDelegate"; then 35608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 35609$as_echo "$MPEGDecodeDelegate" >&6; } 35610else 35611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35612$as_echo "no" >&6; } 35613fi 35614 35615 35616fi; 35617# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 35618set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 35619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35620$as_echo_n "checking for $ac_word... " >&6; } 35621if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 35622 $as_echo_n "(cached) " >&6 35623else 35624 case $MPEGEncodeDelegate in 35625 [\\/]* | ?:[\\/]*) 35626 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 35627 ;; 35628 *) 35629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35630for as_dir in $PATH 35631do 35632 IFS=$as_save_IFS 35633 test -z "$as_dir" && as_dir=. 35634 for ac_exec_ext in '' $ac_executable_extensions; do 35635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35636 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35638 break 2 35639 fi 35640done 35641 done 35642IFS=$as_save_IFS 35643 35644 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 35645 ;; 35646esac 35647fi 35648MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 35649if test -n "$MPEGEncodeDelegate"; then 35650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 35651$as_echo "$MPEGEncodeDelegate" >&6; } 35652else 35653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35654$as_echo "no" >&6; } 35655fi 35656 35657 35658if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then 35659 MPEGEncodeDelegateDefault='ffmpeg' 35660 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 35661set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 35662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35663$as_echo_n "checking for $ac_word... " >&6; } 35664if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 35665 $as_echo_n "(cached) " >&6 35666else 35667 case $MPEGEncodeDelegate in 35668 [\\/]* | ?:[\\/]*) 35669 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 35670 ;; 35671 *) 35672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35673for as_dir in $PATH 35674do 35675 IFS=$as_save_IFS 35676 test -z "$as_dir" && as_dir=. 35677 for ac_exec_ext in '' $ac_executable_extensions; do 35678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35679 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35681 break 2 35682 fi 35683done 35684 done 35685IFS=$as_save_IFS 35686 35687 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 35688 ;; 35689esac 35690fi 35691MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 35692if test -n "$MPEGEncodeDelegate"; then 35693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 35694$as_echo "$MPEGEncodeDelegate" >&6; } 35695else 35696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35697$as_echo "no" >&6; } 35698fi 35699 35700 35701fi; 35702# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. 35703set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 35704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35705$as_echo_n "checking for $ac_word... " >&6; } 35706if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : 35707 $as_echo_n "(cached) " >&6 35708else 35709 case $MrSIDDecodeDelegate in 35710 [\\/]* | ?:[\\/]*) 35711 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. 35712 ;; 35713 *) 35714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35715for as_dir in $PATH 35716do 35717 IFS=$as_save_IFS 35718 test -z "$as_dir" && as_dir=. 35719 for ac_exec_ext in '' $ac_executable_extensions; do 35720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35721 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35723 break 2 35724 fi 35725done 35726 done 35727IFS=$as_save_IFS 35728 35729 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" 35730 ;; 35731esac 35732fi 35733MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate 35734if test -n "$MrSIDDecodeDelegate"; then 35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 35736$as_echo "$MrSIDDecodeDelegate" >&6; } 35737else 35738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35739$as_echo "no" >&6; } 35740fi 35741 35742 35743# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. 35744set dummy "$MVDelegateDefault"; ac_word=$2 35745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35746$as_echo_n "checking for $ac_word... " >&6; } 35747if ${ac_cv_path_MVDelegate+:} false; then : 35748 $as_echo_n "(cached) " >&6 35749else 35750 case $MVDelegate in 35751 [\\/]* | ?:[\\/]*) 35752 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. 35753 ;; 35754 *) 35755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35756for as_dir in $PATH 35757do 35758 IFS=$as_save_IFS 35759 test -z "$as_dir" && as_dir=. 35760 for ac_exec_ext in '' $ac_executable_extensions; do 35761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35762 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" 35763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35764 break 2 35765 fi 35766done 35767 done 35768IFS=$as_save_IFS 35769 35770 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" 35771 ;; 35772esac 35773fi 35774MVDelegate=$ac_cv_path_MVDelegate 35775if test -n "$MVDelegate"; then 35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 35777$as_echo "$MVDelegate" >&6; } 35778else 35779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35780$as_echo "no" >&6; } 35781fi 35782 35783 35784# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. 35785set dummy "$PCLDelegateDefault"; ac_word=$2 35786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35787$as_echo_n "checking for $ac_word... " >&6; } 35788if ${ac_cv_path_PCLDelegate+:} false; then : 35789 $as_echo_n "(cached) " >&6 35790else 35791 case $PCLDelegate in 35792 [\\/]* | ?:[\\/]*) 35793 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. 35794 ;; 35795 *) 35796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35797for as_dir in $PATH 35798do 35799 IFS=$as_save_IFS 35800 test -z "$as_dir" && as_dir=. 35801 for ac_exec_ext in '' $ac_executable_extensions; do 35802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35803 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" 35804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35805 break 2 35806 fi 35807done 35808 done 35809IFS=$as_save_IFS 35810 35811 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" 35812 ;; 35813esac 35814fi 35815PCLDelegate=$ac_cv_path_PCLDelegate 35816if test -n "$PCLDelegate"; then 35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 35818$as_echo "$PCLDelegate" >&6; } 35819else 35820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35821$as_echo "no" >&6; } 35822fi 35823 35824 35825for ac_prog in gsx gsc "$PSDelegateDefault" 35826do 35827 # Extract the first word of "$ac_prog", so it can be a program name with args. 35828set dummy $ac_prog; ac_word=$2 35829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35830$as_echo_n "checking for $ac_word... " >&6; } 35831if ${ac_cv_path_PSDelegate+:} false; then : 35832 $as_echo_n "(cached) " >&6 35833else 35834 case $PSDelegate in 35835 [\\/]* | ?:[\\/]*) 35836 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. 35837 ;; 35838 *) 35839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35840for as_dir in $PATH 35841do 35842 IFS=$as_save_IFS 35843 test -z "$as_dir" && as_dir=. 35844 for ac_exec_ext in '' $ac_executable_extensions; do 35845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35846 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" 35847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35848 break 2 35849 fi 35850done 35851 done 35852IFS=$as_save_IFS 35853 35854 ;; 35855esac 35856fi 35857PSDelegate=$ac_cv_path_PSDelegate 35858if test -n "$PSDelegate"; then 35859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 35860$as_echo "$PSDelegate" >&6; } 35861else 35862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35863$as_echo "no" >&6; } 35864fi 35865 35866 35867 test -n "$PSDelegate" && break 35868done 35869test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" 35870 35871# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. 35872set dummy "$RMDelegateDefault"; ac_word=$2 35873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35874$as_echo_n "checking for $ac_word... " >&6; } 35875if ${ac_cv_path_RMDelegate+:} false; then : 35876 $as_echo_n "(cached) " >&6 35877else 35878 case $RMDelegate in 35879 [\\/]* | ?:[\\/]*) 35880 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. 35881 ;; 35882 *) 35883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35884for as_dir in $PATH 35885do 35886 IFS=$as_save_IFS 35887 test -z "$as_dir" && as_dir=. 35888 for ac_exec_ext in '' $ac_executable_extensions; do 35889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35890 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" 35891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35892 break 2 35893 fi 35894done 35895 done 35896IFS=$as_save_IFS 35897 35898 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" 35899 ;; 35900esac 35901fi 35902RMDelegate=$ac_cv_path_RMDelegate 35903if test -n "$RMDelegate"; then 35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 35905$as_echo "$RMDelegate" >&6; } 35906else 35907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35908$as_echo "no" >&6; } 35909fi 35910 35911 35912# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. 35913set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 35914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35915$as_echo_n "checking for $ac_word... " >&6; } 35916if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : 35917 $as_echo_n "(cached) " >&6 35918else 35919 case $RSVGDecodeDelegate in 35920 [\\/]* | ?:[\\/]*) 35921 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. 35922 ;; 35923 *) 35924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35925for as_dir in $PATH 35926do 35927 IFS=$as_save_IFS 35928 test -z "$as_dir" && as_dir=. 35929 for ac_exec_ext in '' $ac_executable_extensions; do 35930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35931 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35933 break 2 35934 fi 35935done 35936 done 35937IFS=$as_save_IFS 35938 35939 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" 35940 ;; 35941esac 35942fi 35943RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate 35944if test -n "$RSVGDecodeDelegate"; then 35945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 35946$as_echo "$RSVGDecodeDelegate" >&6; } 35947else 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35949$as_echo "no" >&6; } 35950fi 35951 35952 35953# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. 35954set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 35955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35956$as_echo_n "checking for $ac_word... " >&6; } 35957if ${ac_cv_path_SVGDecodeDelegate+:} false; then : 35958 $as_echo_n "(cached) " >&6 35959else 35960 case $SVGDecodeDelegate in 35961 [\\/]* | ?:[\\/]*) 35962 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. 35963 ;; 35964 *) 35965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35966for as_dir in $PATH 35967do 35968 IFS=$as_save_IFS 35969 test -z "$as_dir" && as_dir=. 35970 for ac_exec_ext in '' $ac_executable_extensions; do 35971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35972 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35974 break 2 35975 fi 35976done 35977 done 35978IFS=$as_save_IFS 35979 35980 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" 35981 ;; 35982esac 35983fi 35984SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate 35985if test -n "$SVGDecodeDelegate"; then 35986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 35987$as_echo "$SVGDecodeDelegate" >&6; } 35988else 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35990$as_echo "no" >&6; } 35991fi 35992 35993 35994# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. 35995set dummy "$UniconvertorDelegateDefault"; ac_word=$2 35996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35997$as_echo_n "checking for $ac_word... " >&6; } 35998if ${ac_cv_path_UniconvertorDelegate+:} false; then : 35999 $as_echo_n "(cached) " >&6 36000else 36001 case $UniconvertorDelegate in 36002 [\\/]* | ?:[\\/]*) 36003 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. 36004 ;; 36005 *) 36006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36007for as_dir in $PATH 36008do 36009 IFS=$as_save_IFS 36010 test -z "$as_dir" && as_dir=. 36011 for ac_exec_ext in '' $ac_executable_extensions; do 36012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36013 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" 36014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36015 break 2 36016 fi 36017done 36018 done 36019IFS=$as_save_IFS 36020 36021 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" 36022 ;; 36023esac 36024fi 36025UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate 36026if test -n "$UniconvertorDelegate"; then 36027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 36028$as_echo "$UniconvertorDelegate" >&6; } 36029else 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36031$as_echo "no" >&6; } 36032fi 36033 36034 36035# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args. 36036set dummy "$WebPDecodeDelegateDefault"; ac_word=$2 36037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36038$as_echo_n "checking for $ac_word... " >&6; } 36039if ${ac_cv_path_WebPDecodeDelegate+:} false; then : 36040 $as_echo_n "(cached) " >&6 36041else 36042 case $WebPDecodeDelegate in 36043 [\\/]* | ?:[\\/]*) 36044 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path. 36045 ;; 36046 *) 36047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36048for as_dir in $PATH 36049do 36050 IFS=$as_save_IFS 36051 test -z "$as_dir" && as_dir=. 36052 for ac_exec_ext in '' $ac_executable_extensions; do 36053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36054 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36056 break 2 36057 fi 36058done 36059 done 36060IFS=$as_save_IFS 36061 36062 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault"" 36063 ;; 36064esac 36065fi 36066WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate 36067if test -n "$WebPDecodeDelegate"; then 36068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5 36069$as_echo "$WebPDecodeDelegate" >&6; } 36070else 36071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36072$as_echo "no" >&6; } 36073fi 36074 36075 36076# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args. 36077set dummy "$WebPEncodeDelegateDefault"; ac_word=$2 36078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36079$as_echo_n "checking for $ac_word... " >&6; } 36080if ${ac_cv_path_WebPEncodeDelegate+:} false; then : 36081 $as_echo_n "(cached) " >&6 36082else 36083 case $WebPEncodeDelegate in 36084 [\\/]* | ?:[\\/]*) 36085 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path. 36086 ;; 36087 *) 36088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36089for as_dir in $PATH 36090do 36091 IFS=$as_save_IFS 36092 test -z "$as_dir" && as_dir=. 36093 for ac_exec_ext in '' $ac_executable_extensions; do 36094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36095 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36097 break 2 36098 fi 36099done 36100 done 36101IFS=$as_save_IFS 36102 36103 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault"" 36104 ;; 36105esac 36106fi 36107WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate 36108if test -n "$WebPEncodeDelegate"; then 36109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5 36110$as_echo "$WebPEncodeDelegate" >&6; } 36111else 36112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36113$as_echo "no" >&6; } 36114fi 36115 36116 36117# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. 36118set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 36119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36120$as_echo_n "checking for $ac_word... " >&6; } 36121if ${ac_cv_path_WWWDecodeDelegate+:} false; then : 36122 $as_echo_n "(cached) " >&6 36123else 36124 case $WWWDecodeDelegate in 36125 [\\/]* | ?:[\\/]*) 36126 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. 36127 ;; 36128 *) 36129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36130for as_dir in $PATH 36131do 36132 IFS=$as_save_IFS 36133 test -z "$as_dir" && as_dir=. 36134 for ac_exec_ext in '' $ac_executable_extensions; do 36135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36136 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36138 break 2 36139 fi 36140done 36141 done 36142IFS=$as_save_IFS 36143 36144 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault"" 36145 ;; 36146esac 36147fi 36148WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate 36149if test -n "$WWWDecodeDelegate"; then 36150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 36151$as_echo "$WWWDecodeDelegate" >&6; } 36152else 36153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36154$as_echo "no" >&6; } 36155fi 36156 36157 36158# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. 36159set dummy "$XPSDelegateDefault"; ac_word=$2 36160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36161$as_echo_n "checking for $ac_word... " >&6; } 36162if ${ac_cv_path_XPSDelegate+:} false; then : 36163 $as_echo_n "(cached) " >&6 36164else 36165 case $XPSDelegate in 36166 [\\/]* | ?:[\\/]*) 36167 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. 36168 ;; 36169 *) 36170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36171for as_dir in $PATH 36172do 36173 IFS=$as_save_IFS 36174 test -z "$as_dir" && as_dir=. 36175 for ac_exec_ext in '' $ac_executable_extensions; do 36176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36177 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" 36178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36179 break 2 36180 fi 36181done 36182 done 36183IFS=$as_save_IFS 36184 36185 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" 36186 ;; 36187esac 36188fi 36189XPSDelegate=$ac_cv_path_XPSDelegate 36190if test -n "$XPSDelegate"; then 36191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 36192$as_echo "$XPSDelegate" >&6; } 36193else 36194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36195$as_echo "no" >&6; } 36196fi 36197 36198 36199 36200# Prefer lpr to lp; lp needs options tacked on. 36201if test "$LPRDelegate" != no; then 36202 PrintDelegate="$LPRDelegate" 36203else 36204 PrintDelegate="$LPDelegate -c -s" 36205fi 36206 36207 36208# Installed ImageMagick utiltity paths 36209ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 36210DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 36211MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 36212 36213# Set delegate booleans 36214have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi 36215have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 36216have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 36217have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 36218have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 36219have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 36220have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 36221have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 36222 36223# 36224# Test for font directories 36225# 36226type_include_files='' 36227 36228# Apple fonts. 36229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5 36230$as_echo_n "checking for Apple fonts directory... " >&6; } 36231apple_font_dir='' 36232if test "${with_apple_font_dir}" != 'default'; then 36233 apple_font_dir="${with_apple_font_dir}/" 36234else 36235 for font_dir in '/Library/Fonts/'; do 36236 if test -f "${font_dir}Arial.ttf"; then 36237 apple_font_dir="${font_dir}" 36238 break 1 36239 fi 36240 done 36241fi 36242if test "${apple_font_dir}x" != 'x'; then 36243 type_include_files="${type_include_files} "'<include file="type-apple.xml" />' 36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5 36245$as_echo "$apple_font_dir" >&6; } 36246else 36247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36248$as_echo "not found!" >&6; }; 36249fi 36250 36251 36252# Dejavu fonts. 36253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 36254$as_echo_n "checking for Dejavu fonts directory... " >&6; } 36255dejavu_font_dir='' 36256if test "${with_dejavu_font_dir}" != 'default'; then 36257 dejavu_font_dir="${with_dejavu_font_dir}/" 36258else 36259 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 36260 if test -f "${font_dir}DejaVuSerif.ttf"; then 36261 dejavu_font_dir="${font_dir}" 36262 break 1 36263 fi 36264 done 36265fi 36266if test "${dejavu_font_dir}x" != 'x'; then 36267 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 36268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 36269$as_echo "$dejavu_font_dir" >&6; } 36270else 36271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36272$as_echo "not found!" >&6; }; 36273fi 36274 36275 36276# Ghostscript 36277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 36278$as_echo_n "checking for Ghostscript fonts directory... " >&6; } 36279ghostscript_font_dir='' 36280if test "${with_gs_font_dir}" != 'default'; then 36281 ghostscript_font_dir="${with_gs_font_dir}/" 36282else 36283 if test "${native_win32_build}" = 'yes'; then 36284 # Native Windows Build 36285 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 36286 if test -f "${font_dir}a010013l.pfb"; then 36287 ghostscript_font_dir="$font_dir" 36288 break 1 36289 fi 36290 done 36291 if test "${PSDelegate}" != 'gswin32c'; then 36292 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 36293 fi 36294 else 36295 # Linux / Mac OS X / Unix Build 36296 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 36297 if test -f "${font_dir}a010013l.pfb"; then 36298 ghostscript_font_dir="${font_dir}" 36299 break 1 36300 fi 36301 done 36302 if test "${ghostscript_font_dir}x" = 'x'; then 36303 if test "$PSDelegate" != 'gs'; then 36304 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 36305 fi 36306 fi 36307 fi 36308fi 36309if test "${ghostscript_font_dir}x" != 'x'; then 36310 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 36311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 36312$as_echo "$ghostscript_font_dir" >&6; } 36313else 36314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36315$as_echo "not found!" >&6; }; 36316fi 36317 36318case "${build_os}" in 36319 mingw* ) 36320 PSDelegate=`$WinPathScript "$PSDelegate" 1` 36321 ;; 36322esac 36323 36324# Windows fonts. 36325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5 36326$as_echo_n "checking for Windows fonts directory... " >&6; } 36327windows_font_dir='' 36328if test "${with_windows_font_dir}" != 'default'; then 36329 windows_font_dir="${with_windows_font_dir}/" 36330else 36331 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do 36332 if test -f "${font_dir}arial.ttf"; then 36333 windows_font_dir="${font_dir}" 36334 break 1 36335 fi 36336 done 36337fi 36338if test "${windows_font_dir}x" != 'x'; then 36339 type_include_files="${type_include_files} "'<include file="type-windows.xml" />' 36340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5 36341$as_echo "$windows_font_dir" >&6; } 36342else 36343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36344$as_echo "not found!" >&6; }; 36345fi 36346 36347 36348 36349 36350# 36351# Handle case where user doesn't want frozen paths 36352# 36353if test "$with_frozenpaths" != 'yes'; then 36354 # Re-set delegate definitions to default (no paths) 36355 BPGDecodeDelegate="$BPGDecodeDelegateDefault" 36356 BPGEncodeDelegate="$BPGEncodeDelegateDefault" 36357 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 36358 BrowseDelegate="$BrowseDelegateDefault" 36359 ConvertDelegate="$ConvertDelegateDefault" 36360 DisplayDelegate="$DisplayDelegateDefault" 36361 DNGDecodeDelegate="$DNGDecodeDelegateDefault" 36362 DOCDecodeDelegate="$DOCDecodeDelegateDefault" 36363 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 36364 EditorDelegate="$EditorDelegateDefault" 36365 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 36366 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 36367 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 36368 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 36369 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 36370 JXRDecodeDelegate="$JXRDecodeDelegateDefault" 36371 JXREncodeDelegate="$JXREncodeDelegateDefault" 36372 LPDelegate="$LPDelegateDefault" 36373 LaunchDelegate="$LaunchDelegateDefault" 36374 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 36375 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 36376 MogrifyDelegate="$MogrifyDelegateDefault" 36377 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 36378 PCLDelegate="$PCLDelegateDefault" 36379 PSDelegate="$PSDelegateDefault" 36380 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 36381 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 36382 ShowImageDelegate="$ShowImageDelegateDefault" 36383 UniconvertorDelegate="$UniconvertorDelegateDefault" 36384 WebPDecodeDelegate="$WebPDecodeDelegateDefault" 36385 WebPEncodeDelegate="$WebPEncodeDelegateDefault" 36386 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 36387 XPSDelegate="$XPSDelegateDefault" 36388fi 36389 36390# Delegate substitutions 36391 36392 36393 36394 36395 36396 36397 36398 36399 36400 36401 36402 36403 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 36418 36419 36420# 36421# RPM support. 36422# 36423RPM='' 36424for ac_prog in gnutar gtar tar 36425do 36426 # Extract the first word of "$ac_prog", so it can be a program name with args. 36427set dummy $ac_prog; ac_word=$2 36428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36429$as_echo_n "checking for $ac_word... " >&6; } 36430if ${ac_cv_prog_TAR+:} false; then : 36431 $as_echo_n "(cached) " >&6 36432else 36433 if test -n "$TAR"; then 36434 ac_cv_prog_TAR="$TAR" # Let the user override the test. 36435else 36436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36437for as_dir in $PATH 36438do 36439 IFS=$as_save_IFS 36440 test -z "$as_dir" && as_dir=. 36441 for ac_exec_ext in '' $ac_executable_extensions; do 36442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36443 ac_cv_prog_TAR="$ac_prog" 36444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36445 break 2 36446 fi 36447done 36448 done 36449IFS=$as_save_IFS 36450 36451fi 36452fi 36453TAR=$ac_cv_prog_TAR 36454if test -n "$TAR"; then 36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 36456$as_echo "$TAR" >&6; } 36457else 36458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36459$as_echo "no" >&6; } 36460fi 36461 36462 36463 test -n "$TAR" && break 36464done 36465 36466for ac_prog in perl 36467do 36468 # Extract the first word of "$ac_prog", so it can be a program name with args. 36469set dummy $ac_prog; ac_word=$2 36470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36471$as_echo_n "checking for $ac_word... " >&6; } 36472if ${ac_cv_prog_PERL+:} false; then : 36473 $as_echo_n "(cached) " >&6 36474else 36475 if test -n "$PERL"; then 36476 ac_cv_prog_PERL="$PERL" # Let the user override the test. 36477else 36478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36479for as_dir in $PATH 36480do 36481 IFS=$as_save_IFS 36482 test -z "$as_dir" && as_dir=. 36483 for ac_exec_ext in '' $ac_executable_extensions; do 36484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36485 ac_cv_prog_PERL="$ac_prog" 36486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36487 break 2 36488 fi 36489done 36490 done 36491IFS=$as_save_IFS 36492 36493fi 36494fi 36495PERL=$ac_cv_prog_PERL 36496if test -n "$PERL"; then 36497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36498$as_echo "$PERL" >&6; } 36499else 36500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36501$as_echo "no" >&6; } 36502fi 36503 36504 36505 test -n "$PERL" && break 36506done 36507 36508for ac_prog in rpmbuild rpm 36509do 36510 # Extract the first word of "$ac_prog", so it can be a program name with args. 36511set dummy $ac_prog; ac_word=$2 36512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36513$as_echo_n "checking for $ac_word... " >&6; } 36514if ${ac_cv_prog_RPM+:} false; then : 36515 $as_echo_n "(cached) " >&6 36516else 36517 if test -n "$RPM"; then 36518 ac_cv_prog_RPM="$RPM" # Let the user override the test. 36519else 36520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36521for as_dir in $PATH 36522do 36523 IFS=$as_save_IFS 36524 test -z "$as_dir" && as_dir=. 36525 for ac_exec_ext in '' $ac_executable_extensions; do 36526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36527 ac_cv_prog_RPM="$ac_prog" 36528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36529 break 2 36530 fi 36531done 36532 done 36533IFS=$as_save_IFS 36534 36535fi 36536fi 36537RPM=$ac_cv_prog_RPM 36538if test -n "$RPM"; then 36539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 36540$as_echo "$RPM" >&6; } 36541else 36542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36543$as_echo "no" >&6; } 36544fi 36545 36546 36547 test -n "$RPM" && break 36548done 36549 36550 36551ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 36552 36553 36554AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 36555 36556 36557AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 36558 36559 36560AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 36561 36562 36563 if test "x$RPM" != "x" ; then 36564 RPM_DELEGATE_TRUE= 36565 RPM_DELEGATE_FALSE='#' 36566else 36567 RPM_DELEGATE_TRUE='#' 36568 RPM_DELEGATE_FALSE= 36569fi 36570 36571 36572# 36573# 7ZIP support (http://p7zip.sourceforge.net/) 36574# 36575P7ZIP='' 36576for ac_prog in 7za 36577do 36578 # Extract the first word of "$ac_prog", so it can be a program name with args. 36579set dummy $ac_prog; ac_word=$2 36580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36581$as_echo_n "checking for $ac_word... " >&6; } 36582if ${ac_cv_prog_P7ZIP+:} false; then : 36583 $as_echo_n "(cached) " >&6 36584else 36585 if test -n "$P7ZIP"; then 36586 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. 36587else 36588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36589for as_dir in $PATH 36590do 36591 IFS=$as_save_IFS 36592 test -z "$as_dir" && as_dir=. 36593 for ac_exec_ext in '' $ac_executable_extensions; do 36594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36595 ac_cv_prog_P7ZIP="$ac_prog" 36596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36597 break 2 36598 fi 36599done 36600 done 36601IFS=$as_save_IFS 36602 36603fi 36604fi 36605P7ZIP=$ac_cv_prog_P7ZIP 36606if test -n "$P7ZIP"; then 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 36608$as_echo "$P7ZIP" >&6; } 36609else 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36611$as_echo "no" >&6; } 36612fi 36613 36614 36615 test -n "$P7ZIP" && break 36616done 36617 36618 36619 if test "x$P7ZIP" != "x" ; then 36620 P7ZIP_DELEGATE_TRUE= 36621 P7ZIP_DELEGATE_FALSE='#' 36622else 36623 P7ZIP_DELEGATE_TRUE='#' 36624 P7ZIP_DELEGATE_FALSE= 36625fi 36626 36627 36628# 36629# ZIP support (http://www.info-zip.org/Zip.html) 36630# 36631ZIP='' 36632for ac_prog in zip 36633do 36634 # Extract the first word of "$ac_prog", so it can be a program name with args. 36635set dummy $ac_prog; ac_word=$2 36636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36637$as_echo_n "checking for $ac_word... " >&6; } 36638if ${ac_cv_prog_ZIP+:} false; then : 36639 $as_echo_n "(cached) " >&6 36640else 36641 if test -n "$ZIP"; then 36642 ac_cv_prog_ZIP="$ZIP" # Let the user override the test. 36643else 36644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36645for as_dir in $PATH 36646do 36647 IFS=$as_save_IFS 36648 test -z "$as_dir" && as_dir=. 36649 for ac_exec_ext in '' $ac_executable_extensions; do 36650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36651 ac_cv_prog_ZIP="$ac_prog" 36652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36653 break 2 36654 fi 36655done 36656 done 36657IFS=$as_save_IFS 36658 36659fi 36660fi 36661ZIP=$ac_cv_prog_ZIP 36662if test -n "$ZIP"; then 36663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 36664$as_echo "$ZIP" >&6; } 36665else 36666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36667$as_echo "no" >&6; } 36668fi 36669 36670 36671 test -n "$ZIP" && break 36672done 36673 36674 36675 if test "x$ZIP" != "x" ; then 36676 ZIP_DELEGATE_TRUE= 36677 ZIP_DELEGATE_FALSE='#' 36678else 36679 ZIP_DELEGATE_TRUE='#' 36680 ZIP_DELEGATE_FALSE= 36681fi 36682 36683 36684# 36685# GhostPCL related configuration. 36686# 36687PCLColorDevice=ppmraw 36688PCLCMYKDevice=pamcmyk32 36689PCLMonoDevice=pbmraw 36690if test -z "$PCLVersion"; then 36691 PCLVersion='unknown' 36692fi 36693if test $have_pcl = 'yes'; then 36694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36695$as_echo "-------------------------------------------------------------" >&6; } 36696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 36697$as_echo_n "checking for PCL... " >&6; } 36698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36699$as_echo "" >&6; } 36700 # PCLColorDevice 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 36702$as_echo_n "checking for pcl color device... " >&6; } 36703 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36704 : 36705 else 36706 PCLColorDevice=ppmraw 36707 fi 36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 36709$as_echo "$PCLColorDevice" >&6; } 36710 36711 # PCLCMYKDevice 36712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 36713$as_echo_n "checking for pcl CMYK device... " >&6; } 36714 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36715 : 36716 else 36717 PCLCMYKDevice=$PCLColorDevice 36718 fi 36719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 36720$as_echo "$PCLCMYKDevice" >&6; } 36721 36722 # PCLMonoDevice 36723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 36724$as_echo_n "checking for pcl mono device... " >&6; } 36725 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36726 : 36727 else 36728 PCLMonoDevice=$PCLColorDevice 36729 fi 36730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 36731$as_echo "$PCLMonoDevice" >&6; } 36732fi 36733 36734 36735 36736 36737 36738 36739# 36740# GhostXPS related configuration. 36741# 36742XPSColorDevice=ppmraw 36743XPSCMYKDevice=bmpsep8 36744XPSMonoDevice=pbmraw 36745if test -z "$XPSVersion"; then 36746 XPSVersion='unknown' 36747fi 36748if test $have_xps = 'yes'; then 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36750$as_echo "-------------------------------------------------------------" >&6; } 36751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 36752$as_echo_n "checking for XPS... " >&6; } 36753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36754$as_echo "" >&6; } 36755 # XPSColorDevice 36756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 36757$as_echo_n "checking for xps color device... " >&6; } 36758 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36759 : 36760 else 36761 XPSColorDevice=ppmraw 36762 fi 36763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 36764$as_echo "$XPSColorDevice" >&6; } 36765 36766 # XPSCMYKDevice 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 36768$as_echo_n "checking for xps CMYK device... " >&6; } 36769 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36770 : 36771 else 36772 XPSCMYKDevice=$XPSColorDevice 36773 fi 36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 36775$as_echo "$XPSCMYKDevice" >&6; } 36776 36777 # XPSMonoDevice 36778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 36779$as_echo_n "checking for xps mono device... " >&6; } 36780 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36781 : 36782 else 36783 XPSMonoDevice=$XPSColorDevice 36784 fi 36785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 36786$as_echo "$XPSMonoDevice" >&6; } 36787fi 36788 36789 36790 36791 36792 36793 36794# 36795# Ghostscript related configuration. 36796# 36797GSAlphaDevice=pngalpha 36798GSColorDevice=pnmraw 36799GSCMYKDevice=pamcmyk32 36800GSMonoDevice=pbmraw 36801GSPDFDevice=pdfwrite 36802GSPSDevice=ps2write 36803GSEPSDevice=eps2write 36804GSVersion='unknown' 36805if test $have_gs = 'yes'; then 36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36807$as_echo "-------------------------------------------------------------" >&6; } 36808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 36809$as_echo_n "checking for Ghostscript... " >&6; } 36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36811$as_echo "" >&6; } 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 36813$as_echo_n "checking for Ghostscript version... " >&6; } 36814 if GSVersion=`$PSDelegate --version`; then 36815 : 36816 else 36817 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 36818 fi 36819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 36820$as_echo "$GSVersion" >&6; } 36821 36822 # GSColorDevice 36823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 36824$as_echo_n "checking for gs color device... " >&6; } 36825 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36826 : 36827 else 36828 GSColorDevice=ppmraw 36829 fi 36830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 36831$as_echo "$GSColorDevice" >&6; } 36832 36833 # GSAlphaDevice 36834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 36835$as_echo_n "checking for gs alpha device... " >&6; } 36836 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36837 : 36838 else 36839 GSAlphaDevice=$GSColorDevice 36840 fi 36841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 36842$as_echo "$GSAlphaDevice" >&6; } 36843 36844 # GSCMYKDevice 36845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 36846$as_echo_n "checking for gs CMYK device... " >&6; } 36847 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36848 : 36849 else 36850 GSCMYKDevice=pam 36851 fi 36852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 36853$as_echo "$GSCMYKDevice" >&6; } 36854 36855 # GSMonoDevice 36856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 36857$as_echo_n "checking for gs mono device... " >&6; } 36858 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36859 : 36860 else 36861 GSMonoDevice=$GSColorDevice 36862 fi 36863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 36864$as_echo "$GSMonoDevice" >&6; } 36865 36866 # GSPDFDevice 36867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 36868$as_echo_n "checking for gs PDF writing device... " >&6; } 36869 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36870 : 36871 else 36872 GSPDFDevice=nodevice 36873 fi 36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 36875$as_echo "$GSPDFDevice" >&6; } 36876 36877 # GSPSDevice 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 36879$as_echo_n "checking for gs PS writing device... " >&6; } 36880 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36881 : 36882 else 36883 GSPSDevice=pswrite 36884 fi 36885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 36886$as_echo "$GSPSDevice" >&6; } 36887 36888 # GSEPSDevice 36889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 36890$as_echo_n "checking for gs EPS writing device... " >&6; } 36891 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36892 : 36893 else 36894 GSEPSDevice=epswrite 36895 fi 36896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 36897$as_echo "$GSEPSDevice" >&6; } 36898fi 36899 36900 36901 36902 36903 36904 36905 36906 36907 36908 36909# 36910# PerlMagick-related configuration 36911# 36912 36913# Look for PERL if PerlMagick requested 36914# If name/path of desired PERL interpreter is specified, look for that one first 36915have_perl='no' 36916if test "$with_perl" != 'no'; then 36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36918$as_echo "-------------------------------------------------------------" >&6; } 36919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 36920$as_echo_n "checking for Perl... " >&6; } 36921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36922$as_echo "" >&6; } 36923 if test "$with_perl" != 'yes'; then 36924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 36925$as_echo_n "checking for perl... " >&6; } 36926if ${ac_cv_path_PERL+:} false; then : 36927 $as_echo_n "(cached) " >&6 36928else 36929 ac_cv_path_PERL="$with_perl" 36930fi 36931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 36932$as_echo "$ac_cv_path_PERL" >&6; }; 36933 PERL=$ac_cv_path_PERL 36934 have_perl="$ac_cv_path_PERL" 36935 else 36936 for ac_prog in perl perl5 36937do 36938 # Extract the first word of "$ac_prog", so it can be a program name with args. 36939set dummy $ac_prog; ac_word=$2 36940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36941$as_echo_n "checking for $ac_word... " >&6; } 36942if ${ac_cv_path_PERL+:} false; then : 36943 $as_echo_n "(cached) " >&6 36944else 36945 case $PERL in 36946 [\\/]* | ?:[\\/]*) 36947 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 36948 ;; 36949 *) 36950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36951for as_dir in $PATH 36952do 36953 IFS=$as_save_IFS 36954 test -z "$as_dir" && as_dir=. 36955 for ac_exec_ext in '' $ac_executable_extensions; do 36956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36957 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 36958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36959 break 2 36960 fi 36961done 36962 done 36963IFS=$as_save_IFS 36964 36965 ;; 36966esac 36967fi 36968PERL=$ac_cv_path_PERL 36969if test -n "$PERL"; then 36970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36971$as_echo "$PERL" >&6; } 36972else 36973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36974$as_echo "no" >&6; } 36975fi 36976 36977 36978 test -n "$PERL" && break 36979done 36980 if test "$ac_cv_path_PERL"; then 36981 have_perl="$ac_cv_path_PERL" 36982 fi 36983 fi 36984fi 36985 36986if test "$with_perl" != 'yes' ; then 36987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 36988fi 36989 36990PERL_SUPPORTS_DESTDIR='no' 36991 36992with_perl_static='no' 36993with_perl_dynamic='no' 36994if test "$have_perl" != 'no'; then 36995 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 36996 with_perl_static='yes' 36997 fi 36998 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 36999 with_perl_dynamic='yes' 37000 fi 37001 # Is PERL's MakeMaker new enough to support DESTDIR? 37002 37003 37004 37005 37006 if test -n "$PERL"; then : 37007 37008 ax_perl_version="5.8.1" 37009 37010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 37011$as_echo_n "checking for perl version... " >&6; } 37012 37013 perl_version=`$PERL --version 2>&1 \ 37014 | $SED -n -e '/This is perl/b inspect 37015b 37016: inspect 37017s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'` 37018 37019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 37020$as_echo "$perl_version" >&6; } 37021 37022 PERL_VERSION=$perl_version 37023 37024 37025 37026 37027 37028 # Used to indicate true or false condition 37029 ax_compare_version=false 37030 37031 # Convert the two version strings to be compared into a format that 37032 # allows a simple string comparison. The end result is that a version 37033 # string of the form 1.12.5-r617 will be converted to the form 37034 # 0001001200050617. In other words, each number is zero padded to four 37035 # digits, and non digits are removed. 37036 37037 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 37038 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 37039 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 37040 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 37041 -e 's/[^0-9]//g'` 37042 37043 37044 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 37045 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 37046 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 37047 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 37048 -e 's/[^0-9]//g'` 37049 37050 37051 ax_compare_version=`echo "x$ax_compare_version_A 37052x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 37053 37054 37055 37056 if test "$ax_compare_version" = "true" ; then 37057 37058 : 37059 PERL_SUPPORTS_DESTDIR='yes' 37060 37061 else 37062 : 37063 PERL_SUPPORTS_DESTDIR='no' 37064 37065 fi 37066 37067 37068else 37069 37070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 37071$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 37072 PERL_SUPPORTS_DESTDIR='no' 37073 37074fi 37075 37076fi 37077 if test "$have_perl" != 'no'; then 37078 WITH_PERL_TRUE= 37079 WITH_PERL_FALSE='#' 37080else 37081 WITH_PERL_TRUE='#' 37082 WITH_PERL_FALSE= 37083fi 37084 37085 if test $with_perl_static = 'yes'; then 37086 WITH_PERL_STATIC_TRUE= 37087 WITH_PERL_STATIC_FALSE='#' 37088else 37089 WITH_PERL_STATIC_TRUE='#' 37090 WITH_PERL_STATIC_FALSE= 37091fi 37092 37093 if test $with_perl_dynamic = 'yes'; then 37094 WITH_PERL_DYNAMIC_TRUE= 37095 WITH_PERL_DYNAMIC_FALSE='#' 37096else 37097 WITH_PERL_DYNAMIC_TRUE='#' 37098 WITH_PERL_DYNAMIC_FALSE= 37099fi 37100 37101 37102 37103# Determine path to pick up MagickCore library from for use with building PerlMagick 37104MAGICKCORE_PATH="${LIB_DIR}" 37105if test $with_perl_static = 'yes'; then 37106 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 37107 libtool_objdir=$objdir 37108 37109 # Linker search path to library, followed by -lMagickCore 37110 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 37111fi 37112 37113 37114# Create a simple string containing format names for all delegate libraries. 37115MAGICK_DELEGATES='' 37116if test "$have_autotrace" = 'yes' ; then 37117 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 37118fi 37119if test "$have_bzlib" = 'yes' ; then 37120 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 37121fi 37122if test "$have_dps" = 'yes' ; then 37123 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 37124fi 37125if test "$have_djvu" = 'yes' ; then 37126 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 37127fi 37128if test "$have_avconv" = 'yes' ; then 37129 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 37130fi 37131if test "$have_fftw" = 'yes' ; then 37132 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 37133fi 37134if test "$have_flif" = 'yes' ; then 37135 MAGICK_DELEGATES="$MAGICK_DELEGATES flif" 37136fi 37137if test "$have_fpx" = 'yes' ; then 37138 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 37139fi 37140if test "$have_fontconfig" = 'yes' ; then 37141 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 37142fi 37143if test "$have_freetype" = 'yes' ; then 37144 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 37145fi 37146if test "$have_gslib" = 'yes' ; then 37147 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 37148fi 37149if test "$have_jbig" = 'yes' ; then 37150 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 37151fi 37152if test "$have_png$have_jpeg" = 'yesyes' ; then 37153 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 37154fi 37155if test "$have_jpeg" = 'yes' ; then 37156 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 37157fi 37158if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 37159 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 37160fi 37161if test "$have_lqr" = 'yes' ; then 37162 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 37163fi 37164if test "$have_lzma" = 'yes' ; then 37165 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 37166fi 37167if test "$have_openexr" = 'yes' ; then 37168 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 37169fi 37170if test "$have_openjp2" = 'yes' ; then 37171 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2" 37172fi 37173if test "$have_pango" = 'yes' ; then 37174 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 37175fi 37176if test "$have_png" = 'yes' ; then 37177 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 37178fi 37179have_ps='no' 37180if test "$have_dps" = 'yes' || \ 37181 test "$have_gs" = 'yes' || \ 37182 test "${native_win32_build}" = 'yes' ; then 37183 have_ps='yes' 37184fi 37185if test "$have_ps" = 'yes' ; then 37186 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 37187fi 37188if test "$have_raqm" = 'yes' ; then 37189 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm" 37190fi 37191if test "$have_ra_ppm" = 'yes' ; then 37192 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 37193fi 37194if test "$have_rsvg" = 'yes' ; then 37195 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 37196fi 37197if test "$have_tiff" = 'yes' ; then 37198 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 37199fi 37200if test "$have_ttf" = 'yes' ; then 37201 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 37202fi 37203if test "$have_webp" = 'yes' ; then 37204 MAGICK_DELEGATES="$MAGICK_DELEGATES webp" 37205fi 37206if test "$have_wmf" = 'yes' ; then 37207 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 37208fi 37209if test "$have_x" = 'yes' ; then 37210 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 37211fi 37212if test "$have_xml" = 'yes' ; then 37213 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 37214fi 37215if test "$have_zlib" = 'yes' ; then 37216 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 37217fi 37218 37219# Remove extraneous spaces from output variables (asthetic) 37220MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 37221MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 37222 37223 37224 37225# 37226# Handle special compiler flags 37227# 37228 37229# Add '-p' if prof source profiling support enabled 37230if test "$enable_prof" = 'yes'; then 37231 CFLAGS="-p $CFLAGS" 37232 CXXFLAGS="-p $CXXFLAGS" 37233 LDFLAGS="-p $LDFLAGS" 37234fi 37235 37236# Add '-pg' if gprof source profiling support enabled 37237if test "$enable_gprof" = 'yes'; then 37238 CFLAGS="-pg $CFLAGS" 37239 CXXFLAGS="-pg $CXXFLAGS" 37240 LDFLAGS="-pg $LDFLAGS" 37241fi 37242 37243# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 37244# This is a gcc-specific feature 37245if test "$enable_gcov" = 'yes'; then 37246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 37247$as_echo_n "checking for _gcov_init in -lgcov... " >&6; } 37248if ${ac_cv_lib_gcov__gcov_init+:} false; then : 37249 $as_echo_n "(cached) " >&6 37250else 37251 ac_check_lib_save_LIBS=$LIBS 37252LIBS="-lgcov $LIBS" 37253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37254/* end confdefs.h. */ 37255 37256/* Override any GCC internal prototype to avoid an error. 37257 Use char because int might match the return type of a GCC 37258 builtin and then its argument prototype would still apply. */ 37259#ifdef __cplusplus 37260extern "C" 37261#endif 37262char _gcov_init (); 37263int 37264main () 37265{ 37266return _gcov_init (); 37267 ; 37268 return 0; 37269} 37270_ACEOF 37271if ac_fn_c_try_link "$LINENO"; then : 37272 ac_cv_lib_gcov__gcov_init=yes 37273else 37274 ac_cv_lib_gcov__gcov_init=no 37275fi 37276rm -f core conftest.err conftest.$ac_objext \ 37277 conftest$ac_exeext conftest.$ac_ext 37278LIBS=$ac_check_lib_save_LIBS 37279fi 37280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 37281$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } 37282if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : 37283 cat >>confdefs.h <<_ACEOF 37284#define HAVE_LIBGCOV 1 37285_ACEOF 37286 37287 LIBS="-lgcov $LIBS" 37288 37289fi 37290 37291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 37292$as_echo_n "checking for __gcov_init in -lgcov... " >&6; } 37293if ${ac_cv_lib_gcov___gcov_init+:} false; then : 37294 $as_echo_n "(cached) " >&6 37295else 37296 ac_check_lib_save_LIBS=$LIBS 37297LIBS="-lgcov $LIBS" 37298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37299/* end confdefs.h. */ 37300 37301/* Override any GCC internal prototype to avoid an error. 37302 Use char because int might match the return type of a GCC 37303 builtin and then its argument prototype would still apply. */ 37304#ifdef __cplusplus 37305extern "C" 37306#endif 37307char __gcov_init (); 37308int 37309main () 37310{ 37311return __gcov_init (); 37312 ; 37313 return 0; 37314} 37315_ACEOF 37316if ac_fn_c_try_link "$LINENO"; then : 37317 ac_cv_lib_gcov___gcov_init=yes 37318else 37319 ac_cv_lib_gcov___gcov_init=no 37320fi 37321rm -f core conftest.err conftest.$ac_objext \ 37322 conftest$ac_exeext conftest.$ac_ext 37323LIBS=$ac_check_lib_save_LIBS 37324fi 37325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 37326$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } 37327if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : 37328 cat >>confdefs.h <<_ACEOF 37329#define HAVE_LIBGCOV 1 37330_ACEOF 37331 37332 LIBS="-lgcov $LIBS" 37333 37334fi 37335 37336 case "$target_os" in 37337 darwin*) 37338 OSX_GCOV_LDFLAG="-Wl,-single_module" 37339 ;; 37340 *) 37341 OSX_GCOV_LDFLAG="" 37342 ;; 37343 esac 37344 37345 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 37346 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 37347 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 37348fi 37349 37350# 37351# Build library dependency list for libMagickCore 37352# 37353 37354if test "$build_modules" != 'no'; then 37355 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS" 37356else 37357 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS" 37358fi 37359 37360 37361# Pass only user-provided LIBS as "global" libraries 37362LIBS=$USER_LIBS 37363 37364#AC_SUBST(CPPFLAGS) 37365 37366#AC_SUBST(LDFLAGS) 37367#AC_SUBST(X_PRE_LIBS) 37368#AC_SUBST(X_LIBS) 37369#AC_SUBST(X_EXTRA_LIBS) 37370 37371MAGICK_CFLAGS=$CFLAGS 37372MAGICK_CXXFLAGS="$CXXFLAGS" 37373MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 37374MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 37375MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 37376MAGICK_LIBS="$MAGICK_DEP_LIBS" 37377 37378 37379 37380 37381 37382 37383 37384 37385# Set configured scripts to executable. 37386ac_config_commands="$ac_config_commands default" 37387 37388ac_config_commands="$ac_config_commands magick.sh.in" 37389 37390ac_config_commands="$ac_config_commands MagickCore-config.in" 37391 37392ac_config_commands="$ac_config_commands MagickWand-config.in" 37393 37394ac_config_commands="$ac_config_commands Magick++-config.in" 37395 37396ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" 37397 37398 37399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 37400$as_echo "-------------------------------------------------------------" >&6; } 37401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 37402$as_echo "Update ImageMagick configuration" >&6; } 37403 37404rm -f magick-version 37405 37406result_dejavu_font_dir='none' 37407if test "${dejavu_font_dir}x" != 'x'; then 37408 result_dejavu_font_dir=$dejavu_font_dir 37409fi 37410 37411result_ghostscript_font_dir='none' 37412if test "${ghostscript_font_dir}x" != 'x'; then 37413 result_ghostscript_font_dir=$ghostscript_font_dir 37414fi 37415 37416result_windows_font_dir='none' 37417if test "${windows_font_dir}x" != 'x'; then 37418 result_windows_font_dir=${windows_font_dir} 37419fi 37420 37421# ============================================================================== 37422# Generate build environment 37423# ============================================================================== 37424ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" 37425 37426cat >confcache <<\_ACEOF 37427# This file is a shell script that caches the results of configure 37428# tests run on this system so they can be shared between configure 37429# scripts and configure runs, see configure's option --config-cache. 37430# It is not useful on other systems. If it contains results you don't 37431# want to keep, you may remove or edit it. 37432# 37433# config.status only pays attention to the cache file if you give it 37434# the --recheck option to rerun configure. 37435# 37436# `ac_cv_env_foo' variables (set or unset) will be overridden when 37437# loading this file, other *unset* `ac_cv_foo' will be assigned the 37438# following values. 37439 37440_ACEOF 37441 37442# The following way of writing the cache mishandles newlines in values, 37443# but we know of no workaround that is simple, portable, and efficient. 37444# So, we kill variables containing newlines. 37445# Ultrix sh set writes to stderr and can't be redirected directly, 37446# and sets the high bit in the cache file unless we assign to the vars. 37447( 37448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37449 eval ac_val=\$$ac_var 37450 case $ac_val in #( 37451 *${as_nl}*) 37452 case $ac_var in #( 37453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37454$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37455 esac 37456 case $ac_var in #( 37457 _ | IFS | as_nl) ;; #( 37458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37459 *) { eval $ac_var=; unset $ac_var;} ;; 37460 esac ;; 37461 esac 37462 done 37463 37464 (set) 2>&1 | 37465 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37466 *${as_nl}ac_space=\ *) 37467 # `set' does not quote correctly, so add quotes: double-quote 37468 # substitution turns \\\\ into \\, and sed turns \\ into \. 37469 sed -n \ 37470 "s/'/'\\\\''/g; 37471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37472 ;; #( 37473 *) 37474 # `set' quotes correctly as required by POSIX, so do not add quotes. 37475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37476 ;; 37477 esac | 37478 sort 37479) | 37480 sed ' 37481 /^ac_cv_env_/b end 37482 t clear 37483 :clear 37484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37485 t end 37486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37487 :end' >>confcache 37488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37489 if test -w "$cache_file"; then 37490 if test "x$cache_file" != "x/dev/null"; then 37491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37492$as_echo "$as_me: updating cache $cache_file" >&6;} 37493 if test ! -f "$cache_file" || test -h "$cache_file"; then 37494 cat confcache >"$cache_file" 37495 else 37496 case $cache_file in #( 37497 */* | ?:*) 37498 mv -f confcache "$cache_file"$$ && 37499 mv -f "$cache_file"$$ "$cache_file" ;; #( 37500 *) 37501 mv -f confcache "$cache_file" ;; 37502 esac 37503 fi 37504 fi 37505 else 37506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37507$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37508 fi 37509fi 37510rm -f confcache 37511 37512test "x$prefix" = xNONE && prefix=$ac_default_prefix 37513# Let make expand exec_prefix. 37514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37515 37516DEFS=-DHAVE_CONFIG_H 37517 37518ac_libobjs= 37519ac_ltlibobjs= 37520U= 37521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37522 # 1. Remove the extension, and $U if already installed. 37523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37526 # will be set to the directory where LIBOBJS objects are built. 37527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37529done 37530LIBOBJS=$ac_libobjs 37531 37532LTLIBOBJS=$ac_ltlibobjs 37533 37534 37535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37536$as_echo_n "checking that generated files are newer than configure... " >&6; } 37537 if test -n "$am_sleep_pid"; then 37538 # Hide warnings about reused PIDs. 37539 wait $am_sleep_pid 2>/dev/null 37540 fi 37541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37542$as_echo "done" >&6; } 37543 if test -n "$EXEEXT"; then 37544 am__EXEEXT_TRUE= 37545 am__EXEEXT_FALSE='#' 37546else 37547 am__EXEEXT_TRUE='#' 37548 am__EXEEXT_FALSE= 37549fi 37550 37551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37552$as_echo_n "checking that generated files are newer than configure... " >&6; } 37553 if test -n "$am_sleep_pid"; then 37554 # Hide warnings about reused PIDs. 37555 wait $am_sleep_pid 2>/dev/null 37556 fi 37557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37558$as_echo "done" >&6; } 37559if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37560 as_fn_error $? "conditional \"AMDEP\" was never defined. 37561Usually this means the macro was only invoked conditionally." "$LINENO" 5 37562fi 37563if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37564 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37565Usually this means the macro was only invoked conditionally." "$LINENO" 5 37566fi 37567if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37568 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37569Usually this means the macro was only invoked conditionally." "$LINENO" 5 37570fi 37571if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37572 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37573Usually this means the macro was only invoked conditionally." "$LINENO" 5 37574fi 37575if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 37576 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 37577Usually this means the macro was only invoked conditionally." "$LINENO" 5 37578fi 37579if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then 37580 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. 37581Usually this means the macro was only invoked conditionally." "$LINENO" 5 37582fi 37583if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then 37584 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. 37585Usually this means the macro was only invoked conditionally." "$LINENO" 5 37586fi 37587if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then 37588 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. 37589Usually this means the macro was only invoked conditionally." "$LINENO" 5 37590fi 37591if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then 37592 as_fn_error $? "conditional \"USING_CL\" was never defined. 37593Usually this means the macro was only invoked conditionally." "$LINENO" 5 37594fi 37595if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then 37596 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. 37597Usually this means the macro was only invoked conditionally." "$LINENO" 5 37598fi 37599if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then 37600 as_fn_error $? "conditional \"WITH_MODULES\" was never defined. 37601Usually this means the macro was only invoked conditionally." "$LINENO" 5 37602fi 37603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 37604 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 37605Usually this means the macro was only invoked conditionally." "$LINENO" 5 37606fi 37607if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then 37608 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. 37609Usually this means the macro was only invoked conditionally." "$LINENO" 5 37610fi 37611 37612if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37613 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37614Usually this means the macro was only invoked conditionally." "$LINENO" 5 37615fi 37616if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then 37617 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. 37618Usually this means the macro was only invoked conditionally." "$LINENO" 5 37619fi 37620if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then 37621 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined. 37622Usually this means the macro was only invoked conditionally." "$LINENO" 5 37623fi 37624if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then 37625 as_fn_error $? "conditional \"HasUMEM\" was never defined. 37626Usually this means the macro was only invoked conditionally." "$LINENO" 5 37627fi 37628if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then 37629 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. 37630Usually this means the macro was only invoked conditionally." "$LINENO" 5 37631fi 37632if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then 37633 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. 37634Usually this means the macro was only invoked conditionally." "$LINENO" 5 37635fi 37636if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then 37637 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. 37638Usually this means the macro was only invoked conditionally." "$LINENO" 5 37639fi 37640if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then 37641 as_fn_error $? "conditional \"WITH_LTDL\" was never defined. 37642Usually this means the macro was only invoked conditionally." "$LINENO" 5 37643fi 37644if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then 37645 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. 37646Usually this means the macro was only invoked conditionally." "$LINENO" 5 37647fi 37648if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then 37649 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. 37650Usually this means the macro was only invoked conditionally." "$LINENO" 5 37651fi 37652if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then 37653 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. 37654Usually this means the macro was only invoked conditionally." "$LINENO" 5 37655fi 37656if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then 37657 as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined. 37658Usually this means the macro was only invoked conditionally." "$LINENO" 5 37659fi 37660if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then 37661 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. 37662Usually this means the macro was only invoked conditionally." "$LINENO" 5 37663fi 37664if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then 37665 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. 37666Usually this means the macro was only invoked conditionally." "$LINENO" 5 37667fi 37668if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then 37669 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. 37670Usually this means the macro was only invoked conditionally." "$LINENO" 5 37671fi 37672if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then 37673 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. 37674Usually this means the macro was only invoked conditionally." "$LINENO" 5 37675fi 37676if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then 37677 as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined. 37678Usually this means the macro was only invoked conditionally." "$LINENO" 5 37679fi 37680if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then 37681 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. 37682Usually this means the macro was only invoked conditionally." "$LINENO" 5 37683fi 37684if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then 37685 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. 37686Usually this means the macro was only invoked conditionally." "$LINENO" 5 37687fi 37688if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then 37689 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. 37690Usually this means the macro was only invoked conditionally." "$LINENO" 5 37691fi 37692if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then 37693 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. 37694Usually this means the macro was only invoked conditionally." "$LINENO" 5 37695fi 37696if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then 37697 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. 37698Usually this means the macro was only invoked conditionally." "$LINENO" 5 37699fi 37700if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then 37701 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined. 37702Usually this means the macro was only invoked conditionally." "$LINENO" 5 37703fi 37704if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then 37705 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. 37706Usually this means the macro was only invoked conditionally." "$LINENO" 5 37707fi 37708if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then 37709 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. 37710Usually this means the macro was only invoked conditionally." "$LINENO" 5 37711fi 37712if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then 37713 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. 37714Usually this means the macro was only invoked conditionally." "$LINENO" 5 37715fi 37716if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then 37717 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. 37718Usually this means the macro was only invoked conditionally." "$LINENO" 5 37719fi 37720if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then 37721 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. 37722Usually this means the macro was only invoked conditionally." "$LINENO" 5 37723fi 37724if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then 37725 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. 37726Usually this means the macro was only invoked conditionally." "$LINENO" 5 37727fi 37728if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then 37729 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. 37730Usually this means the macro was only invoked conditionally." "$LINENO" 5 37731fi 37732if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then 37733 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. 37734Usually this means the macro was only invoked conditionally." "$LINENO" 5 37735fi 37736if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then 37737 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. 37738Usually this means the macro was only invoked conditionally." "$LINENO" 5 37739fi 37740if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then 37741 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. 37742Usually this means the macro was only invoked conditionally." "$LINENO" 5 37743fi 37744if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then 37745 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. 37746Usually this means the macro was only invoked conditionally." "$LINENO" 5 37747fi 37748if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then 37749 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. 37750Usually this means the macro was only invoked conditionally." "$LINENO" 5 37751fi 37752if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then 37753 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined. 37754Usually this means the macro was only invoked conditionally." "$LINENO" 5 37755fi 37756if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then 37757 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. 37758Usually this means the macro was only invoked conditionally." "$LINENO" 5 37759fi 37760if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then 37761 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. 37762Usually this means the macro was only invoked conditionally." "$LINENO" 5 37763fi 37764if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then 37765 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. 37766Usually this means the macro was only invoked conditionally." "$LINENO" 5 37767fi 37768if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then 37769 as_fn_error $? "conditional \"WITH_PERL\" was never defined. 37770Usually this means the macro was only invoked conditionally." "$LINENO" 5 37771fi 37772if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then 37773 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. 37774Usually this means the macro was only invoked conditionally." "$LINENO" 5 37775fi 37776if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then 37777 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. 37778Usually this means the macro was only invoked conditionally." "$LINENO" 5 37779fi 37780 37781: "${CONFIG_STATUS=./config.status}" 37782ac_write_fail=0 37783ac_clean_files_save=$ac_clean_files 37784ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37785{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37787as_write_fail=0 37788cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37789#! $SHELL 37790# Generated by $as_me. 37791# Run this file to recreate the current configuration. 37792# Compiler output produced by configure, useful for debugging 37793# configure, is in config.log if it exists. 37794 37795debug=false 37796ac_cs_recheck=false 37797ac_cs_silent=false 37798 37799SHELL=\${CONFIG_SHELL-$SHELL} 37800export SHELL 37801_ASEOF 37802cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37803## -------------------- ## 37804## M4sh Initialization. ## 37805## -------------------- ## 37806 37807# Be more Bourne compatible 37808DUALCASE=1; export DUALCASE # for MKS sh 37809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37810 emulate sh 37811 NULLCMD=: 37812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37813 # is contrary to our usage. Disable this feature. 37814 alias -g '${1+"$@"}'='"$@"' 37815 setopt NO_GLOB_SUBST 37816else 37817 case `(set -o) 2>/dev/null` in #( 37818 *posix*) : 37819 set -o posix ;; #( 37820 *) : 37821 ;; 37822esac 37823fi 37824 37825 37826as_nl=' 37827' 37828export as_nl 37829# Printing a long string crashes Solaris 7 /usr/bin/printf. 37830as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37833# Prefer a ksh shell builtin over an external printf program on Solaris, 37834# but without wasting forks for bash or zsh. 37835if test -z "$BASH_VERSION$ZSH_VERSION" \ 37836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37837 as_echo='print -r --' 37838 as_echo_n='print -rn --' 37839elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37840 as_echo='printf %s\n' 37841 as_echo_n='printf %s' 37842else 37843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37845 as_echo_n='/usr/ucb/echo -n' 37846 else 37847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37848 as_echo_n_body='eval 37849 arg=$1; 37850 case $arg in #( 37851 *"$as_nl"*) 37852 expr "X$arg" : "X\\(.*\\)$as_nl"; 37853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37854 esac; 37855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37856 ' 37857 export as_echo_n_body 37858 as_echo_n='sh -c $as_echo_n_body as_echo' 37859 fi 37860 export as_echo_body 37861 as_echo='sh -c $as_echo_body as_echo' 37862fi 37863 37864# The user is always right. 37865if test "${PATH_SEPARATOR+set}" != set; then 37866 PATH_SEPARATOR=: 37867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 37868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 37869 PATH_SEPARATOR=';' 37870 } 37871fi 37872 37873 37874# IFS 37875# We need space, tab and new line, in precisely that order. Quoting is 37876# there to prevent editors from complaining about space-tab. 37877# (If _AS_PATH_WALK were called with IFS unset, it would disable word 37878# splitting by setting IFS to empty value.) 37879IFS=" "" $as_nl" 37880 37881# Find who we are. Look in the path if we contain no directory separator. 37882as_myself= 37883case $0 in #(( 37884 *[\\/]* ) as_myself=$0 ;; 37885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37886for as_dir in $PATH 37887do 37888 IFS=$as_save_IFS 37889 test -z "$as_dir" && as_dir=. 37890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37891 done 37892IFS=$as_save_IFS 37893 37894 ;; 37895esac 37896# We did not find ourselves, most probably we were run as `sh COMMAND' 37897# in which case we are not to be found in the path. 37898if test "x$as_myself" = x; then 37899 as_myself=$0 37900fi 37901if test ! -f "$as_myself"; then 37902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37903 exit 1 37904fi 37905 37906# Unset variables that we do not need and which cause bugs (e.g. in 37907# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37908# suppresses any "Segmentation fault" message there. '((' could 37909# trigger a bug in pdksh 5.2.14. 37910for as_var in BASH_ENV ENV MAIL MAILPATH 37911do eval test x\${$as_var+set} = xset \ 37912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37913done 37914PS1='$ ' 37915PS2='> ' 37916PS4='+ ' 37917 37918# NLS nuisances. 37919LC_ALL=C 37920export LC_ALL 37921LANGUAGE=C 37922export LANGUAGE 37923 37924# CDPATH. 37925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37926 37927 37928# as_fn_error STATUS ERROR [LINENO LOG_FD] 37929# ---------------------------------------- 37930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37932# script with STATUS, using 1 if that was 0. 37933as_fn_error () 37934{ 37935 as_status=$1; test $as_status -eq 0 && as_status=1 37936 if test "$4"; then 37937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 37939 fi 37940 $as_echo "$as_me: error: $2" >&2 37941 as_fn_exit $as_status 37942} # as_fn_error 37943 37944 37945# as_fn_set_status STATUS 37946# ----------------------- 37947# Set $? to STATUS, without forking. 37948as_fn_set_status () 37949{ 37950 return $1 37951} # as_fn_set_status 37952 37953# as_fn_exit STATUS 37954# ----------------- 37955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37956as_fn_exit () 37957{ 37958 set +e 37959 as_fn_set_status $1 37960 exit $1 37961} # as_fn_exit 37962 37963# as_fn_unset VAR 37964# --------------- 37965# Portably unset VAR. 37966as_fn_unset () 37967{ 37968 { eval $1=; unset $1;} 37969} 37970as_unset=as_fn_unset 37971# as_fn_append VAR VALUE 37972# ---------------------- 37973# Append the text in VALUE to the end of the definition contained in VAR. Take 37974# advantage of any shell optimizations that allow amortized linear growth over 37975# repeated appends, instead of the typical quadratic growth present in naive 37976# implementations. 37977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37978 eval 'as_fn_append () 37979 { 37980 eval $1+=\$2 37981 }' 37982else 37983 as_fn_append () 37984 { 37985 eval $1=\$$1\$2 37986 } 37987fi # as_fn_append 37988 37989# as_fn_arith ARG... 37990# ------------------ 37991# Perform arithmetic evaluation on the ARGs, and store the result in the 37992# global $as_val. Take advantage of shells that can avoid forks. The arguments 37993# must be portable across $(()) and expr. 37994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37995 eval 'as_fn_arith () 37996 { 37997 as_val=$(( $* )) 37998 }' 37999else 38000 as_fn_arith () 38001 { 38002 as_val=`expr "$@" || test $? -eq 1` 38003 } 38004fi # as_fn_arith 38005 38006 38007if expr a : '\(a\)' >/dev/null 2>&1 && 38008 test "X`expr 00001 : '.*\(...\)'`" = X001; then 38009 as_expr=expr 38010else 38011 as_expr=false 38012fi 38013 38014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 38015 as_basename=basename 38016else 38017 as_basename=false 38018fi 38019 38020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 38021 as_dirname=dirname 38022else 38023 as_dirname=false 38024fi 38025 38026as_me=`$as_basename -- "$0" || 38027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 38028 X"$0" : 'X\(//\)$' \| \ 38029 X"$0" : 'X\(/\)' \| . 2>/dev/null || 38030$as_echo X/"$0" | 38031 sed '/^.*\/\([^/][^/]*\)\/*$/{ 38032 s//\1/ 38033 q 38034 } 38035 /^X\/\(\/\/\)$/{ 38036 s//\1/ 38037 q 38038 } 38039 /^X\/\(\/\).*/{ 38040 s//\1/ 38041 q 38042 } 38043 s/.*/./; q'` 38044 38045# Avoid depending upon Character Ranges. 38046as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38048as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38049as_cr_digits='0123456789' 38050as_cr_alnum=$as_cr_Letters$as_cr_digits 38051 38052ECHO_C= ECHO_N= ECHO_T= 38053case `echo -n x` in #((((( 38054-n*) 38055 case `echo 'xy\c'` in 38056 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 38057 xy) ECHO_C='\c';; 38058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 38059 ECHO_T=' ';; 38060 esac;; 38061*) 38062 ECHO_N='-n';; 38063esac 38064 38065rm -f conf$$ conf$$.exe conf$$.file 38066if test -d conf$$.dir; then 38067 rm -f conf$$.dir/conf$$.file 38068else 38069 rm -f conf$$.dir 38070 mkdir conf$$.dir 2>/dev/null 38071fi 38072if (echo >conf$$.file) 2>/dev/null; then 38073 if ln -s conf$$.file conf$$ 2>/dev/null; then 38074 as_ln_s='ln -s' 38075 # ... but there are two gotchas: 38076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 38077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 38078 # In both cases, we have to default to `cp -pR'. 38079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 38080 as_ln_s='cp -pR' 38081 elif ln conf$$.file conf$$ 2>/dev/null; then 38082 as_ln_s=ln 38083 else 38084 as_ln_s='cp -pR' 38085 fi 38086else 38087 as_ln_s='cp -pR' 38088fi 38089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 38090rmdir conf$$.dir 2>/dev/null 38091 38092 38093# as_fn_mkdir_p 38094# ------------- 38095# Create "$as_dir" as a directory, including parents if necessary. 38096as_fn_mkdir_p () 38097{ 38098 38099 case $as_dir in #( 38100 -*) as_dir=./$as_dir;; 38101 esac 38102 test -d "$as_dir" || eval $as_mkdir_p || { 38103 as_dirs= 38104 while :; do 38105 case $as_dir in #( 38106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 38107 *) as_qdir=$as_dir;; 38108 esac 38109 as_dirs="'$as_qdir' $as_dirs" 38110 as_dir=`$as_dirname -- "$as_dir" || 38111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38112 X"$as_dir" : 'X\(//\)[^/]' \| \ 38113 X"$as_dir" : 'X\(//\)$' \| \ 38114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 38115$as_echo X"$as_dir" | 38116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38117 s//\1/ 38118 q 38119 } 38120 /^X\(\/\/\)[^/].*/{ 38121 s//\1/ 38122 q 38123 } 38124 /^X\(\/\/\)$/{ 38125 s//\1/ 38126 q 38127 } 38128 /^X\(\/\).*/{ 38129 s//\1/ 38130 q 38131 } 38132 s/.*/./; q'` 38133 test -d "$as_dir" && break 38134 done 38135 test -z "$as_dirs" || eval "mkdir $as_dirs" 38136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 38137 38138 38139} # as_fn_mkdir_p 38140if mkdir -p . 2>/dev/null; then 38141 as_mkdir_p='mkdir -p "$as_dir"' 38142else 38143 test -d ./-p && rmdir ./-p 38144 as_mkdir_p=false 38145fi 38146 38147 38148# as_fn_executable_p FILE 38149# ----------------------- 38150# Test if FILE is an executable regular file. 38151as_fn_executable_p () 38152{ 38153 test -f "$1" && test -x "$1" 38154} # as_fn_executable_p 38155as_test_x='test -x' 38156as_executable_p=as_fn_executable_p 38157 38158# Sed expression to map a string onto a valid CPP name. 38159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 38160 38161# Sed expression to map a string onto a valid variable name. 38162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 38163 38164 38165exec 6>&1 38166## ----------------------------------- ## 38167## Main body of $CONFIG_STATUS script. ## 38168## ----------------------------------- ## 38169_ASEOF 38170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 38171 38172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38173# Save the log message, to keep $0 and so on meaningful, and to 38174# report actual input values of CONFIG_FILES etc. instead of their 38175# values after options handling. 38176ac_log=" 38177This file was extended by ImageMagick $as_me 7.0.1-9, which was 38178generated by GNU Autoconf 2.69. Invocation command line was 38179 38180 CONFIG_FILES = $CONFIG_FILES 38181 CONFIG_HEADERS = $CONFIG_HEADERS 38182 CONFIG_LINKS = $CONFIG_LINKS 38183 CONFIG_COMMANDS = $CONFIG_COMMANDS 38184 $ $0 $@ 38185 38186on `(hostname || uname -n) 2>/dev/null | sed 1q` 38187" 38188 38189_ACEOF 38190 38191case $ac_config_files in *" 38192"*) set x $ac_config_files; shift; ac_config_files=$*;; 38193esac 38194 38195case $ac_config_headers in *" 38196"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 38197esac 38198 38199 38200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38201# Files that config.status was made for. 38202config_files="$ac_config_files" 38203config_headers="$ac_config_headers" 38204config_commands="$ac_config_commands" 38205 38206_ACEOF 38207 38208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38209ac_cs_usage="\ 38210\`$as_me' instantiates files and other configuration actions 38211from templates according to the current configuration. Unless the files 38212and actions are specified as TAGs, all are instantiated by default. 38213 38214Usage: $0 [OPTION]... [TAG]... 38215 38216 -h, --help print this help, then exit 38217 -V, --version print version number and configuration settings, then exit 38218 --config print configuration, then exit 38219 -q, --quiet, --silent 38220 do not print progress messages 38221 -d, --debug don't remove temporary files 38222 --recheck update $as_me by reconfiguring in the same conditions 38223 --file=FILE[:TEMPLATE] 38224 instantiate the configuration file FILE 38225 --header=FILE[:TEMPLATE] 38226 instantiate the configuration header FILE 38227 38228Configuration files: 38229$config_files 38230 38231Configuration headers: 38232$config_headers 38233 38234Configuration commands: 38235$config_commands 38236 38237Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 38238ImageMagick home page: <http://www.imagemagick.org>." 38239 38240_ACEOF 38241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38242ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 38243ac_cs_version="\\ 38244ImageMagick config.status 7.0.1-9 38245configured by $0, generated by GNU Autoconf 2.69, 38246 with options \\"\$ac_cs_config\\" 38247 38248Copyright (C) 2012 Free Software Foundation, Inc. 38249This config.status script is free software; the Free Software Foundation 38250gives unlimited permission to copy, distribute and modify it." 38251 38252ac_pwd='$ac_pwd' 38253srcdir='$srcdir' 38254INSTALL='$INSTALL' 38255MKDIR_P='$MKDIR_P' 38256AWK='$AWK' 38257test -n "\$AWK" || AWK=awk 38258_ACEOF 38259 38260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38261# The default lists apply if the user does not specify any file. 38262ac_need_defaults=: 38263while test $# != 0 38264do 38265 case $1 in 38266 --*=?*) 38267 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 38269 ac_shift=: 38270 ;; 38271 --*=) 38272 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38273 ac_optarg= 38274 ac_shift=: 38275 ;; 38276 *) 38277 ac_option=$1 38278 ac_optarg=$2 38279 ac_shift=shift 38280 ;; 38281 esac 38282 38283 case $ac_option in 38284 # Handling of the options. 38285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 38286 ac_cs_recheck=: ;; 38287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 38288 $as_echo "$ac_cs_version"; exit ;; 38289 --config | --confi | --conf | --con | --co | --c ) 38290 $as_echo "$ac_cs_config"; exit ;; 38291 --debug | --debu | --deb | --de | --d | -d ) 38292 debug=: ;; 38293 --file | --fil | --fi | --f ) 38294 $ac_shift 38295 case $ac_optarg in 38296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38297 '') as_fn_error $? "missing file argument" ;; 38298 esac 38299 as_fn_append CONFIG_FILES " '$ac_optarg'" 38300 ac_need_defaults=false;; 38301 --header | --heade | --head | --hea ) 38302 $ac_shift 38303 case $ac_optarg in 38304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38305 esac 38306 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 38307 ac_need_defaults=false;; 38308 --he | --h) 38309 # Conflict between --help and --header 38310 as_fn_error $? "ambiguous option: \`$1' 38311Try \`$0 --help' for more information.";; 38312 --help | --hel | -h ) 38313 $as_echo "$ac_cs_usage"; exit ;; 38314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 38315 | -silent | --silent | --silen | --sile | --sil | --si | --s) 38316 ac_cs_silent=: ;; 38317 38318 # This is an error. 38319 -*) as_fn_error $? "unrecognized option: \`$1' 38320Try \`$0 --help' for more information." ;; 38321 38322 *) as_fn_append ac_config_targets " $1" 38323 ac_need_defaults=false ;; 38324 38325 esac 38326 shift 38327done 38328 38329ac_configure_extra_args= 38330 38331if $ac_cs_silent; then 38332 exec 6>/dev/null 38333 ac_configure_extra_args="$ac_configure_extra_args --silent" 38334fi 38335 38336_ACEOF 38337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38338if \$ac_cs_recheck; then 38339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 38340 shift 38341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 38342 CONFIG_SHELL='$SHELL' 38343 export CONFIG_SHELL 38344 exec "\$@" 38345fi 38346 38347_ACEOF 38348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38349exec 5>>config.log 38350{ 38351 echo 38352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 38353## Running $as_me. ## 38354_ASBOX 38355 $as_echo "$ac_log" 38356} >&5 38357 38358_ACEOF 38359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38360# 38361# INIT-COMMANDS 38362# 38363PACKAGE="$PACKAGE" 38364AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 38365 38366 38367# The HP-UX ksh and POSIX shell print the target directory to stdout 38368# if CDPATH is set. 38369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38370 38371sed_quote_subst='$sed_quote_subst' 38372double_quote_subst='$double_quote_subst' 38373delay_variable_subst='$delay_variable_subst' 38374SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38375Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38376GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38377EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38378FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38379SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38380ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38381LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38382macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38383macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38384AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 38385DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38386OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38387enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38388enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38389pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38390enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38391shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 38392PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 38393host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38394host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38395host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38396build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38397build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38398build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38399NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38400LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38401max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38402ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38403exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38404lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38405lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38406lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38407lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38408lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38409reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38410reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38411deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38412file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38413file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38414want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38415sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38416AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38417AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38418archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38419STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38420RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38421old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38422old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38423old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38424lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38425CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38426CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38427compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38428GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38429lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38430lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38431lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 38432lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38433lt_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"`' 38434lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 38435nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38436lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38437lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 38438objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38439MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38440lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38441lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38442lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38443lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38444lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38445need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38446MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38447DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38448NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38449LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38450OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38451OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38452libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38453shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38454extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38455archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38456enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38457export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38458whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38459compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38460old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38461old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38462archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38463archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38464module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38465module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38466with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38467allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38468no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38469hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38470hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38471hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38472hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38473hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38474hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38475hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38476inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38477link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38478always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38479export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38480exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38481include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38482prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38483postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38484file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38485variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38486need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38487need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38488version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38489runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38490shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38491shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38492libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38493library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38494soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38495install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38496postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38497postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38498finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38499finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38500hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38501sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38502configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 38503configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 38504hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38505enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38506enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38507enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38508old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38509striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38510compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 38511predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 38512postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 38513predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 38514postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 38515compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 38516LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 38517reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 38518reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38519old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38520compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 38521GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 38522lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 38523lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 38524lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 38525lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 38526lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 38527archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 38528enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 38529export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38530whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38531compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 38532old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38533old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38534archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38535archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38536module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38537module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38538with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 38539allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38540no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38541hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38542hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 38543hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 38544hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 38545hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 38546hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 38547hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 38548inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 38549link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 38550always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 38551export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38552exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38553include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38554prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38555postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38556file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 38557hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 38558compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 38559predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38560postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38561predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 38562postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 38563compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 38564 38565LTCC='$LTCC' 38566LTCFLAGS='$LTCFLAGS' 38567compiler='$compiler_DEFAULT' 38568 38569# A function that is used when there is no print builtin or printf. 38570func_fallback_echo () 38571{ 38572 eval 'cat <<_LTECHO_EOF 38573\$1 38574_LTECHO_EOF' 38575} 38576 38577# Quote evaled strings. 38578for var in SED \ 38579GREP \ 38580EGREP \ 38581FGREP \ 38582SHELL \ 38583ECHO \ 38584LD \ 38585AS \ 38586DLLTOOL \ 38587OBJDUMP \ 38588PATH_SEPARATOR \ 38589NM \ 38590LN_S \ 38591lt_SP2NL \ 38592lt_NL2SP \ 38593reload_flag \ 38594deplibs_check_method \ 38595file_magic_cmd \ 38596file_magic_glob \ 38597want_nocaseglob \ 38598sharedlib_from_linklib_cmd \ 38599AR \ 38600AR_FLAGS \ 38601archiver_list_spec \ 38602STRIP \ 38603RANLIB \ 38604CC \ 38605CFLAGS \ 38606compiler \ 38607lt_cv_sys_global_symbol_pipe \ 38608lt_cv_sys_global_symbol_to_cdecl \ 38609lt_cv_sys_global_symbol_to_import \ 38610lt_cv_sys_global_symbol_to_c_name_address \ 38611lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38612lt_cv_nm_interface \ 38613nm_file_list_spec \ 38614lt_cv_truncate_bin \ 38615lt_prog_compiler_no_builtin_flag \ 38616lt_prog_compiler_pic \ 38617lt_prog_compiler_wl \ 38618lt_prog_compiler_static \ 38619lt_cv_prog_compiler_c_o \ 38620need_locks \ 38621MANIFEST_TOOL \ 38622DSYMUTIL \ 38623NMEDIT \ 38624LIPO \ 38625OTOOL \ 38626OTOOL64 \ 38627shrext_cmds \ 38628export_dynamic_flag_spec \ 38629whole_archive_flag_spec \ 38630compiler_needs_object \ 38631with_gnu_ld \ 38632allow_undefined_flag \ 38633no_undefined_flag \ 38634hardcode_libdir_flag_spec \ 38635hardcode_libdir_separator \ 38636exclude_expsyms \ 38637include_expsyms \ 38638file_list_spec \ 38639variables_saved_for_relink \ 38640libname_spec \ 38641library_names_spec \ 38642soname_spec \ 38643install_override_mode \ 38644finish_eval \ 38645old_striplib \ 38646striplib \ 38647compiler_lib_search_dirs \ 38648predep_objects \ 38649postdep_objects \ 38650predeps \ 38651postdeps \ 38652compiler_lib_search_path \ 38653LD_CXX \ 38654reload_flag_CXX \ 38655compiler_CXX \ 38656lt_prog_compiler_no_builtin_flag_CXX \ 38657lt_prog_compiler_pic_CXX \ 38658lt_prog_compiler_wl_CXX \ 38659lt_prog_compiler_static_CXX \ 38660lt_cv_prog_compiler_c_o_CXX \ 38661export_dynamic_flag_spec_CXX \ 38662whole_archive_flag_spec_CXX \ 38663compiler_needs_object_CXX \ 38664with_gnu_ld_CXX \ 38665allow_undefined_flag_CXX \ 38666no_undefined_flag_CXX \ 38667hardcode_libdir_flag_spec_CXX \ 38668hardcode_libdir_separator_CXX \ 38669exclude_expsyms_CXX \ 38670include_expsyms_CXX \ 38671file_list_spec_CXX \ 38672compiler_lib_search_dirs_CXX \ 38673predep_objects_CXX \ 38674postdep_objects_CXX \ 38675predeps_CXX \ 38676postdeps_CXX \ 38677compiler_lib_search_path_CXX; do 38678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38679 *[\\\\\\\`\\"\\\$]*) 38680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38681 ;; 38682 *) 38683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38684 ;; 38685 esac 38686done 38687 38688# Double-quote double-evaled strings. 38689for var in reload_cmds \ 38690old_postinstall_cmds \ 38691old_postuninstall_cmds \ 38692old_archive_cmds \ 38693extract_expsyms_cmds \ 38694old_archive_from_new_cmds \ 38695old_archive_from_expsyms_cmds \ 38696archive_cmds \ 38697archive_expsym_cmds \ 38698module_cmds \ 38699module_expsym_cmds \ 38700export_symbols_cmds \ 38701prelink_cmds \ 38702postlink_cmds \ 38703postinstall_cmds \ 38704postuninstall_cmds \ 38705finish_cmds \ 38706sys_lib_search_path_spec \ 38707configure_time_dlsearch_path \ 38708configure_time_lt_sys_library_path \ 38709reload_cmds_CXX \ 38710old_archive_cmds_CXX \ 38711old_archive_from_new_cmds_CXX \ 38712old_archive_from_expsyms_cmds_CXX \ 38713archive_cmds_CXX \ 38714archive_expsym_cmds_CXX \ 38715module_cmds_CXX \ 38716module_expsym_cmds_CXX \ 38717export_symbols_cmds_CXX \ 38718prelink_cmds_CXX \ 38719postlink_cmds_CXX; do 38720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38721 *[\\\\\\\`\\"\\\$]*) 38722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38723 ;; 38724 *) 38725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38726 ;; 38727 esac 38728done 38729 38730ac_aux_dir='$ac_aux_dir' 38731 38732# See if we are running on zsh, and set the options that allow our 38733# commands through without removal of \ escapes INIT. 38734if test -n "\${ZSH_VERSION+set}"; then 38735 setopt NO_GLOB_SUBST 38736fi 38737 38738 38739 PACKAGE='$PACKAGE' 38740 VERSION='$VERSION' 38741 RM='$RM' 38742 ofile='$ofile' 38743 38744 38745 38746 38747 38748 38749_ACEOF 38750 38751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38752 38753# Handling of arguments. 38754for ac_config_target in $ac_config_targets 38755do 38756 case $ac_config_target in 38757 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 38758 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; 38759 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38760 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38761 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 38762 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; 38763 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; 38764 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; 38765 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; 38766 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; 38767 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; 38768 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; 38769 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; 38770 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; 38771 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; 38772 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; 38773 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; 38774 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;; 38775 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; 38776 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; 38777 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; 38778 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; 38779 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; 38780 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; 38781 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; 38782 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; 38783 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; 38784 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; 38785 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; 38786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38787 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; 38788 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; 38789 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;; 38790 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; 38791 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;; 38792 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;; 38793 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;; 38794 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;; 38795 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;; 38796 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; 38797 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; 38798 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; 38799 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; 38800 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; 38801 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; 38802 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; 38803 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; 38804 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; 38805 "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;; 38806 "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;; 38807 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; 38808 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; 38809 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; 38810 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; 38811 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; 38812 38813 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38814 esac 38815done 38816 38817 38818# If the user did not use the arguments to specify the items to instantiate, 38819# then the envvar interface is used. Set only those that are not. 38820# We use the long form for the default assignment because of an extremely 38821# bizarre bug on SunOS 4.1.3. 38822if $ac_need_defaults; then 38823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38826fi 38827 38828# Have a temporary directory for convenience. Make it in the build tree 38829# simply because there is no reason against having it here, and in addition, 38830# creating and moving files from /tmp can sometimes cause problems. 38831# Hook for its removal unless debugging. 38832# Note that there is a small window in which the directory will not be cleaned: 38833# after its creation but before its name has been assigned to `$tmp'. 38834$debug || 38835{ 38836 tmp= ac_tmp= 38837 trap 'exit_status=$? 38838 : "${ac_tmp:=$tmp}" 38839 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 38840' 0 38841 trap 'as_fn_exit 1' 1 2 13 15 38842} 38843# Create a (secure) tmp directory for tmp files. 38844 38845{ 38846 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38847 test -d "$tmp" 38848} || 38849{ 38850 tmp=./conf$$-$RANDOM 38851 (umask 077 && mkdir "$tmp") 38852} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 38853ac_tmp=$tmp 38854 38855# Set up the scripts for CONFIG_FILES section. 38856# No need to generate them if there are no CONFIG_FILES. 38857# This happens for instance with `./config.status config.h'. 38858if test -n "$CONFIG_FILES"; then 38859 38860 38861ac_cr=`echo X | tr X '\015'` 38862# On cygwin, bash can eat \r inside `` if the user requested igncr. 38863# But we know of no other shell where ac_cr would be empty at this 38864# point, so we can use a bashism as a fallback. 38865if test "x$ac_cr" = x; then 38866 eval ac_cr=\$\'\\r\' 38867fi 38868ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38869if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38870 ac_cs_awk_cr='\\r' 38871else 38872 ac_cs_awk_cr=$ac_cr 38873fi 38874 38875echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 38876_ACEOF 38877 38878 38879{ 38880 echo "cat >conf$$subs.awk <<_ACEOF" && 38881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38882 echo "_ACEOF" 38883} >conf$$subs.sh || 38884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38885ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 38886ac_delim='%!_!# ' 38887for ac_last_try in false false false false false :; do 38888 . ./conf$$subs.sh || 38889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38890 38891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38892 if test $ac_delim_n = $ac_delim_num; then 38893 break 38894 elif $ac_last_try; then 38895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38896 else 38897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38898 fi 38899done 38900rm -f conf$$subs.sh 38901 38902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38903cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 38904_ACEOF 38905sed -n ' 38906h 38907s/^/S["/; s/!.*/"]=/ 38908p 38909g 38910s/^[^!]*!// 38911:repl 38912t repl 38913s/'"$ac_delim"'$// 38914t delim 38915:nl 38916h 38917s/\(.\{148\}\)..*/\1/ 38918t more1 38919s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38920p 38921n 38922b repl 38923:more1 38924s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38925p 38926g 38927s/.\{148\}// 38928t nl 38929:delim 38930h 38931s/\(.\{148\}\)..*/\1/ 38932t more2 38933s/["\\]/\\&/g; s/^/"/; s/$/"/ 38934p 38935b 38936:more2 38937s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38938p 38939g 38940s/.\{148\}// 38941t delim 38942' <conf$$subs.awk | sed ' 38943/^[^""]/{ 38944 N 38945 s/\n// 38946} 38947' >>$CONFIG_STATUS || ac_write_fail=1 38948rm -f conf$$subs.awk 38949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38950_ACAWK 38951cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 38952 for (key in S) S_is_set[key] = 1 38953 FS = "" 38954 38955} 38956{ 38957 line = $ 0 38958 nfields = split(line, field, "@") 38959 substed = 0 38960 len = length(field[1]) 38961 for (i = 2; i < nfields; i++) { 38962 key = field[i] 38963 keylen = length(key) 38964 if (S_is_set[key]) { 38965 value = S[key] 38966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38967 len += length(value) + length(field[++i]) 38968 substed = 1 38969 } else 38970 len += 1 + keylen 38971 } 38972 38973 print line 38974} 38975 38976_ACAWK 38977_ACEOF 38978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38979if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38980 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38981else 38982 cat 38983fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 38984 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 38985_ACEOF 38986 38987# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 38988# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 38989# trailing colons and then remove the whole line if VPATH becomes empty 38990# (actually we leave an empty line to preserve line numbers). 38991if test "x$srcdir" = x.; then 38992 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38993h 38994s/// 38995s/^/:/ 38996s/[ ]*$/:/ 38997s/:\$(srcdir):/:/g 38998s/:\${srcdir}:/:/g 38999s/:@srcdir@:/:/g 39000s/^:*// 39001s/:*$// 39002x 39003s/\(=[ ]*\).*/\1/ 39004G 39005s/\n// 39006s/^[^=]*=[ ]*$// 39007}' 39008fi 39009 39010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39011fi # test -n "$CONFIG_FILES" 39012 39013# Set up the scripts for CONFIG_HEADERS section. 39014# No need to generate them if there are no CONFIG_HEADERS. 39015# This happens for instance with `./config.status Makefile'. 39016if test -n "$CONFIG_HEADERS"; then 39017cat >"$ac_tmp/defines.awk" <<\_ACAWK || 39018BEGIN { 39019_ACEOF 39020 39021# Transform confdefs.h into an awk script `defines.awk', embedded as 39022# here-document in config.status, that substitutes the proper values into 39023# config.h.in to produce config.h. 39024 39025# Create a delimiter string that does not exist in confdefs.h, to ease 39026# handling of long lines. 39027ac_delim='%!_!# ' 39028for ac_last_try in false false :; do 39029 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 39030 if test -z "$ac_tt"; then 39031 break 39032 elif $ac_last_try; then 39033 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 39034 else 39035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 39036 fi 39037done 39038 39039# For the awk script, D is an array of macro values keyed by name, 39040# likewise P contains macro parameters if any. Preserve backslash 39041# newline sequences. 39042 39043ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 39044sed -n ' 39045s/.\{148\}/&'"$ac_delim"'/g 39046t rset 39047:rset 39048s/^[ ]*#[ ]*define[ ][ ]*/ / 39049t def 39050d 39051:def 39052s/\\$// 39053t bsnl 39054s/["\\]/\\&/g 39055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39056D["\1"]=" \3"/p 39057s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 39058d 39059:bsnl 39060s/["\\]/\\&/g 39061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39062D["\1"]=" \3\\\\\\n"\\/p 39063t cont 39064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 39065t cont 39066d 39067:cont 39068n 39069s/.\{148\}/&'"$ac_delim"'/g 39070t clear 39071:clear 39072s/\\$// 39073t bsnlc 39074s/["\\]/\\&/g; s/^/"/; s/$/"/p 39075d 39076:bsnlc 39077s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 39078b cont 39079' <confdefs.h | sed ' 39080s/'"$ac_delim"'/"\\\ 39081"/g' >>$CONFIG_STATUS || ac_write_fail=1 39082 39083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39084 for (key in D) D_is_set[key] = 1 39085 FS = "" 39086} 39087/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 39088 line = \$ 0 39089 split(line, arg, " ") 39090 if (arg[1] == "#") { 39091 defundef = arg[2] 39092 mac1 = arg[3] 39093 } else { 39094 defundef = substr(arg[1], 2) 39095 mac1 = arg[2] 39096 } 39097 split(mac1, mac2, "(") #) 39098 macro = mac2[1] 39099 prefix = substr(line, 1, index(line, defundef) - 1) 39100 if (D_is_set[macro]) { 39101 # Preserve the white space surrounding the "#". 39102 print prefix "define", macro P[macro] D[macro] 39103 next 39104 } else { 39105 # Replace #undef with comments. This is necessary, for example, 39106 # in the case of _POSIX_SOURCE, which is predefined and required 39107 # on some systems where configure will not decide to define it. 39108 if (defundef == "undef") { 39109 print "/*", prefix defundef, macro, "*/" 39110 next 39111 } 39112 } 39113} 39114{ print } 39115_ACAWK 39116_ACEOF 39117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39118 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 39119fi # test -n "$CONFIG_HEADERS" 39120 39121 39122eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 39123shift 39124for ac_tag 39125do 39126 case $ac_tag in 39127 :[FHLC]) ac_mode=$ac_tag; continue;; 39128 esac 39129 case $ac_mode$ac_tag in 39130 :[FHL]*:*);; 39131 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 39132 :[FH]-) ac_tag=-:-;; 39133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 39134 esac 39135 ac_save_IFS=$IFS 39136 IFS=: 39137 set x $ac_tag 39138 IFS=$ac_save_IFS 39139 shift 39140 ac_file=$1 39141 shift 39142 39143 case $ac_mode in 39144 :L) ac_source=$1;; 39145 :[FH]) 39146 ac_file_inputs= 39147 for ac_f 39148 do 39149 case $ac_f in 39150 -) ac_f="$ac_tmp/stdin";; 39151 *) # Look for the file first in the build tree, then in the source tree 39152 # (if the path is not absolute). The absolute path cannot be DOS-style, 39153 # because $ac_f cannot contain `:'. 39154 test -f "$ac_f" || 39155 case $ac_f in 39156 [\\/$]*) false;; 39157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 39158 esac || 39159 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 39160 esac 39161 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 39162 as_fn_append ac_file_inputs " '$ac_f'" 39163 done 39164 39165 # Let's still pretend it is `configure' which instantiates (i.e., don't 39166 # use $as_me), people would be surprised to read: 39167 # /* config.h. Generated by config.status. */ 39168 configure_input='Generated from '` 39169 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 39170 `' by configure.' 39171 if test x"$ac_file" != x-; then 39172 configure_input="$ac_file. $configure_input" 39173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 39174$as_echo "$as_me: creating $ac_file" >&6;} 39175 fi 39176 # Neutralize special characters interpreted by sed in replacement strings. 39177 case $configure_input in #( 39178 *\&* | *\|* | *\\* ) 39179 ac_sed_conf_input=`$as_echo "$configure_input" | 39180 sed 's/[\\\\&|]/\\\\&/g'`;; #( 39181 *) ac_sed_conf_input=$configure_input;; 39182 esac 39183 39184 case $ac_tag in 39185 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 39186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 39187 esac 39188 ;; 39189 esac 39190 39191 ac_dir=`$as_dirname -- "$ac_file" || 39192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39193 X"$ac_file" : 'X\(//\)[^/]' \| \ 39194 X"$ac_file" : 'X\(//\)$' \| \ 39195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 39196$as_echo X"$ac_file" | 39197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39198 s//\1/ 39199 q 39200 } 39201 /^X\(\/\/\)[^/].*/{ 39202 s//\1/ 39203 q 39204 } 39205 /^X\(\/\/\)$/{ 39206 s//\1/ 39207 q 39208 } 39209 /^X\(\/\).*/{ 39210 s//\1/ 39211 q 39212 } 39213 s/.*/./; q'` 39214 as_dir="$ac_dir"; as_fn_mkdir_p 39215 ac_builddir=. 39216 39217case "$ac_dir" in 39218.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39219*) 39220 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39221 # A ".." for each directory in $ac_dir_suffix. 39222 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39223 case $ac_top_builddir_sub in 39224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39226 esac ;; 39227esac 39228ac_abs_top_builddir=$ac_pwd 39229ac_abs_builddir=$ac_pwd$ac_dir_suffix 39230# for backward compatibility: 39231ac_top_builddir=$ac_top_build_prefix 39232 39233case $srcdir in 39234 .) # We are building in place. 39235 ac_srcdir=. 39236 ac_top_srcdir=$ac_top_builddir_sub 39237 ac_abs_top_srcdir=$ac_pwd ;; 39238 [\\/]* | ?:[\\/]* ) # Absolute name. 39239 ac_srcdir=$srcdir$ac_dir_suffix; 39240 ac_top_srcdir=$srcdir 39241 ac_abs_top_srcdir=$srcdir ;; 39242 *) # Relative name. 39243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39244 ac_top_srcdir=$ac_top_build_prefix$srcdir 39245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39246esac 39247ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39248 39249 39250 case $ac_mode in 39251 :F) 39252 # 39253 # CONFIG_FILE 39254 # 39255 39256 case $INSTALL in 39257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 39258 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 39259 esac 39260 ac_MKDIR_P=$MKDIR_P 39261 case $MKDIR_P in 39262 [\\/$]* | ?:[\\/]* ) ;; 39263 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 39264 esac 39265_ACEOF 39266 39267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39268# If the template does not know about datarootdir, expand it. 39269# FIXME: This hack should be removed a few years after 2.60. 39270ac_datarootdir_hack=; ac_datarootdir_seen= 39271ac_sed_dataroot=' 39272/datarootdir/ { 39273 p 39274 q 39275} 39276/@datadir@/p 39277/@docdir@/p 39278/@infodir@/p 39279/@localedir@/p 39280/@mandir@/p' 39281case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 39282*datarootdir*) ac_datarootdir_seen=yes;; 39283*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 39284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 39285$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 39286_ACEOF 39287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39288 ac_datarootdir_hack=' 39289 s&@datadir@&$datadir&g 39290 s&@docdir@&$docdir&g 39291 s&@infodir@&$infodir&g 39292 s&@localedir@&$localedir&g 39293 s&@mandir@&$mandir&g 39294 s&\\\${datarootdir}&$datarootdir&g' ;; 39295esac 39296_ACEOF 39297 39298# Neutralize VPATH when `$srcdir' = `.'. 39299# Shell code in configure.ac might set extrasub. 39300# FIXME: do we really want to maintain this feature? 39301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39302ac_sed_extra="$ac_vpsub 39303$extrasub 39304_ACEOF 39305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39306:t 39307/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 39308s|@configure_input@|$ac_sed_conf_input|;t t 39309s&@top_builddir@&$ac_top_builddir_sub&;t t 39310s&@top_build_prefix@&$ac_top_build_prefix&;t t 39311s&@srcdir@&$ac_srcdir&;t t 39312s&@abs_srcdir@&$ac_abs_srcdir&;t t 39313s&@top_srcdir@&$ac_top_srcdir&;t t 39314s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 39315s&@builddir@&$ac_builddir&;t t 39316s&@abs_builddir@&$ac_abs_builddir&;t t 39317s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 39318s&@INSTALL@&$ac_INSTALL&;t t 39319s&@MKDIR_P@&$ac_MKDIR_P&;t t 39320$ac_datarootdir_hack 39321" 39322eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 39323 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39324 39325test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 39326 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 39327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 39328 "$ac_tmp/out"`; test -z "$ac_out"; } && 39329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39330which seems to be undefined. Please make sure it is defined" >&5 39331$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39332which seems to be undefined. Please make sure it is defined" >&2;} 39333 39334 rm -f "$ac_tmp/stdin" 39335 case $ac_file in 39336 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 39337 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 39338 esac \ 39339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39340 ;; 39341 :H) 39342 # 39343 # CONFIG_HEADER 39344 # 39345 if test x"$ac_file" != x-; then 39346 { 39347 $as_echo "/* $configure_input */" \ 39348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 39349 } >"$ac_tmp/config.h" \ 39350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 39352 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 39353$as_echo "$as_me: $ac_file is unchanged" >&6;} 39354 else 39355 rm -f "$ac_file" 39356 mv "$ac_tmp/config.h" "$ac_file" \ 39357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39358 fi 39359 else 39360 $as_echo "/* $configure_input */" \ 39361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 39362 || as_fn_error $? "could not create -" "$LINENO" 5 39363 fi 39364# Compute "$ac_file"'s index in $config_headers. 39365_am_arg="$ac_file" 39366_am_stamp_count=1 39367for _am_header in $config_headers :; do 39368 case $_am_header in 39369 $_am_arg | $_am_arg:* ) 39370 break ;; 39371 * ) 39372 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 39373 esac 39374done 39375echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 39376$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39377 X"$_am_arg" : 'X\(//\)[^/]' \| \ 39378 X"$_am_arg" : 'X\(//\)$' \| \ 39379 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 39380$as_echo X"$_am_arg" | 39381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39382 s//\1/ 39383 q 39384 } 39385 /^X\(\/\/\)[^/].*/{ 39386 s//\1/ 39387 q 39388 } 39389 /^X\(\/\/\)$/{ 39390 s//\1/ 39391 q 39392 } 39393 /^X\(\/\).*/{ 39394 s//\1/ 39395 q 39396 } 39397 s/.*/./; q'`/stamp-h$_am_stamp_count 39398 ;; 39399 39400 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 39401$as_echo "$as_me: executing $ac_file commands" >&6;} 39402 ;; 39403 esac 39404 39405 39406 case $ac_file$ac_mode in 39407 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` 39408ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 39409ac_prefix_conf_PKG=`echo MagickCore` 39410ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 39411ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 39412ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 39413if test ".$ac_prefix_conf_INP" = "."; then 39414 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 39415 case "$ac_file" in 39416 *.h) ac_prefix_conf_INP=$ac_file ;; 39417 *) 39418 esac 39419 test ".$ac_prefix_conf_INP" != "." && break 39420 done 39421fi 39422if test ".$ac_prefix_conf_INP" = "."; then 39423 case "$ac_prefix_conf_OUT" in 39424 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 39425 ;; 39426 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 39427 ;; 39428 *) ac_prefix_conf_INP=config.h 39429 ;; 39430 esac 39431fi 39432if test -z "$ac_prefix_conf_PKG" ; then 39433 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 39434else 39435 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 39436 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 39437 fi fi 39438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 39439$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 39440 if test -f $ac_prefix_conf_INP ; then 39441 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 39442 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 39443 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 39444 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 39445 $as_echo "#endif/" >> conftest.prefix 39446 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 39447 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 39448 $as_echo "#endif/" >> conftest.prefix 39449 # now executing _script on _DEF input to create _OUT output file 39450 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 39451 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 39452 echo ' ' >>$tmp/pconfig.h 39453 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 39454 39455 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 39456 echo ' ' >>$tmp/pconfig.h 39457 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 39458 echo "#endif" >>$tmp/pconfig.h 39459 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 39460 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 39461$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 39462 else 39463 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 39464$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39465 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 39466 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 39467 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 39468$as_echo X"$ac_prefix_conf_OUT" | 39469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39470 s//\1/ 39471 q 39472 } 39473 /^X\(\/\/\)[^/].*/{ 39474 s//\1/ 39475 q 39476 } 39477 /^X\(\/\/\)$/{ 39478 s//\1/ 39479 q 39480 } 39481 /^X\(\/\).*/{ 39482 s//\1/ 39483 q 39484 } 39485 s/.*/./; q'` 39486 as_dir="$ac_dir"; as_fn_mkdir_p 39487 rm -f "$ac_prefix_conf_OUT" 39488 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 39489 fi 39490 else 39491 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 39492 fi 39493 rm -f conftest.* 39494fi 39495 ;; 39496 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 39497 # Older Autoconf quotes --file arguments for eval, but not when files 39498 # are listed without --file. Let's play safe and only enable the eval 39499 # if we detect the quoting. 39500 case $CONFIG_FILES in 39501 *\'*) eval set x "$CONFIG_FILES" ;; 39502 *) set x $CONFIG_FILES ;; 39503 esac 39504 shift 39505 for mf 39506 do 39507 # Strip MF so we end up with the name of the file. 39508 mf=`echo "$mf" | sed -e 's/:.*$//'` 39509 # Check whether this is an Automake generated Makefile or not. 39510 # We used to match only the files named 'Makefile.in', but 39511 # some people rename them; so instead we look at the file content. 39512 # Grep'ing the first line is not enough: some people post-process 39513 # each Makefile.in and add a new line on top of each file to say so. 39514 # Grep'ing the whole file is not good either: AIX grep has a line 39515 # limit of 2048, but all sed's we know have understand at least 4000. 39516 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 39517 dirpart=`$as_dirname -- "$mf" || 39518$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39519 X"$mf" : 'X\(//\)[^/]' \| \ 39520 X"$mf" : 'X\(//\)$' \| \ 39521 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 39522$as_echo X"$mf" | 39523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39524 s//\1/ 39525 q 39526 } 39527 /^X\(\/\/\)[^/].*/{ 39528 s//\1/ 39529 q 39530 } 39531 /^X\(\/\/\)$/{ 39532 s//\1/ 39533 q 39534 } 39535 /^X\(\/\).*/{ 39536 s//\1/ 39537 q 39538 } 39539 s/.*/./; q'` 39540 else 39541 continue 39542 fi 39543 # Extract the definition of DEPDIR, am__include, and am__quote 39544 # from the Makefile without running 'make'. 39545 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 39546 test -z "$DEPDIR" && continue 39547 am__include=`sed -n 's/^am__include = //p' < "$mf"` 39548 test -z "$am__include" && continue 39549 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 39550 # Find all dependency output files, they are included files with 39551 # $(DEPDIR) in their names. We invoke sed twice because it is the 39552 # simplest approach to changing $(DEPDIR) to its actual value in the 39553 # expansion. 39554 for file in `sed -n " 39555 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 39556 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 39557 # Make sure the directory exists. 39558 test -f "$dirpart/$file" && continue 39559 fdir=`$as_dirname -- "$file" || 39560$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39561 X"$file" : 'X\(//\)[^/]' \| \ 39562 X"$file" : 'X\(//\)$' \| \ 39563 X"$file" : 'X\(/\)' \| . 2>/dev/null || 39564$as_echo X"$file" | 39565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39566 s//\1/ 39567 q 39568 } 39569 /^X\(\/\/\)[^/].*/{ 39570 s//\1/ 39571 q 39572 } 39573 /^X\(\/\/\)$/{ 39574 s//\1/ 39575 q 39576 } 39577 /^X\(\/\).*/{ 39578 s//\1/ 39579 q 39580 } 39581 s/.*/./; q'` 39582 as_dir=$dirpart/$fdir; as_fn_mkdir_p 39583 # echo "creating $dirpart/$file" 39584 echo '# dummy' > "$dirpart/$file" 39585 done 39586 done 39587} 39588 ;; 39589 "libtool":C) 39590 39591 # See if we are running on zsh, and set the options that allow our 39592 # commands through without removal of \ escapes. 39593 if test -n "${ZSH_VERSION+set}"; then 39594 setopt NO_GLOB_SUBST 39595 fi 39596 39597 cfgfile=${ofile}T 39598 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 39599 $RM "$cfgfile" 39600 39601 cat <<_LT_EOF >> "$cfgfile" 39602#! $SHELL 39603# Generated automatically by $as_me ($PACKAGE) $VERSION 39604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39605# NOTE: Changes made to this file will be lost: look at ltmain.sh. 39606 39607# Provide generalized library-building support services. 39608# Written by Gordon Matzigkeit, 1996 39609 39610# Copyright (C) 2014 Free Software Foundation, Inc. 39611# This is free software; see the source for copying conditions. There is NO 39612# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 39613 39614# GNU Libtool is free software; you can redistribute it and/or modify 39615# it under the terms of the GNU General Public License as published by 39616# the Free Software Foundation; either version 2 of of the License, or 39617# (at your option) any later version. 39618# 39619# As a special exception to the GNU General Public License, if you 39620# distribute this file as part of a program or library that is built 39621# using GNU Libtool, you may include this file under the same 39622# distribution terms that you use for the rest of that program. 39623# 39624# GNU Libtool is distributed in the hope that it will be useful, but 39625# WITHOUT ANY WARRANTY; without even the implied warranty of 39626# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39627# GNU General Public License for more details. 39628# 39629# You should have received a copy of the GNU General Public License 39630# along with this program. If not, see <http://www.gnu.org/licenses/>. 39631 39632 39633# The names of the tagged configurations supported by this script. 39634available_tags='CXX ' 39635 39636# Configured defaults for sys_lib_dlsearch_path munging. 39637: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 39638 39639# ### BEGIN LIBTOOL CONFIG 39640 39641# A sed program that does not truncate output. 39642SED=$lt_SED 39643 39644# Sed that helps us avoid accidentally triggering echo(1) options like -n. 39645Xsed="\$SED -e 1s/^X//" 39646 39647# A grep program that handles long lines. 39648GREP=$lt_GREP 39649 39650# An ERE matcher. 39651EGREP=$lt_EGREP 39652 39653# A literal string matcher. 39654FGREP=$lt_FGREP 39655 39656# Shell to use when invoking shell scripts. 39657SHELL=$lt_SHELL 39658 39659# An echo program that protects backslashes. 39660ECHO=$lt_ECHO 39661 39662# Which release of libtool.m4 was used? 39663macro_version=$macro_version 39664macro_revision=$macro_revision 39665 39666# Assembler program. 39667AS=$lt_AS 39668 39669# DLL creation program. 39670DLLTOOL=$lt_DLLTOOL 39671 39672# Object dumper program. 39673OBJDUMP=$lt_OBJDUMP 39674 39675# Whether or not to build shared libraries. 39676build_libtool_libs=$enable_shared 39677 39678# Whether or not to build static libraries. 39679build_old_libs=$enable_static 39680 39681# What type of objects to build. 39682pic_mode=$pic_mode 39683 39684# Whether or not to optimize for fast installation. 39685fast_install=$enable_fast_install 39686 39687# Shared archive member basename,for filename based shared library versioning on AIX. 39688shared_archive_member_spec=$shared_archive_member_spec 39689 39690# The PATH separator for the build system. 39691PATH_SEPARATOR=$lt_PATH_SEPARATOR 39692 39693# The host system. 39694host_alias=$host_alias 39695host=$host 39696host_os=$host_os 39697 39698# The build system. 39699build_alias=$build_alias 39700build=$build 39701build_os=$build_os 39702 39703# A BSD- or MS-compatible name lister. 39704NM=$lt_NM 39705 39706# Whether we need soft or hard links. 39707LN_S=$lt_LN_S 39708 39709# What is the maximum length of a command? 39710max_cmd_len=$max_cmd_len 39711 39712# Object file suffix (normally "o"). 39713objext=$ac_objext 39714 39715# Executable file suffix (normally ""). 39716exeext=$exeext 39717 39718# whether the shell understands "unset". 39719lt_unset=$lt_unset 39720 39721# turn spaces into newlines. 39722SP2NL=$lt_lt_SP2NL 39723 39724# turn newlines into spaces. 39725NL2SP=$lt_lt_NL2SP 39726 39727# convert \$build file names to \$host format. 39728to_host_file_cmd=$lt_cv_to_host_file_cmd 39729 39730# convert \$build files to toolchain format. 39731to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39732 39733# Method to check whether dependent libraries are shared objects. 39734deplibs_check_method=$lt_deplibs_check_method 39735 39736# Command to use when deplibs_check_method = "file_magic". 39737file_magic_cmd=$lt_file_magic_cmd 39738 39739# How to find potential files when deplibs_check_method = "file_magic". 39740file_magic_glob=$lt_file_magic_glob 39741 39742# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39743want_nocaseglob=$lt_want_nocaseglob 39744 39745# Command to associate shared and link libraries. 39746sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 39747 39748# The archiver. 39749AR=$lt_AR 39750 39751# Flags to create an archive. 39752AR_FLAGS=$lt_AR_FLAGS 39753 39754# How to feed a file listing to the archiver. 39755archiver_list_spec=$lt_archiver_list_spec 39756 39757# A symbol stripping program. 39758STRIP=$lt_STRIP 39759 39760# Commands used to install an old-style archive. 39761RANLIB=$lt_RANLIB 39762old_postinstall_cmds=$lt_old_postinstall_cmds 39763old_postuninstall_cmds=$lt_old_postuninstall_cmds 39764 39765# Whether to use a lock for old archive extraction. 39766lock_old_archive_extraction=$lock_old_archive_extraction 39767 39768# A C compiler. 39769LTCC=$lt_CC 39770 39771# LTCC compiler flags. 39772LTCFLAGS=$lt_CFLAGS 39773 39774# Take the output of nm and produce a listing of raw symbols and C names. 39775global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 39776 39777# Transform the output of nm in a proper C declaration. 39778global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 39779 39780# Transform the output of nm into a list of symbols to manually relocate. 39781global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 39782 39783# Transform the output of nm in a C name address pair. 39784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 39785 39786# Transform the output of nm in a C name address pair when lib prefix is needed. 39787global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 39788 39789# The name lister interface. 39790nm_interface=$lt_lt_cv_nm_interface 39791 39792# Specify filename containing input files for \$NM. 39793nm_file_list_spec=$lt_nm_file_list_spec 39794 39795# The root where to search for dependent libraries,and where our libraries should be installed. 39796lt_sysroot=$lt_sysroot 39797 39798# Command to truncate a binary pipe. 39799lt_truncate_bin=$lt_lt_cv_truncate_bin 39800 39801# The name of the directory that contains temporary libtool files. 39802objdir=$objdir 39803 39804# Used to examine libraries when file_magic_cmd begins with "file". 39805MAGIC_CMD=$MAGIC_CMD 39806 39807# Must we lock files when doing compilation? 39808need_locks=$lt_need_locks 39809 39810# Manifest tool. 39811MANIFEST_TOOL=$lt_MANIFEST_TOOL 39812 39813# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 39814DSYMUTIL=$lt_DSYMUTIL 39815 39816# Tool to change global to local symbols on Mac OS X. 39817NMEDIT=$lt_NMEDIT 39818 39819# Tool to manipulate fat objects and archives on Mac OS X. 39820LIPO=$lt_LIPO 39821 39822# ldd/readelf like tool for Mach-O binaries on Mac OS X. 39823OTOOL=$lt_OTOOL 39824 39825# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 39826OTOOL64=$lt_OTOOL64 39827 39828# Old archive suffix (normally "a"). 39829libext=$libext 39830 39831# Shared library suffix (normally ".so"). 39832shrext_cmds=$lt_shrext_cmds 39833 39834# The commands to extract the exported symbol list from a shared archive. 39835extract_expsyms_cmds=$lt_extract_expsyms_cmds 39836 39837# Variables whose values should be saved in libtool wrapper scripts and 39838# restored at link time. 39839variables_saved_for_relink=$lt_variables_saved_for_relink 39840 39841# Do we need the "lib" prefix for modules? 39842need_lib_prefix=$need_lib_prefix 39843 39844# Do we need a version for libraries? 39845need_version=$need_version 39846 39847# Library versioning type. 39848version_type=$version_type 39849 39850# Shared library runtime path variable. 39851runpath_var=$runpath_var 39852 39853# Shared library path variable. 39854shlibpath_var=$shlibpath_var 39855 39856# Is shlibpath searched before the hard-coded library search path? 39857shlibpath_overrides_runpath=$shlibpath_overrides_runpath 39858 39859# Format of library name prefix. 39860libname_spec=$lt_libname_spec 39861 39862# List of archive names. First name is the real one, the rest are links. 39863# The last name is the one that the linker finds with -lNAME 39864library_names_spec=$lt_library_names_spec 39865 39866# The coded name of the library, if different from the real name. 39867soname_spec=$lt_soname_spec 39868 39869# Permission mode override for installation of shared libraries. 39870install_override_mode=$lt_install_override_mode 39871 39872# Command to use after installation of a shared archive. 39873postinstall_cmds=$lt_postinstall_cmds 39874 39875# Command to use after uninstallation of a shared archive. 39876postuninstall_cmds=$lt_postuninstall_cmds 39877 39878# Commands used to finish a libtool library installation in a directory. 39879finish_cmds=$lt_finish_cmds 39880 39881# As "finish_cmds", except a single script fragment to be evaled but 39882# not shown. 39883finish_eval=$lt_finish_eval 39884 39885# Whether we should hardcode library paths into libraries. 39886hardcode_into_libs=$hardcode_into_libs 39887 39888# Compile-time system search path for libraries. 39889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39890 39891# Detected run-time system search path for libraries. 39892sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 39893 39894# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 39895configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 39896 39897# Whether dlopen is supported. 39898dlopen_support=$enable_dlopen 39899 39900# Whether dlopen of programs is supported. 39901dlopen_self=$enable_dlopen_self 39902 39903# Whether dlopen of statically linked programs is supported. 39904dlopen_self_static=$enable_dlopen_self_static 39905 39906# Commands to strip libraries. 39907old_striplib=$lt_old_striplib 39908striplib=$lt_striplib 39909 39910 39911# The linker used to build libraries. 39912LD=$lt_LD 39913 39914# How to create reloadable object files. 39915reload_flag=$lt_reload_flag 39916reload_cmds=$lt_reload_cmds 39917 39918# Commands used to build an old-style archive. 39919old_archive_cmds=$lt_old_archive_cmds 39920 39921# A language specific compiler. 39922CC=$lt_compiler 39923 39924# Is the compiler the GNU compiler? 39925with_gcc=$GCC 39926 39927# Compiler flag to turn off builtin functions. 39928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39929 39930# Additional compiler flags for building library objects. 39931pic_flag=$lt_lt_prog_compiler_pic 39932 39933# How to pass a linker flag through the compiler. 39934wl=$lt_lt_prog_compiler_wl 39935 39936# Compiler flag to prevent dynamic linking. 39937link_static_flag=$lt_lt_prog_compiler_static 39938 39939# Does compiler simultaneously support -c and -o options? 39940compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39941 39942# Whether or not to add -lc for building shared libraries. 39943build_libtool_need_lc=$archive_cmds_need_lc 39944 39945# Whether or not to disallow shared libs when runtime libs are static. 39946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39947 39948# Compiler flag to allow reflexive dlopens. 39949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39950 39951# Compiler flag to generate shared objects directly from archives. 39952whole_archive_flag_spec=$lt_whole_archive_flag_spec 39953 39954# Whether the compiler copes with passing no objects directly. 39955compiler_needs_object=$lt_compiler_needs_object 39956 39957# Create an old-style archive from a shared archive. 39958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39959 39960# Create a temporary old-style archive to link instead of a shared archive. 39961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39962 39963# Commands used to build a shared archive. 39964archive_cmds=$lt_archive_cmds 39965archive_expsym_cmds=$lt_archive_expsym_cmds 39966 39967# Commands used to build a loadable module if different from building 39968# a shared archive. 39969module_cmds=$lt_module_cmds 39970module_expsym_cmds=$lt_module_expsym_cmds 39971 39972# Whether we are building with GNU ld or not. 39973with_gnu_ld=$lt_with_gnu_ld 39974 39975# Flag that allows shared libraries with undefined symbols to be built. 39976allow_undefined_flag=$lt_allow_undefined_flag 39977 39978# Flag that enforces no undefined symbols. 39979no_undefined_flag=$lt_no_undefined_flag 39980 39981# Flag to hardcode \$libdir into a binary during linking. 39982# This must work even if \$libdir does not exist 39983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39984 39985# Whether we need a single "-rpath" flag with a separated argument. 39986hardcode_libdir_separator=$lt_hardcode_libdir_separator 39987 39988# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39989# DIR into the resulting binary. 39990hardcode_direct=$hardcode_direct 39991 39992# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39993# DIR into the resulting binary and the resulting library dependency is 39994# "absolute",i.e impossible to change by setting \$shlibpath_var if the 39995# library is relocated. 39996hardcode_direct_absolute=$hardcode_direct_absolute 39997 39998# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39999# into the resulting binary. 40000hardcode_minus_L=$hardcode_minus_L 40001 40002# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40003# into the resulting binary. 40004hardcode_shlibpath_var=$hardcode_shlibpath_var 40005 40006# Set to "yes" if building a shared library automatically hardcodes DIR 40007# into the library and all subsequent libraries and executables linked 40008# against it. 40009hardcode_automatic=$hardcode_automatic 40010 40011# Set to yes if linker adds runtime paths of dependent libraries 40012# to runtime path list. 40013inherit_rpath=$inherit_rpath 40014 40015# Whether libtool must link a program against all its dependency libraries. 40016link_all_deplibs=$link_all_deplibs 40017 40018# Set to "yes" if exported symbols are required. 40019always_export_symbols=$always_export_symbols 40020 40021# The commands to list exported symbols. 40022export_symbols_cmds=$lt_export_symbols_cmds 40023 40024# Symbols that should not be listed in the preloaded symbols. 40025exclude_expsyms=$lt_exclude_expsyms 40026 40027# Symbols that must always be exported. 40028include_expsyms=$lt_include_expsyms 40029 40030# Commands necessary for linking programs (against libraries) with templates. 40031prelink_cmds=$lt_prelink_cmds 40032 40033# Commands necessary for finishing linking programs. 40034postlink_cmds=$lt_postlink_cmds 40035 40036# Specify filename containing input files. 40037file_list_spec=$lt_file_list_spec 40038 40039# How to hardcode a shared library path into an executable. 40040hardcode_action=$hardcode_action 40041 40042# The directories searched by this compiler when creating a shared library. 40043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 40044 40045# Dependencies to place before and after the objects being linked to 40046# create a shared library. 40047predep_objects=$lt_predep_objects 40048postdep_objects=$lt_postdep_objects 40049predeps=$lt_predeps 40050postdeps=$lt_postdeps 40051 40052# The library search path used internally by the compiler when linking 40053# a shared library. 40054compiler_lib_search_path=$lt_compiler_lib_search_path 40055 40056# ### END LIBTOOL CONFIG 40057 40058_LT_EOF 40059 40060 cat <<'_LT_EOF' >> "$cfgfile" 40061 40062# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 40063 40064# func_munge_path_list VARIABLE PATH 40065# ----------------------------------- 40066# VARIABLE is name of variable containing _space_ separated list of 40067# directories to be munged by the contents of PATH, which is string 40068# having a format: 40069# "DIR[:DIR]:" 40070# string "DIR[ DIR]" will be prepended to VARIABLE 40071# ":DIR[:DIR]" 40072# string "DIR[ DIR]" will be appended to VARIABLE 40073# "DIRP[:DIRP]::[DIRA:]DIRA" 40074# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 40075# "DIRA[ DIRA]" will be appended to VARIABLE 40076# "DIR[:DIR]" 40077# VARIABLE will be replaced by "DIR[ DIR]" 40078func_munge_path_list () 40079{ 40080 case x$2 in 40081 x) 40082 ;; 40083 *:) 40084 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 40085 ;; 40086 x:*) 40087 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 40088 ;; 40089 *::*) 40090 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 40091 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 40092 ;; 40093 *) 40094 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 40095 ;; 40096 esac 40097} 40098 40099 40100# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 40101func_cc_basename () 40102{ 40103 for cc_temp in $*""; do 40104 case $cc_temp in 40105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 40106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 40107 \-*) ;; 40108 *) break;; 40109 esac 40110 done 40111 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 40112} 40113 40114 40115# ### END FUNCTIONS SHARED WITH CONFIGURE 40116 40117_LT_EOF 40118 40119 case $host_os in 40120 aix3*) 40121 cat <<\_LT_EOF >> "$cfgfile" 40122# AIX sometimes has problems with the GCC collect2 program. For some 40123# reason, if we set the COLLECT_NAMES environment variable, the problems 40124# vanish in a puff of smoke. 40125if test set != "${COLLECT_NAMES+set}"; then 40126 COLLECT_NAMES= 40127 export COLLECT_NAMES 40128fi 40129_LT_EOF 40130 ;; 40131 esac 40132 40133 40134ltmain=$ac_aux_dir/ltmain.sh 40135 40136 40137 # We use sed instead of cat because bash on DJGPP gets confused if 40138 # if finds mixed CR/LF and LF-only lines. Since sed operates in 40139 # text mode, it properly converts lines to CR/LF. This bash problem 40140 # is reportedly fixed, but why not run on old versions too? 40141 sed '$q' "$ltmain" >> "$cfgfile" \ 40142 || (rm -f "$cfgfile"; exit 1) 40143 40144 mv -f "$cfgfile" "$ofile" || 40145 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 40146 chmod +x "$ofile" 40147 40148 40149 cat <<_LT_EOF >> "$ofile" 40150 40151# ### BEGIN LIBTOOL TAG CONFIG: CXX 40152 40153# The linker used to build libraries. 40154LD=$lt_LD_CXX 40155 40156# How to create reloadable object files. 40157reload_flag=$lt_reload_flag_CXX 40158reload_cmds=$lt_reload_cmds_CXX 40159 40160# Commands used to build an old-style archive. 40161old_archive_cmds=$lt_old_archive_cmds_CXX 40162 40163# A language specific compiler. 40164CC=$lt_compiler_CXX 40165 40166# Is the compiler the GNU compiler? 40167with_gcc=$GCC_CXX 40168 40169# Compiler flag to turn off builtin functions. 40170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 40171 40172# Additional compiler flags for building library objects. 40173pic_flag=$lt_lt_prog_compiler_pic_CXX 40174 40175# How to pass a linker flag through the compiler. 40176wl=$lt_lt_prog_compiler_wl_CXX 40177 40178# Compiler flag to prevent dynamic linking. 40179link_static_flag=$lt_lt_prog_compiler_static_CXX 40180 40181# Does compiler simultaneously support -c and -o options? 40182compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 40183 40184# Whether or not to add -lc for building shared libraries. 40185build_libtool_need_lc=$archive_cmds_need_lc_CXX 40186 40187# Whether or not to disallow shared libs when runtime libs are static. 40188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 40189 40190# Compiler flag to allow reflexive dlopens. 40191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 40192 40193# Compiler flag to generate shared objects directly from archives. 40194whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 40195 40196# Whether the compiler copes with passing no objects directly. 40197compiler_needs_object=$lt_compiler_needs_object_CXX 40198 40199# Create an old-style archive from a shared archive. 40200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 40201 40202# Create a temporary old-style archive to link instead of a shared archive. 40203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 40204 40205# Commands used to build a shared archive. 40206archive_cmds=$lt_archive_cmds_CXX 40207archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 40208 40209# Commands used to build a loadable module if different from building 40210# a shared archive. 40211module_cmds=$lt_module_cmds_CXX 40212module_expsym_cmds=$lt_module_expsym_cmds_CXX 40213 40214# Whether we are building with GNU ld or not. 40215with_gnu_ld=$lt_with_gnu_ld_CXX 40216 40217# Flag that allows shared libraries with undefined symbols to be built. 40218allow_undefined_flag=$lt_allow_undefined_flag_CXX 40219 40220# Flag that enforces no undefined symbols. 40221no_undefined_flag=$lt_no_undefined_flag_CXX 40222 40223# Flag to hardcode \$libdir into a binary during linking. 40224# This must work even if \$libdir does not exist 40225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 40226 40227# Whether we need a single "-rpath" flag with a separated argument. 40228hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 40229 40230# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40231# DIR into the resulting binary. 40232hardcode_direct=$hardcode_direct_CXX 40233 40234# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40235# DIR into the resulting binary and the resulting library dependency is 40236# "absolute",i.e impossible to change by setting \$shlibpath_var if the 40237# library is relocated. 40238hardcode_direct_absolute=$hardcode_direct_absolute_CXX 40239 40240# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 40241# into the resulting binary. 40242hardcode_minus_L=$hardcode_minus_L_CXX 40243 40244# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40245# into the resulting binary. 40246hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 40247 40248# Set to "yes" if building a shared library automatically hardcodes DIR 40249# into the library and all subsequent libraries and executables linked 40250# against it. 40251hardcode_automatic=$hardcode_automatic_CXX 40252 40253# Set to yes if linker adds runtime paths of dependent libraries 40254# to runtime path list. 40255inherit_rpath=$inherit_rpath_CXX 40256 40257# Whether libtool must link a program against all its dependency libraries. 40258link_all_deplibs=$link_all_deplibs_CXX 40259 40260# Set to "yes" if exported symbols are required. 40261always_export_symbols=$always_export_symbols_CXX 40262 40263# The commands to list exported symbols. 40264export_symbols_cmds=$lt_export_symbols_cmds_CXX 40265 40266# Symbols that should not be listed in the preloaded symbols. 40267exclude_expsyms=$lt_exclude_expsyms_CXX 40268 40269# Symbols that must always be exported. 40270include_expsyms=$lt_include_expsyms_CXX 40271 40272# Commands necessary for linking programs (against libraries) with templates. 40273prelink_cmds=$lt_prelink_cmds_CXX 40274 40275# Commands necessary for finishing linking programs. 40276postlink_cmds=$lt_postlink_cmds_CXX 40277 40278# Specify filename containing input files. 40279file_list_spec=$lt_file_list_spec_CXX 40280 40281# How to hardcode a shared library path into an executable. 40282hardcode_action=$hardcode_action_CXX 40283 40284# The directories searched by this compiler when creating a shared library. 40285compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 40286 40287# Dependencies to place before and after the objects being linked to 40288# create a shared library. 40289predep_objects=$lt_predep_objects_CXX 40290postdep_objects=$lt_postdep_objects_CXX 40291predeps=$lt_predeps_CXX 40292postdeps=$lt_postdeps_CXX 40293 40294# The library search path used internally by the compiler when linking 40295# a shared library. 40296compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 40297 40298# ### END LIBTOOL TAG CONFIG: CXX 40299_LT_EOF 40300 40301 ;; 40302 "magick.sh.in":C) chmod +x magick.sh ;; 40303 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; 40304 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; 40305 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; 40306 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; 40307 40308 esac 40309done # for ac_tag 40310 40311 40312as_fn_exit 0 40313_ACEOF 40314ac_clean_files=$ac_clean_files_save 40315 40316test $ac_write_fail = 0 || 40317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 40318 40319 40320# configure is writing to config.log, and then calls config.status. 40321# config.status does its own redirection, appending to config.log. 40322# Unfortunately, on DOS this fails, as config.log is still kept open 40323# by configure, so config.status won't be able to write to it; its 40324# output is simply discarded. So we exec the FD to /dev/null, 40325# effectively closing config.log, so it can be properly (re)opened and 40326# appended to by config.status. When coming back to configure, we 40327# need to make the FD available again. 40328if test "$no_create" != yes; then 40329 ac_cs_success=: 40330 ac_config_status_args= 40331 test "$silent" = yes && 40332 ac_config_status_args="$ac_config_status_args --quiet" 40333 exec 5>/dev/null 40334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 40335 exec 5>>config.log 40336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 40337 # would make configure fail if this is the last instruction. 40338 $ac_cs_success || as_fn_exit 1 40339fi 40340if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 40341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 40342$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 40343fi 40344 40345 40346# ============================================================================== 40347# ImageMagick Configuration 40348# ============================================================================== 40349{ $as_echo "$as_me:${as_lineno-$LINENO}: 40350============================================================================== 40351ImageMagick is configured as follows. Please verify that this configuration 40352matches your expectations. 40353 40354 Host system type: $host 40355 Build system type: $build 40356 40357 Option Value 40358 ------------------------------------------------------------------------------ 40359 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 40360 Static libraries --enable-static=$enable_static $libtool_build_static_libs 40361 Module support --with-modules=$build_modules $build_modules 40362 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 40363 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 40364 High Dynamic Range Imagery 40365 --enable-hdri=$enable_hdri $enable_hdri 40366 40367 Install documentation: $wantdocs 40368 40369 Delegate Library Configuration: 40370 BZLIB --with-bzlib=$with_bzlib $have_bzlib 40371 Autotrace --with-autotrace=$with_autotrace $have_autotrace 40372 DJVU --with-djvu=$with_djvu $have_djvu 40373 DPS --with-dps=$with_dps $have_dps 40374 FFTW --with-fftw=$with_fftw $have_fftw 40375 FLIF --with-flif=$with_flif $have_flif 40376 FlashPIX --with-fpx=$with_fpx $have_fpx 40377 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 40378 FreeType --with-freetype=$with_freetype $have_freetype 40379 Ghostscript lib --with-gslib=$with_gslib $have_gslib 40380 Graphviz --with-gvc=$with_gvc $have_gvc 40381 JBIG --with-jbig=$with_jbig $have_jbig 40382 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 40383 LCMS --with-lcms=$with_lcms $have_lcms 40384 LQR --with-lqr=$with_lqr $have_lqr 40385 LTDL --with-ltdl=$with_ltdl $have_ltdl 40386 LZMA --with-lzma=$with_lzma $have_lzma 40387 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 40388 OpenEXR --with-openexr=$with_openexr $have_openexr 40389 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 40390 PANGO --with-pango=$with_pango $have_pango 40391 PERL --with-perl=$with_perl $have_perl 40392 PNG --with-png=$with_png $have_png 40393 RAQM --with-raqm=$with_raqm $have_raqm 40394 RSVG --with-rsvg=$with_rsvg $have_rsvg 40395 TIFF --with-tiff=$with_tiff $have_tiff 40396 WEBP --with-webp=$with_webp $have_webp 40397 WMF --with-wmf=$with_wmf $have_wmf 40398 X11 --with-x=$with_x $have_x 40399 XML --with-xml=$with_xml $have_xml 40400 ZLIB --with-zlib=$with_zlib $have_zlib 40401 40402 Delegate Program Configuration: 40403 GhostPCL None $PCLDelegate ($PCLVersion) 40404 GhostXPS None $XPSDelegate ($XPSVersion) 40405 Ghostscript None $PSDelegate ($GSVersion) 40406 40407 Font Configuration: 40408 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 40409 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 40410 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 40411 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 40412 40413 X11 Configuration: 40414 X_CFLAGS = $X_CFLAGS 40415 X_PRE_LIBS = $X_PRE_LIBS 40416 X_LIBS = $X_LIBS 40417 X_EXTRA_LIBS = $X_EXTRA_LIBS 40418 40419 Options used to compile and link: 40420 PREFIX = $PREFIX_DIR 40421 EXEC-PREFIX = $EXEC_PREFIX_DIR 40422 VERSION = $PACKAGE_VERSION 40423 CC = $CC 40424 CFLAGS = $CFLAGS 40425 CPPFLAGS = $CPPFLAGS 40426 PCFLAGS = $PCFLAGS 40427 DEFS = $DEFS 40428 LDFLAGS = $LDFLAGS 40429 LIBS = $LIBS 40430 CXX = $CXX 40431 CXXFLAGS = $CXXFLAGS 40432 FEATURES = $MAGICK_FEATURES 40433 DELEGATES = $MAGICK_DELEGATES 40434============================================================================== 40435" >&5 40436$as_echo "$as_me: 40437============================================================================== 40438ImageMagick is configured as follows. Please verify that this configuration 40439matches your expectations. 40440 40441 Host system type: $host 40442 Build system type: $build 40443 40444 Option Value 40445 ------------------------------------------------------------------------------ 40446 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 40447 Static libraries --enable-static=$enable_static $libtool_build_static_libs 40448 Module support --with-modules=$build_modules $build_modules 40449 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 40450 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 40451 High Dynamic Range Imagery 40452 --enable-hdri=$enable_hdri $enable_hdri 40453 40454 Install documentation: $wantdocs 40455 40456 Delegate Library Configuration: 40457 BZLIB --with-bzlib=$with_bzlib $have_bzlib 40458 Autotrace --with-autotrace=$with_autotrace $have_autotrace 40459 DJVU --with-djvu=$with_djvu $have_djvu 40460 DPS --with-dps=$with_dps $have_dps 40461 FFTW --with-fftw=$with_fftw $have_fftw 40462 FLIF --with-flif=$with_flif $have_flif 40463 FlashPIX --with-fpx=$with_fpx $have_fpx 40464 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 40465 FreeType --with-freetype=$with_freetype $have_freetype 40466 Ghostscript lib --with-gslib=$with_gslib $have_gslib 40467 Graphviz --with-gvc=$with_gvc $have_gvc 40468 JBIG --with-jbig=$with_jbig $have_jbig 40469 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 40470 LCMS --with-lcms=$with_lcms $have_lcms 40471 LQR --with-lqr=$with_lqr $have_lqr 40472 LTDL --with-ltdl=$with_ltdl $have_ltdl 40473 LZMA --with-lzma=$with_lzma $have_lzma 40474 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 40475 OpenEXR --with-openexr=$with_openexr $have_openexr 40476 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 40477 PANGO --with-pango=$with_pango $have_pango 40478 PERL --with-perl=$with_perl $have_perl 40479 PNG --with-png=$with_png $have_png 40480 RAQM --with-raqm=$with_raqm $have_raqm 40481 RSVG --with-rsvg=$with_rsvg $have_rsvg 40482 TIFF --with-tiff=$with_tiff $have_tiff 40483 WEBP --with-webp=$with_webp $have_webp 40484 WMF --with-wmf=$with_wmf $have_wmf 40485 X11 --with-x=$with_x $have_x 40486 XML --with-xml=$with_xml $have_xml 40487 ZLIB --with-zlib=$with_zlib $have_zlib 40488 40489 Delegate Program Configuration: 40490 GhostPCL None $PCLDelegate ($PCLVersion) 40491 GhostXPS None $XPSDelegate ($XPSVersion) 40492 Ghostscript None $PSDelegate ($GSVersion) 40493 40494 Font Configuration: 40495 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 40496 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 40497 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 40498 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 40499 40500 X11 Configuration: 40501 X_CFLAGS = $X_CFLAGS 40502 X_PRE_LIBS = $X_PRE_LIBS 40503 X_LIBS = $X_LIBS 40504 X_EXTRA_LIBS = $X_EXTRA_LIBS 40505 40506 Options used to compile and link: 40507 PREFIX = $PREFIX_DIR 40508 EXEC-PREFIX = $EXEC_PREFIX_DIR 40509 VERSION = $PACKAGE_VERSION 40510 CC = $CC 40511 CFLAGS = $CFLAGS 40512 CPPFLAGS = $CPPFLAGS 40513 PCFLAGS = $PCFLAGS 40514 DEFS = $DEFS 40515 LDFLAGS = $LDFLAGS 40516 LIBS = $LIBS 40517 CXX = $CXX 40518 CXXFLAGS = $CXXFLAGS 40519 FEATURES = $MAGICK_FEATURES 40520 DELEGATES = $MAGICK_DELEGATES 40521============================================================================== 40522" >&6;} 40523