configure revision 47950f61e314f5a39f6a584b5223bbf2dc91a454
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0. 4# 5# Report bugs to <http://www.imagemagick.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.imagemagick.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ImageMagick' 592PACKAGE_TARNAME='ImageMagick' 593PACKAGE_VERSION='7.0.0-0' 594PACKAGE_STRING='ImageMagick 7.0.0-0' 595PACKAGE_BUGREPORT='http://www.imagemagick.org' 596PACKAGE_URL='' 597 598ac_unique_file="MagickCore/MagickCore.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639MAGICK_LIBS 640MAGICK_LDFLAGS 641MAGICK_PCFLAGS 642MAGICK_CPPFLAGS 643MAGICK_CXXFLAGS 644MAGICK_CFLAGS 645MAGICK_DEP_LIBS 646OSX_GCOV_LDFLAG 647MAGICK_FEATURES 648MAGICK_DELEGATES 649MAGICKCORE_PATH 650PERL_SUPPORTS_DESTDIR 651WITH_PERL_DYNAMIC_FALSE 652WITH_PERL_DYNAMIC_TRUE 653WITH_PERL_STATIC_FALSE 654WITH_PERL_STATIC_TRUE 655WITH_PERL_FALSE 656WITH_PERL_TRUE 657PERL_VERSION 658GSVersion 659GSPSDevice 660GSPDFDevice 661GSMonoDevice 662GSEPSDevice 663GSColorDevice 664GSCMYKDevice 665GSAlphaDevice 666XPSVersion 667XPSCMYKDevice 668XPSColorDevice 669XPSMonoDevice 670PCLVersion 671PCLCMYKDevice 672PCLColorDevice 673PCLMonoDevice 674ZIP_DELEGATE_FALSE 675ZIP_DELEGATE_TRUE 676ZIP 677P7ZIP_DELEGATE_FALSE 678P7ZIP_DELEGATE_TRUE 679P7ZIP 680RPM_DELEGATE_FALSE 681RPM_DELEGATE_TRUE 682RPM 683PERL 684TAR 685ShowImageDelegate 686type_include_files 687windows_font_dir 688ghostscript_font_dir 689dejavu_font_dir 690apple_font_dir 691PrintDelegate 692ZipDelegate 693XPSDelegate 694WWWDecodeDelegate 695WMFDecodeDelegate 696WebPEncodeDelegate 697WebPDecodeDelegate 698UniconvertorDelegate 699TXTDelegate 700SVGDecodeDelegate 701SCANDecodeDelegate 702RSVGDecodeDelegate 703RMDelegate 704RLEEncodeDelegate 705PSDelegate 706POVDelegate 707PGPDecodeDelegate 708PCLDelegate 709MVDelegate 710MrSIDDecodeDelegate 711MPEGEncodeDelegate 712MPEGDecodeDelegate 713MogrifyDelegate 714MANDelegate 715LaunchDelegate 716LPRDelegate 717LPDelegate 718JXREncodeDelegate 719JXRDecodeDelegate 720ILBMEncodeDelegate 721ILBMDecodeDelegate 722HTMLDecodeDelegate 723HPGLDecodeDelegate 724GVCDecodeDelegate 725GnuplotDecodeDelegate 726EditorDelegate 727EchoDelegate 728DisplayDelegate 729ConvertDelegate 730DVIDecodeDelegate 731DOCDecodeDelegate 732DNGDecodeDelegate 733CatDelegate 734BrowseDelegate 735BZIPDelegate 736BlenderDecodeDelegate 737BGPEncodeDelegate 738BGPDecodeDelegate 739AutotraceDecodeDelegate 740SHAREARCH_PATH 741SHAREARCH_RELATIVE_PATH 742SHAREARCH_DIRNAME 743SHAREARCH_BASEDIRNAME 744SHARE_PATH 745CONFIGURE_PATH 746INSTALL_DOC_FALSE 747INSTALL_DOC_TRUE 748DOCUMENTATION_PATH 749FILTER_PATH 750FILTER_DIRNAME 751CODER_PATH 752CODER_DIRNAME 753MODULES_PATH 754MODULES_RELATIVE_PATH 755MODULES_DIRNAME 756MODULES_BASEDIRNAME 757LIB_BIN_DIR_PATH 758LIB_BIN_DIR_RELATIVE_PATH 759LIB_BIN_DIR 760LIB_BIN_BASEDIRNAME 761LIBRARY_PATH 762EXECUTABLE_PATH 763INCLUDEARCH_PATH 764INCLUDE_PATH 765PERLMAINCC 766XML_DELEGATE_FALSE 767XML_DELEGATE_TRUE 768XML_LIBS 769XML_CFLAGS 770WMF_LIBS 771WMF_CFLAGS 772WMF_DELEGATE_FALSE 773WMF_DELEGATE_TRUE 774WEBP_LIBS 775WEBP_DELEGATE_FALSE 776WEBP_DELEGATE_TRUE 777TIFF_LIBS 778TIFF_DELEGATE_FALSE 779TIFF_DELEGATE_TRUE 780CAIRO_DELEGATE_FALSE 781CAIRO_DELEGATE_TRUE 782RSVG_DELEGATE_FALSE 783RSVG_DELEGATE_TRUE 784CAIRO_SVG_LIBS 785CAIRO_SVG_CFLAGS 786RSVG_LIBS 787RSVG_CFLAGS 788PNG_DELEGATE_FALSE 789PNG_DELEGATE_TRUE 790PNG_LIBS 791PNG_CFLAGS 792PANGOCAIRO_DELEGATE_FALSE 793PANGOCAIRO_DELEGATE_TRUE 794PANGO_DELEGATE_FALSE 795PANGO_DELEGATE_TRUE 796PANGO_LIBS 797PANGO_CFLAGS 798OPENEXR_DELEGATE_FALSE 799OPENEXR_DELEGATE_TRUE 800OPENEXR_LIBS 801OPENEXR_CFLAGS 802LZMA_DELEGATE_FALSE 803LZMA_DELEGATE_TRUE 804LZMA_LIBS 805LZMA_CFLAGS 806LQR_DELEGATE_FALSE 807LQR_DELEGATE_TRUE 808LQR_LIBS 809LQR_CFLAGS 810LIBOPENJP2_DELEGATE_FALSE 811LIBOPENJP2_DELEGATE_TRUE 812LIBOPENJP2_LIBS 813LIBOPENJP2_CFLAGS 814LCMS_LIBS 815LCMS_CFLAGS 816LCMS_DELEGATE_FALSE 817LCMS_DELEGATE_TRUE 818LCMS2_LIBS 819LCMS2_CFLAGS 820JPEG_LIBS 821JPEG_DELEGATE_FALSE 822JPEG_DELEGATE_TRUE 823JBIG_LIBS 824JBIG_DELEGATE_FALSE 825JBIG_DELEGATE_TRUE 826GVC_DELEGATE_FALSE 827GVC_DELEGATE_TRUE 828GVC_LIBS 829GVC_CFLAGS 830GS_LIBS 831GS_DELEGATE_FALSE 832GS_DELEGATE_TRUE 833FREETYPE_DELEGATE_FALSE 834FREETYPE_DELEGATE_TRUE 835FREETYPE_LIBS 836FREETYPE_CFLAGS 837FONTCONFIG_DELEGATE_FALSE 838FONTCONFIG_DELEGATE_TRUE 839FONTCONFIG_LIBS 840FONTCONFIG_CFLAGS 841DJVU_LIBS 842DJVU_CFLAGS 843DJVU_DELEGATE_FALSE 844DJVU_DELEGATE_TRUE 845ddjvuapi_LIBS 846ddjvuapi_CFLAGS 847FPX_LIBS 848FPX_DELEGATE_FALSE 849FPX_DELEGATE_TRUE 850FFTW_LIBS 851FFTW_CFLAGS 852FFTW_DELEGATE_FALSE 853FFTW_DELEGATE_TRUE 854fftw3_LIBS 855fftw3_CFLAGS 856DPS_LIBS 857DPS_DELEGATE_FALSE 858DPS_DELEGATE_TRUE 859AUTOTRACE_DELEGATE_FALSE 860AUTOTRACE_DELEGATE_TRUE 861AUTOTRACE_LIBS 862AUTOTRACE_CFLAGS 863LIB_DL 864WITH_LTDL_FALSE 865WITH_LTDL_TRUE 866ZLIB_DELEGATE_FALSE 867ZLIB_DELEGATE_TRUE 868ZLIB_LIBS 869ZLIB_CFLAGS 870XEXT_LIBS 871X11_LIBS 872X11_DELEGATE_FALSE 873X11_DELEGATE_TRUE 874X_EXTRA_LIBS 875X_LIBS 876X_PRE_LIBS 877X_CFLAGS 878XMKMF 879BZLIB_LIBS 880BZLIB_DELEGATE_FALSE 881BZLIB_DELEGATE_TRUE 882CCMALLOCDelegate 883UMEM_LIBS 884HasUMEM_FALSE 885HasUMEM_TRUE 886JEMALLOC_LIBS 887HasJEMALLOC_FALSE 888HasJEMALLOC_TRUE 889GOMP_LIBS 890WITH_MAGICK_PLUS_PLUS_FALSE 891WITH_MAGICK_PLUS_PLUS_TRUE 892OPENMP_CXXFLAGS 893MATH_LIBS 894POW_LIB 895LIBOBJS 896UINTPTR_F 897UINTPTR_T 898UINTMAX_F 899UINTMAX_T 900UINT64_F 901UINT64_T 902INT64_F 903INT64_T 904UINT32_F 905UINT32_T 906INT32_F 907INT32_T 908UINT16_T 909INT16_T 910UINT8_T 911INT8_T 912LIBRARY_EXTRA_CPPFLAGS 913MODULE_EXTRA_CPPFLAGS 914LIBSTDCLDFLAGS 915PERL_MAKE_OPTIONS 916MAGICK_LT_RELEASE_OPTS 917MAGICK_ABI_SUFFIX 918QUANTUM_DEPTH 919LEGACY_SUPPORT_FALSE 920LEGACY_SUPPORT_TRUE 921MAINT 922MAINTAINER_MODE_FALSE 923MAINTAINER_MODE_TRUE 924MAGICK_HDRI 925WITH_MODULES_FALSE 926WITH_MODULES_TRUE 927WITH_SHARED_LIBS_FALSE 928WITH_SHARED_LIBS_TRUE 929LIBTOOL_DEPS 930CXXCPP 931LT_SYS_LIBRARY_PATH 932OTOOL64 933OTOOL 934LIPO 935NMEDIT 936DSYMUTIL 937MANIFEST_TOOL 938RANLIB 939NM 940ac_ct_DUMPBIN 941DUMPBIN 942LIBTOOL 943OBJDUMP 944DLLTOOL 945AS 946LFS_CPPFLAGS 947CL_LIBS 948CL_CFLAGS 949OPENMP_CFLAGS 950THREAD_LIBS 951PTHREAD_CFLAGS 952PTHREAD_LIBS 953PTHREAD_CC 954ax_pthread_config 955pkgconfigdir 956SHAREARCH_DIR 957INCLUDEARCH_DIR 958WinPathScript 959USING_CL_FALSE 960USING_CL_TRUE 961CYGWIN_BUILD_FALSE 962CYGWIN_BUILD_TRUE 963WIN32_NATIVE_BUILD_FALSE 964WIN32_NATIVE_BUILD_TRUE 965WINGDI32_DELEGATE_FALSE 966WINGDI32_DELEGATE_TRUE 967GDI32_LIBS 968HAVE_LD_VERSION_SCRIPT_FALSE 969HAVE_LD_VERSION_SCRIPT_TRUE 970PKG_CONFIG_LIBDIR 971PKG_CONFIG_PATH 972PKG_CONFIG 973PRTDIAG 974LN_S 975LD 976FGREP 977SED 978am__fastdepCXX_FALSE 979am__fastdepCXX_TRUE 980CXXDEPMODE 981ac_ct_CXX 982CXXFLAGS 983CXX 984ac_ct_AR 985AR 986EGREP 987GREP 988CPP 989am__fastdepCC_FALSE 990am__fastdepCC_TRUE 991CCDEPMODE 992am__nodep 993AMDEPBACKSLASH 994AMDEP_FALSE 995AMDEP_TRUE 996am__quote 997am__include 998DEPDIR 999OBJEXT 1000EXEEXT 1001ac_ct_CC 1002CPPFLAGS 1003LDFLAGS 1004CFLAGS 1005CC 1006DIRSEP 1007MAGICK_FILTER_MODULE_PATH 1008MAGICK_CONFIGURE_BUILD_PATH 1009MAGICK_CONFIGURE_SRC_PATH 1010MAGICK_CODER_MODULE_PATH 1011MAN_DIR 1012INFO_DIR 1013PERSISTINCLUDE_DIR 1014INCLUDE_DIR 1015LIB_DIR 1016LOCALSTATE_DIR 1017SHAREDSTATE_DIR 1018SYSCONF_DIR 1019DOC_DIR 1020DATA_DIR 1021LIBEXEC_DIR 1022SBIN_DIR 1023BIN_DIR 1024EXEC_PREFIX_DIR 1025PREFIX_DIR 1026CONFIG_STATUS_DEPENDENCIES 1027MAGICKPP_LIB_VERSION_TEXT 1028MAGICKPP_LIB_VERSION 1029MAGICK_LIB_VERSION_NUMBER 1030MAGICK_LIB_VERSION_TEXT 1031MAGICK_LIB_VERSION 1032PACKAGE_VERSION_ADDENDUM 1033PACKAGE_RELEASE_DATE 1034PACKAGE_LIB_VERSION_NUMBER 1035PACKAGE_LIB_VERSION 1036PACKAGE_CHANGE_DATE 1037PACKAGE_RELEASE 1038PACKAGE_PERL_VERSION 1039MAGICKPP_LIBRARY_VERSION_INFO 1040MAGICKPP_LIBRARY_CURRENT_MIN 1041MAGICKPP_LIBRARY_AGE 1042MAGICKPP_LIBRARY_REVISION 1043MAGICKPP_LIBRARY_CURRENT 1044MAGICK_LIBRARY_VERSION_INFO 1045MAGICK_LIBRARY_CURRENT_MIN 1046MAGICK_LIBRARY_AGE 1047MAGICK_LIBRARY_REVISION 1048MAGICK_LIBRARY_CURRENT 1049MAGICK_GIT_REVISION 1050MAGICK_VERSION 1051MAGICK_PATCHLEVEL_VERSION 1052MAGICK_MICRO_VERSION 1053MAGICK_MINOR_VERSION 1054MAGICK_MAJOR_VERSION 1055MAGICK_TARGET_OS 1056MAGICK_TARGET_VENDOR 1057MAGICK_TARGET_CPU 1058CONFIGURE_ARGS 1059DISTCHECK_CONFIG_FLAGS 1060AM_BACKSLASH 1061AM_DEFAULT_VERBOSITY 1062AM_DEFAULT_V 1063AM_V 1064am__untar 1065am__tar 1066AMTAR 1067am__leading_dot 1068SET_MAKE 1069AWK 1070mkdir_p 1071MKDIR_P 1072INSTALL_STRIP_PROGRAM 1073STRIP 1074install_sh 1075MAKEINFO 1076AUTOHEADER 1077AUTOMAKE 1078AUTOCONF 1079ACLOCAL 1080VERSION 1081PACKAGE 1082CYGPATH_W 1083am__isrc 1084INSTALL_DATA 1085INSTALL_SCRIPT 1086INSTALL_PROGRAM 1087target_os 1088target_vendor 1089target_cpu 1090target 1091host_os 1092host_vendor 1093host_cpu 1094host 1095build_os 1096build_vendor 1097build_cpu 1098build 1099target_alias 1100host_alias 1101build_alias 1102LIBS 1103ECHO_T 1104ECHO_N 1105ECHO_C 1106DEFS 1107mandir 1108localedir 1109libdir 1110psdir 1111pdfdir 1112dvidir 1113htmldir 1114infodir 1115docdir 1116oldincludedir 1117includedir 1118localstatedir 1119sharedstatedir 1120sysconfdir 1121datadir 1122datarootdir 1123libexecdir 1124sbindir 1125bindir 1126program_transform_name 1127prefix 1128exec_prefix 1129PACKAGE_URL 1130PACKAGE_BUGREPORT 1131PACKAGE_STRING 1132PACKAGE_VERSION 1133PACKAGE_TARNAME 1134PACKAGE_NAME 1135PATH_SEPARATOR 1136SHELL' 1137ac_subst_files='' 1138ac_user_opts=' 1139enable_option_checking 1140enable_silent_rules 1141enable_reproducible_build 1142enable_dependency_tracking 1143with_gnu_ld 1144with_dmalloc 1145with_gcc_arch 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_assert 1171enable_maintainer_mode 1172enable_hugepages 1173enable_ccmalloc 1174enable_efence 1175enable_prof 1176enable_gprof 1177enable_gcov 1178with_method_prefix 1179enable_legacy_support 1180with_quantum_depth 1181with_cache 1182with_frozenpaths 1183with_magick_plus_plus 1184with_package_release_name 1185with_perl 1186with_perl_options 1187with_jemalloc 1188with_umem 1189with_libstdc 1190with_bzlib 1191with_x 1192with_zlib 1193with_apple_font_dir 1194with_autotrace 1195with_dps 1196with_dejavu_font_dir 1197with_fftw 1198with_fpx 1199with_djvu 1200with_fontconfig 1201with_freetype 1202with_gslib 1203with_fontpath 1204with_gs_font_dir 1205with_gvc 1206with_jbig 1207with_jpeg 1208with_lcms 1209with_openjp2 1210with_lqr 1211with_lzma 1212with_openexr 1213with_pango 1214with_png 1215with_rsvg 1216with_tiff 1217with_webp 1218with_windows_font_dir 1219with_wmf 1220with_xml 1221enable_docs 1222' 1223 ac_precious_vars='build_alias 1224host_alias 1225target_alias 1226CC 1227CFLAGS 1228LDFLAGS 1229LIBS 1230CPPFLAGS 1231CPP 1232CXX 1233CXXFLAGS 1234CCC 1235PKG_CONFIG 1236PKG_CONFIG_PATH 1237PKG_CONFIG_LIBDIR 1238LT_SYS_LIBRARY_PATH 1239CXXCPP 1240XMKMF 1241ZLIB_CFLAGS 1242ZLIB_LIBS 1243AUTOTRACE_CFLAGS 1244AUTOTRACE_LIBS 1245fftw3_CFLAGS 1246fftw3_LIBS 1247ddjvuapi_CFLAGS 1248ddjvuapi_LIBS 1249FONTCONFIG_CFLAGS 1250FONTCONFIG_LIBS 1251FREETYPE_CFLAGS 1252FREETYPE_LIBS 1253GVC_CFLAGS 1254GVC_LIBS 1255LCMS2_CFLAGS 1256LCMS2_LIBS 1257LIBOPENJP2_CFLAGS 1258LIBOPENJP2_LIBS 1259LQR_CFLAGS 1260LQR_LIBS 1261LZMA_CFLAGS 1262LZMA_LIBS 1263OPENEXR_CFLAGS 1264OPENEXR_LIBS 1265PANGO_CFLAGS 1266PANGO_LIBS 1267PNG_CFLAGS 1268PNG_LIBS 1269RSVG_CFLAGS 1270RSVG_LIBS 1271CAIRO_SVG_CFLAGS 1272CAIRO_SVG_LIBS 1273XML_CFLAGS 1274XML_LIBS' 1275 1276 1277# Initialize some variables set by options. 1278ac_init_help= 1279ac_init_version=false 1280ac_unrecognized_opts= 1281ac_unrecognized_sep= 1282# The variables have the same names as the options, with 1283# dashes changed to underlines. 1284cache_file=/dev/null 1285exec_prefix=NONE 1286no_create= 1287no_recursion= 1288prefix=NONE 1289program_prefix=NONE 1290program_suffix=NONE 1291program_transform_name=s,x,x, 1292silent= 1293site= 1294srcdir= 1295verbose= 1296x_includes=NONE 1297x_libraries=NONE 1298 1299# Installation directory options. 1300# These are left unexpanded so users can "make install exec_prefix=/foo" 1301# and all the variables that are supposed to be based on exec_prefix 1302# by default will actually change. 1303# Use braces instead of parens because sh, perl, etc. also accept them. 1304# (The list follows the same order as the GNU Coding Standards.) 1305bindir='${exec_prefix}/bin' 1306sbindir='${exec_prefix}/sbin' 1307libexecdir='${exec_prefix}/libexec' 1308datarootdir='${prefix}/share' 1309datadir='${datarootdir}' 1310sysconfdir='${prefix}/etc' 1311sharedstatedir='${prefix}/com' 1312localstatedir='${prefix}/var' 1313includedir='${prefix}/include' 1314oldincludedir='/usr/include' 1315docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1316infodir='${datarootdir}/info' 1317htmldir='${docdir}' 1318dvidir='${docdir}' 1319pdfdir='${docdir}' 1320psdir='${docdir}' 1321libdir='${exec_prefix}/lib' 1322localedir='${datarootdir}/locale' 1323mandir='${datarootdir}/man' 1324 1325ac_prev= 1326ac_dashdash= 1327for ac_option 1328do 1329 # If the previous option needs an argument, assign it. 1330 if test -n "$ac_prev"; then 1331 eval $ac_prev=\$ac_option 1332 ac_prev= 1333 continue 1334 fi 1335 1336 case $ac_option in 1337 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1338 *=) ac_optarg= ;; 1339 *) ac_optarg=yes ;; 1340 esac 1341 1342 # Accept the important Cygnus configure options, so we can diagnose typos. 1343 1344 case $ac_dashdash$ac_option in 1345 --) 1346 ac_dashdash=yes ;; 1347 1348 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1349 ac_prev=bindir ;; 1350 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1351 bindir=$ac_optarg ;; 1352 1353 -build | --build | --buil | --bui | --bu) 1354 ac_prev=build_alias ;; 1355 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1356 build_alias=$ac_optarg ;; 1357 1358 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1359 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1360 ac_prev=cache_file ;; 1361 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1362 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1363 cache_file=$ac_optarg ;; 1364 1365 --config-cache | -C) 1366 cache_file=config.cache ;; 1367 1368 -datadir | --datadir | --datadi | --datad) 1369 ac_prev=datadir ;; 1370 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1371 datadir=$ac_optarg ;; 1372 1373 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1374 | --dataroo | --dataro | --datar) 1375 ac_prev=datarootdir ;; 1376 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1377 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1378 datarootdir=$ac_optarg ;; 1379 1380 -disable-* | --disable-*) 1381 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1382 # Reject names that are not valid shell variable names. 1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1384 as_fn_error $? "invalid feature name: $ac_useropt" 1385 ac_useropt_orig=$ac_useropt 1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1387 case $ac_user_opts in 1388 *" 1389"enable_$ac_useropt" 1390"*) ;; 1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1392 ac_unrecognized_sep=', ';; 1393 esac 1394 eval enable_$ac_useropt=no ;; 1395 1396 -docdir | --docdir | --docdi | --doc | --do) 1397 ac_prev=docdir ;; 1398 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1399 docdir=$ac_optarg ;; 1400 1401 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1402 ac_prev=dvidir ;; 1403 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1404 dvidir=$ac_optarg ;; 1405 1406 -enable-* | --enable-*) 1407 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1408 # Reject names that are not valid shell variable names. 1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1410 as_fn_error $? "invalid feature name: $ac_useropt" 1411 ac_useropt_orig=$ac_useropt 1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1413 case $ac_user_opts in 1414 *" 1415"enable_$ac_useropt" 1416"*) ;; 1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1418 ac_unrecognized_sep=', ';; 1419 esac 1420 eval enable_$ac_useropt=\$ac_optarg ;; 1421 1422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1424 | --exec | --exe | --ex) 1425 ac_prev=exec_prefix ;; 1426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1428 | --exec=* | --exe=* | --ex=*) 1429 exec_prefix=$ac_optarg ;; 1430 1431 -gas | --gas | --ga | --g) 1432 # Obsolete; use --with-gas. 1433 with_gas=yes ;; 1434 1435 -help | --help | --hel | --he | -h) 1436 ac_init_help=long ;; 1437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1438 ac_init_help=recursive ;; 1439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1440 ac_init_help=short ;; 1441 1442 -host | --host | --hos | --ho) 1443 ac_prev=host_alias ;; 1444 -host=* | --host=* | --hos=* | --ho=*) 1445 host_alias=$ac_optarg ;; 1446 1447 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1448 ac_prev=htmldir ;; 1449 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1450 | --ht=*) 1451 htmldir=$ac_optarg ;; 1452 1453 -includedir | --includedir | --includedi | --included | --include \ 1454 | --includ | --inclu | --incl | --inc) 1455 ac_prev=includedir ;; 1456 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1457 | --includ=* | --inclu=* | --incl=* | --inc=*) 1458 includedir=$ac_optarg ;; 1459 1460 -infodir | --infodir | --infodi | --infod | --info | --inf) 1461 ac_prev=infodir ;; 1462 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1463 infodir=$ac_optarg ;; 1464 1465 -libdir | --libdir | --libdi | --libd) 1466 ac_prev=libdir ;; 1467 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1468 libdir=$ac_optarg ;; 1469 1470 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1471 | --libexe | --libex | --libe) 1472 ac_prev=libexecdir ;; 1473 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1474 | --libexe=* | --libex=* | --libe=*) 1475 libexecdir=$ac_optarg ;; 1476 1477 -localedir | --localedir | --localedi | --localed | --locale) 1478 ac_prev=localedir ;; 1479 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1480 localedir=$ac_optarg ;; 1481 1482 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1483 | --localstate | --localstat | --localsta | --localst | --locals) 1484 ac_prev=localstatedir ;; 1485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1486 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1487 localstatedir=$ac_optarg ;; 1488 1489 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1490 ac_prev=mandir ;; 1491 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1492 mandir=$ac_optarg ;; 1493 1494 -nfp | --nfp | --nf) 1495 # Obsolete; use --without-fp. 1496 with_fp=no ;; 1497 1498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1499 | --no-cr | --no-c | -n) 1500 no_create=yes ;; 1501 1502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1504 no_recursion=yes ;; 1505 1506 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1507 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1508 | --oldin | --oldi | --old | --ol | --o) 1509 ac_prev=oldincludedir ;; 1510 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1511 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1512 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1513 oldincludedir=$ac_optarg ;; 1514 1515 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1516 ac_prev=prefix ;; 1517 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1518 prefix=$ac_optarg ;; 1519 1520 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1521 | --program-pre | --program-pr | --program-p) 1522 ac_prev=program_prefix ;; 1523 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1524 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1525 program_prefix=$ac_optarg ;; 1526 1527 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1528 | --program-suf | --program-su | --program-s) 1529 ac_prev=program_suffix ;; 1530 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1531 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1532 program_suffix=$ac_optarg ;; 1533 1534 -program-transform-name | --program-transform-name \ 1535 | --program-transform-nam | --program-transform-na \ 1536 | --program-transform-n | --program-transform- \ 1537 | --program-transform | --program-transfor \ 1538 | --program-transfo | --program-transf \ 1539 | --program-trans | --program-tran \ 1540 | --progr-tra | --program-tr | --program-t) 1541 ac_prev=program_transform_name ;; 1542 -program-transform-name=* | --program-transform-name=* \ 1543 | --program-transform-nam=* | --program-transform-na=* \ 1544 | --program-transform-n=* | --program-transform-=* \ 1545 | --program-transform=* | --program-transfor=* \ 1546 | --program-transfo=* | --program-transf=* \ 1547 | --program-trans=* | --program-tran=* \ 1548 | --progr-tra=* | --program-tr=* | --program-t=*) 1549 program_transform_name=$ac_optarg ;; 1550 1551 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1552 ac_prev=pdfdir ;; 1553 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1554 pdfdir=$ac_optarg ;; 1555 1556 -psdir | --psdir | --psdi | --psd | --ps) 1557 ac_prev=psdir ;; 1558 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1559 psdir=$ac_optarg ;; 1560 1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1562 | -silent | --silent | --silen | --sile | --sil) 1563 silent=yes ;; 1564 1565 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1566 ac_prev=sbindir ;; 1567 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1568 | --sbi=* | --sb=*) 1569 sbindir=$ac_optarg ;; 1570 1571 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1572 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1573 | --sharedst | --shareds | --shared | --share | --shar \ 1574 | --sha | --sh) 1575 ac_prev=sharedstatedir ;; 1576 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1577 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1578 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1579 | --sha=* | --sh=*) 1580 sharedstatedir=$ac_optarg ;; 1581 1582 -site | --site | --sit) 1583 ac_prev=site ;; 1584 -site=* | --site=* | --sit=*) 1585 site=$ac_optarg ;; 1586 1587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1588 ac_prev=srcdir ;; 1589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1590 srcdir=$ac_optarg ;; 1591 1592 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1593 | --syscon | --sysco | --sysc | --sys | --sy) 1594 ac_prev=sysconfdir ;; 1595 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1596 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1597 sysconfdir=$ac_optarg ;; 1598 1599 -target | --target | --targe | --targ | --tar | --ta | --t) 1600 ac_prev=target_alias ;; 1601 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1602 target_alias=$ac_optarg ;; 1603 1604 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1605 verbose=yes ;; 1606 1607 -version | --version | --versio | --versi | --vers | -V) 1608 ac_init_version=: ;; 1609 1610 -with-* | --with-*) 1611 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1612 # Reject names that are not valid shell variable names. 1613 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1614 as_fn_error $? "invalid package name: $ac_useropt" 1615 ac_useropt_orig=$ac_useropt 1616 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1617 case $ac_user_opts in 1618 *" 1619"with_$ac_useropt" 1620"*) ;; 1621 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1622 ac_unrecognized_sep=', ';; 1623 esac 1624 eval with_$ac_useropt=\$ac_optarg ;; 1625 1626 -without-* | --without-*) 1627 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1628 # Reject names that are not valid shell variable names. 1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1630 as_fn_error $? "invalid package name: $ac_useropt" 1631 ac_useropt_orig=$ac_useropt 1632 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1633 case $ac_user_opts in 1634 *" 1635"with_$ac_useropt" 1636"*) ;; 1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1638 ac_unrecognized_sep=', ';; 1639 esac 1640 eval with_$ac_useropt=no ;; 1641 1642 --x) 1643 # Obsolete; use --with-x. 1644 with_x=yes ;; 1645 1646 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1647 | --x-incl | --x-inc | --x-in | --x-i) 1648 ac_prev=x_includes ;; 1649 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1650 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1651 x_includes=$ac_optarg ;; 1652 1653 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1654 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1655 ac_prev=x_libraries ;; 1656 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1657 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1658 x_libraries=$ac_optarg ;; 1659 1660 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1661Try \`$0 --help' for more information" 1662 ;; 1663 1664 *=*) 1665 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1666 # Reject names that are not valid shell variable names. 1667 case $ac_envvar in #( 1668 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1669 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1670 esac 1671 eval $ac_envvar=\$ac_optarg 1672 export $ac_envvar ;; 1673 1674 *) 1675 # FIXME: should be removed in autoconf 3.0. 1676 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1677 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1678 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1679 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1680 ;; 1681 1682 esac 1683done 1684 1685if test -n "$ac_prev"; then 1686 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1687 as_fn_error $? "missing argument to $ac_option" 1688fi 1689 1690if test -n "$ac_unrecognized_opts"; then 1691 case $enable_option_checking in 1692 no) ;; 1693 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1694 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1695 esac 1696fi 1697 1698# Check all directory arguments for consistency. 1699for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1700 datadir sysconfdir sharedstatedir localstatedir includedir \ 1701 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1702 libdir localedir mandir 1703do 1704 eval ac_val=\$$ac_var 1705 # Remove trailing slashes. 1706 case $ac_val in 1707 */ ) 1708 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1709 eval $ac_var=\$ac_val;; 1710 esac 1711 # Be sure to have absolute directory names. 1712 case $ac_val in 1713 [\\/$]* | ?:[\\/]* ) continue;; 1714 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1715 esac 1716 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1717done 1718 1719# There might be people who depend on the old broken behavior: `$host' 1720# used to hold the argument of --host etc. 1721# FIXME: To remove some day. 1722build=$build_alias 1723host=$host_alias 1724target=$target_alias 1725 1726# FIXME: To remove some day. 1727if test "x$host_alias" != x; then 1728 if test "x$build_alias" = x; then 1729 cross_compiling=maybe 1730 elif test "x$build_alias" != "x$host_alias"; then 1731 cross_compiling=yes 1732 fi 1733fi 1734 1735ac_tool_prefix= 1736test -n "$host_alias" && ac_tool_prefix=$host_alias- 1737 1738test "$silent" = yes && exec 6>/dev/null 1739 1740 1741ac_pwd=`pwd` && test -n "$ac_pwd" && 1742ac_ls_di=`ls -di .` && 1743ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1744 as_fn_error $? "working directory cannot be determined" 1745test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1746 as_fn_error $? "pwd does not report name of working directory" 1747 1748 1749# Find the source files, if location was not specified. 1750if test -z "$srcdir"; then 1751 ac_srcdir_defaulted=yes 1752 # Try the directory containing this script, then the parent directory. 1753 ac_confdir=`$as_dirname -- "$as_myself" || 1754$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1755 X"$as_myself" : 'X\(//\)[^/]' \| \ 1756 X"$as_myself" : 'X\(//\)$' \| \ 1757 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1758$as_echo X"$as_myself" | 1759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1760 s//\1/ 1761 q 1762 } 1763 /^X\(\/\/\)[^/].*/{ 1764 s//\1/ 1765 q 1766 } 1767 /^X\(\/\/\)$/{ 1768 s//\1/ 1769 q 1770 } 1771 /^X\(\/\).*/{ 1772 s//\1/ 1773 q 1774 } 1775 s/.*/./; q'` 1776 srcdir=$ac_confdir 1777 if test ! -r "$srcdir/$ac_unique_file"; then 1778 srcdir=.. 1779 fi 1780else 1781 ac_srcdir_defaulted=no 1782fi 1783if test ! -r "$srcdir/$ac_unique_file"; then 1784 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1785 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1786fi 1787ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1788ac_abs_confdir=`( 1789 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1790 pwd)` 1791# When building in place, set srcdir=. 1792if test "$ac_abs_confdir" = "$ac_pwd"; then 1793 srcdir=. 1794fi 1795# Remove unnecessary trailing slashes from srcdir. 1796# Double slashes in file names in object file debugging info 1797# mess up M-x gdb in Emacs. 1798case $srcdir in 1799*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1800esac 1801for ac_var in $ac_precious_vars; do 1802 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1803 eval ac_env_${ac_var}_value=\$${ac_var} 1804 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1805 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1806done 1807 1808# 1809# Report the --help message. 1810# 1811if test "$ac_init_help" = "long"; then 1812 # Omit some internal or obsolete options to make the list less imposing. 1813 # This message is too long to be a string in the A/UX 3.1 sh. 1814 cat <<_ACEOF 1815\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. 1816 1817Usage: $0 [OPTION]... [VAR=VALUE]... 1818 1819To assign environment variables (e.g., CC, CFLAGS...), specify them as 1820VAR=VALUE. See below for descriptions of some of the useful variables. 1821 1822Defaults for the options are specified in brackets. 1823 1824Configuration: 1825 -h, --help display this help and exit 1826 --help=short display options specific to this package 1827 --help=recursive display the short help of all the included packages 1828 -V, --version display version information and exit 1829 -q, --quiet, --silent do not print \`checking ...' messages 1830 --cache-file=FILE cache test results in FILE [disabled] 1831 -C, --config-cache alias for \`--cache-file=config.cache' 1832 -n, --no-create do not create output files 1833 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1834 1835Installation directories: 1836 --prefix=PREFIX install architecture-independent files in PREFIX 1837 [$ac_default_prefix] 1838 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1839 [PREFIX] 1840 1841By default, \`make install' will install all the files in 1842\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1843an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1844for instance \`--prefix=\$HOME'. 1845 1846For better control, use the options below. 1847 1848Fine tuning of the installation directories: 1849 --bindir=DIR user executables [EPREFIX/bin] 1850 --sbindir=DIR system admin executables [EPREFIX/sbin] 1851 --libexecdir=DIR program executables [EPREFIX/libexec] 1852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1854 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1855 --libdir=DIR object code libraries [EPREFIX/lib] 1856 --includedir=DIR C header files [PREFIX/include] 1857 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1858 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1859 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1860 --infodir=DIR info documentation [DATAROOTDIR/info] 1861 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1862 --mandir=DIR man documentation [DATAROOTDIR/man] 1863 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] 1864 --htmldir=DIR html documentation [DOCDIR] 1865 --dvidir=DIR dvi documentation [DOCDIR] 1866 --pdfdir=DIR pdf documentation [DOCDIR] 1867 --psdir=DIR ps documentation [DOCDIR] 1868_ACEOF 1869 1870 cat <<\_ACEOF 1871 1872Program names: 1873 --program-prefix=PREFIX prepend PREFIX to installed program names 1874 --program-suffix=SUFFIX append SUFFIX to installed program names 1875 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1876 1877X features: 1878 --x-includes=DIR X include files are in DIR 1879 --x-libraries=DIR X library files are in DIR 1880 1881System types: 1882 --build=BUILD configure for building on BUILD [guessed] 1883 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1884 --target=TARGET configure for building compilers for TARGET [HOST] 1885_ACEOF 1886fi 1887 1888if test -n "$ac_init_help"; then 1889 case $ac_init_help in 1890 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; 1891 esac 1892 cat <<\_ACEOF 1893 1894Optional Features: 1895 --disable-option-checking ignore unrecognized --enable/--with options 1896 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1897 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1898 --enable-silent-rules less verbose build output (undo: "make V=1") 1899 --disable-silent-rules verbose build output (undo: "make V=0") 1900 --enable-reproducible-build 1901 enable reproducible build 1902 --enable-dependency-tracking 1903 do not reject slow dependency extractors 1904 --disable-dependency-tracking 1905 speeds up one-time build 1906 --enable-ld-version-script 1907 enable linker version script (default is enabled 1908 when possible) 1909 --enable-bounds-checking 1910 enable run-time bounds-checking 1911 --enable-osx-universal-binary 1912 build universal binary on OS X [[default=no]] 1913 --disable-openmp do not use OpenMP 1914 --enable-opencl enable OpenCL support 1915 --disable-largefile omit support for large files 1916 --enable-shared[=PKGS] build shared libraries [default=yes] 1917 --enable-static[=PKGS] build static libraries [default=yes] 1918 --enable-fast-install[=PKGS] 1919 optimize for fast installation [default=yes] 1920 --disable-libtool-lock avoid locking (might break parallel builds) 1921 --enable-delegate-build look for delegate libraries in build directory 1922 --disable-deprecated exclude deprecated methods in MagickCore and 1923 MagickWand APIs 1924 --disable-installed Formally install ImageMagick under PREFIX 1925 --disable-cipher disable enciphering and deciphering image pixels 1926 --enable-zero-configuration 1927 enable self-contained, embeddable, 1928 zero-configuration ImageMagick 1929 --enable-hdri accurately represent the wide range of intensity 1930 levels found in real scenes 1931 --disable-assert disable assert() statements in build 1932 --enable-maintainer-mode 1933 enable make rules and dependencies not useful (and 1934 sometimes confusing) to the casual installer 1935 --enable-hugepages enable 'huge pages' support 1936 --enable-ccmalloc enable 'ccmalloc' memory debug support 1937 --enable-efence enable 'efence' memory debug support 1938 --enable-prof enable 'prof' profiling support 1939 --enable-gprof enable 'gprof' profiling support 1940 --enable-gcov enable 'gcov' profiling support 1941 --enable-legacy-support install legacy command-line utilities (default disabled) 1942 --disable-assert turn off assertions 1943 --disable-docs disable building of documentation 1944 1945Optional Packages: 1946 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1947 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1948 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1949 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1950 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1951 instead of guessing 1952 --includearch-dir=DIR ARCH specific include directory 1953 --sharearch-dir=DIR ARCH specific config directory 1954 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig] 1955 --without-threads disable threads support 1956 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1957 both] 1958 --with-aix-soname=aix|svr4|both 1959 shared library versioning (aka "SONAME") variant to 1960 provide on AIX, [default=aix]. 1961 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1962 compiler's sysroot if not specified). 1963 --with-modules enable building dynamically loadable modules 1964 --with-method-prefix=PREFIX 1965 prefix MagickCore API methods 1966 --with-quantum-depth=DEPTH 1967 number of bits in a pixel quantum (default 16) 1968 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available 1969 memory) 1970 --with-frozenpaths freeze delegate paths 1971 --without-magick-plus-plus 1972 disable build/install of Magick++ 1973 --with-package-release-name=NAME 1974 encode this name into the shared library 1975 --with-perl enable build/install of PerlMagick 1976 --with-perl-options=OPTIONS 1977 options to pass on command-line when generating 1978 PerlMagick build file 1979 --with-jemalloc enable jemalloc memory allocation library support 1980 --with-umem enable umem memory allocation library support 1981 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) 1982 --without-bzlib disable BZLIB support 1983 --with-x use the X Window System 1984 --without-zlib disable ZLIB support 1985 --with-apple-font-dir=DIR 1986 Apple font directory 1987 --with-autotrace enable autotrace support 1988 --without-dps disable Display Postscript support 1989 --with-dejavu-font-dir=DIR 1990 DejaVu font directory 1991 --without-fftw disable FFTW support 1992 --without-fpx disable FlashPIX support 1993 --without-djvu disable DjVu support 1994 --without-fontconfig disable fontconfig support 1995 --without-freetype disable Freetype support 1996 --with-gslib enable Ghostscript library support 1997 --with-fontpath=DIR prepend to default font search path 1998 --with-gs-font-dir=DIR Ghostscript font directory 1999 --with-gvc enable GVC support 2000 --without-jbig disable JBIG support 2001 --without-jpeg disable JPEG support 2002 --without-lcms disable lcms (v1.1X) support 2003 --without-openjp2 disable OpenJP2 support 2004 --without-lqr disable Liquid Rescale support 2005 --without-lzma disable LZMA support 2006 --without-openexr disable OpenEXR support 2007 --without-pango disable PANGO support 2008 --without-png disable PNG support 2009 --with-rsvg enable RSVG support 2010 --without-tiff disable TIFF support 2011 --without-webp disable WEBP support 2012 --with-windows-font-dir=DIR 2013 Windows font directory 2014 --with-wmf enable WMF support 2015 --without-xml disable XML support 2016 2017Some influential environment variables: 2018 CC C compiler command 2019 CFLAGS C compiler flags 2020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2021 nonstandard directory <lib dir> 2022 LIBS libraries to pass to the linker, e.g. -l<library> 2023 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2024 you have headers in a nonstandard directory <include dir> 2025 CPP C preprocessor 2026 CXX C++ compiler command 2027 CXXFLAGS C++ compiler flags 2028 PKG_CONFIG path to pkg-config utility 2029 PKG_CONFIG_PATH 2030 directories to add to pkg-config's search path 2031 PKG_CONFIG_LIBDIR 2032 path overriding pkg-config's built-in search path 2033 LT_SYS_LIBRARY_PATH 2034 User-defined run-time library search path. 2035 CXXCPP C++ preprocessor 2036 XMKMF Path to xmkmf, Makefile generator for X Window System 2037 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 2038 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 2039 AUTOTRACE_CFLAGS 2040 C compiler flags for AUTOTRACE, overriding pkg-config 2041 AUTOTRACE_LIBS 2042 linker flags for AUTOTRACE, overriding pkg-config 2043 fftw3_CFLAGS 2044 C compiler flags for fftw3, overriding pkg-config 2045 fftw3_LIBS linker flags for fftw3, overriding pkg-config 2046 ddjvuapi_CFLAGS 2047 C compiler flags for ddjvuapi, overriding pkg-config 2048 ddjvuapi_LIBS 2049 linker flags for ddjvuapi, overriding pkg-config 2050 FONTCONFIG_CFLAGS 2051 C compiler flags for FONTCONFIG, overriding pkg-config 2052 FONTCONFIG_LIBS 2053 linker flags for FONTCONFIG, overriding pkg-config 2054 FREETYPE_CFLAGS 2055 C compiler flags for FREETYPE, overriding pkg-config 2056 FREETYPE_LIBS 2057 linker flags for FREETYPE, overriding pkg-config 2058 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config 2059 GVC_LIBS linker flags for GVC, overriding pkg-config 2060 LCMS2_CFLAGS 2061 C compiler flags for LCMS2, overriding pkg-config 2062 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config 2063 LIBOPENJP2_CFLAGS 2064 C compiler flags for LIBOPENJP2, overriding pkg-config 2065 LIBOPENJP2_LIBS 2066 linker flags for LIBOPENJP2, overriding pkg-config 2067 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config 2068 LQR_LIBS linker flags for LQR, overriding pkg-config 2069 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 2070 LZMA_LIBS linker flags for LZMA, overriding pkg-config 2071 OPENEXR_CFLAGS 2072 C compiler flags for OPENEXR, overriding pkg-config 2073 OPENEXR_LIBS 2074 linker flags for OPENEXR, overriding pkg-config 2075 PANGO_CFLAGS 2076 C compiler flags for PANGO, overriding pkg-config 2077 PANGO_LIBS linker flags for PANGO, overriding pkg-config 2078 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2079 PNG_LIBS linker flags for PNG, overriding pkg-config 2080 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config 2081 RSVG_LIBS linker flags for RSVG, overriding pkg-config 2082 CAIRO_SVG_CFLAGS 2083 C compiler flags for CAIRO_SVG, overriding pkg-config 2084 CAIRO_SVG_LIBS 2085 linker flags for CAIRO_SVG, overriding pkg-config 2086 XML_CFLAGS C compiler flags for XML, overriding pkg-config 2087 XML_LIBS linker flags for XML, overriding pkg-config 2088 2089Use these variables to override the choices made by `configure' or to help 2090it to find libraries and programs with nonstandard names/locations. 2091 2092Report bugs to <http://www.imagemagick.org>. 2093_ACEOF 2094ac_status=$? 2095fi 2096 2097if test "$ac_init_help" = "recursive"; then 2098 # If there are subdirs, report their specific --help. 2099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2100 test -d "$ac_dir" || 2101 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2102 continue 2103 ac_builddir=. 2104 2105case "$ac_dir" in 2106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2107*) 2108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2109 # A ".." for each directory in $ac_dir_suffix. 2110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2111 case $ac_top_builddir_sub in 2112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2114 esac ;; 2115esac 2116ac_abs_top_builddir=$ac_pwd 2117ac_abs_builddir=$ac_pwd$ac_dir_suffix 2118# for backward compatibility: 2119ac_top_builddir=$ac_top_build_prefix 2120 2121case $srcdir in 2122 .) # We are building in place. 2123 ac_srcdir=. 2124 ac_top_srcdir=$ac_top_builddir_sub 2125 ac_abs_top_srcdir=$ac_pwd ;; 2126 [\\/]* | ?:[\\/]* ) # Absolute name. 2127 ac_srcdir=$srcdir$ac_dir_suffix; 2128 ac_top_srcdir=$srcdir 2129 ac_abs_top_srcdir=$srcdir ;; 2130 *) # Relative name. 2131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2132 ac_top_srcdir=$ac_top_build_prefix$srcdir 2133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2134esac 2135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2136 2137 cd "$ac_dir" || { ac_status=$?; continue; } 2138 # Check for guested configure. 2139 if test -f "$ac_srcdir/configure.gnu"; then 2140 echo && 2141 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2142 elif test -f "$ac_srcdir/configure"; then 2143 echo && 2144 $SHELL "$ac_srcdir/configure" --help=recursive 2145 else 2146 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2147 fi || ac_status=$? 2148 cd "$ac_pwd" || { ac_status=$?; break; } 2149 done 2150fi 2151 2152test -n "$ac_init_help" && exit $ac_status 2153if $ac_init_version; then 2154 cat <<\_ACEOF 2155ImageMagick configure 7.0.0-0 2156generated by GNU Autoconf 2.69 2157 2158Copyright (C) 2012 Free Software Foundation, Inc. 2159This configure script is free software; the Free Software Foundation 2160gives unlimited permission to copy, distribute and modify it. 2161_ACEOF 2162 exit 2163fi 2164 2165## ------------------------ ## 2166## Autoconf initialization. ## 2167## ------------------------ ## 2168 2169# ac_fn_c_try_compile LINENO 2170# -------------------------- 2171# Try to compile conftest.$ac_ext, and return whether this succeeded. 2172ac_fn_c_try_compile () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 rm -f conftest.$ac_objext 2176 if { { ac_try="$ac_compile" 2177case "(($ac_try" in 2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2179 *) ac_try_echo=$ac_try;; 2180esac 2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2182$as_echo "$ac_try_echo"; } >&5 2183 (eval "$ac_compile") 2>conftest.err 2184 ac_status=$? 2185 if test -s conftest.err; then 2186 grep -v '^ *+' conftest.err >conftest.er1 2187 cat conftest.er1 >&5 2188 mv -f conftest.er1 conftest.err 2189 fi 2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2191 test $ac_status = 0; } && { 2192 test -z "$ac_c_werror_flag" || 2193 test ! -s conftest.err 2194 } && test -s conftest.$ac_objext; then : 2195 ac_retval=0 2196else 2197 $as_echo "$as_me: failed program was:" >&5 2198sed 's/^/| /' conftest.$ac_ext >&5 2199 2200 ac_retval=1 2201fi 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 as_fn_set_status $ac_retval 2204 2205} # ac_fn_c_try_compile 2206 2207# ac_fn_c_try_cpp LINENO 2208# ---------------------- 2209# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2210ac_fn_c_try_cpp () 2211{ 2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2213 if { { ac_try="$ac_cpp conftest.$ac_ext" 2214case "(($ac_try" in 2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2216 *) ac_try_echo=$ac_try;; 2217esac 2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2219$as_echo "$ac_try_echo"; } >&5 2220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2221 ac_status=$? 2222 if test -s conftest.err; then 2223 grep -v '^ *+' conftest.err >conftest.er1 2224 cat conftest.er1 >&5 2225 mv -f conftest.er1 conftest.err 2226 fi 2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2228 test $ac_status = 0; } > conftest.i && { 2229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2230 test ! -s conftest.err 2231 }; then : 2232 ac_retval=0 2233else 2234 $as_echo "$as_me: failed program was:" >&5 2235sed 's/^/| /' conftest.$ac_ext >&5 2236 2237 ac_retval=1 2238fi 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 as_fn_set_status $ac_retval 2241 2242} # ac_fn_c_try_cpp 2243 2244# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2245# ------------------------------------------------------- 2246# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2247# the include files in INCLUDES and setting the cache variable VAR 2248# accordingly. 2249ac_fn_c_check_header_mongrel () 2250{ 2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2252 if eval \${$3+:} false; then : 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2254$as_echo_n "checking for $2... " >&6; } 2255if eval \${$3+:} false; then : 2256 $as_echo_n "(cached) " >&6 2257fi 2258eval ac_res=\$$3 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2260$as_echo "$ac_res" >&6; } 2261else 2262 # Is the header compilable? 2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2264$as_echo_n "checking $2 usability... " >&6; } 2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$4 2268#include <$2> 2269_ACEOF 2270if ac_fn_c_try_compile "$LINENO"; then : 2271 ac_header_compiler=yes 2272else 2273 ac_header_compiler=no 2274fi 2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2277$as_echo "$ac_header_compiler" >&6; } 2278 2279# Is the header present? 2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2281$as_echo_n "checking $2 presence... " >&6; } 2282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2283/* end confdefs.h. */ 2284#include <$2> 2285_ACEOF 2286if ac_fn_c_try_cpp "$LINENO"; then : 2287 ac_header_preproc=yes 2288else 2289 ac_header_preproc=no 2290fi 2291rm -f conftest.err conftest.i conftest.$ac_ext 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2293$as_echo "$ac_header_preproc" >&6; } 2294 2295# So? What about this header? 2296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2297 yes:no: ) 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2299$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2301$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2302 ;; 2303 no:yes:* ) 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2305$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2307$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2309$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2311$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2313$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2314( $as_echo "## ----------------------------------------- ## 2315## Report this to http://www.imagemagick.org ## 2316## ----------------------------------------- ##" 2317 ) | sed "s/^/$as_me: WARNING: /" >&2 2318 ;; 2319esac 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2321$as_echo_n "checking for $2... " >&6; } 2322if eval \${$3+:} false; then : 2323 $as_echo_n "(cached) " >&6 2324else 2325 eval "$3=\$ac_header_compiler" 2326fi 2327eval ac_res=\$$3 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2329$as_echo "$ac_res" >&6; } 2330fi 2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2332 2333} # ac_fn_c_check_header_mongrel 2334 2335# ac_fn_c_try_run LINENO 2336# ---------------------- 2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2338# that executables *can* be run. 2339ac_fn_c_try_run () 2340{ 2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2342 if { { ac_try="$ac_link" 2343case "(($ac_try" in 2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2345 *) ac_try_echo=$ac_try;; 2346esac 2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2348$as_echo "$ac_try_echo"; } >&5 2349 (eval "$ac_link") 2>&5 2350 ac_status=$? 2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2353 { { case "(($ac_try" in 2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2355 *) ac_try_echo=$ac_try;; 2356esac 2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2358$as_echo "$ac_try_echo"; } >&5 2359 (eval "$ac_try") 2>&5 2360 ac_status=$? 2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2362 test $ac_status = 0; }; }; then : 2363 ac_retval=0 2364else 2365 $as_echo "$as_me: program exited with status $ac_status" >&5 2366 $as_echo "$as_me: failed program was:" >&5 2367sed 's/^/| /' conftest.$ac_ext >&5 2368 2369 ac_retval=$ac_status 2370fi 2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2373 as_fn_set_status $ac_retval 2374 2375} # ac_fn_c_try_run 2376 2377# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2378# ------------------------------------------------------- 2379# Tests whether HEADER exists and can be compiled using the include files in 2380# INCLUDES, setting the cache variable VAR accordingly. 2381ac_fn_c_check_header_compile () 2382{ 2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2385$as_echo_n "checking for $2... " >&6; } 2386if eval \${$3+:} false; then : 2387 $as_echo_n "(cached) " >&6 2388else 2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2390/* end confdefs.h. */ 2391$4 2392#include <$2> 2393_ACEOF 2394if ac_fn_c_try_compile "$LINENO"; then : 2395 eval "$3=yes" 2396else 2397 eval "$3=no" 2398fi 2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2400fi 2401eval ac_res=\$$3 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2403$as_echo "$ac_res" >&6; } 2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2405 2406} # ac_fn_c_check_header_compile 2407 2408# ac_fn_cxx_try_compile LINENO 2409# ---------------------------- 2410# Try to compile conftest.$ac_ext, and return whether this succeeded. 2411ac_fn_cxx_try_compile () 2412{ 2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2414 rm -f conftest.$ac_objext 2415 if { { ac_try="$ac_compile" 2416case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419esac 2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2421$as_echo "$ac_try_echo"; } >&5 2422 (eval "$ac_compile") 2>conftest.err 2423 ac_status=$? 2424 if test -s conftest.err; then 2425 grep -v '^ *+' conftest.err >conftest.er1 2426 cat conftest.er1 >&5 2427 mv -f conftest.er1 conftest.err 2428 fi 2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2430 test $ac_status = 0; } && { 2431 test -z "$ac_cxx_werror_flag" || 2432 test ! -s conftest.err 2433 } && test -s conftest.$ac_objext; then : 2434 ac_retval=0 2435else 2436 $as_echo "$as_me: failed program was:" >&5 2437sed 's/^/| /' conftest.$ac_ext >&5 2438 2439 ac_retval=1 2440fi 2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2442 as_fn_set_status $ac_retval 2443 2444} # ac_fn_cxx_try_compile 2445 2446# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2447# -------------------------------------------- 2448# Tries to find the compile-time value of EXPR in a program that includes 2449# INCLUDES, setting VAR accordingly. Returns whether the value could be 2450# computed 2451ac_fn_c_compute_int () 2452{ 2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2454 if test "$cross_compiling" = yes; then 2455 # Depending upon the size, compute the lo and hi bounds. 2456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2457/* end confdefs.h. */ 2458$4 2459int 2460main () 2461{ 2462static int test_array [1 - 2 * !(($2) >= 0)]; 2463test_array [0] = 0; 2464return test_array [0]; 2465 2466 ; 2467 return 0; 2468} 2469_ACEOF 2470if ac_fn_c_try_compile "$LINENO"; then : 2471 ac_lo=0 ac_mid=0 2472 while :; do 2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2474/* end confdefs.h. */ 2475$4 2476int 2477main () 2478{ 2479static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2480test_array [0] = 0; 2481return test_array [0]; 2482 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487if ac_fn_c_try_compile "$LINENO"; then : 2488 ac_hi=$ac_mid; break 2489else 2490 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2491 if test $ac_lo -le $ac_mid; then 2492 ac_lo= ac_hi= 2493 break 2494 fi 2495 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2496fi 2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2498 done 2499else 2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2501/* end confdefs.h. */ 2502$4 2503int 2504main () 2505{ 2506static int test_array [1 - 2 * !(($2) < 0)]; 2507test_array [0] = 0; 2508return test_array [0]; 2509 2510 ; 2511 return 0; 2512} 2513_ACEOF 2514if ac_fn_c_try_compile "$LINENO"; then : 2515 ac_hi=-1 ac_mid=-1 2516 while :; do 2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2518/* end confdefs.h. */ 2519$4 2520int 2521main () 2522{ 2523static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2524test_array [0] = 0; 2525return test_array [0]; 2526 2527 ; 2528 return 0; 2529} 2530_ACEOF 2531if ac_fn_c_try_compile "$LINENO"; then : 2532 ac_lo=$ac_mid; break 2533else 2534 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2535 if test $ac_mid -le $ac_hi; then 2536 ac_lo= ac_hi= 2537 break 2538 fi 2539 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2540fi 2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2542 done 2543else 2544 ac_lo= ac_hi= 2545fi 2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2547fi 2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2549# Binary search between lo and hi bounds. 2550while test "x$ac_lo" != "x$ac_hi"; do 2551 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2553/* end confdefs.h. */ 2554$4 2555int 2556main () 2557{ 2558static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2559test_array [0] = 0; 2560return test_array [0]; 2561 2562 ; 2563 return 0; 2564} 2565_ACEOF 2566if ac_fn_c_try_compile "$LINENO"; then : 2567 ac_hi=$ac_mid 2568else 2569 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2570fi 2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572done 2573case $ac_lo in #(( 2574?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2575'') ac_retval=1 ;; 2576esac 2577 else 2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2579/* end confdefs.h. */ 2580$4 2581static long int longval () { return $2; } 2582static unsigned long int ulongval () { return $2; } 2583#include <stdio.h> 2584#include <stdlib.h> 2585int 2586main () 2587{ 2588 2589 FILE *f = fopen ("conftest.val", "w"); 2590 if (! f) 2591 return 1; 2592 if (($2) < 0) 2593 { 2594 long int i = longval (); 2595 if (i != ($2)) 2596 return 1; 2597 fprintf (f, "%ld", i); 2598 } 2599 else 2600 { 2601 unsigned long int i = ulongval (); 2602 if (i != ($2)) 2603 return 1; 2604 fprintf (f, "%lu", i); 2605 } 2606 /* Do not output a trailing newline, as this causes \r\n confusion 2607 on some platforms. */ 2608 return ferror (f) || fclose (f) != 0; 2609 2610 ; 2611 return 0; 2612} 2613_ACEOF 2614if ac_fn_c_try_run "$LINENO"; then : 2615 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2616else 2617 ac_retval=1 2618fi 2619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2620 conftest.$ac_objext conftest.beam conftest.$ac_ext 2621rm -f conftest.val 2622 2623 fi 2624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2625 as_fn_set_status $ac_retval 2626 2627} # ac_fn_c_compute_int 2628 2629# ac_fn_c_try_link LINENO 2630# ----------------------- 2631# Try to link conftest.$ac_ext, and return whether this succeeded. 2632ac_fn_c_try_link () 2633{ 2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2635 rm -f conftest.$ac_objext conftest$ac_exeext 2636 if { { ac_try="$ac_link" 2637case "(($ac_try" in 2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2639 *) ac_try_echo=$ac_try;; 2640esac 2641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2642$as_echo "$ac_try_echo"; } >&5 2643 (eval "$ac_link") 2>conftest.err 2644 ac_status=$? 2645 if test -s conftest.err; then 2646 grep -v '^ *+' conftest.err >conftest.er1 2647 cat conftest.er1 >&5 2648 mv -f conftest.er1 conftest.err 2649 fi 2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2651 test $ac_status = 0; } && { 2652 test -z "$ac_c_werror_flag" || 2653 test ! -s conftest.err 2654 } && test -s conftest$ac_exeext && { 2655 test "$cross_compiling" = yes || 2656 test -x conftest$ac_exeext 2657 }; then : 2658 ac_retval=0 2659else 2660 $as_echo "$as_me: failed program was:" >&5 2661sed 's/^/| /' conftest.$ac_ext >&5 2662 2663 ac_retval=1 2664fi 2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2667 # interfere with the next link command; also delete a directory that is 2668 # left behind by Apple's compiler. We do this before executing the actions. 2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2671 as_fn_set_status $ac_retval 2672 2673} # ac_fn_c_try_link 2674 2675# ac_fn_c_check_func LINENO FUNC VAR 2676# ---------------------------------- 2677# Tests whether FUNC exists, setting the cache variable VAR accordingly 2678ac_fn_c_check_func () 2679{ 2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2682$as_echo_n "checking for $2... " >&6; } 2683if eval \${$3+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687/* end confdefs.h. */ 2688/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2690#define $2 innocuous_$2 2691 2692/* System header to define __stub macros and hopefully few prototypes, 2693 which can conflict with char $2 (); below. 2694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2695 <limits.h> exists even on freestanding compilers. */ 2696 2697#ifdef __STDC__ 2698# include <limits.h> 2699#else 2700# include <assert.h> 2701#endif 2702 2703#undef $2 2704 2705/* Override any GCC internal prototype to avoid an error. 2706 Use char because int might match the return type of a GCC 2707 builtin and then its argument prototype would still apply. */ 2708#ifdef __cplusplus 2709extern "C" 2710#endif 2711char $2 (); 2712/* The GNU C library defines this for functions which it implements 2713 to always fail with ENOSYS. Some functions are actually named 2714 something starting with __ and the normal name is an alias. */ 2715#if defined __stub_$2 || defined __stub___$2 2716choke me 2717#endif 2718 2719int 2720main () 2721{ 2722return $2 (); 2723 ; 2724 return 0; 2725} 2726_ACEOF 2727if ac_fn_c_try_link "$LINENO"; then : 2728 eval "$3=yes" 2729else 2730 eval "$3=no" 2731fi 2732rm -f core conftest.err conftest.$ac_objext \ 2733 conftest$ac_exeext conftest.$ac_ext 2734fi 2735eval ac_res=\$$3 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2737$as_echo "$ac_res" >&6; } 2738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2739 2740} # ac_fn_c_check_func 2741 2742# ac_fn_cxx_try_cpp LINENO 2743# ------------------------ 2744# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2745ac_fn_cxx_try_cpp () 2746{ 2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2748 if { { ac_try="$ac_cpp conftest.$ac_ext" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2754$as_echo "$ac_try_echo"; } >&5 2755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2756 ac_status=$? 2757 if test -s conftest.err; then 2758 grep -v '^ *+' conftest.err >conftest.er1 2759 cat conftest.er1 >&5 2760 mv -f conftest.er1 conftest.err 2761 fi 2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2763 test $ac_status = 0; } > conftest.i && { 2764 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2765 test ! -s conftest.err 2766 }; then : 2767 ac_retval=0 2768else 2769 $as_echo "$as_me: failed program was:" >&5 2770sed 's/^/| /' conftest.$ac_ext >&5 2771 2772 ac_retval=1 2773fi 2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2775 as_fn_set_status $ac_retval 2776 2777} # ac_fn_cxx_try_cpp 2778 2779# ac_fn_cxx_try_link LINENO 2780# ------------------------- 2781# Try to link conftest.$ac_ext, and return whether this succeeded. 2782ac_fn_cxx_try_link () 2783{ 2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2785 rm -f conftest.$ac_objext conftest$ac_exeext 2786 if { { ac_try="$ac_link" 2787case "(($ac_try" in 2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2789 *) ac_try_echo=$ac_try;; 2790esac 2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2792$as_echo "$ac_try_echo"; } >&5 2793 (eval "$ac_link") 2>conftest.err 2794 ac_status=$? 2795 if test -s conftest.err; then 2796 grep -v '^ *+' conftest.err >conftest.er1 2797 cat conftest.er1 >&5 2798 mv -f conftest.er1 conftest.err 2799 fi 2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2801 test $ac_status = 0; } && { 2802 test -z "$ac_cxx_werror_flag" || 2803 test ! -s conftest.err 2804 } && test -s conftest$ac_exeext && { 2805 test "$cross_compiling" = yes || 2806 test -x conftest$ac_exeext 2807 }; then : 2808 ac_retval=0 2809else 2810 $as_echo "$as_me: failed program was:" >&5 2811sed 's/^/| /' conftest.$ac_ext >&5 2812 2813 ac_retval=1 2814fi 2815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2817 # interfere with the next link command; also delete a directory that is 2818 # left behind by Apple's compiler. We do this before executing the actions. 2819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2821 as_fn_set_status $ac_retval 2822 2823} # ac_fn_cxx_try_link 2824 2825# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2826# ------------------------------------------- 2827# Tests whether TYPE exists after having included INCLUDES, setting cache 2828# variable VAR accordingly. 2829ac_fn_c_check_type () 2830{ 2831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2833$as_echo_n "checking for $2... " >&6; } 2834if eval \${$3+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 eval "$3=no" 2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2839/* end confdefs.h. */ 2840$4 2841int 2842main () 2843{ 2844if (sizeof ($2)) 2845 return 0; 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850if ac_fn_c_try_compile "$LINENO"; then : 2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2852/* end confdefs.h. */ 2853$4 2854int 2855main () 2856{ 2857if (sizeof (($2))) 2858 return 0; 2859 ; 2860 return 0; 2861} 2862_ACEOF 2863if ac_fn_c_try_compile "$LINENO"; then : 2864 2865else 2866 eval "$3=yes" 2867fi 2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2869fi 2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871fi 2872eval ac_res=\$$3 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2874$as_echo "$ac_res" >&6; } 2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2876 2877} # ac_fn_c_check_type 2878 2879# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2880# ---------------------------------------------------- 2881# Tries to find if the field MEMBER exists in type AGGR, after including 2882# INCLUDES, setting cache variable VAR accordingly. 2883ac_fn_c_check_member () 2884{ 2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2887$as_echo_n "checking for $2.$3... " >&6; } 2888if eval \${$4+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2892/* end confdefs.h. */ 2893$5 2894int 2895main () 2896{ 2897static $2 ac_aggr; 2898if (ac_aggr.$3) 2899return 0; 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904if ac_fn_c_try_compile "$LINENO"; then : 2905 eval "$4=yes" 2906else 2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909$5 2910int 2911main () 2912{ 2913static $2 ac_aggr; 2914if (sizeof 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 eval "$4=no" 2924fi 2925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2926fi 2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2928fi 2929eval ac_res=\$$4 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2931$as_echo "$ac_res" >&6; } 2932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2933 2934} # ac_fn_c_check_member 2935 2936# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2937# --------------------------------------------- 2938# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2939# accordingly. 2940ac_fn_c_check_decl () 2941{ 2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2943 as_decl_name=`echo $2|sed 's/ *(.*//'` 2944 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2946$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2947if eval \${$3+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2951/* end confdefs.h. */ 2952$4 2953int 2954main () 2955{ 2956#ifndef $as_decl_name 2957#ifdef __cplusplus 2958 (void) $as_decl_use; 2959#else 2960 (void) $as_decl_name; 2961#endif 2962#endif 2963 2964 ; 2965 return 0; 2966} 2967_ACEOF 2968if ac_fn_c_try_compile "$LINENO"; then : 2969 eval "$3=yes" 2970else 2971 eval "$3=no" 2972fi 2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2974fi 2975eval ac_res=\$$3 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2977$as_echo "$ac_res" >&6; } 2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2979 2980} # ac_fn_c_check_decl 2981 2982# ac_fn_c_find_intX_t LINENO BITS VAR 2983# ----------------------------------- 2984# Finds a signed integer type with width BITS, setting cache variable VAR 2985# accordingly. 2986ac_fn_c_find_intX_t () 2987{ 2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2990$as_echo_n "checking for int$2_t... " >&6; } 2991if eval \${$3+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 eval "$3=no" 2995 # Order is important - never check a type that is potentially smaller 2996 # than half of the expected target width. 2997 for ac_type in int$2_t 'int' 'long int' \ 2998 'long long int' 'short int' 'signed char'; do 2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3000/* end confdefs.h. */ 3001$ac_includes_default 3002 enum { N = $2 / 2 - 1 }; 3003int 3004main () 3005{ 3006static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 3007test_array [0] = 0; 3008return test_array [0]; 3009 3010 ; 3011 return 0; 3012} 3013_ACEOF 3014if ac_fn_c_try_compile "$LINENO"; then : 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 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 3023 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 3024test_array [0] = 0; 3025return test_array [0]; 3026 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031if ac_fn_c_try_compile "$LINENO"; then : 3032 3033else 3034 case $ac_type in #( 3035 int$2_t) : 3036 eval "$3=yes" ;; #( 3037 *) : 3038 eval "$3=\$ac_type" ;; 3039esac 3040fi 3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3042fi 3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3044 if eval test \"x\$"$3"\" = x"no"; then : 3045 3046else 3047 break 3048fi 3049 done 3050fi 3051eval ac_res=\$$3 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3053$as_echo "$ac_res" >&6; } 3054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3055 3056} # ac_fn_c_find_intX_t 3057 3058# ac_fn_c_find_uintX_t LINENO BITS VAR 3059# ------------------------------------ 3060# Finds an unsigned integer type with width BITS, setting cache variable VAR 3061# accordingly. 3062ac_fn_c_find_uintX_t () 3063{ 3064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 3066$as_echo_n "checking for uint$2_t... " >&6; } 3067if eval \${$3+:} false; then : 3068 $as_echo_n "(cached) " >&6 3069else 3070 eval "$3=no" 3071 # Order is important - never check a type that is potentially smaller 3072 # than half of the expected target width. 3073 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 3074 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3076/* end confdefs.h. */ 3077$ac_includes_default 3078int 3079main () 3080{ 3081static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 3082test_array [0] = 0; 3083return test_array [0]; 3084 3085 ; 3086 return 0; 3087} 3088_ACEOF 3089if ac_fn_c_try_compile "$LINENO"; then : 3090 case $ac_type in #( 3091 uint$2_t) : 3092 eval "$3=yes" ;; #( 3093 *) : 3094 eval "$3=\$ac_type" ;; 3095esac 3096fi 3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3098 if eval test \"x\$"$3"\" = x"no"; then : 3099 3100else 3101 break 3102fi 3103 done 3104fi 3105eval ac_res=\$$3 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3107$as_echo "$ac_res" >&6; } 3108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3109 3110} # ac_fn_c_find_uintX_t 3111 3112# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3113# --------------------------------------------------------- 3114# Tests whether HEADER exists, giving a warning if it cannot be compiled using 3115# the include files in INCLUDES and setting the cache variable VAR 3116# accordingly. 3117ac_fn_cxx_check_header_mongrel () 3118{ 3119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3120 if eval \${$3+:} false; then : 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3122$as_echo_n "checking for $2... " >&6; } 3123if eval \${$3+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125fi 3126eval ac_res=\$$3 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3128$as_echo "$ac_res" >&6; } 3129else 3130 # Is the header compilable? 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3132$as_echo_n "checking $2 usability... " >&6; } 3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3134/* end confdefs.h. */ 3135$4 3136#include <$2> 3137_ACEOF 3138if ac_fn_cxx_try_compile "$LINENO"; then : 3139 ac_header_compiler=yes 3140else 3141 ac_header_compiler=no 3142fi 3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3145$as_echo "$ac_header_compiler" >&6; } 3146 3147# Is the header present? 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3149$as_echo_n "checking $2 presence... " >&6; } 3150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3151/* end confdefs.h. */ 3152#include <$2> 3153_ACEOF 3154if ac_fn_cxx_try_cpp "$LINENO"; then : 3155 ac_header_preproc=yes 3156else 3157 ac_header_preproc=no 3158fi 3159rm -f conftest.err conftest.i conftest.$ac_ext 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3161$as_echo "$ac_header_preproc" >&6; } 3162 3163# So? What about this header? 3164case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3165 yes:no: ) 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3167$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3169$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3170 ;; 3171 no:yes:* ) 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3173$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3175$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3177$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3179$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3181$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3182( $as_echo "## ----------------------------------------- ## 3183## Report this to http://www.imagemagick.org ## 3184## ----------------------------------------- ##" 3185 ) | sed "s/^/$as_me: WARNING: /" >&2 3186 ;; 3187esac 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3189$as_echo_n "checking for $2... " >&6; } 3190if eval \${$3+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 eval "$3=\$ac_header_compiler" 3194fi 3195eval ac_res=\$$3 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3197$as_echo "$ac_res" >&6; } 3198fi 3199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3200 3201} # ac_fn_cxx_check_header_mongrel 3202cat >config.log <<_ACEOF 3203This file contains any messages produced by compilers while 3204running configure, to aid debugging if configure makes a mistake. 3205 3206It was created by ImageMagick $as_me 7.0.0-0, which was 3207generated by GNU Autoconf 2.69. Invocation command line was 3208 3209 $ $0 $@ 3210 3211_ACEOF 3212exec 5>>config.log 3213{ 3214cat <<_ASUNAME 3215## --------- ## 3216## Platform. ## 3217## --------- ## 3218 3219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3220uname -m = `(uname -m) 2>/dev/null || echo unknown` 3221uname -r = `(uname -r) 2>/dev/null || echo unknown` 3222uname -s = `(uname -s) 2>/dev/null || echo unknown` 3223uname -v = `(uname -v) 2>/dev/null || echo unknown` 3224 3225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3227 3228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3231/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3235 3236_ASUNAME 3237 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 $as_echo "PATH: $as_dir" 3244 done 3245IFS=$as_save_IFS 3246 3247} >&5 3248 3249cat >&5 <<_ACEOF 3250 3251 3252## ----------- ## 3253## Core tests. ## 3254## ----------- ## 3255 3256_ACEOF 3257 3258 3259# Keep a trace of the command line. 3260# Strip out --no-create and --no-recursion so they do not pile up. 3261# Strip out --silent because we don't want to record it for future runs. 3262# Also quote any args containing shell meta-characters. 3263# Make two passes to allow for proper duplicate-argument suppression. 3264ac_configure_args= 3265ac_configure_args0= 3266ac_configure_args1= 3267ac_must_keep_next=false 3268for ac_pass in 1 2 3269do 3270 for ac_arg 3271 do 3272 case $ac_arg in 3273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3275 | -silent | --silent | --silen | --sile | --sil) 3276 continue ;; 3277 *\'*) 3278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3279 esac 3280 case $ac_pass in 3281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3282 2) 3283 as_fn_append ac_configure_args1 " '$ac_arg'" 3284 if test $ac_must_keep_next = true; then 3285 ac_must_keep_next=false # Got value, back to normal. 3286 else 3287 case $ac_arg in 3288 *=* | --config-cache | -C | -disable-* | --disable-* \ 3289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3291 | -with-* | --with-* | -without-* | --without-* | --x) 3292 case "$ac_configure_args0 " in 3293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3294 esac 3295 ;; 3296 -* ) ac_must_keep_next=true ;; 3297 esac 3298 fi 3299 as_fn_append ac_configure_args " '$ac_arg'" 3300 ;; 3301 esac 3302 done 3303done 3304{ ac_configure_args0=; unset ac_configure_args0;} 3305{ ac_configure_args1=; unset ac_configure_args1;} 3306 3307# When interrupted or exit'd, cleanup temporary files, and complete 3308# config.log. We remove comments because anyway the quotes in there 3309# would cause problems or look ugly. 3310# WARNING: Use '\'' to represent an apostrophe within the trap. 3311# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3312trap 'exit_status=$? 3313 # Save into config.log some information that might help in debugging. 3314 { 3315 echo 3316 3317 $as_echo "## ---------------- ## 3318## Cache variables. ## 3319## ---------------- ##" 3320 echo 3321 # The following way of writing the cache mishandles newlines in values, 3322( 3323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3324 eval ac_val=\$$ac_var 3325 case $ac_val in #( 3326 *${as_nl}*) 3327 case $ac_var in #( 3328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3330 esac 3331 case $ac_var in #( 3332 _ | IFS | as_nl) ;; #( 3333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3334 *) { eval $ac_var=; unset $ac_var;} ;; 3335 esac ;; 3336 esac 3337 done 3338 (set) 2>&1 | 3339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3340 *${as_nl}ac_space=\ *) 3341 sed -n \ 3342 "s/'\''/'\''\\\\'\'''\''/g; 3343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3344 ;; #( 3345 *) 3346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3347 ;; 3348 esac | 3349 sort 3350) 3351 echo 3352 3353 $as_echo "## ----------------- ## 3354## Output variables. ## 3355## ----------------- ##" 3356 echo 3357 for ac_var in $ac_subst_vars 3358 do 3359 eval ac_val=\$$ac_var 3360 case $ac_val in 3361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3362 esac 3363 $as_echo "$ac_var='\''$ac_val'\''" 3364 done | sort 3365 echo 3366 3367 if test -n "$ac_subst_files"; then 3368 $as_echo "## ------------------- ## 3369## File substitutions. ## 3370## ------------------- ##" 3371 echo 3372 for ac_var in $ac_subst_files 3373 do 3374 eval ac_val=\$$ac_var 3375 case $ac_val in 3376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3377 esac 3378 $as_echo "$ac_var='\''$ac_val'\''" 3379 done | sort 3380 echo 3381 fi 3382 3383 if test -s confdefs.h; then 3384 $as_echo "## ----------- ## 3385## confdefs.h. ## 3386## ----------- ##" 3387 echo 3388 cat confdefs.h 3389 echo 3390 fi 3391 test "$ac_signal" != 0 && 3392 $as_echo "$as_me: caught signal $ac_signal" 3393 $as_echo "$as_me: exit $exit_status" 3394 } >&5 3395 rm -f core *.core core.conftest.* && 3396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3397 exit $exit_status 3398' 0 3399for ac_signal in 1 2 13 15; do 3400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3401done 3402ac_signal=0 3403 3404# confdefs.h avoids OS command line length limits that DEFS can exceed. 3405rm -f -r conftest* confdefs.h 3406 3407$as_echo "/* confdefs.h */" > confdefs.h 3408 3409# Predefined preprocessor variables. 3410 3411cat >>confdefs.h <<_ACEOF 3412#define PACKAGE_NAME "$PACKAGE_NAME" 3413_ACEOF 3414 3415cat >>confdefs.h <<_ACEOF 3416#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3417_ACEOF 3418 3419cat >>confdefs.h <<_ACEOF 3420#define PACKAGE_VERSION "$PACKAGE_VERSION" 3421_ACEOF 3422 3423cat >>confdefs.h <<_ACEOF 3424#define PACKAGE_STRING "$PACKAGE_STRING" 3425_ACEOF 3426 3427cat >>confdefs.h <<_ACEOF 3428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3429_ACEOF 3430 3431cat >>confdefs.h <<_ACEOF 3432#define PACKAGE_URL "$PACKAGE_URL" 3433_ACEOF 3434 3435 3436# Let the site file select an alternate cache file if it wants to. 3437# Prefer an explicitly selected file to automatically selected ones. 3438ac_site_file1=NONE 3439ac_site_file2=NONE 3440if test -n "$CONFIG_SITE"; then 3441 # We do not want a PATH search for config.site. 3442 case $CONFIG_SITE in #(( 3443 -*) ac_site_file1=./$CONFIG_SITE;; 3444 */*) ac_site_file1=$CONFIG_SITE;; 3445 *) ac_site_file1=./$CONFIG_SITE;; 3446 esac 3447elif test "x$prefix" != xNONE; then 3448 ac_site_file1=$prefix/share/config.site 3449 ac_site_file2=$prefix/etc/config.site 3450else 3451 ac_site_file1=$ac_default_prefix/share/config.site 3452 ac_site_file2=$ac_default_prefix/etc/config.site 3453fi 3454for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3455do 3456 test "x$ac_site_file" = xNONE && continue 3457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3459$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3460 sed 's/^/| /' "$ac_site_file" >&5 3461 . "$ac_site_file" \ 3462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3464as_fn_error $? "failed to load site script $ac_site_file 3465See \`config.log' for more details" "$LINENO" 5; } 3466 fi 3467done 3468 3469if test -r "$cache_file"; then 3470 # Some versions of bash will fail to source /dev/null (special files 3471 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3474$as_echo "$as_me: loading cache $cache_file" >&6;} 3475 case $cache_file in 3476 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3477 *) . "./$cache_file";; 3478 esac 3479 fi 3480else 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3482$as_echo "$as_me: creating cache $cache_file" >&6;} 3483 >$cache_file 3484fi 3485 3486as_fn_append ac_header_list " stdlib.h" 3487as_fn_append ac_header_list " unistd.h" 3488as_fn_append ac_header_list " sys/param.h" 3489# Check that the precious variables saved in the cache have kept the same 3490# value. 3491ac_cache_corrupted=false 3492for ac_var in $ac_precious_vars; do 3493 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3494 eval ac_new_set=\$ac_env_${ac_var}_set 3495 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3496 eval ac_new_val=\$ac_env_${ac_var}_value 3497 case $ac_old_set,$ac_new_set in 3498 set,) 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3501 ac_cache_corrupted=: ;; 3502 ,set) 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3505 ac_cache_corrupted=: ;; 3506 ,);; 3507 *) 3508 if test "x$ac_old_val" != "x$ac_new_val"; then 3509 # differences in whitespace do not lead to failure. 3510 ac_old_val_w=`echo x $ac_old_val` 3511 ac_new_val_w=`echo x $ac_new_val` 3512 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3515 ac_cache_corrupted=: 3516 else 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3519 eval $ac_var=\$ac_old_val 3520 fi 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3522$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3524$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3525 fi;; 3526 esac 3527 # Pass precious variables to config.status. 3528 if test "$ac_new_set" = set; then 3529 case $ac_new_val in 3530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3531 *) ac_arg=$ac_var=$ac_new_val ;; 3532 esac 3533 case " $ac_configure_args " in 3534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3535 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3536 esac 3537 fi 3538done 3539if $ac_cache_corrupted; then 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3545fi 3546## -------------------- ## 3547## Main body of script. ## 3548## -------------------- ## 3549 3550ac_ext=c 3551ac_cpp='$CPP $CPPFLAGS' 3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3554ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555 3556 3557 3558ac_aux_dir= 3559for ac_dir in config "$srcdir"/config; do 3560 if test -f "$ac_dir/install-sh"; then 3561 ac_aux_dir=$ac_dir 3562 ac_install_sh="$ac_aux_dir/install-sh -c" 3563 break 3564 elif test -f "$ac_dir/install.sh"; then 3565 ac_aux_dir=$ac_dir 3566 ac_install_sh="$ac_aux_dir/install.sh -c" 3567 break 3568 elif test -f "$ac_dir/shtool"; then 3569 ac_aux_dir=$ac_dir 3570 ac_install_sh="$ac_aux_dir/shtool install -c" 3571 break 3572 fi 3573done 3574if test -z "$ac_aux_dir"; then 3575 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3576fi 3577 3578# These three variables are undocumented and unsupported, 3579# and are intended to be withdrawn in a future Autoconf release. 3580# They can cause serious problems if a builder's source tree is in a directory 3581# whose full name contains unusual characters. 3582ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3583ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3584ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3585 3586 3587 3588 3589ac_config_headers="$ac_config_headers config/config.h" 3590 3591 3592ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" 3593 3594# Make sure we can run config.sub. 3595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3597 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3599$as_echo_n "checking build system type... " >&6; } 3600if ${ac_cv_build+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 ac_build_alias=$build_alias 3604test "x$ac_build_alias" = x && 3605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3606test "x$ac_build_alias" = x && 3607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3610 3611fi 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3613$as_echo "$ac_cv_build" >&6; } 3614case $ac_cv_build in 3615*-*-*) ;; 3616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3617esac 3618build=$ac_cv_build 3619ac_save_IFS=$IFS; IFS='-' 3620set x $ac_cv_build 3621shift 3622build_cpu=$1 3623build_vendor=$2 3624shift; shift 3625# Remember, the first character of IFS is used to create $*, 3626# except with old shells: 3627build_os=$* 3628IFS=$ac_save_IFS 3629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3630 3631 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3633$as_echo_n "checking host system type... " >&6; } 3634if ${ac_cv_host+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 if test "x$host_alias" = x; then 3638 ac_cv_host=$ac_cv_build 3639else 3640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3642fi 3643 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3646$as_echo "$ac_cv_host" >&6; } 3647case $ac_cv_host in 3648*-*-*) ;; 3649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3650esac 3651host=$ac_cv_host 3652ac_save_IFS=$IFS; IFS='-' 3653set x $ac_cv_host 3654shift 3655host_cpu=$1 3656host_vendor=$2 3657shift; shift 3658# Remember, the first character of IFS is used to create $*, 3659# except with old shells: 3660host_os=$* 3661IFS=$ac_save_IFS 3662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3663 3664 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3666$as_echo_n "checking target system type... " >&6; } 3667if ${ac_cv_target+:} false; then : 3668 $as_echo_n "(cached) " >&6 3669else 3670 if test "x$target_alias" = x; then 3671 ac_cv_target=$ac_cv_host 3672else 3673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3675fi 3676 3677fi 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3679$as_echo "$ac_cv_target" >&6; } 3680case $ac_cv_target in 3681*-*-*) ;; 3682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3683esac 3684target=$ac_cv_target 3685ac_save_IFS=$IFS; IFS='-' 3686set x $ac_cv_target 3687shift 3688target_cpu=$1 3689target_vendor=$2 3690shift; shift 3691# Remember, the first character of IFS is used to create $*, 3692# except with old shells: 3693target_os=$* 3694IFS=$ac_save_IFS 3695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3696 3697 3698# The aliases save the names the user supplied, while $host etc. 3699# will get canonicalized. 3700test -n "$target_alias" && 3701 test "$program_prefix$program_suffix$program_transform_name" = \ 3702 NONENONEs,x,x, && 3703 program_prefix=${target_alias}- 3704 3705 3706am__api_version='1.15' 3707 3708# Find a good install program. We prefer a C program (faster), 3709# so one script is as good as another. But avoid the broken or 3710# incompatible versions: 3711# SysV /etc/install, /usr/sbin/install 3712# SunOS /usr/etc/install 3713# IRIX /sbin/install 3714# AIX /bin/install 3715# AmigaOS /C/install, which installs bootblocks on floppy discs 3716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3717# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3719# OS/2's system install, which has a completely different semantic 3720# ./install, which can be erroneously created by make from ./install.sh. 3721# Reject install programs that cannot install multiple files. 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3723$as_echo_n "checking for a BSD-compatible install... " >&6; } 3724if test -z "$INSTALL"; then 3725if ${ac_cv_path_install+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 # Account for people who put trailing slashes in PATH elements. 3734case $as_dir/ in #(( 3735 ./ | .// | /[cC]/* | \ 3736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3738 /usr/ucb/* ) ;; 3739 *) 3740 # OSF1 and SCO ODT 3.0 have their own names for install. 3741 # Don't use installbsd from OSF since it installs stuff as root 3742 # by default. 3743 for ac_prog in ginstall scoinst install; do 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3746 if test $ac_prog = install && 3747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3748 # AIX install. It has an incompatible calling convention. 3749 : 3750 elif test $ac_prog = install && 3751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3752 # program-specific install script used by HP pwplus--don't use. 3753 : 3754 else 3755 rm -rf conftest.one conftest.two conftest.dir 3756 echo one > conftest.one 3757 echo two > conftest.two 3758 mkdir conftest.dir 3759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3760 test -s conftest.one && test -s conftest.two && 3761 test -s conftest.dir/conftest.one && 3762 test -s conftest.dir/conftest.two 3763 then 3764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3765 break 3 3766 fi 3767 fi 3768 fi 3769 done 3770 done 3771 ;; 3772esac 3773 3774 done 3775IFS=$as_save_IFS 3776 3777rm -rf conftest.one conftest.two conftest.dir 3778 3779fi 3780 if test "${ac_cv_path_install+set}" = set; then 3781 INSTALL=$ac_cv_path_install 3782 else 3783 # As a last resort, use the slow shell script. Don't cache a 3784 # value for INSTALL within a source directory, because that will 3785 # break other packages using the cache if that directory is 3786 # removed, or if the value is a relative name. 3787 INSTALL=$ac_install_sh 3788 fi 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3791$as_echo "$INSTALL" >&6; } 3792 3793# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3794# It thinks the first close brace ends the variable substitution. 3795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3796 3797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3798 3799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3800 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3802$as_echo_n "checking whether build environment is sane... " >&6; } 3803# Reject unsafe characters in $srcdir or the absolute working directory 3804# name. Accept space and tab only in the latter. 3805am_lf=' 3806' 3807case `pwd` in 3808 *[\\\"\#\$\&\'\`$am_lf]*) 3809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3810esac 3811case $srcdir in 3812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3814esac 3815 3816# Do 'set' in a subshell so we don't clobber the current shell's 3817# arguments. Must try -L first in case configure is actually a 3818# symlink; some systems play weird games with the mod time of symlinks 3819# (eg FreeBSD returns the mod time of the symlink's containing 3820# directory). 3821if ( 3822 am_has_slept=no 3823 for am_try in 1 2; do 3824 echo "timestamp, slept: $am_has_slept" > conftest.file 3825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3826 if test "$*" = "X"; then 3827 # -L didn't work. 3828 set X `ls -t "$srcdir/configure" conftest.file` 3829 fi 3830 if test "$*" != "X $srcdir/configure conftest.file" \ 3831 && test "$*" != "X conftest.file $srcdir/configure"; then 3832 3833 # If neither matched, then we have a broken ls. This can happen 3834 # if, for instance, CONFIG_SHELL is bash and it inherits a 3835 # broken ls alias from the environment. This has actually 3836 # happened. Such a system could not be considered "sane". 3837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3838 alias in your environment" "$LINENO" 5 3839 fi 3840 if test "$2" = conftest.file || test $am_try -eq 2; then 3841 break 3842 fi 3843 # Just in case. 3844 sleep 1 3845 am_has_slept=yes 3846 done 3847 test "$2" = conftest.file 3848 ) 3849then 3850 # Ok. 3851 : 3852else 3853 as_fn_error $? "newly created file is older than distributed files! 3854Check your system clock" "$LINENO" 5 3855fi 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3857$as_echo "yes" >&6; } 3858# If we didn't sleep, we still need to ensure time stamps of config.status and 3859# generated files are strictly newer. 3860am_sleep_pid= 3861if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3862 ( sleep 1 ) & 3863 am_sleep_pid=$! 3864fi 3865 3866rm -f conftest.file 3867 3868test "$program_prefix" != NONE && 3869 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3870# Use a double $ so make ignores it. 3871test "$program_suffix" != NONE && 3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3873# Double any \ or $. 3874# By default was `s,x,x', remove it if useless. 3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3877 3878# Expand $ac_aux_dir to an absolute path. 3879am_aux_dir=`cd "$ac_aux_dir" && pwd` 3880 3881if test x"${MISSING+set}" != xset; then 3882 case $am_aux_dir in 3883 *\ * | *\ *) 3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3885 *) 3886 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3887 esac 3888fi 3889# Use eval to expand $SHELL 3890if eval "$MISSING --is-lightweight"; then 3891 am_missing_run="$MISSING " 3892else 3893 am_missing_run= 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3896fi 3897 3898if test x"${install_sh+set}" != xset; then 3899 case $am_aux_dir in 3900 *\ * | *\ *) 3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3902 *) 3903 install_sh="\${SHELL} $am_aux_dir/install-sh" 3904 esac 3905fi 3906 3907# Installed binaries are usually stripped using 'strip' when the user 3908# run "make install-strip". However 'strip' might not be the right 3909# tool to use in cross-compilation environments, therefore Automake 3910# will honor the 'STRIP' environment variable to overrule this program. 3911if test "$cross_compiling" != no; then 3912 if test -n "$ac_tool_prefix"; then 3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3914set dummy ${ac_tool_prefix}strip; ac_word=$2 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3916$as_echo_n "checking for $ac_word... " >&6; } 3917if ${ac_cv_prog_STRIP+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 if test -n "$STRIP"; then 3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3930 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3932 break 2 3933 fi 3934done 3935 done 3936IFS=$as_save_IFS 3937 3938fi 3939fi 3940STRIP=$ac_cv_prog_STRIP 3941if test -n "$STRIP"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3943$as_echo "$STRIP" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950fi 3951if test -z "$ac_cv_prog_STRIP"; then 3952 ac_ct_STRIP=$STRIP 3953 # Extract the first word of "strip", so it can be a program name with args. 3954set dummy strip; ac_word=$2 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3956$as_echo_n "checking for $ac_word... " >&6; } 3957if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -n "$ac_ct_STRIP"; then 3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3962else 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3970 ac_cv_prog_ac_ct_STRIP="strip" 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979fi 3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3981if test -n "$ac_ct_STRIP"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3983$as_echo "$ac_ct_STRIP" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 if test "x$ac_ct_STRIP" = x; then 3990 STRIP=":" 3991 else 3992 case $cross_compiling:$ac_tool_warned in 3993yes:) 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3996ac_tool_warned=yes ;; 3997esac 3998 STRIP=$ac_ct_STRIP 3999 fi 4000else 4001 STRIP="$ac_cv_prog_STRIP" 4002fi 4003 4004fi 4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4006 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4009if test -z "$MKDIR_P"; then 4010 if ${ac_cv_path_mkdir+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 for ac_prog in mkdir gmkdir; do 4019 for ac_exec_ext in '' $ac_executable_extensions; do 4020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4022 'mkdir (GNU coreutils) '* | \ 4023 'mkdir (coreutils) '* | \ 4024 'mkdir (fileutils) '4.1*) 4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4026 break 3;; 4027 esac 4028 done 4029 done 4030 done 4031IFS=$as_save_IFS 4032 4033fi 4034 4035 test -d ./--version && rmdir ./--version 4036 if test "${ac_cv_path_mkdir+set}" = set; then 4037 MKDIR_P="$ac_cv_path_mkdir -p" 4038 else 4039 # As a last resort, use the slow shell script. Don't cache a 4040 # value for MKDIR_P within a source directory, because that will 4041 # break other packages using the cache if that directory is 4042 # removed, or if the value is a relative name. 4043 MKDIR_P="$ac_install_sh -d" 4044 fi 4045fi 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4047$as_echo "$MKDIR_P" >&6; } 4048 4049for ac_prog in gawk mawk nawk awk 4050do 4051 # Extract the first word of "$ac_prog", so it can be a program name with args. 4052set dummy $ac_prog; ac_word=$2 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4054$as_echo_n "checking for $ac_word... " >&6; } 4055if ${ac_cv_prog_AWK+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 if test -n "$AWK"; then 4059 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4060else 4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062for as_dir in $PATH 4063do 4064 IFS=$as_save_IFS 4065 test -z "$as_dir" && as_dir=. 4066 for ac_exec_ext in '' $ac_executable_extensions; do 4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4068 ac_cv_prog_AWK="$ac_prog" 4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4070 break 2 4071 fi 4072done 4073 done 4074IFS=$as_save_IFS 4075 4076fi 4077fi 4078AWK=$ac_cv_prog_AWK 4079if test -n "$AWK"; then 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4081$as_echo "$AWK" >&6; } 4082else 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4084$as_echo "no" >&6; } 4085fi 4086 4087 4088 test -n "$AWK" && break 4089done 4090 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4093set x ${MAKE-make} 4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4096 $as_echo_n "(cached) " >&6 4097else 4098 cat >conftest.make <<\_ACEOF 4099SHELL = /bin/sh 4100all: 4101 @echo '@@@%%%=$(MAKE)=@@@%%%' 4102_ACEOF 4103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4104case `${MAKE-make} -f conftest.make 2>/dev/null` in 4105 *@@@%%%=?*=@@@%%%*) 4106 eval ac_cv_prog_make_${ac_make}_set=yes;; 4107 *) 4108 eval ac_cv_prog_make_${ac_make}_set=no;; 4109esac 4110rm -f conftest.make 4111fi 4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4114$as_echo "yes" >&6; } 4115 SET_MAKE= 4116else 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4118$as_echo "no" >&6; } 4119 SET_MAKE="MAKE=${MAKE-make}" 4120fi 4121 4122rm -rf .tst 2>/dev/null 4123mkdir .tst 2>/dev/null 4124if test -d .tst; then 4125 am__leading_dot=. 4126else 4127 am__leading_dot=_ 4128fi 4129rmdir .tst 2>/dev/null 4130 4131# Check whether --enable-silent-rules was given. 4132if test "${enable_silent_rules+set}" = set; then : 4133 enableval=$enable_silent_rules; 4134fi 4135 4136case $enable_silent_rules in # ((( 4137 yes) AM_DEFAULT_VERBOSITY=0;; 4138 no) AM_DEFAULT_VERBOSITY=1;; 4139 *) AM_DEFAULT_VERBOSITY=1;; 4140esac 4141am_make=${MAKE-make} 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4144if ${am_cv_make_support_nested_variables+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if $as_echo 'TRUE=$(BAR$(V)) 4148BAR0=false 4149BAR1=true 4150V=1 4151am__doit: 4152 @$(TRUE) 4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4154 am_cv_make_support_nested_variables=yes 4155else 4156 am_cv_make_support_nested_variables=no 4157fi 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4160$as_echo "$am_cv_make_support_nested_variables" >&6; } 4161if test $am_cv_make_support_nested_variables = yes; then 4162 AM_V='$(V)' 4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4164else 4165 AM_V=$AM_DEFAULT_VERBOSITY 4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4167fi 4168AM_BACKSLASH='\' 4169 4170if test "`cd $srcdir && pwd`" != "`pwd`"; then 4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4172 # is not polluted with repeated "-I." 4173 am__isrc=' -I$(srcdir)' 4174 # test to see if srcdir already configured 4175 if test -f $srcdir/config.status; then 4176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4177 fi 4178fi 4179 4180# test whether we have cygpath 4181if test -z "$CYGPATH_W"; then 4182 if (cygpath --version) >/dev/null 2>/dev/null; then 4183 CYGPATH_W='cygpath -w' 4184 else 4185 CYGPATH_W=echo 4186 fi 4187fi 4188 4189 4190# Define the identity of the package. 4191 PACKAGE='ImageMagick' 4192 VERSION='7.0.0-0' 4193 4194 4195cat >>confdefs.h <<_ACEOF 4196#define PACKAGE "$PACKAGE" 4197_ACEOF 4198 4199 4200cat >>confdefs.h <<_ACEOF 4201#define VERSION "$VERSION" 4202_ACEOF 4203 4204# Some tools Automake needs. 4205 4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4207 4208 4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4210 4211 4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4213 4214 4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4216 4217 4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4219 4220# For better backward compatibility. To be removed once Automake 1.9.x 4221# dies out for good. For more background, see: 4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4224mkdir_p='$(MKDIR_P)' 4225 4226# We need awk for the "check" target (and possibly the TAP driver). The 4227# system "awk" is bad on some platforms. 4228# Always define AMTAR for backward compatibility. Yes, it's still used 4229# in the wild :-( We should find a proper way to deprecate it ... 4230AMTAR='$${TAR-tar}' 4231 4232 4233# We'll loop over all known methods to create a tar archive until one works. 4234_am_tools='gnutar pax cpio none' 4235 4236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4237 4238 4239 4240 4241 4242 4243# POSIX will say in a future version that running "rm -f" with no argument 4244# is OK; and we want to be able to make that assumption in our Makefile 4245# recipes. So use an aggressive probe to check that the usage we want is 4246# actually supported "in the wild" to an acceptable degree. 4247# See automake bug#10828. 4248# To make any issue more visible, cause the running configure to be aborted 4249# by default if the 'rm' program in use doesn't match our expectations; the 4250# user can still override this though. 4251if rm -f && rm -fr && rm -rf; then : OK; else 4252 cat >&2 <<'END' 4253Oops! 4254 4255Your 'rm' program seems unable to run without file operands specified 4256on the command line, even when the '-f' option is present. This is contrary 4257to the behaviour of most rm programs out there, and not conforming with 4258the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4259 4260Please tell bug-automake@gnu.org about your system, including the value 4261of your $PATH and any error possibly output before this message. This 4262can help us improve future automake versions. 4263 4264END 4265 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4266 echo 'Configuration will proceed anyway, since you have set the' >&2 4267 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4268 echo >&2 4269 else 4270 cat >&2 <<'END' 4271Aborting the configuration process, to ensure you take notice of the issue. 4272 4273You can download and install GNU coreutils to get an 'rm' implementation 4274that behaves properly: <http://www.gnu.org/software/coreutils/>. 4275 4276If you want to complete the configuration process using your problematic 4277'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4278to "yes", and re-run configure. 4279 4280END 4281 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4282 fi 4283fi 4284 4285# Check whether --enable-silent-rules was given. 4286if test "${enable_silent_rules+set}" = set; then : 4287 enableval=$enable_silent_rules; 4288fi 4289 4290case $enable_silent_rules in # ((( 4291 yes) AM_DEFAULT_VERBOSITY=0;; 4292 no) AM_DEFAULT_VERBOSITY=1;; 4293 *) AM_DEFAULT_VERBOSITY=0;; 4294esac 4295am_make=${MAKE-make} 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4297$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4298if ${am_cv_make_support_nested_variables+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 if $as_echo 'TRUE=$(BAR$(V)) 4302BAR0=false 4303BAR1=true 4304V=1 4305am__doit: 4306 @$(TRUE) 4307.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4308 am_cv_make_support_nested_variables=yes 4309else 4310 am_cv_make_support_nested_variables=no 4311fi 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4314$as_echo "$am_cv_make_support_nested_variables" >&6; } 4315if test $am_cv_make_support_nested_variables = yes; then 4316 AM_V='$(V)' 4317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4318else 4319 AM_V=$AM_DEFAULT_VERBOSITY 4320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4321fi 4322AM_BACKSLASH='\' 4323 4324 4325# 4326# Save initial user-tunable values 4327# 4328USER_LIBS=$LIBS 4329for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do 4330 eval isset=\${$var+set} 4331 if test "$isset" = 'set'; then 4332 eval val=$`echo $var` 4333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 4334 fi 4335done 4336 4337 4338CONFIGURE_ARGS="$0 ${ac_configure_args}" 4339 4340 4341# Check whether --enable-reproducible-build was given. 4342if test "${enable_reproducible_build+set}" = set; then : 4343 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval 4344else 4345 enable_reproducible_build='no' 4346fi 4347 4348 4349# Source file containing package/library versioning information. 4350. ${srcdir}/version.sh 4351 4352echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 4353 4354MAGICK_TARGET_CPU=$host_cpu 4355 4356 4357cat >>confdefs.h <<_ACEOF 4358#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU 4359_ACEOF 4360 4361 4362MAGICK_TARGET_VENDOR=$host_vendor 4363 4364 4365cat >>confdefs.h <<_ACEOF 4366#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR 4367_ACEOF 4368 4369 4370MAGICK_TARGET_OS=$host_os 4371 4372 4373cat >>confdefs.h <<_ACEOF 4374#define MAGICK_TARGET_OS $MAGICK_TARGET_OS 4375_ACEOF 4376 4377 4378 4379# Substitute versioning 4380MAGICK_MAJOR_VERSION=7 4381 4382MAGICK_MINOR_VERSION=0 4383 4384MAGICK_MICRO_VERSION=0 4385 4386MAGICK_PATCHLEVEL_VERSION=0 4387 4388MAGICK_VERSION=7.0.0-0 4389 4390MAGICK_GIT_REVISION=17326:b7f3404:20151218 4391 4392 4393# Substitute library versioning 4394MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` 4395 4396MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE 4397 4398 4399MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE` 4400 4401MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE 4402 4403 4404if test X$enable_reproducible_build = Xyes; then : 4405 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE 4406elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then : 4407 4408fi 4409 4410 4411# Ensure that make can run correctly 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4413$as_echo_n "checking whether build environment is sane... " >&6; } 4414# Reject unsafe characters in $srcdir or the absolute working directory 4415# name. Accept space and tab only in the latter. 4416am_lf=' 4417' 4418case `pwd` in 4419 *[\\\"\#\$\&\'\`$am_lf]*) 4420 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4421esac 4422case $srcdir in 4423 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4424 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4425esac 4426 4427# Do 'set' in a subshell so we don't clobber the current shell's 4428# arguments. Must try -L first in case configure is actually a 4429# symlink; some systems play weird games with the mod time of symlinks 4430# (eg FreeBSD returns the mod time of the symlink's containing 4431# directory). 4432if ( 4433 am_has_slept=no 4434 for am_try in 1 2; do 4435 echo "timestamp, slept: $am_has_slept" > conftest.file 4436 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4437 if test "$*" = "X"; then 4438 # -L didn't work. 4439 set X `ls -t "$srcdir/configure" conftest.file` 4440 fi 4441 if test "$*" != "X $srcdir/configure conftest.file" \ 4442 && test "$*" != "X conftest.file $srcdir/configure"; then 4443 4444 # If neither matched, then we have a broken ls. This can happen 4445 # if, for instance, CONFIG_SHELL is bash and it inherits a 4446 # broken ls alias from the environment. This has actually 4447 # happened. Such a system could not be considered "sane". 4448 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4449 alias in your environment" "$LINENO" 5 4450 fi 4451 if test "$2" = conftest.file || test $am_try -eq 2; then 4452 break 4453 fi 4454 # Just in case. 4455 sleep 1 4456 am_has_slept=yes 4457 done 4458 test "$2" = conftest.file 4459 ) 4460then 4461 # Ok. 4462 : 4463else 4464 as_fn_error $? "newly created file is older than distributed files! 4465Check your system clock" "$LINENO" 5 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4468$as_echo "yes" >&6; } 4469# If we didn't sleep, we still need to ensure time stamps of config.status and 4470# generated files are strictly newer. 4471am_sleep_pid= 4472if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4473 ( sleep 1 ) & 4474 am_sleep_pid=$! 4475fi 4476 4477rm -f conftest.file 4478 4479 4480# versioning of library 4481MAGICK_LIB_VERSION="0x" 4482if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4484fi 4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 4486if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 4487 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4488fi 4489MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 4490if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 4491 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4492fi 4493MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 4494 4495 4496# Definition used to define MagickLibVersionText in version.h 4497MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4498 4499 4500# Definition used to define MagickLibVersionNumber in version.h 4501MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4502 4503 4504MAGICKPP_LIB_VERSION="0x" 4505if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then 4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4507fi 4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT} 4509if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then 4510 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4511fi 4512MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE} 4513if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then 4514 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4515fi 4516MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION} 4517 4518 4519# Definition used to define MagickLibVersionText in version.h 4520MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4521 4522 4523# Definition used to define MagickLibVersionNumber in version.h 4524MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4525 4526 4527 4528 4529# Regenerate config.status if ChangeLog or version.sh is updated. 4530CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' 4531 4532 4533PERLMAINCC=$CC 4534 4535MAGICK_CFLAGS='' 4536MAGICK_CPPFLAGS=$CPPFLAGS_USER 4537MAGICK_PCFLAGS=$CPPFLAGS_USER 4538MAGICK_LDFLAGS='' 4539MAGICK_LIBS='' 4540MAGICK_FEATURES='' 4541 4542# 4543# Evaluate shell variable equivalents to Makefile directory variables 4544# 4545if test "x$prefix" = xNONE; then 4546 prefix=$ac_default_prefix 4547fi 4548# Let make expand exec_prefix. 4549if test "x$exec_prefix" = xNONE; then 4550 exec_prefix='${prefix}' 4551fi 4552 4553# 4554eval "eval PREFIX_DIR=${prefix}" 4555 4556eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 4557 4558eval "eval BIN_DIR=$bindir" 4559 4560eval "eval SBIN_DIR=$sbindir" 4561 4562eval "eval LIBEXEC_DIR=$libexecdir" 4563 4564eval "eval DATA_DIR=$datadir" 4565 4566eval "eval DOC_DIR=$datadir/doc" 4567 4568eval "eval SYSCONF_DIR=$sysconfdir" 4569 4570eval "eval SHAREDSTATE_DIR=$sharedstatedir" 4571 4572eval "eval LOCALSTATE_DIR=$localstatedir" 4573 4574eval "eval LIB_DIR=$libdir" 4575 4576eval "eval INCLUDE_DIR=$includedir" 4577 4578eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 4579 4580eval "eval INFO_DIR=$infodir" 4581 4582eval "eval MAN_DIR=$mandir" 4583 4584 4585# Get full paths to source and build directories 4586srcdirfull="`cd $srcdir && pwd`" 4587builddir="`pwd`" 4588 4589# 4590# Compute variables useful for running uninstalled software. 4591# 4592MAGICK_CODER_MODULE_PATH="${builddir}/coders" 4593MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 4594MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 4595MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 4596DIRSEP=':' 4597case "${build_os}" in 4598 mingw* ) 4599 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 4600 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 4601 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 4602 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 4603 DIRSEP=';' 4604 ;; 4605esac 4606case "${host_os}" in 4607 mingw* ) 4608 DIRSEP=';' 4609 ;; 4610esac 4611 4612 4613 4614 4615 4616 4617 4618# 4619# Enable OS features. 4620# 4621DEPDIR="${am__leading_dot}deps" 4622 4623ac_config_commands="$ac_config_commands depfiles" 4624 4625 4626am_make=${MAKE-make} 4627cat > confinc << 'END' 4628am__doit: 4629 @echo this is the am__doit target 4630.PHONY: am__doit 4631END 4632# If we don't find an include directive, just comment out the code. 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4634$as_echo_n "checking for style of include used by $am_make... " >&6; } 4635am__include="#" 4636am__quote= 4637_am_result=none 4638# First try GNU make style include. 4639echo "include confinc" > confmf 4640# Ignore all kinds of additional output from 'make'. 4641case `$am_make -s -f confmf 2> /dev/null` in #( 4642*the\ am__doit\ target*) 4643 am__include=include 4644 am__quote= 4645 _am_result=GNU 4646 ;; 4647esac 4648# Now try BSD make style include. 4649if test "$am__include" = "#"; then 4650 echo '.include "confinc"' > confmf 4651 case `$am_make -s -f confmf 2> /dev/null` in #( 4652 *the\ am__doit\ target*) 4653 am__include=.include 4654 am__quote="\"" 4655 _am_result=BSD 4656 ;; 4657 esac 4658fi 4659 4660 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4662$as_echo "$_am_result" >&6; } 4663rm -f confinc confmf 4664 4665# Check whether --enable-dependency-tracking was given. 4666if test "${enable_dependency_tracking+set}" = set; then : 4667 enableval=$enable_dependency_tracking; 4668fi 4669 4670if test "x$enable_dependency_tracking" != xno; then 4671 am_depcomp="$ac_aux_dir/depcomp" 4672 AMDEPBACKSLASH='\' 4673 am__nodep='_no' 4674fi 4675 if test "x$enable_dependency_tracking" != xno; then 4676 AMDEP_TRUE= 4677 AMDEP_FALSE='#' 4678else 4679 AMDEP_TRUE='#' 4680 AMDEP_FALSE= 4681fi 4682 4683 4684ac_ext=c 4685ac_cpp='$CPP $CPPFLAGS' 4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4688ac_compiler_gnu=$ac_cv_c_compiler_gnu 4689if test -n "$ac_tool_prefix"; then 4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4691set dummy ${ac_tool_prefix}gcc; ac_word=$2 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4693$as_echo_n "checking for $ac_word... " >&6; } 4694if ${ac_cv_prog_CC+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 if test -n "$CC"; then 4698 ac_cv_prog_CC="$CC" # Let the user override the test. 4699else 4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701for as_dir in $PATH 4702do 4703 IFS=$as_save_IFS 4704 test -z "$as_dir" && as_dir=. 4705 for ac_exec_ext in '' $ac_executable_extensions; do 4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4707 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4709 break 2 4710 fi 4711done 4712 done 4713IFS=$as_save_IFS 4714 4715fi 4716fi 4717CC=$ac_cv_prog_CC 4718if test -n "$CC"; then 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4720$as_echo "$CC" >&6; } 4721else 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4723$as_echo "no" >&6; } 4724fi 4725 4726 4727fi 4728if test -z "$ac_cv_prog_CC"; then 4729 ac_ct_CC=$CC 4730 # Extract the first word of "gcc", so it can be a program name with args. 4731set dummy gcc; ac_word=$2 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733$as_echo_n "checking for $ac_word... " >&6; } 4734if ${ac_cv_prog_ac_ct_CC+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 if test -n "$ac_ct_CC"; then 4738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4739else 4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741for as_dir in $PATH 4742do 4743 IFS=$as_save_IFS 4744 test -z "$as_dir" && as_dir=. 4745 for ac_exec_ext in '' $ac_executable_extensions; do 4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4747 ac_cv_prog_ac_ct_CC="gcc" 4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4749 break 2 4750 fi 4751done 4752 done 4753IFS=$as_save_IFS 4754 4755fi 4756fi 4757ac_ct_CC=$ac_cv_prog_ac_ct_CC 4758if test -n "$ac_ct_CC"; then 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4760$as_echo "$ac_ct_CC" >&6; } 4761else 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4763$as_echo "no" >&6; } 4764fi 4765 4766 if test "x$ac_ct_CC" = x; then 4767 CC="" 4768 else 4769 case $cross_compiling:$ac_tool_warned in 4770yes:) 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4773ac_tool_warned=yes ;; 4774esac 4775 CC=$ac_ct_CC 4776 fi 4777else 4778 CC="$ac_cv_prog_CC" 4779fi 4780 4781if test -z "$CC"; then 4782 if test -n "$ac_tool_prefix"; then 4783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4784set dummy ${ac_tool_prefix}cc; ac_word=$2 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4786$as_echo_n "checking for $ac_word... " >&6; } 4787if ${ac_cv_prog_CC+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 if test -n "$CC"; then 4791 ac_cv_prog_CC="$CC" # Let the user override the test. 4792else 4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4794for as_dir in $PATH 4795do 4796 IFS=$as_save_IFS 4797 test -z "$as_dir" && as_dir=. 4798 for ac_exec_ext in '' $ac_executable_extensions; do 4799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4800 ac_cv_prog_CC="${ac_tool_prefix}cc" 4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4802 break 2 4803 fi 4804done 4805 done 4806IFS=$as_save_IFS 4807 4808fi 4809fi 4810CC=$ac_cv_prog_CC 4811if test -n "$CC"; then 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4813$as_echo "$CC" >&6; } 4814else 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4816$as_echo "no" >&6; } 4817fi 4818 4819 4820 fi 4821fi 4822if test -z "$CC"; then 4823 # Extract the first word of "cc", so it can be a program name with args. 4824set dummy cc; ac_word=$2 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4826$as_echo_n "checking for $ac_word... " >&6; } 4827if ${ac_cv_prog_CC+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 if test -n "$CC"; then 4831 ac_cv_prog_CC="$CC" # Let the user override the test. 4832else 4833 ac_prog_rejected=no 4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4835for as_dir in $PATH 4836do 4837 IFS=$as_save_IFS 4838 test -z "$as_dir" && as_dir=. 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4842 ac_prog_rejected=yes 4843 continue 4844 fi 4845 ac_cv_prog_CC="cc" 4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4847 break 2 4848 fi 4849done 4850 done 4851IFS=$as_save_IFS 4852 4853if test $ac_prog_rejected = yes; then 4854 # We found a bogon in the path, so make sure we never use it. 4855 set dummy $ac_cv_prog_CC 4856 shift 4857 if test $# != 0; then 4858 # We chose a different compiler from the bogus one. 4859 # However, it has the same basename, so the bogon will be chosen 4860 # first if we set CC to just the basename; use the full file name. 4861 shift 4862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4863 fi 4864fi 4865fi 4866fi 4867CC=$ac_cv_prog_CC 4868if test -n "$CC"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4870$as_echo "$CC" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 4877fi 4878if test -z "$CC"; then 4879 if test -n "$ac_tool_prefix"; then 4880 for ac_prog in cl.exe 4881 do 4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4885$as_echo_n "checking for $ac_word... " >&6; } 4886if ${ac_cv_prog_CC+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 if test -n "$CC"; then 4890 ac_cv_prog_CC="$CC" # Let the user override the test. 4891else 4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_exec_ext in '' $ac_executable_extensions; do 4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4901 break 2 4902 fi 4903done 4904 done 4905IFS=$as_save_IFS 4906 4907fi 4908fi 4909CC=$ac_cv_prog_CC 4910if test -n "$CC"; then 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4912$as_echo "$CC" >&6; } 4913else 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4915$as_echo "no" >&6; } 4916fi 4917 4918 4919 test -n "$CC" && break 4920 done 4921fi 4922if test -z "$CC"; then 4923 ac_ct_CC=$CC 4924 for ac_prog in cl.exe 4925do 4926 # Extract the first word of "$ac_prog", so it can be a program name with args. 4927set dummy $ac_prog; ac_word=$2 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4929$as_echo_n "checking for $ac_word... " >&6; } 4930if ${ac_cv_prog_ac_ct_CC+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 if test -n "$ac_ct_CC"; then 4934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4935else 4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 test -z "$as_dir" && as_dir=. 4941 for ac_exec_ext in '' $ac_executable_extensions; do 4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4943 ac_cv_prog_ac_ct_CC="$ac_prog" 4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4945 break 2 4946 fi 4947done 4948 done 4949IFS=$as_save_IFS 4950 4951fi 4952fi 4953ac_ct_CC=$ac_cv_prog_ac_ct_CC 4954if test -n "$ac_ct_CC"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4956$as_echo "$ac_ct_CC" >&6; } 4957else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4959$as_echo "no" >&6; } 4960fi 4961 4962 4963 test -n "$ac_ct_CC" && break 4964done 4965 4966 if test "x$ac_ct_CC" = x; then 4967 CC="" 4968 else 4969 case $cross_compiling:$ac_tool_warned in 4970yes:) 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4973ac_tool_warned=yes ;; 4974esac 4975 CC=$ac_ct_CC 4976 fi 4977fi 4978 4979fi 4980 4981 4982test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4984as_fn_error $? "no acceptable C compiler found in \$PATH 4985See \`config.log' for more details" "$LINENO" 5; } 4986 4987# Provide some information about the compiler. 4988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4989set X $ac_compile 4990ac_compiler=$2 4991for ac_option in --version -v -V -qversion; do 4992 { { ac_try="$ac_compiler $ac_option >&5" 4993case "(($ac_try" in 4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4995 *) ac_try_echo=$ac_try;; 4996esac 4997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4998$as_echo "$ac_try_echo"; } >&5 4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5000 ac_status=$? 5001 if test -s conftest.err; then 5002 sed '10a\ 5003... rest of stderr output deleted ... 5004 10q' conftest.err >conftest.er1 5005 cat conftest.er1 >&5 5006 fi 5007 rm -f conftest.er1 conftest.err 5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5009 test $ac_status = 0; } 5010done 5011 5012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014 5015int 5016main () 5017{ 5018 5019 ; 5020 return 0; 5021} 5022_ACEOF 5023ac_clean_files_save=$ac_clean_files 5024ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5025# Try to create an executable without -o first, disregard a.out. 5026# It will help us diagnose broken compilers, and finding out an intuition 5027# of exeext. 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5029$as_echo_n "checking whether the C compiler works... " >&6; } 5030ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5031 5032# The possible output files: 5033ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5034 5035ac_rmfiles= 5036for ac_file in $ac_files 5037do 5038 case $ac_file in 5039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5040 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5041 esac 5042done 5043rm -f $ac_rmfiles 5044 5045if { { ac_try="$ac_link_default" 5046case "(($ac_try" in 5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5048 *) ac_try_echo=$ac_try;; 5049esac 5050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5051$as_echo "$ac_try_echo"; } >&5 5052 (eval "$ac_link_default") 2>&5 5053 ac_status=$? 5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5055 test $ac_status = 0; }; then : 5056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5057# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5058# in a Makefile. We should not override ac_cv_exeext if it was cached, 5059# so that the user can short-circuit this test for compilers unknown to 5060# Autoconf. 5061for ac_file in $ac_files '' 5062do 5063 test -f "$ac_file" || continue 5064 case $ac_file in 5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5066 ;; 5067 [ab].out ) 5068 # We found the default executable, but exeext='' is most 5069 # certainly right. 5070 break;; 5071 *.* ) 5072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 5073 then :; else 5074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5075 fi 5076 # We set ac_cv_exeext here because the later test for it is not 5077 # safe: cross compilers may not add the suffix if given an `-o' 5078 # argument, so we may need to know it at that point already. 5079 # Even if this section looks crufty: it has the advantage of 5080 # actually working. 5081 break;; 5082 * ) 5083 break;; 5084 esac 5085done 5086test "$ac_cv_exeext" = no && ac_cv_exeext= 5087 5088else 5089 ac_file='' 5090fi 5091if test -z "$ac_file"; then : 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5093$as_echo "no" >&6; } 5094$as_echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5099as_fn_error 77 "C compiler cannot create executables 5100See \`config.log' for more details" "$LINENO" 5; } 5101else 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5103$as_echo "yes" >&6; } 5104fi 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5106$as_echo_n "checking for C compiler default output file name... " >&6; } 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5108$as_echo "$ac_file" >&6; } 5109ac_exeext=$ac_cv_exeext 5110 5111rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5112ac_clean_files=$ac_clean_files_save 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5114$as_echo_n "checking for suffix of executables... " >&6; } 5115if { { ac_try="$ac_link" 5116case "(($ac_try" in 5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5118 *) ac_try_echo=$ac_try;; 5119esac 5120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5121$as_echo "$ac_try_echo"; } >&5 5122 (eval "$ac_link") 2>&5 5123 ac_status=$? 5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5125 test $ac_status = 0; }; then : 5126 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5128# work properly (i.e., refer to `conftest.exe'), while it won't with 5129# `rm'. 5130for ac_file in conftest.exe conftest conftest.*; do 5131 test -f "$ac_file" || continue 5132 case $ac_file in 5133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5135 break;; 5136 * ) break;; 5137 esac 5138done 5139else 5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5142as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5143See \`config.log' for more details" "$LINENO" 5; } 5144fi 5145rm -f conftest conftest$ac_cv_exeext 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5147$as_echo "$ac_cv_exeext" >&6; } 5148 5149rm -f conftest.$ac_ext 5150EXEEXT=$ac_cv_exeext 5151ac_exeext=$EXEEXT 5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153/* end confdefs.h. */ 5154#include <stdio.h> 5155int 5156main () 5157{ 5158FILE *f = fopen ("conftest.out", "w"); 5159 return ferror (f) || fclose (f) != 0; 5160 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165ac_clean_files="$ac_clean_files conftest.out" 5166# Check that the compiler produces executables we can run. If not, either 5167# the compiler is broken, or we cross compile. 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5169$as_echo_n "checking whether we are cross compiling... " >&6; } 5170if test "$cross_compiling" != yes; then 5171 { { ac_try="$ac_link" 5172case "(($ac_try" in 5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5174 *) ac_try_echo=$ac_try;; 5175esac 5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5177$as_echo "$ac_try_echo"; } >&5 5178 (eval "$ac_link") 2>&5 5179 ac_status=$? 5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5181 test $ac_status = 0; } 5182 if { ac_try='./conftest$ac_cv_exeext' 5183 { { case "(($ac_try" in 5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5185 *) ac_try_echo=$ac_try;; 5186esac 5187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5188$as_echo "$ac_try_echo"; } >&5 5189 (eval "$ac_try") 2>&5 5190 ac_status=$? 5191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5192 test $ac_status = 0; }; }; then 5193 cross_compiling=no 5194 else 5195 if test "$cross_compiling" = maybe; then 5196 cross_compiling=yes 5197 else 5198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5200as_fn_error $? "cannot run C compiled programs. 5201If you meant to cross compile, use \`--host'. 5202See \`config.log' for more details" "$LINENO" 5; } 5203 fi 5204 fi 5205fi 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5207$as_echo "$cross_compiling" >&6; } 5208 5209rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5210ac_clean_files=$ac_clean_files_save 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5212$as_echo_n "checking for suffix of object files... " >&6; } 5213if ${ac_cv_objext+:} false; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218 5219int 5220main () 5221{ 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227rm -f conftest.o conftest.obj 5228if { { ac_try="$ac_compile" 5229case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232esac 5233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5234$as_echo "$ac_try_echo"; } >&5 5235 (eval "$ac_compile") 2>&5 5236 ac_status=$? 5237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5238 test $ac_status = 0; }; then : 5239 for ac_file in conftest.o conftest.obj conftest.*; do 5240 test -f "$ac_file" || continue; 5241 case $ac_file in 5242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5244 break;; 5245 esac 5246done 5247else 5248 $as_echo "$as_me: failed program was:" >&5 5249sed 's/^/| /' conftest.$ac_ext >&5 5250 5251{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5253as_fn_error $? "cannot compute suffix of object files: cannot compile 5254See \`config.log' for more details" "$LINENO" 5; } 5255fi 5256rm -f conftest.$ac_cv_objext conftest.$ac_ext 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5259$as_echo "$ac_cv_objext" >&6; } 5260OBJEXT=$ac_cv_objext 5261ac_objext=$OBJEXT 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5263$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5264if ${ac_cv_c_compiler_gnu+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268/* end confdefs.h. */ 5269 5270int 5271main () 5272{ 5273#ifndef __GNUC__ 5274 choke me 5275#endif 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281if ac_fn_c_try_compile "$LINENO"; then : 5282 ac_compiler_gnu=yes 5283else 5284 ac_compiler_gnu=no 5285fi 5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5287ac_cv_c_compiler_gnu=$ac_compiler_gnu 5288 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5291$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5292if test $ac_compiler_gnu = yes; then 5293 GCC=yes 5294else 5295 GCC= 5296fi 5297ac_test_CFLAGS=${CFLAGS+set} 5298ac_save_CFLAGS=$CFLAGS 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5300$as_echo_n "checking whether $CC accepts -g... " >&6; } 5301if ${ac_cv_prog_cc_g+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 ac_save_c_werror_flag=$ac_c_werror_flag 5305 ac_c_werror_flag=yes 5306 ac_cv_prog_cc_g=no 5307 CFLAGS="-g" 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309/* end confdefs.h. */ 5310 5311int 5312main () 5313{ 5314 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319if ac_fn_c_try_compile "$LINENO"; then : 5320 ac_cv_prog_cc_g=yes 5321else 5322 CFLAGS="" 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325 5326int 5327main () 5328{ 5329 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334if ac_fn_c_try_compile "$LINENO"; then : 5335 5336else 5337 ac_c_werror_flag=$ac_save_c_werror_flag 5338 CFLAGS="-g" 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340/* end confdefs.h. */ 5341 5342int 5343main () 5344{ 5345 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350if ac_fn_c_try_compile "$LINENO"; then : 5351 ac_cv_prog_cc_g=yes 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354fi 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5358 ac_c_werror_flag=$ac_save_c_werror_flag 5359fi 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5361$as_echo "$ac_cv_prog_cc_g" >&6; } 5362if test "$ac_test_CFLAGS" = set; then 5363 CFLAGS=$ac_save_CFLAGS 5364elif test $ac_cv_prog_cc_g = yes; then 5365 if test "$GCC" = yes; then 5366 CFLAGS="-g -O2" 5367 else 5368 CFLAGS="-g" 5369 fi 5370else 5371 if test "$GCC" = yes; then 5372 CFLAGS="-O2" 5373 else 5374 CFLAGS= 5375 fi 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5379if ${ac_cv_prog_cc_c89+:} false; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 ac_cv_prog_cc_c89=no 5383ac_save_CC=$CC 5384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386#include <stdarg.h> 5387#include <stdio.h> 5388struct stat; 5389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5390struct buf { int x; }; 5391FILE * (*rcsopen) (struct buf *, struct stat *, int); 5392static char *e (p, i) 5393 char **p; 5394 int i; 5395{ 5396 return p[i]; 5397} 5398static char *f (char * (*g) (char **, int), char **p, ...) 5399{ 5400 char *s; 5401 va_list v; 5402 va_start (v,p); 5403 s = g (p, va_arg (v,int)); 5404 va_end (v); 5405 return s; 5406} 5407 5408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5409 function prototypes and stuff, but not '\xHH' hex character constants. 5410 These don't provoke an error unfortunately, instead are silently treated 5411 as 'x'. The following induces an error, until -std is added to get 5412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5413 array size at least. It's necessary to write '\x00'==0 to get something 5414 that's true only with -std. */ 5415int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5416 5417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5418 inside strings and character constants. */ 5419#define FOO(x) 'x' 5420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5421 5422int test (int i, double x); 5423struct s1 {int (*f) (int a);}; 5424struct s2 {int (*f) (double a);}; 5425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5426int argc; 5427char **argv; 5428int 5429main () 5430{ 5431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5432 ; 5433 return 0; 5434} 5435_ACEOF 5436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5438do 5439 CC="$ac_save_CC $ac_arg" 5440 if ac_fn_c_try_compile "$LINENO"; then : 5441 ac_cv_prog_cc_c89=$ac_arg 5442fi 5443rm -f core conftest.err conftest.$ac_objext 5444 test "x$ac_cv_prog_cc_c89" != "xno" && break 5445done 5446rm -f conftest.$ac_ext 5447CC=$ac_save_CC 5448 5449fi 5450# AC_CACHE_VAL 5451case "x$ac_cv_prog_cc_c89" in 5452 x) 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5454$as_echo "none needed" >&6; } ;; 5455 xno) 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5457$as_echo "unsupported" >&6; } ;; 5458 *) 5459 CC="$CC $ac_cv_prog_cc_c89" 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5461$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5462esac 5463if test "x$ac_cv_prog_cc_c89" != xno; then : 5464 5465fi 5466 5467ac_ext=c 5468ac_cpp='$CPP $CPPFLAGS' 5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5471ac_compiler_gnu=$ac_cv_c_compiler_gnu 5472 5473ac_ext=c 5474ac_cpp='$CPP $CPPFLAGS' 5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5477ac_compiler_gnu=$ac_cv_c_compiler_gnu 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5479$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5480if ${am_cv_prog_cc_c_o+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485 5486int 5487main () 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494 # Make sure it works both with $CC and with simple cc. 5495 # Following AC_PROG_CC_C_O, we do the test twice because some 5496 # compilers refuse to overwrite an existing .o file with -o, 5497 # though they will create one. 5498 am_cv_prog_cc_c_o=yes 5499 for am_i in 1 2; do 5500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5502 ac_status=$? 5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5504 (exit $ac_status); } \ 5505 && test -f conftest2.$ac_objext; then 5506 : OK 5507 else 5508 am_cv_prog_cc_c_o=no 5509 break 5510 fi 5511 done 5512 rm -f core conftest* 5513 unset am_i 5514fi 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5516$as_echo "$am_cv_prog_cc_c_o" >&6; } 5517if test "$am_cv_prog_cc_c_o" != yes; then 5518 # Losing compiler, so override with the script. 5519 # FIXME: It is wrong to rewrite CC. 5520 # But if we don't then we get into trouble of one sort or another. 5521 # A longer-term fix would be to have automake use am__CC in this case, 5522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5523 CC="$am_aux_dir/compile $CC" 5524fi 5525ac_ext=c 5526ac_cpp='$CPP $CPPFLAGS' 5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5529ac_compiler_gnu=$ac_cv_c_compiler_gnu 5530 5531 5532depcc="$CC" am_compiler_list= 5533 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5535$as_echo_n "checking dependency style of $depcc... " >&6; } 5536if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5540 # We make a subdir and do the tests there. Otherwise we can end up 5541 # making bogus files that we don't know about and never remove. For 5542 # instance it was reported that on HP-UX the gcc test will end up 5543 # making a dummy file named 'D' -- because '-MD' means "put the output 5544 # in D". 5545 rm -rf conftest.dir 5546 mkdir conftest.dir 5547 # Copy depcomp to subdir because otherwise we won't find it if we're 5548 # using a relative directory. 5549 cp "$am_depcomp" conftest.dir 5550 cd conftest.dir 5551 # We will build objects and dependencies in a subdirectory because 5552 # it helps to detect inapplicable dependency modes. For instance 5553 # both Tru64's cc and ICC support -MD to output dependencies as a 5554 # side effect of compilation, but ICC will put the dependencies in 5555 # the current directory while Tru64 will put them in the object 5556 # directory. 5557 mkdir sub 5558 5559 am_cv_CC_dependencies_compiler_type=none 5560 if test "$am_compiler_list" = ""; then 5561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5562 fi 5563 am__universal=false 5564 case " $depcc " in #( 5565 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5566 esac 5567 5568 for depmode in $am_compiler_list; do 5569 # Setup a source with many dependencies, because some compilers 5570 # like to wrap large dependency lists on column 80 (with \), and 5571 # we should not choose a depcomp mode which is confused by this. 5572 # 5573 # We need to recreate these files for each test, as the compiler may 5574 # overwrite some of them when testing with obscure command lines. 5575 # This happens at least with the AIX C compiler. 5576 : > sub/conftest.c 5577 for i in 1 2 3 4 5 6; do 5578 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5580 # Solaris 10 /bin/sh. 5581 echo '/* dummy */' > sub/conftst$i.h 5582 done 5583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5584 5585 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5586 # mode. It turns out that the SunPro C++ compiler does not properly 5587 # handle '-M -o', and we need to detect this. Also, some Intel 5588 # versions had trouble with output in subdirs. 5589 am__obj=sub/conftest.${OBJEXT-o} 5590 am__minus_obj="-o $am__obj" 5591 case $depmode in 5592 gcc) 5593 # This depmode causes a compiler race in universal mode. 5594 test "$am__universal" = false || continue 5595 ;; 5596 nosideeffect) 5597 # After this tag, mechanisms are not by side-effect, so they'll 5598 # only be used when explicitly requested. 5599 if test "x$enable_dependency_tracking" = xyes; then 5600 continue 5601 else 5602 break 5603 fi 5604 ;; 5605 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5606 # This compiler won't grok '-c -o', but also, the minuso test has 5607 # not run yet. These depmodes are late enough in the game, and 5608 # so weak that their functioning should not be impacted. 5609 am__obj=conftest.${OBJEXT-o} 5610 am__minus_obj= 5611 ;; 5612 none) break ;; 5613 esac 5614 if depmode=$depmode \ 5615 source=sub/conftest.c object=$am__obj \ 5616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5618 >/dev/null 2>conftest.err && 5619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5623 # icc doesn't choke on unknown options, it will just issue warnings 5624 # or remarks (even with -Werror). So we grep stderr for any message 5625 # that says an option was ignored or not supported. 5626 # When given -MP, icc 7.0 and 7.1 complain thusly: 5627 # icc: Command line warning: ignoring option '-M'; no argument required 5628 # The diagnosis changed in icc 8.0: 5629 # icc: Command line remark: option '-MP' not supported 5630 if (grep 'ignoring option' conftest.err || 5631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5632 am_cv_CC_dependencies_compiler_type=$depmode 5633 break 5634 fi 5635 fi 5636 done 5637 5638 cd .. 5639 rm -rf conftest.dir 5640else 5641 am_cv_CC_dependencies_compiler_type=none 5642fi 5643 5644fi 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5646$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5648 5649 if 5650 test "x$enable_dependency_tracking" != xno \ 5651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5652 am__fastdepCC_TRUE= 5653 am__fastdepCC_FALSE='#' 5654else 5655 am__fastdepCC_TRUE='#' 5656 am__fastdepCC_FALSE= 5657fi 5658 5659 5660 5661ac_ext=c 5662ac_cpp='$CPP $CPPFLAGS' 5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5665ac_compiler_gnu=$ac_cv_c_compiler_gnu 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5667$as_echo_n "checking how to run the C preprocessor... " >&6; } 5668# On Suns, sometimes $CPP names a directory. 5669if test -n "$CPP" && test -d "$CPP"; then 5670 CPP= 5671fi 5672if test -z "$CPP"; then 5673 if ${ac_cv_prog_CPP+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675else 5676 # Double quotes because CPP needs to be expanded 5677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5678 do 5679 ac_preproc_ok=false 5680for ac_c_preproc_warn_flag in '' yes 5681do 5682 # Use a header file that comes with gcc, so configuring glibc 5683 # with a fresh cross-compiler works. 5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5685 # <limits.h> exists even on freestanding compilers. 5686 # On the NeXT, cc -E runs the code through the compiler's parser, 5687 # not just through cpp. "Syntax error" is here to catch this case. 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690#ifdef __STDC__ 5691# include <limits.h> 5692#else 5693# include <assert.h> 5694#endif 5695 Syntax error 5696_ACEOF 5697if ac_fn_c_try_cpp "$LINENO"; then : 5698 5699else 5700 # Broken: fails on valid input. 5701continue 5702fi 5703rm -f conftest.err conftest.i conftest.$ac_ext 5704 5705 # OK, works on sane cases. Now check whether nonexistent headers 5706 # can be detected and how. 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709#include <ac_nonexistent.h> 5710_ACEOF 5711if ac_fn_c_try_cpp "$LINENO"; then : 5712 # Broken: success on invalid input. 5713continue 5714else 5715 # Passes both tests. 5716ac_preproc_ok=: 5717break 5718fi 5719rm -f conftest.err conftest.i conftest.$ac_ext 5720 5721done 5722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5723rm -f conftest.i conftest.err conftest.$ac_ext 5724if $ac_preproc_ok; then : 5725 break 5726fi 5727 5728 done 5729 ac_cv_prog_CPP=$CPP 5730 5731fi 5732 CPP=$ac_cv_prog_CPP 5733else 5734 ac_cv_prog_CPP=$CPP 5735fi 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5737$as_echo "$CPP" >&6; } 5738ac_preproc_ok=false 5739for ac_c_preproc_warn_flag in '' yes 5740do 5741 # Use a header file that comes with gcc, so configuring glibc 5742 # with a fresh cross-compiler works. 5743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5744 # <limits.h> exists even on freestanding compilers. 5745 # On the NeXT, cc -E runs the code through the compiler's parser, 5746 # not just through cpp. "Syntax error" is here to catch this case. 5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5748/* end confdefs.h. */ 5749#ifdef __STDC__ 5750# include <limits.h> 5751#else 5752# include <assert.h> 5753#endif 5754 Syntax error 5755_ACEOF 5756if ac_fn_c_try_cpp "$LINENO"; then : 5757 5758else 5759 # Broken: fails on valid input. 5760continue 5761fi 5762rm -f conftest.err conftest.i conftest.$ac_ext 5763 5764 # OK, works on sane cases. Now check whether nonexistent headers 5765 # can be detected and how. 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5767/* end confdefs.h. */ 5768#include <ac_nonexistent.h> 5769_ACEOF 5770if ac_fn_c_try_cpp "$LINENO"; then : 5771 # Broken: success on invalid input. 5772continue 5773else 5774 # Passes both tests. 5775ac_preproc_ok=: 5776break 5777fi 5778rm -f conftest.err conftest.i conftest.$ac_ext 5779 5780done 5781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5782rm -f conftest.i conftest.err conftest.$ac_ext 5783if $ac_preproc_ok; then : 5784 5785else 5786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5788as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5789See \`config.log' for more details" "$LINENO" 5; } 5790fi 5791 5792ac_ext=c 5793ac_cpp='$CPP $CPPFLAGS' 5794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5796ac_compiler_gnu=$ac_cv_c_compiler_gnu 5797 5798 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5800$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5801if ${ac_cv_path_GREP+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 if test -z "$GREP"; then 5805 ac_path_GREP_found=false 5806 # Loop through the user's path and test for each of PROGNAME-LIST 5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5809do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_prog in grep ggrep; do 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5815 as_fn_executable_p "$ac_path_GREP" || continue 5816# Check for GNU ac_path_GREP and select it if it is found. 5817 # Check for GNU $ac_path_GREP 5818case `"$ac_path_GREP" --version 2>&1` in 5819*GNU*) 5820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5821*) 5822 ac_count=0 5823 $as_echo_n 0123456789 >"conftest.in" 5824 while : 5825 do 5826 cat "conftest.in" "conftest.in" >"conftest.tmp" 5827 mv "conftest.tmp" "conftest.in" 5828 cp "conftest.in" "conftest.nl" 5829 $as_echo 'GREP' >> "conftest.nl" 5830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5832 as_fn_arith $ac_count + 1 && ac_count=$as_val 5833 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5834 # Best one so far, save it but keep looking for a better one 5835 ac_cv_path_GREP="$ac_path_GREP" 5836 ac_path_GREP_max=$ac_count 5837 fi 5838 # 10*(2^10) chars as input seems more than enough 5839 test $ac_count -gt 10 && break 5840 done 5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5842esac 5843 5844 $ac_path_GREP_found && break 3 5845 done 5846 done 5847 done 5848IFS=$as_save_IFS 5849 if test -z "$ac_cv_path_GREP"; then 5850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5851 fi 5852else 5853 ac_cv_path_GREP=$GREP 5854fi 5855 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5858$as_echo "$ac_cv_path_GREP" >&6; } 5859 GREP="$ac_cv_path_GREP" 5860 5861 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5863$as_echo_n "checking for egrep... " >&6; } 5864if ${ac_cv_path_EGREP+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5868 then ac_cv_path_EGREP="$GREP -E" 5869 else 5870 if test -z "$EGREP"; then 5871 ac_path_EGREP_found=false 5872 # Loop through the user's path and test for each of PROGNAME-LIST 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_prog in egrep; do 5879 for ac_exec_ext in '' $ac_executable_extensions; do 5880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5881 as_fn_executable_p "$ac_path_EGREP" || continue 5882# Check for GNU ac_path_EGREP and select it if it is found. 5883 # Check for GNU $ac_path_EGREP 5884case `"$ac_path_EGREP" --version 2>&1` in 5885*GNU*) 5886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5887*) 5888 ac_count=0 5889 $as_echo_n 0123456789 >"conftest.in" 5890 while : 5891 do 5892 cat "conftest.in" "conftest.in" >"conftest.tmp" 5893 mv "conftest.tmp" "conftest.in" 5894 cp "conftest.in" "conftest.nl" 5895 $as_echo 'EGREP' >> "conftest.nl" 5896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5898 as_fn_arith $ac_count + 1 && ac_count=$as_val 5899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5900 # Best one so far, save it but keep looking for a better one 5901 ac_cv_path_EGREP="$ac_path_EGREP" 5902 ac_path_EGREP_max=$ac_count 5903 fi 5904 # 10*(2^10) chars as input seems more than enough 5905 test $ac_count -gt 10 && break 5906 done 5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5908esac 5909 5910 $ac_path_EGREP_found && break 3 5911 done 5912 done 5913 done 5914IFS=$as_save_IFS 5915 if test -z "$ac_cv_path_EGREP"; then 5916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5917 fi 5918else 5919 ac_cv_path_EGREP=$EGREP 5920fi 5921 5922 fi 5923fi 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5925$as_echo "$ac_cv_path_EGREP" >&6; } 5926 EGREP="$ac_cv_path_EGREP" 5927 5928 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5930$as_echo_n "checking for ANSI C header files... " >&6; } 5931if ${ac_cv_header_stdc+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935/* end confdefs.h. */ 5936#include <stdlib.h> 5937#include <stdarg.h> 5938#include <string.h> 5939#include <float.h> 5940 5941int 5942main () 5943{ 5944 5945 ; 5946 return 0; 5947} 5948_ACEOF 5949if ac_fn_c_try_compile "$LINENO"; then : 5950 ac_cv_header_stdc=yes 5951else 5952 ac_cv_header_stdc=no 5953fi 5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5955 5956if test $ac_cv_header_stdc = yes; then 5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960#include <string.h> 5961 5962_ACEOF 5963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5964 $EGREP "memchr" >/dev/null 2>&1; then : 5965 5966else 5967 ac_cv_header_stdc=no 5968fi 5969rm -f conftest* 5970 5971fi 5972 5973if test $ac_cv_header_stdc = yes; then 5974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977#include <stdlib.h> 5978 5979_ACEOF 5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5981 $EGREP "free" >/dev/null 2>&1; then : 5982 5983else 5984 ac_cv_header_stdc=no 5985fi 5986rm -f conftest* 5987 5988fi 5989 5990if test $ac_cv_header_stdc = yes; then 5991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5992 if test "$cross_compiling" = yes; then : 5993 : 5994else 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997#include <ctype.h> 5998#include <stdlib.h> 5999#if ((' ' & 0x0FF) == 0x020) 6000# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6001# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6002#else 6003# define ISLOWER(c) \ 6004 (('a' <= (c) && (c) <= 'i') \ 6005 || ('j' <= (c) && (c) <= 'r') \ 6006 || ('s' <= (c) && (c) <= 'z')) 6007# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6008#endif 6009 6010#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6011int 6012main () 6013{ 6014 int i; 6015 for (i = 0; i < 256; i++) 6016 if (XOR (islower (i), ISLOWER (i)) 6017 || toupper (i) != TOUPPER (i)) 6018 return 2; 6019 return 0; 6020} 6021_ACEOF 6022if ac_fn_c_try_run "$LINENO"; then : 6023 6024else 6025 ac_cv_header_stdc=no 6026fi 6027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6028 conftest.$ac_objext conftest.beam conftest.$ac_ext 6029fi 6030 6031fi 6032fi 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6034$as_echo "$ac_cv_header_stdc" >&6; } 6035if test $ac_cv_header_stdc = yes; then 6036 6037$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6038 6039fi 6040 6041# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6042for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6043 inttypes.h stdint.h unistd.h 6044do : 6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6047" 6048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6049 cat >>confdefs.h <<_ACEOF 6050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6051_ACEOF 6052 6053fi 6054 6055done 6056 6057 6058 6059 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6060if test "x$ac_cv_header_minix_config_h" = xyes; then : 6061 MINIX=yes 6062else 6063 MINIX= 6064fi 6065 6066 6067 if test "$MINIX" = yes; then 6068 6069$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6070 6071 6072$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6073 6074 6075$as_echo "#define _MINIX 1" >>confdefs.h 6076 6077 fi 6078 6079 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6081$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6082if ${ac_cv_safe_to_define___extensions__+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087 6088# define __EXTENSIONS__ 1 6089 $ac_includes_default 6090int 6091main () 6092{ 6093 6094 ; 6095 return 0; 6096} 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 ac_cv_safe_to_define___extensions__=yes 6100else 6101 ac_cv_safe_to_define___extensions__=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6106$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6107 test $ac_cv_safe_to_define___extensions__ = yes && 6108 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6109 6110 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6111 6112 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6113 6114 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6115 6116 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6117 6118 6119 6120# ============================================================================== 6121# Find required base packages 6122# ============================================================================== 6123if test -n "$ac_tool_prefix"; then 6124 for ac_prog in ar lib "link -lib" 6125 do 6126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6127set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6129$as_echo_n "checking for $ac_word... " >&6; } 6130if ${ac_cv_prog_AR+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 if test -n "$AR"; then 6134 ac_cv_prog_AR="$AR" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 test -z "$as_dir" && as_dir=. 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6143 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6145 break 2 6146 fi 6147done 6148 done 6149IFS=$as_save_IFS 6150 6151fi 6152fi 6153AR=$ac_cv_prog_AR 6154if test -n "$AR"; then 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6156$as_echo "$AR" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159$as_echo "no" >&6; } 6160fi 6161 6162 6163 test -n "$AR" && break 6164 done 6165fi 6166if test -z "$AR"; then 6167 ac_ct_AR=$AR 6168 for ac_prog in ar lib "link -lib" 6169do 6170 # Extract the first word of "$ac_prog", so it can be a program name with args. 6171set dummy $ac_prog; ac_word=$2 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6173$as_echo_n "checking for $ac_word... " >&6; } 6174if ${ac_cv_prog_ac_ct_AR+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 if test -n "$ac_ct_AR"; then 6178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6179else 6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6181for as_dir in $PATH 6182do 6183 IFS=$as_save_IFS 6184 test -z "$as_dir" && as_dir=. 6185 for ac_exec_ext in '' $ac_executable_extensions; do 6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6187 ac_cv_prog_ac_ct_AR="$ac_prog" 6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6189 break 2 6190 fi 6191done 6192 done 6193IFS=$as_save_IFS 6194 6195fi 6196fi 6197ac_ct_AR=$ac_cv_prog_ac_ct_AR 6198if test -n "$ac_ct_AR"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6200$as_echo "$ac_ct_AR" >&6; } 6201else 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6203$as_echo "no" >&6; } 6204fi 6205 6206 6207 test -n "$ac_ct_AR" && break 6208done 6209 6210 if test "x$ac_ct_AR" = x; then 6211 AR="false" 6212 else 6213 case $cross_compiling:$ac_tool_warned in 6214yes:) 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6217ac_tool_warned=yes ;; 6218esac 6219 AR=$ac_ct_AR 6220 fi 6221fi 6222 6223: ${AR=ar} 6224 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6226$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6227if ${am_cv_ar_interface+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 ac_ext=c 6231ac_cpp='$CPP $CPPFLAGS' 6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6234ac_compiler_gnu=$ac_cv_c_compiler_gnu 6235 6236 am_cv_ar_interface=ar 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int some_variable = 0; 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO"; then : 6242 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6244 (eval $am_ar_try) 2>&5 6245 ac_status=$? 6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6247 test $ac_status = 0; } 6248 if test "$ac_status" -eq 0; then 6249 am_cv_ar_interface=ar 6250 else 6251 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6253 (eval $am_ar_try) 2>&5 6254 ac_status=$? 6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6256 test $ac_status = 0; } 6257 if test "$ac_status" -eq 0; then 6258 am_cv_ar_interface=lib 6259 else 6260 am_cv_ar_interface=unknown 6261 fi 6262 fi 6263 rm -f conftest.lib libconftest.a 6264 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6267 ac_ext=c 6268ac_cpp='$CPP $CPPFLAGS' 6269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6271ac_compiler_gnu=$ac_cv_c_compiler_gnu 6272 6273fi 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6275$as_echo "$am_cv_ar_interface" >&6; } 6276 6277case $am_cv_ar_interface in 6278ar) 6279 ;; 6280lib) 6281 # Microsoft lib, so override with the ar-lib wrapper script. 6282 # FIXME: It is wrong to rewrite AR. 6283 # But if we don't then we get into trouble of one sort or another. 6284 # A longer-term fix would be to have automake use am__AR in this case, 6285 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6286 # similar. 6287 AR="$am_aux_dir/ar-lib $AR" 6288 ;; 6289unknown) 6290 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6291 ;; 6292esac 6293 6294ac_ext=c 6295ac_cpp='$CPP $CPPFLAGS' 6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6298ac_compiler_gnu=$ac_cv_c_compiler_gnu 6299if test -n "$ac_tool_prefix"; then 6300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6301set dummy ${ac_tool_prefix}gcc; ac_word=$2 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6303$as_echo_n "checking for $ac_word... " >&6; } 6304if ${ac_cv_prog_CC+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 if test -n "$CC"; then 6308 ac_cv_prog_CC="$CC" # Let the user override the test. 6309else 6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6311for as_dir in $PATH 6312do 6313 IFS=$as_save_IFS 6314 test -z "$as_dir" && as_dir=. 6315 for ac_exec_ext in '' $ac_executable_extensions; do 6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6317 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6319 break 2 6320 fi 6321done 6322 done 6323IFS=$as_save_IFS 6324 6325fi 6326fi 6327CC=$ac_cv_prog_CC 6328if test -n "$CC"; then 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6330$as_echo "$CC" >&6; } 6331else 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6333$as_echo "no" >&6; } 6334fi 6335 6336 6337fi 6338if test -z "$ac_cv_prog_CC"; then 6339 ac_ct_CC=$CC 6340 # Extract the first word of "gcc", so it can be a program name with args. 6341set dummy gcc; ac_word=$2 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343$as_echo_n "checking for $ac_word... " >&6; } 6344if ${ac_cv_prog_ac_ct_CC+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 if test -n "$ac_ct_CC"; then 6348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6357 ac_cv_prog_ac_ct_CC="gcc" 6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362 done 6363IFS=$as_save_IFS 6364 6365fi 6366fi 6367ac_ct_CC=$ac_cv_prog_ac_ct_CC 6368if test -n "$ac_ct_CC"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6370$as_echo "$ac_ct_CC" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 if test "x$ac_ct_CC" = x; then 6377 CC="" 6378 else 6379 case $cross_compiling:$ac_tool_warned in 6380yes:) 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6383ac_tool_warned=yes ;; 6384esac 6385 CC=$ac_ct_CC 6386 fi 6387else 6388 CC="$ac_cv_prog_CC" 6389fi 6390 6391if test -z "$CC"; then 6392 if test -n "$ac_tool_prefix"; then 6393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6394set dummy ${ac_tool_prefix}cc; ac_word=$2 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6396$as_echo_n "checking for $ac_word... " >&6; } 6397if ${ac_cv_prog_CC+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 if test -n "$CC"; then 6401 ac_cv_prog_CC="$CC" # Let the user override the test. 6402else 6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404for as_dir in $PATH 6405do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6410 ac_cv_prog_CC="${ac_tool_prefix}cc" 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414done 6415 done 6416IFS=$as_save_IFS 6417 6418fi 6419fi 6420CC=$ac_cv_prog_CC 6421if test -n "$CC"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6423$as_echo "$CC" >&6; } 6424else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426$as_echo "no" >&6; } 6427fi 6428 6429 6430 fi 6431fi 6432if test -z "$CC"; then 6433 # Extract the first word of "cc", so it can be a program name with args. 6434set dummy cc; ac_word=$2 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6436$as_echo_n "checking for $ac_word... " >&6; } 6437if ${ac_cv_prog_CC+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 if test -n "$CC"; then 6441 ac_cv_prog_CC="$CC" # Let the user override the test. 6442else 6443 ac_prog_rejected=no 6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6445for as_dir in $PATH 6446do 6447 IFS=$as_save_IFS 6448 test -z "$as_dir" && as_dir=. 6449 for ac_exec_ext in '' $ac_executable_extensions; do 6450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6452 ac_prog_rejected=yes 6453 continue 6454 fi 6455 ac_cv_prog_CC="cc" 6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6457 break 2 6458 fi 6459done 6460 done 6461IFS=$as_save_IFS 6462 6463if test $ac_prog_rejected = yes; then 6464 # We found a bogon in the path, so make sure we never use it. 6465 set dummy $ac_cv_prog_CC 6466 shift 6467 if test $# != 0; then 6468 # We chose a different compiler from the bogus one. 6469 # However, it has the same basename, so the bogon will be chosen 6470 # first if we set CC to just the basename; use the full file name. 6471 shift 6472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6473 fi 6474fi 6475fi 6476fi 6477CC=$ac_cv_prog_CC 6478if test -n "$CC"; then 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6480$as_echo "$CC" >&6; } 6481else 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6483$as_echo "no" >&6; } 6484fi 6485 6486 6487fi 6488if test -z "$CC"; then 6489 if test -n "$ac_tool_prefix"; then 6490 for ac_prog in cl.exe 6491 do 6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6493set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495$as_echo_n "checking for $ac_word... " >&6; } 6496if ${ac_cv_prog_CC+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 if test -n "$CC"; then 6500 ac_cv_prog_CC="$CC" # Let the user override the test. 6501else 6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6503for as_dir in $PATH 6504do 6505 IFS=$as_save_IFS 6506 test -z "$as_dir" && as_dir=. 6507 for ac_exec_ext in '' $ac_executable_extensions; do 6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6511 break 2 6512 fi 6513done 6514 done 6515IFS=$as_save_IFS 6516 6517fi 6518fi 6519CC=$ac_cv_prog_CC 6520if test -n "$CC"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6522$as_echo "$CC" >&6; } 6523else 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6525$as_echo "no" >&6; } 6526fi 6527 6528 6529 test -n "$CC" && break 6530 done 6531fi 6532if test -z "$CC"; then 6533 ac_ct_CC=$CC 6534 for ac_prog in cl.exe 6535do 6536 # Extract the first word of "$ac_prog", so it can be a program name with args. 6537set dummy $ac_prog; ac_word=$2 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539$as_echo_n "checking for $ac_word... " >&6; } 6540if ${ac_cv_prog_ac_ct_CC+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -n "$ac_ct_CC"; then 6544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6545else 6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6553 ac_cv_prog_ac_ct_CC="$ac_prog" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561fi 6562fi 6563ac_ct_CC=$ac_cv_prog_ac_ct_CC 6564if test -n "$ac_ct_CC"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6566$as_echo "$ac_ct_CC" >&6; } 6567else 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569$as_echo "no" >&6; } 6570fi 6571 6572 6573 test -n "$ac_ct_CC" && break 6574done 6575 6576 if test "x$ac_ct_CC" = x; then 6577 CC="" 6578 else 6579 case $cross_compiling:$ac_tool_warned in 6580yes:) 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6583ac_tool_warned=yes ;; 6584esac 6585 CC=$ac_ct_CC 6586 fi 6587fi 6588 6589fi 6590 6591 6592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6594as_fn_error $? "no acceptable C compiler found in \$PATH 6595See \`config.log' for more details" "$LINENO" 5; } 6596 6597# Provide some information about the compiler. 6598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6599set X $ac_compile 6600ac_compiler=$2 6601for ac_option in --version -v -V -qversion; do 6602 { { ac_try="$ac_compiler $ac_option >&5" 6603case "(($ac_try" in 6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6605 *) ac_try_echo=$ac_try;; 6606esac 6607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6608$as_echo "$ac_try_echo"; } >&5 6609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6610 ac_status=$? 6611 if test -s conftest.err; then 6612 sed '10a\ 6613... rest of stderr output deleted ... 6614 10q' conftest.err >conftest.er1 6615 cat conftest.er1 >&5 6616 fi 6617 rm -f conftest.er1 conftest.err 6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6619 test $ac_status = 0; } 6620done 6621 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6624if ${ac_cv_c_compiler_gnu+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628/* end confdefs.h. */ 6629 6630int 6631main () 6632{ 6633#ifndef __GNUC__ 6634 choke me 6635#endif 6636 6637 ; 6638 return 0; 6639} 6640_ACEOF 6641if ac_fn_c_try_compile "$LINENO"; then : 6642 ac_compiler_gnu=yes 6643else 6644 ac_compiler_gnu=no 6645fi 6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6647ac_cv_c_compiler_gnu=$ac_compiler_gnu 6648 6649fi 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6651$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6652if test $ac_compiler_gnu = yes; then 6653 GCC=yes 6654else 6655 GCC= 6656fi 6657ac_test_CFLAGS=${CFLAGS+set} 6658ac_save_CFLAGS=$CFLAGS 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6660$as_echo_n "checking whether $CC accepts -g... " >&6; } 6661if ${ac_cv_prog_cc_g+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 ac_save_c_werror_flag=$ac_c_werror_flag 6665 ac_c_werror_flag=yes 6666 ac_cv_prog_cc_g=no 6667 CFLAGS="-g" 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670 6671int 6672main () 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO"; then : 6680 ac_cv_prog_cc_g=yes 6681else 6682 CFLAGS="" 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685 6686int 6687main () 6688{ 6689 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694if ac_fn_c_try_compile "$LINENO"; then : 6695 6696else 6697 ac_c_werror_flag=$ac_save_c_werror_flag 6698 CFLAGS="-g" 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701 6702int 6703main () 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710if ac_fn_c_try_compile "$LINENO"; then : 6711 ac_cv_prog_cc_g=yes 6712fi 6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6718 ac_c_werror_flag=$ac_save_c_werror_flag 6719fi 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6721$as_echo "$ac_cv_prog_cc_g" >&6; } 6722if test "$ac_test_CFLAGS" = set; then 6723 CFLAGS=$ac_save_CFLAGS 6724elif test $ac_cv_prog_cc_g = yes; then 6725 if test "$GCC" = yes; then 6726 CFLAGS="-g -O2" 6727 else 6728 CFLAGS="-g" 6729 fi 6730else 6731 if test "$GCC" = yes; then 6732 CFLAGS="-O2" 6733 else 6734 CFLAGS= 6735 fi 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6739if ${ac_cv_prog_cc_c89+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 ac_cv_prog_cc_c89=no 6743ac_save_CC=$CC 6744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746#include <stdarg.h> 6747#include <stdio.h> 6748struct stat; 6749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6750struct buf { int x; }; 6751FILE * (*rcsopen) (struct buf *, struct stat *, int); 6752static char *e (p, i) 6753 char **p; 6754 int i; 6755{ 6756 return p[i]; 6757} 6758static char *f (char * (*g) (char **, int), char **p, ...) 6759{ 6760 char *s; 6761 va_list v; 6762 va_start (v,p); 6763 s = g (p, va_arg (v,int)); 6764 va_end (v); 6765 return s; 6766} 6767 6768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6769 function prototypes and stuff, but not '\xHH' hex character constants. 6770 These don't provoke an error unfortunately, instead are silently treated 6771 as 'x'. The following induces an error, until -std is added to get 6772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6773 array size at least. It's necessary to write '\x00'==0 to get something 6774 that's true only with -std. */ 6775int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6776 6777/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6778 inside strings and character constants. */ 6779#define FOO(x) 'x' 6780int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6781 6782int test (int i, double x); 6783struct s1 {int (*f) (int a);}; 6784struct s2 {int (*f) (double a);}; 6785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6786int argc; 6787char **argv; 6788int 6789main () 6790{ 6791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6798do 6799 CC="$ac_save_CC $ac_arg" 6800 if ac_fn_c_try_compile "$LINENO"; then : 6801 ac_cv_prog_cc_c89=$ac_arg 6802fi 6803rm -f core conftest.err conftest.$ac_objext 6804 test "x$ac_cv_prog_cc_c89" != "xno" && break 6805done 6806rm -f conftest.$ac_ext 6807CC=$ac_save_CC 6808 6809fi 6810# AC_CACHE_VAL 6811case "x$ac_cv_prog_cc_c89" in 6812 x) 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6814$as_echo "none needed" >&6; } ;; 6815 xno) 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6817$as_echo "unsupported" >&6; } ;; 6818 *) 6819 CC="$CC $ac_cv_prog_cc_c89" 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6821$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6822esac 6823if test "x$ac_cv_prog_cc_c89" != xno; then : 6824 6825fi 6826 6827ac_ext=c 6828ac_cpp='$CPP $CPPFLAGS' 6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6831ac_compiler_gnu=$ac_cv_c_compiler_gnu 6832 6833ac_ext=c 6834ac_cpp='$CPP $CPPFLAGS' 6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6837ac_compiler_gnu=$ac_cv_c_compiler_gnu 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6839$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6840if ${am_cv_prog_cc_c_o+:} false; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845 6846int 6847main () 6848{ 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854 # Make sure it works both with $CC and with simple cc. 6855 # Following AC_PROG_CC_C_O, we do the test twice because some 6856 # compilers refuse to overwrite an existing .o file with -o, 6857 # though they will create one. 6858 am_cv_prog_cc_c_o=yes 6859 for am_i in 1 2; do 6860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6862 ac_status=$? 6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 (exit $ac_status); } \ 6865 && test -f conftest2.$ac_objext; then 6866 : OK 6867 else 6868 am_cv_prog_cc_c_o=no 6869 break 6870 fi 6871 done 6872 rm -f core conftest* 6873 unset am_i 6874fi 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6876$as_echo "$am_cv_prog_cc_c_o" >&6; } 6877if test "$am_cv_prog_cc_c_o" != yes; then 6878 # Losing compiler, so override with the script. 6879 # FIXME: It is wrong to rewrite CC. 6880 # But if we don't then we get into trouble of one sort or another. 6881 # A longer-term fix would be to have automake use am__CC in this case, 6882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6883 CC="$am_aux_dir/compile $CC" 6884fi 6885ac_ext=c 6886ac_cpp='$CPP $CPPFLAGS' 6887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6889ac_compiler_gnu=$ac_cv_c_compiler_gnu 6890 6891 6892depcc="$CC" am_compiler_list= 6893 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6895$as_echo_n "checking dependency style of $depcc... " >&6; } 6896if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6900 # We make a subdir and do the tests there. Otherwise we can end up 6901 # making bogus files that we don't know about and never remove. For 6902 # instance it was reported that on HP-UX the gcc test will end up 6903 # making a dummy file named 'D' -- because '-MD' means "put the output 6904 # in D". 6905 rm -rf conftest.dir 6906 mkdir conftest.dir 6907 # Copy depcomp to subdir because otherwise we won't find it if we're 6908 # using a relative directory. 6909 cp "$am_depcomp" conftest.dir 6910 cd conftest.dir 6911 # We will build objects and dependencies in a subdirectory because 6912 # it helps to detect inapplicable dependency modes. For instance 6913 # both Tru64's cc and ICC support -MD to output dependencies as a 6914 # side effect of compilation, but ICC will put the dependencies in 6915 # the current directory while Tru64 will put them in the object 6916 # directory. 6917 mkdir sub 6918 6919 am_cv_CC_dependencies_compiler_type=none 6920 if test "$am_compiler_list" = ""; then 6921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6922 fi 6923 am__universal=false 6924 case " $depcc " in #( 6925 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6926 esac 6927 6928 for depmode in $am_compiler_list; do 6929 # Setup a source with many dependencies, because some compilers 6930 # like to wrap large dependency lists on column 80 (with \), and 6931 # we should not choose a depcomp mode which is confused by this. 6932 # 6933 # We need to recreate these files for each test, as the compiler may 6934 # overwrite some of them when testing with obscure command lines. 6935 # This happens at least with the AIX C compiler. 6936 : > sub/conftest.c 6937 for i in 1 2 3 4 5 6; do 6938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6940 # Solaris 10 /bin/sh. 6941 echo '/* dummy */' > sub/conftst$i.h 6942 done 6943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6944 6945 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6946 # mode. It turns out that the SunPro C++ compiler does not properly 6947 # handle '-M -o', and we need to detect this. Also, some Intel 6948 # versions had trouble with output in subdirs. 6949 am__obj=sub/conftest.${OBJEXT-o} 6950 am__minus_obj="-o $am__obj" 6951 case $depmode in 6952 gcc) 6953 # This depmode causes a compiler race in universal mode. 6954 test "$am__universal" = false || continue 6955 ;; 6956 nosideeffect) 6957 # After this tag, mechanisms are not by side-effect, so they'll 6958 # only be used when explicitly requested. 6959 if test "x$enable_dependency_tracking" = xyes; then 6960 continue 6961 else 6962 break 6963 fi 6964 ;; 6965 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6966 # This compiler won't grok '-c -o', but also, the minuso test has 6967 # not run yet. These depmodes are late enough in the game, and 6968 # so weak that their functioning should not be impacted. 6969 am__obj=conftest.${OBJEXT-o} 6970 am__minus_obj= 6971 ;; 6972 none) break ;; 6973 esac 6974 if depmode=$depmode \ 6975 source=sub/conftest.c object=$am__obj \ 6976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6978 >/dev/null 2>conftest.err && 6979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6983 # icc doesn't choke on unknown options, it will just issue warnings 6984 # or remarks (even with -Werror). So we grep stderr for any message 6985 # that says an option was ignored or not supported. 6986 # When given -MP, icc 7.0 and 7.1 complain thusly: 6987 # icc: Command line warning: ignoring option '-M'; no argument required 6988 # The diagnosis changed in icc 8.0: 6989 # icc: Command line remark: option '-MP' not supported 6990 if (grep 'ignoring option' conftest.err || 6991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6992 am_cv_CC_dependencies_compiler_type=$depmode 6993 break 6994 fi 6995 fi 6996 done 6997 6998 cd .. 6999 rm -rf conftest.dir 7000else 7001 am_cv_CC_dependencies_compiler_type=none 7002fi 7003 7004fi 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 7007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7008 7009 if 7010 test "x$enable_dependency_tracking" != xno \ 7011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7012 am__fastdepCC_TRUE= 7013 am__fastdepCC_FALSE='#' 7014else 7015 am__fastdepCC_TRUE='#' 7016 am__fastdepCC_FALSE= 7017fi 7018 7019 7020ac_ext=cpp 7021ac_cpp='$CXXCPP $CPPFLAGS' 7022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7025if test -z "$CXX"; then 7026 if test -n "$CCC"; then 7027 CXX=$CCC 7028 else 7029 if test -n "$ac_tool_prefix"; then 7030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7031 do 7032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7033set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_CXX+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$CXX"; then 7040 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059CXX=$ac_cv_prog_CXX 7060if test -n "$CXX"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7062$as_echo "$CXX" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 7069 test -n "$CXX" && break 7070 done 7071fi 7072if test -z "$CXX"; then 7073 ac_ct_CXX=$CXX 7074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7075do 7076 # Extract the first word of "$ac_prog", so it can be a program name with args. 7077set dummy $ac_prog; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$ac_ct_CXX"; then 7084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_prog_ac_ct_CXX="$ac_prog" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7104if test -n "$ac_ct_CXX"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7106$as_echo "$ac_ct_CXX" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 7113 test -n "$ac_ct_CXX" && break 7114done 7115 7116 if test "x$ac_ct_CXX" = x; then 7117 CXX="g++" 7118 else 7119 case $cross_compiling:$ac_tool_warned in 7120yes:) 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7123ac_tool_warned=yes ;; 7124esac 7125 CXX=$ac_ct_CXX 7126 fi 7127fi 7128 7129 fi 7130fi 7131# Provide some information about the compiler. 7132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7133set X $ac_compile 7134ac_compiler=$2 7135for ac_option in --version -v -V -qversion; do 7136 { { ac_try="$ac_compiler $ac_option >&5" 7137case "(($ac_try" in 7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7139 *) ac_try_echo=$ac_try;; 7140esac 7141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7142$as_echo "$ac_try_echo"; } >&5 7143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7144 ac_status=$? 7145 if test -s conftest.err; then 7146 sed '10a\ 7147... rest of stderr output deleted ... 7148 10q' conftest.err >conftest.er1 7149 cat conftest.er1 >&5 7150 fi 7151 rm -f conftest.er1 conftest.err 7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7153 test $ac_status = 0; } 7154done 7155 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7157$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7158if ${ac_cv_cxx_compiler_gnu+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163 7164int 7165main () 7166{ 7167#ifndef __GNUC__ 7168 choke me 7169#endif 7170 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175if ac_fn_cxx_try_compile "$LINENO"; then : 7176 ac_compiler_gnu=yes 7177else 7178 ac_compiler_gnu=no 7179fi 7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7181ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7182 7183fi 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7185$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7186if test $ac_compiler_gnu = yes; then 7187 GXX=yes 7188else 7189 GXX= 7190fi 7191ac_test_CXXFLAGS=${CXXFLAGS+set} 7192ac_save_CXXFLAGS=$CXXFLAGS 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7194$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7195if ${ac_cv_prog_cxx_g+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7199 ac_cxx_werror_flag=yes 7200 ac_cv_prog_cxx_g=no 7201 CXXFLAGS="-g" 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204 7205int 7206main () 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_cxx_try_compile "$LINENO"; then : 7214 ac_cv_prog_cxx_g=yes 7215else 7216 CXXFLAGS="" 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219 7220int 7221main () 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_cxx_try_compile "$LINENO"; then : 7229 7230else 7231 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7232 CXXFLAGS="-g" 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235 7236int 7237main () 7238{ 7239 7240 ; 7241 return 0; 7242} 7243_ACEOF 7244if ac_fn_cxx_try_compile "$LINENO"; then : 7245 ac_cv_prog_cxx_g=yes 7246fi 7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7248fi 7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7250fi 7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7255$as_echo "$ac_cv_prog_cxx_g" >&6; } 7256if test "$ac_test_CXXFLAGS" = set; then 7257 CXXFLAGS=$ac_save_CXXFLAGS 7258elif test $ac_cv_prog_cxx_g = yes; then 7259 if test "$GXX" = yes; then 7260 CXXFLAGS="-g -O2" 7261 else 7262 CXXFLAGS="-g" 7263 fi 7264else 7265 if test "$GXX" = yes; then 7266 CXXFLAGS="-O2" 7267 else 7268 CXXFLAGS= 7269 fi 7270fi 7271ac_ext=c 7272ac_cpp='$CPP $CPPFLAGS' 7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7275ac_compiler_gnu=$ac_cv_c_compiler_gnu 7276 7277depcc="$CXX" am_compiler_list= 7278 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7280$as_echo_n "checking dependency style of $depcc... " >&6; } 7281if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7285 # We make a subdir and do the tests there. Otherwise we can end up 7286 # making bogus files that we don't know about and never remove. For 7287 # instance it was reported that on HP-UX the gcc test will end up 7288 # making a dummy file named 'D' -- because '-MD' means "put the output 7289 # in D". 7290 rm -rf conftest.dir 7291 mkdir conftest.dir 7292 # Copy depcomp to subdir because otherwise we won't find it if we're 7293 # using a relative directory. 7294 cp "$am_depcomp" conftest.dir 7295 cd conftest.dir 7296 # We will build objects and dependencies in a subdirectory because 7297 # it helps to detect inapplicable dependency modes. For instance 7298 # both Tru64's cc and ICC support -MD to output dependencies as a 7299 # side effect of compilation, but ICC will put the dependencies in 7300 # the current directory while Tru64 will put them in the object 7301 # directory. 7302 mkdir sub 7303 7304 am_cv_CXX_dependencies_compiler_type=none 7305 if test "$am_compiler_list" = ""; then 7306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7307 fi 7308 am__universal=false 7309 case " $depcc " in #( 7310 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7311 esac 7312 7313 for depmode in $am_compiler_list; do 7314 # Setup a source with many dependencies, because some compilers 7315 # like to wrap large dependency lists on column 80 (with \), and 7316 # we should not choose a depcomp mode which is confused by this. 7317 # 7318 # We need to recreate these files for each test, as the compiler may 7319 # overwrite some of them when testing with obscure command lines. 7320 # This happens at least with the AIX C compiler. 7321 : > sub/conftest.c 7322 for i in 1 2 3 4 5 6; do 7323 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7324 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7325 # Solaris 10 /bin/sh. 7326 echo '/* dummy */' > sub/conftst$i.h 7327 done 7328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7329 7330 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7331 # mode. It turns out that the SunPro C++ compiler does not properly 7332 # handle '-M -o', and we need to detect this. Also, some Intel 7333 # versions had trouble with output in subdirs. 7334 am__obj=sub/conftest.${OBJEXT-o} 7335 am__minus_obj="-o $am__obj" 7336 case $depmode in 7337 gcc) 7338 # This depmode causes a compiler race in universal mode. 7339 test "$am__universal" = false || continue 7340 ;; 7341 nosideeffect) 7342 # After this tag, mechanisms are not by side-effect, so they'll 7343 # only be used when explicitly requested. 7344 if test "x$enable_dependency_tracking" = xyes; then 7345 continue 7346 else 7347 break 7348 fi 7349 ;; 7350 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7351 # This compiler won't grok '-c -o', but also, the minuso test has 7352 # not run yet. These depmodes are late enough in the game, and 7353 # so weak that their functioning should not be impacted. 7354 am__obj=conftest.${OBJEXT-o} 7355 am__minus_obj= 7356 ;; 7357 none) break ;; 7358 esac 7359 if depmode=$depmode \ 7360 source=sub/conftest.c object=$am__obj \ 7361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7362 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7363 >/dev/null 2>conftest.err && 7364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7366 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7368 # icc doesn't choke on unknown options, it will just issue warnings 7369 # or remarks (even with -Werror). So we grep stderr for any message 7370 # that says an option was ignored or not supported. 7371 # When given -MP, icc 7.0 and 7.1 complain thusly: 7372 # icc: Command line warning: ignoring option '-M'; no argument required 7373 # The diagnosis changed in icc 8.0: 7374 # icc: Command line remark: option '-MP' not supported 7375 if (grep 'ignoring option' conftest.err || 7376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7377 am_cv_CXX_dependencies_compiler_type=$depmode 7378 break 7379 fi 7380 fi 7381 done 7382 7383 cd .. 7384 rm -rf conftest.dir 7385else 7386 am_cv_CXX_dependencies_compiler_type=none 7387fi 7388 7389fi 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7391$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7392CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7393 7394 if 7395 test "x$enable_dependency_tracking" != xno \ 7396 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7397 am__fastdepCXX_TRUE= 7398 am__fastdepCXX_FALSE='#' 7399else 7400 am__fastdepCXX_TRUE='#' 7401 am__fastdepCXX_FALSE= 7402fi 7403 7404 7405 case $ac_cv_prog_cc_stdc in #( 7406 no) : 7407 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 7408 *) : 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 7410$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 7411if ${ac_cv_prog_cc_c99+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 ac_cv_prog_cc_c99=no 7415ac_save_CC=$CC 7416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418#include <stdarg.h> 7419#include <stdbool.h> 7420#include <stdlib.h> 7421#include <wchar.h> 7422#include <stdio.h> 7423 7424// Check varargs macros. These examples are taken from C99 6.10.3.5. 7425#define debug(...) fprintf (stderr, __VA_ARGS__) 7426#define showlist(...) puts (#__VA_ARGS__) 7427#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 7428static void 7429test_varargs_macros (void) 7430{ 7431 int x = 1234; 7432 int y = 5678; 7433 debug ("Flag"); 7434 debug ("X = %d\n", x); 7435 showlist (The first, second, and third items.); 7436 report (x>y, "x is %d but y is %d", x, y); 7437} 7438 7439// Check long long types. 7440#define BIG64 18446744073709551615ull 7441#define BIG32 4294967295ul 7442#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 7443#if !BIG_OK 7444 your preprocessor is broken; 7445#endif 7446#if BIG_OK 7447#else 7448 your preprocessor is broken; 7449#endif 7450static long long int bignum = -9223372036854775807LL; 7451static unsigned long long int ubignum = BIG64; 7452 7453struct incomplete_array 7454{ 7455 int datasize; 7456 double data[]; 7457}; 7458 7459struct named_init { 7460 int number; 7461 const wchar_t *name; 7462 double average; 7463}; 7464 7465typedef const char *ccp; 7466 7467static inline int 7468test_restrict (ccp restrict text) 7469{ 7470 // See if C++-style comments work. 7471 // Iterate through items via the restricted pointer. 7472 // Also check for declarations in for loops. 7473 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 7474 continue; 7475 return 0; 7476} 7477 7478// Check varargs and va_copy. 7479static void 7480test_varargs (const char *format, ...) 7481{ 7482 va_list args; 7483 va_start (args, format); 7484 va_list args_copy; 7485 va_copy (args_copy, args); 7486 7487 const char *str; 7488 int number; 7489 float fnumber; 7490 7491 while (*format) 7492 { 7493 switch (*format++) 7494 { 7495 case 's': // string 7496 str = va_arg (args_copy, const char *); 7497 break; 7498 case 'd': // int 7499 number = va_arg (args_copy, int); 7500 break; 7501 case 'f': // float 7502 fnumber = va_arg (args_copy, double); 7503 break; 7504 default: 7505 break; 7506 } 7507 } 7508 va_end (args_copy); 7509 va_end (args); 7510} 7511 7512int 7513main () 7514{ 7515 7516 // Check bool. 7517 _Bool success = false; 7518 7519 // Check restrict. 7520 if (test_restrict ("String literal") == 0) 7521 success = true; 7522 char *restrict newvar = "Another string"; 7523 7524 // Check varargs. 7525 test_varargs ("s, d' f .", "string", 65, 34.234); 7526 test_varargs_macros (); 7527 7528 // Check flexible array members. 7529 struct incomplete_array *ia = 7530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 7531 ia->datasize = 10; 7532 for (int i = 0; i < ia->datasize; ++i) 7533 ia->data[i] = i * 1.234; 7534 7535 // Check named initializers. 7536 struct named_init ni = { 7537 .number = 34, 7538 .name = L"Test wide string", 7539 .average = 543.34343, 7540 }; 7541 7542 ni.number = 58; 7543 7544 int dynamic_array[ni.number]; 7545 dynamic_array[ni.number - 1] = 543; 7546 7547 // work around unused variable warnings 7548 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7549 || dynamic_array[ni.number - 1] != 543); 7550 7551 ; 7552 return 0; 7553} 7554_ACEOF 7555for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7556do 7557 CC="$ac_save_CC $ac_arg" 7558 if ac_fn_c_try_compile "$LINENO"; then : 7559 ac_cv_prog_cc_c99=$ac_arg 7560fi 7561rm -f core conftest.err conftest.$ac_objext 7562 test "x$ac_cv_prog_cc_c99" != "xno" && break 7563done 7564rm -f conftest.$ac_ext 7565CC=$ac_save_CC 7566 7567fi 7568# AC_CACHE_VAL 7569case "x$ac_cv_prog_cc_c99" in 7570 x) 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7572$as_echo "none needed" >&6; } ;; 7573 xno) 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7575$as_echo "unsupported" >&6; } ;; 7576 *) 7577 CC="$CC $ac_cv_prog_cc_c99" 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7579$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7580esac 7581if test "x$ac_cv_prog_cc_c99" != xno; then : 7582 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7583else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7586if ${ac_cv_prog_cc_c89+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 ac_cv_prog_cc_c89=no 7590ac_save_CC=$CC 7591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593#include <stdarg.h> 7594#include <stdio.h> 7595struct stat; 7596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7597struct buf { int x; }; 7598FILE * (*rcsopen) (struct buf *, struct stat *, int); 7599static char *e (p, i) 7600 char **p; 7601 int i; 7602{ 7603 return p[i]; 7604} 7605static char *f (char * (*g) (char **, int), char **p, ...) 7606{ 7607 char *s; 7608 va_list v; 7609 va_start (v,p); 7610 s = g (p, va_arg (v,int)); 7611 va_end (v); 7612 return s; 7613} 7614 7615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7616 function prototypes and stuff, but not '\xHH' hex character constants. 7617 These don't provoke an error unfortunately, instead are silently treated 7618 as 'x'. The following induces an error, until -std is added to get 7619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7620 array size at least. It's necessary to write '\x00'==0 to get something 7621 that's true only with -std. */ 7622int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7623 7624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7625 inside strings and character constants. */ 7626#define FOO(x) 'x' 7627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7628 7629int test (int i, double x); 7630struct s1 {int (*f) (int a);}; 7631struct s2 {int (*f) (double a);}; 7632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7633int argc; 7634char **argv; 7635int 7636main () 7637{ 7638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7639 ; 7640 return 0; 7641} 7642_ACEOF 7643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7645do 7646 CC="$ac_save_CC $ac_arg" 7647 if ac_fn_c_try_compile "$LINENO"; then : 7648 ac_cv_prog_cc_c89=$ac_arg 7649fi 7650rm -f core conftest.err conftest.$ac_objext 7651 test "x$ac_cv_prog_cc_c89" != "xno" && break 7652done 7653rm -f conftest.$ac_ext 7654CC=$ac_save_CC 7655 7656fi 7657# AC_CACHE_VAL 7658case "x$ac_cv_prog_cc_c89" in 7659 x) 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7661$as_echo "none needed" >&6; } ;; 7662 xno) 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7664$as_echo "unsupported" >&6; } ;; 7665 *) 7666 CC="$CC $ac_cv_prog_cc_c89" 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7669esac 7670if test "x$ac_cv_prog_cc_c89" != xno; then : 7671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7672else 7673 ac_cv_prog_cc_stdc=no 7674fi 7675 7676fi 7677 ;; 7678esac 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 7680$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 7681 if ${ac_cv_prog_cc_stdc+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683fi 7684 7685 case $ac_cv_prog_cc_stdc in #( 7686 no) : 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7688$as_echo "unsupported" >&6; } ;; #( 7689 '') : 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7691$as_echo "none needed" >&6; } ;; #( 7692 *) : 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 7694$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 7695esac 7696 7697ac_ext=c 7698ac_cpp='$CPP $CPPFLAGS' 7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7701ac_compiler_gnu=$ac_cv_c_compiler_gnu 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7703$as_echo_n "checking how to run the C preprocessor... " >&6; } 7704# On Suns, sometimes $CPP names a directory. 7705if test -n "$CPP" && test -d "$CPP"; then 7706 CPP= 7707fi 7708if test -z "$CPP"; then 7709 if ${ac_cv_prog_CPP+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 # Double quotes because CPP needs to be expanded 7713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7714 do 7715 ac_preproc_ok=false 7716for ac_c_preproc_warn_flag in '' yes 7717do 7718 # Use a header file that comes with gcc, so configuring glibc 7719 # with a fresh cross-compiler works. 7720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7721 # <limits.h> exists even on freestanding compilers. 7722 # On the NeXT, cc -E runs the code through the compiler's parser, 7723 # not just through cpp. "Syntax error" is here to catch this case. 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726#ifdef __STDC__ 7727# include <limits.h> 7728#else 7729# include <assert.h> 7730#endif 7731 Syntax error 7732_ACEOF 7733if ac_fn_c_try_cpp "$LINENO"; then : 7734 7735else 7736 # Broken: fails on valid input. 7737continue 7738fi 7739rm -f conftest.err conftest.i conftest.$ac_ext 7740 7741 # OK, works on sane cases. Now check whether nonexistent headers 7742 # can be detected and how. 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745#include <ac_nonexistent.h> 7746_ACEOF 7747if ac_fn_c_try_cpp "$LINENO"; then : 7748 # Broken: success on invalid input. 7749continue 7750else 7751 # Passes both tests. 7752ac_preproc_ok=: 7753break 7754fi 7755rm -f conftest.err conftest.i conftest.$ac_ext 7756 7757done 7758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7759rm -f conftest.i conftest.err conftest.$ac_ext 7760if $ac_preproc_ok; then : 7761 break 7762fi 7763 7764 done 7765 ac_cv_prog_CPP=$CPP 7766 7767fi 7768 CPP=$ac_cv_prog_CPP 7769else 7770 ac_cv_prog_CPP=$CPP 7771fi 7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7773$as_echo "$CPP" >&6; } 7774ac_preproc_ok=false 7775for ac_c_preproc_warn_flag in '' yes 7776do 7777 # Use a header file that comes with gcc, so configuring glibc 7778 # with a fresh cross-compiler works. 7779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7780 # <limits.h> exists even on freestanding compilers. 7781 # On the NeXT, cc -E runs the code through the compiler's parser, 7782 # not just through cpp. "Syntax error" is here to catch this case. 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785#ifdef __STDC__ 7786# include <limits.h> 7787#else 7788# include <assert.h> 7789#endif 7790 Syntax error 7791_ACEOF 7792if ac_fn_c_try_cpp "$LINENO"; then : 7793 7794else 7795 # Broken: fails on valid input. 7796continue 7797fi 7798rm -f conftest.err conftest.i conftest.$ac_ext 7799 7800 # OK, works on sane cases. Now check whether nonexistent headers 7801 # can be detected and how. 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804#include <ac_nonexistent.h> 7805_ACEOF 7806if ac_fn_c_try_cpp "$LINENO"; then : 7807 # Broken: success on invalid input. 7808continue 7809else 7810 # Passes both tests. 7811ac_preproc_ok=: 7812break 7813fi 7814rm -f conftest.err conftest.i conftest.$ac_ext 7815 7816done 7817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7818rm -f conftest.i conftest.err conftest.$ac_ext 7819if $ac_preproc_ok; then : 7820 7821else 7822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7824as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7825See \`config.log' for more details" "$LINENO" 5; } 7826fi 7827 7828ac_ext=c 7829ac_cpp='$CPP $CPPFLAGS' 7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7832ac_compiler_gnu=$ac_cv_c_compiler_gnu 7833 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7835$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7836if ${ac_cv_path_SED+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7840 for ac_i in 1 2 3 4 5 6 7; do 7841 ac_script="$ac_script$as_nl$ac_script" 7842 done 7843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7844 { ac_script=; unset ac_script;} 7845 if test -z "$SED"; then 7846 ac_path_SED_found=false 7847 # Loop through the user's path and test for each of PROGNAME-LIST 7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7849for as_dir in $PATH 7850do 7851 IFS=$as_save_IFS 7852 test -z "$as_dir" && as_dir=. 7853 for ac_prog in sed gsed; do 7854 for ac_exec_ext in '' $ac_executable_extensions; do 7855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7856 as_fn_executable_p "$ac_path_SED" || continue 7857# Check for GNU ac_path_SED and select it if it is found. 7858 # Check for GNU $ac_path_SED 7859case `"$ac_path_SED" --version 2>&1` in 7860*GNU*) 7861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7862*) 7863 ac_count=0 7864 $as_echo_n 0123456789 >"conftest.in" 7865 while : 7866 do 7867 cat "conftest.in" "conftest.in" >"conftest.tmp" 7868 mv "conftest.tmp" "conftest.in" 7869 cp "conftest.in" "conftest.nl" 7870 $as_echo '' >> "conftest.nl" 7871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7873 as_fn_arith $ac_count + 1 && ac_count=$as_val 7874 if test $ac_count -gt ${ac_path_SED_max-0}; then 7875 # Best one so far, save it but keep looking for a better one 7876 ac_cv_path_SED="$ac_path_SED" 7877 ac_path_SED_max=$ac_count 7878 fi 7879 # 10*(2^10) chars as input seems more than enough 7880 test $ac_count -gt 10 && break 7881 done 7882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7883esac 7884 7885 $ac_path_SED_found && break 3 7886 done 7887 done 7888 done 7889IFS=$as_save_IFS 7890 if test -z "$ac_cv_path_SED"; then 7891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7892 fi 7893else 7894 ac_cv_path_SED=$SED 7895fi 7896 7897fi 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7899$as_echo "$ac_cv_path_SED" >&6; } 7900 SED="$ac_cv_path_SED" 7901 rm -f conftest.sed 7902 7903test -z "$SED" && SED=sed 7904Xsed="$SED -e 1s/^X//" 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7917$as_echo_n "checking for fgrep... " >&6; } 7918if ${ac_cv_path_FGREP+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920else 7921 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7922 then ac_cv_path_FGREP="$GREP -F" 7923 else 7924 if test -z "$FGREP"; then 7925 ac_path_FGREP_found=false 7926 # Loop through the user's path and test for each of PROGNAME-LIST 7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7929do 7930 IFS=$as_save_IFS 7931 test -z "$as_dir" && as_dir=. 7932 for ac_prog in fgrep; do 7933 for ac_exec_ext in '' $ac_executable_extensions; do 7934 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7935 as_fn_executable_p "$ac_path_FGREP" || continue 7936# Check for GNU ac_path_FGREP and select it if it is found. 7937 # Check for GNU $ac_path_FGREP 7938case `"$ac_path_FGREP" --version 2>&1` in 7939*GNU*) 7940 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7941*) 7942 ac_count=0 7943 $as_echo_n 0123456789 >"conftest.in" 7944 while : 7945 do 7946 cat "conftest.in" "conftest.in" >"conftest.tmp" 7947 mv "conftest.tmp" "conftest.in" 7948 cp "conftest.in" "conftest.nl" 7949 $as_echo 'FGREP' >> "conftest.nl" 7950 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7952 as_fn_arith $ac_count + 1 && ac_count=$as_val 7953 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7954 # Best one so far, save it but keep looking for a better one 7955 ac_cv_path_FGREP="$ac_path_FGREP" 7956 ac_path_FGREP_max=$ac_count 7957 fi 7958 # 10*(2^10) chars as input seems more than enough 7959 test $ac_count -gt 10 && break 7960 done 7961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7962esac 7963 7964 $ac_path_FGREP_found && break 3 7965 done 7966 done 7967 done 7968IFS=$as_save_IFS 7969 if test -z "$ac_cv_path_FGREP"; then 7970 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7971 fi 7972else 7973 ac_cv_path_FGREP=$FGREP 7974fi 7975 7976 fi 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7979$as_echo "$ac_cv_path_FGREP" >&6; } 7980 FGREP="$ac_cv_path_FGREP" 7981 7982 7983test -z "$GREP" && GREP=grep 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8003ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8004 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8006$as_echo_n "checking how to print strings... " >&6; } 8007# Test print first, because it will be a builtin if present. 8008if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8010 ECHO='print -r --' 8011elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8012 ECHO='printf %s\n' 8013else 8014 # Use this function as a fallback that always works. 8015 func_fallback_echo () 8016 { 8017 eval 'cat <<_LTECHO_EOF 8018$1 8019_LTECHO_EOF' 8020 } 8021 ECHO='func_fallback_echo' 8022fi 8023 8024# func_echo_all arg... 8025# Invoke $ECHO with all args, space-separated. 8026func_echo_all () 8027{ 8028 $ECHO "" 8029} 8030 8031case $ECHO in 8032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8033$as_echo "printf" >&6; } ;; 8034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8035$as_echo "print -r" >&6; } ;; 8036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8037$as_echo "cat" >&6; } ;; 8038esac 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055# Check whether --with-gnu-ld was given. 8056if test "${with_gnu_ld+set}" = set; then : 8057 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8058else 8059 with_gnu_ld=no 8060fi 8061 8062ac_prog=ld 8063if test yes = "$GCC"; then 8064 # Check if gcc -print-prog-name=ld gives a path. 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8066$as_echo_n "checking for ld used by $CC... " >&6; } 8067 case $host in 8068 *-*-mingw*) 8069 # gcc leaves a trailing carriage return, which upsets mingw 8070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8071 *) 8072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8073 esac 8074 case $ac_prog in 8075 # Accept absolute paths. 8076 [\\/]* | ?:[\\/]*) 8077 re_direlt='/[^/][^/]*/\.\./' 8078 # Canonicalize the pathname of ld 8079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8082 done 8083 test -z "$LD" && LD=$ac_prog 8084 ;; 8085 "") 8086 # If it fails, then pretend we aren't using GCC. 8087 ac_prog=ld 8088 ;; 8089 *) 8090 # If it is relative, then search for the first ld in PATH. 8091 with_gnu_ld=unknown 8092 ;; 8093 esac 8094elif test yes = "$with_gnu_ld"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8096$as_echo_n "checking for GNU ld... " >&6; } 8097else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8099$as_echo_n "checking for non-GNU ld... " >&6; } 8100fi 8101if ${lt_cv_path_LD+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 if test -z "$LD"; then 8105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8106 for ac_dir in $PATH; do 8107 IFS=$lt_save_ifs 8108 test -z "$ac_dir" && ac_dir=. 8109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8110 lt_cv_path_LD=$ac_dir/$ac_prog 8111 # Check to see if the program is GNU ld. I'd rather use --version, 8112 # but apparently some variants of GNU ld only accept -v. 8113 # Break only if it was the GNU/non-GNU ld that we prefer. 8114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8115 *GNU* | *'with BFD'*) 8116 test no != "$with_gnu_ld" && break 8117 ;; 8118 *) 8119 test yes != "$with_gnu_ld" && break 8120 ;; 8121 esac 8122 fi 8123 done 8124 IFS=$lt_save_ifs 8125else 8126 lt_cv_path_LD=$LD # Let the user override the test with a path. 8127fi 8128fi 8129 8130LD=$lt_cv_path_LD 8131if test -n "$LD"; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8133$as_echo "$LD" >&6; } 8134else 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8136$as_echo "no" >&6; } 8137fi 8138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8141if ${lt_cv_prog_gnu_ld+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8145case `$LD -v 2>&1 </dev/null` in 8146*GNU* | *'with BFD'*) 8147 lt_cv_prog_gnu_ld=yes 8148 ;; 8149*) 8150 lt_cv_prog_gnu_ld=no 8151 ;; 8152esac 8153fi 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8155$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8156with_gnu_ld=$lt_cv_prog_gnu_ld 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8168$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8169if ${ac_cv_prog_cc_c99+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 ac_cv_prog_cc_c99=no 8173ac_save_CC=$CC 8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176#include <stdarg.h> 8177#include <stdbool.h> 8178#include <stdlib.h> 8179#include <wchar.h> 8180#include <stdio.h> 8181 8182// Check varargs macros. These examples are taken from C99 6.10.3.5. 8183#define debug(...) fprintf (stderr, __VA_ARGS__) 8184#define showlist(...) puts (#__VA_ARGS__) 8185#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8186static void 8187test_varargs_macros (void) 8188{ 8189 int x = 1234; 8190 int y = 5678; 8191 debug ("Flag"); 8192 debug ("X = %d\n", x); 8193 showlist (The first, second, and third items.); 8194 report (x>y, "x is %d but y is %d", x, y); 8195} 8196 8197// Check long long types. 8198#define BIG64 18446744073709551615ull 8199#define BIG32 4294967295ul 8200#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8201#if !BIG_OK 8202 your preprocessor is broken; 8203#endif 8204#if BIG_OK 8205#else 8206 your preprocessor is broken; 8207#endif 8208static long long int bignum = -9223372036854775807LL; 8209static unsigned long long int ubignum = BIG64; 8210 8211struct incomplete_array 8212{ 8213 int datasize; 8214 double data[]; 8215}; 8216 8217struct named_init { 8218 int number; 8219 const wchar_t *name; 8220 double average; 8221}; 8222 8223typedef const char *ccp; 8224 8225static inline int 8226test_restrict (ccp restrict text) 8227{ 8228 // See if C++-style comments work. 8229 // Iterate through items via the restricted pointer. 8230 // Also check for declarations in for loops. 8231 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8232 continue; 8233 return 0; 8234} 8235 8236// Check varargs and va_copy. 8237static void 8238test_varargs (const char *format, ...) 8239{ 8240 va_list args; 8241 va_start (args, format); 8242 va_list args_copy; 8243 va_copy (args_copy, args); 8244 8245 const char *str; 8246 int number; 8247 float fnumber; 8248 8249 while (*format) 8250 { 8251 switch (*format++) 8252 { 8253 case 's': // string 8254 str = va_arg (args_copy, const char *); 8255 break; 8256 case 'd': // int 8257 number = va_arg (args_copy, int); 8258 break; 8259 case 'f': // float 8260 fnumber = va_arg (args_copy, double); 8261 break; 8262 default: 8263 break; 8264 } 8265 } 8266 va_end (args_copy); 8267 va_end (args); 8268} 8269 8270int 8271main () 8272{ 8273 8274 // Check bool. 8275 _Bool success = false; 8276 8277 // Check restrict. 8278 if (test_restrict ("String literal") == 0) 8279 success = true; 8280 char *restrict newvar = "Another string"; 8281 8282 // Check varargs. 8283 test_varargs ("s, d' f .", "string", 65, 34.234); 8284 test_varargs_macros (); 8285 8286 // Check flexible array members. 8287 struct incomplete_array *ia = 8288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 8289 ia->datasize = 10; 8290 for (int i = 0; i < ia->datasize; ++i) 8291 ia->data[i] = i * 1.234; 8292 8293 // Check named initializers. 8294 struct named_init ni = { 8295 .number = 34, 8296 .name = L"Test wide string", 8297 .average = 543.34343, 8298 }; 8299 8300 ni.number = 58; 8301 8302 int dynamic_array[ni.number]; 8303 dynamic_array[ni.number - 1] = 543; 8304 8305 // work around unused variable warnings 8306 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 8307 || dynamic_array[ni.number - 1] != 543); 8308 8309 ; 8310 return 0; 8311} 8312_ACEOF 8313for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 8314do 8315 CC="$ac_save_CC $ac_arg" 8316 if ac_fn_c_try_compile "$LINENO"; then : 8317 ac_cv_prog_cc_c99=$ac_arg 8318fi 8319rm -f core conftest.err conftest.$ac_objext 8320 test "x$ac_cv_prog_cc_c99" != "xno" && break 8321done 8322rm -f conftest.$ac_ext 8323CC=$ac_save_CC 8324 8325fi 8326# AC_CACHE_VAL 8327case "x$ac_cv_prog_cc_c99" in 8328 x) 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8330$as_echo "none needed" >&6; } ;; 8331 xno) 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8333$as_echo "unsupported" >&6; } ;; 8334 *) 8335 CC="$CC $ac_cv_prog_cc_c99" 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8337$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 8338esac 8339if test "x$ac_cv_prog_cc_c99" != xno; then : 8340 8341fi 8342 8343 8344 8345ac_ext=c 8346ac_cpp='$CPP $CPPFLAGS' 8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8349ac_compiler_gnu=$ac_cv_c_compiler_gnu 8350 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 8352$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 8353if ${ac_cv_cflags_warn_all+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 ac_cv_cflags_warn_all="no, unknown" 8357ac_save_CFLAGS="$CFLAGS" 8358for 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" # 8359do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362 8363int 8364main () 8365{ 8366 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO"; then : 8372 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 8373fi 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375done 8376CFLAGS="$ac_save_CFLAGS" 8377 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 8380$as_echo "$ac_cv_cflags_warn_all" >&6; } 8381 8382 8383case ".$ac_cv_cflags_warn_all" in 8384 .ok|.ok,*) ;; 8385 .|.no|.no,*) ;; 8386 *) 8387if ${CFLAGS+:} false; then : 8388 8389 case " $CFLAGS " in #( 8390 *" $ac_cv_cflags_warn_all "*) : 8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 8392 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 8393 ac_status=$? 8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8395 test $ac_status = 0; } ;; #( 8396 *) : 8397 8398 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8400 (: CFLAGS="$CFLAGS") 2>&5 8401 ac_status=$? 8402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8403 test $ac_status = 0; } 8404 ;; 8405esac 8406 8407else 8408 8409 CFLAGS=$ac_cv_cflags_warn_all 8410 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8411 (: CFLAGS="$CFLAGS") 2>&5 8412 ac_status=$? 8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8414 test $ac_status = 0; } 8415 8416fi 8417 ;; 8418esac 8419 8420ac_ext=c 8421ac_cpp='$CPP $CPPFLAGS' 8422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8424ac_compiler_gnu=$ac_cv_c_compiler_gnu 8425 8426 8427 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8429$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8430set x ${MAKE-make} 8431ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8432if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8433 $as_echo_n "(cached) " >&6 8434else 8435 cat >conftest.make <<\_ACEOF 8436SHELL = /bin/sh 8437all: 8438 @echo '@@@%%%=$(MAKE)=@@@%%%' 8439_ACEOF 8440# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8441case `${MAKE-make} -f conftest.make 2>/dev/null` in 8442 *@@@%%%=?*=@@@%%%*) 8443 eval ac_cv_prog_make_${ac_make}_set=yes;; 8444 *) 8445 eval ac_cv_prog_make_${ac_make}_set=no;; 8446esac 8447rm -f conftest.make 8448fi 8449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8451$as_echo "yes" >&6; } 8452 SET_MAKE= 8453else 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455$as_echo "no" >&6; } 8456 SET_MAKE="MAKE=${MAKE-make}" 8457fi 8458 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8460$as_echo_n "checking whether ln -s works... " >&6; } 8461LN_S=$as_ln_s 8462if test "$LN_S" = "ln -s"; then 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8464$as_echo "yes" >&6; } 8465else 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8467$as_echo "no, using $LN_S" >&6; } 8468fi 8469 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8471$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8472if ${ac_cv_path_SED+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8476 for ac_i in 1 2 3 4 5 6 7; do 8477 ac_script="$ac_script$as_nl$ac_script" 8478 done 8479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8480 { ac_script=; unset ac_script;} 8481 if test -z "$SED"; then 8482 ac_path_SED_found=false 8483 # Loop through the user's path and test for each of PROGNAME-LIST 8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8485for as_dir in $PATH 8486do 8487 IFS=$as_save_IFS 8488 test -z "$as_dir" && as_dir=. 8489 for ac_prog in sed gsed; do 8490 for ac_exec_ext in '' $ac_executable_extensions; do 8491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8492 as_fn_executable_p "$ac_path_SED" || continue 8493# Check for GNU ac_path_SED and select it if it is found. 8494 # Check for GNU $ac_path_SED 8495case `"$ac_path_SED" --version 2>&1` in 8496*GNU*) 8497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8498*) 8499 ac_count=0 8500 $as_echo_n 0123456789 >"conftest.in" 8501 while : 8502 do 8503 cat "conftest.in" "conftest.in" >"conftest.tmp" 8504 mv "conftest.tmp" "conftest.in" 8505 cp "conftest.in" "conftest.nl" 8506 $as_echo '' >> "conftest.nl" 8507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8509 as_fn_arith $ac_count + 1 && ac_count=$as_val 8510 if test $ac_count -gt ${ac_path_SED_max-0}; then 8511 # Best one so far, save it but keep looking for a better one 8512 ac_cv_path_SED="$ac_path_SED" 8513 ac_path_SED_max=$ac_count 8514 fi 8515 # 10*(2^10) chars as input seems more than enough 8516 test $ac_count -gt 10 && break 8517 done 8518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8519esac 8520 8521 $ac_path_SED_found && break 3 8522 done 8523 done 8524 done 8525IFS=$as_save_IFS 8526 if test -z "$ac_cv_path_SED"; then 8527 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8528 fi 8529else 8530 ac_cv_path_SED=$SED 8531fi 8532 8533fi 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8535$as_echo "$ac_cv_path_SED" >&6; } 8536 SED="$ac_cv_path_SED" 8537 rm -f conftest.sed 8538 8539for ac_prog in gawk mawk nawk awk 8540do 8541 # Extract the first word of "$ac_prog", so it can be a program name with args. 8542set dummy $ac_prog; ac_word=$2 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8544$as_echo_n "checking for $ac_word... " >&6; } 8545if ${ac_cv_prog_AWK+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test -n "$AWK"; then 8549 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8550else 8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_AWK="$ac_prog" 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563 done 8564IFS=$as_save_IFS 8565 8566fi 8567fi 8568AWK=$ac_cv_prog_AWK 8569if test -n "$AWK"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8571$as_echo "$AWK" >&6; } 8572else 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8574$as_echo "no" >&6; } 8575fi 8576 8577 8578 test -n "$AWK" && break 8579done 8580 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 8582$as_echo_n "checking if malloc debugging is wanted... " >&6; } 8583 8584# Check whether --with-dmalloc was given. 8585if test "${with_dmalloc+set}" = set; then : 8586 withval=$with_dmalloc; if test "$withval" = yes; then 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8588$as_echo "yes" >&6; } 8589 8590$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 8591 8592 LIBS="$LIBS -ldmalloc" 8593 LDFLAGS="$LDFLAGS -g" 8594else 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8596$as_echo "no" >&6; } 8597fi 8598else 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8600$as_echo "no" >&6; } 8601fi 8602 8603 8604 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8606$as_echo_n "checking for __attribute__... " >&6; } 8607if ${ax_cv___attribute__+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612#include <stdlib.h> 8613 static void foo(void) __attribute__ ((unused)); 8614 static void 8615 foo(void) { 8616 exit(1); 8617 } 8618 8619int 8620main () 8621{ 8622 8623 ; 8624 return 0; 8625} 8626_ACEOF 8627if ac_fn_c_try_compile "$LINENO"; then : 8628 ax_cv___attribute__=yes 8629else 8630 ax_cv___attribute__=no 8631 8632fi 8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8634 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8637$as_echo "$ax_cv___attribute__" >&6; } 8638 if test "$ax_cv___attribute__" = "yes"; then 8639 8640$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8641 8642 fi 8643 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 8645$as_echo_n "checking for C compiler vendor... " >&6; } 8646if ${ax_cv_c_compiler_vendor+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 # note: don't check for gcc first since some other compilers define __GNUC__ 8650 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 8651 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 8652 pathscale: __PATHCC__,__PATHSCALE__ 8653 clang: __clang__ 8654 cray: _CRAYC 8655 fujitsu: __FUJITSU 8656 gnu: __GNUC__ 8657 sun: __SUNPRO_C,__SUNPRO_CC 8658 hp: __HP_cc,__HP_aCC 8659 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 8660 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 8661 comeau: __COMO__ 8662 kai: __KCC 8663 lcc: __LCC__ 8664 sgi: __sgi,sgi 8665 microsoft: _MSC_VER 8666 metrowerks: __MWERKS__ 8667 watcom: __WATCOMC__ 8668 portland: __PGI 8669 tcc: __TINYC__ 8670 unknown: UNKNOWN" 8671 for ventest in $vendors; do 8672 case $ventest in 8673 *:) vendor=$ventest; continue ;; 8674 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 8675 esac 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678 8679int 8680main () 8681{ 8682 8683 #if !($vencpp) 8684 thisisanerror; 8685 #endif 8686 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691if ac_fn_c_try_compile "$LINENO"; then : 8692 break 8693fi 8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8695 done 8696 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 8697 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 8700$as_echo "$ax_cv_c_compiler_vendor" >&6; } 8701 8702 8703 8704 8705 8706 8707 8708# Check whether --with-gcc-arch was given. 8709if test "${with_gcc_arch+set}" = set; then : 8710 withval=$with_gcc_arch; ax_gcc_arch=$withval 8711else 8712 ax_gcc_arch=yes 8713fi 8714 8715 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8717$as_echo_n "checking for gcc architecture flag... " >&6; } 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 8719$as_echo "" >&6; } 8720if ${ax_cv_gcc_archflag+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722else 8723 8724ax_cv_gcc_archflag="unknown" 8725 8726if test "$GCC" = yes; then 8727 8728if test "x$ax_gcc_arch" = xyes; then 8729ax_gcc_arch="" 8730if test "$cross_compiling" = no; then 8731case $host_cpu in 8732 i[3456]86*|x86_64*|amd64*) # use cpuid codes 8733 8734ac_ext=c 8735ac_cpp='$CPP $CPPFLAGS' 8736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8738ac_compiler_gnu=$ac_cv_c_compiler_gnu 8739 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 8741$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 8742if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 if test "$cross_compiling" = yes; then : 8746 ax_cv_gcc_x86_cpuid_0=unknown 8747else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750#include <stdio.h> 8751int 8752main () 8753{ 8754 8755 int op = 0, level = 0, eax, ebx, ecx, edx; 8756 FILE *f; 8757 __asm__ __volatile__ ("cpuid" 8758 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8759 : "a" (op), "2" (level)); 8760 8761 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8762 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8763 fclose(f); 8764 return 0; 8765 8766 ; 8767 return 0; 8768} 8769_ACEOF 8770if ac_fn_c_try_run "$LINENO"; then : 8771 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 8772else 8773 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 8774fi 8775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8776 conftest.$ac_objext conftest.beam conftest.$ac_ext 8777fi 8778 8779fi 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 8781$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 8782ac_ext=c 8783ac_cpp='$CPP $CPPFLAGS' 8784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8786ac_compiler_gnu=$ac_cv_c_compiler_gnu 8787 8788 8789 8790 8791ac_ext=c 8792ac_cpp='$CPP $CPPFLAGS' 8793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8795ac_compiler_gnu=$ac_cv_c_compiler_gnu 8796 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8798$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 8799if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 if test "$cross_compiling" = yes; then : 8803 ax_cv_gcc_x86_cpuid_1=unknown 8804else 8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807#include <stdio.h> 8808int 8809main () 8810{ 8811 8812 int op = 1, level = 0, eax, ebx, ecx, edx; 8813 FILE *f; 8814 __asm__ __volatile__ ("cpuid" 8815 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8816 : "a" (op), "2" (level)); 8817 8818 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8819 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8820 fclose(f); 8821 return 0; 8822 8823 ; 8824 return 0; 8825} 8826_ACEOF 8827if ac_fn_c_try_run "$LINENO"; then : 8828 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8829else 8830 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8831fi 8832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8833 conftest.$ac_objext conftest.beam conftest.$ac_ext 8834fi 8835 8836fi 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8838$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 8839ac_ext=c 8840ac_cpp='$CPP $CPPFLAGS' 8841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8843ac_compiler_gnu=$ac_cv_c_compiler_gnu 8844 8845 8846 8847 case $ax_cv_gcc_x86_cpuid_0 in 8848 *:756e6547:6c65746e:49656e69) # Intel 8849 case $ax_cv_gcc_x86_cpuid_1 in 8850 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8851 *5[123]?:*:*:*) ax_gcc_arch=pentium ;; 8852 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;; 8853 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8854 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8855 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8856 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;; 8857 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8858 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8859 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;; 8860 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;; 8861 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8862 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8863 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8864 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8865 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;; 8866 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;; 8867 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 8868 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;; 8869 # fallback 8870 *5??:*:*:*) ax_gcc_arch=pentium ;; 8871 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 8872 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 8873 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 8874 esac ;; 8875 *:68747541:444d4163:69746e65) # AMD 8876 case $ax_cv_gcc_x86_cpuid_1 in 8877 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 8878 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 8879 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 8880 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 8881 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 8882 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 8883 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 8884 *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" ;; 8885 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 8886 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8887 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8888 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 8889 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 8890 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 8891 # fallback 8892 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 8893 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 8894 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8895 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8896 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 8897 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 8898 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 8899 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 8900 esac ;; 8901 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur) 8902 case $ax_cv_gcc_x86_cpuid_1 in 8903 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 8904 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;; 8905 *66?:*:*:*) ax_gcc_arch=winchip2 ;; 8906 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 8907 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 8908 esac ;; 8909 esac 8910 if test x"$ax_gcc_arch" = x; then # fallback 8911 case $host_cpu in 8912 i586*) ax_gcc_arch=pentium ;; 8913 i686*) ax_gcc_arch=pentiumpro ;; 8914 esac 8915 fi 8916 ;; 8917 8918 sparc*) 8919 # Extract the first word of "prtdiag", so it can be a program name with args. 8920set dummy prtdiag; ac_word=$2 8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8922$as_echo_n "checking for $ac_word... " >&6; } 8923if ${ac_cv_path_PRTDIAG+:} false; then : 8924 $as_echo_n "(cached) " >&6 8925else 8926 case $PRTDIAG in 8927 [\\/]* | ?:[\\/]*) 8928 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 8929 ;; 8930 *) 8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8932as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 8933for as_dir in $as_dummy 8934do 8935 IFS=$as_save_IFS 8936 test -z "$as_dir" && as_dir=. 8937 for ac_exec_ext in '' $ac_executable_extensions; do 8938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8939 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8941 break 2 8942 fi 8943done 8944 done 8945IFS=$as_save_IFS 8946 8947 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 8948 ;; 8949esac 8950fi 8951PRTDIAG=$ac_cv_path_PRTDIAG 8952if test -n "$PRTDIAG"; then 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 8954$as_echo "$PRTDIAG" >&6; } 8955else 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8957$as_echo "no" >&6; } 8958fi 8959 8960 8961 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` 8962 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` 8963 case $cputype in 8964 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 8965 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 8966 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 8967 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 8968 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 8969 *cypress*) ax_gcc_arch=cypress ;; 8970 esac ;; 8971 8972 alphaev5) ax_gcc_arch=ev5 ;; 8973 alphaev56) ax_gcc_arch=ev56 ;; 8974 alphapca56) ax_gcc_arch="pca56 ev56" ;; 8975 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 8976 alphaev6) ax_gcc_arch=ev6 ;; 8977 alphaev67) ax_gcc_arch=ev67 ;; 8978 alphaev68) ax_gcc_arch="ev68 ev67" ;; 8979 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 8980 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 8981 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 8982 8983 powerpc*) 8984 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` 8985 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'` 8986 case $cputype in 8987 *750*) ax_gcc_arch="750 G3" ;; 8988 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 8989 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 8990 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 8991 *970*) ax_gcc_arch="970 G5 power4";; 8992 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 8993 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 8994 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 8995 *) ax_gcc_arch=$cputype ;; 8996 esac 8997 ax_gcc_arch="$ax_gcc_arch powerpc" 8998 ;; 8999esac 9000fi # not cross-compiling 9001fi # guess arch 9002 9003if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 9004if test "xyes" = xyes; then # if we require portable code 9005 flag_prefixes="-mtune=" 9006 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi 9007 # -mcpu=$arch and m$arch generate nonportable code on every arch except 9008 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 9009 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac 9010else 9011 flag_prefixes="-march= -mcpu= -m" 9012fi 9013for flag_prefix in $flag_prefixes; do 9014 for arch in $ax_gcc_arch; do 9015 flag="$flag_prefix$arch" 9016 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9018$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9019if eval \${$as_CACHEVAR+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 9023 ax_check_save_flags=$CFLAGS 9024 CFLAGS="$CFLAGS $flag" 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027 9028int 9029main () 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_compile "$LINENO"; then : 9037 eval "$as_CACHEVAR=yes" 9038else 9039 eval "$as_CACHEVAR=no" 9040fi 9041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9042 CFLAGS=$ax_check_save_flags 9043fi 9044eval ac_res=\$$as_CACHEVAR 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9046$as_echo "$ac_res" >&6; } 9047if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9048 if test "x$ax_cv_c_compiler_vendor" = xclang; then 9049 if test "xyes" = xyes; then 9050 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi 9051 fi 9052 fi; ax_cv_gcc_archflag=$flag; break 9053else 9054 : 9055fi 9056 9057 done 9058 test "x$ax_cv_gcc_archflag" = xunknown || break 9059done 9060fi 9061 9062fi # $GCC=yes 9063 9064fi 9065 9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 9067$as_echo_n "checking for gcc architecture flag... " >&6; } 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 9069$as_echo "$ax_cv_gcc_archflag" >&6; } 9070if test "x$ax_cv_gcc_archflag" = xunknown; then 9071 : 9072else 9073 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 9074fi 9075 9076 9077 9078 9079 9080 9081 9082 9083if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9084 if test -n "$ac_tool_prefix"; then 9085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9086set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9088$as_echo_n "checking for $ac_word... " >&6; } 9089if ${ac_cv_path_PKG_CONFIG+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 case $PKG_CONFIG in 9093 [\\/]* | ?:[\\/]*) 9094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9095 ;; 9096 *) 9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9098for as_dir in $PATH 9099do 9100 IFS=$as_save_IFS 9101 test -z "$as_dir" && as_dir=. 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112 ;; 9113esac 9114fi 9115PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9116if test -n "$PKG_CONFIG"; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9118$as_echo "$PKG_CONFIG" >&6; } 9119else 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9121$as_echo "no" >&6; } 9122fi 9123 9124 9125fi 9126if test -z "$ac_cv_path_PKG_CONFIG"; then 9127 ac_pt_PKG_CONFIG=$PKG_CONFIG 9128 # Extract the first word of "pkg-config", so it can be a program name with args. 9129set dummy pkg-config; ac_word=$2 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9131$as_echo_n "checking for $ac_word... " >&6; } 9132if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 case $ac_pt_PKG_CONFIG in 9136 [\\/]* | ?:[\\/]*) 9137 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9138 ;; 9139 *) 9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9141for as_dir in $PATH 9142do 9143 IFS=$as_save_IFS 9144 test -z "$as_dir" && as_dir=. 9145 for ac_exec_ext in '' $ac_executable_extensions; do 9146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9149 break 2 9150 fi 9151done 9152 done 9153IFS=$as_save_IFS 9154 9155 ;; 9156esac 9157fi 9158ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9159if test -n "$ac_pt_PKG_CONFIG"; then 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9161$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9162else 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9164$as_echo "no" >&6; } 9165fi 9166 9167 if test "x$ac_pt_PKG_CONFIG" = x; then 9168 PKG_CONFIG="" 9169 else 9170 case $cross_compiling:$ac_tool_warned in 9171yes:) 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9174ac_tool_warned=yes ;; 9175esac 9176 PKG_CONFIG=$ac_pt_PKG_CONFIG 9177 fi 9178else 9179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9180fi 9181 9182fi 9183if test -n "$PKG_CONFIG"; then 9184 _pkg_min_version=0.9.0 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9186$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9189$as_echo "yes" >&6; } 9190 else 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9192$as_echo "no" >&6; } 9193 PKG_CONFIG="" 9194 fi 9195fi 9196 9197 9198 9199# Test for 64-bit build. 9200# The cast to long int works around a bug in the HP C Compiler 9201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9203# This bug is HP SR number 8606223364. 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 9205$as_echo_n "checking size of size_t... " >&6; } 9206if ${ac_cv_sizeof_size_t+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 9210 9211else 9212 if test "$ac_cv_type_size_t" = yes; then 9213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9215as_fn_error 77 "cannot compute sizeof (size_t) 9216See \`config.log' for more details" "$LINENO" 5; } 9217 else 9218 ac_cv_sizeof_size_t=0 9219 fi 9220fi 9221 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 9224$as_echo "$ac_cv_sizeof_size_t" >&6; } 9225 9226 9227 9228cat >>confdefs.h <<_ACEOF 9229#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 9230_ACEOF 9231 9232 9233 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 9235$as_echo_n "checking for C compiler vendor... " >&6; } 9236if ${ax_cv_c_compiler_vendor+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 # note: don't check for gcc first since some other compilers define __GNUC__ 9240 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 9241 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 9242 pathscale: __PATHCC__,__PATHSCALE__ 9243 clang: __clang__ 9244 cray: _CRAYC 9245 fujitsu: __FUJITSU 9246 gnu: __GNUC__ 9247 sun: __SUNPRO_C,__SUNPRO_CC 9248 hp: __HP_cc,__HP_aCC 9249 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 9250 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 9251 comeau: __COMO__ 9252 kai: __KCC 9253 lcc: __LCC__ 9254 sgi: __sgi,sgi 9255 microsoft: _MSC_VER 9256 metrowerks: __MWERKS__ 9257 watcom: __WATCOMC__ 9258 portland: __PGI 9259 tcc: __TINYC__ 9260 unknown: UNKNOWN" 9261 for ventest in $vendors; do 9262 case $ventest in 9263 *:) vendor=$ventest; continue ;; 9264 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 9265 esac 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268 9269int 9270main () 9271{ 9272 9273 #if !($vencpp) 9274 thisisanerror; 9275 #endif 9276 9277 ; 9278 return 0; 9279} 9280_ACEOF 9281if ac_fn_c_try_compile "$LINENO"; then : 9282 break 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285 done 9286 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 9287 9288fi 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 9290$as_echo "$ax_cv_c_compiler_vendor" >&6; } 9291 9292# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro 9293# compiler. 9294if test "$ax_cv_c_compiler_vendor" != "sun"; then 9295 ac_ext=c 9296ac_cpp='$CPP $CPPFLAGS' 9297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9299ac_compiler_gnu=$ac_cv_c_compiler_gnu 9300 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 9302$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 9303if ${ac_cv_cflags_warn_all+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 ac_cv_cflags_warn_all="no, unknown" 9307ac_save_CFLAGS="$CFLAGS" 9308for 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" # 9309do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313int 9314main () 9315{ 9316 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321if ac_fn_c_try_compile "$LINENO"; then : 9322 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 9323fi 9324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9325done 9326CFLAGS="$ac_save_CFLAGS" 9327 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 9330$as_echo "$ac_cv_cflags_warn_all" >&6; } 9331 9332 9333case ".$ac_cv_cflags_warn_all" in 9334 .ok|.ok,*) ;; 9335 .|.no|.no,*) ;; 9336 *) 9337if ${CFLAGS+:} false; then : 9338 9339 case " $CFLAGS " in #( 9340 *" $ac_cv_cflags_warn_all "*) : 9341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 9342 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 9343 ac_status=$? 9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9345 test $ac_status = 0; } ;; #( 9346 *) : 9347 9348 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 9349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 9350 (: CFLAGS="$CFLAGS") 2>&5 9351 ac_status=$? 9352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9353 test $ac_status = 0; } 9354 ;; 9355esac 9356 9357else 9358 9359 CFLAGS=$ac_cv_cflags_warn_all 9360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 9361 (: CFLAGS="$CFLAGS") 2>&5 9362 ac_status=$? 9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9364 test $ac_status = 0; } 9365 9366fi 9367 ;; 9368esac 9369 9370ac_ext=c 9371ac_cpp='$CPP $CPPFLAGS' 9372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9374ac_compiler_gnu=$ac_cv_c_compiler_gnu 9375 9376 9377fi 9378 9379if test "x$GCC" = "xyes"; then 9380 CFLAGS="$CFLAGS -fexceptions" 9381 touch local.exp 9382else 9383 cat > local.exp <<EOF 9384set CC_FOR_TARGET "$CC" 9385EOF 9386fi 9387 9388# Check for linker script support 9389 9390 # Check whether --enable-ld-version-script was given. 9391if test "${enable_ld_version_script+set}" = set; then : 9392 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 9393fi 9394 9395 if test -z "$have_ld_version_script"; then 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 9397$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 9398 save_LDFLAGS="$LDFLAGS" 9399 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 9400 cat > conftest.map <<EOF 9401foo 9402EOF 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405 9406int 9407main () 9408{ 9409 9410 ; 9411 return 0; 9412} 9413_ACEOF 9414if ac_fn_c_try_link "$LINENO"; then : 9415 accepts_syntax_errors=yes 9416else 9417 accepts_syntax_errors=no 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421 if test "$accepts_syntax_errors" = no; then 9422 cat > conftest.map <<EOF 9423VERS_1 { 9424 global: sym; 9425}; 9426 9427VERS_2 { 9428 global: sym; 9429} VERS_1; 9430EOF 9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9432/* end confdefs.h. */ 9433 9434int 9435main () 9436{ 9437 9438 ; 9439 return 0; 9440} 9441_ACEOF 9442if ac_fn_c_try_link "$LINENO"; then : 9443 have_ld_version_script=yes 9444else 9445 have_ld_version_script=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext \ 9448 conftest$ac_exeext conftest.$ac_ext 9449 else 9450 have_ld_version_script=no 9451 fi 9452 rm -f conftest.map 9453 LDFLAGS="$save_LDFLAGS" 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 9455$as_echo "$have_ld_version_script" >&6; } 9456 fi 9457 if test "$have_ld_version_script" = "yes"; then 9458 HAVE_LD_VERSION_SCRIPT_TRUE= 9459 HAVE_LD_VERSION_SCRIPT_FALSE='#' 9460else 9461 HAVE_LD_VERSION_SCRIPT_TRUE='#' 9462 HAVE_LD_VERSION_SCRIPT_FALSE= 9463fi 9464 9465 9466 9467# 9468# Enable run-time checking. 9469# 9470# Check whether --enable-bounds-checking was given. 9471if test "${enable_bounds_checking+set}" = set; then : 9472 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval 9473else 9474 enable_bounds_checking='no' 9475fi 9476 9477 9478if test "$enable_bounds_checking" = yes; then 9479 9480$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h 9481 9482fi 9483 9484# 9485# Tests for Windows 9486# 9487 9488 9489 9490GDI32_LIBS='' 9491native_win32_build='no' 9492cygwin_build='no' 9493case "${host_os}" in 9494 cygwin* ) 9495 cygwin_build='yes' 9496 GDI32_LIBS='-lgdi32' 9497 ;; 9498 mingw* ) 9499 native_win32_build='yes' 9500 GDI32_LIBS='-lgdi32' 9501 ;; 9502esac 9503if test "${GDI32_LIBS}x" != 'x'; then 9504 9505$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h 9506 9507fi 9508 9509 if test "${GDI32_LIBS}x" != 'x' ; then 9510 WINGDI32_DELEGATE_TRUE= 9511 WINGDI32_DELEGATE_FALSE='#' 9512else 9513 WINGDI32_DELEGATE_TRUE='#' 9514 WINGDI32_DELEGATE_FALSE= 9515fi 9516 9517 if test "${native_win32_build}" = 'yes' ; then 9518 WIN32_NATIVE_BUILD_TRUE= 9519 WIN32_NATIVE_BUILD_FALSE='#' 9520else 9521 WIN32_NATIVE_BUILD_TRUE='#' 9522 WIN32_NATIVE_BUILD_FALSE= 9523fi 9524 9525 if test "${cygwin_build}" = 'yes' ; then 9526 CYGWIN_BUILD_TRUE= 9527 CYGWIN_BUILD_FALSE='#' 9528else 9529 CYGWIN_BUILD_TRUE='#' 9530 CYGWIN_BUILD_FALSE= 9531fi 9532 9533 if test "x${CC}" = 'xcl.exe' ; then 9534 USING_CL_TRUE= 9535 USING_CL_FALSE='#' 9536else 9537 USING_CL_TRUE='#' 9538 USING_CL_FALSE= 9539fi 9540 9541 9542WinPathScript="${srcdirfull}/winpath.sh" 9543 9544 9545# 9546# Compiler flags tweaks 9547# 9548if test "${GCC}" != "yes"; then 9549 case "${host}" in 9550 *-*-hpux* ) 9551 # aCC: HP ANSI C++ B3910B A.03.34 9552 CFLAGS="${CFLAGS} -Wp,-H30000" 9553 if test -n "${CXXFLAGS}"; then 9554 CXXFLAGS='-AA' 9555 else 9556 CXXFLAGS="${CXXFLAGS} -AA" 9557 fi 9558 ;; 9559 *-dec-osf5.* ) 9560 # Compaq alphaev68-dec-osf5.1 compiler 9561 if test -n "${CXXFLAGS}"; then 9562 CXXFLAGS='-std strict_ansi -noimplicit_include' 9563 else 9564 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 9565 fi 9566 esac 9567fi 9568 9569# Check for lazy-loading. 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 9571$as_echo_n "checking for linker lazyload option... " >&6; } 9572if ${im_cv_ld_lazyload+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574else 9575 9576im_cv_ld_lazyload='none' 9577case "${host}" in 9578 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 9579 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 9580 im_cv_ld_lazyload='-Wl,-zlazyload' 9581 fi 9582 ;; 9583esac 9584 9585fi 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 9587$as_echo "$im_cv_ld_lazyload" >&6; } 9588if test "${im_cv_ld_lazyload}" != 'none' ; then 9589 if test -z "${LDFLAGS}" ; then 9590 LDFLAGS="${im_cv_ld_lazyload}" 9591 else 9592 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 9593 fi 9594fi 9595 9596case "$host" in 9597 *darwin* | *-macos10*) 9598 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" 9599 # Check whether --enable-osx-universal-binary was given. 9600if test "${enable_osx_universal_binary+set}" = set; then : 9601 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" 9602else 9603 build_osxuniversal=no 9604fi 9605 9606 9607 if test "${build_osxuniversal}" != no ; then 9608 if test "$enable_dependency_tracking" != no ; then 9609 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. 9610Please re-run configure with these options: 9611 --disable-dependency-tracking --enable-osx-universal-binary 9612 " "$LINENO" 5 9613 fi 9614 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 9615 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 9616 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 9617 fi 9618 ;; 9619esac 9620 9621# 9622# ARCH specific include directory 9623# 9624 9625# Check whether --with-includearch-dir was given. 9626if test "${with_includearch_dir+set}" = set; then : 9627 withval=$with_includearch_dir; includearch_dir=$withval 9628else 9629 includearch_dir=$INCLUDE_DIR 9630fi 9631 9632 9633eval "eval INCLUDEARCH_DIR=$includearch_dir" 9634 9635 9636# 9637# ARCH specific configuration directory 9638# 9639 9640# Check whether --with-sharearch-dir was given. 9641if test "${with_sharearch_dir+set}" = set; then : 9642 withval=$with_sharearch_dir; sharearch_dir=$withval 9643else 9644 sharearch_dir="${LIB_DIR}" 9645fi 9646 9647 9648eval "eval SHAREARCH_DIR=$sharearch_dir" 9649 9650 9651# Path to the pkgconfig folder 9652 9653# Check whether --with-pkgconfigdir was given. 9654if test "${with_pkgconfigdir+set}" = set; then : 9655 withval=$with_pkgconfigdir; pkgconfigdir="$withval" 9656else 9657 pkgconfigdir='${libdir}/pkgconfig' 9658fi 9659 9660 9661 9662# 9663# Enable support for threads 9664# 9665# Find Posix threads library 9666# 9667 9668# Check whether --with-threads was given. 9669if test "${with_threads+set}" = set; then : 9670 withval=$with_threads; with_threads=$withval 9671else 9672 with_threads='yes' 9673fi 9674 9675 9676THREAD_LIBS='' 9677have_threads=no 9678if test "$with_threads" != 'no'; then 9679 9680 9681ac_ext=c 9682ac_cpp='$CPP $CPPFLAGS' 9683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9685ac_compiler_gnu=$ac_cv_c_compiler_gnu 9686 9687ax_pthread_ok=no 9688 9689# We used to check for pthread.h first, but this fails if pthread.h 9690# requires special compiler flags (e.g. on True64 or Sequent). 9691# It gets checked for in the link test anyway. 9692 9693# First of all, check if the user has set any of the PTHREAD_LIBS, 9694# etcetera environment variables, and if threads linking works using 9695# them: 9696if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 9697 save_CFLAGS="$CFLAGS" 9698 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9699 save_LIBS="$LIBS" 9700 LIBS="$PTHREAD_LIBS $LIBS" 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 9702$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705 9706/* Override any GCC internal prototype to avoid an error. 9707 Use char because int might match the return type of a GCC 9708 builtin and then its argument prototype would still apply. */ 9709#ifdef __cplusplus 9710extern "C" 9711#endif 9712char pthread_join (); 9713int 9714main () 9715{ 9716return pthread_join (); 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO"; then : 9722 ax_pthread_ok=yes 9723fi 9724rm -f core conftest.err conftest.$ac_objext \ 9725 conftest$ac_exeext conftest.$ac_ext 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9727$as_echo "$ax_pthread_ok" >&6; } 9728 if test x"$ax_pthread_ok" = xno; then 9729 PTHREAD_LIBS="" 9730 PTHREAD_CFLAGS="" 9731 fi 9732 LIBS="$save_LIBS" 9733 CFLAGS="$save_CFLAGS" 9734fi 9735 9736# We must check for the threads library under a number of different 9737# names; the ordering is very important because some systems 9738# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 9739# libraries is broken (non-POSIX). 9740 9741# Create a list of thread flags to try. Items starting with a "-" are 9742# C compiler flags, and other items are library names, except for "none" 9743# which indicates that we try without any flags at all, and "pthread-config" 9744# which is a program returning the flags for the Pth emulation library. 9745 9746ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 9747 9748# The ordering *is* (sometimes) important. Some notes on the 9749# individual items follow: 9750 9751# pthreads: AIX (must check this before -lpthread) 9752# none: in case threads are in libc; should be tried before -Kthread and 9753# other compiler flags to prevent continual compiler warnings 9754# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 9755# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 9756# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 9757# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 9758# -pthreads: Solaris/gcc 9759# -mthreads: Mingw32/gcc, Lynx/gcc 9760# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9761# doesn't hurt to check since this sometimes defines pthreads too; 9762# also defines -D_REENTRANT) 9763# ... -mt is also the pthreads flag for HP/aCC 9764# pthread: Linux, etcetera 9765# --thread-safe: KAI C++ 9766# pthread-config: use pthread-config program (for GNU Pth library) 9767 9768case ${host_os} in 9769 solaris*) 9770 9771 # On Solaris (at least, for some versions), libc contains stubbed 9772 # (non-functional) versions of the pthreads routines, so link-based 9773 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 9774 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 9775 # a function called by this macro, so we could check for that, but 9776 # who knows whether they'll stub that too in a future libc.) So, 9777 # we'll just look for -pthreads and -lpthread first: 9778 9779 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 9780 ;; 9781 9782 darwin*) 9783 ax_pthread_flags="-pthread $ax_pthread_flags" 9784 ;; 9785esac 9786 9787# Clang doesn't consider unrecognized options an error unless we specify 9788# -Werror. We throw in some extra Clang-specific options to ensure that 9789# this doesn't happen for GCC, which also accepts -Werror. 9790 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 9792$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 9793save_CFLAGS="$CFLAGS" 9794ax_pthread_extra_flags="-Werror" 9795CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 9796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int foo(void); 9799int 9800main () 9801{ 9802foo() 9803 ; 9804 return 0; 9805} 9806_ACEOF 9807if ac_fn_c_try_compile "$LINENO"; then : 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9809$as_echo "yes" >&6; } 9810else 9811 ax_pthread_extra_flags= 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9813$as_echo "no" >&6; } 9814fi 9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9816CFLAGS="$save_CFLAGS" 9817 9818if test x"$ax_pthread_ok" = xno; then 9819for flag in $ax_pthread_flags; do 9820 9821 case $flag in 9822 none) 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9824$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9825 ;; 9826 9827 -*) 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 9829$as_echo_n "checking whether pthreads work with $flag... " >&6; } 9830 PTHREAD_CFLAGS="$flag" 9831 ;; 9832 9833 pthread-config) 9834 # Extract the first word of "pthread-config", so it can be a program name with args. 9835set dummy pthread-config; ac_word=$2 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9837$as_echo_n "checking for $ac_word... " >&6; } 9838if ${ac_cv_prog_ax_pthread_config+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 if test -n "$ax_pthread_config"; then 9842 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9843else 9844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9845for as_dir in $PATH 9846do 9847 IFS=$as_save_IFS 9848 test -z "$as_dir" && as_dir=. 9849 for ac_exec_ext in '' $ac_executable_extensions; do 9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9851 ac_cv_prog_ax_pthread_config="yes" 9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9853 break 2 9854 fi 9855done 9856 done 9857IFS=$as_save_IFS 9858 9859 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9860fi 9861fi 9862ax_pthread_config=$ac_cv_prog_ax_pthread_config 9863if test -n "$ax_pthread_config"; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9865$as_echo "$ax_pthread_config" >&6; } 9866else 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9868$as_echo "no" >&6; } 9869fi 9870 9871 9872 if test x"$ax_pthread_config" = xno; then continue; fi 9873 PTHREAD_CFLAGS="`pthread-config --cflags`" 9874 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9875 ;; 9876 9877 *) 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 9879$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 9880 PTHREAD_LIBS="-l$flag" 9881 ;; 9882 esac 9883 9884 save_LIBS="$LIBS" 9885 save_CFLAGS="$CFLAGS" 9886 LIBS="$PTHREAD_LIBS $LIBS" 9887 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 9888 9889 # Check for various functions. We must include pthread.h, 9890 # since some functions may be macros. (On the Sequent, we 9891 # need a special flag -Kthread to make this header compile.) 9892 # We check for pthread_join because it is in -lpthread on IRIX 9893 # while pthread_create is in libc. We check for pthread_attr_init 9894 # due to DEC craziness with -lpthreads. We check for 9895 # pthread_cleanup_push because it is one of the few pthread 9896 # functions on Solaris that doesn't have a non-functional libc stub. 9897 # We try pthread_create on general principles. 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900#include <pthread.h> 9901 static void routine(void *a) { a = 0; } 9902 static void *start_routine(void *a) { return a; } 9903int 9904main () 9905{ 9906pthread_t th; pthread_attr_t attr; 9907 pthread_create(&th, 0, start_routine, 0); 9908 pthread_join(th, 0); 9909 pthread_attr_init(&attr); 9910 pthread_cleanup_push(routine, 0); 9911 pthread_cleanup_pop(0) /* ; */ 9912 ; 9913 return 0; 9914} 9915_ACEOF 9916if ac_fn_c_try_link "$LINENO"; then : 9917 ax_pthread_ok=yes 9918fi 9919rm -f core conftest.err conftest.$ac_objext \ 9920 conftest$ac_exeext conftest.$ac_ext 9921 9922 LIBS="$save_LIBS" 9923 CFLAGS="$save_CFLAGS" 9924 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9926$as_echo "$ax_pthread_ok" >&6; } 9927 if test "x$ax_pthread_ok" = xyes; then 9928 break; 9929 fi 9930 9931 PTHREAD_LIBS="" 9932 PTHREAD_CFLAGS="" 9933done 9934fi 9935 9936# Various other checks: 9937if test "x$ax_pthread_ok" = xyes; then 9938 save_LIBS="$LIBS" 9939 LIBS="$PTHREAD_LIBS $LIBS" 9940 save_CFLAGS="$CFLAGS" 9941 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9942 9943 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9945$as_echo_n "checking for joinable pthread attribute... " >&6; } 9946 attr_name=unknown 9947 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950#include <pthread.h> 9951int 9952main () 9953{ 9954int attr = $attr; return attr /* ; */ 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO"; then : 9960 attr_name=$attr; break 9961fi 9962rm -f core conftest.err conftest.$ac_objext \ 9963 conftest$ac_exeext conftest.$ac_ext 9964 done 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 9966$as_echo "$attr_name" >&6; } 9967 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 9968 9969cat >>confdefs.h <<_ACEOF 9970#define PTHREAD_CREATE_JOINABLE $attr_name 9971_ACEOF 9972 9973 fi 9974 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 9976$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 9977 flag=no 9978 case ${host_os} in 9979 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 9980 osf* | hpux*) flag="-D_REENTRANT";; 9981 solaris*) 9982 if test "$GCC" = "yes"; then 9983 flag="-D_REENTRANT" 9984 else 9985 # TODO: What about Clang on Solaris? 9986 flag="-mt -D_REENTRANT" 9987 fi 9988 ;; 9989 esac 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 9991$as_echo "$flag" >&6; } 9992 if test "x$flag" != xno; then 9993 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 9994 fi 9995 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9997$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9998if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004#include <pthread.h> 10005int 10006main () 10007{ 10008int i = PTHREAD_PRIO_INHERIT; 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013if ac_fn_c_try_link "$LINENO"; then : 10014 ax_cv_PTHREAD_PRIO_INHERIT=yes 10015else 10016 ax_cv_PTHREAD_PRIO_INHERIT=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext \ 10019 conftest$ac_exeext conftest.$ac_ext 10020 10021fi 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 10023$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 10024 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 10025 10026$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 10027 10028fi 10029 10030 LIBS="$save_LIBS" 10031 CFLAGS="$save_CFLAGS" 10032 10033 # More AIX lossage: compile with *_r variant 10034 if test "x$GCC" != xyes; then 10035 case $host_os in 10036 aix*) 10037 case "x/$CC" in #( 10038 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 10039 #handle absolute path differently from PATH based program lookup 10040 case "x$CC" in #( 10041 x/*) : 10042 if as_fn_executable_p ${CC}_r; then : 10043 PTHREAD_CC="${CC}_r" 10044fi ;; #( 10045 *) : 10046 for ac_prog in ${CC}_r 10047do 10048 # Extract the first word of "$ac_prog", so it can be a program name with args. 10049set dummy $ac_prog; ac_word=$2 10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10051$as_echo_n "checking for $ac_word... " >&6; } 10052if ${ac_cv_prog_PTHREAD_CC+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 if test -n "$PTHREAD_CC"; then 10056 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 10057else 10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10059for as_dir in $PATH 10060do 10061 IFS=$as_save_IFS 10062 test -z "$as_dir" && as_dir=. 10063 for ac_exec_ext in '' $ac_executable_extensions; do 10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10065 ac_cv_prog_PTHREAD_CC="$ac_prog" 10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10067 break 2 10068 fi 10069done 10070 done 10071IFS=$as_save_IFS 10072 10073fi 10074fi 10075PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 10076if test -n "$PTHREAD_CC"; then 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 10078$as_echo "$PTHREAD_CC" >&6; } 10079else 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10081$as_echo "no" >&6; } 10082fi 10083 10084 10085 test -n "$PTHREAD_CC" && break 10086done 10087test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10088 ;; 10089esac ;; #( 10090 *) : 10091 ;; 10092esac 10093 ;; 10094 esac 10095 fi 10096fi 10097 10098test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10099 10100 10101 10102 10103 10104# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 10105if test x"$ax_pthread_ok" = xyes; then 10106 10107$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 10108 10109 : 10110else 10111 ax_pthread_ok=no 10112 10113fi 10114ac_ext=c 10115ac_cpp='$CPP $CPPFLAGS' 10116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10118ac_compiler_gnu=$ac_cv_c_compiler_gnu 10119 10120 10121 if test "$ax_pthread_ok" = yes; then 10122 have_threads=yes 10123 DEF_THREAD="$PTHREAD_CFLAGS" 10124 CFLAGS="$CFLAGS $DEF_THREAD" 10125 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 10126 THREAD_LIBS="$PTHREAD_LIBS" 10127 if test "$CC" != "$PTHREAD_CC"; then 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 10129$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 10130 CC="$PTHREAD_CC" 10131 fi 10132 10133$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h 10134 10135 fi 10136fi 10137LIBS="$LIBS $THREAD_LIBS" 10138 10139 10140# Enable support for OpenMP 10141if test "$have_threads" != 'yes'; then 10142 ac_cv_prog_c_openmp=unsupported 10143fi 10144 10145 OPENMP_CFLAGS= 10146 # Check whether --enable-openmp was given. 10147if test "${enable_openmp+set}" = set; then : 10148 enableval=$enable_openmp; 10149fi 10150 10151 if test "$enable_openmp" != no; then 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 10153$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 10154if ${ac_cv_prog_c_openmp+:} false; then : 10155 $as_echo_n "(cached) " >&6 10156else 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158/* end confdefs.h. */ 10159 10160#ifndef _OPENMP 10161 choke me 10162#endif 10163#include <omp.h> 10164int main () { return omp_get_num_threads (); } 10165 10166_ACEOF 10167if ac_fn_c_try_link "$LINENO"; then : 10168 ac_cv_prog_c_openmp='none needed' 10169else 10170 ac_cv_prog_c_openmp='unsupported' 10171 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 10172 -Popenmp --openmp; do 10173 ac_save_CFLAGS=$CFLAGS 10174 CFLAGS="$CFLAGS $ac_option" 10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177 10178#ifndef _OPENMP 10179 choke me 10180#endif 10181#include <omp.h> 10182int main () { return omp_get_num_threads (); } 10183 10184_ACEOF 10185if ac_fn_c_try_link "$LINENO"; then : 10186 ac_cv_prog_c_openmp=$ac_option 10187fi 10188rm -f core conftest.err conftest.$ac_objext \ 10189 conftest$ac_exeext conftest.$ac_ext 10190 CFLAGS=$ac_save_CFLAGS 10191 if test "$ac_cv_prog_c_openmp" != unsupported; then 10192 break 10193 fi 10194 done 10195fi 10196rm -f core conftest.err conftest.$ac_objext \ 10197 conftest$ac_exeext conftest.$ac_ext 10198fi 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 10200$as_echo "$ac_cv_prog_c_openmp" >&6; } 10201 case $ac_cv_prog_c_openmp in #( 10202 "none needed" | unsupported) 10203 ;; #( 10204 *) 10205 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 10206 esac 10207 fi 10208 10209 10210CFLAGS="$OPENMP_CFLAGS $CFLAGS" 10211MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 10212 10213if test "$enable_openmp" != no; then 10214 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 10215 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 10216 fi 10217fi 10218 10219# Enable support for OpenCL 10220 10221 10222ac_ext=c 10223ac_cpp='$CPP $CPPFLAGS' 10224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10226ac_compiler_gnu=$ac_cv_c_compiler_gnu 10227 10228ax_pthread_ok=no 10229 10230# We used to check for pthread.h first, but this fails if pthread.h 10231# requires special compiler flags (e.g. on True64 or Sequent). 10232# It gets checked for in the link test anyway. 10233 10234# First of all, check if the user has set any of the PTHREAD_LIBS, 10235# etcetera environment variables, and if threads linking works using 10236# them: 10237if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 10238 save_CFLAGS="$CFLAGS" 10239 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10240 save_LIBS="$LIBS" 10241 LIBS="$PTHREAD_LIBS $LIBS" 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 10243$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245/* end confdefs.h. */ 10246 10247/* Override any GCC internal prototype to avoid an error. 10248 Use char because int might match the return type of a GCC 10249 builtin and then its argument prototype would still apply. */ 10250#ifdef __cplusplus 10251extern "C" 10252#endif 10253char pthread_join (); 10254int 10255main () 10256{ 10257return pthread_join (); 10258 ; 10259 return 0; 10260} 10261_ACEOF 10262if ac_fn_c_try_link "$LINENO"; then : 10263 ax_pthread_ok=yes 10264fi 10265rm -f core conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 10268$as_echo "$ax_pthread_ok" >&6; } 10269 if test x"$ax_pthread_ok" = xno; then 10270 PTHREAD_LIBS="" 10271 PTHREAD_CFLAGS="" 10272 fi 10273 LIBS="$save_LIBS" 10274 CFLAGS="$save_CFLAGS" 10275fi 10276 10277# We must check for the threads library under a number of different 10278# names; the ordering is very important because some systems 10279# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 10280# libraries is broken (non-POSIX). 10281 10282# Create a list of thread flags to try. Items starting with a "-" are 10283# C compiler flags, and other items are library names, except for "none" 10284# which indicates that we try without any flags at all, and "pthread-config" 10285# which is a program returning the flags for the Pth emulation library. 10286 10287ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 10288 10289# The ordering *is* (sometimes) important. Some notes on the 10290# individual items follow: 10291 10292# pthreads: AIX (must check this before -lpthread) 10293# none: in case threads are in libc; should be tried before -Kthread and 10294# other compiler flags to prevent continual compiler warnings 10295# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 10296# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 10297# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 10298# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 10299# -pthreads: Solaris/gcc 10300# -mthreads: Mingw32/gcc, Lynx/gcc 10301# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 10302# doesn't hurt to check since this sometimes defines pthreads too; 10303# also defines -D_REENTRANT) 10304# ... -mt is also the pthreads flag for HP/aCC 10305# pthread: Linux, etcetera 10306# --thread-safe: KAI C++ 10307# pthread-config: use pthread-config program (for GNU Pth library) 10308 10309case ${host_os} in 10310 solaris*) 10311 10312 # On Solaris (at least, for some versions), libc contains stubbed 10313 # (non-functional) versions of the pthreads routines, so link-based 10314 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 10315 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 10316 # a function called by this macro, so we could check for that, but 10317 # who knows whether they'll stub that too in a future libc.) So, 10318 # we'll just look for -pthreads and -lpthread first: 10319 10320 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 10321 ;; 10322 10323 darwin*) 10324 ax_pthread_flags="-pthread $ax_pthread_flags" 10325 ;; 10326esac 10327 10328# Clang doesn't consider unrecognized options an error unless we specify 10329# -Werror. We throw in some extra Clang-specific options to ensure that 10330# this doesn't happen for GCC, which also accepts -Werror. 10331 10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 10333$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 10334save_CFLAGS="$CFLAGS" 10335ax_pthread_extra_flags="-Werror" 10336CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 10337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338/* end confdefs.h. */ 10339int foo(void); 10340int 10341main () 10342{ 10343foo() 10344 ; 10345 return 0; 10346} 10347_ACEOF 10348if ac_fn_c_try_compile "$LINENO"; then : 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10350$as_echo "yes" >&6; } 10351else 10352 ax_pthread_extra_flags= 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10354$as_echo "no" >&6; } 10355fi 10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10357CFLAGS="$save_CFLAGS" 10358 10359if test x"$ax_pthread_ok" = xno; then 10360for flag in $ax_pthread_flags; do 10361 10362 case $flag in 10363 none) 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 10365$as_echo_n "checking whether pthreads work without any flags... " >&6; } 10366 ;; 10367 10368 -*) 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 10370$as_echo_n "checking whether pthreads work with $flag... " >&6; } 10371 PTHREAD_CFLAGS="$flag" 10372 ;; 10373 10374 pthread-config) 10375 # Extract the first word of "pthread-config", so it can be a program name with args. 10376set dummy pthread-config; ac_word=$2 10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10378$as_echo_n "checking for $ac_word... " >&6; } 10379if ${ac_cv_prog_ax_pthread_config+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 if test -n "$ax_pthread_config"; then 10383 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 10384else 10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10386for as_dir in $PATH 10387do 10388 IFS=$as_save_IFS 10389 test -z "$as_dir" && as_dir=. 10390 for ac_exec_ext in '' $ac_executable_extensions; do 10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10392 ac_cv_prog_ax_pthread_config="yes" 10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10394 break 2 10395 fi 10396done 10397 done 10398IFS=$as_save_IFS 10399 10400 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 10401fi 10402fi 10403ax_pthread_config=$ac_cv_prog_ax_pthread_config 10404if test -n "$ax_pthread_config"; then 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 10406$as_echo "$ax_pthread_config" >&6; } 10407else 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10409$as_echo "no" >&6; } 10410fi 10411 10412 10413 if test x"$ax_pthread_config" = xno; then continue; fi 10414 PTHREAD_CFLAGS="`pthread-config --cflags`" 10415 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 10416 ;; 10417 10418 *) 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 10420$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 10421 PTHREAD_LIBS="-l$flag" 10422 ;; 10423 esac 10424 10425 save_LIBS="$LIBS" 10426 save_CFLAGS="$CFLAGS" 10427 LIBS="$PTHREAD_LIBS $LIBS" 10428 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 10429 10430 # Check for various functions. We must include pthread.h, 10431 # since some functions may be macros. (On the Sequent, we 10432 # need a special flag -Kthread to make this header compile.) 10433 # We check for pthread_join because it is in -lpthread on IRIX 10434 # while pthread_create is in libc. We check for pthread_attr_init 10435 # due to DEC craziness with -lpthreads. We check for 10436 # pthread_cleanup_push because it is one of the few pthread 10437 # functions on Solaris that doesn't have a non-functional libc stub. 10438 # We try pthread_create on general principles. 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441#include <pthread.h> 10442 static void routine(void *a) { a = 0; } 10443 static void *start_routine(void *a) { return a; } 10444int 10445main () 10446{ 10447pthread_t th; pthread_attr_t attr; 10448 pthread_create(&th, 0, start_routine, 0); 10449 pthread_join(th, 0); 10450 pthread_attr_init(&attr); 10451 pthread_cleanup_push(routine, 0); 10452 pthread_cleanup_pop(0) /* ; */ 10453 ; 10454 return 0; 10455} 10456_ACEOF 10457if ac_fn_c_try_link "$LINENO"; then : 10458 ax_pthread_ok=yes 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 10463 LIBS="$save_LIBS" 10464 CFLAGS="$save_CFLAGS" 10465 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 10467$as_echo "$ax_pthread_ok" >&6; } 10468 if test "x$ax_pthread_ok" = xyes; then 10469 break; 10470 fi 10471 10472 PTHREAD_LIBS="" 10473 PTHREAD_CFLAGS="" 10474done 10475fi 10476 10477# Various other checks: 10478if test "x$ax_pthread_ok" = xyes; then 10479 save_LIBS="$LIBS" 10480 LIBS="$PTHREAD_LIBS $LIBS" 10481 save_CFLAGS="$CFLAGS" 10482 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10483 10484 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 10486$as_echo_n "checking for joinable pthread attribute... " >&6; } 10487 attr_name=unknown 10488 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491#include <pthread.h> 10492int 10493main () 10494{ 10495int attr = $attr; return attr /* ; */ 10496 ; 10497 return 0; 10498} 10499_ACEOF 10500if ac_fn_c_try_link "$LINENO"; then : 10501 attr_name=$attr; break 10502fi 10503rm -f core conftest.err conftest.$ac_objext \ 10504 conftest$ac_exeext conftest.$ac_ext 10505 done 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 10507$as_echo "$attr_name" >&6; } 10508 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 10509 10510cat >>confdefs.h <<_ACEOF 10511#define PTHREAD_CREATE_JOINABLE $attr_name 10512_ACEOF 10513 10514 fi 10515 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 10517$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 10518 flag=no 10519 case ${host_os} in 10520 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 10521 osf* | hpux*) flag="-D_REENTRANT";; 10522 solaris*) 10523 if test "$GCC" = "yes"; then 10524 flag="-D_REENTRANT" 10525 else 10526 # TODO: What about Clang on Solaris? 10527 flag="-mt -D_REENTRANT" 10528 fi 10529 ;; 10530 esac 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 10532$as_echo "$flag" >&6; } 10533 if test "x$flag" != xno; then 10534 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 10535 fi 10536 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 10538$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 10539if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544/* end confdefs.h. */ 10545#include <pthread.h> 10546int 10547main () 10548{ 10549int i = PTHREAD_PRIO_INHERIT; 10550 ; 10551 return 0; 10552} 10553_ACEOF 10554if ac_fn_c_try_link "$LINENO"; then : 10555 ax_cv_PTHREAD_PRIO_INHERIT=yes 10556else 10557 ax_cv_PTHREAD_PRIO_INHERIT=no 10558fi 10559rm -f core conftest.err conftest.$ac_objext \ 10560 conftest$ac_exeext conftest.$ac_ext 10561 10562fi 10563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 10564$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 10565 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 10566 10567$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 10568 10569fi 10570 10571 LIBS="$save_LIBS" 10572 CFLAGS="$save_CFLAGS" 10573 10574 # More AIX lossage: compile with *_r variant 10575 if test "x$GCC" != xyes; then 10576 case $host_os in 10577 aix*) 10578 case "x/$CC" in #( 10579 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 10580 #handle absolute path differently from PATH based program lookup 10581 case "x$CC" in #( 10582 x/*) : 10583 if as_fn_executable_p ${CC}_r; then : 10584 PTHREAD_CC="${CC}_r" 10585fi ;; #( 10586 *) : 10587 for ac_prog in ${CC}_r 10588do 10589 # Extract the first word of "$ac_prog", so it can be a program name with args. 10590set dummy $ac_prog; ac_word=$2 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10592$as_echo_n "checking for $ac_word... " >&6; } 10593if ${ac_cv_prog_PTHREAD_CC+:} false; then : 10594 $as_echo_n "(cached) " >&6 10595else 10596 if test -n "$PTHREAD_CC"; then 10597 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 10598else 10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10600for as_dir in $PATH 10601do 10602 IFS=$as_save_IFS 10603 test -z "$as_dir" && as_dir=. 10604 for ac_exec_ext in '' $ac_executable_extensions; do 10605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10606 ac_cv_prog_PTHREAD_CC="$ac_prog" 10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10608 break 2 10609 fi 10610done 10611 done 10612IFS=$as_save_IFS 10613 10614fi 10615fi 10616PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 10617if test -n "$PTHREAD_CC"; then 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 10619$as_echo "$PTHREAD_CC" >&6; } 10620else 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10622$as_echo "no" >&6; } 10623fi 10624 10625 10626 test -n "$PTHREAD_CC" && break 10627done 10628test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10629 ;; 10630esac ;; #( 10631 *) : 10632 ;; 10633esac 10634 ;; 10635 esac 10636 fi 10637fi 10638 10639test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10640 10641 10642 10643 10644 10645# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 10646if test x"$ax_pthread_ok" = xyes; then 10647 10648$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 10649 10650 : 10651else 10652 ax_pthread_ok=no 10653 10654fi 10655ac_ext=c 10656ac_cpp='$CPP $CPPFLAGS' 10657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10659ac_compiler_gnu=$ac_cv_c_compiler_gnu 10660 10661 10662 10663# Check whether --enable-opencl was given. 10664if test "${enable_opencl+set}" = set; then : 10665 enableval=$enable_opencl; enable_opencl=$enableval 10666else 10667 enable_opencl='no' 10668fi 10669 10670 10671if test "$enable_opencl" = 'yes'; then 10672 ac_ext=c 10673ac_cpp='$CPP $CPPFLAGS' 10674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10676ac_compiler_gnu=$ac_cv_c_compiler_gnu 10677 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 10679$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 10680if ${ax_cv_c_compiler_ms+:} false; then : 10681 $as_echo_n "(cached) " >&6 10682else 10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684/* end confdefs.h. */ 10685 10686int 10687main () 10688{ 10689#ifndef _MSC_VER 10690 choke me 10691#endif 10692 10693 ; 10694 return 0; 10695} 10696_ACEOF 10697if ac_fn_c_try_compile "$LINENO"; then : 10698 ax_compiler_ms=yes 10699else 10700 ax_compiler_ms=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10703ax_cv_c_compiler_ms=$ax_compiler_ms 10704 10705fi 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 10707$as_echo "$ax_cv_c_compiler_ms" >&6; } 10708 if test X$ax_compiler_ms = Xno; then : 10709 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 10710fi 10711 10712 ax_save_CPPFLAGS=$CPPFLAGS 10713 ax_save_CL_CFLAGS=$CL_CFLAGS 10714 10715 found_opencl_header='no' 10716 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 10717 for ac_header in CL/cl.h OpenCL/cl.h 10718do : 10719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10722 cat >>confdefs.h <<_ACEOF 10723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10724_ACEOF 10725 found_opencl_header='yes' 10726 break; 10727else 10728 found_opencl_header='no' 10729fi 10730 10731done 10732 10733 10734 if test X$found_opencl_header = Xno; then : 10735 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;} 10736 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;} 10737 CL_CFLAGS="-I$AMDAPPSDKROOT/include" 10738 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS" 10739 for ac_header in CL/cl.h OpenCL/cl.h 10740do : 10741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10744 cat >>confdefs.h <<_ACEOF 10745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10746_ACEOF 10747 found_opencl_header='yes' 10748 break; 10749else 10750 found_opencl_header='no' 10751fi 10752 10753done 10754 10755 10756fi 10757 10758 CPPFLAGS="$ax_save_CPPFLAGS" 10759 10760 for ac_header in windows.h 10761do : 10762 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 10763if test "x$ac_cv_header_windows_h" = xyes; then : 10764 cat >>confdefs.h <<_ACEOF 10765#define HAVE_WINDOWS_H 1 10766_ACEOF 10767 10768fi 10769 10770done 10771 10772 10773 10774 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 10776$as_echo_n "checking for OpenCL library... " >&6; } 10777if ${ax_cv_check_cl_libcl+:} false; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 ax_cv_check_cl_libcl=no 10781 case $host_cpu in 10782 x86_64) ax_check_cl_libdir=lib64 10783 ax_check_cl_amd_libdir=x86_64 10784 ;; 10785 *) ax_check_cl_libdir=lib 10786 ax_check_cl_amd_libdir=x86 10787 ;; 10788 esac 10789 ax_save_CPPFLAGS=$CPPFLAGS 10790 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 10791 ax_save_LIBS=$LIBS 10792 LIBS="" 10793 ax_check_libs="-lOpenCL -lCL -lclparser" 10794 for ax_lib in $ax_check_libs; do 10795 if test X$ax_compiler_ms = Xyes; then : 10796 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 10797else 10798 ax_try_lib=$ax_lib 10799fi 10800 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803 10804 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10805 # include <windows.h> 10806 # endif 10807 # ifdef HAVE_CL_CL_H 10808 # include <CL/cl.h> 10809 # elif defined(HAVE_OPENCL_CL_H) 10810 # include <OpenCL/cl.h> 10811 # else 10812 # error no CL.h 10813 # endif 10814int 10815main () 10816{ 10817clCreateContextFromType(0,0,0,0,0) 10818 ; 10819 return 0; 10820} 10821_ACEOF 10822if ac_fn_c_try_link "$LINENO"; then : 10823 ax_cv_check_cl_libcl=$ax_try_lib; break 10824else 10825 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" 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828 10829 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10830 # include <windows.h> 10831 # endif 10832 # ifdef HAVE_CL_CL_H 10833 # include <CL/cl.h> 10834 # elif defined(HAVE_OPENCL_CL_H) 10835 # include <OpenCL/cl.h> 10836 # else 10837 # error no CL.h 10838 # endif 10839int 10840main () 10841{ 10842clCreateContextFromType(0,0,0,0,0) 10843 ; 10844 return 0; 10845} 10846_ACEOF 10847if ac_fn_c_try_link "$LINENO"; then : 10848 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 10849else 10850 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" 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10855 # include <windows.h> 10856 # endif 10857 # ifdef HAVE_CL_CL_H 10858 # include <CL/cl.h> 10859 # elif defined(HAVE_OPENCL_CL_H) 10860 # include <OpenCL/cl.h> 10861 # else 10862 # error no CL.h 10863 # endif 10864int 10865main () 10866{ 10867clCreateContextFromType(0,0,0,0,0) 10868 ; 10869 return 0; 10870} 10871_ACEOF 10872if ac_fn_c_try_link "$LINENO"; then : 10873 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 10874else 10875 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" 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878 10879 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10880 # include <windows.h> 10881 # endif 10882 # ifdef HAVE_CL_CL_H 10883 # include <CL/cl.h> 10884 # elif defined(HAVE_OPENCL_CL_H) 10885 # include <OpenCL/cl.h> 10886 # else 10887 # error no CL.h 10888 # endif 10889int 10890main () 10891{ 10892clCreateContextFromType(0,0,0,0,0) 10893 ; 10894 return 0; 10895} 10896_ACEOF 10897if ac_fn_c_try_link "$LINENO"; then : 10898 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break 10899 10900fi 10901rm -f core conftest.err conftest.$ac_objext \ 10902 conftest$ac_exeext conftest.$ac_ext 10903 10904 10905fi 10906rm -f core conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908fi 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911fi 10912rm -f core conftest.err conftest.$ac_objext \ 10913 conftest$ac_exeext conftest.$ac_ext 10914 done 10915 10916 if test "X$ax_cv_check_cl_libcl" = Xno; then : 10917 LIBS='-Wl,-framework,OpenCL' 10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10922 # include <windows.h> 10923 # endif 10924 # ifdef HAVE_CL_CL_H 10925 # include <CL/cl.h> 10926 # elif defined(HAVE_OPENCL_CL_H) 10927 # include <OpenCL/cl.h> 10928 # else 10929 # error no CL.h 10930 # endif 10931int 10932main () 10933{ 10934clCreateContextFromType(0,0,0,0,0) 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_c_try_link "$LINENO"; then : 10940 ax_cv_check_cl_libcl=$LIBS 10941fi 10942rm -f core conftest.err conftest.$ac_objext \ 10943 conftest$ac_exeext conftest.$ac_ext 10944fi 10945 10946 LIBS=$ax_save_LIBS 10947 CPPFLAGS=$ax_save_CPPFLAGS 10948fi 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 10950$as_echo "$ax_cv_check_cl_libcl" >&6; } 10951 10952 if test "X$ax_cv_check_cl_libcl" = Xno; then : 10953 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 10954else 10955 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 10956$as_echo "#define _OPENCL 1" >>confdefs.h 10957 10958fi 10959 ac_ext=c 10960ac_cpp='$CPP $CPPFLAGS' 10961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10963ac_compiler_gnu=$ac_cv_c_compiler_gnu 10964 10965fi 10966 10967 10968 10969#remove static link on Linux 10970CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'` 10971 10972 10973CFLAGS="$CL_CFLAGS $CFLAGS" 10974CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 10975LIBS="$CL_LIBS $LIBS" 10976 10977if test "$enable_opencl" != no; then 10978 if test "X$ax_cv_check_cl_libcl" != Xno; then : 10979 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 10980 fi 10981fi 10982 10983######## 10984# 10985# Check for large file support 10986# 10987######## 10988# Check whether --enable-largefile was given. 10989if test "${enable_largefile+set}" = set; then : 10990 enableval=$enable_largefile; 10991fi 10992 10993if test "$enable_largefile" != no; then 10994 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10996$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10997if ${ac_cv_sys_largefile_CC+:} false; then : 10998 $as_echo_n "(cached) " >&6 10999else 11000 ac_cv_sys_largefile_CC=no 11001 if test "$GCC" != yes; then 11002 ac_save_CC=$CC 11003 while :; do 11004 # IRIX 6.2 and later do not support large files by default, 11005 # so use the C compiler's -n32 option if that helps. 11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11007/* end confdefs.h. */ 11008#include <sys/types.h> 11009 /* Check that off_t can represent 2**63 - 1 correctly. 11010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11011 since some C++ compilers masquerading as C compilers 11012 incorrectly reject 9223372036854775807. */ 11013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11015 && LARGE_OFF_T % 2147483647 == 1) 11016 ? 1 : -1]; 11017int 11018main () 11019{ 11020 11021 ; 11022 return 0; 11023} 11024_ACEOF 11025 if ac_fn_c_try_compile "$LINENO"; then : 11026 break 11027fi 11028rm -f core conftest.err conftest.$ac_objext 11029 CC="$CC -n32" 11030 if ac_fn_c_try_compile "$LINENO"; then : 11031 ac_cv_sys_largefile_CC=' -n32'; break 11032fi 11033rm -f core conftest.err conftest.$ac_objext 11034 break 11035 done 11036 CC=$ac_save_CC 11037 rm -f conftest.$ac_ext 11038 fi 11039fi 11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11041$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11042 if test "$ac_cv_sys_largefile_CC" != no; then 11043 CC=$CC$ac_cv_sys_largefile_CC 11044 fi 11045 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11047$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11048if ${ac_cv_sys_file_offset_bits+:} false; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 while :; do 11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11053/* end confdefs.h. */ 11054#include <sys/types.h> 11055 /* Check that off_t can represent 2**63 - 1 correctly. 11056 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11057 since some C++ compilers masquerading as C compilers 11058 incorrectly reject 9223372036854775807. */ 11059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11061 && LARGE_OFF_T % 2147483647 == 1) 11062 ? 1 : -1]; 11063int 11064main () 11065{ 11066 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_compile "$LINENO"; then : 11072 ac_cv_sys_file_offset_bits=no; break 11073fi 11074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11076/* end confdefs.h. */ 11077#define _FILE_OFFSET_BITS 64 11078#include <sys/types.h> 11079 /* Check that off_t can represent 2**63 - 1 correctly. 11080 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11081 since some C++ compilers masquerading as C compilers 11082 incorrectly reject 9223372036854775807. */ 11083#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11085 && LARGE_OFF_T % 2147483647 == 1) 11086 ? 1 : -1]; 11087int 11088main () 11089{ 11090 11091 ; 11092 return 0; 11093} 11094_ACEOF 11095if ac_fn_c_try_compile "$LINENO"; then : 11096 ac_cv_sys_file_offset_bits=64; break 11097fi 11098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11099 ac_cv_sys_file_offset_bits=unknown 11100 break 11101done 11102fi 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11104$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11105case $ac_cv_sys_file_offset_bits in #( 11106 no | unknown) ;; 11107 *) 11108cat >>confdefs.h <<_ACEOF 11109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11110_ACEOF 11111;; 11112esac 11113rm -rf conftest* 11114 if test $ac_cv_sys_file_offset_bits = unknown; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11116$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11117if ${ac_cv_sys_large_files+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 while :; do 11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11122/* end confdefs.h. */ 11123#include <sys/types.h> 11124 /* Check that off_t can represent 2**63 - 1 correctly. 11125 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11126 since some C++ compilers masquerading as C compilers 11127 incorrectly reject 9223372036854775807. */ 11128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11130 && LARGE_OFF_T % 2147483647 == 1) 11131 ? 1 : -1]; 11132int 11133main () 11134{ 11135 11136 ; 11137 return 0; 11138} 11139_ACEOF 11140if ac_fn_c_try_compile "$LINENO"; then : 11141 ac_cv_sys_large_files=no; break 11142fi 11143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11145/* end confdefs.h. */ 11146#define _LARGE_FILES 1 11147#include <sys/types.h> 11148 /* Check that off_t can represent 2**63 - 1 correctly. 11149 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11150 since some C++ compilers masquerading as C compilers 11151 incorrectly reject 9223372036854775807. */ 11152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11154 && LARGE_OFF_T % 2147483647 == 1) 11155 ? 1 : -1]; 11156int 11157main () 11158{ 11159 11160 ; 11161 return 0; 11162} 11163_ACEOF 11164if ac_fn_c_try_compile "$LINENO"; then : 11165 ac_cv_sys_large_files=1; break 11166fi 11167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11168 ac_cv_sys_large_files=unknown 11169 break 11170done 11171fi 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11173$as_echo "$ac_cv_sys_large_files" >&6; } 11174case $ac_cv_sys_large_files in #( 11175 no | unknown) ;; 11176 *) 11177cat >>confdefs.h <<_ACEOF 11178#define _LARGE_FILES $ac_cv_sys_large_files 11179_ACEOF 11180;; 11181esac 11182rm -rf conftest* 11183 fi 11184 11185 11186fi 11187 11188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11189$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11190if ${ac_cv_sys_largefile_source+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 while :; do 11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11195/* end confdefs.h. */ 11196#include <sys/types.h> /* for off_t */ 11197 #include <stdio.h> 11198int 11199main () 11200{ 11201int (*fp) (FILE *, off_t, int) = fseeko; 11202 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11203 ; 11204 return 0; 11205} 11206_ACEOF 11207if ac_fn_c_try_link "$LINENO"; then : 11208 ac_cv_sys_largefile_source=no; break 11209fi 11210rm -f core conftest.err conftest.$ac_objext \ 11211 conftest$ac_exeext conftest.$ac_ext 11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11213/* end confdefs.h. */ 11214#define _LARGEFILE_SOURCE 1 11215#include <sys/types.h> /* for off_t */ 11216 #include <stdio.h> 11217int 11218main () 11219{ 11220int (*fp) (FILE *, off_t, int) = fseeko; 11221 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11222 ; 11223 return 0; 11224} 11225_ACEOF 11226if ac_fn_c_try_link "$LINENO"; then : 11227 ac_cv_sys_largefile_source=1; break 11228fi 11229rm -f core conftest.err conftest.$ac_objext \ 11230 conftest$ac_exeext conftest.$ac_ext 11231 ac_cv_sys_largefile_source=unknown 11232 break 11233done 11234fi 11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 11236$as_echo "$ac_cv_sys_largefile_source" >&6; } 11237case $ac_cv_sys_largefile_source in #( 11238 no | unknown) ;; 11239 *) 11240cat >>confdefs.h <<_ACEOF 11241#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 11242_ACEOF 11243;; 11244esac 11245rm -rf conftest* 11246 11247# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11248# in glibc 2.1.3, but that breaks too many other things. 11249# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11250if test $ac_cv_sys_largefile_source != unknown; then 11251 11252$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 11253 11254fi 11255 11256LFS_CPPFLAGS='' 11257if test "$enable_largefile" != no; then 11258 case $ac_cv_sys_file_offset_bits in 11259 no) 11260 # nothing to do here as the host supports LFS fine 11261 ;; 11262 unknown) 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 11264$as_echo_n "checking for native large file support... " >&6; } 11265 if test "$cross_compiling" = yes; then : 11266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11268as_fn_error $? "cannot run test program while cross compiling 11269See \`config.log' for more details" "$LINENO" 5; } 11270else 11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11272/* end confdefs.h. */ 11273#include <unistd.h> 11274 main () { 11275 exit(!(sizeof(off_t) == 8)); 11276 } 11277int 11278main () 11279{ 11280 11281 ; 11282 return 0; 11283} 11284_ACEOF 11285if ac_fn_c_try_run "$LINENO"; then : 11286 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11287 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11289$as_echo "yes" >&6; } 11290else 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11292$as_echo "no" >&6; } 11293fi 11294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11295 conftest.$ac_objext conftest.beam conftest.$ac_ext 11296fi 11297 11298 ;; 11299 *) 11300 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 11301 ;; 11302 esac 11303 if test "$ac_cv_sys_large_files" != 'no'; then 11304 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 11305 fi 11306 if test "$ac_cv_sys_largefile_source" != 'no'; then 11307 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 11308 fi 11309fi 11310 11311 11312# Configure libtool 11313enable_dlopen=yes 11314 11315 11316 11317case `pwd` in 11318 *\ * | *\ *) 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11320$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11321esac 11322 11323 11324 11325macro_version='2.4.6' 11326macro_revision='2.4.6' 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340ltmain=$ac_aux_dir/ltmain.sh 11341 11342# Backslashify metacharacters that are still active within 11343# double-quoted strings. 11344sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11345 11346# Same as above, but do not quote variable references. 11347double_quote_subst='s/\(["`\\]\)/\\\1/g' 11348 11349# Sed substitution to delay expansion of an escaped shell variable in a 11350# double_quote_subst'ed string. 11351delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11352 11353# Sed substitution to delay expansion of an escaped single quote. 11354delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11355 11356# Sed substitution to avoid accidental globbing in evaled expressions 11357no_glob_subst='s/\*/\\\*/g' 11358 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11360$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11361if ${lt_cv_path_NM+:} false; then : 11362 $as_echo_n "(cached) " >&6 11363else 11364 if test -n "$NM"; then 11365 # Let the user override the test. 11366 lt_cv_path_NM=$NM 11367else 11368 lt_nm_to_check=${ac_tool_prefix}nm 11369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11370 lt_nm_to_check="$lt_nm_to_check nm" 11371 fi 11372 for lt_tmp_nm in $lt_nm_to_check; do 11373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11375 IFS=$lt_save_ifs 11376 test -z "$ac_dir" && ac_dir=. 11377 tmp_nm=$ac_dir/$lt_tmp_nm 11378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11379 # Check to see if the nm accepts a BSD-compat flag. 11380 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11381 # nm: unknown option "B" ignored 11382 # Tru64's nm complains that /dev/null is an invalid object file 11383 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11384 case $build_os in 11385 mingw*) lt_bad_file=conftest.nm/nofile ;; 11386 *) lt_bad_file=/dev/null ;; 11387 esac 11388 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11389 *$lt_bad_file* | *'Invalid file or object type'*) 11390 lt_cv_path_NM="$tmp_nm -B" 11391 break 2 11392 ;; 11393 *) 11394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11395 */dev/null*) 11396 lt_cv_path_NM="$tmp_nm -p" 11397 break 2 11398 ;; 11399 *) 11400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11401 continue # so that we can try to find one that supports BSD flags 11402 ;; 11403 esac 11404 ;; 11405 esac 11406 fi 11407 done 11408 IFS=$lt_save_ifs 11409 done 11410 : ${lt_cv_path_NM=no} 11411fi 11412fi 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11414$as_echo "$lt_cv_path_NM" >&6; } 11415if test no != "$lt_cv_path_NM"; then 11416 NM=$lt_cv_path_NM 11417else 11418 # Didn't find any BSD compatible name lister, look for dumpbin. 11419 if test -n "$DUMPBIN"; then : 11420 # Let the user override the test. 11421 else 11422 if test -n "$ac_tool_prefix"; then 11423 for ac_prog in dumpbin "link -dump" 11424 do 11425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11428$as_echo_n "checking for $ac_word... " >&6; } 11429if ${ac_cv_prog_DUMPBIN+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 if test -n "$DUMPBIN"; then 11433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11434else 11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11436for as_dir in $PATH 11437do 11438 IFS=$as_save_IFS 11439 test -z "$as_dir" && as_dir=. 11440 for ac_exec_ext in '' $ac_executable_extensions; do 11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11444 break 2 11445 fi 11446done 11447 done 11448IFS=$as_save_IFS 11449 11450fi 11451fi 11452DUMPBIN=$ac_cv_prog_DUMPBIN 11453if test -n "$DUMPBIN"; then 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11455$as_echo "$DUMPBIN" >&6; } 11456else 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11458$as_echo "no" >&6; } 11459fi 11460 11461 11462 test -n "$DUMPBIN" && break 11463 done 11464fi 11465if test -z "$DUMPBIN"; then 11466 ac_ct_DUMPBIN=$DUMPBIN 11467 for ac_prog in dumpbin "link -dump" 11468do 11469 # Extract the first word of "$ac_prog", so it can be a program name with args. 11470set dummy $ac_prog; ac_word=$2 11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11472$as_echo_n "checking for $ac_word... " >&6; } 11473if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11474 $as_echo_n "(cached) " >&6 11475else 11476 if test -n "$ac_ct_DUMPBIN"; then 11477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11478else 11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11480for as_dir in $PATH 11481do 11482 IFS=$as_save_IFS 11483 test -z "$as_dir" && as_dir=. 11484 for ac_exec_ext in '' $ac_executable_extensions; do 11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11488 break 2 11489 fi 11490done 11491 done 11492IFS=$as_save_IFS 11493 11494fi 11495fi 11496ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11497if test -n "$ac_ct_DUMPBIN"; then 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11499$as_echo "$ac_ct_DUMPBIN" >&6; } 11500else 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11502$as_echo "no" >&6; } 11503fi 11504 11505 11506 test -n "$ac_ct_DUMPBIN" && break 11507done 11508 11509 if test "x$ac_ct_DUMPBIN" = x; then 11510 DUMPBIN=":" 11511 else 11512 case $cross_compiling:$ac_tool_warned in 11513yes:) 11514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11516ac_tool_warned=yes ;; 11517esac 11518 DUMPBIN=$ac_ct_DUMPBIN 11519 fi 11520fi 11521 11522 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11523 *COFF*) 11524 DUMPBIN="$DUMPBIN -symbols -headers" 11525 ;; 11526 *) 11527 DUMPBIN=: 11528 ;; 11529 esac 11530 fi 11531 11532 if test : != "$DUMPBIN"; then 11533 NM=$DUMPBIN 11534 fi 11535fi 11536test -z "$NM" && NM=nm 11537 11538 11539 11540 11541 11542 11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11544$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11545if ${lt_cv_nm_interface+:} false; then : 11546 $as_echo_n "(cached) " >&6 11547else 11548 lt_cv_nm_interface="BSD nm" 11549 echo "int some_variable = 0;" > conftest.$ac_ext 11550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11551 (eval "$ac_compile" 2>conftest.err) 11552 cat conftest.err >&5 11553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11555 cat conftest.err >&5 11556 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11557 cat conftest.out >&5 11558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11559 lt_cv_nm_interface="MS dumpbin" 11560 fi 11561 rm -f conftest* 11562fi 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11564$as_echo "$lt_cv_nm_interface" >&6; } 11565 11566# find the maximum length of command line arguments 11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11568$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11569if ${lt_cv_sys_max_cmd_len+:} false; then : 11570 $as_echo_n "(cached) " >&6 11571else 11572 i=0 11573 teststring=ABCD 11574 11575 case $build_os in 11576 msdosdjgpp*) 11577 # On DJGPP, this test can blow up pretty badly due to problems in libc 11578 # (any single argument exceeding 2000 bytes causes a buffer overrun 11579 # during glob expansion). Even if it were fixed, the result of this 11580 # check would be larger than it should be. 11581 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11582 ;; 11583 11584 gnu*) 11585 # Under GNU Hurd, this test is not required because there is 11586 # no limit to the length of command line arguments. 11587 # Libtool will interpret -1 as no limit whatsoever 11588 lt_cv_sys_max_cmd_len=-1; 11589 ;; 11590 11591 cygwin* | mingw* | cegcc*) 11592 # On Win9x/ME, this test blows up -- it succeeds, but takes 11593 # about 5 minutes as the teststring grows exponentially. 11594 # Worse, since 9x/ME are not pre-emptively multitasking, 11595 # you end up with a "frozen" computer, even though with patience 11596 # the test eventually succeeds (with a max line length of 256k). 11597 # Instead, let's just punt: use the minimum linelength reported by 11598 # all of the supported platforms: 8192 (on NT/2K/XP). 11599 lt_cv_sys_max_cmd_len=8192; 11600 ;; 11601 11602 mint*) 11603 # On MiNT this can take a long time and run out of memory. 11604 lt_cv_sys_max_cmd_len=8192; 11605 ;; 11606 11607 amigaos*) 11608 # On AmigaOS with pdksh, this test takes hours, literally. 11609 # So we just punt and use a minimum line length of 8192. 11610 lt_cv_sys_max_cmd_len=8192; 11611 ;; 11612 11613 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11614 # This has been around since 386BSD, at least. Likely further. 11615 if test -x /sbin/sysctl; then 11616 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11617 elif test -x /usr/sbin/sysctl; then 11618 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11619 else 11620 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11621 fi 11622 # And add a safety zone 11623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11625 ;; 11626 11627 interix*) 11628 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11629 lt_cv_sys_max_cmd_len=196608 11630 ;; 11631 11632 os2*) 11633 # The test takes a long time on OS/2. 11634 lt_cv_sys_max_cmd_len=8192 11635 ;; 11636 11637 osf*) 11638 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11639 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11640 # nice to cause kernel panics so lets avoid the loop below. 11641 # First set a reasonable default. 11642 lt_cv_sys_max_cmd_len=16384 11643 # 11644 if test -x /sbin/sysconfig; then 11645 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11646 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11647 esac 11648 fi 11649 ;; 11650 sco3.2v5*) 11651 lt_cv_sys_max_cmd_len=102400 11652 ;; 11653 sysv5* | sco5v6* | sysv4.2uw2*) 11654 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11655 if test -n "$kargmax"; then 11656 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11657 else 11658 lt_cv_sys_max_cmd_len=32768 11659 fi 11660 ;; 11661 *) 11662 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11663 if test -n "$lt_cv_sys_max_cmd_len" && \ 11664 test undefined != "$lt_cv_sys_max_cmd_len"; then 11665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11667 else 11668 # Make teststring a little bigger before we do anything with it. 11669 # a 1K string should be a reasonable start. 11670 for i in 1 2 3 4 5 6 7 8; do 11671 teststring=$teststring$teststring 11672 done 11673 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11674 # If test is not a shell built-in, we'll probably end up computing a 11675 # maximum length that is only half of the actual maximum length, but 11676 # we can't tell. 11677 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11678 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11679 test 17 != "$i" # 1/2 MB should be enough 11680 do 11681 i=`expr $i + 1` 11682 teststring=$teststring$teststring 11683 done 11684 # Only check the string length outside the loop. 11685 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11686 teststring= 11687 # Add a significant safety factor because C++ compilers can tack on 11688 # massive amounts of additional arguments before passing them to the 11689 # linker. It appears as though 1/2 is a usable value. 11690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11691 fi 11692 ;; 11693 esac 11694 11695fi 11696 11697if test -n "$lt_cv_sys_max_cmd_len"; then 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11699$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11700else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11702$as_echo "none" >&6; } 11703fi 11704max_cmd_len=$lt_cv_sys_max_cmd_len 11705 11706 11707 11708 11709 11710 11711: ${CP="cp -f"} 11712: ${MV="mv -f"} 11713: ${RM="rm -f"} 11714 11715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11716 lt_unset=unset 11717else 11718 lt_unset=false 11719fi 11720 11721 11722 11723 11724 11725# test EBCDIC or ASCII 11726case `echo X|tr X '\101'` in 11727 A) # ASCII based system 11728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11729 lt_SP2NL='tr \040 \012' 11730 lt_NL2SP='tr \015\012 \040\040' 11731 ;; 11732 *) # EBCDIC based system 11733 lt_SP2NL='tr \100 \n' 11734 lt_NL2SP='tr \r\n \100\100' 11735 ;; 11736esac 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11747$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11748if ${lt_cv_to_host_file_cmd+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 case $host in 11752 *-*-mingw* ) 11753 case $build in 11754 *-*-mingw* ) # actually msys 11755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11756 ;; 11757 *-*-cygwin* ) 11758 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11759 ;; 11760 * ) # otherwise, assume *nix 11761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11762 ;; 11763 esac 11764 ;; 11765 *-*-cygwin* ) 11766 case $build in 11767 *-*-mingw* ) # actually msys 11768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11769 ;; 11770 *-*-cygwin* ) 11771 lt_cv_to_host_file_cmd=func_convert_file_noop 11772 ;; 11773 * ) # otherwise, assume *nix 11774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11775 ;; 11776 esac 11777 ;; 11778 * ) # unhandled hosts (and "normal" native builds) 11779 lt_cv_to_host_file_cmd=func_convert_file_noop 11780 ;; 11781esac 11782 11783fi 11784 11785to_host_file_cmd=$lt_cv_to_host_file_cmd 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11787$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11788 11789 11790 11791 11792 11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11794$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11795if ${lt_cv_to_tool_file_cmd+:} false; then : 11796 $as_echo_n "(cached) " >&6 11797else 11798 #assume ordinary cross tools, or native build. 11799lt_cv_to_tool_file_cmd=func_convert_file_noop 11800case $host in 11801 *-*-mingw* ) 11802 case $build in 11803 *-*-mingw* ) # actually msys 11804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11805 ;; 11806 esac 11807 ;; 11808esac 11809 11810fi 11811 11812to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11814$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11815 11816 11817 11818 11819 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11821$as_echo_n "checking for $LD option to reload object files... " >&6; } 11822if ${lt_cv_ld_reload_flag+:} false; then : 11823 $as_echo_n "(cached) " >&6 11824else 11825 lt_cv_ld_reload_flag='-r' 11826fi 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11828$as_echo "$lt_cv_ld_reload_flag" >&6; } 11829reload_flag=$lt_cv_ld_reload_flag 11830case $reload_flag in 11831"" | " "*) ;; 11832*) reload_flag=" $reload_flag" ;; 11833esac 11834reload_cmds='$LD$reload_flag -o $output$reload_objs' 11835case $host_os in 11836 cygwin* | mingw* | pw32* | cegcc*) 11837 if test yes != "$GCC"; then 11838 reload_cmds=false 11839 fi 11840 ;; 11841 darwin*) 11842 if test yes = "$GCC"; then 11843 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11844 else 11845 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11846 fi 11847 ;; 11848esac 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858if test -n "$ac_tool_prefix"; then 11859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11860set dummy ${ac_tool_prefix}objdump; ac_word=$2 11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11862$as_echo_n "checking for $ac_word... " >&6; } 11863if ${ac_cv_prog_OBJDUMP+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865else 11866 if test -n "$OBJDUMP"; then 11867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11868else 11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11870for as_dir in $PATH 11871do 11872 IFS=$as_save_IFS 11873 test -z "$as_dir" && as_dir=. 11874 for ac_exec_ext in '' $ac_executable_extensions; do 11875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11878 break 2 11879 fi 11880done 11881 done 11882IFS=$as_save_IFS 11883 11884fi 11885fi 11886OBJDUMP=$ac_cv_prog_OBJDUMP 11887if test -n "$OBJDUMP"; then 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11889$as_echo "$OBJDUMP" >&6; } 11890else 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11892$as_echo "no" >&6; } 11893fi 11894 11895 11896fi 11897if test -z "$ac_cv_prog_OBJDUMP"; then 11898 ac_ct_OBJDUMP=$OBJDUMP 11899 # Extract the first word of "objdump", so it can be a program name with args. 11900set dummy objdump; ac_word=$2 11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11902$as_echo_n "checking for $ac_word... " >&6; } 11903if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905else 11906 if test -n "$ac_ct_OBJDUMP"; then 11907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11908else 11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11910for as_dir in $PATH 11911do 11912 IFS=$as_save_IFS 11913 test -z "$as_dir" && as_dir=. 11914 for ac_exec_ext in '' $ac_executable_extensions; do 11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11916 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11918 break 2 11919 fi 11920done 11921 done 11922IFS=$as_save_IFS 11923 11924fi 11925fi 11926ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11927if test -n "$ac_ct_OBJDUMP"; then 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11929$as_echo "$ac_ct_OBJDUMP" >&6; } 11930else 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11932$as_echo "no" >&6; } 11933fi 11934 11935 if test "x$ac_ct_OBJDUMP" = x; then 11936 OBJDUMP="false" 11937 else 11938 case $cross_compiling:$ac_tool_warned in 11939yes:) 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11942ac_tool_warned=yes ;; 11943esac 11944 OBJDUMP=$ac_ct_OBJDUMP 11945 fi 11946else 11947 OBJDUMP="$ac_cv_prog_OBJDUMP" 11948fi 11949 11950test -z "$OBJDUMP" && OBJDUMP=objdump 11951 11952 11953 11954 11955 11956 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11958$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11959if ${lt_cv_deplibs_check_method+:} false; then : 11960 $as_echo_n "(cached) " >&6 11961else 11962 lt_cv_file_magic_cmd='$MAGIC_CMD' 11963lt_cv_file_magic_test_file= 11964lt_cv_deplibs_check_method='unknown' 11965# Need to set the preceding variable on all platforms that support 11966# interlibrary dependencies. 11967# 'none' -- dependencies not supported. 11968# 'unknown' -- same as none, but documents that we really don't know. 11969# 'pass_all' -- all dependencies passed with no checks. 11970# 'test_compile' -- check by making test program. 11971# 'file_magic [[regex]]' -- check by looking for files in library path 11972# that responds to the $file_magic_cmd with a given extended regex. 11973# If you have 'file' or equivalent on your system and you're not sure 11974# whether 'pass_all' will *always* work, you probably want this one. 11975 11976case $host_os in 11977aix[4-9]*) 11978 lt_cv_deplibs_check_method=pass_all 11979 ;; 11980 11981beos*) 11982 lt_cv_deplibs_check_method=pass_all 11983 ;; 11984 11985bsdi[45]*) 11986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11987 lt_cv_file_magic_cmd='/usr/bin/file -L' 11988 lt_cv_file_magic_test_file=/shlib/libc.so 11989 ;; 11990 11991cygwin*) 11992 # func_win32_libid is a shell function defined in ltmain.sh 11993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11994 lt_cv_file_magic_cmd='func_win32_libid' 11995 ;; 11996 11997mingw* | pw32*) 11998 # Base MSYS/MinGW do not provide the 'file' command needed by 11999 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12000 # unless we find 'file', for example because we are cross-compiling. 12001 if ( file / ) >/dev/null 2>&1; then 12002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12003 lt_cv_file_magic_cmd='func_win32_libid' 12004 else 12005 # Keep this pattern in sync with the one in func_win32_libid. 12006 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12007 lt_cv_file_magic_cmd='$OBJDUMP -f' 12008 fi 12009 ;; 12010 12011cegcc*) 12012 # use the weaker test based on 'objdump'. See mingw*. 12013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12014 lt_cv_file_magic_cmd='$OBJDUMP -f' 12015 ;; 12016 12017darwin* | rhapsody*) 12018 lt_cv_deplibs_check_method=pass_all 12019 ;; 12020 12021freebsd* | dragonfly*) 12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12023 case $host_cpu in 12024 i*86 ) 12025 # Not sure whether the presence of OpenBSD here was a mistake. 12026 # Let's accept both of them until this is cleared up. 12027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12028 lt_cv_file_magic_cmd=/usr/bin/file 12029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12030 ;; 12031 esac 12032 else 12033 lt_cv_deplibs_check_method=pass_all 12034 fi 12035 ;; 12036 12037haiku*) 12038 lt_cv_deplibs_check_method=pass_all 12039 ;; 12040 12041hpux10.20* | hpux11*) 12042 lt_cv_file_magic_cmd=/usr/bin/file 12043 case $host_cpu in 12044 ia64*) 12045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12047 ;; 12048 hppa*64*) 12049 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]' 12050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12051 ;; 12052 *) 12053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12054 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12055 ;; 12056 esac 12057 ;; 12058 12059interix[3-9]*) 12060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12062 ;; 12063 12064irix5* | irix6* | nonstopux*) 12065 case $LD in 12066 *-32|*"-32 ") libmagic=32-bit;; 12067 *-n32|*"-n32 ") libmagic=N32;; 12068 *-64|*"-64 ") libmagic=64-bit;; 12069 *) libmagic=never-match;; 12070 esac 12071 lt_cv_deplibs_check_method=pass_all 12072 ;; 12073 12074# This must be glibc/ELF. 12075linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12076 lt_cv_deplibs_check_method=pass_all 12077 ;; 12078 12079netbsd*) 12080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12082 else 12083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12084 fi 12085 ;; 12086 12087newos6*) 12088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12089 lt_cv_file_magic_cmd=/usr/bin/file 12090 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12091 ;; 12092 12093*nto* | *qnx*) 12094 lt_cv_deplibs_check_method=pass_all 12095 ;; 12096 12097openbsd* | bitrig*) 12098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12100 else 12101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12102 fi 12103 ;; 12104 12105osf3* | osf4* | osf5*) 12106 lt_cv_deplibs_check_method=pass_all 12107 ;; 12108 12109rdos*) 12110 lt_cv_deplibs_check_method=pass_all 12111 ;; 12112 12113solaris*) 12114 lt_cv_deplibs_check_method=pass_all 12115 ;; 12116 12117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12118 lt_cv_deplibs_check_method=pass_all 12119 ;; 12120 12121sysv4 | sysv4.3*) 12122 case $host_vendor in 12123 motorola) 12124 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]' 12125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12126 ;; 12127 ncr) 12128 lt_cv_deplibs_check_method=pass_all 12129 ;; 12130 sequent) 12131 lt_cv_file_magic_cmd='/bin/file' 12132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12133 ;; 12134 sni) 12135 lt_cv_file_magic_cmd='/bin/file' 12136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12137 lt_cv_file_magic_test_file=/lib/libc.so 12138 ;; 12139 siemens) 12140 lt_cv_deplibs_check_method=pass_all 12141 ;; 12142 pc) 12143 lt_cv_deplibs_check_method=pass_all 12144 ;; 12145 esac 12146 ;; 12147 12148tpf*) 12149 lt_cv_deplibs_check_method=pass_all 12150 ;; 12151os2*) 12152 lt_cv_deplibs_check_method=pass_all 12153 ;; 12154esac 12155 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12158$as_echo "$lt_cv_deplibs_check_method" >&6; } 12159 12160file_magic_glob= 12161want_nocaseglob=no 12162if test "$build" = "$host"; then 12163 case $host_os in 12164 mingw* | pw32*) 12165 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12166 want_nocaseglob=yes 12167 else 12168 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12169 fi 12170 ;; 12171 esac 12172fi 12173 12174file_magic_cmd=$lt_cv_file_magic_cmd 12175deplibs_check_method=$lt_cv_deplibs_check_method 12176test -z "$deplibs_check_method" && deplibs_check_method=unknown 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199if test -n "$ac_tool_prefix"; then 12200 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12201set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12203$as_echo_n "checking for $ac_word... " >&6; } 12204if ${ac_cv_prog_DLLTOOL+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 if test -n "$DLLTOOL"; then 12208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12209else 12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12211for as_dir in $PATH 12212do 12213 IFS=$as_save_IFS 12214 test -z "$as_dir" && as_dir=. 12215 for ac_exec_ext in '' $ac_executable_extensions; do 12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12217 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12219 break 2 12220 fi 12221done 12222 done 12223IFS=$as_save_IFS 12224 12225fi 12226fi 12227DLLTOOL=$ac_cv_prog_DLLTOOL 12228if test -n "$DLLTOOL"; then 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12230$as_echo "$DLLTOOL" >&6; } 12231else 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12233$as_echo "no" >&6; } 12234fi 12235 12236 12237fi 12238if test -z "$ac_cv_prog_DLLTOOL"; then 12239 ac_ct_DLLTOOL=$DLLTOOL 12240 # Extract the first word of "dlltool", so it can be a program name with args. 12241set dummy dlltool; ac_word=$2 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12243$as_echo_n "checking for $ac_word... " >&6; } 12244if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12245 $as_echo_n "(cached) " >&6 12246else 12247 if test -n "$ac_ct_DLLTOOL"; then 12248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12249else 12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12251for as_dir in $PATH 12252do 12253 IFS=$as_save_IFS 12254 test -z "$as_dir" && as_dir=. 12255 for ac_exec_ext in '' $ac_executable_extensions; do 12256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12257 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12259 break 2 12260 fi 12261done 12262 done 12263IFS=$as_save_IFS 12264 12265fi 12266fi 12267ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12268if test -n "$ac_ct_DLLTOOL"; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12270$as_echo "$ac_ct_DLLTOOL" >&6; } 12271else 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12273$as_echo "no" >&6; } 12274fi 12275 12276 if test "x$ac_ct_DLLTOOL" = x; then 12277 DLLTOOL="false" 12278 else 12279 case $cross_compiling:$ac_tool_warned in 12280yes:) 12281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12283ac_tool_warned=yes ;; 12284esac 12285 DLLTOOL=$ac_ct_DLLTOOL 12286 fi 12287else 12288 DLLTOOL="$ac_cv_prog_DLLTOOL" 12289fi 12290 12291test -z "$DLLTOOL" && DLLTOOL=dlltool 12292 12293 12294 12295 12296 12297 12298 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12300$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12301if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12302 $as_echo_n "(cached) " >&6 12303else 12304 lt_cv_sharedlib_from_linklib_cmd='unknown' 12305 12306case $host_os in 12307cygwin* | mingw* | pw32* | cegcc*) 12308 # two different shell functions defined in ltmain.sh; 12309 # decide which one to use based on capabilities of $DLLTOOL 12310 case `$DLLTOOL --help 2>&1` in 12311 *--identify-strict*) 12312 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12313 ;; 12314 *) 12315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12316 ;; 12317 esac 12318 ;; 12319*) 12320 # fallback: assume linklib IS sharedlib 12321 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12322 ;; 12323esac 12324 12325fi 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12327$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12328sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12329test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12330 12331 12332 12333 12334 12335 12336 12337if test -n "$ac_tool_prefix"; then 12338 for ac_prog in ar 12339 do 12340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12341set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12343$as_echo_n "checking for $ac_word... " >&6; } 12344if ${ac_cv_prog_AR+:} false; then : 12345 $as_echo_n "(cached) " >&6 12346else 12347 if test -n "$AR"; then 12348 ac_cv_prog_AR="$AR" # Let the user override the test. 12349else 12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12351for as_dir in $PATH 12352do 12353 IFS=$as_save_IFS 12354 test -z "$as_dir" && as_dir=. 12355 for ac_exec_ext in '' $ac_executable_extensions; do 12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12357 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12359 break 2 12360 fi 12361done 12362 done 12363IFS=$as_save_IFS 12364 12365fi 12366fi 12367AR=$ac_cv_prog_AR 12368if test -n "$AR"; then 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12370$as_echo "$AR" >&6; } 12371else 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12373$as_echo "no" >&6; } 12374fi 12375 12376 12377 test -n "$AR" && break 12378 done 12379fi 12380if test -z "$AR"; then 12381 ac_ct_AR=$AR 12382 for ac_prog in ar 12383do 12384 # Extract the first word of "$ac_prog", so it can be a program name with args. 12385set dummy $ac_prog; ac_word=$2 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12387$as_echo_n "checking for $ac_word... " >&6; } 12388if ${ac_cv_prog_ac_ct_AR+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 if test -n "$ac_ct_AR"; then 12392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12393else 12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12395for as_dir in $PATH 12396do 12397 IFS=$as_save_IFS 12398 test -z "$as_dir" && as_dir=. 12399 for ac_exec_ext in '' $ac_executable_extensions; do 12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12401 ac_cv_prog_ac_ct_AR="$ac_prog" 12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12403 break 2 12404 fi 12405done 12406 done 12407IFS=$as_save_IFS 12408 12409fi 12410fi 12411ac_ct_AR=$ac_cv_prog_ac_ct_AR 12412if test -n "$ac_ct_AR"; then 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12414$as_echo "$ac_ct_AR" >&6; } 12415else 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12417$as_echo "no" >&6; } 12418fi 12419 12420 12421 test -n "$ac_ct_AR" && break 12422done 12423 12424 if test "x$ac_ct_AR" = x; then 12425 AR="false" 12426 else 12427 case $cross_compiling:$ac_tool_warned in 12428yes:) 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12431ac_tool_warned=yes ;; 12432esac 12433 AR=$ac_ct_AR 12434 fi 12435fi 12436 12437: ${AR=ar} 12438: ${AR_FLAGS=cru} 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12451$as_echo_n "checking for archiver @FILE support... " >&6; } 12452if ${lt_cv_ar_at_file+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 lt_cv_ar_at_file=no 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458 12459int 12460main () 12461{ 12462 12463 ; 12464 return 0; 12465} 12466_ACEOF 12467if ac_fn_c_try_compile "$LINENO"; then : 12468 echo conftest.$ac_objext > conftest.lst 12469 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12471 (eval $lt_ar_try) 2>&5 12472 ac_status=$? 12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12474 test $ac_status = 0; } 12475 if test 0 -eq "$ac_status"; then 12476 # Ensure the archiver fails upon bogus file names. 12477 rm -f conftest.$ac_objext libconftest.a 12478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12479 (eval $lt_ar_try) 2>&5 12480 ac_status=$? 12481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12482 test $ac_status = 0; } 12483 if test 0 -ne "$ac_status"; then 12484 lt_cv_ar_at_file=@ 12485 fi 12486 fi 12487 rm -f conftest.* libconftest.a 12488 12489fi 12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12491 12492fi 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12494$as_echo "$lt_cv_ar_at_file" >&6; } 12495 12496if test no = "$lt_cv_ar_at_file"; then 12497 archiver_list_spec= 12498else 12499 archiver_list_spec=$lt_cv_ar_at_file 12500fi 12501 12502 12503 12504 12505 12506 12507 12508if test -n "$ac_tool_prefix"; then 12509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12510set dummy ${ac_tool_prefix}strip; ac_word=$2 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12512$as_echo_n "checking for $ac_word... " >&6; } 12513if ${ac_cv_prog_STRIP+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515else 12516 if test -n "$STRIP"; then 12517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12518else 12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12520for as_dir in $PATH 12521do 12522 IFS=$as_save_IFS 12523 test -z "$as_dir" && as_dir=. 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530done 12531 done 12532IFS=$as_save_IFS 12533 12534fi 12535fi 12536STRIP=$ac_cv_prog_STRIP 12537if test -n "$STRIP"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12539$as_echo "$STRIP" >&6; } 12540else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542$as_echo "no" >&6; } 12543fi 12544 12545 12546fi 12547if test -z "$ac_cv_prog_STRIP"; then 12548 ac_ct_STRIP=$STRIP 12549 # Extract the first word of "strip", so it can be a program name with args. 12550set dummy strip; ac_word=$2 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552$as_echo_n "checking for $ac_word... " >&6; } 12553if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 if test -n "$ac_ct_STRIP"; then 12557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12558else 12559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12560for as_dir in $PATH 12561do 12562 IFS=$as_save_IFS 12563 test -z "$as_dir" && as_dir=. 12564 for ac_exec_ext in '' $ac_executable_extensions; do 12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12566 ac_cv_prog_ac_ct_STRIP="strip" 12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12568 break 2 12569 fi 12570done 12571 done 12572IFS=$as_save_IFS 12573 12574fi 12575fi 12576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12577if test -n "$ac_ct_STRIP"; then 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12579$as_echo "$ac_ct_STRIP" >&6; } 12580else 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12582$as_echo "no" >&6; } 12583fi 12584 12585 if test "x$ac_ct_STRIP" = x; then 12586 STRIP=":" 12587 else 12588 case $cross_compiling:$ac_tool_warned in 12589yes:) 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12592ac_tool_warned=yes ;; 12593esac 12594 STRIP=$ac_ct_STRIP 12595 fi 12596else 12597 STRIP="$ac_cv_prog_STRIP" 12598fi 12599 12600test -z "$STRIP" && STRIP=: 12601 12602 12603 12604 12605 12606 12607if test -n "$ac_tool_prefix"; then 12608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12609set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12611$as_echo_n "checking for $ac_word... " >&6; } 12612if ${ac_cv_prog_RANLIB+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 if test -n "$RANLIB"; then 12616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12617else 12618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12619for as_dir in $PATH 12620do 12621 IFS=$as_save_IFS 12622 test -z "$as_dir" && as_dir=. 12623 for ac_exec_ext in '' $ac_executable_extensions; do 12624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12627 break 2 12628 fi 12629done 12630 done 12631IFS=$as_save_IFS 12632 12633fi 12634fi 12635RANLIB=$ac_cv_prog_RANLIB 12636if test -n "$RANLIB"; then 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12638$as_echo "$RANLIB" >&6; } 12639else 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12641$as_echo "no" >&6; } 12642fi 12643 12644 12645fi 12646if test -z "$ac_cv_prog_RANLIB"; then 12647 ac_ct_RANLIB=$RANLIB 12648 # Extract the first word of "ranlib", so it can be a program name with args. 12649set dummy ranlib; ac_word=$2 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12651$as_echo_n "checking for $ac_word... " >&6; } 12652if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 if test -n "$ac_ct_RANLIB"; then 12656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12657else 12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12659for as_dir in $PATH 12660do 12661 IFS=$as_save_IFS 12662 test -z "$as_dir" && as_dir=. 12663 for ac_exec_ext in '' $ac_executable_extensions; do 12664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12665 ac_cv_prog_ac_ct_RANLIB="ranlib" 12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12667 break 2 12668 fi 12669done 12670 done 12671IFS=$as_save_IFS 12672 12673fi 12674fi 12675ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12676if test -n "$ac_ct_RANLIB"; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12678$as_echo "$ac_ct_RANLIB" >&6; } 12679else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681$as_echo "no" >&6; } 12682fi 12683 12684 if test "x$ac_ct_RANLIB" = x; then 12685 RANLIB=":" 12686 else 12687 case $cross_compiling:$ac_tool_warned in 12688yes:) 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12691ac_tool_warned=yes ;; 12692esac 12693 RANLIB=$ac_ct_RANLIB 12694 fi 12695else 12696 RANLIB="$ac_cv_prog_RANLIB" 12697fi 12698 12699test -z "$RANLIB" && RANLIB=: 12700 12701 12702 12703 12704 12705 12706# Determine commands to create old-style static archives. 12707old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12708old_postinstall_cmds='chmod 644 $oldlib' 12709old_postuninstall_cmds= 12710 12711if test -n "$RANLIB"; then 12712 case $host_os in 12713 bitrig* | openbsd*) 12714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12715 ;; 12716 *) 12717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12718 ;; 12719 esac 12720 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12721fi 12722 12723case $host_os in 12724 darwin*) 12725 lock_old_archive_extraction=yes ;; 12726 *) 12727 lock_old_archive_extraction=no ;; 12728esac 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768# If no C compiler was specified, use CC. 12769LTCC=${LTCC-"$CC"} 12770 12771# If no C compiler flags were specified, use CFLAGS. 12772LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12773 12774# Allow CC to be a program name with arguments. 12775compiler=$CC 12776 12777 12778# Check for command to grab the raw symbol name followed by C symbol from nm. 12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12780$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12781if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12782 $as_echo_n "(cached) " >&6 12783else 12784 12785# These are sane defaults that work on at least a few old systems. 12786# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12787 12788# Character class describing NM global symbol codes. 12789symcode='[BCDEGRST]' 12790 12791# Regexp to match symbols that can be accessed directly from C. 12792sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12793 12794# Define system-specific variables. 12795case $host_os in 12796aix*) 12797 symcode='[BCDT]' 12798 ;; 12799cygwin* | mingw* | pw32* | cegcc*) 12800 symcode='[ABCDGISTW]' 12801 ;; 12802hpux*) 12803 if test ia64 = "$host_cpu"; then 12804 symcode='[ABCDEGRST]' 12805 fi 12806 ;; 12807irix* | nonstopux*) 12808 symcode='[BCDEGRST]' 12809 ;; 12810osf*) 12811 symcode='[BCDEGQRST]' 12812 ;; 12813solaris*) 12814 symcode='[BDRT]' 12815 ;; 12816sco3.2v5*) 12817 symcode='[DT]' 12818 ;; 12819sysv4.2uw2*) 12820 symcode='[DT]' 12821 ;; 12822sysv5* | sco5v6* | unixware* | OpenUNIX*) 12823 symcode='[ABDT]' 12824 ;; 12825sysv4) 12826 symcode='[DFNSTU]' 12827 ;; 12828esac 12829 12830# If we're using GNU nm, then use its standard symbol codes. 12831case `$NM -V 2>&1` in 12832*GNU* | *'with BFD'*) 12833 symcode='[ABCDGIRSTW]' ;; 12834esac 12835 12836if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12837 # Gets list of data symbols to import. 12838 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12839 # Adjust the below global symbol transforms to fixup imported variables. 12840 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12841 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12842 lt_c_name_lib_hook="\ 12843 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12844 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12845else 12846 # Disable hooks by default. 12847 lt_cv_sys_global_symbol_to_import= 12848 lt_cdecl_hook= 12849 lt_c_name_hook= 12850 lt_c_name_lib_hook= 12851fi 12852 12853# Transform an extracted symbol line into a proper C declaration. 12854# Some systems (esp. on ia64) link data and code symbols differently, 12855# so use this general approach. 12856lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12857$lt_cdecl_hook\ 12858" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12859" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12860 12861# Transform an extracted symbol line into symbol name and symbol address 12862lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12863$lt_c_name_hook\ 12864" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12865" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12866 12867# Transform an extracted symbol line into symbol name with lib prefix and 12868# symbol address. 12869lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12870$lt_c_name_lib_hook\ 12871" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12872" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12873" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12874 12875# Handle CRLF in mingw tool chain 12876opt_cr= 12877case $build_os in 12878mingw*) 12879 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12880 ;; 12881esac 12882 12883# Try without a prefix underscore, then with it. 12884for ac_symprfx in "" "_"; do 12885 12886 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12887 symxfrm="\\1 $ac_symprfx\\2 \\2" 12888 12889 # Write the raw and C identifiers. 12890 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12891 # Fake it for dumpbin and say T for any non-static function, 12892 # D for any global variable and I for any imported variable. 12893 # Also find C++ and __fastcall symbols from MSVC++, 12894 # which start with @ or ?. 12895 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12896" {last_section=section; section=\$ 3};"\ 12897" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12898" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12899" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12900" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12901" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12902" \$ 0!~/External *\|/{next};"\ 12903" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12904" {if(hide[section]) next};"\ 12905" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12906" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12907" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12908" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12909" ' prfx=^$ac_symprfx" 12910 else 12911 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12912 fi 12913 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12914 12915 # Check to see that the pipe works correctly. 12916 pipe_works=no 12917 12918 rm -f conftest* 12919 cat > conftest.$ac_ext <<_LT_EOF 12920#ifdef __cplusplus 12921extern "C" { 12922#endif 12923char nm_test_var; 12924void nm_test_func(void); 12925void nm_test_func(void){} 12926#ifdef __cplusplus 12927} 12928#endif 12929int main(){nm_test_var='a';nm_test_func();return(0);} 12930_LT_EOF 12931 12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12933 (eval $ac_compile) 2>&5 12934 ac_status=$? 12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12936 test $ac_status = 0; }; then 12937 # Now try to grab the symbols. 12938 nlist=conftest.nm 12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12940 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12941 ac_status=$? 12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12943 test $ac_status = 0; } && test -s "$nlist"; then 12944 # Try sorting and uniquifying the output. 12945 if sort "$nlist" | uniq > "$nlist"T; then 12946 mv -f "$nlist"T "$nlist" 12947 else 12948 rm -f "$nlist"T 12949 fi 12950 12951 # Make sure that we snagged all the symbols we need. 12952 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12953 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12954 cat <<_LT_EOF > conftest.$ac_ext 12955/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12956#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12957/* DATA imports from DLLs on WIN32 can't be const, because runtime 12958 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12959# define LT_DLSYM_CONST 12960#elif defined __osf__ 12961/* This system does not cope well with relocations in const data. */ 12962# define LT_DLSYM_CONST 12963#else 12964# define LT_DLSYM_CONST const 12965#endif 12966 12967#ifdef __cplusplus 12968extern "C" { 12969#endif 12970 12971_LT_EOF 12972 # Now generate the symbol file. 12973 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12974 12975 cat <<_LT_EOF >> conftest.$ac_ext 12976 12977/* The mapping between symbol names and symbols. */ 12978LT_DLSYM_CONST struct { 12979 const char *name; 12980 void *address; 12981} 12982lt__PROGRAM__LTX_preloaded_symbols[] = 12983{ 12984 { "@PROGRAM@", (void *) 0 }, 12985_LT_EOF 12986 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12987 cat <<\_LT_EOF >> conftest.$ac_ext 12988 {0, (void *) 0} 12989}; 12990 12991/* This works around a problem in FreeBSD linker */ 12992#ifdef FREEBSD_WORKAROUND 12993static const void *lt_preloaded_setup() { 12994 return lt__PROGRAM__LTX_preloaded_symbols; 12995} 12996#endif 12997 12998#ifdef __cplusplus 12999} 13000#endif 13001_LT_EOF 13002 # Now try linking the two files. 13003 mv conftest.$ac_objext conftstm.$ac_objext 13004 lt_globsym_save_LIBS=$LIBS 13005 lt_globsym_save_CFLAGS=$CFLAGS 13006 LIBS=conftstm.$ac_objext 13007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13009 (eval $ac_link) 2>&5 13010 ac_status=$? 13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13012 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13013 pipe_works=yes 13014 fi 13015 LIBS=$lt_globsym_save_LIBS 13016 CFLAGS=$lt_globsym_save_CFLAGS 13017 else 13018 echo "cannot find nm_test_func in $nlist" >&5 13019 fi 13020 else 13021 echo "cannot find nm_test_var in $nlist" >&5 13022 fi 13023 else 13024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13025 fi 13026 else 13027 echo "$progname: failed program was:" >&5 13028 cat conftest.$ac_ext >&5 13029 fi 13030 rm -rf conftest* conftst* 13031 13032 # Do not use the global_symbol_pipe unless it works. 13033 if test yes = "$pipe_works"; then 13034 break 13035 else 13036 lt_cv_sys_global_symbol_pipe= 13037 fi 13038done 13039 13040fi 13041 13042if test -z "$lt_cv_sys_global_symbol_pipe"; then 13043 lt_cv_sys_global_symbol_to_cdecl= 13044fi 13045if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13047$as_echo "failed" >&6; } 13048else 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13050$as_echo "ok" >&6; } 13051fi 13052 13053# Response file support. 13054if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13055 nm_file_list_spec='@' 13056elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13057 nm_file_list_spec='@' 13058fi 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13097$as_echo_n "checking for sysroot... " >&6; } 13098 13099# Check whether --with-sysroot was given. 13100if test "${with_sysroot+set}" = set; then : 13101 withval=$with_sysroot; 13102else 13103 with_sysroot=no 13104fi 13105 13106 13107lt_sysroot= 13108case $with_sysroot in #( 13109 yes) 13110 if test yes = "$GCC"; then 13111 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13112 fi 13113 ;; #( 13114 /*) 13115 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13116 ;; #( 13117 no|'') 13118 ;; #( 13119 *) 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13121$as_echo "$with_sysroot" >&6; } 13122 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13123 ;; 13124esac 13125 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13127$as_echo "${lt_sysroot:-no}" >&6; } 13128 13129 13130 13131 13132 13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13134$as_echo_n "checking for a working dd... " >&6; } 13135if ${ac_cv_path_lt_DD+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 printf 0123456789abcdef0123456789abcdef >conftest.i 13139cat conftest.i conftest.i >conftest2.i 13140: ${lt_DD:=$DD} 13141if test -z "$lt_DD"; then 13142 ac_path_lt_DD_found=false 13143 # Loop through the user's path and test for each of PROGNAME-LIST 13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13145for as_dir in $PATH 13146do 13147 IFS=$as_save_IFS 13148 test -z "$as_dir" && as_dir=. 13149 for ac_prog in dd; do 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13152 as_fn_executable_p "$ac_path_lt_DD" || continue 13153if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13154 cmp -s conftest.i conftest.out \ 13155 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13156fi 13157 $ac_path_lt_DD_found && break 3 13158 done 13159 done 13160 done 13161IFS=$as_save_IFS 13162 if test -z "$ac_cv_path_lt_DD"; then 13163 : 13164 fi 13165else 13166 ac_cv_path_lt_DD=$lt_DD 13167fi 13168 13169rm -f conftest.i conftest2.i conftest.out 13170fi 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13172$as_echo "$ac_cv_path_lt_DD" >&6; } 13173 13174 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13176$as_echo_n "checking how to truncate binary pipes... " >&6; } 13177if ${lt_cv_truncate_bin+:} false; then : 13178 $as_echo_n "(cached) " >&6 13179else 13180 printf 0123456789abcdef0123456789abcdef >conftest.i 13181cat conftest.i conftest.i >conftest2.i 13182lt_cv_truncate_bin= 13183if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13184 cmp -s conftest.i conftest.out \ 13185 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13186fi 13187rm -f conftest.i conftest2.i conftest.out 13188test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13189fi 13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13191$as_echo "$lt_cv_truncate_bin" >&6; } 13192 13193 13194 13195 13196 13197 13198 13199# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13200func_cc_basename () 13201{ 13202 for cc_temp in $*""; do 13203 case $cc_temp in 13204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13206 \-*) ;; 13207 *) break;; 13208 esac 13209 done 13210 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13211} 13212 13213# Check whether --enable-libtool-lock was given. 13214if test "${enable_libtool_lock+set}" = set; then : 13215 enableval=$enable_libtool_lock; 13216fi 13217 13218test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13219 13220# Some flags need to be propagated to the compiler or linker for good 13221# libtool support. 13222case $host in 13223ia64-*-hpux*) 13224 # Find out what ABI is being produced by ac_compile, and set mode 13225 # options accordingly. 13226 echo 'int i;' > conftest.$ac_ext 13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13228 (eval $ac_compile) 2>&5 13229 ac_status=$? 13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13231 test $ac_status = 0; }; then 13232 case `/usr/bin/file conftest.$ac_objext` in 13233 *ELF-32*) 13234 HPUX_IA64_MODE=32 13235 ;; 13236 *ELF-64*) 13237 HPUX_IA64_MODE=64 13238 ;; 13239 esac 13240 fi 13241 rm -rf conftest* 13242 ;; 13243*-*-irix6*) 13244 # Find out what ABI is being produced by ac_compile, and set linker 13245 # options accordingly. 13246 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13248 (eval $ac_compile) 2>&5 13249 ac_status=$? 13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13251 test $ac_status = 0; }; then 13252 if test yes = "$lt_cv_prog_gnu_ld"; then 13253 case `/usr/bin/file conftest.$ac_objext` in 13254 *32-bit*) 13255 LD="${LD-ld} -melf32bsmip" 13256 ;; 13257 *N32*) 13258 LD="${LD-ld} -melf32bmipn32" 13259 ;; 13260 *64-bit*) 13261 LD="${LD-ld} -melf64bmip" 13262 ;; 13263 esac 13264 else 13265 case `/usr/bin/file conftest.$ac_objext` in 13266 *32-bit*) 13267 LD="${LD-ld} -32" 13268 ;; 13269 *N32*) 13270 LD="${LD-ld} -n32" 13271 ;; 13272 *64-bit*) 13273 LD="${LD-ld} -64" 13274 ;; 13275 esac 13276 fi 13277 fi 13278 rm -rf conftest* 13279 ;; 13280 13281mips64*-*linux*) 13282 # Find out what ABI is being produced by ac_compile, and set linker 13283 # options accordingly. 13284 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13286 (eval $ac_compile) 2>&5 13287 ac_status=$? 13288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13289 test $ac_status = 0; }; then 13290 emul=elf 13291 case `/usr/bin/file conftest.$ac_objext` in 13292 *32-bit*) 13293 emul="${emul}32" 13294 ;; 13295 *64-bit*) 13296 emul="${emul}64" 13297 ;; 13298 esac 13299 case `/usr/bin/file conftest.$ac_objext` in 13300 *MSB*) 13301 emul="${emul}btsmip" 13302 ;; 13303 *LSB*) 13304 emul="${emul}ltsmip" 13305 ;; 13306 esac 13307 case `/usr/bin/file conftest.$ac_objext` in 13308 *N32*) 13309 emul="${emul}n32" 13310 ;; 13311 esac 13312 LD="${LD-ld} -m $emul" 13313 fi 13314 rm -rf conftest* 13315 ;; 13316 13317x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13318s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13319 # Find out what ABI is being produced by ac_compile, and set linker 13320 # options accordingly. Note that the listed cases only cover the 13321 # situations where additional linker options are needed (such as when 13322 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13323 # vice versa); the common cases where no linker options are needed do 13324 # not appear in the list. 13325 echo 'int i;' > conftest.$ac_ext 13326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13327 (eval $ac_compile) 2>&5 13328 ac_status=$? 13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13330 test $ac_status = 0; }; then 13331 case `/usr/bin/file conftest.o` in 13332 *32-bit*) 13333 case $host in 13334 x86_64-*kfreebsd*-gnu) 13335 LD="${LD-ld} -m elf_i386_fbsd" 13336 ;; 13337 x86_64-*linux*) 13338 case `/usr/bin/file conftest.o` in 13339 *x86-64*) 13340 LD="${LD-ld} -m elf32_x86_64" 13341 ;; 13342 *) 13343 LD="${LD-ld} -m elf_i386" 13344 ;; 13345 esac 13346 ;; 13347 powerpc64le-*linux*) 13348 LD="${LD-ld} -m elf32lppclinux" 13349 ;; 13350 powerpc64-*linux*) 13351 LD="${LD-ld} -m elf32ppclinux" 13352 ;; 13353 s390x-*linux*) 13354 LD="${LD-ld} -m elf_s390" 13355 ;; 13356 sparc64-*linux*) 13357 LD="${LD-ld} -m elf32_sparc" 13358 ;; 13359 esac 13360 ;; 13361 *64-bit*) 13362 case $host in 13363 x86_64-*kfreebsd*-gnu) 13364 LD="${LD-ld} -m elf_x86_64_fbsd" 13365 ;; 13366 x86_64-*linux*) 13367 LD="${LD-ld} -m elf_x86_64" 13368 ;; 13369 powerpcle-*linux*) 13370 LD="${LD-ld} -m elf64lppc" 13371 ;; 13372 powerpc-*linux*) 13373 LD="${LD-ld} -m elf64ppc" 13374 ;; 13375 s390*-*linux*|s390*-*tpf*) 13376 LD="${LD-ld} -m elf64_s390" 13377 ;; 13378 sparc*-*linux*) 13379 LD="${LD-ld} -m elf64_sparc" 13380 ;; 13381 esac 13382 ;; 13383 esac 13384 fi 13385 rm -rf conftest* 13386 ;; 13387 13388*-*-sco3.2v5*) 13389 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13390 SAVE_CFLAGS=$CFLAGS 13391 CFLAGS="$CFLAGS -belf" 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13393$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13394if ${lt_cv_cc_needs_belf+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 ac_ext=c 13398ac_cpp='$CPP $CPPFLAGS' 13399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13401ac_compiler_gnu=$ac_cv_c_compiler_gnu 13402 13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404/* end confdefs.h. */ 13405 13406int 13407main () 13408{ 13409 13410 ; 13411 return 0; 13412} 13413_ACEOF 13414if ac_fn_c_try_link "$LINENO"; then : 13415 lt_cv_cc_needs_belf=yes 13416else 13417 lt_cv_cc_needs_belf=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext \ 13420 conftest$ac_exeext conftest.$ac_ext 13421 ac_ext=c 13422ac_cpp='$CPP $CPPFLAGS' 13423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13425ac_compiler_gnu=$ac_cv_c_compiler_gnu 13426 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13429$as_echo "$lt_cv_cc_needs_belf" >&6; } 13430 if test yes != "$lt_cv_cc_needs_belf"; then 13431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13432 CFLAGS=$SAVE_CFLAGS 13433 fi 13434 ;; 13435*-*solaris*) 13436 # Find out what ABI is being produced by ac_compile, and set linker 13437 # options accordingly. 13438 echo 'int i;' > conftest.$ac_ext 13439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13440 (eval $ac_compile) 2>&5 13441 ac_status=$? 13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13443 test $ac_status = 0; }; then 13444 case `/usr/bin/file conftest.o` in 13445 *64-bit*) 13446 case $lt_cv_prog_gnu_ld in 13447 yes*) 13448 case $host in 13449 i?86-*-solaris*|x86_64-*-solaris*) 13450 LD="${LD-ld} -m elf_x86_64" 13451 ;; 13452 sparc*-*-solaris*) 13453 LD="${LD-ld} -m elf64_sparc" 13454 ;; 13455 esac 13456 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13457 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13458 LD=${LD-ld}_sol2 13459 fi 13460 ;; 13461 *) 13462 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13463 LD="${LD-ld} -64" 13464 fi 13465 ;; 13466 esac 13467 ;; 13468 esac 13469 fi 13470 rm -rf conftest* 13471 ;; 13472esac 13473 13474need_locks=$enable_libtool_lock 13475 13476if test -n "$ac_tool_prefix"; then 13477 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13478set dummy ${ac_tool_prefix}mt; ac_word=$2 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13480$as_echo_n "checking for $ac_word... " >&6; } 13481if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13482 $as_echo_n "(cached) " >&6 13483else 13484 if test -n "$MANIFEST_TOOL"; then 13485 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13486else 13487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13488for as_dir in $PATH 13489do 13490 IFS=$as_save_IFS 13491 test -z "$as_dir" && as_dir=. 13492 for ac_exec_ext in '' $ac_executable_extensions; do 13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13494 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13496 break 2 13497 fi 13498done 13499 done 13500IFS=$as_save_IFS 13501 13502fi 13503fi 13504MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13505if test -n "$MANIFEST_TOOL"; then 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13507$as_echo "$MANIFEST_TOOL" >&6; } 13508else 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13510$as_echo "no" >&6; } 13511fi 13512 13513 13514fi 13515if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13516 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13517 # Extract the first word of "mt", so it can be a program name with args. 13518set dummy mt; ac_word=$2 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13520$as_echo_n "checking for $ac_word... " >&6; } 13521if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 if test -n "$ac_ct_MANIFEST_TOOL"; then 13525 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13526else 13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13528for as_dir in $PATH 13529do 13530 IFS=$as_save_IFS 13531 test -z "$as_dir" && as_dir=. 13532 for ac_exec_ext in '' $ac_executable_extensions; do 13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13534 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13536 break 2 13537 fi 13538done 13539 done 13540IFS=$as_save_IFS 13541 13542fi 13543fi 13544ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13545if test -n "$ac_ct_MANIFEST_TOOL"; then 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13547$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13548else 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13550$as_echo "no" >&6; } 13551fi 13552 13553 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13554 MANIFEST_TOOL=":" 13555 else 13556 case $cross_compiling:$ac_tool_warned in 13557yes:) 13558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13560ac_tool_warned=yes ;; 13561esac 13562 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13563 fi 13564else 13565 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13566fi 13567 13568test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13570$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13571if ${lt_cv_path_mainfest_tool+:} false; then : 13572 $as_echo_n "(cached) " >&6 13573else 13574 lt_cv_path_mainfest_tool=no 13575 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13576 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13577 cat conftest.err >&5 13578 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13579 lt_cv_path_mainfest_tool=yes 13580 fi 13581 rm -f conftest* 13582fi 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13584$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13585if test yes != "$lt_cv_path_mainfest_tool"; then 13586 MANIFEST_TOOL=: 13587fi 13588 13589 13590 13591 13592 13593 13594 case $host_os in 13595 rhapsody* | darwin*) 13596 if test -n "$ac_tool_prefix"; then 13597 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13598set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13600$as_echo_n "checking for $ac_word... " >&6; } 13601if ${ac_cv_prog_DSYMUTIL+:} false; then : 13602 $as_echo_n "(cached) " >&6 13603else 13604 if test -n "$DSYMUTIL"; then 13605 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13606else 13607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13608for as_dir in $PATH 13609do 13610 IFS=$as_save_IFS 13611 test -z "$as_dir" && as_dir=. 13612 for ac_exec_ext in '' $ac_executable_extensions; do 13613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13614 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13616 break 2 13617 fi 13618done 13619 done 13620IFS=$as_save_IFS 13621 13622fi 13623fi 13624DSYMUTIL=$ac_cv_prog_DSYMUTIL 13625if test -n "$DSYMUTIL"; then 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13627$as_echo "$DSYMUTIL" >&6; } 13628else 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13630$as_echo "no" >&6; } 13631fi 13632 13633 13634fi 13635if test -z "$ac_cv_prog_DSYMUTIL"; then 13636 ac_ct_DSYMUTIL=$DSYMUTIL 13637 # Extract the first word of "dsymutil", so it can be a program name with args. 13638set dummy dsymutil; ac_word=$2 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13640$as_echo_n "checking for $ac_word... " >&6; } 13641if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13642 $as_echo_n "(cached) " >&6 13643else 13644 if test -n "$ac_ct_DSYMUTIL"; then 13645 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13646else 13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13648for as_dir in $PATH 13649do 13650 IFS=$as_save_IFS 13651 test -z "$as_dir" && as_dir=. 13652 for ac_exec_ext in '' $ac_executable_extensions; do 13653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13654 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13656 break 2 13657 fi 13658done 13659 done 13660IFS=$as_save_IFS 13661 13662fi 13663fi 13664ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13665if test -n "$ac_ct_DSYMUTIL"; then 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13667$as_echo "$ac_ct_DSYMUTIL" >&6; } 13668else 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13670$as_echo "no" >&6; } 13671fi 13672 13673 if test "x$ac_ct_DSYMUTIL" = x; then 13674 DSYMUTIL=":" 13675 else 13676 case $cross_compiling:$ac_tool_warned in 13677yes:) 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13680ac_tool_warned=yes ;; 13681esac 13682 DSYMUTIL=$ac_ct_DSYMUTIL 13683 fi 13684else 13685 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13686fi 13687 13688 if test -n "$ac_tool_prefix"; then 13689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13690set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13692$as_echo_n "checking for $ac_word... " >&6; } 13693if ${ac_cv_prog_NMEDIT+:} false; then : 13694 $as_echo_n "(cached) " >&6 13695else 13696 if test -n "$NMEDIT"; then 13697 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13698else 13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13700for as_dir in $PATH 13701do 13702 IFS=$as_save_IFS 13703 test -z "$as_dir" && as_dir=. 13704 for ac_exec_ext in '' $ac_executable_extensions; do 13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13708 break 2 13709 fi 13710done 13711 done 13712IFS=$as_save_IFS 13713 13714fi 13715fi 13716NMEDIT=$ac_cv_prog_NMEDIT 13717if test -n "$NMEDIT"; then 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13719$as_echo "$NMEDIT" >&6; } 13720else 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13722$as_echo "no" >&6; } 13723fi 13724 13725 13726fi 13727if test -z "$ac_cv_prog_NMEDIT"; then 13728 ac_ct_NMEDIT=$NMEDIT 13729 # Extract the first word of "nmedit", so it can be a program name with args. 13730set dummy nmedit; ac_word=$2 13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13732$as_echo_n "checking for $ac_word... " >&6; } 13733if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13734 $as_echo_n "(cached) " >&6 13735else 13736 if test -n "$ac_ct_NMEDIT"; then 13737 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13738else 13739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13740for as_dir in $PATH 13741do 13742 IFS=$as_save_IFS 13743 test -z "$as_dir" && as_dir=. 13744 for ac_exec_ext in '' $ac_executable_extensions; do 13745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13746 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13748 break 2 13749 fi 13750done 13751 done 13752IFS=$as_save_IFS 13753 13754fi 13755fi 13756ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13757if test -n "$ac_ct_NMEDIT"; then 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13759$as_echo "$ac_ct_NMEDIT" >&6; } 13760else 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13762$as_echo "no" >&6; } 13763fi 13764 13765 if test "x$ac_ct_NMEDIT" = x; then 13766 NMEDIT=":" 13767 else 13768 case $cross_compiling:$ac_tool_warned in 13769yes:) 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13772ac_tool_warned=yes ;; 13773esac 13774 NMEDIT=$ac_ct_NMEDIT 13775 fi 13776else 13777 NMEDIT="$ac_cv_prog_NMEDIT" 13778fi 13779 13780 if test -n "$ac_tool_prefix"; then 13781 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13782set dummy ${ac_tool_prefix}lipo; ac_word=$2 13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13784$as_echo_n "checking for $ac_word... " >&6; } 13785if ${ac_cv_prog_LIPO+:} false; then : 13786 $as_echo_n "(cached) " >&6 13787else 13788 if test -n "$LIPO"; then 13789 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13790else 13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13792for as_dir in $PATH 13793do 13794 IFS=$as_save_IFS 13795 test -z "$as_dir" && as_dir=. 13796 for ac_exec_ext in '' $ac_executable_extensions; do 13797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13798 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13800 break 2 13801 fi 13802done 13803 done 13804IFS=$as_save_IFS 13805 13806fi 13807fi 13808LIPO=$ac_cv_prog_LIPO 13809if test -n "$LIPO"; then 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13811$as_echo "$LIPO" >&6; } 13812else 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13814$as_echo "no" >&6; } 13815fi 13816 13817 13818fi 13819if test -z "$ac_cv_prog_LIPO"; then 13820 ac_ct_LIPO=$LIPO 13821 # Extract the first word of "lipo", so it can be a program name with args. 13822set dummy lipo; ac_word=$2 13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13824$as_echo_n "checking for $ac_word... " >&6; } 13825if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 if test -n "$ac_ct_LIPO"; then 13829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13830else 13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13832for as_dir in $PATH 13833do 13834 IFS=$as_save_IFS 13835 test -z "$as_dir" && as_dir=. 13836 for ac_exec_ext in '' $ac_executable_extensions; do 13837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13838 ac_cv_prog_ac_ct_LIPO="lipo" 13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13840 break 2 13841 fi 13842done 13843 done 13844IFS=$as_save_IFS 13845 13846fi 13847fi 13848ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13849if test -n "$ac_ct_LIPO"; then 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13851$as_echo "$ac_ct_LIPO" >&6; } 13852else 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13854$as_echo "no" >&6; } 13855fi 13856 13857 if test "x$ac_ct_LIPO" = x; then 13858 LIPO=":" 13859 else 13860 case $cross_compiling:$ac_tool_warned in 13861yes:) 13862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13864ac_tool_warned=yes ;; 13865esac 13866 LIPO=$ac_ct_LIPO 13867 fi 13868else 13869 LIPO="$ac_cv_prog_LIPO" 13870fi 13871 13872 if test -n "$ac_tool_prefix"; then 13873 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13874set dummy ${ac_tool_prefix}otool; ac_word=$2 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13876$as_echo_n "checking for $ac_word... " >&6; } 13877if ${ac_cv_prog_OTOOL+:} false; then : 13878 $as_echo_n "(cached) " >&6 13879else 13880 if test -n "$OTOOL"; then 13881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13882else 13883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13884for as_dir in $PATH 13885do 13886 IFS=$as_save_IFS 13887 test -z "$as_dir" && as_dir=. 13888 for ac_exec_ext in '' $ac_executable_extensions; do 13889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13890 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13892 break 2 13893 fi 13894done 13895 done 13896IFS=$as_save_IFS 13897 13898fi 13899fi 13900OTOOL=$ac_cv_prog_OTOOL 13901if test -n "$OTOOL"; then 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13903$as_echo "$OTOOL" >&6; } 13904else 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13906$as_echo "no" >&6; } 13907fi 13908 13909 13910fi 13911if test -z "$ac_cv_prog_OTOOL"; then 13912 ac_ct_OTOOL=$OTOOL 13913 # Extract the first word of "otool", so it can be a program name with args. 13914set dummy otool; ac_word=$2 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13916$as_echo_n "checking for $ac_word... " >&6; } 13917if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13918 $as_echo_n "(cached) " >&6 13919else 13920 if test -n "$ac_ct_OTOOL"; then 13921 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13922else 13923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13924for as_dir in $PATH 13925do 13926 IFS=$as_save_IFS 13927 test -z "$as_dir" && as_dir=. 13928 for ac_exec_ext in '' $ac_executable_extensions; do 13929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13930 ac_cv_prog_ac_ct_OTOOL="otool" 13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13932 break 2 13933 fi 13934done 13935 done 13936IFS=$as_save_IFS 13937 13938fi 13939fi 13940ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13941if test -n "$ac_ct_OTOOL"; then 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13943$as_echo "$ac_ct_OTOOL" >&6; } 13944else 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13946$as_echo "no" >&6; } 13947fi 13948 13949 if test "x$ac_ct_OTOOL" = x; then 13950 OTOOL=":" 13951 else 13952 case $cross_compiling:$ac_tool_warned in 13953yes:) 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13956ac_tool_warned=yes ;; 13957esac 13958 OTOOL=$ac_ct_OTOOL 13959 fi 13960else 13961 OTOOL="$ac_cv_prog_OTOOL" 13962fi 13963 13964 if test -n "$ac_tool_prefix"; then 13965 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13966set dummy ${ac_tool_prefix}otool64; ac_word=$2 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13968$as_echo_n "checking for $ac_word... " >&6; } 13969if ${ac_cv_prog_OTOOL64+:} false; then : 13970 $as_echo_n "(cached) " >&6 13971else 13972 if test -n "$OTOOL64"; then 13973 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13974else 13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13976for as_dir in $PATH 13977do 13978 IFS=$as_save_IFS 13979 test -z "$as_dir" && as_dir=. 13980 for ac_exec_ext in '' $ac_executable_extensions; do 13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13982 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13984 break 2 13985 fi 13986done 13987 done 13988IFS=$as_save_IFS 13989 13990fi 13991fi 13992OTOOL64=$ac_cv_prog_OTOOL64 13993if test -n "$OTOOL64"; then 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13995$as_echo "$OTOOL64" >&6; } 13996else 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13998$as_echo "no" >&6; } 13999fi 14000 14001 14002fi 14003if test -z "$ac_cv_prog_OTOOL64"; then 14004 ac_ct_OTOOL64=$OTOOL64 14005 # Extract the first word of "otool64", so it can be a program name with args. 14006set dummy otool64; ac_word=$2 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14008$as_echo_n "checking for $ac_word... " >&6; } 14009if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14010 $as_echo_n "(cached) " >&6 14011else 14012 if test -n "$ac_ct_OTOOL64"; then 14013 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14014else 14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14016for as_dir in $PATH 14017do 14018 IFS=$as_save_IFS 14019 test -z "$as_dir" && as_dir=. 14020 for ac_exec_ext in '' $ac_executable_extensions; do 14021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14022 ac_cv_prog_ac_ct_OTOOL64="otool64" 14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14024 break 2 14025 fi 14026done 14027 done 14028IFS=$as_save_IFS 14029 14030fi 14031fi 14032ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14033if test -n "$ac_ct_OTOOL64"; then 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14035$as_echo "$ac_ct_OTOOL64" >&6; } 14036else 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14038$as_echo "no" >&6; } 14039fi 14040 14041 if test "x$ac_ct_OTOOL64" = x; then 14042 OTOOL64=":" 14043 else 14044 case $cross_compiling:$ac_tool_warned in 14045yes:) 14046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14048ac_tool_warned=yes ;; 14049esac 14050 OTOOL64=$ac_ct_OTOOL64 14051 fi 14052else 14053 OTOOL64="$ac_cv_prog_OTOOL64" 14054fi 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14083$as_echo_n "checking for -single_module linker flag... " >&6; } 14084if ${lt_cv_apple_cc_single_mod+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086else 14087 lt_cv_apple_cc_single_mod=no 14088 if test -z "$LT_MULTI_MODULE"; then 14089 # By default we will add the -single_module flag. You can override 14090 # by either setting the environment variable LT_MULTI_MODULE 14091 # non-empty at configure time, or by adding -multi_module to the 14092 # link flags. 14093 rm -rf libconftest.dylib* 14094 echo "int foo(void){return 1;}" > conftest.c 14095 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14096-dynamiclib -Wl,-single_module conftest.c" >&5 14097 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14098 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14099 _lt_result=$? 14100 # If there is a non-empty error log, and "single_module" 14101 # appears in it, assume the flag caused a linker warning 14102 if test -s conftest.err && $GREP single_module conftest.err; then 14103 cat conftest.err >&5 14104 # Otherwise, if the output was created with a 0 exit code from 14105 # the compiler, it worked. 14106 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14107 lt_cv_apple_cc_single_mod=yes 14108 else 14109 cat conftest.err >&5 14110 fi 14111 rm -rf libconftest.dylib* 14112 rm -f conftest.* 14113 fi 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14116$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14117 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14119$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14120if ${lt_cv_ld_exported_symbols_list+:} false; then : 14121 $as_echo_n "(cached) " >&6 14122else 14123 lt_cv_ld_exported_symbols_list=no 14124 save_LDFLAGS=$LDFLAGS 14125 echo "_main" > conftest.sym 14126 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14128/* end confdefs.h. */ 14129 14130int 14131main () 14132{ 14133 14134 ; 14135 return 0; 14136} 14137_ACEOF 14138if ac_fn_c_try_link "$LINENO"; then : 14139 lt_cv_ld_exported_symbols_list=yes 14140else 14141 lt_cv_ld_exported_symbols_list=no 14142fi 14143rm -f core conftest.err conftest.$ac_objext \ 14144 conftest$ac_exeext conftest.$ac_ext 14145 LDFLAGS=$save_LDFLAGS 14146 14147fi 14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14149$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14150 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14152$as_echo_n "checking for -force_load linker flag... " >&6; } 14153if ${lt_cv_ld_force_load+:} false; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 lt_cv_ld_force_load=no 14157 cat > conftest.c << _LT_EOF 14158int forced_loaded() { return 2;} 14159_LT_EOF 14160 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14161 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14162 echo "$AR cru libconftest.a conftest.o" >&5 14163 $AR cru libconftest.a conftest.o 2>&5 14164 echo "$RANLIB libconftest.a" >&5 14165 $RANLIB libconftest.a 2>&5 14166 cat > conftest.c << _LT_EOF 14167int main() { return 0;} 14168_LT_EOF 14169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14171 _lt_result=$? 14172 if test -s conftest.err && $GREP force_load conftest.err; then 14173 cat conftest.err >&5 14174 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14175 lt_cv_ld_force_load=yes 14176 else 14177 cat conftest.err >&5 14178 fi 14179 rm -f conftest.err libconftest.a conftest conftest.c 14180 rm -rf conftest.dSYM 14181 14182fi 14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14184$as_echo "$lt_cv_ld_force_load" >&6; } 14185 case $host_os in 14186 rhapsody* | darwin1.[012]) 14187 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14188 darwin1.*) 14189 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14190 darwin*) # darwin 5.x on 14191 # if running on 10.5 or later, the deployment target defaults 14192 # to the OS version, if on x86, and 10.4, the deployment 14193 # target defaults to 10.4. Don't you love it? 14194 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14195 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14196 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14197 10.[012][,.]*) 14198 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14199 10.*) 14200 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14201 esac 14202 ;; 14203 esac 14204 if test yes = "$lt_cv_apple_cc_single_mod"; then 14205 _lt_dar_single_mod='$single_module' 14206 fi 14207 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14208 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14209 else 14210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14211 fi 14212 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14213 _lt_dsymutil='~$DSYMUTIL $lib || :' 14214 else 14215 _lt_dsymutil= 14216 fi 14217 ;; 14218 esac 14219 14220# func_munge_path_list VARIABLE PATH 14221# ----------------------------------- 14222# VARIABLE is name of variable containing _space_ separated list of 14223# directories to be munged by the contents of PATH, which is string 14224# having a format: 14225# "DIR[:DIR]:" 14226# string "DIR[ DIR]" will be prepended to VARIABLE 14227# ":DIR[:DIR]" 14228# string "DIR[ DIR]" will be appended to VARIABLE 14229# "DIRP[:DIRP]::[DIRA:]DIRA" 14230# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14231# "DIRA[ DIRA]" will be appended to VARIABLE 14232# "DIR[:DIR]" 14233# VARIABLE will be replaced by "DIR[ DIR]" 14234func_munge_path_list () 14235{ 14236 case x$2 in 14237 x) 14238 ;; 14239 *:) 14240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14241 ;; 14242 x:*) 14243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14244 ;; 14245 *::*) 14246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14248 ;; 14249 *) 14250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14251 ;; 14252 esac 14253} 14254 14255for ac_header in dlfcn.h 14256do : 14257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14258" 14259if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14260 cat >>confdefs.h <<_ACEOF 14261#define HAVE_DLFCN_H 1 14262_ACEOF 14263 14264fi 14265 14266done 14267 14268 14269 14270 14271func_stripname_cnf () 14272{ 14273 case $2 in 14274 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 14275 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 14276 esac 14277} # func_stripname_cnf 14278 14279 14280 14281 14282 14283# Set options 14284enable_win32_dll=yes 14285 14286case $host in 14287*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 14288 if test -n "$ac_tool_prefix"; then 14289 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 14290set dummy ${ac_tool_prefix}as; ac_word=$2 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14292$as_echo_n "checking for $ac_word... " >&6; } 14293if ${ac_cv_prog_AS+:} false; then : 14294 $as_echo_n "(cached) " >&6 14295else 14296 if test -n "$AS"; then 14297 ac_cv_prog_AS="$AS" # Let the user override the test. 14298else 14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14300for as_dir in $PATH 14301do 14302 IFS=$as_save_IFS 14303 test -z "$as_dir" && as_dir=. 14304 for ac_exec_ext in '' $ac_executable_extensions; do 14305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14306 ac_cv_prog_AS="${ac_tool_prefix}as" 14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14308 break 2 14309 fi 14310done 14311 done 14312IFS=$as_save_IFS 14313 14314fi 14315fi 14316AS=$ac_cv_prog_AS 14317if test -n "$AS"; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 14319$as_echo "$AS" >&6; } 14320else 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14322$as_echo "no" >&6; } 14323fi 14324 14325 14326fi 14327if test -z "$ac_cv_prog_AS"; then 14328 ac_ct_AS=$AS 14329 # Extract the first word of "as", so it can be a program name with args. 14330set dummy as; ac_word=$2 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14332$as_echo_n "checking for $ac_word... " >&6; } 14333if ${ac_cv_prog_ac_ct_AS+:} false; then : 14334 $as_echo_n "(cached) " >&6 14335else 14336 if test -n "$ac_ct_AS"; then 14337 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 14338else 14339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14340for as_dir in $PATH 14341do 14342 IFS=$as_save_IFS 14343 test -z "$as_dir" && as_dir=. 14344 for ac_exec_ext in '' $ac_executable_extensions; do 14345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14346 ac_cv_prog_ac_ct_AS="as" 14347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14348 break 2 14349 fi 14350done 14351 done 14352IFS=$as_save_IFS 14353 14354fi 14355fi 14356ac_ct_AS=$ac_cv_prog_ac_ct_AS 14357if test -n "$ac_ct_AS"; then 14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 14359$as_echo "$ac_ct_AS" >&6; } 14360else 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14362$as_echo "no" >&6; } 14363fi 14364 14365 if test "x$ac_ct_AS" = x; then 14366 AS="false" 14367 else 14368 case $cross_compiling:$ac_tool_warned in 14369yes:) 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14372ac_tool_warned=yes ;; 14373esac 14374 AS=$ac_ct_AS 14375 fi 14376else 14377 AS="$ac_cv_prog_AS" 14378fi 14379 14380 if test -n "$ac_tool_prefix"; then 14381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 14382set dummy ${ac_tool_prefix}dlltool; ac_word=$2 14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14384$as_echo_n "checking for $ac_word... " >&6; } 14385if ${ac_cv_prog_DLLTOOL+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387else 14388 if test -n "$DLLTOOL"; then 14389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 14390else 14391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14392for as_dir in $PATH 14393do 14394 IFS=$as_save_IFS 14395 test -z "$as_dir" && as_dir=. 14396 for ac_exec_ext in '' $ac_executable_extensions; do 14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14400 break 2 14401 fi 14402done 14403 done 14404IFS=$as_save_IFS 14405 14406fi 14407fi 14408DLLTOOL=$ac_cv_prog_DLLTOOL 14409if test -n "$DLLTOOL"; then 14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 14411$as_echo "$DLLTOOL" >&6; } 14412else 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14414$as_echo "no" >&6; } 14415fi 14416 14417 14418fi 14419if test -z "$ac_cv_prog_DLLTOOL"; then 14420 ac_ct_DLLTOOL=$DLLTOOL 14421 # Extract the first word of "dlltool", so it can be a program name with args. 14422set dummy dlltool; ac_word=$2 14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14424$as_echo_n "checking for $ac_word... " >&6; } 14425if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 14426 $as_echo_n "(cached) " >&6 14427else 14428 if test -n "$ac_ct_DLLTOOL"; then 14429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 14430else 14431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14432for as_dir in $PATH 14433do 14434 IFS=$as_save_IFS 14435 test -z "$as_dir" && as_dir=. 14436 for ac_exec_ext in '' $ac_executable_extensions; do 14437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14438 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14440 break 2 14441 fi 14442done 14443 done 14444IFS=$as_save_IFS 14445 14446fi 14447fi 14448ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 14449if test -n "$ac_ct_DLLTOOL"; then 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 14451$as_echo "$ac_ct_DLLTOOL" >&6; } 14452else 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14454$as_echo "no" >&6; } 14455fi 14456 14457 if test "x$ac_ct_DLLTOOL" = x; then 14458 DLLTOOL="false" 14459 else 14460 case $cross_compiling:$ac_tool_warned in 14461yes:) 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14464ac_tool_warned=yes ;; 14465esac 14466 DLLTOOL=$ac_ct_DLLTOOL 14467 fi 14468else 14469 DLLTOOL="$ac_cv_prog_DLLTOOL" 14470fi 14471 14472 if test -n "$ac_tool_prefix"; then 14473 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14474set dummy ${ac_tool_prefix}objdump; ac_word=$2 14475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14476$as_echo_n "checking for $ac_word... " >&6; } 14477if ${ac_cv_prog_OBJDUMP+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 if test -n "$OBJDUMP"; then 14481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14482else 14483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14484for as_dir in $PATH 14485do 14486 IFS=$as_save_IFS 14487 test -z "$as_dir" && as_dir=. 14488 for ac_exec_ext in '' $ac_executable_extensions; do 14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14492 break 2 14493 fi 14494done 14495 done 14496IFS=$as_save_IFS 14497 14498fi 14499fi 14500OBJDUMP=$ac_cv_prog_OBJDUMP 14501if test -n "$OBJDUMP"; then 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14503$as_echo "$OBJDUMP" >&6; } 14504else 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14506$as_echo "no" >&6; } 14507fi 14508 14509 14510fi 14511if test -z "$ac_cv_prog_OBJDUMP"; then 14512 ac_ct_OBJDUMP=$OBJDUMP 14513 # Extract the first word of "objdump", so it can be a program name with args. 14514set dummy objdump; ac_word=$2 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14516$as_echo_n "checking for $ac_word... " >&6; } 14517if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 if test -n "$ac_ct_OBJDUMP"; then 14521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14522else 14523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14524for as_dir in $PATH 14525do 14526 IFS=$as_save_IFS 14527 test -z "$as_dir" && as_dir=. 14528 for ac_exec_ext in '' $ac_executable_extensions; do 14529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14530 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14532 break 2 14533 fi 14534done 14535 done 14536IFS=$as_save_IFS 14537 14538fi 14539fi 14540ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14541if test -n "$ac_ct_OBJDUMP"; then 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14543$as_echo "$ac_ct_OBJDUMP" >&6; } 14544else 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14546$as_echo "no" >&6; } 14547fi 14548 14549 if test "x$ac_ct_OBJDUMP" = x; then 14550 OBJDUMP="false" 14551 else 14552 case $cross_compiling:$ac_tool_warned in 14553yes:) 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14556ac_tool_warned=yes ;; 14557esac 14558 OBJDUMP=$ac_ct_OBJDUMP 14559 fi 14560else 14561 OBJDUMP="$ac_cv_prog_OBJDUMP" 14562fi 14563 14564 ;; 14565esac 14566 14567test -z "$AS" && AS=as 14568 14569 14570 14571 14572 14573test -z "$DLLTOOL" && DLLTOOL=dlltool 14574 14575 14576 14577 14578 14579test -z "$OBJDUMP" && OBJDUMP=objdump 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 # Check whether --enable-shared was given. 14590if test "${enable_shared+set}" = set; then : 14591 enableval=$enable_shared; p=${PACKAGE-default} 14592 case $enableval in 14593 yes) enable_shared=yes ;; 14594 no) enable_shared=no ;; 14595 *) 14596 enable_shared=no 14597 # Look at the argument we got. We use all the common list separators. 14598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14599 for pkg in $enableval; do 14600 IFS=$lt_save_ifs 14601 if test "X$pkg" = "X$p"; then 14602 enable_shared=yes 14603 fi 14604 done 14605 IFS=$lt_save_ifs 14606 ;; 14607 esac 14608else 14609 enable_shared=yes 14610fi 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 # Check whether --enable-static was given. 14621if test "${enable_static+set}" = set; then : 14622 enableval=$enable_static; p=${PACKAGE-default} 14623 case $enableval in 14624 yes) enable_static=yes ;; 14625 no) enable_static=no ;; 14626 *) 14627 enable_static=no 14628 # Look at the argument we got. We use all the common list separators. 14629 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14630 for pkg in $enableval; do 14631 IFS=$lt_save_ifs 14632 if test "X$pkg" = "X$p"; then 14633 enable_static=yes 14634 fi 14635 done 14636 IFS=$lt_save_ifs 14637 ;; 14638 esac 14639else 14640 enable_static=yes 14641fi 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652# Check whether --with-pic was given. 14653if test "${with_pic+set}" = set; then : 14654 withval=$with_pic; lt_p=${PACKAGE-default} 14655 case $withval in 14656 yes|no) pic_mode=$withval ;; 14657 *) 14658 pic_mode=default 14659 # Look at the argument we got. We use all the common list separators. 14660 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14661 for lt_pkg in $withval; do 14662 IFS=$lt_save_ifs 14663 if test "X$lt_pkg" = "X$lt_p"; then 14664 pic_mode=yes 14665 fi 14666 done 14667 IFS=$lt_save_ifs 14668 ;; 14669 esac 14670else 14671 pic_mode=default 14672fi 14673 14674 14675 14676 14677 14678 14679 14680 14681 # Check whether --enable-fast-install was given. 14682if test "${enable_fast_install+set}" = set; then : 14683 enableval=$enable_fast_install; p=${PACKAGE-default} 14684 case $enableval in 14685 yes) enable_fast_install=yes ;; 14686 no) enable_fast_install=no ;; 14687 *) 14688 enable_fast_install=no 14689 # Look at the argument we got. We use all the common list separators. 14690 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14691 for pkg in $enableval; do 14692 IFS=$lt_save_ifs 14693 if test "X$pkg" = "X$p"; then 14694 enable_fast_install=yes 14695 fi 14696 done 14697 IFS=$lt_save_ifs 14698 ;; 14699 esac 14700else 14701 enable_fast_install=yes 14702fi 14703 14704 14705 14706 14707 14708 14709 14710 14711 shared_archive_member_spec= 14712case $host,$enable_shared in 14713power*-*-aix[5-9]*,yes) 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14715$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14716 14717# Check whether --with-aix-soname was given. 14718if test "${with_aix_soname+set}" = set; then : 14719 withval=$with_aix_soname; case $withval in 14720 aix|svr4|both) 14721 ;; 14722 *) 14723 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14724 ;; 14725 esac 14726 lt_cv_with_aix_soname=$with_aix_soname 14727else 14728 if ${lt_cv_with_aix_soname+:} false; then : 14729 $as_echo_n "(cached) " >&6 14730else 14731 lt_cv_with_aix_soname=aix 14732fi 14733 14734 with_aix_soname=$lt_cv_with_aix_soname 14735fi 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14738$as_echo "$with_aix_soname" >&6; } 14739 if test aix != "$with_aix_soname"; then 14740 # For the AIX way of multilib, we name the shared archive member 14741 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14742 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14743 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14744 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14745 if test 64 = "${OBJECT_MODE-32}"; then 14746 shared_archive_member_spec=shr_64 14747 else 14748 shared_archive_member_spec=shr 14749 fi 14750 fi 14751 ;; 14752*) 14753 with_aix_soname=aix 14754 ;; 14755esac 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766# This can be used to rebuild libtool when needed 14767LIBTOOL_DEPS=$ltmain 14768 14769# Always use our own libtool. 14770LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801test -z "$LN_S" && LN_S="ln -s" 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816if test -n "${ZSH_VERSION+set}"; then 14817 setopt NO_GLOB_SUBST 14818fi 14819 14820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14821$as_echo_n "checking for objdir... " >&6; } 14822if ${lt_cv_objdir+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 rm -f .libs 2>/dev/null 14826mkdir .libs 2>/dev/null 14827if test -d .libs; then 14828 lt_cv_objdir=.libs 14829else 14830 # MS-DOS does not allow filenames that begin with a dot. 14831 lt_cv_objdir=_libs 14832fi 14833rmdir .libs 2>/dev/null 14834fi 14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14836$as_echo "$lt_cv_objdir" >&6; } 14837objdir=$lt_cv_objdir 14838 14839 14840 14841 14842 14843cat >>confdefs.h <<_ACEOF 14844#define LT_OBJDIR "$lt_cv_objdir/" 14845_ACEOF 14846 14847 14848 14849 14850case $host_os in 14851aix3*) 14852 # AIX sometimes has problems with the GCC collect2 program. For some 14853 # reason, if we set the COLLECT_NAMES environment variable, the problems 14854 # vanish in a puff of smoke. 14855 if test set != "${COLLECT_NAMES+set}"; then 14856 COLLECT_NAMES= 14857 export COLLECT_NAMES 14858 fi 14859 ;; 14860esac 14861 14862# Global variables: 14863ofile=libtool 14864can_build_shared=yes 14865 14866# All known linkers require a '.a' archive for static linking (except MSVC, 14867# which needs '.lib'). 14868libext=a 14869 14870with_gnu_ld=$lt_cv_prog_gnu_ld 14871 14872old_CC=$CC 14873old_CFLAGS=$CFLAGS 14874 14875# Set sane defaults for various variables 14876test -z "$CC" && CC=cc 14877test -z "$LTCC" && LTCC=$CC 14878test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14879test -z "$LD" && LD=ld 14880test -z "$ac_objext" && ac_objext=o 14881 14882func_cc_basename $compiler 14883cc_basename=$func_cc_basename_result 14884 14885 14886# Only perform the check for file, if the check method requires it 14887test -z "$MAGIC_CMD" && MAGIC_CMD=file 14888case $deplibs_check_method in 14889file_magic*) 14890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14892$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14893if ${lt_cv_path_MAGIC_CMD+:} false; then : 14894 $as_echo_n "(cached) " >&6 14895else 14896 case $MAGIC_CMD in 14897[\\/*] | ?:[\\/]*) 14898 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14899 ;; 14900*) 14901 lt_save_MAGIC_CMD=$MAGIC_CMD 14902 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14904 for ac_dir in $ac_dummy; do 14905 IFS=$lt_save_ifs 14906 test -z "$ac_dir" && ac_dir=. 14907 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14908 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14909 if test -n "$file_magic_test_file"; then 14910 case $deplibs_check_method in 14911 "file_magic "*) 14912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14913 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14915 $EGREP "$file_magic_regex" > /dev/null; then 14916 : 14917 else 14918 cat <<_LT_EOF 1>&2 14919 14920*** Warning: the command libtool uses to detect shared libraries, 14921*** $file_magic_cmd, produces output that libtool cannot recognize. 14922*** The result is that libtool may fail to recognize shared libraries 14923*** as such. This will affect the creation of libtool libraries that 14924*** depend on shared libraries, but programs linked with such libtool 14925*** libraries will work regardless of this problem. Nevertheless, you 14926*** may want to report the problem to your system manager and/or to 14927*** bug-libtool@gnu.org 14928 14929_LT_EOF 14930 fi ;; 14931 esac 14932 fi 14933 break 14934 fi 14935 done 14936 IFS=$lt_save_ifs 14937 MAGIC_CMD=$lt_save_MAGIC_CMD 14938 ;; 14939esac 14940fi 14941 14942MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14943if test -n "$MAGIC_CMD"; then 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14945$as_echo "$MAGIC_CMD" >&6; } 14946else 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14948$as_echo "no" >&6; } 14949fi 14950 14951 14952 14953 14954 14955if test -z "$lt_cv_path_MAGIC_CMD"; then 14956 if test -n "$ac_tool_prefix"; then 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14958$as_echo_n "checking for file... " >&6; } 14959if ${lt_cv_path_MAGIC_CMD+:} false; then : 14960 $as_echo_n "(cached) " >&6 14961else 14962 case $MAGIC_CMD in 14963[\\/*] | ?:[\\/]*) 14964 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14965 ;; 14966*) 14967 lt_save_MAGIC_CMD=$MAGIC_CMD 14968 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14970 for ac_dir in $ac_dummy; do 14971 IFS=$lt_save_ifs 14972 test -z "$ac_dir" && ac_dir=. 14973 if test -f "$ac_dir/file"; then 14974 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14975 if test -n "$file_magic_test_file"; then 14976 case $deplibs_check_method in 14977 "file_magic "*) 14978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14979 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14981 $EGREP "$file_magic_regex" > /dev/null; then 14982 : 14983 else 14984 cat <<_LT_EOF 1>&2 14985 14986*** Warning: the command libtool uses to detect shared libraries, 14987*** $file_magic_cmd, produces output that libtool cannot recognize. 14988*** The result is that libtool may fail to recognize shared libraries 14989*** as such. This will affect the creation of libtool libraries that 14990*** depend on shared libraries, but programs linked with such libtool 14991*** libraries will work regardless of this problem. Nevertheless, you 14992*** may want to report the problem to your system manager and/or to 14993*** bug-libtool@gnu.org 14994 14995_LT_EOF 14996 fi ;; 14997 esac 14998 fi 14999 break 15000 fi 15001 done 15002 IFS=$lt_save_ifs 15003 MAGIC_CMD=$lt_save_MAGIC_CMD 15004 ;; 15005esac 15006fi 15007 15008MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15009if test -n "$MAGIC_CMD"; then 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15011$as_echo "$MAGIC_CMD" >&6; } 15012else 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15014$as_echo "no" >&6; } 15015fi 15016 15017 15018 else 15019 MAGIC_CMD=: 15020 fi 15021fi 15022 15023 fi 15024 ;; 15025esac 15026 15027# Use C for the default configuration in the libtool script 15028 15029lt_save_CC=$CC 15030ac_ext=c 15031ac_cpp='$CPP $CPPFLAGS' 15032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15034ac_compiler_gnu=$ac_cv_c_compiler_gnu 15035 15036 15037# Source file extension for C test sources. 15038ac_ext=c 15039 15040# Object file extension for compiled C test sources. 15041objext=o 15042objext=$objext 15043 15044# Code to be used in simple compile tests 15045lt_simple_compile_test_code="int some_variable = 0;" 15046 15047# Code to be used in simple link tests 15048lt_simple_link_test_code='int main(){return(0);}' 15049 15050 15051 15052 15053 15054 15055 15056# If no C compiler was specified, use CC. 15057LTCC=${LTCC-"$CC"} 15058 15059# If no C compiler flags were specified, use CFLAGS. 15060LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15061 15062# Allow CC to be a program name with arguments. 15063compiler=$CC 15064 15065# Save the default compiler, since it gets overwritten when the other 15066# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15067compiler_DEFAULT=$CC 15068 15069# save warnings/boilerplate of simple test code 15070ac_outfile=conftest.$ac_objext 15071echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15072eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15073_lt_compiler_boilerplate=`cat conftest.err` 15074$RM conftest* 15075 15076ac_outfile=conftest.$ac_objext 15077echo "$lt_simple_link_test_code" >conftest.$ac_ext 15078eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15079_lt_linker_boilerplate=`cat conftest.err` 15080$RM -r conftest* 15081 15082 15083## CAVEAT EMPTOR: 15084## There is no encapsulation within the following macros, do not change 15085## the running order or otherwise move them around unless you know exactly 15086## what you are doing... 15087if test -n "$compiler"; then 15088 15089lt_prog_compiler_no_builtin_flag= 15090 15091if test yes = "$GCC"; then 15092 case $cc_basename in 15093 nvcc*) 15094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15095 *) 15096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15097 esac 15098 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15100$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15101if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 15102 $as_echo_n "(cached) " >&6 15103else 15104 lt_cv_prog_compiler_rtti_exceptions=no 15105 ac_outfile=conftest.$ac_objext 15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15107 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15108 # Insert the option either (1) after the last *FLAGS variable, or 15109 # (2) before a word containing "conftest.", or (3) at the end. 15110 # Note that $ac_compile itself does not contain backslashes and begins 15111 # with a dollar sign (not a hyphen), so the echo should work correctly. 15112 # The option is referenced via a variable to avoid confusing sed. 15113 lt_compile=`echo "$ac_compile" | $SED \ 15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15116 -e 's:$: $lt_compiler_flag:'` 15117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15118 (eval "$lt_compile" 2>conftest.err) 15119 ac_status=$? 15120 cat conftest.err >&5 15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15122 if (exit $ac_status) && test -s "$ac_outfile"; then 15123 # The compiler can only warn and ignore the option if not recognized 15124 # So say no if there are warnings other than the usual output. 15125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15128 lt_cv_prog_compiler_rtti_exceptions=yes 15129 fi 15130 fi 15131 $RM conftest* 15132 15133fi 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15135$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15136 15137if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15138 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15139else 15140 : 15141fi 15142 15143fi 15144 15145 15146 15147 15148 15149 15150 lt_prog_compiler_wl= 15151lt_prog_compiler_pic= 15152lt_prog_compiler_static= 15153 15154 15155 if test yes = "$GCC"; then 15156 lt_prog_compiler_wl='-Wl,' 15157 lt_prog_compiler_static='-static' 15158 15159 case $host_os in 15160 aix*) 15161 # All AIX code is PIC. 15162 if test ia64 = "$host_cpu"; then 15163 # AIX 5 now supports IA64 processor 15164 lt_prog_compiler_static='-Bstatic' 15165 fi 15166 lt_prog_compiler_pic='-fPIC' 15167 ;; 15168 15169 amigaos*) 15170 case $host_cpu in 15171 powerpc) 15172 # see comment about AmigaOS4 .so support 15173 lt_prog_compiler_pic='-fPIC' 15174 ;; 15175 m68k) 15176 # FIXME: we need at least 68020 code to build shared libraries, but 15177 # adding the '-m68020' flag to GCC prevents building anything better, 15178 # like '-m68040'. 15179 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15180 ;; 15181 esac 15182 ;; 15183 15184 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15185 # PIC is the default for these OSes. 15186 ;; 15187 15188 mingw* | cygwin* | pw32* | os2* | cegcc*) 15189 # This hack is so that the source file can tell whether it is being 15190 # built for inclusion in a dll (and should export symbols for example). 15191 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15192 # (--disable-auto-import) libraries 15193 lt_prog_compiler_pic='-DDLL_EXPORT' 15194 case $host_os in 15195 os2*) 15196 lt_prog_compiler_static='$wl-static' 15197 ;; 15198 esac 15199 ;; 15200 15201 darwin* | rhapsody*) 15202 # PIC is the default on this platform 15203 # Common symbols not allowed in MH_DYLIB files 15204 lt_prog_compiler_pic='-fno-common' 15205 ;; 15206 15207 haiku*) 15208 # PIC is the default for Haiku. 15209 # The "-static" flag exists, but is broken. 15210 lt_prog_compiler_static= 15211 ;; 15212 15213 hpux*) 15214 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15215 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15216 # sets the default TLS model and affects inlining. 15217 case $host_cpu in 15218 hppa*64*) 15219 # +Z the default 15220 ;; 15221 *) 15222 lt_prog_compiler_pic='-fPIC' 15223 ;; 15224 esac 15225 ;; 15226 15227 interix[3-9]*) 15228 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15229 # Instead, we relocate shared libraries at runtime. 15230 ;; 15231 15232 msdosdjgpp*) 15233 # Just because we use GCC doesn't mean we suddenly get shared libraries 15234 # on systems that don't support them. 15235 lt_prog_compiler_can_build_shared=no 15236 enable_shared=no 15237 ;; 15238 15239 *nto* | *qnx*) 15240 # QNX uses GNU C++, but need to define -shared option too, otherwise 15241 # it will coredump. 15242 lt_prog_compiler_pic='-fPIC -shared' 15243 ;; 15244 15245 sysv4*MP*) 15246 if test -d /usr/nec; then 15247 lt_prog_compiler_pic=-Kconform_pic 15248 fi 15249 ;; 15250 15251 *) 15252 lt_prog_compiler_pic='-fPIC' 15253 ;; 15254 esac 15255 15256 case $cc_basename in 15257 nvcc*) # Cuda Compiler Driver 2.2 15258 lt_prog_compiler_wl='-Xlinker ' 15259 if test -n "$lt_prog_compiler_pic"; then 15260 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15261 fi 15262 ;; 15263 esac 15264 else 15265 # PORTME Check for flag to pass linker flags through the system compiler. 15266 case $host_os in 15267 aix*) 15268 lt_prog_compiler_wl='-Wl,' 15269 if test ia64 = "$host_cpu"; then 15270 # AIX 5 now supports IA64 processor 15271 lt_prog_compiler_static='-Bstatic' 15272 else 15273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15274 fi 15275 ;; 15276 15277 darwin* | rhapsody*) 15278 # PIC is the default on this platform 15279 # Common symbols not allowed in MH_DYLIB files 15280 lt_prog_compiler_pic='-fno-common' 15281 case $cc_basename in 15282 nagfor*) 15283 # NAG Fortran compiler 15284 lt_prog_compiler_wl='-Wl,-Wl,,' 15285 lt_prog_compiler_pic='-PIC' 15286 lt_prog_compiler_static='-Bstatic' 15287 ;; 15288 esac 15289 ;; 15290 15291 mingw* | cygwin* | pw32* | os2* | cegcc*) 15292 # This hack is so that the source file can tell whether it is being 15293 # built for inclusion in a dll (and should export symbols for example). 15294 lt_prog_compiler_pic='-DDLL_EXPORT' 15295 case $host_os in 15296 os2*) 15297 lt_prog_compiler_static='$wl-static' 15298 ;; 15299 esac 15300 ;; 15301 15302 hpux9* | hpux10* | hpux11*) 15303 lt_prog_compiler_wl='-Wl,' 15304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15305 # not for PA HP-UX. 15306 case $host_cpu in 15307 hppa*64*|ia64*) 15308 # +Z the default 15309 ;; 15310 *) 15311 lt_prog_compiler_pic='+Z' 15312 ;; 15313 esac 15314 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15315 lt_prog_compiler_static='$wl-a ${wl}archive' 15316 ;; 15317 15318 irix5* | irix6* | nonstopux*) 15319 lt_prog_compiler_wl='-Wl,' 15320 # PIC (with -KPIC) is the default. 15321 lt_prog_compiler_static='-non_shared' 15322 ;; 15323 15324 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15325 case $cc_basename in 15326 # old Intel for x86_64, which still supported -KPIC. 15327 ecc*) 15328 lt_prog_compiler_wl='-Wl,' 15329 lt_prog_compiler_pic='-KPIC' 15330 lt_prog_compiler_static='-static' 15331 ;; 15332 # icc used to be incompatible with GCC. 15333 # ICC 10 doesn't accept -KPIC any more. 15334 icc* | ifort*) 15335 lt_prog_compiler_wl='-Wl,' 15336 lt_prog_compiler_pic='-fPIC' 15337 lt_prog_compiler_static='-static' 15338 ;; 15339 # Lahey Fortran 8.1. 15340 lf95*) 15341 lt_prog_compiler_wl='-Wl,' 15342 lt_prog_compiler_pic='--shared' 15343 lt_prog_compiler_static='--static' 15344 ;; 15345 nagfor*) 15346 # NAG Fortran compiler 15347 lt_prog_compiler_wl='-Wl,-Wl,,' 15348 lt_prog_compiler_pic='-PIC' 15349 lt_prog_compiler_static='-Bstatic' 15350 ;; 15351 tcc*) 15352 # Fabrice Bellard et al's Tiny C Compiler 15353 lt_prog_compiler_wl='-Wl,' 15354 lt_prog_compiler_pic='-fPIC' 15355 lt_prog_compiler_static='-static' 15356 ;; 15357 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15358 # Portland Group compilers (*not* the Pentium gcc compiler, 15359 # which looks to be a dead project) 15360 lt_prog_compiler_wl='-Wl,' 15361 lt_prog_compiler_pic='-fpic' 15362 lt_prog_compiler_static='-Bstatic' 15363 ;; 15364 ccc*) 15365 lt_prog_compiler_wl='-Wl,' 15366 # All Alpha code is PIC. 15367 lt_prog_compiler_static='-non_shared' 15368 ;; 15369 xl* | bgxl* | bgf* | mpixl*) 15370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15371 lt_prog_compiler_wl='-Wl,' 15372 lt_prog_compiler_pic='-qpic' 15373 lt_prog_compiler_static='-qstaticlink' 15374 ;; 15375 *) 15376 case `$CC -V 2>&1 | sed 5q` in 15377 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15378 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15379 lt_prog_compiler_pic='-KPIC' 15380 lt_prog_compiler_static='-Bstatic' 15381 lt_prog_compiler_wl='' 15382 ;; 15383 *Sun\ F* | *Sun*Fortran*) 15384 lt_prog_compiler_pic='-KPIC' 15385 lt_prog_compiler_static='-Bstatic' 15386 lt_prog_compiler_wl='-Qoption ld ' 15387 ;; 15388 *Sun\ C*) 15389 # Sun C 5.9 15390 lt_prog_compiler_pic='-KPIC' 15391 lt_prog_compiler_static='-Bstatic' 15392 lt_prog_compiler_wl='-Wl,' 15393 ;; 15394 *Intel*\ [CF]*Compiler*) 15395 lt_prog_compiler_wl='-Wl,' 15396 lt_prog_compiler_pic='-fPIC' 15397 lt_prog_compiler_static='-static' 15398 ;; 15399 *Portland\ Group*) 15400 lt_prog_compiler_wl='-Wl,' 15401 lt_prog_compiler_pic='-fpic' 15402 lt_prog_compiler_static='-Bstatic' 15403 ;; 15404 esac 15405 ;; 15406 esac 15407 ;; 15408 15409 newsos6) 15410 lt_prog_compiler_pic='-KPIC' 15411 lt_prog_compiler_static='-Bstatic' 15412 ;; 15413 15414 *nto* | *qnx*) 15415 # QNX uses GNU C++, but need to define -shared option too, otherwise 15416 # it will coredump. 15417 lt_prog_compiler_pic='-fPIC -shared' 15418 ;; 15419 15420 osf3* | osf4* | osf5*) 15421 lt_prog_compiler_wl='-Wl,' 15422 # All OSF/1 code is PIC. 15423 lt_prog_compiler_static='-non_shared' 15424 ;; 15425 15426 rdos*) 15427 lt_prog_compiler_static='-non_shared' 15428 ;; 15429 15430 solaris*) 15431 lt_prog_compiler_pic='-KPIC' 15432 lt_prog_compiler_static='-Bstatic' 15433 case $cc_basename in 15434 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15435 lt_prog_compiler_wl='-Qoption ld ';; 15436 *) 15437 lt_prog_compiler_wl='-Wl,';; 15438 esac 15439 ;; 15440 15441 sunos4*) 15442 lt_prog_compiler_wl='-Qoption ld ' 15443 lt_prog_compiler_pic='-PIC' 15444 lt_prog_compiler_static='-Bstatic' 15445 ;; 15446 15447 sysv4 | sysv4.2uw2* | sysv4.3*) 15448 lt_prog_compiler_wl='-Wl,' 15449 lt_prog_compiler_pic='-KPIC' 15450 lt_prog_compiler_static='-Bstatic' 15451 ;; 15452 15453 sysv4*MP*) 15454 if test -d /usr/nec; then 15455 lt_prog_compiler_pic='-Kconform_pic' 15456 lt_prog_compiler_static='-Bstatic' 15457 fi 15458 ;; 15459 15460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15461 lt_prog_compiler_wl='-Wl,' 15462 lt_prog_compiler_pic='-KPIC' 15463 lt_prog_compiler_static='-Bstatic' 15464 ;; 15465 15466 unicos*) 15467 lt_prog_compiler_wl='-Wl,' 15468 lt_prog_compiler_can_build_shared=no 15469 ;; 15470 15471 uts4*) 15472 lt_prog_compiler_pic='-pic' 15473 lt_prog_compiler_static='-Bstatic' 15474 ;; 15475 15476 *) 15477 lt_prog_compiler_can_build_shared=no 15478 ;; 15479 esac 15480 fi 15481 15482case $host_os in 15483 # For platforms that do not support PIC, -DPIC is meaningless: 15484 *djgpp*) 15485 lt_prog_compiler_pic= 15486 ;; 15487 *) 15488 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15489 ;; 15490esac 15491 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15493$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15494if ${lt_cv_prog_compiler_pic+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15498fi 15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15500$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15501lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15502 15503# 15504# Check to make sure the PIC flag actually works. 15505# 15506if test -n "$lt_prog_compiler_pic"; then 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15508$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15509if ${lt_cv_prog_compiler_pic_works+:} false; then : 15510 $as_echo_n "(cached) " >&6 15511else 15512 lt_cv_prog_compiler_pic_works=no 15513 ac_outfile=conftest.$ac_objext 15514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15515 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15516 # Insert the option either (1) after the last *FLAGS variable, or 15517 # (2) before a word containing "conftest.", or (3) at the end. 15518 # Note that $ac_compile itself does not contain backslashes and begins 15519 # with a dollar sign (not a hyphen), so the echo should work correctly. 15520 # The option is referenced via a variable to avoid confusing sed. 15521 lt_compile=`echo "$ac_compile" | $SED \ 15522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15524 -e 's:$: $lt_compiler_flag:'` 15525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15526 (eval "$lt_compile" 2>conftest.err) 15527 ac_status=$? 15528 cat conftest.err >&5 15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15530 if (exit $ac_status) && test -s "$ac_outfile"; then 15531 # The compiler can only warn and ignore the option if not recognized 15532 # So say no if there are warnings other than the usual output. 15533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15536 lt_cv_prog_compiler_pic_works=yes 15537 fi 15538 fi 15539 $RM conftest* 15540 15541fi 15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15543$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15544 15545if test yes = "$lt_cv_prog_compiler_pic_works"; then 15546 case $lt_prog_compiler_pic in 15547 "" | " "*) ;; 15548 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15549 esac 15550else 15551 lt_prog_compiler_pic= 15552 lt_prog_compiler_can_build_shared=no 15553fi 15554 15555fi 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567# 15568# Check to make sure the static flag actually works. 15569# 15570wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15572$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15573if ${lt_cv_prog_compiler_static_works+:} false; then : 15574 $as_echo_n "(cached) " >&6 15575else 15576 lt_cv_prog_compiler_static_works=no 15577 save_LDFLAGS=$LDFLAGS 15578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15579 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15581 # The linker can only warn and ignore the option if not recognized 15582 # So say no if there are warnings 15583 if test -s conftest.err; then 15584 # Append any errors to the config.log. 15585 cat conftest.err 1>&5 15586 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15588 if diff conftest.exp conftest.er2 >/dev/null; then 15589 lt_cv_prog_compiler_static_works=yes 15590 fi 15591 else 15592 lt_cv_prog_compiler_static_works=yes 15593 fi 15594 fi 15595 $RM -r conftest* 15596 LDFLAGS=$save_LDFLAGS 15597 15598fi 15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15600$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15601 15602if test yes = "$lt_cv_prog_compiler_static_works"; then 15603 : 15604else 15605 lt_prog_compiler_static= 15606fi 15607 15608 15609 15610 15611 15612 15613 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15615$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15616if ${lt_cv_prog_compiler_c_o+:} false; then : 15617 $as_echo_n "(cached) " >&6 15618else 15619 lt_cv_prog_compiler_c_o=no 15620 $RM -r conftest 2>/dev/null 15621 mkdir conftest 15622 cd conftest 15623 mkdir out 15624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15625 15626 lt_compiler_flag="-o out/conftest2.$ac_objext" 15627 # Insert the option either (1) after the last *FLAGS variable, or 15628 # (2) before a word containing "conftest.", or (3) at the end. 15629 # Note that $ac_compile itself does not contain backslashes and begins 15630 # with a dollar sign (not a hyphen), so the echo should work correctly. 15631 lt_compile=`echo "$ac_compile" | $SED \ 15632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15634 -e 's:$: $lt_compiler_flag:'` 15635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15636 (eval "$lt_compile" 2>out/conftest.err) 15637 ac_status=$? 15638 cat out/conftest.err >&5 15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15640 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15641 then 15642 # The compiler can only warn and ignore the option if not recognized 15643 # So say no if there are warnings 15644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15647 lt_cv_prog_compiler_c_o=yes 15648 fi 15649 fi 15650 chmod u+w . 2>&5 15651 $RM conftest* 15652 # SGI C++ compiler will create directory out/ii_files/ for 15653 # template instantiation 15654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15655 $RM out/* && rmdir out 15656 cd .. 15657 $RM -r conftest 15658 $RM conftest* 15659 15660fi 15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15662$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15663 15664 15665 15666 15667 15668 15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15670$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15671if ${lt_cv_prog_compiler_c_o+:} false; then : 15672 $as_echo_n "(cached) " >&6 15673else 15674 lt_cv_prog_compiler_c_o=no 15675 $RM -r conftest 2>/dev/null 15676 mkdir conftest 15677 cd conftest 15678 mkdir out 15679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15680 15681 lt_compiler_flag="-o out/conftest2.$ac_objext" 15682 # Insert the option either (1) after the last *FLAGS variable, or 15683 # (2) before a word containing "conftest.", or (3) at the end. 15684 # Note that $ac_compile itself does not contain backslashes and begins 15685 # with a dollar sign (not a hyphen), so the echo should work correctly. 15686 lt_compile=`echo "$ac_compile" | $SED \ 15687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15689 -e 's:$: $lt_compiler_flag:'` 15690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15691 (eval "$lt_compile" 2>out/conftest.err) 15692 ac_status=$? 15693 cat out/conftest.err >&5 15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15695 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15696 then 15697 # The compiler can only warn and ignore the option if not recognized 15698 # So say no if there are warnings 15699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15702 lt_cv_prog_compiler_c_o=yes 15703 fi 15704 fi 15705 chmod u+w . 2>&5 15706 $RM conftest* 15707 # SGI C++ compiler will create directory out/ii_files/ for 15708 # template instantiation 15709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15710 $RM out/* && rmdir out 15711 cd .. 15712 $RM -r conftest 15713 $RM conftest* 15714 15715fi 15716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15717$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15718 15719 15720 15721 15722hard_links=nottested 15723if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15724 # do not overwrite the value of need_locks provided by the user 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15726$as_echo_n "checking if we can lock with hard links... " >&6; } 15727 hard_links=yes 15728 $RM conftest* 15729 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15730 touch conftest.a 15731 ln conftest.a conftest.b 2>&5 || hard_links=no 15732 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15734$as_echo "$hard_links" >&6; } 15735 if test no = "$hard_links"; then 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15737$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15738 need_locks=warn 15739 fi 15740else 15741 need_locks=no 15742fi 15743 15744 15745 15746 15747 15748 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15750$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15751 15752 runpath_var= 15753 allow_undefined_flag= 15754 always_export_symbols=no 15755 archive_cmds= 15756 archive_expsym_cmds= 15757 compiler_needs_object=no 15758 enable_shared_with_static_runtimes=no 15759 export_dynamic_flag_spec= 15760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15761 hardcode_automatic=no 15762 hardcode_direct=no 15763 hardcode_direct_absolute=no 15764 hardcode_libdir_flag_spec= 15765 hardcode_libdir_separator= 15766 hardcode_minus_L=no 15767 hardcode_shlibpath_var=unsupported 15768 inherit_rpath=no 15769 link_all_deplibs=unknown 15770 module_cmds= 15771 module_expsym_cmds= 15772 old_archive_from_new_cmds= 15773 old_archive_from_expsyms_cmds= 15774 thread_safe_flag_spec= 15775 whole_archive_flag_spec= 15776 # include_expsyms should be a list of space-separated symbols to be *always* 15777 # included in the symbol list 15778 include_expsyms= 15779 # exclude_expsyms can be an extended regexp of symbols to exclude 15780 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15781 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15782 # as well as any symbol that contains 'd'. 15783 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15785 # platforms (ab)use it in PIC code, but their linkers get confused if 15786 # the symbol is explicitly referenced. Since portable code cannot 15787 # rely on this symbol name, it's probably fine to never include it in 15788 # preloaded symbol tables. 15789 # Exclude shared library initialization/finalization symbols. 15790 extract_expsyms_cmds= 15791 15792 case $host_os in 15793 cygwin* | mingw* | pw32* | cegcc*) 15794 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15795 # When not using gcc, we currently assume that we are using 15796 # Microsoft Visual C++. 15797 if test yes != "$GCC"; then 15798 with_gnu_ld=no 15799 fi 15800 ;; 15801 interix*) 15802 # we just hope/assume this is gcc and not c89 (= MSVC++) 15803 with_gnu_ld=yes 15804 ;; 15805 openbsd* | bitrig*) 15806 with_gnu_ld=no 15807 ;; 15808 esac 15809 15810 ld_shlibs=yes 15811 15812 # On some targets, GNU ld is compatible enough with the native linker 15813 # that we're better off using the native interface for both. 15814 lt_use_gnu_ld_interface=no 15815 if test yes = "$with_gnu_ld"; then 15816 case $host_os in 15817 aix*) 15818 # The AIX port of GNU ld has always aspired to compatibility 15819 # with the native linker. However, as the warning in the GNU ld 15820 # block says, versions before 2.19.5* couldn't really create working 15821 # shared libraries, regardless of the interface used. 15822 case `$LD -v 2>&1` in 15823 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15824 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15825 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15826 *) 15827 lt_use_gnu_ld_interface=yes 15828 ;; 15829 esac 15830 ;; 15831 *) 15832 lt_use_gnu_ld_interface=yes 15833 ;; 15834 esac 15835 fi 15836 15837 if test yes = "$lt_use_gnu_ld_interface"; then 15838 # If archive_cmds runs LD, not CC, wlarc should be empty 15839 wlarc='$wl' 15840 15841 # Set some defaults for GNU ld with shared library support. These 15842 # are reset later if shared libraries are not supported. Putting them 15843 # here allows them to be overridden if necessary. 15844 runpath_var=LD_RUN_PATH 15845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15846 export_dynamic_flag_spec='$wl--export-dynamic' 15847 # ancient GNU ld didn't support --whole-archive et. al. 15848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15849 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15850 else 15851 whole_archive_flag_spec= 15852 fi 15853 supports_anon_versioning=no 15854 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15855 *GNU\ gold*) supports_anon_versioning=yes ;; 15856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15859 *\ 2.11.*) ;; # other 2.11 versions 15860 *) supports_anon_versioning=yes ;; 15861 esac 15862 15863 # See if GNU ld supports shared libraries. 15864 case $host_os in 15865 aix[3-9]*) 15866 # On AIX/PPC, the GNU linker is very broken 15867 if test ia64 != "$host_cpu"; then 15868 ld_shlibs=no 15869 cat <<_LT_EOF 1>&2 15870 15871*** Warning: the GNU linker, at least up to release 2.19, is reported 15872*** to be unable to reliably create shared libraries on AIX. 15873*** Therefore, libtool is disabling shared libraries support. If you 15874*** really care for shared libraries, you may want to install binutils 15875*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15876*** You will then need to restart the configuration process. 15877 15878_LT_EOF 15879 fi 15880 ;; 15881 15882 amigaos*) 15883 case $host_cpu in 15884 powerpc) 15885 # see comment about AmigaOS4 .so support 15886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15887 archive_expsym_cmds='' 15888 ;; 15889 m68k) 15890 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)' 15891 hardcode_libdir_flag_spec='-L$libdir' 15892 hardcode_minus_L=yes 15893 ;; 15894 esac 15895 ;; 15896 15897 beos*) 15898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15899 allow_undefined_flag=unsupported 15900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15901 # support --undefined. This deserves some investigation. FIXME 15902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15903 else 15904 ld_shlibs=no 15905 fi 15906 ;; 15907 15908 cygwin* | mingw* | pw32* | cegcc*) 15909 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15910 # as there is no search path for DLLs. 15911 hardcode_libdir_flag_spec='-L$libdir' 15912 export_dynamic_flag_spec='$wl--export-all-symbols' 15913 allow_undefined_flag=unsupported 15914 always_export_symbols=no 15915 enable_shared_with_static_runtimes=yes 15916 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' 15917 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15918 15919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15921 # If the export-symbols file already is a .def file, use it as 15922 # is; otherwise, prepend EXPORTS... 15923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15924 cp $export_symbols $output_objdir/$soname.def; 15925 else 15926 echo EXPORTS > $output_objdir/$soname.def; 15927 cat $export_symbols >> $output_objdir/$soname.def; 15928 fi~ 15929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15930 else 15931 ld_shlibs=no 15932 fi 15933 ;; 15934 15935 haiku*) 15936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15937 link_all_deplibs=yes 15938 ;; 15939 15940 os2*) 15941 hardcode_libdir_flag_spec='-L$libdir' 15942 hardcode_minus_L=yes 15943 allow_undefined_flag=unsupported 15944 shrext_cmds=.dll 15945 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15948 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15949 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15951 emximp -o $lib $output_objdir/$libname.def' 15952 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15955 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15956 prefix_cmds="$SED"~ 15957 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15958 prefix_cmds="$prefix_cmds -e 1d"; 15959 fi~ 15960 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15961 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15962 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15963 emximp -o $lib $output_objdir/$libname.def' 15964 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15965 enable_shared_with_static_runtimes=yes 15966 ;; 15967 15968 interix[3-9]*) 15969 hardcode_direct=no 15970 hardcode_shlibpath_var=no 15971 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15972 export_dynamic_flag_spec='$wl-E' 15973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15974 # Instead, shared libraries are loaded at an image base (0x10000000 by 15975 # default) and relocated if they conflict, which is a slow very memory 15976 # consuming and fragmenting process. To avoid this, we pick a random, 15977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15978 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15980 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' 15981 ;; 15982 15983 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15984 tmp_diet=no 15985 if test linux-dietlibc = "$host_os"; then 15986 case $cc_basename in 15987 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15988 esac 15989 fi 15990 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15991 && test no = "$tmp_diet" 15992 then 15993 tmp_addflag=' $pic_flag' 15994 tmp_sharedflag='-shared' 15995 case $cc_basename,$host_cpu in 15996 pgcc*) # Portland Group C compiler 15997 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' 15998 tmp_addflag=' $pic_flag' 15999 ;; 16000 pgf77* | pgf90* | pgf95* | pgfortran*) 16001 # Portland Group f77 and f90 compilers 16002 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' 16003 tmp_addflag=' $pic_flag -Mnomain' ;; 16004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16005 tmp_addflag=' -i_dynamic' ;; 16006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16007 tmp_addflag=' -i_dynamic -nofor_main' ;; 16008 ifc* | ifort*) # Intel Fortran compiler 16009 tmp_addflag=' -nofor_main' ;; 16010 lf95*) # Lahey Fortran 8.1 16011 whole_archive_flag_spec= 16012 tmp_sharedflag='--shared' ;; 16013 nagfor*) # NAGFOR 5.3 16014 tmp_sharedflag='-Wl,-shared' ;; 16015 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16016 tmp_sharedflag='-qmkshrobj' 16017 tmp_addflag= ;; 16018 nvcc*) # Cuda Compiler Driver 2.2 16019 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' 16020 compiler_needs_object=yes 16021 ;; 16022 esac 16023 case `$CC -V 2>&1 | sed 5q` in 16024 *Sun\ C*) # Sun C 5.9 16025 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' 16026 compiler_needs_object=yes 16027 tmp_sharedflag='-G' ;; 16028 *Sun\ F*) # Sun Fortran 8.3 16029 tmp_sharedflag='-G' ;; 16030 esac 16031 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16032 16033 if test yes = "$supports_anon_versioning"; then 16034 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16036 echo "local: *; };" >> $output_objdir/$libname.ver~ 16037 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16038 fi 16039 16040 case $cc_basename in 16041 tcc*) 16042 export_dynamic_flag_spec='-rdynamic' 16043 ;; 16044 xlf* | bgf* | bgxlf* | mpixlf*) 16045 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16046 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16047 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16048 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16049 if test yes = "$supports_anon_versioning"; then 16050 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16052 echo "local: *; };" >> $output_objdir/$libname.ver~ 16053 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16054 fi 16055 ;; 16056 esac 16057 else 16058 ld_shlibs=no 16059 fi 16060 ;; 16061 16062 netbsd*) 16063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16064 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16065 wlarc= 16066 else 16067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16068 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16069 fi 16070 ;; 16071 16072 solaris*) 16073 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16074 ld_shlibs=no 16075 cat <<_LT_EOF 1>&2 16076 16077*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16078*** create shared libraries on Solaris systems. Therefore, libtool 16079*** is disabling shared libraries support. We urge you to upgrade GNU 16080*** binutils to release 2.9.1 or newer. Another option is to modify 16081*** your PATH or compiler configuration so that the native linker is 16082*** used, and then restart. 16083 16084_LT_EOF 16085 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16088 else 16089 ld_shlibs=no 16090 fi 16091 ;; 16092 16093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16094 case `$LD -v 2>&1` in 16095 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16096 ld_shlibs=no 16097 cat <<_LT_EOF 1>&2 16098 16099*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16100*** reliably create shared libraries on SCO systems. Therefore, libtool 16101*** is disabling shared libraries support. We urge you to upgrade GNU 16102*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16103*** your PATH or compiler configuration so that the native linker is 16104*** used, and then restart. 16105 16106_LT_EOF 16107 ;; 16108 *) 16109 # For security reasons, it is highly recommended that you always 16110 # use absolute paths for naming shared libraries, and exclude the 16111 # DT_RUNPATH tag from executables and libraries. But doing so 16112 # requires that you compile everything twice, which is a pain. 16113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16117 else 16118 ld_shlibs=no 16119 fi 16120 ;; 16121 esac 16122 ;; 16123 16124 sunos4*) 16125 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16126 wlarc= 16127 hardcode_direct=yes 16128 hardcode_shlibpath_var=no 16129 ;; 16130 16131 *) 16132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16135 else 16136 ld_shlibs=no 16137 fi 16138 ;; 16139 esac 16140 16141 if test no = "$ld_shlibs"; then 16142 runpath_var= 16143 hardcode_libdir_flag_spec= 16144 export_dynamic_flag_spec= 16145 whole_archive_flag_spec= 16146 fi 16147 else 16148 # PORTME fill in a description of your system's linker (not GNU ld) 16149 case $host_os in 16150 aix3*) 16151 allow_undefined_flag=unsupported 16152 always_export_symbols=yes 16153 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' 16154 # Note: this linker hardcodes the directories in LIBPATH if there 16155 # are no directories specified by -L. 16156 hardcode_minus_L=yes 16157 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16158 # Neither direct hardcoding nor static linking is supported with a 16159 # broken collect2. 16160 hardcode_direct=unsupported 16161 fi 16162 ;; 16163 16164 aix[4-9]*) 16165 if test ia64 = "$host_cpu"; then 16166 # On IA64, the linker does run time linking by default, so we don't 16167 # have to do anything special. 16168 aix_use_runtimelinking=no 16169 exp_sym_flag='-Bexport' 16170 no_entry_flag= 16171 else 16172 # If we're using GNU nm, then we don't want the "-C" option. 16173 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16174 # Without the "-l" option, or with the "-B" option, AIX nm treats 16175 # weak defined symbols like other global defined symbols, whereas 16176 # GNU nm marks them as "W". 16177 # While the 'weak' keyword is ignored in the Export File, we need 16178 # it in the Import File for the 'aix-soname' feature, so we have 16179 # to replace the "-B" option with "-P" for AIX nm. 16180 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16181 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' 16182 else 16183 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' 16184 fi 16185 aix_use_runtimelinking=no 16186 16187 # Test if we are trying to use run time linking or normal 16188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16189 # have runtime linking enabled, and use it for executables. 16190 # For shared libraries, we enable/disable runtime linking 16191 # depending on the kind of the shared library created - 16192 # when "with_aix_soname,aix_use_runtimelinking" is: 16193 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16194 # "aix,yes" lib.so shared, rtl:yes, for executables 16195 # lib.a static archive 16196 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16197 # lib.a(lib.so.V) shared, rtl:no, for executables 16198 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16199 # lib.a(lib.so.V) shared, rtl:no 16200 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16201 # lib.a static archive 16202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16203 for ld_flag in $LDFLAGS; do 16204 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16205 aix_use_runtimelinking=yes 16206 break 16207 fi 16208 done 16209 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16210 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16211 # so we don't have lib.a shared libs to link our executables. 16212 # We have to force runtime linking in this case. 16213 aix_use_runtimelinking=yes 16214 LDFLAGS="$LDFLAGS -Wl,-brtl" 16215 fi 16216 ;; 16217 esac 16218 16219 exp_sym_flag='-bexport' 16220 no_entry_flag='-bnoentry' 16221 fi 16222 16223 # When large executables or shared objects are built, AIX ld can 16224 # have problems creating the table of contents. If linking a library 16225 # or program results in "error TOC overflow" add -mminimal-toc to 16226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16228 16229 archive_cmds='' 16230 hardcode_direct=yes 16231 hardcode_direct_absolute=yes 16232 hardcode_libdir_separator=':' 16233 link_all_deplibs=yes 16234 file_list_spec='$wl-f,' 16235 case $with_aix_soname,$aix_use_runtimelinking in 16236 aix,*) ;; # traditional, no import file 16237 svr4,* | *,yes) # use import file 16238 # The Import File defines what to hardcode. 16239 hardcode_direct=no 16240 hardcode_direct_absolute=no 16241 ;; 16242 esac 16243 16244 if test yes = "$GCC"; then 16245 case $host_os in aix4.[012]|aix4.[012].*) 16246 # We only want to do this on AIX 4.2 and lower, the check 16247 # below for broken collect2 doesn't work under 4.3+ 16248 collect2name=`$CC -print-prog-name=collect2` 16249 if test -f "$collect2name" && 16250 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16251 then 16252 # We have reworked collect2 16253 : 16254 else 16255 # We have old collect2 16256 hardcode_direct=unsupported 16257 # It fails to find uninstalled libraries when the uninstalled 16258 # path is not listed in the libpath. Setting hardcode_minus_L 16259 # to unsupported forces relinking 16260 hardcode_minus_L=yes 16261 hardcode_libdir_flag_spec='-L$libdir' 16262 hardcode_libdir_separator= 16263 fi 16264 ;; 16265 esac 16266 shared_flag='-shared' 16267 if test yes = "$aix_use_runtimelinking"; then 16268 shared_flag="$shared_flag "'$wl-G' 16269 fi 16270 # Need to ensure runtime linking is disabled for the traditional 16271 # shared library, or the linker may eventually find shared libraries 16272 # /with/ Import File - we do not want to mix them. 16273 shared_flag_aix='-shared' 16274 shared_flag_svr4='-shared $wl-G' 16275 else 16276 # not using gcc 16277 if test ia64 = "$host_cpu"; then 16278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16279 # chokes on -Wl,-G. The following line is correct: 16280 shared_flag='-G' 16281 else 16282 if test yes = "$aix_use_runtimelinking"; then 16283 shared_flag='$wl-G' 16284 else 16285 shared_flag='$wl-bM:SRE' 16286 fi 16287 shared_flag_aix='$wl-bM:SRE' 16288 shared_flag_svr4='$wl-G' 16289 fi 16290 fi 16291 16292 export_dynamic_flag_spec='$wl-bexpall' 16293 # It seems that -bexpall does not export symbols beginning with 16294 # underscore (_), so it is better to generate a list of symbols to export. 16295 always_export_symbols=yes 16296 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16297 # Warning - without using the other runtime loading flags (-brtl), 16298 # -berok will link without error, but may produce a broken library. 16299 allow_undefined_flag='-berok' 16300 # Determine the default libpath from the value encoded in an 16301 # empty executable. 16302 if test set = "${lt_cv_aix_libpath+set}"; then 16303 aix_libpath=$lt_cv_aix_libpath 16304else 16305 if ${lt_cv_aix_libpath_+:} false; then : 16306 $as_echo_n "(cached) " >&6 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310 16311int 16312main () 16313{ 16314 16315 ; 16316 return 0; 16317} 16318_ACEOF 16319if ac_fn_c_try_link "$LINENO"; then : 16320 16321 lt_aix_libpath_sed=' 16322 /Import File Strings/,/^$/ { 16323 /^0/ { 16324 s/^0 *\([^ ]*\) *$/\1/ 16325 p 16326 } 16327 }' 16328 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16329 # Check for a 64-bit object if we didn't find anything. 16330 if test -z "$lt_cv_aix_libpath_"; then 16331 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16332 fi 16333fi 16334rm -f core conftest.err conftest.$ac_objext \ 16335 conftest$ac_exeext conftest.$ac_ext 16336 if test -z "$lt_cv_aix_libpath_"; then 16337 lt_cv_aix_libpath_=/usr/lib:/lib 16338 fi 16339 16340fi 16341 16342 aix_libpath=$lt_cv_aix_libpath_ 16343fi 16344 16345 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16346 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 16347 else 16348 if test ia64 = "$host_cpu"; then 16349 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16350 allow_undefined_flag="-z nodefs" 16351 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" 16352 else 16353 # Determine the default libpath from the value encoded in an 16354 # empty executable. 16355 if test set = "${lt_cv_aix_libpath+set}"; then 16356 aix_libpath=$lt_cv_aix_libpath 16357else 16358 if ${lt_cv_aix_libpath_+:} false; then : 16359 $as_echo_n "(cached) " >&6 16360else 16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363 16364int 16365main () 16366{ 16367 16368 ; 16369 return 0; 16370} 16371_ACEOF 16372if ac_fn_c_try_link "$LINENO"; then : 16373 16374 lt_aix_libpath_sed=' 16375 /Import File Strings/,/^$/ { 16376 /^0/ { 16377 s/^0 *\([^ ]*\) *$/\1/ 16378 p 16379 } 16380 }' 16381 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16382 # Check for a 64-bit object if we didn't find anything. 16383 if test -z "$lt_cv_aix_libpath_"; then 16384 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16385 fi 16386fi 16387rm -f core conftest.err conftest.$ac_objext \ 16388 conftest$ac_exeext conftest.$ac_ext 16389 if test -z "$lt_cv_aix_libpath_"; then 16390 lt_cv_aix_libpath_=/usr/lib:/lib 16391 fi 16392 16393fi 16394 16395 aix_libpath=$lt_cv_aix_libpath_ 16396fi 16397 16398 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16399 # Warning - without using the other run time loading flags, 16400 # -berok will link without error, but may produce a broken library. 16401 no_undefined_flag=' $wl-bernotok' 16402 allow_undefined_flag=' $wl-berok' 16403 if test yes = "$with_gnu_ld"; then 16404 # We only use this code for GNU lds that support --whole-archive. 16405 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16406 else 16407 # Exported symbols can be pulled into shared objects from archives 16408 whole_archive_flag_spec='$convenience' 16409 fi 16410 archive_cmds_need_lc=yes 16411 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16412 # -brtl affects multiple linker settings, -berok does not and is overridden later 16413 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16414 if test svr4 != "$with_aix_soname"; then 16415 # This is similar to how AIX traditionally builds its shared libraries. 16416 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' 16417 fi 16418 if test aix != "$with_aix_soname"; then 16419 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' 16420 else 16421 # used by -dlpreopen to get the symbols 16422 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16423 fi 16424 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16425 fi 16426 fi 16427 ;; 16428 16429 amigaos*) 16430 case $host_cpu in 16431 powerpc) 16432 # see comment about AmigaOS4 .so support 16433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16434 archive_expsym_cmds='' 16435 ;; 16436 m68k) 16437 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)' 16438 hardcode_libdir_flag_spec='-L$libdir' 16439 hardcode_minus_L=yes 16440 ;; 16441 esac 16442 ;; 16443 16444 bsdi[45]*) 16445 export_dynamic_flag_spec=-rdynamic 16446 ;; 16447 16448 cygwin* | mingw* | pw32* | cegcc*) 16449 # When not using gcc, we currently assume that we are using 16450 # Microsoft Visual C++. 16451 # hardcode_libdir_flag_spec is actually meaningless, as there is 16452 # no search path for DLLs. 16453 case $cc_basename in 16454 cl*) 16455 # Native MSVC 16456 hardcode_libdir_flag_spec=' ' 16457 allow_undefined_flag=unsupported 16458 always_export_symbols=yes 16459 file_list_spec='@' 16460 # Tell ltmain to make .lib files, not .a files. 16461 libext=lib 16462 # Tell ltmain to make .dll files, not .so files. 16463 shrext_cmds=.dll 16464 # FIXME: Setting linknames here is a bad hack. 16465 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16466 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16467 cp "$export_symbols" "$output_objdir/$soname.def"; 16468 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16469 else 16470 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16471 fi~ 16472 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16473 linknames=' 16474 # The linker will not automatically build a static lib if we build a DLL. 16475 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16476 enable_shared_with_static_runtimes=yes 16477 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16479 # Don't use ranlib 16480 old_postinstall_cmds='chmod 644 $oldlib' 16481 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16482 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16483 case $lt_outputfile in 16484 *.exe|*.EXE) ;; 16485 *) 16486 lt_outputfile=$lt_outputfile.exe 16487 lt_tool_outputfile=$lt_tool_outputfile.exe 16488 ;; 16489 esac~ 16490 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16491 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16492 $RM "$lt_outputfile.manifest"; 16493 fi' 16494 ;; 16495 *) 16496 # Assume MSVC wrapper 16497 hardcode_libdir_flag_spec=' ' 16498 allow_undefined_flag=unsupported 16499 # Tell ltmain to make .lib files, not .a files. 16500 libext=lib 16501 # Tell ltmain to make .dll files, not .so files. 16502 shrext_cmds=.dll 16503 # FIXME: Setting linknames here is a bad hack. 16504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16505 # The linker will automatically build a .lib file if we build a DLL. 16506 old_archive_from_new_cmds='true' 16507 # FIXME: Should let the user specify the lib program. 16508 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16509 enable_shared_with_static_runtimes=yes 16510 ;; 16511 esac 16512 ;; 16513 16514 darwin* | rhapsody*) 16515 16516 16517 archive_cmds_need_lc=no 16518 hardcode_direct=no 16519 hardcode_automatic=yes 16520 hardcode_shlibpath_var=unsupported 16521 if test yes = "$lt_cv_ld_force_load"; then 16522 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\"`' 16523 16524 else 16525 whole_archive_flag_spec='' 16526 fi 16527 link_all_deplibs=yes 16528 allow_undefined_flag=$_lt_dar_allow_undefined 16529 case $cc_basename in 16530 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16531 *) _lt_dar_can_shared=$GCC ;; 16532 esac 16533 if test yes = "$_lt_dar_can_shared"; then 16534 output_verbose_link_cmd=func_echo_all 16535 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16536 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16537 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" 16538 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" 16539 16540 else 16541 ld_shlibs=no 16542 fi 16543 16544 ;; 16545 16546 dgux*) 16547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16548 hardcode_libdir_flag_spec='-L$libdir' 16549 hardcode_shlibpath_var=no 16550 ;; 16551 16552 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16553 # support. Future versions do this automatically, but an explicit c++rt0.o 16554 # does not break anything, and helps significantly (at the cost of a little 16555 # extra space). 16556 freebsd2.2*) 16557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16558 hardcode_libdir_flag_spec='-R$libdir' 16559 hardcode_direct=yes 16560 hardcode_shlibpath_var=no 16561 ;; 16562 16563 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16564 freebsd2.*) 16565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16566 hardcode_direct=yes 16567 hardcode_minus_L=yes 16568 hardcode_shlibpath_var=no 16569 ;; 16570 16571 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16572 freebsd* | dragonfly*) 16573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16574 hardcode_libdir_flag_spec='-R$libdir' 16575 hardcode_direct=yes 16576 hardcode_shlibpath_var=no 16577 ;; 16578 16579 hpux9*) 16580 if test yes = "$GCC"; then 16581 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' 16582 else 16583 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' 16584 fi 16585 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16586 hardcode_libdir_separator=: 16587 hardcode_direct=yes 16588 16589 # hardcode_minus_L: Not really in the search PATH, 16590 # but as the default location of the library. 16591 hardcode_minus_L=yes 16592 export_dynamic_flag_spec='$wl-E' 16593 ;; 16594 16595 hpux10*) 16596 if test yes,no = "$GCC,$with_gnu_ld"; then 16597 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16598 else 16599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16600 fi 16601 if test no = "$with_gnu_ld"; then 16602 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16603 hardcode_libdir_separator=: 16604 hardcode_direct=yes 16605 hardcode_direct_absolute=yes 16606 export_dynamic_flag_spec='$wl-E' 16607 # hardcode_minus_L: Not really in the search PATH, 16608 # but as the default location of the library. 16609 hardcode_minus_L=yes 16610 fi 16611 ;; 16612 16613 hpux11*) 16614 if test yes,no = "$GCC,$with_gnu_ld"; then 16615 case $host_cpu in 16616 hppa*64*) 16617 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16618 ;; 16619 ia64*) 16620 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16621 ;; 16622 *) 16623 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16624 ;; 16625 esac 16626 else 16627 case $host_cpu in 16628 hppa*64*) 16629 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16630 ;; 16631 ia64*) 16632 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16633 ;; 16634 *) 16635 16636 # Older versions of the 11.00 compiler do not understand -b yet 16637 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16639$as_echo_n "checking if $CC understands -b... " >&6; } 16640if ${lt_cv_prog_compiler__b+:} false; then : 16641 $as_echo_n "(cached) " >&6 16642else 16643 lt_cv_prog_compiler__b=no 16644 save_LDFLAGS=$LDFLAGS 16645 LDFLAGS="$LDFLAGS -b" 16646 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16648 # The linker can only warn and ignore the option if not recognized 16649 # So say no if there are warnings 16650 if test -s conftest.err; then 16651 # Append any errors to the config.log. 16652 cat conftest.err 1>&5 16653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16655 if diff conftest.exp conftest.er2 >/dev/null; then 16656 lt_cv_prog_compiler__b=yes 16657 fi 16658 else 16659 lt_cv_prog_compiler__b=yes 16660 fi 16661 fi 16662 $RM -r conftest* 16663 LDFLAGS=$save_LDFLAGS 16664 16665fi 16666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16667$as_echo "$lt_cv_prog_compiler__b" >&6; } 16668 16669if test yes = "$lt_cv_prog_compiler__b"; then 16670 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16671else 16672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16673fi 16674 16675 ;; 16676 esac 16677 fi 16678 if test no = "$with_gnu_ld"; then 16679 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16680 hardcode_libdir_separator=: 16681 16682 case $host_cpu in 16683 hppa*64*|ia64*) 16684 hardcode_direct=no 16685 hardcode_shlibpath_var=no 16686 ;; 16687 *) 16688 hardcode_direct=yes 16689 hardcode_direct_absolute=yes 16690 export_dynamic_flag_spec='$wl-E' 16691 16692 # hardcode_minus_L: Not really in the search PATH, 16693 # but as the default location of the library. 16694 hardcode_minus_L=yes 16695 ;; 16696 esac 16697 fi 16698 ;; 16699 16700 irix5* | irix6* | nonstopux*) 16701 if test yes = "$GCC"; then 16702 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' 16703 # Try to use the -exported_symbol ld option, if it does not 16704 # work, assume that -exports_file does not work either and 16705 # implicitly export all symbols. 16706 # This should be the same for all languages, so no per-tag cache variable. 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16708$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16709if ${lt_cv_irix_exported_symbol+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 save_LDFLAGS=$LDFLAGS 16713 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715/* end confdefs.h. */ 16716int foo (void) { return 0; } 16717_ACEOF 16718if ac_fn_c_try_link "$LINENO"; then : 16719 lt_cv_irix_exported_symbol=yes 16720else 16721 lt_cv_irix_exported_symbol=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext \ 16724 conftest$ac_exeext conftest.$ac_ext 16725 LDFLAGS=$save_LDFLAGS 16726fi 16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16728$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16729 if test yes = "$lt_cv_irix_exported_symbol"; then 16730 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' 16731 fi 16732 else 16733 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' 16734 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' 16735 fi 16736 archive_cmds_need_lc='no' 16737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16738 hardcode_libdir_separator=: 16739 inherit_rpath=yes 16740 link_all_deplibs=yes 16741 ;; 16742 16743 linux*) 16744 case $cc_basename in 16745 tcc*) 16746 # Fabrice Bellard et al's Tiny C Compiler 16747 ld_shlibs=yes 16748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16749 ;; 16750 esac 16751 ;; 16752 16753 netbsd*) 16754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16756 else 16757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16758 fi 16759 hardcode_libdir_flag_spec='-R$libdir' 16760 hardcode_direct=yes 16761 hardcode_shlibpath_var=no 16762 ;; 16763 16764 newsos6) 16765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16766 hardcode_direct=yes 16767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16768 hardcode_libdir_separator=: 16769 hardcode_shlibpath_var=no 16770 ;; 16771 16772 *nto* | *qnx*) 16773 ;; 16774 16775 openbsd* | bitrig*) 16776 if test -f /usr/libexec/ld.so; then 16777 hardcode_direct=yes 16778 hardcode_shlibpath_var=no 16779 hardcode_direct_absolute=yes 16780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16783 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16784 export_dynamic_flag_spec='$wl-E' 16785 else 16786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16787 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16788 fi 16789 else 16790 ld_shlibs=no 16791 fi 16792 ;; 16793 16794 os2*) 16795 hardcode_libdir_flag_spec='-L$libdir' 16796 hardcode_minus_L=yes 16797 allow_undefined_flag=unsupported 16798 shrext_cmds=.dll 16799 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16802 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16805 emximp -o $lib $output_objdir/$libname.def' 16806 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16809 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16810 prefix_cmds="$SED"~ 16811 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16812 prefix_cmds="$prefix_cmds -e 1d"; 16813 fi~ 16814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16817 emximp -o $lib $output_objdir/$libname.def' 16818 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16819 enable_shared_with_static_runtimes=yes 16820 ;; 16821 16822 osf3*) 16823 if test yes = "$GCC"; then 16824 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16825 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' 16826 else 16827 allow_undefined_flag=' -expect_unresolved \*' 16828 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' 16829 fi 16830 archive_cmds_need_lc='no' 16831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16832 hardcode_libdir_separator=: 16833 ;; 16834 16835 osf4* | osf5*) # as osf3* with the addition of -msym flag 16836 if test yes = "$GCC"; then 16837 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16838 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' 16839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16840 else 16841 allow_undefined_flag=' -expect_unresolved \*' 16842 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' 16843 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~ 16844 $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' 16845 16846 # Both c and cxx compiler support -rpath directly 16847 hardcode_libdir_flag_spec='-rpath $libdir' 16848 fi 16849 archive_cmds_need_lc='no' 16850 hardcode_libdir_separator=: 16851 ;; 16852 16853 solaris*) 16854 no_undefined_flag=' -z defs' 16855 if test yes = "$GCC"; then 16856 wlarc='$wl' 16857 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16859 $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' 16860 else 16861 case `$CC -V 2>&1` in 16862 *"Compilers 5.0"*) 16863 wlarc='' 16864 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16866 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16867 ;; 16868 *) 16869 wlarc='$wl' 16870 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16872 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16873 ;; 16874 esac 16875 fi 16876 hardcode_libdir_flag_spec='-R$libdir' 16877 hardcode_shlibpath_var=no 16878 case $host_os in 16879 solaris2.[0-5] | solaris2.[0-5].*) ;; 16880 *) 16881 # The compiler driver will combine and reorder linker options, 16882 # but understands '-z linker_flag'. GCC discards it without '$wl', 16883 # but is careful enough not to reorder. 16884 # Supported since Solaris 2.6 (maybe 2.5.1?) 16885 if test yes = "$GCC"; then 16886 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16887 else 16888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16889 fi 16890 ;; 16891 esac 16892 link_all_deplibs=yes 16893 ;; 16894 16895 sunos4*) 16896 if test sequent = "$host_vendor"; then 16897 # Use $CC to link under sequent, because it throws in some extra .o 16898 # files that make .init and .fini sections work. 16899 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16900 else 16901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16902 fi 16903 hardcode_libdir_flag_spec='-L$libdir' 16904 hardcode_direct=yes 16905 hardcode_minus_L=yes 16906 hardcode_shlibpath_var=no 16907 ;; 16908 16909 sysv4) 16910 case $host_vendor in 16911 sni) 16912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16913 hardcode_direct=yes # is this really true??? 16914 ;; 16915 siemens) 16916 ## LD is ld it makes a PLAMLIB 16917 ## CC just makes a GrossModule. 16918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16919 reload_cmds='$CC -r -o $output$reload_objs' 16920 hardcode_direct=no 16921 ;; 16922 motorola) 16923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16925 ;; 16926 esac 16927 runpath_var='LD_RUN_PATH' 16928 hardcode_shlibpath_var=no 16929 ;; 16930 16931 sysv4.3*) 16932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16933 hardcode_shlibpath_var=no 16934 export_dynamic_flag_spec='-Bexport' 16935 ;; 16936 16937 sysv4*MP*) 16938 if test -d /usr/nec; then 16939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16940 hardcode_shlibpath_var=no 16941 runpath_var=LD_RUN_PATH 16942 hardcode_runpath_var=yes 16943 ld_shlibs=yes 16944 fi 16945 ;; 16946 16947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16948 no_undefined_flag='$wl-z,text' 16949 archive_cmds_need_lc=no 16950 hardcode_shlibpath_var=no 16951 runpath_var='LD_RUN_PATH' 16952 16953 if test yes = "$GCC"; then 16954 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16955 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16956 else 16957 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16958 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16959 fi 16960 ;; 16961 16962 sysv5* | sco3.2v5* | sco5v6*) 16963 # Note: We CANNOT use -z defs as we might desire, because we do not 16964 # link with -lc, and that would cause any symbols used from libc to 16965 # always be unresolved, which means just about no library would 16966 # ever link correctly. If we're not using GNU ld we use -z text 16967 # though, which does catch some bad symbols but isn't as heavy-handed 16968 # as -z defs. 16969 no_undefined_flag='$wl-z,text' 16970 allow_undefined_flag='$wl-z,nodefs' 16971 archive_cmds_need_lc=no 16972 hardcode_shlibpath_var=no 16973 hardcode_libdir_flag_spec='$wl-R,$libdir' 16974 hardcode_libdir_separator=':' 16975 link_all_deplibs=yes 16976 export_dynamic_flag_spec='$wl-Bexport' 16977 runpath_var='LD_RUN_PATH' 16978 16979 if test yes = "$GCC"; then 16980 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16981 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16982 else 16983 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16984 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16985 fi 16986 ;; 16987 16988 uts4*) 16989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16990 hardcode_libdir_flag_spec='-L$libdir' 16991 hardcode_shlibpath_var=no 16992 ;; 16993 16994 *) 16995 ld_shlibs=no 16996 ;; 16997 esac 16998 16999 if test sni = "$host_vendor"; then 17000 case $host in 17001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17002 export_dynamic_flag_spec='$wl-Blargedynsym' 17003 ;; 17004 esac 17005 fi 17006 fi 17007 17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17009$as_echo "$ld_shlibs" >&6; } 17010test no = "$ld_shlibs" && can_build_shared=no 17011 17012with_gnu_ld=$with_gnu_ld 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028# 17029# Do we need to explicitly link libc? 17030# 17031case "x$archive_cmds_need_lc" in 17032x|xyes) 17033 # Assume -lc should be added 17034 archive_cmds_need_lc=yes 17035 17036 if test yes,yes = "$GCC,$enable_shared"; then 17037 case $archive_cmds in 17038 *'~'*) 17039 # FIXME: we may have to deal with multi-command sequences. 17040 ;; 17041 '$CC '*) 17042 # Test whether the compiler implicitly links with -lc since on some 17043 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17044 # to ld, don't add -lc before -lgcc. 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17047if ${lt_cv_archive_cmds_need_lc+:} false; then : 17048 $as_echo_n "(cached) " >&6 17049else 17050 $RM conftest* 17051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17052 17053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17054 (eval $ac_compile) 2>&5 17055 ac_status=$? 17056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17057 test $ac_status = 0; } 2>conftest.err; then 17058 soname=conftest 17059 lib=conftest 17060 libobjs=conftest.$ac_objext 17061 deplibs= 17062 wl=$lt_prog_compiler_wl 17063 pic_flag=$lt_prog_compiler_pic 17064 compiler_flags=-v 17065 linker_flags=-v 17066 verstring= 17067 output_objdir=. 17068 libname=conftest 17069 lt_save_allow_undefined_flag=$allow_undefined_flag 17070 allow_undefined_flag= 17071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17072 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17073 ac_status=$? 17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17075 test $ac_status = 0; } 17076 then 17077 lt_cv_archive_cmds_need_lc=no 17078 else 17079 lt_cv_archive_cmds_need_lc=yes 17080 fi 17081 allow_undefined_flag=$lt_save_allow_undefined_flag 17082 else 17083 cat conftest.err 1>&5 17084 fi 17085 $RM conftest* 17086 17087fi 17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17089$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17090 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17091 ;; 17092 esac 17093 fi 17094 ;; 17095esac 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17249$as_echo_n "checking dynamic linker characteristics... " >&6; } 17250 17251if test yes = "$GCC"; then 17252 case $host_os in 17253 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17254 *) lt_awk_arg='/^libraries:/' ;; 17255 esac 17256 case $host_os in 17257 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17258 *) lt_sed_strip_eq='s|=/|/|g' ;; 17259 esac 17260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17261 case $lt_search_path_spec in 17262 *\;*) 17263 # if the path contains ";" then we assume it to be the separator 17264 # otherwise default to the standard path separator (i.e. ":") - it is 17265 # assumed that no part of a normal pathname contains ";" but that should 17266 # okay in the real world where ";" in dirpaths is itself problematic. 17267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17268 ;; 17269 *) 17270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17271 ;; 17272 esac 17273 # Ok, now we have the path, separated by spaces, we can step through it 17274 # and add multilib dir if necessary... 17275 lt_tmp_lt_search_path_spec= 17276 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17277 # ...but if some path component already ends with the multilib dir we assume 17278 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17279 case "$lt_multi_os_dir; $lt_search_path_spec " in 17280 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17281 lt_multi_os_dir= 17282 ;; 17283 esac 17284 for lt_sys_path in $lt_search_path_spec; do 17285 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17287 elif test -n "$lt_multi_os_dir"; then 17288 test -d "$lt_sys_path" && \ 17289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17290 fi 17291 done 17292 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17293BEGIN {RS = " "; FS = "/|\n";} { 17294 lt_foo = ""; 17295 lt_count = 0; 17296 for (lt_i = NF; lt_i > 0; lt_i--) { 17297 if ($lt_i != "" && $lt_i != ".") { 17298 if ($lt_i == "..") { 17299 lt_count++; 17300 } else { 17301 if (lt_count == 0) { 17302 lt_foo = "/" $lt_i lt_foo; 17303 } else { 17304 lt_count--; 17305 } 17306 } 17307 } 17308 } 17309 if (lt_foo != "") { lt_freq[lt_foo]++; } 17310 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17311}'` 17312 # AWK program above erroneously prepends '/' to C:/dos/paths 17313 # for these hosts. 17314 case $host_os in 17315 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17316 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17317 esac 17318 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17319else 17320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17321fi 17322library_names_spec= 17323libname_spec='lib$name' 17324soname_spec= 17325shrext_cmds=.so 17326postinstall_cmds= 17327postuninstall_cmds= 17328finish_cmds= 17329finish_eval= 17330shlibpath_var= 17331shlibpath_overrides_runpath=unknown 17332version_type=none 17333dynamic_linker="$host_os ld.so" 17334sys_lib_dlsearch_path_spec="/lib /usr/lib" 17335need_lib_prefix=unknown 17336hardcode_into_libs=no 17337 17338# when you set need_version to no, make sure it does not cause -set_version 17339# flags to be left without arguments 17340need_version=unknown 17341 17342 17343 17344case $host_os in 17345aix3*) 17346 version_type=linux # correct to gnu/linux during the next big refactor 17347 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17348 shlibpath_var=LIBPATH 17349 17350 # AIX 3 has no versioning support, so we append a major version to the name. 17351 soname_spec='$libname$release$shared_ext$major' 17352 ;; 17353 17354aix[4-9]*) 17355 version_type=linux # correct to gnu/linux during the next big refactor 17356 need_lib_prefix=no 17357 need_version=no 17358 hardcode_into_libs=yes 17359 if test ia64 = "$host_cpu"; then 17360 # AIX 5 supports IA64 17361 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17362 shlibpath_var=LD_LIBRARY_PATH 17363 else 17364 # With GCC up to 2.95.x, collect2 would create an import file 17365 # for dependence libraries. The import file would start with 17366 # the line '#! .'. This would cause the generated library to 17367 # depend on '.', always an invalid library. This was fixed in 17368 # development snapshots of GCC prior to 3.0. 17369 case $host_os in 17370 aix4 | aix4.[01] | aix4.[01].*) 17371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17372 echo ' yes ' 17373 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17374 : 17375 else 17376 can_build_shared=no 17377 fi 17378 ;; 17379 esac 17380 # Using Import Files as archive members, it is possible to support 17381 # filename-based versioning of shared library archives on AIX. While 17382 # this would work for both with and without runtime linking, it will 17383 # prevent static linking of such archives. So we do filename-based 17384 # shared library versioning with .so extension only, which is used 17385 # when both runtime linking and shared linking is enabled. 17386 # Unfortunately, runtime linking may impact performance, so we do 17387 # not want this to be the default eventually. Also, we use the 17388 # versioned .so libs for executables only if there is the -brtl 17389 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17390 # To allow for filename-based versioning support, we need to create 17391 # libNAME.so.V as an archive file, containing: 17392 # *) an Import File, referring to the versioned filename of the 17393 # archive as well as the shared archive member, telling the 17394 # bitwidth (32 or 64) of that shared object, and providing the 17395 # list of exported symbols of that shared object, eventually 17396 # decorated with the 'weak' keyword 17397 # *) the shared object with the F_LOADONLY flag set, to really avoid 17398 # it being seen by the linker. 17399 # At run time we better use the real file rather than another symlink, 17400 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17401 17402 case $with_aix_soname,$aix_use_runtimelinking in 17403 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17404 # soname into executable. Probably we can add versioning support to 17405 # collect2, so additional links can be useful in future. 17406 aix,yes) # traditional libtool 17407 dynamic_linker='AIX unversionable lib.so' 17408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17409 # instead of lib<name>.a to let people know that these are not 17410 # typical AIX shared libraries. 17411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17412 ;; 17413 aix,no) # traditional AIX only 17414 dynamic_linker='AIX lib.a(lib.so.V)' 17415 # We preserve .a as extension for shared libraries through AIX4.2 17416 # and later when we are not doing run time linking. 17417 library_names_spec='$libname$release.a $libname.a' 17418 soname_spec='$libname$release$shared_ext$major' 17419 ;; 17420 svr4,*) # full svr4 only 17421 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17422 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17423 # We do not specify a path in Import Files, so LIBPATH fires. 17424 shlibpath_overrides_runpath=yes 17425 ;; 17426 *,yes) # both, prefer svr4 17427 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17428 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17429 # unpreferred sharedlib libNAME.a needs extra handling 17430 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"' 17431 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"' 17432 # We do not specify a path in Import Files, so LIBPATH fires. 17433 shlibpath_overrides_runpath=yes 17434 ;; 17435 *,no) # both, prefer aix 17436 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17437 library_names_spec='$libname$release.a $libname.a' 17438 soname_spec='$libname$release$shared_ext$major' 17439 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17440 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)' 17441 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"' 17442 ;; 17443 esac 17444 shlibpath_var=LIBPATH 17445 fi 17446 ;; 17447 17448amigaos*) 17449 case $host_cpu in 17450 powerpc) 17451 # Since July 2007 AmigaOS4 officially supports .so libraries. 17452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17454 ;; 17455 m68k) 17456 library_names_spec='$libname.ixlibrary $libname.a' 17457 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17458 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' 17459 ;; 17460 esac 17461 ;; 17462 17463beos*) 17464 library_names_spec='$libname$shared_ext' 17465 dynamic_linker="$host_os ld.so" 17466 shlibpath_var=LIBRARY_PATH 17467 ;; 17468 17469bsdi[45]*) 17470 version_type=linux # correct to gnu/linux during the next big refactor 17471 need_version=no 17472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17473 soname_spec='$libname$release$shared_ext$major' 17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17475 shlibpath_var=LD_LIBRARY_PATH 17476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17478 # the default ld.so.conf also contains /usr/contrib/lib and 17479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17480 # libtool to hard-code these into programs 17481 ;; 17482 17483cygwin* | mingw* | pw32* | cegcc*) 17484 version_type=windows 17485 shrext_cmds=.dll 17486 need_version=no 17487 need_lib_prefix=no 17488 17489 case $GCC,$cc_basename in 17490 yes,*) 17491 # gcc 17492 library_names_spec='$libname.dll.a' 17493 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17494 postinstall_cmds='base_file=`basename \$file`~ 17495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17496 dldir=$destdir/`dirname \$dlpath`~ 17497 test -d \$dldir || mkdir -p \$dldir~ 17498 $install_prog $dir/$dlname \$dldir/$dlname~ 17499 chmod a+x \$dldir/$dlname~ 17500 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17501 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17502 fi' 17503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17504 dlpath=$dir/\$dldll~ 17505 $RM \$dlpath' 17506 shlibpath_overrides_runpath=yes 17507 17508 case $host_os in 17509 cygwin*) 17510 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17511 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17512 17513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17514 ;; 17515 mingw* | cegcc*) 17516 # MinGW DLLs use traditional 'lib' prefix 17517 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17518 ;; 17519 pw32*) 17520 # pw32 DLLs use 'pw' prefix rather than 'lib' 17521 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17522 ;; 17523 esac 17524 dynamic_linker='Win32 ld.exe' 17525 ;; 17526 17527 *,cl*) 17528 # Native MSVC 17529 libname_spec='$name' 17530 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17531 library_names_spec='$libname.dll.lib' 17532 17533 case $build_os in 17534 mingw*) 17535 sys_lib_search_path_spec= 17536 lt_save_ifs=$IFS 17537 IFS=';' 17538 for lt_path in $LIB 17539 do 17540 IFS=$lt_save_ifs 17541 # Let DOS variable expansion print the short 8.3 style file name. 17542 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17543 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17544 done 17545 IFS=$lt_save_ifs 17546 # Convert to MSYS style. 17547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17548 ;; 17549 cygwin*) 17550 # Convert to unix form, then to dos form, then back to unix form 17551 # but this time dos style (no spaces!) so that the unix form looks 17552 # like /cygdrive/c/PROGRA~1:/cygdr... 17553 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17554 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17555 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17556 ;; 17557 *) 17558 sys_lib_search_path_spec=$LIB 17559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17560 # It is most probably a Windows format PATH. 17561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17562 else 17563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17564 fi 17565 # FIXME: find the short name or the path components, as spaces are 17566 # common. (e.g. "Program Files" -> "PROGRA~1") 17567 ;; 17568 esac 17569 17570 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17571 postinstall_cmds='base_file=`basename \$file`~ 17572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17573 dldir=$destdir/`dirname \$dlpath`~ 17574 test -d \$dldir || mkdir -p \$dldir~ 17575 $install_prog $dir/$dlname \$dldir/$dlname' 17576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17577 dlpath=$dir/\$dldll~ 17578 $RM \$dlpath' 17579 shlibpath_overrides_runpath=yes 17580 dynamic_linker='Win32 link.exe' 17581 ;; 17582 17583 *) 17584 # Assume MSVC wrapper 17585 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17586 dynamic_linker='Win32 ld.exe' 17587 ;; 17588 esac 17589 # FIXME: first we should search . and the directory the executable is in 17590 shlibpath_var=PATH 17591 ;; 17592 17593darwin* | rhapsody*) 17594 dynamic_linker="$host_os dyld" 17595 version_type=darwin 17596 need_lib_prefix=no 17597 need_version=no 17598 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17599 soname_spec='$libname$release$major$shared_ext' 17600 shlibpath_overrides_runpath=yes 17601 shlibpath_var=DYLD_LIBRARY_PATH 17602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17603 17604 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17605 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17606 ;; 17607 17608dgux*) 17609 version_type=linux # correct to gnu/linux during the next big refactor 17610 need_lib_prefix=no 17611 need_version=no 17612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17613 soname_spec='$libname$release$shared_ext$major' 17614 shlibpath_var=LD_LIBRARY_PATH 17615 ;; 17616 17617freebsd* | dragonfly*) 17618 # DragonFly does not have aout. When/if they implement a new 17619 # versioning mechanism, adjust this. 17620 if test -x /usr/bin/objformat; then 17621 objformat=`/usr/bin/objformat` 17622 else 17623 case $host_os in 17624 freebsd[23].*) objformat=aout ;; 17625 *) objformat=elf ;; 17626 esac 17627 fi 17628 version_type=freebsd-$objformat 17629 case $version_type in 17630 freebsd-elf*) 17631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17632 soname_spec='$libname$release$shared_ext$major' 17633 need_version=no 17634 need_lib_prefix=no 17635 ;; 17636 freebsd-*) 17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17638 need_version=yes 17639 ;; 17640 esac 17641 shlibpath_var=LD_LIBRARY_PATH 17642 case $host_os in 17643 freebsd2.*) 17644 shlibpath_overrides_runpath=yes 17645 ;; 17646 freebsd3.[01]* | freebsdelf3.[01]*) 17647 shlibpath_overrides_runpath=yes 17648 hardcode_into_libs=yes 17649 ;; 17650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17652 shlibpath_overrides_runpath=no 17653 hardcode_into_libs=yes 17654 ;; 17655 *) # from 4.6 on, and DragonFly 17656 shlibpath_overrides_runpath=yes 17657 hardcode_into_libs=yes 17658 ;; 17659 esac 17660 ;; 17661 17662haiku*) 17663 version_type=linux # correct to gnu/linux during the next big refactor 17664 need_lib_prefix=no 17665 need_version=no 17666 dynamic_linker="$host_os runtime_loader" 17667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17668 soname_spec='$libname$release$shared_ext$major' 17669 shlibpath_var=LIBRARY_PATH 17670 shlibpath_overrides_runpath=no 17671 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17672 hardcode_into_libs=yes 17673 ;; 17674 17675hpux9* | hpux10* | hpux11*) 17676 # Give a soname corresponding to the major version so that dld.sl refuses to 17677 # link against other versions. 17678 version_type=sunos 17679 need_lib_prefix=no 17680 need_version=no 17681 case $host_cpu in 17682 ia64*) 17683 shrext_cmds='.so' 17684 hardcode_into_libs=yes 17685 dynamic_linker="$host_os dld.so" 17686 shlibpath_var=LD_LIBRARY_PATH 17687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17689 soname_spec='$libname$release$shared_ext$major' 17690 if test 32 = "$HPUX_IA64_MODE"; then 17691 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17692 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17693 else 17694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17695 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17696 fi 17697 ;; 17698 hppa*64*) 17699 shrext_cmds='.sl' 17700 hardcode_into_libs=yes 17701 dynamic_linker="$host_os dld.sl" 17702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17705 soname_spec='$libname$release$shared_ext$major' 17706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17708 ;; 17709 *) 17710 shrext_cmds='.sl' 17711 dynamic_linker="$host_os dld.sl" 17712 shlibpath_var=SHLIB_PATH 17713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17715 soname_spec='$libname$release$shared_ext$major' 17716 ;; 17717 esac 17718 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17719 postinstall_cmds='chmod 555 $lib' 17720 # or fails outright, so override atomically: 17721 install_override_mode=555 17722 ;; 17723 17724interix[3-9]*) 17725 version_type=linux # correct to gnu/linux during the next big refactor 17726 need_lib_prefix=no 17727 need_version=no 17728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17729 soname_spec='$libname$release$shared_ext$major' 17730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17731 shlibpath_var=LD_LIBRARY_PATH 17732 shlibpath_overrides_runpath=no 17733 hardcode_into_libs=yes 17734 ;; 17735 17736irix5* | irix6* | nonstopux*) 17737 case $host_os in 17738 nonstopux*) version_type=nonstopux ;; 17739 *) 17740 if test yes = "$lt_cv_prog_gnu_ld"; then 17741 version_type=linux # correct to gnu/linux during the next big refactor 17742 else 17743 version_type=irix 17744 fi ;; 17745 esac 17746 need_lib_prefix=no 17747 need_version=no 17748 soname_spec='$libname$release$shared_ext$major' 17749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17750 case $host_os in 17751 irix5* | nonstopux*) 17752 libsuff= shlibsuff= 17753 ;; 17754 *) 17755 case $LD in # libtool.m4 will add one of these switches to LD 17756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17757 libsuff= shlibsuff= libmagic=32-bit;; 17758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17759 libsuff=32 shlibsuff=N32 libmagic=N32;; 17760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17761 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17762 *) libsuff= shlibsuff= libmagic=never-match;; 17763 esac 17764 ;; 17765 esac 17766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17767 shlibpath_overrides_runpath=no 17768 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17769 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17770 hardcode_into_libs=yes 17771 ;; 17772 17773# No shared lib support for Linux oldld, aout, or coff. 17774linux*oldld* | linux*aout* | linux*coff*) 17775 dynamic_linker=no 17776 ;; 17777 17778linux*android*) 17779 version_type=none # Android doesn't support versioned libraries. 17780 need_lib_prefix=no 17781 need_version=no 17782 library_names_spec='$libname$release$shared_ext' 17783 soname_spec='$libname$release$shared_ext' 17784 finish_cmds= 17785 shlibpath_var=LD_LIBRARY_PATH 17786 shlibpath_overrides_runpath=yes 17787 17788 # This implies no fast_install, which is unacceptable. 17789 # Some rework will be needed to allow for fast_install 17790 # before this can be enabled. 17791 hardcode_into_libs=yes 17792 17793 dynamic_linker='Android linker' 17794 # Don't embed -rpath directories since the linker doesn't support them. 17795 hardcode_libdir_flag_spec='-L$libdir' 17796 ;; 17797 17798# This must be glibc/ELF. 17799linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17800 version_type=linux # correct to gnu/linux during the next big refactor 17801 need_lib_prefix=no 17802 need_version=no 17803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17804 soname_spec='$libname$release$shared_ext$major' 17805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17806 shlibpath_var=LD_LIBRARY_PATH 17807 shlibpath_overrides_runpath=no 17808 17809 # Some binutils ld are patched to set DT_RUNPATH 17810 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 lt_cv_shlibpath_overrides_runpath=no 17814 save_LDFLAGS=$LDFLAGS 17815 save_libdir=$libdir 17816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17819/* end confdefs.h. */ 17820 17821int 17822main () 17823{ 17824 17825 ; 17826 return 0; 17827} 17828_ACEOF 17829if ac_fn_c_try_link "$LINENO"; then : 17830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17831 lt_cv_shlibpath_overrides_runpath=yes 17832fi 17833fi 17834rm -f core conftest.err conftest.$ac_objext \ 17835 conftest$ac_exeext conftest.$ac_ext 17836 LDFLAGS=$save_LDFLAGS 17837 libdir=$save_libdir 17838 17839fi 17840 17841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17842 17843 # This implies no fast_install, which is unacceptable. 17844 # Some rework will be needed to allow for fast_install 17845 # before this can be enabled. 17846 hardcode_into_libs=yes 17847 17848 # Add ABI-specific directories to the system library path. 17849 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17850 17851 # Ideally, we could use ldconfig to report *all* directores which are 17852 # searched for libraries, however this is still not possible. Aside from not 17853 # being certain /sbin/ldconfig is available, command 17854 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17855 # even though it is searched at run-time. Try to do the best guess by 17856 # appending ld.so.conf contents (and includes) to the search path. 17857 if test -f /etc/ld.so.conf; then 17858 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' ' '` 17859 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17860 fi 17861 17862 # We used to test for /lib/ld.so.1 and disable shared libraries on 17863 # powerpc, because MkLinux only supported shared libraries with the 17864 # GNU dynamic linker. Since this was broken with cross compilers, 17865 # most powerpc-linux boxes support dynamic linking these days and 17866 # people can always --disable-shared, the test was removed, and we 17867 # assume the GNU/Linux dynamic linker is in use. 17868 dynamic_linker='GNU/Linux ld.so' 17869 ;; 17870 17871netbsd*) 17872 version_type=sunos 17873 need_lib_prefix=no 17874 need_version=no 17875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17878 dynamic_linker='NetBSD (a.out) ld.so' 17879 else 17880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17881 soname_spec='$libname$release$shared_ext$major' 17882 dynamic_linker='NetBSD ld.elf_so' 17883 fi 17884 shlibpath_var=LD_LIBRARY_PATH 17885 shlibpath_overrides_runpath=yes 17886 hardcode_into_libs=yes 17887 ;; 17888 17889newsos6) 17890 version_type=linux # correct to gnu/linux during the next big refactor 17891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17892 shlibpath_var=LD_LIBRARY_PATH 17893 shlibpath_overrides_runpath=yes 17894 ;; 17895 17896*nto* | *qnx*) 17897 version_type=qnx 17898 need_lib_prefix=no 17899 need_version=no 17900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17901 soname_spec='$libname$release$shared_ext$major' 17902 shlibpath_var=LD_LIBRARY_PATH 17903 shlibpath_overrides_runpath=no 17904 hardcode_into_libs=yes 17905 dynamic_linker='ldqnx.so' 17906 ;; 17907 17908openbsd* | bitrig*) 17909 version_type=sunos 17910 sys_lib_dlsearch_path_spec=/usr/lib 17911 need_lib_prefix=no 17912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17913 need_version=no 17914 else 17915 need_version=yes 17916 fi 17917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17919 shlibpath_var=LD_LIBRARY_PATH 17920 shlibpath_overrides_runpath=yes 17921 ;; 17922 17923os2*) 17924 libname_spec='$name' 17925 version_type=windows 17926 shrext_cmds=.dll 17927 need_version=no 17928 need_lib_prefix=no 17929 # OS/2 can only load a DLL with a base name of 8 characters or less. 17930 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17931 v=$($ECHO $release$versuffix | tr -d .-); 17932 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17933 $ECHO $n$v`$shared_ext' 17934 library_names_spec='${libname}_dll.$libext' 17935 dynamic_linker='OS/2 ld.exe' 17936 shlibpath_var=BEGINLIBPATH 17937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17939 postinstall_cmds='base_file=`basename \$file`~ 17940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17941 dldir=$destdir/`dirname \$dlpath`~ 17942 test -d \$dldir || mkdir -p \$dldir~ 17943 $install_prog $dir/$dlname \$dldir/$dlname~ 17944 chmod a+x \$dldir/$dlname~ 17945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17947 fi' 17948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17949 dlpath=$dir/\$dldll~ 17950 $RM \$dlpath' 17951 ;; 17952 17953osf3* | osf4* | osf5*) 17954 version_type=osf 17955 need_lib_prefix=no 17956 need_version=no 17957 soname_spec='$libname$release$shared_ext$major' 17958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17959 shlibpath_var=LD_LIBRARY_PATH 17960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17962 ;; 17963 17964rdos*) 17965 dynamic_linker=no 17966 ;; 17967 17968solaris*) 17969 version_type=linux # correct to gnu/linux during the next big refactor 17970 need_lib_prefix=no 17971 need_version=no 17972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17973 soname_spec='$libname$release$shared_ext$major' 17974 shlibpath_var=LD_LIBRARY_PATH 17975 shlibpath_overrides_runpath=yes 17976 hardcode_into_libs=yes 17977 # ldd complains unless libraries are executable 17978 postinstall_cmds='chmod +x $lib' 17979 ;; 17980 17981sunos4*) 17982 version_type=sunos 17983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17985 shlibpath_var=LD_LIBRARY_PATH 17986 shlibpath_overrides_runpath=yes 17987 if test yes = "$with_gnu_ld"; then 17988 need_lib_prefix=no 17989 fi 17990 need_version=yes 17991 ;; 17992 17993sysv4 | sysv4.3*) 17994 version_type=linux # correct to gnu/linux during the next big refactor 17995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17996 soname_spec='$libname$release$shared_ext$major' 17997 shlibpath_var=LD_LIBRARY_PATH 17998 case $host_vendor in 17999 sni) 18000 shlibpath_overrides_runpath=no 18001 need_lib_prefix=no 18002 runpath_var=LD_RUN_PATH 18003 ;; 18004 siemens) 18005 need_lib_prefix=no 18006 ;; 18007 motorola) 18008 need_lib_prefix=no 18009 need_version=no 18010 shlibpath_overrides_runpath=no 18011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18012 ;; 18013 esac 18014 ;; 18015 18016sysv4*MP*) 18017 if test -d /usr/nec; then 18018 version_type=linux # correct to gnu/linux during the next big refactor 18019 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18020 soname_spec='$libname$shared_ext.$major' 18021 shlibpath_var=LD_LIBRARY_PATH 18022 fi 18023 ;; 18024 18025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18026 version_type=sco 18027 need_lib_prefix=no 18028 need_version=no 18029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18030 soname_spec='$libname$release$shared_ext$major' 18031 shlibpath_var=LD_LIBRARY_PATH 18032 shlibpath_overrides_runpath=yes 18033 hardcode_into_libs=yes 18034 if test yes = "$with_gnu_ld"; then 18035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18036 else 18037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18038 case $host_os in 18039 sco3.2v5*) 18040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18041 ;; 18042 esac 18043 fi 18044 sys_lib_dlsearch_path_spec='/usr/lib' 18045 ;; 18046 18047tpf*) 18048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18049 version_type=linux # correct to gnu/linux during the next big refactor 18050 need_lib_prefix=no 18051 need_version=no 18052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18053 shlibpath_var=LD_LIBRARY_PATH 18054 shlibpath_overrides_runpath=no 18055 hardcode_into_libs=yes 18056 ;; 18057 18058uts4*) 18059 version_type=linux # correct to gnu/linux during the next big refactor 18060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18061 soname_spec='$libname$release$shared_ext$major' 18062 shlibpath_var=LD_LIBRARY_PATH 18063 ;; 18064 18065*) 18066 dynamic_linker=no 18067 ;; 18068esac 18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18070$as_echo "$dynamic_linker" >&6; } 18071test no = "$dynamic_linker" && can_build_shared=no 18072 18073variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18074if test yes = "$GCC"; then 18075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18076fi 18077 18078if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18080fi 18081 18082if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18084fi 18085 18086# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18087configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18088 18089# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18090func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18091 18092# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18093configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18192$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18193hardcode_action= 18194if test -n "$hardcode_libdir_flag_spec" || 18195 test -n "$runpath_var" || 18196 test yes = "$hardcode_automatic"; then 18197 18198 # We can hardcode non-existent directories. 18199 if test no != "$hardcode_direct" && 18200 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18201 # have to relink, otherwise we might link with an installed library 18202 # when we should be linking with a yet-to-be-installed one 18203 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18204 test no != "$hardcode_minus_L"; then 18205 # Linking always hardcodes the temporary library directory. 18206 hardcode_action=relink 18207 else 18208 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18209 hardcode_action=immediate 18210 fi 18211else 18212 # We cannot hardcode anything, or else we can only hardcode existing 18213 # directories. 18214 hardcode_action=unsupported 18215fi 18216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18217$as_echo "$hardcode_action" >&6; } 18218 18219if test relink = "$hardcode_action" || 18220 test yes = "$inherit_rpath"; then 18221 # Fast installation is not supported 18222 enable_fast_install=no 18223elif test yes = "$shlibpath_overrides_runpath" || 18224 test no = "$enable_shared"; then 18225 # Fast installation is not necessary 18226 enable_fast_install=needless 18227fi 18228 18229 18230 18231 18232 18233 18234 if test yes != "$enable_dlopen"; then 18235 enable_dlopen=unknown 18236 enable_dlopen_self=unknown 18237 enable_dlopen_self_static=unknown 18238else 18239 lt_cv_dlopen=no 18240 lt_cv_dlopen_libs= 18241 18242 case $host_os in 18243 beos*) 18244 lt_cv_dlopen=load_add_on 18245 lt_cv_dlopen_libs= 18246 lt_cv_dlopen_self=yes 18247 ;; 18248 18249 mingw* | pw32* | cegcc*) 18250 lt_cv_dlopen=LoadLibrary 18251 lt_cv_dlopen_libs= 18252 ;; 18253 18254 cygwin*) 18255 lt_cv_dlopen=dlopen 18256 lt_cv_dlopen_libs= 18257 ;; 18258 18259 darwin*) 18260 # if libdl is installed we need to link against it 18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18262$as_echo_n "checking for dlopen in -ldl... " >&6; } 18263if ${ac_cv_lib_dl_dlopen+:} false; then : 18264 $as_echo_n "(cached) " >&6 18265else 18266 ac_check_lib_save_LIBS=$LIBS 18267LIBS="-ldl $LIBS" 18268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18269/* end confdefs.h. */ 18270 18271/* Override any GCC internal prototype to avoid an error. 18272 Use char because int might match the return type of a GCC 18273 builtin and then its argument prototype would still apply. */ 18274#ifdef __cplusplus 18275extern "C" 18276#endif 18277char dlopen (); 18278int 18279main () 18280{ 18281return dlopen (); 18282 ; 18283 return 0; 18284} 18285_ACEOF 18286if ac_fn_c_try_link "$LINENO"; then : 18287 ac_cv_lib_dl_dlopen=yes 18288else 18289 ac_cv_lib_dl_dlopen=no 18290fi 18291rm -f core conftest.err conftest.$ac_objext \ 18292 conftest$ac_exeext conftest.$ac_ext 18293LIBS=$ac_check_lib_save_LIBS 18294fi 18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18296$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18297if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18298 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18299else 18300 18301 lt_cv_dlopen=dyld 18302 lt_cv_dlopen_libs= 18303 lt_cv_dlopen_self=yes 18304 18305fi 18306 18307 ;; 18308 18309 tpf*) 18310 # Don't try to run any link tests for TPF. We know it's impossible 18311 # because TPF is a cross-compiler, and we know how we open DSOs. 18312 lt_cv_dlopen=dlopen 18313 lt_cv_dlopen_libs= 18314 lt_cv_dlopen_self=no 18315 ;; 18316 18317 *) 18318 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18319if test "x$ac_cv_func_shl_load" = xyes; then : 18320 lt_cv_dlopen=shl_load 18321else 18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18323$as_echo_n "checking for shl_load in -ldld... " >&6; } 18324if ${ac_cv_lib_dld_shl_load+:} false; then : 18325 $as_echo_n "(cached) " >&6 18326else 18327 ac_check_lib_save_LIBS=$LIBS 18328LIBS="-ldld $LIBS" 18329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18330/* end confdefs.h. */ 18331 18332/* Override any GCC internal prototype to avoid an error. 18333 Use char because int might match the return type of a GCC 18334 builtin and then its argument prototype would still apply. */ 18335#ifdef __cplusplus 18336extern "C" 18337#endif 18338char shl_load (); 18339int 18340main () 18341{ 18342return shl_load (); 18343 ; 18344 return 0; 18345} 18346_ACEOF 18347if ac_fn_c_try_link "$LINENO"; then : 18348 ac_cv_lib_dld_shl_load=yes 18349else 18350 ac_cv_lib_dld_shl_load=no 18351fi 18352rm -f core conftest.err conftest.$ac_objext \ 18353 conftest$ac_exeext conftest.$ac_ext 18354LIBS=$ac_check_lib_save_LIBS 18355fi 18356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18357$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18358if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18359 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18360else 18361 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18362if test "x$ac_cv_func_dlopen" = xyes; then : 18363 lt_cv_dlopen=dlopen 18364else 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18366$as_echo_n "checking for dlopen in -ldl... " >&6; } 18367if ${ac_cv_lib_dl_dlopen+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369else 18370 ac_check_lib_save_LIBS=$LIBS 18371LIBS="-ldl $LIBS" 18372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18373/* end confdefs.h. */ 18374 18375/* Override any GCC internal prototype to avoid an error. 18376 Use char because int might match the return type of a GCC 18377 builtin and then its argument prototype would still apply. */ 18378#ifdef __cplusplus 18379extern "C" 18380#endif 18381char dlopen (); 18382int 18383main () 18384{ 18385return dlopen (); 18386 ; 18387 return 0; 18388} 18389_ACEOF 18390if ac_fn_c_try_link "$LINENO"; then : 18391 ac_cv_lib_dl_dlopen=yes 18392else 18393 ac_cv_lib_dl_dlopen=no 18394fi 18395rm -f core conftest.err conftest.$ac_objext \ 18396 conftest$ac_exeext conftest.$ac_ext 18397LIBS=$ac_check_lib_save_LIBS 18398fi 18399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18400$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18401if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18402 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18403else 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18405$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18406if ${ac_cv_lib_svld_dlopen+:} false; then : 18407 $as_echo_n "(cached) " >&6 18408else 18409 ac_check_lib_save_LIBS=$LIBS 18410LIBS="-lsvld $LIBS" 18411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18412/* end confdefs.h. */ 18413 18414/* Override any GCC internal prototype to avoid an error. 18415 Use char because int might match the return type of a GCC 18416 builtin and then its argument prototype would still apply. */ 18417#ifdef __cplusplus 18418extern "C" 18419#endif 18420char dlopen (); 18421int 18422main () 18423{ 18424return dlopen (); 18425 ; 18426 return 0; 18427} 18428_ACEOF 18429if ac_fn_c_try_link "$LINENO"; then : 18430 ac_cv_lib_svld_dlopen=yes 18431else 18432 ac_cv_lib_svld_dlopen=no 18433fi 18434rm -f core conftest.err conftest.$ac_objext \ 18435 conftest$ac_exeext conftest.$ac_ext 18436LIBS=$ac_check_lib_save_LIBS 18437fi 18438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18439$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18440if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18441 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18442else 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18444$as_echo_n "checking for dld_link in -ldld... " >&6; } 18445if ${ac_cv_lib_dld_dld_link+:} false; then : 18446 $as_echo_n "(cached) " >&6 18447else 18448 ac_check_lib_save_LIBS=$LIBS 18449LIBS="-ldld $LIBS" 18450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18451/* end confdefs.h. */ 18452 18453/* Override any GCC internal prototype to avoid an error. 18454 Use char because int might match the return type of a GCC 18455 builtin and then its argument prototype would still apply. */ 18456#ifdef __cplusplus 18457extern "C" 18458#endif 18459char dld_link (); 18460int 18461main () 18462{ 18463return dld_link (); 18464 ; 18465 return 0; 18466} 18467_ACEOF 18468if ac_fn_c_try_link "$LINENO"; then : 18469 ac_cv_lib_dld_dld_link=yes 18470else 18471 ac_cv_lib_dld_dld_link=no 18472fi 18473rm -f core conftest.err conftest.$ac_objext \ 18474 conftest$ac_exeext conftest.$ac_ext 18475LIBS=$ac_check_lib_save_LIBS 18476fi 18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18478$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18479if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18480 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18481fi 18482 18483 18484fi 18485 18486 18487fi 18488 18489 18490fi 18491 18492 18493fi 18494 18495 18496fi 18497 18498 ;; 18499 esac 18500 18501 if test no = "$lt_cv_dlopen"; then 18502 enable_dlopen=no 18503 else 18504 enable_dlopen=yes 18505 fi 18506 18507 case $lt_cv_dlopen in 18508 dlopen) 18509 save_CPPFLAGS=$CPPFLAGS 18510 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18511 18512 save_LDFLAGS=$LDFLAGS 18513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18514 18515 save_LIBS=$LIBS 18516 LIBS="$lt_cv_dlopen_libs $LIBS" 18517 18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18519$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18520if ${lt_cv_dlopen_self+:} false; then : 18521 $as_echo_n "(cached) " >&6 18522else 18523 if test yes = "$cross_compiling"; then : 18524 lt_cv_dlopen_self=cross 18525else 18526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18527 lt_status=$lt_dlunknown 18528 cat > conftest.$ac_ext <<_LT_EOF 18529#line $LINENO "configure" 18530#include "confdefs.h" 18531 18532#if HAVE_DLFCN_H 18533#include <dlfcn.h> 18534#endif 18535 18536#include <stdio.h> 18537 18538#ifdef RTLD_GLOBAL 18539# define LT_DLGLOBAL RTLD_GLOBAL 18540#else 18541# ifdef DL_GLOBAL 18542# define LT_DLGLOBAL DL_GLOBAL 18543# else 18544# define LT_DLGLOBAL 0 18545# endif 18546#endif 18547 18548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18549 find out it does not work in some platform. */ 18550#ifndef LT_DLLAZY_OR_NOW 18551# ifdef RTLD_LAZY 18552# define LT_DLLAZY_OR_NOW RTLD_LAZY 18553# else 18554# ifdef DL_LAZY 18555# define LT_DLLAZY_OR_NOW DL_LAZY 18556# else 18557# ifdef RTLD_NOW 18558# define LT_DLLAZY_OR_NOW RTLD_NOW 18559# else 18560# ifdef DL_NOW 18561# define LT_DLLAZY_OR_NOW DL_NOW 18562# else 18563# define LT_DLLAZY_OR_NOW 0 18564# endif 18565# endif 18566# endif 18567# endif 18568#endif 18569 18570/* When -fvisibility=hidden is used, assume the code has been annotated 18571 correspondingly for the symbols needed. */ 18572#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18573int fnord () __attribute__((visibility("default"))); 18574#endif 18575 18576int fnord () { return 42; } 18577int main () 18578{ 18579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18580 int status = $lt_dlunknown; 18581 18582 if (self) 18583 { 18584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18585 else 18586 { 18587 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18588 else puts (dlerror ()); 18589 } 18590 /* dlclose (self); */ 18591 } 18592 else 18593 puts (dlerror ()); 18594 18595 return status; 18596} 18597_LT_EOF 18598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18599 (eval $ac_link) 2>&5 18600 ac_status=$? 18601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18602 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18603 (./conftest; exit; ) >&5 2>/dev/null 18604 lt_status=$? 18605 case x$lt_status in 18606 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18607 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18608 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18609 esac 18610 else : 18611 # compilation failed 18612 lt_cv_dlopen_self=no 18613 fi 18614fi 18615rm -fr conftest* 18616 18617 18618fi 18619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18620$as_echo "$lt_cv_dlopen_self" >&6; } 18621 18622 if test yes = "$lt_cv_dlopen_self"; then 18623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18625$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18626if ${lt_cv_dlopen_self_static+:} false; then : 18627 $as_echo_n "(cached) " >&6 18628else 18629 if test yes = "$cross_compiling"; then : 18630 lt_cv_dlopen_self_static=cross 18631else 18632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18633 lt_status=$lt_dlunknown 18634 cat > conftest.$ac_ext <<_LT_EOF 18635#line $LINENO "configure" 18636#include "confdefs.h" 18637 18638#if HAVE_DLFCN_H 18639#include <dlfcn.h> 18640#endif 18641 18642#include <stdio.h> 18643 18644#ifdef RTLD_GLOBAL 18645# define LT_DLGLOBAL RTLD_GLOBAL 18646#else 18647# ifdef DL_GLOBAL 18648# define LT_DLGLOBAL DL_GLOBAL 18649# else 18650# define LT_DLGLOBAL 0 18651# endif 18652#endif 18653 18654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18655 find out it does not work in some platform. */ 18656#ifndef LT_DLLAZY_OR_NOW 18657# ifdef RTLD_LAZY 18658# define LT_DLLAZY_OR_NOW RTLD_LAZY 18659# else 18660# ifdef DL_LAZY 18661# define LT_DLLAZY_OR_NOW DL_LAZY 18662# else 18663# ifdef RTLD_NOW 18664# define LT_DLLAZY_OR_NOW RTLD_NOW 18665# else 18666# ifdef DL_NOW 18667# define LT_DLLAZY_OR_NOW DL_NOW 18668# else 18669# define LT_DLLAZY_OR_NOW 0 18670# endif 18671# endif 18672# endif 18673# endif 18674#endif 18675 18676/* When -fvisibility=hidden is used, assume the code has been annotated 18677 correspondingly for the symbols needed. */ 18678#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18679int fnord () __attribute__((visibility("default"))); 18680#endif 18681 18682int fnord () { return 42; } 18683int main () 18684{ 18685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18686 int status = $lt_dlunknown; 18687 18688 if (self) 18689 { 18690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18691 else 18692 { 18693 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18694 else puts (dlerror ()); 18695 } 18696 /* dlclose (self); */ 18697 } 18698 else 18699 puts (dlerror ()); 18700 18701 return status; 18702} 18703_LT_EOF 18704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18705 (eval $ac_link) 2>&5 18706 ac_status=$? 18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18708 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18709 (./conftest; exit; ) >&5 2>/dev/null 18710 lt_status=$? 18711 case x$lt_status in 18712 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18713 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18714 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18715 esac 18716 else : 18717 # compilation failed 18718 lt_cv_dlopen_self_static=no 18719 fi 18720fi 18721rm -fr conftest* 18722 18723 18724fi 18725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18726$as_echo "$lt_cv_dlopen_self_static" >&6; } 18727 fi 18728 18729 CPPFLAGS=$save_CPPFLAGS 18730 LDFLAGS=$save_LDFLAGS 18731 LIBS=$save_LIBS 18732 ;; 18733 esac 18734 18735 case $lt_cv_dlopen_self in 18736 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18737 *) enable_dlopen_self=unknown ;; 18738 esac 18739 18740 case $lt_cv_dlopen_self_static in 18741 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18742 *) enable_dlopen_self_static=unknown ;; 18743 esac 18744fi 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762striplib= 18763old_striplib= 18764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18765$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18766if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18767 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18768 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18770$as_echo "yes" >&6; } 18771else 18772# FIXME - insert some real tests, host_os isn't really good enough 18773 case $host_os in 18774 darwin*) 18775 if test -n "$STRIP"; then 18776 striplib="$STRIP -x" 18777 old_striplib="$STRIP -S" 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18779$as_echo "yes" >&6; } 18780 else 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18782$as_echo "no" >&6; } 18783 fi 18784 ;; 18785 *) 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18787$as_echo "no" >&6; } 18788 ;; 18789 esac 18790fi 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 # Report what library types will actually be built 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18805$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18807$as_echo "$can_build_shared" >&6; } 18808 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18810$as_echo_n "checking whether to build shared libraries... " >&6; } 18811 test no = "$can_build_shared" && enable_shared=no 18812 18813 # On AIX, shared libraries and static libraries use the same namespace, and 18814 # are all built from PIC. 18815 case $host_os in 18816 aix3*) 18817 test yes = "$enable_shared" && enable_static=no 18818 if test -n "$RANLIB"; then 18819 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18820 postinstall_cmds='$RANLIB $lib' 18821 fi 18822 ;; 18823 18824 aix[4-9]*) 18825 if test ia64 != "$host_cpu"; then 18826 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18827 yes,aix,yes) ;; # shared object as lib.so file only 18828 yes,svr4,*) ;; # shared object as lib.so archive member only 18829 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18830 esac 18831 fi 18832 ;; 18833 esac 18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18835$as_echo "$enable_shared" >&6; } 18836 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18838$as_echo_n "checking whether to build static libraries... " >&6; } 18839 # Make sure either enable_shared or enable_static is yes. 18840 test yes = "$enable_shared" || enable_static=yes 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18842$as_echo "$enable_static" >&6; } 18843 18844 18845 18846 18847fi 18848ac_ext=c 18849ac_cpp='$CPP $CPPFLAGS' 18850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18852ac_compiler_gnu=$ac_cv_c_compiler_gnu 18853 18854CC=$lt_save_CC 18855 18856 if test -n "$CXX" && ( test no != "$CXX" && 18857 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 18858 (test g++ != "$CXX"))); then 18859 ac_ext=cpp 18860ac_cpp='$CXXCPP $CPPFLAGS' 18861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 18865$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 18866if test -z "$CXXCPP"; then 18867 if ${ac_cv_prog_CXXCPP+:} false; then : 18868 $as_echo_n "(cached) " >&6 18869else 18870 # Double quotes because CXXCPP needs to be expanded 18871 for CXXCPP in "$CXX -E" "/lib/cpp" 18872 do 18873 ac_preproc_ok=false 18874for ac_cxx_preproc_warn_flag in '' yes 18875do 18876 # Use a header file that comes with gcc, so configuring glibc 18877 # with a fresh cross-compiler works. 18878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18879 # <limits.h> exists even on freestanding compilers. 18880 # On the NeXT, cc -E runs the code through the compiler's parser, 18881 # not just through cpp. "Syntax error" is here to catch this case. 18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18883/* end confdefs.h. */ 18884#ifdef __STDC__ 18885# include <limits.h> 18886#else 18887# include <assert.h> 18888#endif 18889 Syntax error 18890_ACEOF 18891if ac_fn_cxx_try_cpp "$LINENO"; then : 18892 18893else 18894 # Broken: fails on valid input. 18895continue 18896fi 18897rm -f conftest.err conftest.i conftest.$ac_ext 18898 18899 # OK, works on sane cases. Now check whether nonexistent headers 18900 # can be detected and how. 18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18902/* end confdefs.h. */ 18903#include <ac_nonexistent.h> 18904_ACEOF 18905if ac_fn_cxx_try_cpp "$LINENO"; then : 18906 # Broken: success on invalid input. 18907continue 18908else 18909 # Passes both tests. 18910ac_preproc_ok=: 18911break 18912fi 18913rm -f conftest.err conftest.i conftest.$ac_ext 18914 18915done 18916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18917rm -f conftest.i conftest.err conftest.$ac_ext 18918if $ac_preproc_ok; then : 18919 break 18920fi 18921 18922 done 18923 ac_cv_prog_CXXCPP=$CXXCPP 18924 18925fi 18926 CXXCPP=$ac_cv_prog_CXXCPP 18927else 18928 ac_cv_prog_CXXCPP=$CXXCPP 18929fi 18930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 18931$as_echo "$CXXCPP" >&6; } 18932ac_preproc_ok=false 18933for ac_cxx_preproc_warn_flag in '' yes 18934do 18935 # Use a header file that comes with gcc, so configuring glibc 18936 # with a fresh cross-compiler works. 18937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18938 # <limits.h> exists even on freestanding compilers. 18939 # On the NeXT, cc -E runs the code through the compiler's parser, 18940 # not just through cpp. "Syntax error" is here to catch this case. 18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18942/* end confdefs.h. */ 18943#ifdef __STDC__ 18944# include <limits.h> 18945#else 18946# include <assert.h> 18947#endif 18948 Syntax error 18949_ACEOF 18950if ac_fn_cxx_try_cpp "$LINENO"; then : 18951 18952else 18953 # Broken: fails on valid input. 18954continue 18955fi 18956rm -f conftest.err conftest.i conftest.$ac_ext 18957 18958 # OK, works on sane cases. Now check whether nonexistent headers 18959 # can be detected and how. 18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18961/* end confdefs.h. */ 18962#include <ac_nonexistent.h> 18963_ACEOF 18964if ac_fn_cxx_try_cpp "$LINENO"; then : 18965 # Broken: success on invalid input. 18966continue 18967else 18968 # Passes both tests. 18969ac_preproc_ok=: 18970break 18971fi 18972rm -f conftest.err conftest.i conftest.$ac_ext 18973 18974done 18975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18976rm -f conftest.i conftest.err conftest.$ac_ext 18977if $ac_preproc_ok; then : 18978 18979else 18980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18982as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 18983See \`config.log' for more details" "$LINENO" 5; } 18984fi 18985 18986ac_ext=c 18987ac_cpp='$CPP $CPPFLAGS' 18988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18990ac_compiler_gnu=$ac_cv_c_compiler_gnu 18991 18992else 18993 _lt_caught_CXX_error=yes 18994fi 18995 18996ac_ext=cpp 18997ac_cpp='$CXXCPP $CPPFLAGS' 18998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19001 19002archive_cmds_need_lc_CXX=no 19003allow_undefined_flag_CXX= 19004always_export_symbols_CXX=no 19005archive_expsym_cmds_CXX= 19006compiler_needs_object_CXX=no 19007export_dynamic_flag_spec_CXX= 19008hardcode_direct_CXX=no 19009hardcode_direct_absolute_CXX=no 19010hardcode_libdir_flag_spec_CXX= 19011hardcode_libdir_separator_CXX= 19012hardcode_minus_L_CXX=no 19013hardcode_shlibpath_var_CXX=unsupported 19014hardcode_automatic_CXX=no 19015inherit_rpath_CXX=no 19016module_cmds_CXX= 19017module_expsym_cmds_CXX= 19018link_all_deplibs_CXX=unknown 19019old_archive_cmds_CXX=$old_archive_cmds 19020reload_flag_CXX=$reload_flag 19021reload_cmds_CXX=$reload_cmds 19022no_undefined_flag_CXX= 19023whole_archive_flag_spec_CXX= 19024enable_shared_with_static_runtimes_CXX=no 19025 19026# Source file extension for C++ test sources. 19027ac_ext=cpp 19028 19029# Object file extension for compiled C++ test sources. 19030objext=o 19031objext_CXX=$objext 19032 19033# No sense in running all these tests if we already determined that 19034# the CXX compiler isn't working. Some variables (like enable_shared) 19035# are currently assumed to apply to all compilers on this platform, 19036# and will be corrupted by setting them based on a non-working compiler. 19037if test yes != "$_lt_caught_CXX_error"; then 19038 # Code to be used in simple compile tests 19039 lt_simple_compile_test_code="int some_variable = 0;" 19040 19041 # Code to be used in simple link tests 19042 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19043 19044 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19045 19046 19047 19048 19049 19050 19051# If no C compiler was specified, use CC. 19052LTCC=${LTCC-"$CC"} 19053 19054# If no C compiler flags were specified, use CFLAGS. 19055LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19056 19057# Allow CC to be a program name with arguments. 19058compiler=$CC 19059 19060 19061 # save warnings/boilerplate of simple test code 19062 ac_outfile=conftest.$ac_objext 19063echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19065_lt_compiler_boilerplate=`cat conftest.err` 19066$RM conftest* 19067 19068 ac_outfile=conftest.$ac_objext 19069echo "$lt_simple_link_test_code" >conftest.$ac_ext 19070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19071_lt_linker_boilerplate=`cat conftest.err` 19072$RM -r conftest* 19073 19074 19075 # Allow CC to be a program name with arguments. 19076 lt_save_CC=$CC 19077 lt_save_CFLAGS=$CFLAGS 19078 lt_save_LD=$LD 19079 lt_save_GCC=$GCC 19080 GCC=$GXX 19081 lt_save_with_gnu_ld=$with_gnu_ld 19082 lt_save_path_LD=$lt_cv_path_LD 19083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19085 else 19086 $as_unset lt_cv_prog_gnu_ld 19087 fi 19088 if test -n "${lt_cv_path_LDCXX+set}"; then 19089 lt_cv_path_LD=$lt_cv_path_LDCXX 19090 else 19091 $as_unset lt_cv_path_LD 19092 fi 19093 test -z "${LDCXX+set}" || LD=$LDCXX 19094 CC=${CXX-"c++"} 19095 CFLAGS=$CXXFLAGS 19096 compiler=$CC 19097 compiler_CXX=$CC 19098 func_cc_basename $compiler 19099cc_basename=$func_cc_basename_result 19100 19101 19102 if test -n "$compiler"; then 19103 # We don't want -fno-exception when compiling C++ code, so set the 19104 # no_builtin_flag separately 19105 if test yes = "$GXX"; then 19106 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19107 else 19108 lt_prog_compiler_no_builtin_flag_CXX= 19109 fi 19110 19111 if test yes = "$GXX"; then 19112 # Set up default GNU C++ configuration 19113 19114 19115 19116# Check whether --with-gnu-ld was given. 19117if test "${with_gnu_ld+set}" = set; then : 19118 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 19119else 19120 with_gnu_ld=no 19121fi 19122 19123ac_prog=ld 19124if test yes = "$GCC"; then 19125 # Check if gcc -print-prog-name=ld gives a path. 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19127$as_echo_n "checking for ld used by $CC... " >&6; } 19128 case $host in 19129 *-*-mingw*) 19130 # gcc leaves a trailing carriage return, which upsets mingw 19131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19132 *) 19133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19134 esac 19135 case $ac_prog in 19136 # Accept absolute paths. 19137 [\\/]* | ?:[\\/]*) 19138 re_direlt='/[^/][^/]*/\.\./' 19139 # Canonicalize the pathname of ld 19140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19143 done 19144 test -z "$LD" && LD=$ac_prog 19145 ;; 19146 "") 19147 # If it fails, then pretend we aren't using GCC. 19148 ac_prog=ld 19149 ;; 19150 *) 19151 # If it is relative, then search for the first ld in PATH. 19152 with_gnu_ld=unknown 19153 ;; 19154 esac 19155elif test yes = "$with_gnu_ld"; then 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19157$as_echo_n "checking for GNU ld... " >&6; } 19158else 19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19160$as_echo_n "checking for non-GNU ld... " >&6; } 19161fi 19162if ${lt_cv_path_LD+:} false; then : 19163 $as_echo_n "(cached) " >&6 19164else 19165 if test -z "$LD"; then 19166 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 19167 for ac_dir in $PATH; do 19168 IFS=$lt_save_ifs 19169 test -z "$ac_dir" && ac_dir=. 19170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19171 lt_cv_path_LD=$ac_dir/$ac_prog 19172 # Check to see if the program is GNU ld. I'd rather use --version, 19173 # but apparently some variants of GNU ld only accept -v. 19174 # Break only if it was the GNU/non-GNU ld that we prefer. 19175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19176 *GNU* | *'with BFD'*) 19177 test no != "$with_gnu_ld" && break 19178 ;; 19179 *) 19180 test yes != "$with_gnu_ld" && break 19181 ;; 19182 esac 19183 fi 19184 done 19185 IFS=$lt_save_ifs 19186else 19187 lt_cv_path_LD=$LD # Let the user override the test with a path. 19188fi 19189fi 19190 19191LD=$lt_cv_path_LD 19192if test -n "$LD"; then 19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19194$as_echo "$LD" >&6; } 19195else 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19197$as_echo "no" >&6; } 19198fi 19199test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19201$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19202if ${lt_cv_prog_gnu_ld+:} false; then : 19203 $as_echo_n "(cached) " >&6 19204else 19205 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19206case `$LD -v 2>&1 </dev/null` in 19207*GNU* | *'with BFD'*) 19208 lt_cv_prog_gnu_ld=yes 19209 ;; 19210*) 19211 lt_cv_prog_gnu_ld=no 19212 ;; 19213esac 19214fi 19215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19216$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19217with_gnu_ld=$lt_cv_prog_gnu_ld 19218 19219 19220 19221 19222 19223 19224 19225 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19226 # archiving commands below assume that GNU ld is being used. 19227 if test yes = "$with_gnu_ld"; then 19228 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19229 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' 19230 19231 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19232 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19233 19234 # If archive_cmds runs LD, not CC, wlarc should be empty 19235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19236 # investigate it a little bit more. (MM) 19237 wlarc='$wl' 19238 19239 # ancient GNU ld didn't support --whole-archive et. al. 19240 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19241 $GREP 'no-whole-archive' > /dev/null; then 19242 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19243 else 19244 whole_archive_flag_spec_CXX= 19245 fi 19246 else 19247 with_gnu_ld=no 19248 wlarc= 19249 19250 # A generic and very simple default shared library creation 19251 # command for GNU C++ for the case where it uses the native 19252 # linker, instead of GNU ld. If possible, this setting should 19253 # overridden to take advantage of the native linker features on 19254 # the platform it is being used on. 19255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19256 fi 19257 19258 # Commands to make compiler produce verbose output that lists 19259 # what "hidden" libraries, object files and flags are used when 19260 # linking a shared library. 19261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19262 19263 else 19264 GXX=no 19265 with_gnu_ld=no 19266 wlarc= 19267 fi 19268 19269 # PORTME: fill in a description of your system's C++ link characteristics 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19271$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19272 ld_shlibs_CXX=yes 19273 case $host_os in 19274 aix3*) 19275 # FIXME: insert proper C++ library support 19276 ld_shlibs_CXX=no 19277 ;; 19278 aix[4-9]*) 19279 if test ia64 = "$host_cpu"; then 19280 # On IA64, the linker does run time linking by default, so we don't 19281 # have to do anything special. 19282 aix_use_runtimelinking=no 19283 exp_sym_flag='-Bexport' 19284 no_entry_flag= 19285 else 19286 aix_use_runtimelinking=no 19287 19288 # Test if we are trying to use run time linking or normal 19289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19290 # have runtime linking enabled, and use it for executables. 19291 # For shared libraries, we enable/disable runtime linking 19292 # depending on the kind of the shared library created - 19293 # when "with_aix_soname,aix_use_runtimelinking" is: 19294 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19295 # "aix,yes" lib.so shared, rtl:yes, for executables 19296 # lib.a static archive 19297 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19298 # lib.a(lib.so.V) shared, rtl:no, for executables 19299 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19300 # lib.a(lib.so.V) shared, rtl:no 19301 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19302 # lib.a static archive 19303 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19304 for ld_flag in $LDFLAGS; do 19305 case $ld_flag in 19306 *-brtl*) 19307 aix_use_runtimelinking=yes 19308 break 19309 ;; 19310 esac 19311 done 19312 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19313 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19314 # so we don't have lib.a shared libs to link our executables. 19315 # We have to force runtime linking in this case. 19316 aix_use_runtimelinking=yes 19317 LDFLAGS="$LDFLAGS -Wl,-brtl" 19318 fi 19319 ;; 19320 esac 19321 19322 exp_sym_flag='-bexport' 19323 no_entry_flag='-bnoentry' 19324 fi 19325 19326 # When large executables or shared objects are built, AIX ld can 19327 # have problems creating the table of contents. If linking a library 19328 # or program results in "error TOC overflow" add -mminimal-toc to 19329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19331 19332 archive_cmds_CXX='' 19333 hardcode_direct_CXX=yes 19334 hardcode_direct_absolute_CXX=yes 19335 hardcode_libdir_separator_CXX=':' 19336 link_all_deplibs_CXX=yes 19337 file_list_spec_CXX='$wl-f,' 19338 case $with_aix_soname,$aix_use_runtimelinking in 19339 aix,*) ;; # no import file 19340 svr4,* | *,yes) # use import file 19341 # The Import File defines what to hardcode. 19342 hardcode_direct_CXX=no 19343 hardcode_direct_absolute_CXX=no 19344 ;; 19345 esac 19346 19347 if test yes = "$GXX"; then 19348 case $host_os in aix4.[012]|aix4.[012].*) 19349 # We only want to do this on AIX 4.2 and lower, the check 19350 # below for broken collect2 doesn't work under 4.3+ 19351 collect2name=`$CC -print-prog-name=collect2` 19352 if test -f "$collect2name" && 19353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19354 then 19355 # We have reworked collect2 19356 : 19357 else 19358 # We have old collect2 19359 hardcode_direct_CXX=unsupported 19360 # It fails to find uninstalled libraries when the uninstalled 19361 # path is not listed in the libpath. Setting hardcode_minus_L 19362 # to unsupported forces relinking 19363 hardcode_minus_L_CXX=yes 19364 hardcode_libdir_flag_spec_CXX='-L$libdir' 19365 hardcode_libdir_separator_CXX= 19366 fi 19367 esac 19368 shared_flag='-shared' 19369 if test yes = "$aix_use_runtimelinking"; then 19370 shared_flag=$shared_flag' $wl-G' 19371 fi 19372 # Need to ensure runtime linking is disabled for the traditional 19373 # shared library, or the linker may eventually find shared libraries 19374 # /with/ Import File - we do not want to mix them. 19375 shared_flag_aix='-shared' 19376 shared_flag_svr4='-shared $wl-G' 19377 else 19378 # not using gcc 19379 if test ia64 = "$host_cpu"; then 19380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19381 # chokes on -Wl,-G. The following line is correct: 19382 shared_flag='-G' 19383 else 19384 if test yes = "$aix_use_runtimelinking"; then 19385 shared_flag='$wl-G' 19386 else 19387 shared_flag='$wl-bM:SRE' 19388 fi 19389 shared_flag_aix='$wl-bM:SRE' 19390 shared_flag_svr4='$wl-G' 19391 fi 19392 fi 19393 19394 export_dynamic_flag_spec_CXX='$wl-bexpall' 19395 # It seems that -bexpall does not export symbols beginning with 19396 # underscore (_), so it is better to generate a list of symbols to 19397 # export. 19398 always_export_symbols_CXX=yes 19399 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 19400 # Warning - without using the other runtime loading flags (-brtl), 19401 # -berok will link without error, but may produce a broken library. 19402 # The "-G" linker flag allows undefined symbols. 19403 no_undefined_flag_CXX='-bernotok' 19404 # Determine the default libpath from the value encoded in an empty 19405 # executable. 19406 if test set = "${lt_cv_aix_libpath+set}"; then 19407 aix_libpath=$lt_cv_aix_libpath 19408else 19409 if ${lt_cv_aix_libpath__CXX+:} false; then : 19410 $as_echo_n "(cached) " >&6 19411else 19412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19413/* end confdefs.h. */ 19414 19415int 19416main () 19417{ 19418 19419 ; 19420 return 0; 19421} 19422_ACEOF 19423if ac_fn_cxx_try_link "$LINENO"; then : 19424 19425 lt_aix_libpath_sed=' 19426 /Import File Strings/,/^$/ { 19427 /^0/ { 19428 s/^0 *\([^ ]*\) *$/\1/ 19429 p 19430 } 19431 }' 19432 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19433 # Check for a 64-bit object if we didn't find anything. 19434 if test -z "$lt_cv_aix_libpath__CXX"; then 19435 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19436 fi 19437fi 19438rm -f core conftest.err conftest.$ac_objext \ 19439 conftest$ac_exeext conftest.$ac_ext 19440 if test -z "$lt_cv_aix_libpath__CXX"; then 19441 lt_cv_aix_libpath__CXX=/usr/lib:/lib 19442 fi 19443 19444fi 19445 19446 aix_libpath=$lt_cv_aix_libpath__CXX 19447fi 19448 19449 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 19450 19451 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 19452 else 19453 if test ia64 = "$host_cpu"; then 19454 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 19455 allow_undefined_flag_CXX="-z nodefs" 19456 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" 19457 else 19458 # Determine the default libpath from the value encoded in an 19459 # empty executable. 19460 if test set = "${lt_cv_aix_libpath+set}"; then 19461 aix_libpath=$lt_cv_aix_libpath 19462else 19463 if ${lt_cv_aix_libpath__CXX+:} false; then : 19464 $as_echo_n "(cached) " >&6 19465else 19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19467/* end confdefs.h. */ 19468 19469int 19470main () 19471{ 19472 19473 ; 19474 return 0; 19475} 19476_ACEOF 19477if ac_fn_cxx_try_link "$LINENO"; then : 19478 19479 lt_aix_libpath_sed=' 19480 /Import File Strings/,/^$/ { 19481 /^0/ { 19482 s/^0 *\([^ ]*\) *$/\1/ 19483 p 19484 } 19485 }' 19486 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19487 # Check for a 64-bit object if we didn't find anything. 19488 if test -z "$lt_cv_aix_libpath__CXX"; then 19489 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19490 fi 19491fi 19492rm -f core conftest.err conftest.$ac_objext \ 19493 conftest$ac_exeext conftest.$ac_ext 19494 if test -z "$lt_cv_aix_libpath__CXX"; then 19495 lt_cv_aix_libpath__CXX=/usr/lib:/lib 19496 fi 19497 19498fi 19499 19500 aix_libpath=$lt_cv_aix_libpath__CXX 19501fi 19502 19503 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 19504 # Warning - without using the other run time loading flags, 19505 # -berok will link without error, but may produce a broken library. 19506 no_undefined_flag_CXX=' $wl-bernotok' 19507 allow_undefined_flag_CXX=' $wl-berok' 19508 if test yes = "$with_gnu_ld"; then 19509 # We only use this code for GNU lds that support --whole-archive. 19510 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 19511 else 19512 # Exported symbols can be pulled into shared objects from archives 19513 whole_archive_flag_spec_CXX='$convenience' 19514 fi 19515 archive_cmds_need_lc_CXX=yes 19516 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 19517 # -brtl affects multiple linker settings, -berok does not and is overridden later 19518 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 19519 if test svr4 != "$with_aix_soname"; then 19520 # This is similar to how AIX traditionally builds its shared 19521 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 19522 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' 19523 fi 19524 if test aix != "$with_aix_soname"; then 19525 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' 19526 else 19527 # used by -dlpreopen to get the symbols 19528 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 19529 fi 19530 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 19531 fi 19532 fi 19533 ;; 19534 19535 beos*) 19536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19537 allow_undefined_flag_CXX=unsupported 19538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19539 # support --undefined. This deserves some investigation. FIXME 19540 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19541 else 19542 ld_shlibs_CXX=no 19543 fi 19544 ;; 19545 19546 chorus*) 19547 case $cc_basename in 19548 *) 19549 # FIXME: insert proper C++ library support 19550 ld_shlibs_CXX=no 19551 ;; 19552 esac 19553 ;; 19554 19555 cygwin* | mingw* | pw32* | cegcc*) 19556 case $GXX,$cc_basename in 19557 ,cl* | no,cl*) 19558 # Native MSVC 19559 # hardcode_libdir_flag_spec is actually meaningless, as there is 19560 # no search path for DLLs. 19561 hardcode_libdir_flag_spec_CXX=' ' 19562 allow_undefined_flag_CXX=unsupported 19563 always_export_symbols_CXX=yes 19564 file_list_spec_CXX='@' 19565 # Tell ltmain to make .lib files, not .a files. 19566 libext=lib 19567 # Tell ltmain to make .dll files, not .so files. 19568 shrext_cmds=.dll 19569 # FIXME: Setting linknames here is a bad hack. 19570 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 19571 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19572 cp "$export_symbols" "$output_objdir/$soname.def"; 19573 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 19574 else 19575 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 19576 fi~ 19577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19578 linknames=' 19579 # The linker will not automatically build a static lib if we build a DLL. 19580 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 19581 enable_shared_with_static_runtimes_CXX=yes 19582 # Don't use ranlib 19583 old_postinstall_cmds_CXX='chmod 644 $oldlib' 19584 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 19585 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19586 case $lt_outputfile in 19587 *.exe|*.EXE) ;; 19588 *) 19589 lt_outputfile=$lt_outputfile.exe 19590 lt_tool_outputfile=$lt_tool_outputfile.exe 19591 ;; 19592 esac~ 19593 func_to_tool_file "$lt_outputfile"~ 19594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 19595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19596 $RM "$lt_outputfile.manifest"; 19597 fi' 19598 ;; 19599 *) 19600 # g++ 19601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19602 # as there is no search path for DLLs. 19603 hardcode_libdir_flag_spec_CXX='-L$libdir' 19604 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 19605 allow_undefined_flag_CXX=unsupported 19606 always_export_symbols_CXX=no 19607 enable_shared_with_static_runtimes_CXX=yes 19608 19609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19610 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' 19611 # If the export-symbols file already is a .def file, use it as 19612 # is; otherwise, prepend EXPORTS... 19613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19614 cp $export_symbols $output_objdir/$soname.def; 19615 else 19616 echo EXPORTS > $output_objdir/$soname.def; 19617 cat $export_symbols >> $output_objdir/$soname.def; 19618 fi~ 19619 $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' 19620 else 19621 ld_shlibs_CXX=no 19622 fi 19623 ;; 19624 esac 19625 ;; 19626 darwin* | rhapsody*) 19627 19628 19629 archive_cmds_need_lc_CXX=no 19630 hardcode_direct_CXX=no 19631 hardcode_automatic_CXX=yes 19632 hardcode_shlibpath_var_CXX=unsupported 19633 if test yes = "$lt_cv_ld_force_load"; then 19634 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\"`' 19635 19636 else 19637 whole_archive_flag_spec_CXX='' 19638 fi 19639 link_all_deplibs_CXX=yes 19640 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 19641 case $cc_basename in 19642 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 19643 *) _lt_dar_can_shared=$GCC ;; 19644 esac 19645 if test yes = "$_lt_dar_can_shared"; then 19646 output_verbose_link_cmd=func_echo_all 19647 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" 19648 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 19649 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" 19650 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" 19651 if test yes != "$lt_cv_apple_cc_single_mod"; then 19652 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" 19653 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" 19654 fi 19655 19656 else 19657 ld_shlibs_CXX=no 19658 fi 19659 19660 ;; 19661 19662 os2*) 19663 hardcode_libdir_flag_spec_CXX='-L$libdir' 19664 hardcode_minus_L_CXX=yes 19665 allow_undefined_flag_CXX=unsupported 19666 shrext_cmds=.dll 19667 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19671 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19673 emximp -o $lib $output_objdir/$libname.def' 19674 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19677 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19678 prefix_cmds="$SED"~ 19679 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19680 prefix_cmds="$prefix_cmds -e 1d"; 19681 fi~ 19682 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19683 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19685 emximp -o $lib $output_objdir/$libname.def' 19686 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19687 enable_shared_with_static_runtimes_CXX=yes 19688 ;; 19689 19690 dgux*) 19691 case $cc_basename in 19692 ec++*) 19693 # FIXME: insert proper C++ library support 19694 ld_shlibs_CXX=no 19695 ;; 19696 ghcx*) 19697 # Green Hills C++ Compiler 19698 # FIXME: insert proper C++ library support 19699 ld_shlibs_CXX=no 19700 ;; 19701 *) 19702 # FIXME: insert proper C++ library support 19703 ld_shlibs_CXX=no 19704 ;; 19705 esac 19706 ;; 19707 19708 freebsd2.*) 19709 # C++ shared libraries reported to be fairly broken before 19710 # switch to ELF 19711 ld_shlibs_CXX=no 19712 ;; 19713 19714 freebsd-elf*) 19715 archive_cmds_need_lc_CXX=no 19716 ;; 19717 19718 freebsd* | dragonfly*) 19719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19720 # conventions 19721 ld_shlibs_CXX=yes 19722 ;; 19723 19724 haiku*) 19725 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19726 link_all_deplibs_CXX=yes 19727 ;; 19728 19729 hpux9*) 19730 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 19731 hardcode_libdir_separator_CXX=: 19732 export_dynamic_flag_spec_CXX='$wl-E' 19733 hardcode_direct_CXX=yes 19734 hardcode_minus_L_CXX=yes # Not in the search PATH, 19735 # but as the default 19736 # location of the library. 19737 19738 case $cc_basename in 19739 CC*) 19740 # FIXME: insert proper C++ library support 19741 ld_shlibs_CXX=no 19742 ;; 19743 aCC*) 19744 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' 19745 # Commands to make compiler produce verbose output that lists 19746 # what "hidden" libraries, object files and flags are used when 19747 # linking a shared library. 19748 # 19749 # There doesn't appear to be a way to prevent this compiler from 19750 # explicitly linking system object files so we need to strip them 19751 # from the output so that they don't get included in the library 19752 # dependencies. 19753 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"' 19754 ;; 19755 *) 19756 if test yes = "$GXX"; then 19757 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' 19758 else 19759 # FIXME: insert proper C++ library support 19760 ld_shlibs_CXX=no 19761 fi 19762 ;; 19763 esac 19764 ;; 19765 19766 hpux10*|hpux11*) 19767 if test no = "$with_gnu_ld"; then 19768 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 19769 hardcode_libdir_separator_CXX=: 19770 19771 case $host_cpu in 19772 hppa*64*|ia64*) 19773 ;; 19774 *) 19775 export_dynamic_flag_spec_CXX='$wl-E' 19776 ;; 19777 esac 19778 fi 19779 case $host_cpu in 19780 hppa*64*|ia64*) 19781 hardcode_direct_CXX=no 19782 hardcode_shlibpath_var_CXX=no 19783 ;; 19784 *) 19785 hardcode_direct_CXX=yes 19786 hardcode_direct_absolute_CXX=yes 19787 hardcode_minus_L_CXX=yes # Not in the search PATH, 19788 # but as the default 19789 # location of the library. 19790 ;; 19791 esac 19792 19793 case $cc_basename in 19794 CC*) 19795 # FIXME: insert proper C++ library support 19796 ld_shlibs_CXX=no 19797 ;; 19798 aCC*) 19799 case $host_cpu in 19800 hppa*64*) 19801 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19802 ;; 19803 ia64*) 19804 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19805 ;; 19806 *) 19807 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19808 ;; 19809 esac 19810 # Commands to make compiler produce verbose output that lists 19811 # what "hidden" libraries, object files and flags are used when 19812 # linking a shared library. 19813 # 19814 # There doesn't appear to be a way to prevent this compiler from 19815 # explicitly linking system object files so we need to strip them 19816 # from the output so that they don't get included in the library 19817 # dependencies. 19818 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"' 19819 ;; 19820 *) 19821 if test yes = "$GXX"; then 19822 if test no = "$with_gnu_ld"; then 19823 case $host_cpu in 19824 hppa*64*) 19825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19826 ;; 19827 ia64*) 19828 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19829 ;; 19830 *) 19831 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' 19832 ;; 19833 esac 19834 fi 19835 else 19836 # FIXME: insert proper C++ library support 19837 ld_shlibs_CXX=no 19838 fi 19839 ;; 19840 esac 19841 ;; 19842 19843 interix[3-9]*) 19844 hardcode_direct_CXX=no 19845 hardcode_shlibpath_var_CXX=no 19846 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19847 export_dynamic_flag_spec_CXX='$wl-E' 19848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19849 # Instead, shared libraries are loaded at an image base (0x10000000 by 19850 # default) and relocated if they conflict, which is a slow very memory 19851 # consuming and fragmenting process. To avoid this, we pick a random, 19852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19853 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19854 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' 19855 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' 19856 ;; 19857 irix5* | irix6*) 19858 case $cc_basename in 19859 CC*) 19860 # SGI C++ 19861 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' 19862 19863 # Archives containing C++ object files must be created using 19864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 19865 # necessary to make sure instantiated templates are included 19866 # in the archive. 19867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 19868 ;; 19869 *) 19870 if test yes = "$GXX"; then 19871 if test no = "$with_gnu_ld"; then 19872 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' 19873 else 19874 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' 19875 fi 19876 fi 19877 link_all_deplibs_CXX=yes 19878 ;; 19879 esac 19880 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19881 hardcode_libdir_separator_CXX=: 19882 inherit_rpath_CXX=yes 19883 ;; 19884 19885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19886 case $cc_basename in 19887 KCC*) 19888 # Kuck and Associates, Inc. (KAI) C++ Compiler 19889 19890 # KCC will only create a shared library if the output file 19891 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19892 # to its proper name (with version) after linking. 19893 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' 19894 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' 19895 # Commands to make compiler produce verbose output that lists 19896 # what "hidden" libraries, object files and flags are used when 19897 # linking a shared library. 19898 # 19899 # There doesn't appear to be a way to prevent this compiler from 19900 # explicitly linking system object files so we need to strip them 19901 # from the output so that they don't get included in the library 19902 # dependencies. 19903 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"' 19904 19905 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19906 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19907 19908 # Archives containing C++ object files must be created using 19909 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 19910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 19911 ;; 19912 icpc* | ecpc* ) 19913 # Intel C++ 19914 with_gnu_ld=yes 19915 # version 8.0 and above of icpc choke on multiply defined symbols 19916 # if we add $predep_objects and $postdep_objects, however 7.1 and 19917 # earlier do not add the objects themselves. 19918 case `$CC -V 2>&1` in 19919 *"Version 7."*) 19920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19921 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' 19922 ;; 19923 *) # Version 8.0 or newer 19924 tmp_idyn= 19925 case $host_cpu in 19926 ia64*) tmp_idyn=' -i_dynamic';; 19927 esac 19928 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19929 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' 19930 ;; 19931 esac 19932 archive_cmds_need_lc_CXX=no 19933 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19934 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19935 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 19936 ;; 19937 pgCC* | pgcpp*) 19938 # Portland Group C++ compiler 19939 case `$CC -V` in 19940 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 19941 prelink_cmds_CXX='tpldir=Template.dir~ 19942 rm -rf $tpldir~ 19943 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 19944 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 19945 old_archive_cmds_CXX='tpldir=Template.dir~ 19946 rm -rf $tpldir~ 19947 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 19948 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 19949 $RANLIB $oldlib' 19950 archive_cmds_CXX='tpldir=Template.dir~ 19951 rm -rf $tpldir~ 19952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19953 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19954 archive_expsym_cmds_CXX='tpldir=Template.dir~ 19955 rm -rf $tpldir~ 19956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19957 $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' 19958 ;; 19959 *) # Version 6 and above use weak symbols 19960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19961 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' 19962 ;; 19963 esac 19964 19965 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 19966 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19967 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' 19968 ;; 19969 cxx*) 19970 # Compaq C++ 19971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19972 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' 19973 19974 runpath_var=LD_RUN_PATH 19975 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19976 hardcode_libdir_separator_CXX=: 19977 19978 # Commands to make compiler produce verbose output that lists 19979 # what "hidden" libraries, object files and flags are used when 19980 # linking a shared library. 19981 # 19982 # There doesn't appear to be a way to prevent this compiler from 19983 # explicitly linking system object files so we need to strip them 19984 # from the output so that they don't get included in the library 19985 # dependencies. 19986 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' 19987 ;; 19988 xl* | mpixl* | bgxl*) 19989 # IBM XL 8.0 on PPC, with GNU ld 19990 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19991 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19992 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19993 if test yes = "$supports_anon_versioning"; then 19994 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 19995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19996 echo "local: *; };" >> $output_objdir/$libname.ver~ 19997 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19998 fi 19999 ;; 20000 *) 20001 case `$CC -V 2>&1 | sed 5q` in 20002 *Sun\ C*) 20003 # Sun C++ 5.9 20004 no_undefined_flag_CXX=' -zdefs' 20005 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20006 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' 20007 hardcode_libdir_flag_spec_CXX='-R$libdir' 20008 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' 20009 compiler_needs_object_CXX=yes 20010 20011 # Not sure whether something based on 20012 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20013 # would be better. 20014 output_verbose_link_cmd='func_echo_all' 20015 20016 # Archives containing C++ object files must be created using 20017 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20018 # necessary to make sure instantiated templates are included 20019 # in the archive. 20020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20021 ;; 20022 esac 20023 ;; 20024 esac 20025 ;; 20026 20027 lynxos*) 20028 # FIXME: insert proper C++ library support 20029 ld_shlibs_CXX=no 20030 ;; 20031 20032 m88k*) 20033 # FIXME: insert proper C++ library support 20034 ld_shlibs_CXX=no 20035 ;; 20036 20037 mvs*) 20038 case $cc_basename in 20039 cxx*) 20040 # FIXME: insert proper C++ library support 20041 ld_shlibs_CXX=no 20042 ;; 20043 *) 20044 # FIXME: insert proper C++ library support 20045 ld_shlibs_CXX=no 20046 ;; 20047 esac 20048 ;; 20049 20050 netbsd*) 20051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20053 wlarc= 20054 hardcode_libdir_flag_spec_CXX='-R$libdir' 20055 hardcode_direct_CXX=yes 20056 hardcode_shlibpath_var_CXX=no 20057 fi 20058 # Workaround some broken pre-1.5 toolchains 20059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20060 ;; 20061 20062 *nto* | *qnx*) 20063 ld_shlibs_CXX=yes 20064 ;; 20065 20066 openbsd* | bitrig*) 20067 if test -f /usr/libexec/ld.so; then 20068 hardcode_direct_CXX=yes 20069 hardcode_shlibpath_var_CXX=no 20070 hardcode_direct_absolute_CXX=yes 20071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20072 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 20074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 20075 export_dynamic_flag_spec_CXX='$wl-E' 20076 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20077 fi 20078 output_verbose_link_cmd=func_echo_all 20079 else 20080 ld_shlibs_CXX=no 20081 fi 20082 ;; 20083 20084 osf3* | osf4* | osf5*) 20085 case $cc_basename in 20086 KCC*) 20087 # Kuck and Associates, Inc. (KAI) C++ Compiler 20088 20089 # KCC will only create a shared library if the output file 20090 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20091 # to its proper name (with version) after linking. 20092 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' 20093 20094 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20095 hardcode_libdir_separator_CXX=: 20096 20097 # Archives containing C++ object files must be created using 20098 # the KAI C++ compiler. 20099 case $host in 20100 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20101 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20102 esac 20103 ;; 20104 RCC*) 20105 # Rational C++ 2.4.1 20106 # FIXME: insert proper C++ library support 20107 ld_shlibs_CXX=no 20108 ;; 20109 cxx*) 20110 case $host in 20111 osf3*) 20112 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20113 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' 20114 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20115 ;; 20116 *) 20117 allow_undefined_flag_CXX=' -expect_unresolved \*' 20118 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' 20119 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20120 echo "-hidden">> $lib.exp~ 20121 $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~ 20122 $RM $lib.exp' 20123 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20124 ;; 20125 esac 20126 20127 hardcode_libdir_separator_CXX=: 20128 20129 # Commands to make compiler produce verbose output that lists 20130 # what "hidden" libraries, object files and flags are used when 20131 # linking a shared library. 20132 # 20133 # There doesn't appear to be a way to prevent this compiler from 20134 # explicitly linking system object files so we need to strip them 20135 # from the output so that they don't get included in the library 20136 # dependencies. 20137 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"' 20138 ;; 20139 *) 20140 if test yes,no = "$GXX,$with_gnu_ld"; then 20141 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20142 case $host in 20143 osf3*) 20144 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' 20145 ;; 20146 *) 20147 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' 20148 ;; 20149 esac 20150 20151 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20152 hardcode_libdir_separator_CXX=: 20153 20154 # Commands to make compiler produce verbose output that lists 20155 # what "hidden" libraries, object files and flags are used when 20156 # linking a shared library. 20157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20158 20159 else 20160 # FIXME: insert proper C++ library support 20161 ld_shlibs_CXX=no 20162 fi 20163 ;; 20164 esac 20165 ;; 20166 20167 psos*) 20168 # FIXME: insert proper C++ library support 20169 ld_shlibs_CXX=no 20170 ;; 20171 20172 sunos4*) 20173 case $cc_basename in 20174 CC*) 20175 # Sun C++ 4.x 20176 # FIXME: insert proper C++ library support 20177 ld_shlibs_CXX=no 20178 ;; 20179 lcc*) 20180 # Lucid 20181 # FIXME: insert proper C++ library support 20182 ld_shlibs_CXX=no 20183 ;; 20184 *) 20185 # FIXME: insert proper C++ library support 20186 ld_shlibs_CXX=no 20187 ;; 20188 esac 20189 ;; 20190 20191 solaris*) 20192 case $cc_basename in 20193 CC* | sunCC*) 20194 # Sun C++ 4.2, 5.x and Centerline C++ 20195 archive_cmds_need_lc_CXX=yes 20196 no_undefined_flag_CXX=' -zdefs' 20197 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20199 $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' 20200 20201 hardcode_libdir_flag_spec_CXX='-R$libdir' 20202 hardcode_shlibpath_var_CXX=no 20203 case $host_os in 20204 solaris2.[0-5] | solaris2.[0-5].*) ;; 20205 *) 20206 # The compiler driver will combine and reorder linker options, 20207 # but understands '-z linker_flag'. 20208 # Supported since Solaris 2.6 (maybe 2.5.1?) 20209 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 20210 ;; 20211 esac 20212 link_all_deplibs_CXX=yes 20213 20214 output_verbose_link_cmd='func_echo_all' 20215 20216 # Archives containing C++ object files must be created using 20217 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20218 # necessary to make sure instantiated templates are included 20219 # in the archive. 20220 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20221 ;; 20222 gcx*) 20223 # Green Hills C++ Compiler 20224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20225 20226 # The C++ compiler must be used to create the archive. 20227 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20228 ;; 20229 *) 20230 # GNU C++ compiler with Solaris linker 20231 if test yes,no = "$GXX,$with_gnu_ld"; then 20232 no_undefined_flag_CXX=' $wl-z ${wl}defs' 20233 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20234 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20235 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20236 $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' 20237 20238 # Commands to make compiler produce verbose output that lists 20239 # what "hidden" libraries, object files and flags are used when 20240 # linking a shared library. 20241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20242 else 20243 # g++ 2.7 appears to require '-G' NOT '-shared' on this 20244 # platform. 20245 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20247 $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' 20248 20249 # Commands to make compiler produce verbose output that lists 20250 # what "hidden" libraries, object files and flags are used when 20251 # linking a shared library. 20252 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20253 fi 20254 20255 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 20256 case $host_os in 20257 solaris2.[0-5] | solaris2.[0-5].*) ;; 20258 *) 20259 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20260 ;; 20261 esac 20262 fi 20263 ;; 20264 esac 20265 ;; 20266 20267 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20268 no_undefined_flag_CXX='$wl-z,text' 20269 archive_cmds_need_lc_CXX=no 20270 hardcode_shlibpath_var_CXX=no 20271 runpath_var='LD_RUN_PATH' 20272 20273 case $cc_basename in 20274 CC*) 20275 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20276 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20277 ;; 20278 *) 20279 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20280 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20281 ;; 20282 esac 20283 ;; 20284 20285 sysv5* | sco3.2v5* | sco5v6*) 20286 # Note: We CANNOT use -z defs as we might desire, because we do not 20287 # link with -lc, and that would cause any symbols used from libc to 20288 # always be unresolved, which means just about no library would 20289 # ever link correctly. If we're not using GNU ld we use -z text 20290 # though, which does catch some bad symbols but isn't as heavy-handed 20291 # as -z defs. 20292 no_undefined_flag_CXX='$wl-z,text' 20293 allow_undefined_flag_CXX='$wl-z,nodefs' 20294 archive_cmds_need_lc_CXX=no 20295 hardcode_shlibpath_var_CXX=no 20296 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 20297 hardcode_libdir_separator_CXX=':' 20298 link_all_deplibs_CXX=yes 20299 export_dynamic_flag_spec_CXX='$wl-Bexport' 20300 runpath_var='LD_RUN_PATH' 20301 20302 case $cc_basename in 20303 CC*) 20304 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20305 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20306 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20307 '"$old_archive_cmds_CXX" 20308 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20309 '"$reload_cmds_CXX" 20310 ;; 20311 *) 20312 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20313 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20314 ;; 20315 esac 20316 ;; 20317 20318 tandem*) 20319 case $cc_basename in 20320 NCC*) 20321 # NonStop-UX NCC 3.20 20322 # FIXME: insert proper C++ library support 20323 ld_shlibs_CXX=no 20324 ;; 20325 *) 20326 # FIXME: insert proper C++ library support 20327 ld_shlibs_CXX=no 20328 ;; 20329 esac 20330 ;; 20331 20332 vxworks*) 20333 # FIXME: insert proper C++ library support 20334 ld_shlibs_CXX=no 20335 ;; 20336 20337 *) 20338 # FIXME: insert proper C++ library support 20339 ld_shlibs_CXX=no 20340 ;; 20341 esac 20342 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20344$as_echo "$ld_shlibs_CXX" >&6; } 20345 test no = "$ld_shlibs_CXX" && can_build_shared=no 20346 20347 GCC_CXX=$GXX 20348 LD_CXX=$LD 20349 20350 ## CAVEAT EMPTOR: 20351 ## There is no encapsulation within the following macros, do not change 20352 ## the running order or otherwise move them around unless you know exactly 20353 ## what you are doing... 20354 # Dependencies to place before and after the object being linked: 20355predep_objects_CXX= 20356postdep_objects_CXX= 20357predeps_CXX= 20358postdeps_CXX= 20359compiler_lib_search_path_CXX= 20360 20361cat > conftest.$ac_ext <<_LT_EOF 20362class Foo 20363{ 20364public: 20365 Foo (void) { a = 0; } 20366private: 20367 int a; 20368}; 20369_LT_EOF 20370 20371 20372_lt_libdeps_save_CFLAGS=$CFLAGS 20373case "$CC $CFLAGS " in #( 20374*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 20375*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 20376*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 20377esac 20378 20379if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20380 (eval $ac_compile) 2>&5 20381 ac_status=$? 20382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20383 test $ac_status = 0; }; then 20384 # Parse the compiler output and extract the necessary 20385 # objects, libraries and library flags. 20386 20387 # Sentinel used to keep track of whether or not we are before 20388 # the conftest object file. 20389 pre_test_object_deps_done=no 20390 20391 for p in `eval "$output_verbose_link_cmd"`; do 20392 case $prev$p in 20393 20394 -L* | -R* | -l*) 20395 # Some compilers place space between "-{L,R}" and the path. 20396 # Remove the space. 20397 if test x-L = "$p" || 20398 test x-R = "$p"; then 20399 prev=$p 20400 continue 20401 fi 20402 20403 # Expand the sysroot to ease extracting the directories later. 20404 if test -z "$prev"; then 20405 case $p in 20406 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 20407 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 20408 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 20409 esac 20410 fi 20411 case $p in 20412 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 20413 esac 20414 if test no = "$pre_test_object_deps_done"; then 20415 case $prev in 20416 -L | -R) 20417 # Internal compiler library paths should come after those 20418 # provided the user. The postdeps already come after the 20419 # user supplied libs so there is no need to process them. 20420 if test -z "$compiler_lib_search_path_CXX"; then 20421 compiler_lib_search_path_CXX=$prev$p 20422 else 20423 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 20424 fi 20425 ;; 20426 # The "-l" case would never come before the object being 20427 # linked, so don't bother handling this case. 20428 esac 20429 else 20430 if test -z "$postdeps_CXX"; then 20431 postdeps_CXX=$prev$p 20432 else 20433 postdeps_CXX="${postdeps_CXX} $prev$p" 20434 fi 20435 fi 20436 prev= 20437 ;; 20438 20439 *.lto.$objext) ;; # Ignore GCC LTO objects 20440 *.$objext) 20441 # This assumes that the test object file only shows up 20442 # once in the compiler output. 20443 if test "$p" = "conftest.$objext"; then 20444 pre_test_object_deps_done=yes 20445 continue 20446 fi 20447 20448 if test no = "$pre_test_object_deps_done"; then 20449 if test -z "$predep_objects_CXX"; then 20450 predep_objects_CXX=$p 20451 else 20452 predep_objects_CXX="$predep_objects_CXX $p" 20453 fi 20454 else 20455 if test -z "$postdep_objects_CXX"; then 20456 postdep_objects_CXX=$p 20457 else 20458 postdep_objects_CXX="$postdep_objects_CXX $p" 20459 fi 20460 fi 20461 ;; 20462 20463 *) ;; # Ignore the rest. 20464 20465 esac 20466 done 20467 20468 # Clean up. 20469 rm -f a.out a.exe 20470else 20471 echo "libtool.m4: error: problem compiling CXX test program" 20472fi 20473 20474$RM -f confest.$objext 20475CFLAGS=$_lt_libdeps_save_CFLAGS 20476 20477# PORTME: override above test on systems where it is broken 20478case $host_os in 20479interix[3-9]*) 20480 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20481 # hack all around it, let's just trust "g++" to DTRT. 20482 predep_objects_CXX= 20483 postdep_objects_CXX= 20484 postdeps_CXX= 20485 ;; 20486esac 20487 20488 20489case " $postdeps_CXX " in 20490*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20491esac 20492 compiler_lib_search_dirs_CXX= 20493if test -n "${compiler_lib_search_path_CXX}"; then 20494 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 20495fi 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 lt_prog_compiler_wl_CXX= 20528lt_prog_compiler_pic_CXX= 20529lt_prog_compiler_static_CXX= 20530 20531 20532 # C++ specific cases for pic, static, wl, etc. 20533 if test yes = "$GXX"; then 20534 lt_prog_compiler_wl_CXX='-Wl,' 20535 lt_prog_compiler_static_CXX='-static' 20536 20537 case $host_os in 20538 aix*) 20539 # All AIX code is PIC. 20540 if test ia64 = "$host_cpu"; then 20541 # AIX 5 now supports IA64 processor 20542 lt_prog_compiler_static_CXX='-Bstatic' 20543 fi 20544 lt_prog_compiler_pic_CXX='-fPIC' 20545 ;; 20546 20547 amigaos*) 20548 case $host_cpu in 20549 powerpc) 20550 # see comment about AmigaOS4 .so support 20551 lt_prog_compiler_pic_CXX='-fPIC' 20552 ;; 20553 m68k) 20554 # FIXME: we need at least 68020 code to build shared libraries, but 20555 # adding the '-m68020' flag to GCC prevents building anything better, 20556 # like '-m68040'. 20557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20558 ;; 20559 esac 20560 ;; 20561 20562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20563 # PIC is the default for these OSes. 20564 ;; 20565 mingw* | cygwin* | os2* | pw32* | cegcc*) 20566 # This hack is so that the source file can tell whether it is being 20567 # built for inclusion in a dll (and should export symbols for example). 20568 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20569 # (--disable-auto-import) libraries 20570 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20571 case $host_os in 20572 os2*) 20573 lt_prog_compiler_static_CXX='$wl-static' 20574 ;; 20575 esac 20576 ;; 20577 darwin* | rhapsody*) 20578 # PIC is the default on this platform 20579 # Common symbols not allowed in MH_DYLIB files 20580 lt_prog_compiler_pic_CXX='-fno-common' 20581 ;; 20582 *djgpp*) 20583 # DJGPP does not support shared libraries at all 20584 lt_prog_compiler_pic_CXX= 20585 ;; 20586 haiku*) 20587 # PIC is the default for Haiku. 20588 # The "-static" flag exists, but is broken. 20589 lt_prog_compiler_static_CXX= 20590 ;; 20591 interix[3-9]*) 20592 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20593 # Instead, we relocate shared libraries at runtime. 20594 ;; 20595 sysv4*MP*) 20596 if test -d /usr/nec; then 20597 lt_prog_compiler_pic_CXX=-Kconform_pic 20598 fi 20599 ;; 20600 hpux*) 20601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20603 # sets the default TLS model and affects inlining. 20604 case $host_cpu in 20605 hppa*64*) 20606 ;; 20607 *) 20608 lt_prog_compiler_pic_CXX='-fPIC' 20609 ;; 20610 esac 20611 ;; 20612 *qnx* | *nto*) 20613 # QNX uses GNU C++, but need to define -shared option too, otherwise 20614 # it will coredump. 20615 lt_prog_compiler_pic_CXX='-fPIC -shared' 20616 ;; 20617 *) 20618 lt_prog_compiler_pic_CXX='-fPIC' 20619 ;; 20620 esac 20621 else 20622 case $host_os in 20623 aix[4-9]*) 20624 # All AIX code is PIC. 20625 if test ia64 = "$host_cpu"; then 20626 # AIX 5 now supports IA64 processor 20627 lt_prog_compiler_static_CXX='-Bstatic' 20628 else 20629 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20630 fi 20631 ;; 20632 chorus*) 20633 case $cc_basename in 20634 cxch68*) 20635 # Green Hills C++ Compiler 20636 # _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" 20637 ;; 20638 esac 20639 ;; 20640 mingw* | cygwin* | os2* | pw32* | cegcc*) 20641 # This hack is so that the source file can tell whether it is being 20642 # built for inclusion in a dll (and should export symbols for example). 20643 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20644 ;; 20645 dgux*) 20646 case $cc_basename in 20647 ec++*) 20648 lt_prog_compiler_pic_CXX='-KPIC' 20649 ;; 20650 ghcx*) 20651 # Green Hills C++ Compiler 20652 lt_prog_compiler_pic_CXX='-pic' 20653 ;; 20654 *) 20655 ;; 20656 esac 20657 ;; 20658 freebsd* | dragonfly*) 20659 # FreeBSD uses GNU C++ 20660 ;; 20661 hpux9* | hpux10* | hpux11*) 20662 case $cc_basename in 20663 CC*) 20664 lt_prog_compiler_wl_CXX='-Wl,' 20665 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 20666 if test ia64 != "$host_cpu"; then 20667 lt_prog_compiler_pic_CXX='+Z' 20668 fi 20669 ;; 20670 aCC*) 20671 lt_prog_compiler_wl_CXX='-Wl,' 20672 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 20673 case $host_cpu in 20674 hppa*64*|ia64*) 20675 # +Z the default 20676 ;; 20677 *) 20678 lt_prog_compiler_pic_CXX='+Z' 20679 ;; 20680 esac 20681 ;; 20682 *) 20683 ;; 20684 esac 20685 ;; 20686 interix*) 20687 # This is c89, which is MS Visual C++ (no shared libs) 20688 # Anyone wants to do a port? 20689 ;; 20690 irix5* | irix6* | nonstopux*) 20691 case $cc_basename in 20692 CC*) 20693 lt_prog_compiler_wl_CXX='-Wl,' 20694 lt_prog_compiler_static_CXX='-non_shared' 20695 # CC pic flag -KPIC is the default. 20696 ;; 20697 *) 20698 ;; 20699 esac 20700 ;; 20701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20702 case $cc_basename in 20703 KCC*) 20704 # KAI C++ Compiler 20705 lt_prog_compiler_wl_CXX='--backend -Wl,' 20706 lt_prog_compiler_pic_CXX='-fPIC' 20707 ;; 20708 ecpc* ) 20709 # old Intel C++ for x86_64, which still supported -KPIC. 20710 lt_prog_compiler_wl_CXX='-Wl,' 20711 lt_prog_compiler_pic_CXX='-KPIC' 20712 lt_prog_compiler_static_CXX='-static' 20713 ;; 20714 icpc* ) 20715 # Intel C++, used to be incompatible with GCC. 20716 # ICC 10 doesn't accept -KPIC any more. 20717 lt_prog_compiler_wl_CXX='-Wl,' 20718 lt_prog_compiler_pic_CXX='-fPIC' 20719 lt_prog_compiler_static_CXX='-static' 20720 ;; 20721 pgCC* | pgcpp*) 20722 # Portland Group C++ compiler 20723 lt_prog_compiler_wl_CXX='-Wl,' 20724 lt_prog_compiler_pic_CXX='-fpic' 20725 lt_prog_compiler_static_CXX='-Bstatic' 20726 ;; 20727 cxx*) 20728 # Compaq C++ 20729 # Make sure the PIC flag is empty. It appears that all Alpha 20730 # Linux and Compaq Tru64 Unix objects are PIC. 20731 lt_prog_compiler_pic_CXX= 20732 lt_prog_compiler_static_CXX='-non_shared' 20733 ;; 20734 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 20735 # IBM XL 8.0, 9.0 on PPC and BlueGene 20736 lt_prog_compiler_wl_CXX='-Wl,' 20737 lt_prog_compiler_pic_CXX='-qpic' 20738 lt_prog_compiler_static_CXX='-qstaticlink' 20739 ;; 20740 *) 20741 case `$CC -V 2>&1 | sed 5q` in 20742 *Sun\ C*) 20743 # Sun C++ 5.9 20744 lt_prog_compiler_pic_CXX='-KPIC' 20745 lt_prog_compiler_static_CXX='-Bstatic' 20746 lt_prog_compiler_wl_CXX='-Qoption ld ' 20747 ;; 20748 esac 20749 ;; 20750 esac 20751 ;; 20752 lynxos*) 20753 ;; 20754 m88k*) 20755 ;; 20756 mvs*) 20757 case $cc_basename in 20758 cxx*) 20759 lt_prog_compiler_pic_CXX='-W c,exportall' 20760 ;; 20761 *) 20762 ;; 20763 esac 20764 ;; 20765 netbsd*) 20766 ;; 20767 *qnx* | *nto*) 20768 # QNX uses GNU C++, but need to define -shared option too, otherwise 20769 # it will coredump. 20770 lt_prog_compiler_pic_CXX='-fPIC -shared' 20771 ;; 20772 osf3* | osf4* | osf5*) 20773 case $cc_basename in 20774 KCC*) 20775 lt_prog_compiler_wl_CXX='--backend -Wl,' 20776 ;; 20777 RCC*) 20778 # Rational C++ 2.4.1 20779 lt_prog_compiler_pic_CXX='-pic' 20780 ;; 20781 cxx*) 20782 # Digital/Compaq C++ 20783 lt_prog_compiler_wl_CXX='-Wl,' 20784 # Make sure the PIC flag is empty. It appears that all Alpha 20785 # Linux and Compaq Tru64 Unix objects are PIC. 20786 lt_prog_compiler_pic_CXX= 20787 lt_prog_compiler_static_CXX='-non_shared' 20788 ;; 20789 *) 20790 ;; 20791 esac 20792 ;; 20793 psos*) 20794 ;; 20795 solaris*) 20796 case $cc_basename in 20797 CC* | sunCC*) 20798 # Sun C++ 4.2, 5.x and Centerline C++ 20799 lt_prog_compiler_pic_CXX='-KPIC' 20800 lt_prog_compiler_static_CXX='-Bstatic' 20801 lt_prog_compiler_wl_CXX='-Qoption ld ' 20802 ;; 20803 gcx*) 20804 # Green Hills C++ Compiler 20805 lt_prog_compiler_pic_CXX='-PIC' 20806 ;; 20807 *) 20808 ;; 20809 esac 20810 ;; 20811 sunos4*) 20812 case $cc_basename in 20813 CC*) 20814 # Sun C++ 4.x 20815 lt_prog_compiler_pic_CXX='-pic' 20816 lt_prog_compiler_static_CXX='-Bstatic' 20817 ;; 20818 lcc*) 20819 # Lucid 20820 lt_prog_compiler_pic_CXX='-pic' 20821 ;; 20822 *) 20823 ;; 20824 esac 20825 ;; 20826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20827 case $cc_basename in 20828 CC*) 20829 lt_prog_compiler_wl_CXX='-Wl,' 20830 lt_prog_compiler_pic_CXX='-KPIC' 20831 lt_prog_compiler_static_CXX='-Bstatic' 20832 ;; 20833 esac 20834 ;; 20835 tandem*) 20836 case $cc_basename in 20837 NCC*) 20838 # NonStop-UX NCC 3.20 20839 lt_prog_compiler_pic_CXX='-KPIC' 20840 ;; 20841 *) 20842 ;; 20843 esac 20844 ;; 20845 vxworks*) 20846 ;; 20847 *) 20848 lt_prog_compiler_can_build_shared_CXX=no 20849 ;; 20850 esac 20851 fi 20852 20853case $host_os in 20854 # For platforms that do not support PIC, -DPIC is meaningless: 20855 *djgpp*) 20856 lt_prog_compiler_pic_CXX= 20857 ;; 20858 *) 20859 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 20860 ;; 20861esac 20862 20863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20864$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20865if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 20866 $as_echo_n "(cached) " >&6 20867else 20868 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 20869fi 20870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 20871$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 20872lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 20873 20874# 20875# Check to make sure the PIC flag actually works. 20876# 20877if test -n "$lt_prog_compiler_pic_CXX"; then 20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 20879$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 20880if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 20881 $as_echo_n "(cached) " >&6 20882else 20883 lt_cv_prog_compiler_pic_works_CXX=no 20884 ac_outfile=conftest.$ac_objext 20885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 20887 # Insert the option either (1) after the last *FLAGS variable, or 20888 # (2) before a word containing "conftest.", or (3) at the end. 20889 # Note that $ac_compile itself does not contain backslashes and begins 20890 # with a dollar sign (not a hyphen), so the echo should work correctly. 20891 # The option is referenced via a variable to avoid confusing sed. 20892 lt_compile=`echo "$ac_compile" | $SED \ 20893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20895 -e 's:$: $lt_compiler_flag:'` 20896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20897 (eval "$lt_compile" 2>conftest.err) 20898 ac_status=$? 20899 cat conftest.err >&5 20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20901 if (exit $ac_status) && test -s "$ac_outfile"; then 20902 # The compiler can only warn and ignore the option if not recognized 20903 # So say no if there are warnings other than the usual output. 20904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20907 lt_cv_prog_compiler_pic_works_CXX=yes 20908 fi 20909 fi 20910 $RM conftest* 20911 20912fi 20913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 20914$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 20915 20916if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 20917 case $lt_prog_compiler_pic_CXX in 20918 "" | " "*) ;; 20919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 20920 esac 20921else 20922 lt_prog_compiler_pic_CXX= 20923 lt_prog_compiler_can_build_shared_CXX=no 20924fi 20925 20926fi 20927 20928 20929 20930 20931 20932# 20933# Check to make sure the static flag actually works. 20934# 20935wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 20936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20937$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 20938if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 20939 $as_echo_n "(cached) " >&6 20940else 20941 lt_cv_prog_compiler_static_works_CXX=no 20942 save_LDFLAGS=$LDFLAGS 20943 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20944 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20946 # The linker can only warn and ignore the option if not recognized 20947 # So say no if there are warnings 20948 if test -s conftest.err; then 20949 # Append any errors to the config.log. 20950 cat conftest.err 1>&5 20951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20953 if diff conftest.exp conftest.er2 >/dev/null; then 20954 lt_cv_prog_compiler_static_works_CXX=yes 20955 fi 20956 else 20957 lt_cv_prog_compiler_static_works_CXX=yes 20958 fi 20959 fi 20960 $RM -r conftest* 20961 LDFLAGS=$save_LDFLAGS 20962 20963fi 20964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 20965$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 20966 20967if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 20968 : 20969else 20970 lt_prog_compiler_static_CXX= 20971fi 20972 20973 20974 20975 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20977$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20978if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 20979 $as_echo_n "(cached) " >&6 20980else 20981 lt_cv_prog_compiler_c_o_CXX=no 20982 $RM -r conftest 2>/dev/null 20983 mkdir conftest 20984 cd conftest 20985 mkdir out 20986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20987 20988 lt_compiler_flag="-o out/conftest2.$ac_objext" 20989 # Insert the option either (1) after the last *FLAGS variable, or 20990 # (2) before a word containing "conftest.", or (3) at the end. 20991 # Note that $ac_compile itself does not contain backslashes and begins 20992 # with a dollar sign (not a hyphen), so the echo should work correctly. 20993 lt_compile=`echo "$ac_compile" | $SED \ 20994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20996 -e 's:$: $lt_compiler_flag:'` 20997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20998 (eval "$lt_compile" 2>out/conftest.err) 20999 ac_status=$? 21000 cat out/conftest.err >&5 21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21002 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21003 then 21004 # The compiler can only warn and ignore the option if not recognized 21005 # So say no if there are warnings 21006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21009 lt_cv_prog_compiler_c_o_CXX=yes 21010 fi 21011 fi 21012 chmod u+w . 2>&5 21013 $RM conftest* 21014 # SGI C++ compiler will create directory out/ii_files/ for 21015 # template instantiation 21016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21017 $RM out/* && rmdir out 21018 cd .. 21019 $RM -r conftest 21020 $RM conftest* 21021 21022fi 21023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21024$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21025 21026 21027 21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21029$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21030if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21031 $as_echo_n "(cached) " >&6 21032else 21033 lt_cv_prog_compiler_c_o_CXX=no 21034 $RM -r conftest 2>/dev/null 21035 mkdir conftest 21036 cd conftest 21037 mkdir out 21038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21039 21040 lt_compiler_flag="-o out/conftest2.$ac_objext" 21041 # Insert the option either (1) after the last *FLAGS variable, or 21042 # (2) before a word containing "conftest.", or (3) at the end. 21043 # Note that $ac_compile itself does not contain backslashes and begins 21044 # with a dollar sign (not a hyphen), so the echo should work correctly. 21045 lt_compile=`echo "$ac_compile" | $SED \ 21046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21048 -e 's:$: $lt_compiler_flag:'` 21049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21050 (eval "$lt_compile" 2>out/conftest.err) 21051 ac_status=$? 21052 cat out/conftest.err >&5 21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21054 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21055 then 21056 # The compiler can only warn and ignore the option if not recognized 21057 # So say no if there are warnings 21058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21061 lt_cv_prog_compiler_c_o_CXX=yes 21062 fi 21063 fi 21064 chmod u+w . 2>&5 21065 $RM conftest* 21066 # SGI C++ compiler will create directory out/ii_files/ for 21067 # template instantiation 21068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21069 $RM out/* && rmdir out 21070 cd .. 21071 $RM -r conftest 21072 $RM conftest* 21073 21074fi 21075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21076$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21077 21078 21079 21080 21081hard_links=nottested 21082if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 21083 # do not overwrite the value of need_locks provided by the user 21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21085$as_echo_n "checking if we can lock with hard links... " >&6; } 21086 hard_links=yes 21087 $RM conftest* 21088 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21089 touch conftest.a 21090 ln conftest.a conftest.b 2>&5 || hard_links=no 21091 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21093$as_echo "$hard_links" >&6; } 21094 if test no = "$hard_links"; then 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 21096$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 21097 need_locks=warn 21098 fi 21099else 21100 need_locks=no 21101fi 21102 21103 21104 21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21107 21108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21109 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21110 case $host_os in 21111 aix[4-9]*) 21112 # If we're using GNU nm, then we don't want the "-C" option. 21113 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 21114 # Without the "-l" option, or with the "-B" option, AIX nm treats 21115 # weak defined symbols like other global defined symbols, whereas 21116 # GNU nm marks them as "W". 21117 # While the 'weak' keyword is ignored in the Export File, we need 21118 # it in the Import File for the 'aix-soname' feature, so we have 21119 # to replace the "-B" option with "-P" for AIX nm. 21120 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21121 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' 21122 else 21123 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' 21124 fi 21125 ;; 21126 pw32*) 21127 export_symbols_cmds_CXX=$ltdll_cmds 21128 ;; 21129 cygwin* | mingw* | cegcc*) 21130 case $cc_basename in 21131 cl*) 21132 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21133 ;; 21134 *) 21135 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' 21136 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 21137 ;; 21138 esac 21139 ;; 21140 *) 21141 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21142 ;; 21143 esac 21144 21145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21146$as_echo "$ld_shlibs_CXX" >&6; } 21147test no = "$ld_shlibs_CXX" && can_build_shared=no 21148 21149with_gnu_ld_CXX=$with_gnu_ld 21150 21151 21152 21153 21154 21155 21156# 21157# Do we need to explicitly link libc? 21158# 21159case "x$archive_cmds_need_lc_CXX" in 21160x|xyes) 21161 # Assume -lc should be added 21162 archive_cmds_need_lc_CXX=yes 21163 21164 if test yes,yes = "$GCC,$enable_shared"; then 21165 case $archive_cmds_CXX in 21166 *'~'*) 21167 # FIXME: we may have to deal with multi-command sequences. 21168 ;; 21169 '$CC '*) 21170 # Test whether the compiler implicitly links with -lc since on some 21171 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21172 # to ld, don't add -lc before -lgcc. 21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21174$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21175if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 21176 $as_echo_n "(cached) " >&6 21177else 21178 $RM conftest* 21179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21180 21181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21182 (eval $ac_compile) 2>&5 21183 ac_status=$? 21184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21185 test $ac_status = 0; } 2>conftest.err; then 21186 soname=conftest 21187 lib=conftest 21188 libobjs=conftest.$ac_objext 21189 deplibs= 21190 wl=$lt_prog_compiler_wl_CXX 21191 pic_flag=$lt_prog_compiler_pic_CXX 21192 compiler_flags=-v 21193 linker_flags=-v 21194 verstring= 21195 output_objdir=. 21196 libname=conftest 21197 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21198 allow_undefined_flag_CXX= 21199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21200 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21201 ac_status=$? 21202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21203 test $ac_status = 0; } 21204 then 21205 lt_cv_archive_cmds_need_lc_CXX=no 21206 else 21207 lt_cv_archive_cmds_need_lc_CXX=yes 21208 fi 21209 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21210 else 21211 cat conftest.err 1>&5 21212 fi 21213 $RM conftest* 21214 21215fi 21216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21217$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21218 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21219 ;; 21220 esac 21221 fi 21222 ;; 21223esac 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21287$as_echo_n "checking dynamic linker characteristics... " >&6; } 21288 21289library_names_spec= 21290libname_spec='lib$name' 21291soname_spec= 21292shrext_cmds=.so 21293postinstall_cmds= 21294postuninstall_cmds= 21295finish_cmds= 21296finish_eval= 21297shlibpath_var= 21298shlibpath_overrides_runpath=unknown 21299version_type=none 21300dynamic_linker="$host_os ld.so" 21301sys_lib_dlsearch_path_spec="/lib /usr/lib" 21302need_lib_prefix=unknown 21303hardcode_into_libs=no 21304 21305# when you set need_version to no, make sure it does not cause -set_version 21306# flags to be left without arguments 21307need_version=unknown 21308 21309 21310 21311case $host_os in 21312aix3*) 21313 version_type=linux # correct to gnu/linux during the next big refactor 21314 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21315 shlibpath_var=LIBPATH 21316 21317 # AIX 3 has no versioning support, so we append a major version to the name. 21318 soname_spec='$libname$release$shared_ext$major' 21319 ;; 21320 21321aix[4-9]*) 21322 version_type=linux # correct to gnu/linux during the next big refactor 21323 need_lib_prefix=no 21324 need_version=no 21325 hardcode_into_libs=yes 21326 if test ia64 = "$host_cpu"; then 21327 # AIX 5 supports IA64 21328 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21329 shlibpath_var=LD_LIBRARY_PATH 21330 else 21331 # With GCC up to 2.95.x, collect2 would create an import file 21332 # for dependence libraries. The import file would start with 21333 # the line '#! .'. This would cause the generated library to 21334 # depend on '.', always an invalid library. This was fixed in 21335 # development snapshots of GCC prior to 3.0. 21336 case $host_os in 21337 aix4 | aix4.[01] | aix4.[01].*) 21338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21339 echo ' yes ' 21340 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21341 : 21342 else 21343 can_build_shared=no 21344 fi 21345 ;; 21346 esac 21347 # Using Import Files as archive members, it is possible to support 21348 # filename-based versioning of shared library archives on AIX. While 21349 # this would work for both with and without runtime linking, it will 21350 # prevent static linking of such archives. So we do filename-based 21351 # shared library versioning with .so extension only, which is used 21352 # when both runtime linking and shared linking is enabled. 21353 # Unfortunately, runtime linking may impact performance, so we do 21354 # not want this to be the default eventually. Also, we use the 21355 # versioned .so libs for executables only if there is the -brtl 21356 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21357 # To allow for filename-based versioning support, we need to create 21358 # libNAME.so.V as an archive file, containing: 21359 # *) an Import File, referring to the versioned filename of the 21360 # archive as well as the shared archive member, telling the 21361 # bitwidth (32 or 64) of that shared object, and providing the 21362 # list of exported symbols of that shared object, eventually 21363 # decorated with the 'weak' keyword 21364 # *) the shared object with the F_LOADONLY flag set, to really avoid 21365 # it being seen by the linker. 21366 # At run time we better use the real file rather than another symlink, 21367 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21368 21369 case $with_aix_soname,$aix_use_runtimelinking in 21370 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21371 # soname into executable. Probably we can add versioning support to 21372 # collect2, so additional links can be useful in future. 21373 aix,yes) # traditional libtool 21374 dynamic_linker='AIX unversionable lib.so' 21375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21376 # instead of lib<name>.a to let people know that these are not 21377 # typical AIX shared libraries. 21378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21379 ;; 21380 aix,no) # traditional AIX only 21381 dynamic_linker='AIX lib.a(lib.so.V)' 21382 # We preserve .a as extension for shared libraries through AIX4.2 21383 # and later when we are not doing run time linking. 21384 library_names_spec='$libname$release.a $libname.a' 21385 soname_spec='$libname$release$shared_ext$major' 21386 ;; 21387 svr4,*) # full svr4 only 21388 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21389 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21390 # We do not specify a path in Import Files, so LIBPATH fires. 21391 shlibpath_overrides_runpath=yes 21392 ;; 21393 *,yes) # both, prefer svr4 21394 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21395 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21396 # unpreferred sharedlib libNAME.a needs extra handling 21397 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"' 21398 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"' 21399 # We do not specify a path in Import Files, so LIBPATH fires. 21400 shlibpath_overrides_runpath=yes 21401 ;; 21402 *,no) # both, prefer aix 21403 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21404 library_names_spec='$libname$release.a $libname.a' 21405 soname_spec='$libname$release$shared_ext$major' 21406 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21407 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)' 21408 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"' 21409 ;; 21410 esac 21411 shlibpath_var=LIBPATH 21412 fi 21413 ;; 21414 21415amigaos*) 21416 case $host_cpu in 21417 powerpc) 21418 # Since July 2007 AmigaOS4 officially supports .so libraries. 21419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21421 ;; 21422 m68k) 21423 library_names_spec='$libname.ixlibrary $libname.a' 21424 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21425 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' 21426 ;; 21427 esac 21428 ;; 21429 21430beos*) 21431 library_names_spec='$libname$shared_ext' 21432 dynamic_linker="$host_os ld.so" 21433 shlibpath_var=LIBRARY_PATH 21434 ;; 21435 21436bsdi[45]*) 21437 version_type=linux # correct to gnu/linux during the next big refactor 21438 need_version=no 21439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21440 soname_spec='$libname$release$shared_ext$major' 21441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21442 shlibpath_var=LD_LIBRARY_PATH 21443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21445 # the default ld.so.conf also contains /usr/contrib/lib and 21446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21447 # libtool to hard-code these into programs 21448 ;; 21449 21450cygwin* | mingw* | pw32* | cegcc*) 21451 version_type=windows 21452 shrext_cmds=.dll 21453 need_version=no 21454 need_lib_prefix=no 21455 21456 case $GCC,$cc_basename in 21457 yes,*) 21458 # gcc 21459 library_names_spec='$libname.dll.a' 21460 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21461 postinstall_cmds='base_file=`basename \$file`~ 21462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21463 dldir=$destdir/`dirname \$dlpath`~ 21464 test -d \$dldir || mkdir -p \$dldir~ 21465 $install_prog $dir/$dlname \$dldir/$dlname~ 21466 chmod a+x \$dldir/$dlname~ 21467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21469 fi' 21470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21471 dlpath=$dir/\$dldll~ 21472 $RM \$dlpath' 21473 shlibpath_overrides_runpath=yes 21474 21475 case $host_os in 21476 cygwin*) 21477 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21478 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21479 21480 ;; 21481 mingw* | cegcc*) 21482 # MinGW DLLs use traditional 'lib' prefix 21483 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21484 ;; 21485 pw32*) 21486 # pw32 DLLs use 'pw' prefix rather than 'lib' 21487 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21488 ;; 21489 esac 21490 dynamic_linker='Win32 ld.exe' 21491 ;; 21492 21493 *,cl*) 21494 # Native MSVC 21495 libname_spec='$name' 21496 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21497 library_names_spec='$libname.dll.lib' 21498 21499 case $build_os in 21500 mingw*) 21501 sys_lib_search_path_spec= 21502 lt_save_ifs=$IFS 21503 IFS=';' 21504 for lt_path in $LIB 21505 do 21506 IFS=$lt_save_ifs 21507 # Let DOS variable expansion print the short 8.3 style file name. 21508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21510 done 21511 IFS=$lt_save_ifs 21512 # Convert to MSYS style. 21513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21514 ;; 21515 cygwin*) 21516 # Convert to unix form, then to dos form, then back to unix form 21517 # but this time dos style (no spaces!) so that the unix form looks 21518 # like /cygdrive/c/PROGRA~1:/cygdr... 21519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21522 ;; 21523 *) 21524 sys_lib_search_path_spec=$LIB 21525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21526 # It is most probably a Windows format PATH. 21527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21528 else 21529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21530 fi 21531 # FIXME: find the short name or the path components, as spaces are 21532 # common. (e.g. "Program Files" -> "PROGRA~1") 21533 ;; 21534 esac 21535 21536 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21537 postinstall_cmds='base_file=`basename \$file`~ 21538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21539 dldir=$destdir/`dirname \$dlpath`~ 21540 test -d \$dldir || mkdir -p \$dldir~ 21541 $install_prog $dir/$dlname \$dldir/$dlname' 21542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21543 dlpath=$dir/\$dldll~ 21544 $RM \$dlpath' 21545 shlibpath_overrides_runpath=yes 21546 dynamic_linker='Win32 link.exe' 21547 ;; 21548 21549 *) 21550 # Assume MSVC wrapper 21551 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21552 dynamic_linker='Win32 ld.exe' 21553 ;; 21554 esac 21555 # FIXME: first we should search . and the directory the executable is in 21556 shlibpath_var=PATH 21557 ;; 21558 21559darwin* | rhapsody*) 21560 dynamic_linker="$host_os dyld" 21561 version_type=darwin 21562 need_lib_prefix=no 21563 need_version=no 21564 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21565 soname_spec='$libname$release$major$shared_ext' 21566 shlibpath_overrides_runpath=yes 21567 shlibpath_var=DYLD_LIBRARY_PATH 21568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21569 21570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21571 ;; 21572 21573dgux*) 21574 version_type=linux # correct to gnu/linux during the next big refactor 21575 need_lib_prefix=no 21576 need_version=no 21577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21578 soname_spec='$libname$release$shared_ext$major' 21579 shlibpath_var=LD_LIBRARY_PATH 21580 ;; 21581 21582freebsd* | dragonfly*) 21583 # DragonFly does not have aout. When/if they implement a new 21584 # versioning mechanism, adjust this. 21585 if test -x /usr/bin/objformat; then 21586 objformat=`/usr/bin/objformat` 21587 else 21588 case $host_os in 21589 freebsd[23].*) objformat=aout ;; 21590 *) objformat=elf ;; 21591 esac 21592 fi 21593 version_type=freebsd-$objformat 21594 case $version_type in 21595 freebsd-elf*) 21596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21597 soname_spec='$libname$release$shared_ext$major' 21598 need_version=no 21599 need_lib_prefix=no 21600 ;; 21601 freebsd-*) 21602 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21603 need_version=yes 21604 ;; 21605 esac 21606 shlibpath_var=LD_LIBRARY_PATH 21607 case $host_os in 21608 freebsd2.*) 21609 shlibpath_overrides_runpath=yes 21610 ;; 21611 freebsd3.[01]* | freebsdelf3.[01]*) 21612 shlibpath_overrides_runpath=yes 21613 hardcode_into_libs=yes 21614 ;; 21615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21617 shlibpath_overrides_runpath=no 21618 hardcode_into_libs=yes 21619 ;; 21620 *) # from 4.6 on, and DragonFly 21621 shlibpath_overrides_runpath=yes 21622 hardcode_into_libs=yes 21623 ;; 21624 esac 21625 ;; 21626 21627haiku*) 21628 version_type=linux # correct to gnu/linux during the next big refactor 21629 need_lib_prefix=no 21630 need_version=no 21631 dynamic_linker="$host_os runtime_loader" 21632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21633 soname_spec='$libname$release$shared_ext$major' 21634 shlibpath_var=LIBRARY_PATH 21635 shlibpath_overrides_runpath=no 21636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21637 hardcode_into_libs=yes 21638 ;; 21639 21640hpux9* | hpux10* | hpux11*) 21641 # Give a soname corresponding to the major version so that dld.sl refuses to 21642 # link against other versions. 21643 version_type=sunos 21644 need_lib_prefix=no 21645 need_version=no 21646 case $host_cpu in 21647 ia64*) 21648 shrext_cmds='.so' 21649 hardcode_into_libs=yes 21650 dynamic_linker="$host_os dld.so" 21651 shlibpath_var=LD_LIBRARY_PATH 21652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21654 soname_spec='$libname$release$shared_ext$major' 21655 if test 32 = "$HPUX_IA64_MODE"; then 21656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21657 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21658 else 21659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21660 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21661 fi 21662 ;; 21663 hppa*64*) 21664 shrext_cmds='.sl' 21665 hardcode_into_libs=yes 21666 dynamic_linker="$host_os dld.sl" 21667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21670 soname_spec='$libname$release$shared_ext$major' 21671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21673 ;; 21674 *) 21675 shrext_cmds='.sl' 21676 dynamic_linker="$host_os dld.sl" 21677 shlibpath_var=SHLIB_PATH 21678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21680 soname_spec='$libname$release$shared_ext$major' 21681 ;; 21682 esac 21683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21684 postinstall_cmds='chmod 555 $lib' 21685 # or fails outright, so override atomically: 21686 install_override_mode=555 21687 ;; 21688 21689interix[3-9]*) 21690 version_type=linux # correct to gnu/linux during the next big refactor 21691 need_lib_prefix=no 21692 need_version=no 21693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21694 soname_spec='$libname$release$shared_ext$major' 21695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21696 shlibpath_var=LD_LIBRARY_PATH 21697 shlibpath_overrides_runpath=no 21698 hardcode_into_libs=yes 21699 ;; 21700 21701irix5* | irix6* | nonstopux*) 21702 case $host_os in 21703 nonstopux*) version_type=nonstopux ;; 21704 *) 21705 if test yes = "$lt_cv_prog_gnu_ld"; then 21706 version_type=linux # correct to gnu/linux during the next big refactor 21707 else 21708 version_type=irix 21709 fi ;; 21710 esac 21711 need_lib_prefix=no 21712 need_version=no 21713 soname_spec='$libname$release$shared_ext$major' 21714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21715 case $host_os in 21716 irix5* | nonstopux*) 21717 libsuff= shlibsuff= 21718 ;; 21719 *) 21720 case $LD in # libtool.m4 will add one of these switches to LD 21721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21722 libsuff= shlibsuff= libmagic=32-bit;; 21723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21724 libsuff=32 shlibsuff=N32 libmagic=N32;; 21725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21726 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21727 *) libsuff= shlibsuff= libmagic=never-match;; 21728 esac 21729 ;; 21730 esac 21731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21732 shlibpath_overrides_runpath=no 21733 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21734 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21735 hardcode_into_libs=yes 21736 ;; 21737 21738# No shared lib support for Linux oldld, aout, or coff. 21739linux*oldld* | linux*aout* | linux*coff*) 21740 dynamic_linker=no 21741 ;; 21742 21743linux*android*) 21744 version_type=none # Android doesn't support versioned libraries. 21745 need_lib_prefix=no 21746 need_version=no 21747 library_names_spec='$libname$release$shared_ext' 21748 soname_spec='$libname$release$shared_ext' 21749 finish_cmds= 21750 shlibpath_var=LD_LIBRARY_PATH 21751 shlibpath_overrides_runpath=yes 21752 21753 # This implies no fast_install, which is unacceptable. 21754 # Some rework will be needed to allow for fast_install 21755 # before this can be enabled. 21756 hardcode_into_libs=yes 21757 21758 dynamic_linker='Android linker' 21759 # Don't embed -rpath directories since the linker doesn't support them. 21760 hardcode_libdir_flag_spec_CXX='-L$libdir' 21761 ;; 21762 21763# This must be glibc/ELF. 21764linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21765 version_type=linux # correct to gnu/linux during the next big refactor 21766 need_lib_prefix=no 21767 need_version=no 21768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21769 soname_spec='$libname$release$shared_ext$major' 21770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21771 shlibpath_var=LD_LIBRARY_PATH 21772 shlibpath_overrides_runpath=no 21773 21774 # Some binutils ld are patched to set DT_RUNPATH 21775 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21776 $as_echo_n "(cached) " >&6 21777else 21778 lt_cv_shlibpath_overrides_runpath=no 21779 save_LDFLAGS=$LDFLAGS 21780 save_libdir=$libdir 21781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21784/* end confdefs.h. */ 21785 21786int 21787main () 21788{ 21789 21790 ; 21791 return 0; 21792} 21793_ACEOF 21794if ac_fn_cxx_try_link "$LINENO"; then : 21795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21796 lt_cv_shlibpath_overrides_runpath=yes 21797fi 21798fi 21799rm -f core conftest.err conftest.$ac_objext \ 21800 conftest$ac_exeext conftest.$ac_ext 21801 LDFLAGS=$save_LDFLAGS 21802 libdir=$save_libdir 21803 21804fi 21805 21806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21807 21808 # This implies no fast_install, which is unacceptable. 21809 # Some rework will be needed to allow for fast_install 21810 # before this can be enabled. 21811 hardcode_into_libs=yes 21812 21813 # Add ABI-specific directories to the system library path. 21814 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 21815 21816 # Ideally, we could use ldconfig to report *all* directores which are 21817 # searched for libraries, however this is still not possible. Aside from not 21818 # being certain /sbin/ldconfig is available, command 21819 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21820 # even though it is searched at run-time. Try to do the best guess by 21821 # appending ld.so.conf contents (and includes) to the search path. 21822 if test -f /etc/ld.so.conf; then 21823 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' ' '` 21824 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 21825 fi 21826 21827 # We used to test for /lib/ld.so.1 and disable shared libraries on 21828 # powerpc, because MkLinux only supported shared libraries with the 21829 # GNU dynamic linker. Since this was broken with cross compilers, 21830 # most powerpc-linux boxes support dynamic linking these days and 21831 # people can always --disable-shared, the test was removed, and we 21832 # assume the GNU/Linux dynamic linker is in use. 21833 dynamic_linker='GNU/Linux ld.so' 21834 ;; 21835 21836netbsd*) 21837 version_type=sunos 21838 need_lib_prefix=no 21839 need_version=no 21840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21843 dynamic_linker='NetBSD (a.out) ld.so' 21844 else 21845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21846 soname_spec='$libname$release$shared_ext$major' 21847 dynamic_linker='NetBSD ld.elf_so' 21848 fi 21849 shlibpath_var=LD_LIBRARY_PATH 21850 shlibpath_overrides_runpath=yes 21851 hardcode_into_libs=yes 21852 ;; 21853 21854newsos6) 21855 version_type=linux # correct to gnu/linux during the next big refactor 21856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21857 shlibpath_var=LD_LIBRARY_PATH 21858 shlibpath_overrides_runpath=yes 21859 ;; 21860 21861*nto* | *qnx*) 21862 version_type=qnx 21863 need_lib_prefix=no 21864 need_version=no 21865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21866 soname_spec='$libname$release$shared_ext$major' 21867 shlibpath_var=LD_LIBRARY_PATH 21868 shlibpath_overrides_runpath=no 21869 hardcode_into_libs=yes 21870 dynamic_linker='ldqnx.so' 21871 ;; 21872 21873openbsd* | bitrig*) 21874 version_type=sunos 21875 sys_lib_dlsearch_path_spec=/usr/lib 21876 need_lib_prefix=no 21877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21878 need_version=no 21879 else 21880 need_version=yes 21881 fi 21882 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21884 shlibpath_var=LD_LIBRARY_PATH 21885 shlibpath_overrides_runpath=yes 21886 ;; 21887 21888os2*) 21889 libname_spec='$name' 21890 version_type=windows 21891 shrext_cmds=.dll 21892 need_version=no 21893 need_lib_prefix=no 21894 # OS/2 can only load a DLL with a base name of 8 characters or less. 21895 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21896 v=$($ECHO $release$versuffix | tr -d .-); 21897 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21898 $ECHO $n$v`$shared_ext' 21899 library_names_spec='${libname}_dll.$libext' 21900 dynamic_linker='OS/2 ld.exe' 21901 shlibpath_var=BEGINLIBPATH 21902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21904 postinstall_cmds='base_file=`basename \$file`~ 21905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21906 dldir=$destdir/`dirname \$dlpath`~ 21907 test -d \$dldir || mkdir -p \$dldir~ 21908 $install_prog $dir/$dlname \$dldir/$dlname~ 21909 chmod a+x \$dldir/$dlname~ 21910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21912 fi' 21913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21914 dlpath=$dir/\$dldll~ 21915 $RM \$dlpath' 21916 ;; 21917 21918osf3* | osf4* | osf5*) 21919 version_type=osf 21920 need_lib_prefix=no 21921 need_version=no 21922 soname_spec='$libname$release$shared_ext$major' 21923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21924 shlibpath_var=LD_LIBRARY_PATH 21925 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21927 ;; 21928 21929rdos*) 21930 dynamic_linker=no 21931 ;; 21932 21933solaris*) 21934 version_type=linux # correct to gnu/linux during the next big refactor 21935 need_lib_prefix=no 21936 need_version=no 21937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21938 soname_spec='$libname$release$shared_ext$major' 21939 shlibpath_var=LD_LIBRARY_PATH 21940 shlibpath_overrides_runpath=yes 21941 hardcode_into_libs=yes 21942 # ldd complains unless libraries are executable 21943 postinstall_cmds='chmod +x $lib' 21944 ;; 21945 21946sunos4*) 21947 version_type=sunos 21948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21950 shlibpath_var=LD_LIBRARY_PATH 21951 shlibpath_overrides_runpath=yes 21952 if test yes = "$with_gnu_ld"; then 21953 need_lib_prefix=no 21954 fi 21955 need_version=yes 21956 ;; 21957 21958sysv4 | sysv4.3*) 21959 version_type=linux # correct to gnu/linux during the next big refactor 21960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21961 soname_spec='$libname$release$shared_ext$major' 21962 shlibpath_var=LD_LIBRARY_PATH 21963 case $host_vendor in 21964 sni) 21965 shlibpath_overrides_runpath=no 21966 need_lib_prefix=no 21967 runpath_var=LD_RUN_PATH 21968 ;; 21969 siemens) 21970 need_lib_prefix=no 21971 ;; 21972 motorola) 21973 need_lib_prefix=no 21974 need_version=no 21975 shlibpath_overrides_runpath=no 21976 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21977 ;; 21978 esac 21979 ;; 21980 21981sysv4*MP*) 21982 if test -d /usr/nec; then 21983 version_type=linux # correct to gnu/linux during the next big refactor 21984 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21985 soname_spec='$libname$shared_ext.$major' 21986 shlibpath_var=LD_LIBRARY_PATH 21987 fi 21988 ;; 21989 21990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21991 version_type=sco 21992 need_lib_prefix=no 21993 need_version=no 21994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21995 soname_spec='$libname$release$shared_ext$major' 21996 shlibpath_var=LD_LIBRARY_PATH 21997 shlibpath_overrides_runpath=yes 21998 hardcode_into_libs=yes 21999 if test yes = "$with_gnu_ld"; then 22000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22001 else 22002 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22003 case $host_os in 22004 sco3.2v5*) 22005 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22006 ;; 22007 esac 22008 fi 22009 sys_lib_dlsearch_path_spec='/usr/lib' 22010 ;; 22011 22012tpf*) 22013 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22014 version_type=linux # correct to gnu/linux during the next big refactor 22015 need_lib_prefix=no 22016 need_version=no 22017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22018 shlibpath_var=LD_LIBRARY_PATH 22019 shlibpath_overrides_runpath=no 22020 hardcode_into_libs=yes 22021 ;; 22022 22023uts4*) 22024 version_type=linux # correct to gnu/linux during the next big refactor 22025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22026 soname_spec='$libname$release$shared_ext$major' 22027 shlibpath_var=LD_LIBRARY_PATH 22028 ;; 22029 22030*) 22031 dynamic_linker=no 22032 ;; 22033esac 22034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22035$as_echo "$dynamic_linker" >&6; } 22036test no = "$dynamic_linker" && can_build_shared=no 22037 22038variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22039if test yes = "$GCC"; then 22040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22041fi 22042 22043if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22044 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22045fi 22046 22047if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22048 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22049fi 22050 22051# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22052configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22053 22054# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22055func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22056 22057# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22058configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22100$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22101hardcode_action_CXX= 22102if test -n "$hardcode_libdir_flag_spec_CXX" || 22103 test -n "$runpath_var_CXX" || 22104 test yes = "$hardcode_automatic_CXX"; then 22105 22106 # We can hardcode non-existent directories. 22107 if test no != "$hardcode_direct_CXX" && 22108 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22109 # have to relink, otherwise we might link with an installed library 22110 # when we should be linking with a yet-to-be-installed one 22111 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 22112 test no != "$hardcode_minus_L_CXX"; then 22113 # Linking always hardcodes the temporary library directory. 22114 hardcode_action_CXX=relink 22115 else 22116 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22117 hardcode_action_CXX=immediate 22118 fi 22119else 22120 # We cannot hardcode anything, or else we can only hardcode existing 22121 # directories. 22122 hardcode_action_CXX=unsupported 22123fi 22124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22125$as_echo "$hardcode_action_CXX" >&6; } 22126 22127if test relink = "$hardcode_action_CXX" || 22128 test yes = "$inherit_rpath_CXX"; then 22129 # Fast installation is not supported 22130 enable_fast_install=no 22131elif test yes = "$shlibpath_overrides_runpath" || 22132 test no = "$enable_shared"; then 22133 # Fast installation is not necessary 22134 enable_fast_install=needless 22135fi 22136 22137 22138 22139 22140 22141 22142 22143 fi # test -n "$compiler" 22144 22145 CC=$lt_save_CC 22146 CFLAGS=$lt_save_CFLAGS 22147 LDCXX=$LD 22148 LD=$lt_save_LD 22149 GCC=$lt_save_GCC 22150 with_gnu_ld=$lt_save_with_gnu_ld 22151 lt_cv_path_LDCXX=$lt_cv_path_LD 22152 lt_cv_path_LD=$lt_save_path_LD 22153 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22154 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22155fi # test yes != "$_lt_caught_CXX_error" 22156 22157ac_ext=c 22158ac_cpp='$CPP $CPPFLAGS' 22159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22161ac_compiler_gnu=$ac_cv_c_compiler_gnu 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 ac_config_commands="$ac_config_commands libtool" 22178 22179 22180 22181 22182# Only expand once: 22183 22184 22185 22186 22187 22188# Check to see if building shared libraries 22189libtool_build_shared_libs='no' 22190if test "$enable_shared" = 'yes'; then 22191 libtool_build_shared_libs='yes' 22192fi 22193 22194# Check to see if building static libraries 22195libtool_build_static_libs='no' 22196if test "$enable_static" = 'yes'; then 22197 libtool_build_static_libs='yes' 22198fi 22199 22200 if test "${libtool_build_shared_libs}" = 'yes'; then 22201 WITH_SHARED_LIBS_TRUE= 22202 WITH_SHARED_LIBS_FALSE='#' 22203else 22204 WITH_SHARED_LIBS_TRUE='#' 22205 WITH_SHARED_LIBS_FALSE= 22206fi 22207 22208# 22209# Enable support for building loadable modules 22210# 22211build_modules='no' 22212 22213# Check whether --with-modules was given. 22214if test "${with_modules+set}" = set; then : 22215 withval=$with_modules; with_modules=$withval 22216else 22217 with_modules='no' 22218fi 22219 22220 22221# Only allow building loadable modules if we are building shared libraries 22222if test "$with_modules" != 'no' ; then 22223 if test "$libtool_build_shared_libs" = 'no'; then 22224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 22225$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} 22226 build_modules='no' 22227 else 22228 build_modules='yes' 22229 fi 22230fi 22231if test "$build_modules" != 'no' ; then 22232 22233$as_echo "#define BUILD_MODULES 1" >>confdefs.h 22234 22235 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 22236fi 22237 if test "$build_modules" != 'no'; then 22238 WITH_MODULES_TRUE= 22239 WITH_MODULES_FALSE='#' 22240else 22241 WITH_MODULES_TRUE='#' 22242 WITH_MODULES_FALSE= 22243fi 22244 22245 22246# Enable build using delegate libraries built in subdirectories rather than installed 22247# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 22248# Check whether --enable-delegate-build was given. 22249if test "${enable_delegate_build+set}" = set; then : 22250 enableval=$enable_delegate_build; enable_delegate_build=$enableval 22251else 22252 enable_delegate_build='no' 22253fi 22254 22255 22256# Check whether --enable-deprecated was given. 22257if test "${enable_deprecated+set}" = set; then : 22258 enableval=$enable_deprecated; enable_deprecated=$enableval 22259else 22260 enable_deprecated='no' 22261fi 22262 22263 22264if test "$enable_deprecated" = 'yes'; then 22265 22266$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h 22267 22268else 22269 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 22270fi 22271 22272# Build a version of ImageMagick which operates uninstalled. 22273# Used to build distributions located via MAGICK_HOME / executable path 22274# Check whether --enable-installed was given. 22275if test "${enable_installed+set}" = set; then : 22276 enableval=$enable_installed; enable_installed=$enableval 22277else 22278 enable_installed='yes' 22279fi 22280 22281 22282if test "$enable_installed" = 'yes'; then 22283 22284$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h 22285 22286else 22287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 22288fi 22289 22290# Permit enciphering and deciphering image pixels. 22291# Check whether --enable-cipher was given. 22292if test "${enable_cipher+set}" = set; then : 22293 enableval=$enable_cipher; enable_cipher=$enableval 22294else 22295 enable_cipher='yes' 22296fi 22297 22298 22299if test "$enable_cipher" = 'yes'; then 22300 22301$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h 22302 22303 MAGICK_FEATURES="Cipher $MAGICK_FEATURES" 22304fi 22305 22306# Build a zero-configuration version of ImageMagick. 22307# Check whether --enable-zero-configuration was given. 22308if test "${enable_zero_configuration+set}" = set; then : 22309 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval 22310else 22311 enable_zero_configuration='no' 22312fi 22313 22314 22315if test "$enable_zero_configuration" = 'yes'; then 22316 22317$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h 22318 22319 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES" 22320fi 22321 22322# Build a high dynamic range version of ImageMagick. 22323# Check whether --enable-hdri was given. 22324if test "${enable_hdri+set}" = set; then : 22325 enableval=$enable_hdri; enable_hdri=$enableval 22326else 22327 enable_hdri='yes' 22328fi 22329 22330 22331MAGICK_HDRI="" 22332if test "$enable_hdri" = 'yes'; then 22333 MAGICK_HDRI="HDRI" 22334 magick_hdri_enable='1'; 22335 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 22336else 22337 magick_hdri_enable='0' 22338fi 22339 22340cat >>confdefs.h <<_ACEOF 22341#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable 22342_ACEOF 22343 22344MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 22345CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 22346CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 22347 22348# Build a version of ImageMagick with assert statements. 22349# Check whether --enable-assert was given. 22350if test "${enable_assert+set}" = set; then : 22351 enableval=$enable_assert; enable_assert=$enableval 22352else 22353 enable_assert='yes' 22354fi 22355 22356 22357if test "$enable_assert" = 'no'; then 22358 22359$as_echo "#define NDEBUG 1" >>confdefs.h 22360 22361fi 22362 22363# Don't emit "rebuild rules" for configure, Makefile.ins, etc. 22364 22365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 22366$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 22367 # Check whether --enable-maintainer-mode was given. 22368if test "${enable_maintainer_mode+set}" = set; then : 22369 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 22370else 22371 USE_MAINTAINER_MODE=no 22372fi 22373 22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 22375$as_echo "$USE_MAINTAINER_MODE" >&6; } 22376 if test $USE_MAINTAINER_MODE = yes; then 22377 MAINTAINER_MODE_TRUE= 22378 MAINTAINER_MODE_FALSE='#' 22379else 22380 MAINTAINER_MODE_TRUE='#' 22381 MAINTAINER_MODE_FALSE= 22382fi 22383 22384 MAINT=$MAINTAINER_MODE_TRUE 22385 22386 22387 22388# Enable hugepages support 22389# Check whether --enable-hugepages was given. 22390if test "${enable_hugepages+set}" = set; then : 22391 enableval=$enable_hugepages; enable_hugepages=$enableval 22392else 22393 enable_hugepages='no' 22394fi 22395 22396 22397# Enable ccmalloc memory debugging support 22398# Check whether --enable-ccmalloc was given. 22399if test "${enable_ccmalloc+set}" = set; then : 22400 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval 22401else 22402 enable_ccmalloc='no' 22403fi 22404 22405 22406# Enable Electric Fence memory debugging support 22407# Check whether --enable-efence was given. 22408if test "${enable_efence+set}" = set; then : 22409 enableval=$enable_efence; enable_efence=$enableval 22410else 22411 enable_efence='no' 22412fi 22413 22414 22415# Enable prof-based profiling support 22416# Check whether --enable-prof was given. 22417if test "${enable_prof+set}" = set; then : 22418 enableval=$enable_prof; enable_prof=$enableval 22419else 22420 enable_prof='no' 22421fi 22422 22423 22424# Enable gprof-based profiling support 22425# Check whether --enable-gprof was given. 22426if test "${enable_gprof+set}" = set; then : 22427 enableval=$enable_gprof; enable_gprof=$enableval 22428else 22429 enable_gprof='no' 22430fi 22431 22432 22433# Enable gcov-based profiling support 22434# Check whether --enable-gcov was given. 22435if test "${enable_gcov+set}" = set; then : 22436 enableval=$enable_gcov; enable_gcov=$enableval 22437else 22438 enable_gcov='no' 22439fi 22440 22441 22442enable_profiling='no' 22443if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 22444 enable_profiling='yes' 22445 if test "$libtool_build_shared_libs" = 'yes'; then 22446 echo "Warning: Can not profile code using shared libraries" 22447 fi 22448fi 22449 22450# Magick API method prefix 22451 22452# Check whether --with-method-prefix was given. 22453if test "${with_method_prefix+set}" = set; then : 22454 withval=$with_method_prefix; with_method_prefix=$withval 22455else 22456 with_method_prefix='no' 22457fi 22458 22459 22460if test "$with_method_prefix" != 'no'; then 22461 22462cat >>confdefs.h <<_ACEOF 22463#define NAMESPACE_PREFIX $with_method_prefix 22464_ACEOF 22465 22466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 22467fi 22468 22469# Enable legacy support (default no) 22470# Check whether --enable-legacy-support was given. 22471if test "${enable_legacy_support+set}" = set; then : 22472 enableval=$enable_legacy_support; with_legacy_support=$enableval 22473else 22474 with_legacy_support='no' 22475fi 22476 22477 if test "$with_legacy_support" != 'no'; then 22478 LEGACY_SUPPORT_TRUE= 22479 LEGACY_SUPPORT_FALSE='#' 22480else 22481 LEGACY_SUPPORT_TRUE='#' 22482 LEGACY_SUPPORT_FALSE= 22483fi 22484 22485 22486# Number of bits in a Quantum 22487 22488# Check whether --with-quantum-depth was given. 22489if test "${with_quantum_depth+set}" = set; then : 22490 withval=$with_quantum_depth; with_quantum_depth=$withval 22491else 22492 with_quantum_depth=16 22493fi 22494 22495 22496if test "$with_quantum_depth" != '8'; then 22497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 22498fi 22499 22500case "${with_quantum_depth}" in 22501 8 ) ;; 22502 16 ) ;; 22503 32 ) ;; 22504 64 ) ;; 22505 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; 22506esac 22507QUANTUM_DEPTH="$with_quantum_depth" 22508 22509cat >>confdefs.h <<_ACEOF 22510#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH 22511_ACEOF 22512 22513MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 22514CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 22515CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 22516 22517# define a lib suffix for abi purpose 22518MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 22519if test "$enable_hdri" = 'yes'; then 22520 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 22521fi 22522 22523 22524# Set pixel cache threshold 22525 22526# Check whether --with-cache was given. 22527if test "${with_cache+set}" = set; then : 22528 withval=$with_cache; with_cache=$withval 22529else 22530 with_cache='' 22531fi 22532 22533 22534if test "$with_cache" != ''; then 22535 22536cat >>confdefs.h <<_ACEOF 22537#define PixelCacheThreshold $with_cache 22538_ACEOF 22539 22540 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 22541fi 22542 22543# Disable/Enable support for full delegate paths 22544 22545# Check whether --with-frozenpaths was given. 22546if test "${with_frozenpaths+set}" = set; then : 22547 withval=$with_frozenpaths; with_frozenpaths=$withval 22548else 22549 with_frozenpaths='no' 22550fi 22551 22552 22553# Enable build/install of Magick++ 22554 22555# Check whether --with-magick-plus-plus was given. 22556if test "${with_magick_plus_plus+set}" = set; then : 22557 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval 22558else 22559 with_magick_plus_plus='yes' 22560fi 22561 22562 22563# Encode the this name into the shared library. 22564 22565# Check whether --with-package-release-name was given. 22566if test "${with_package_release_name+set}" = set; then : 22567 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" 22568fi 22569 22570 22571 22572# Disable build/install of PerlMagick. 22573 22574# Check whether --with-perl was given. 22575if test "${with_perl+set}" = set; then : 22576 withval=$with_perl; with_perl=$withval 22577else 22578 with_perl='no' 22579fi 22580 22581 22582# Options to pass when configuring PerlMagick 22583 22584# Check whether --with-perl-options was given. 22585if test "${with_perl_options+set}" = set; then : 22586 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval 22587fi 22588 22589 22590 22591# Enable jemalloc, object-caching memory allocation library. 22592 22593# Check whether --with-jemalloc was given. 22594if test "${with_jemalloc+set}" = set; then : 22595 withval=$with_jemalloc; with_jemalloc=$withval 22596else 22597 with_jemalloc='no' 22598fi 22599 22600if test "$with_jemalloc" != 'yes' ; then 22601 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc " 22602fi 22603 22604# Enable umem, object-caching memory allocation library. 22605 22606# Check whether --with-umem was given. 22607if test "${with_umem+set}" = set; then : 22608 withval=$with_umem; with_umem=$withval 22609else 22610 with_umem='no' 22611fi 22612 22613if test "$with_umem" != 'yes' ; then 22614 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 22615fi 22616 22617# 22618# Specify path to shared libstdc++ if not in normal location 22619# 22620 22621# Check whether --with-libstdc was given. 22622if test "${with_libstdc+set}" = set; then : 22623 withval=$with_libstdc; with_libstdc=$withval 22624else 22625 with_libstdc='' 22626fi 22627 22628 22629if test "$with_libstdc" != ''; then 22630 if test -d "$with_libstdc"; then 22631 LIBSTDCLDFLAGS="-L$with_libstdc" 22632 fi 22633fi 22634 22635 22636# Does gcc required -traditional? 22637if test $ac_cv_c_compiler_gnu = yes; then 22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 22639$as_echo_n "checking whether $CC needs -traditional... " >&6; } 22640if ${ac_cv_prog_gcc_traditional+:} false; then : 22641 $as_echo_n "(cached) " >&6 22642else 22643 ac_pattern="Autoconf.*'x'" 22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22645/* end confdefs.h. */ 22646#include <sgtty.h> 22647Autoconf TIOCGETP 22648_ACEOF 22649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22650 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 22651 ac_cv_prog_gcc_traditional=yes 22652else 22653 ac_cv_prog_gcc_traditional=no 22654fi 22655rm -f conftest* 22656 22657 22658 if test $ac_cv_prog_gcc_traditional = no; then 22659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22660/* end confdefs.h. */ 22661#include <termio.h> 22662Autoconf TCGETA 22663_ACEOF 22664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22665 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 22666 ac_cv_prog_gcc_traditional=yes 22667fi 22668rm -f conftest* 22669 22670 fi 22671fi 22672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 22673$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 22674 if test $ac_cv_prog_gcc_traditional = yes; then 22675 CC="$CC -traditional" 22676 fi 22677fi 22678 22679 22680######## 22681# 22682# Set defines required to build DLLs and modules using MinGW 22683# 22684######## 22685# These options are set for multi-thread DLL module build 22686# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 22687# module: _DLL 22688# executable/Magick++: _DLL _MAGICKMOD_ 22689MODULE_EXTRA_CPPFLAGS='' 22690LIBRARY_EXTRA_CPPFLAGS='' 22691if test "${native_win32_build}" = 'yes'; then 22692 if test "${libtool_build_shared_libs}" = 'yes'; then 22693 CPPFLAGS="$CPPFLAGS -D_DLL" 22694 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 22695 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 22696 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 22697 if test "$build_modules" = 'yes'; then 22698 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 22699 else 22700 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 22701 fi 22702 else 22703 CPPFLAGS="$CPPFLAGS -D_LIB" 22704 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 22705 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 22706 fi 22707 if test "$with_threads" = 'yes'; then 22708 CPPFLAGS="$CPPFLAGS -D_MT" 22709 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 22710 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 22711 fi 22712fi 22713 22714 22715 22716# Check standard headers 22717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22718$as_echo_n "checking for ANSI C header files... " >&6; } 22719if ${ac_cv_header_stdc+:} false; then : 22720 $as_echo_n "(cached) " >&6 22721else 22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22723/* end confdefs.h. */ 22724#include <stdlib.h> 22725#include <stdarg.h> 22726#include <string.h> 22727#include <float.h> 22728 22729int 22730main () 22731{ 22732 22733 ; 22734 return 0; 22735} 22736_ACEOF 22737if ac_fn_c_try_compile "$LINENO"; then : 22738 ac_cv_header_stdc=yes 22739else 22740 ac_cv_header_stdc=no 22741fi 22742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22743 22744if test $ac_cv_header_stdc = yes; then 22745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22747/* end confdefs.h. */ 22748#include <string.h> 22749 22750_ACEOF 22751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22752 $EGREP "memchr" >/dev/null 2>&1; then : 22753 22754else 22755 ac_cv_header_stdc=no 22756fi 22757rm -f conftest* 22758 22759fi 22760 22761if test $ac_cv_header_stdc = yes; then 22762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22764/* end confdefs.h. */ 22765#include <stdlib.h> 22766 22767_ACEOF 22768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22769 $EGREP "free" >/dev/null 2>&1; then : 22770 22771else 22772 ac_cv_header_stdc=no 22773fi 22774rm -f conftest* 22775 22776fi 22777 22778if test $ac_cv_header_stdc = yes; then 22779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22780 if test "$cross_compiling" = yes; then : 22781 : 22782else 22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22784/* end confdefs.h. */ 22785#include <ctype.h> 22786#include <stdlib.h> 22787#if ((' ' & 0x0FF) == 0x020) 22788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22790#else 22791# define ISLOWER(c) \ 22792 (('a' <= (c) && (c) <= 'i') \ 22793 || ('j' <= (c) && (c) <= 'r') \ 22794 || ('s' <= (c) && (c) <= 'z')) 22795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22796#endif 22797 22798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22799int 22800main () 22801{ 22802 int i; 22803 for (i = 0; i < 256; i++) 22804 if (XOR (islower (i), ISLOWER (i)) 22805 || toupper (i) != TOUPPER (i)) 22806 return 2; 22807 return 0; 22808} 22809_ACEOF 22810if ac_fn_c_try_run "$LINENO"; then : 22811 22812else 22813 ac_cv_header_stdc=no 22814fi 22815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22816 conftest.$ac_objext conftest.beam conftest.$ac_ext 22817fi 22818 22819fi 22820fi 22821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22822$as_echo "$ac_cv_header_stdc" >&6; } 22823if test $ac_cv_header_stdc = yes; then 22824 22825$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22826 22827fi 22828 22829if ! test x"$ac_cv_header_stdc" = x"yes"; then 22830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C 22831 header files. Compilation cannot proceed. Please install the ANSI C 22832 headers and rerun this script." >&5 22833$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C 22834 header files. Compilation cannot proceed. Please install the ANSI C 22835 headers and rerun this script." >&2;}; 22836fi 22837 22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 22839$as_echo_n "checking whether to enable assertions... " >&6; } 22840 # Check whether --enable-assert was given. 22841if test "${enable_assert+set}" = set; then : 22842 enableval=$enable_assert; ac_enable_assert=$enableval 22843 if test "x$enableval" = xno; then : 22844 22845$as_echo "#define NDEBUG 1" >>confdefs.h 22846 22847elif test "x$enableval" != xyes; then : 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 22849$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 22850 ac_enable_assert=yes 22851fi 22852else 22853 ac_enable_assert=yes 22854fi 22855 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 22857$as_echo "$ac_enable_assert" >&6; } 22858 22859ac_header_dirent=no 22860for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22861 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22863$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22864if eval \${$as_ac_Header+:} false; then : 22865 $as_echo_n "(cached) " >&6 22866else 22867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22868/* end confdefs.h. */ 22869#include <sys/types.h> 22870#include <$ac_hdr> 22871 22872int 22873main () 22874{ 22875if ((DIR *) 0) 22876return 0; 22877 ; 22878 return 0; 22879} 22880_ACEOF 22881if ac_fn_c_try_compile "$LINENO"; then : 22882 eval "$as_ac_Header=yes" 22883else 22884 eval "$as_ac_Header=no" 22885fi 22886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22887fi 22888eval ac_res=\$$as_ac_Header 22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22890$as_echo "$ac_res" >&6; } 22891if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22892 cat >>confdefs.h <<_ACEOF 22893#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22894_ACEOF 22895 22896ac_header_dirent=$ac_hdr; break 22897fi 22898 22899done 22900# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22901if test $ac_header_dirent = dirent.h; then 22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22903$as_echo_n "checking for library containing opendir... " >&6; } 22904if ${ac_cv_search_opendir+:} false; then : 22905 $as_echo_n "(cached) " >&6 22906else 22907 ac_func_search_save_LIBS=$LIBS 22908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22909/* end confdefs.h. */ 22910 22911/* Override any GCC internal prototype to avoid an error. 22912 Use char because int might match the return type of a GCC 22913 builtin and then its argument prototype would still apply. */ 22914#ifdef __cplusplus 22915extern "C" 22916#endif 22917char opendir (); 22918int 22919main () 22920{ 22921return opendir (); 22922 ; 22923 return 0; 22924} 22925_ACEOF 22926for ac_lib in '' dir; do 22927 if test -z "$ac_lib"; then 22928 ac_res="none required" 22929 else 22930 ac_res=-l$ac_lib 22931 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22932 fi 22933 if ac_fn_c_try_link "$LINENO"; then : 22934 ac_cv_search_opendir=$ac_res 22935fi 22936rm -f core conftest.err conftest.$ac_objext \ 22937 conftest$ac_exeext 22938 if ${ac_cv_search_opendir+:} false; then : 22939 break 22940fi 22941done 22942if ${ac_cv_search_opendir+:} false; then : 22943 22944else 22945 ac_cv_search_opendir=no 22946fi 22947rm conftest.$ac_ext 22948LIBS=$ac_func_search_save_LIBS 22949fi 22950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22951$as_echo "$ac_cv_search_opendir" >&6; } 22952ac_res=$ac_cv_search_opendir 22953if test "$ac_res" != no; then : 22954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22955 22956fi 22957 22958else 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22960$as_echo_n "checking for library containing opendir... " >&6; } 22961if ${ac_cv_search_opendir+:} false; then : 22962 $as_echo_n "(cached) " >&6 22963else 22964 ac_func_search_save_LIBS=$LIBS 22965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22966/* end confdefs.h. */ 22967 22968/* Override any GCC internal prototype to avoid an error. 22969 Use char because int might match the return type of a GCC 22970 builtin and then its argument prototype would still apply. */ 22971#ifdef __cplusplus 22972extern "C" 22973#endif 22974char opendir (); 22975int 22976main () 22977{ 22978return opendir (); 22979 ; 22980 return 0; 22981} 22982_ACEOF 22983for ac_lib in '' x; do 22984 if test -z "$ac_lib"; then 22985 ac_res="none required" 22986 else 22987 ac_res=-l$ac_lib 22988 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22989 fi 22990 if ac_fn_c_try_link "$LINENO"; then : 22991 ac_cv_search_opendir=$ac_res 22992fi 22993rm -f core conftest.err conftest.$ac_objext \ 22994 conftest$ac_exeext 22995 if ${ac_cv_search_opendir+:} false; then : 22996 break 22997fi 22998done 22999if ${ac_cv_search_opendir+:} false; then : 23000 23001else 23002 ac_cv_search_opendir=no 23003fi 23004rm conftest.$ac_ext 23005LIBS=$ac_func_search_save_LIBS 23006fi 23007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23008$as_echo "$ac_cv_search_opendir" >&6; } 23009ac_res=$ac_cv_search_opendir 23010if test "$ac_res" != no; then : 23011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23012 23013fi 23014 23015fi 23016 23017 23018# Check additional headers 23019for 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 wchar.h xlocale.h 23020do : 23021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23022ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23024 cat >>confdefs.h <<_ACEOF 23025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23026_ACEOF 23027 23028fi 23029 23030done 23031 23032 23033######## 23034# 23035# Checks for typedefs, structures, and compiler characteristics. 23036# 23037######## 23038 23039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 23040$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 23041if ${ac_cv_header_stdbool_h+:} false; then : 23042 $as_echo_n "(cached) " >&6 23043else 23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23045/* end confdefs.h. */ 23046 23047 #include <stdbool.h> 23048 #ifndef bool 23049 "error: bool is not defined" 23050 #endif 23051 #ifndef false 23052 "error: false is not defined" 23053 #endif 23054 #if false 23055 "error: false is not 0" 23056 #endif 23057 #ifndef true 23058 "error: true is not defined" 23059 #endif 23060 #if true != 1 23061 "error: true is not 1" 23062 #endif 23063 #ifndef __bool_true_false_are_defined 23064 "error: __bool_true_false_are_defined is not defined" 23065 #endif 23066 23067 struct s { _Bool s: 1; _Bool t; } s; 23068 23069 char a[true == 1 ? 1 : -1]; 23070 char b[false == 0 ? 1 : -1]; 23071 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 23072 char d[(bool) 0.5 == true ? 1 : -1]; 23073 /* See body of main program for 'e'. */ 23074 char f[(_Bool) 0.0 == false ? 1 : -1]; 23075 char g[true]; 23076 char h[sizeof (_Bool)]; 23077 char i[sizeof s.t]; 23078 enum { j = false, k = true, l = false * true, m = true * 256 }; 23079 /* The following fails for 23080 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 23081 _Bool n[m]; 23082 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 23083 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 23084 /* Catch a bug in an HP-UX C compiler. See 23085 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 23086 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 23087 */ 23088 _Bool q = true; 23089 _Bool *pq = &q; 23090 23091int 23092main () 23093{ 23094 23095 bool e = &s; 23096 *pq |= q; 23097 *pq |= ! q; 23098 /* Refer to every declared value, to avoid compiler optimizations. */ 23099 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 23100 + !m + !n + !o + !p + !q + !pq); 23101 23102 ; 23103 return 0; 23104} 23105_ACEOF 23106if ac_fn_c_try_compile "$LINENO"; then : 23107 ac_cv_header_stdbool_h=yes 23108else 23109 ac_cv_header_stdbool_h=no 23110fi 23111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23112fi 23113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 23114$as_echo "$ac_cv_header_stdbool_h" >&6; } 23115 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 23116if test "x$ac_cv_type__Bool" = xyes; then : 23117 23118cat >>confdefs.h <<_ACEOF 23119#define HAVE__BOOL 1 23120_ACEOF 23121 23122 23123fi 23124 23125 23126if test $ac_cv_header_stdbool_h = yes; then 23127 23128$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 23129 23130fi 23131 23132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 23133$as_echo_n "checking for working volatile... " >&6; } 23134if ${ac_cv_c_volatile+:} false; then : 23135 $as_echo_n "(cached) " >&6 23136else 23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23138/* end confdefs.h. */ 23139 23140int 23141main () 23142{ 23143 23144volatile int x; 23145int * volatile y = (int *) 0; 23146return !x && !y; 23147 ; 23148 return 0; 23149} 23150_ACEOF 23151if ac_fn_c_try_compile "$LINENO"; then : 23152 ac_cv_c_volatile=yes 23153else 23154 ac_cv_c_volatile=no 23155fi 23156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23157fi 23158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 23159$as_echo "$ac_cv_c_volatile" >&6; } 23160if test $ac_cv_c_volatile = no; then 23161 23162$as_echo "#define volatile /**/" >>confdefs.h 23163 23164fi 23165 23166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 23167$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 23168if ${ac_cv_c_stringize+:} false; then : 23169 $as_echo_n "(cached) " >&6 23170else 23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23172/* end confdefs.h. */ 23173#define x(y) #y 23174 23175char *s = x(teststring); 23176_ACEOF 23177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23178 $EGREP "#teststring" >/dev/null 2>&1; then : 23179 ac_cv_c_stringize=no 23180else 23181 ac_cv_c_stringize=yes 23182fi 23183rm -f conftest* 23184 23185fi 23186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 23187$as_echo "$ac_cv_c_stringize" >&6; } 23188if test $ac_cv_c_stringize = yes; then 23189 23190$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 23191 23192fi 23193 23194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 23195$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 23196if ${ac_cv_header_stat_broken+:} false; then : 23197 $as_echo_n "(cached) " >&6 23198else 23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23200/* end confdefs.h. */ 23201#include <sys/types.h> 23202#include <sys/stat.h> 23203 23204#if defined S_ISBLK && defined S_IFDIR 23205extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 23206#endif 23207 23208#if defined S_ISBLK && defined S_IFCHR 23209extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 23210#endif 23211 23212#if defined S_ISLNK && defined S_IFREG 23213extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 23214#endif 23215 23216#if defined S_ISSOCK && defined S_IFREG 23217extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 23218#endif 23219 23220_ACEOF 23221if ac_fn_c_try_compile "$LINENO"; then : 23222 ac_cv_header_stat_broken=no 23223else 23224 ac_cv_header_stat_broken=yes 23225fi 23226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23227fi 23228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 23229$as_echo "$ac_cv_header_stat_broken" >&6; } 23230if test $ac_cv_header_stat_broken = yes; then 23231 23232$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 23233 23234fi 23235 23236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23237$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23238if ${ac_cv_header_time+:} false; then : 23239 $as_echo_n "(cached) " >&6 23240else 23241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23242/* end confdefs.h. */ 23243#include <sys/types.h> 23244#include <sys/time.h> 23245#include <time.h> 23246 23247int 23248main () 23249{ 23250if ((struct tm *) 0) 23251return 0; 23252 ; 23253 return 0; 23254} 23255_ACEOF 23256if ac_fn_c_try_compile "$LINENO"; then : 23257 ac_cv_header_time=yes 23258else 23259 ac_cv_header_time=no 23260fi 23261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23262fi 23263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23264$as_echo "$ac_cv_header_time" >&6; } 23265if test $ac_cv_header_time = yes; then 23266 23267$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23268 23269fi 23270 23271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 23272$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 23273if ${ac_cv_struct_tm+:} false; then : 23274 $as_echo_n "(cached) " >&6 23275else 23276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23277/* end confdefs.h. */ 23278#include <sys/types.h> 23279#include <time.h> 23280 23281int 23282main () 23283{ 23284struct tm tm; 23285 int *p = &tm.tm_sec; 23286 return !p; 23287 ; 23288 return 0; 23289} 23290_ACEOF 23291if ac_fn_c_try_compile "$LINENO"; then : 23292 ac_cv_struct_tm=time.h 23293else 23294 ac_cv_struct_tm=sys/time.h 23295fi 23296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23297fi 23298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 23299$as_echo "$ac_cv_struct_tm" >&6; } 23300if test $ac_cv_struct_tm = sys/time.h; then 23301 23302$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 23303 23304fi 23305 23306ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 23307#include <$ac_cv_struct_tm> 23308 23309" 23310if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 23311 23312cat >>confdefs.h <<_ACEOF 23313#define HAVE_STRUCT_TM_TM_ZONE 1 23314_ACEOF 23315 23316 23317fi 23318 23319if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 23320 23321$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 23322 23323else 23324 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 23325" 23326if test "x$ac_cv_have_decl_tzname" = xyes; then : 23327 ac_have_decl=1 23328else 23329 ac_have_decl=0 23330fi 23331 23332cat >>confdefs.h <<_ACEOF 23333#define HAVE_DECL_TZNAME $ac_have_decl 23334_ACEOF 23335 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 23337$as_echo_n "checking for tzname... " >&6; } 23338if ${ac_cv_var_tzname+:} false; then : 23339 $as_echo_n "(cached) " >&6 23340else 23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23342/* end confdefs.h. */ 23343#include <time.h> 23344#if !HAVE_DECL_TZNAME 23345extern char *tzname[]; 23346#endif 23347 23348int 23349main () 23350{ 23351return tzname[0][0]; 23352 ; 23353 return 0; 23354} 23355_ACEOF 23356if ac_fn_c_try_link "$LINENO"; then : 23357 ac_cv_var_tzname=yes 23358else 23359 ac_cv_var_tzname=no 23360fi 23361rm -f core conftest.err conftest.$ac_objext \ 23362 conftest$ac_exeext conftest.$ac_ext 23363fi 23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 23365$as_echo "$ac_cv_var_tzname" >&6; } 23366 if test $ac_cv_var_tzname = yes; then 23367 23368$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 23369 23370 fi 23371fi 23372 23373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 23374$as_echo_n "checking whether #! works in shell scripts... " >&6; } 23375if ${ac_cv_sys_interpreter+:} false; then : 23376 $as_echo_n "(cached) " >&6 23377else 23378 echo '#! /bin/cat 23379exit 69 23380' >conftest 23381chmod u+x conftest 23382(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 23383if test $? -ne 69; then 23384 ac_cv_sys_interpreter=yes 23385else 23386 ac_cv_sys_interpreter=no 23387fi 23388rm -f conftest 23389fi 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 23391$as_echo "$ac_cv_sys_interpreter" >&6; } 23392interpval=$ac_cv_sys_interpreter 23393 23394 23395# 23396# Checks for language qualifiers and semantics. 23397# 23398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 23399$as_echo_n "checking whether char is unsigned... " >&6; } 23400if ${ac_cv_c_char_unsigned+:} false; then : 23401 $as_echo_n "(cached) " >&6 23402else 23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23404/* end confdefs.h. */ 23405$ac_includes_default 23406int 23407main () 23408{ 23409static int test_array [1 - 2 * !(((char) -1) < 0)]; 23410test_array [0] = 0; 23411return test_array [0]; 23412 23413 ; 23414 return 0; 23415} 23416_ACEOF 23417if ac_fn_c_try_compile "$LINENO"; then : 23418 ac_cv_c_char_unsigned=no 23419else 23420 ac_cv_c_char_unsigned=yes 23421fi 23422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23423fi 23424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 23425$as_echo "$ac_cv_c_char_unsigned" >&6; } 23426if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 23427 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 23428 23429fi 23430 23431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23432$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 23433if ${ac_cv_c_const+:} false; then : 23434 $as_echo_n "(cached) " >&6 23435else 23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23437/* end confdefs.h. */ 23438 23439int 23440main () 23441{ 23442 23443#ifndef __cplusplus 23444 /* Ultrix mips cc rejects this sort of thing. */ 23445 typedef int charset[2]; 23446 const charset cs = { 0, 0 }; 23447 /* SunOS 4.1.1 cc rejects this. */ 23448 char const *const *pcpcc; 23449 char **ppc; 23450 /* NEC SVR4.0.2 mips cc rejects this. */ 23451 struct point {int x, y;}; 23452 static struct point const zero = {0,0}; 23453 /* AIX XL C 1.02.0.0 rejects this. 23454 It does not let you subtract one const X* pointer from another in 23455 an arm of an if-expression whose if-part is not a constant 23456 expression */ 23457 const char *g = "string"; 23458 pcpcc = &g + (g ? g-g : 0); 23459 /* HPUX 7.0 cc rejects these. */ 23460 ++pcpcc; 23461 ppc = (char**) pcpcc; 23462 pcpcc = (char const *const *) ppc; 23463 { /* SCO 3.2v4 cc rejects this sort of thing. */ 23464 char tx; 23465 char *t = &tx; 23466 char const *s = 0 ? (char *) 0 : (char const *) 0; 23467 23468 *t++ = 0; 23469 if (s) return 0; 23470 } 23471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23472 int x[] = {25, 17}; 23473 const int *foo = &x[0]; 23474 ++foo; 23475 } 23476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23477 typedef const int *iptr; 23478 iptr p = 0; 23479 ++p; 23480 } 23481 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 23482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23483 struct s { int j; const int *ap[3]; } bx; 23484 struct s *b = &bx; b->j = 5; 23485 } 23486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23487 const int foo = 10; 23488 if (!foo) return 0; 23489 } 23490 return !cs[0] && !zero.x; 23491#endif 23492 23493 ; 23494 return 0; 23495} 23496_ACEOF 23497if ac_fn_c_try_compile "$LINENO"; then : 23498 ac_cv_c_const=yes 23499else 23500 ac_cv_c_const=no 23501fi 23502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23503fi 23504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23505$as_echo "$ac_cv_c_const" >&6; } 23506if test $ac_cv_c_const = no; then 23507 23508$as_echo "#define const /**/" >>confdefs.h 23509 23510fi 23511 23512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 23513$as_echo_n "checking for inline... " >&6; } 23514if ${ac_cv_c_inline+:} false; then : 23515 $as_echo_n "(cached) " >&6 23516else 23517 ac_cv_c_inline=no 23518for ac_kw in inline __inline__ __inline; do 23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23520/* end confdefs.h. */ 23521#ifndef __cplusplus 23522typedef int foo_t; 23523static $ac_kw foo_t static_foo () {return 0; } 23524$ac_kw foo_t foo () {return 0; } 23525#endif 23526 23527_ACEOF 23528if ac_fn_c_try_compile "$LINENO"; then : 23529 ac_cv_c_inline=$ac_kw 23530fi 23531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23532 test "$ac_cv_c_inline" != no && break 23533done 23534 23535fi 23536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 23537$as_echo "$ac_cv_c_inline" >&6; } 23538 23539case $ac_cv_c_inline in 23540 inline | yes) ;; 23541 *) 23542 case $ac_cv_c_inline in 23543 no) ac_val=;; 23544 *) ac_val=$ac_cv_c_inline;; 23545 esac 23546 cat >>confdefs.h <<_ACEOF 23547#ifndef __cplusplus 23548#define inline $ac_val 23549#endif 23550_ACEOF 23551 ;; 23552esac 23553 23554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 23555$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 23556if ${ac_cv_c_restrict+:} false; then : 23557 $as_echo_n "(cached) " >&6 23558else 23559 ac_cv_c_restrict=no 23560 # The order here caters to the fact that C++ does not require restrict. 23561 for ac_kw in __restrict __restrict__ _Restrict restrict; do 23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23563/* end confdefs.h. */ 23564typedef int * int_ptr; 23565 int foo (int_ptr $ac_kw ip) { 23566 return ip[0]; 23567 } 23568int 23569main () 23570{ 23571int s[1]; 23572 int * $ac_kw t = s; 23573 t[0] = 0; 23574 return foo(t) 23575 ; 23576 return 0; 23577} 23578_ACEOF 23579if ac_fn_c_try_compile "$LINENO"; then : 23580 ac_cv_c_restrict=$ac_kw 23581fi 23582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23583 test "$ac_cv_c_restrict" != no && break 23584 done 23585 23586fi 23587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 23588$as_echo "$ac_cv_c_restrict" >&6; } 23589 23590 case $ac_cv_c_restrict in 23591 restrict) ;; 23592 no) $as_echo "#define restrict /**/" >>confdefs.h 23593 ;; 23594 *) cat >>confdefs.h <<_ACEOF 23595#define restrict $ac_cv_c_restrict 23596_ACEOF 23597 ;; 23598 esac 23599 23600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 23601$as_echo_n "checking for working volatile... " >&6; } 23602if ${ac_cv_c_volatile+:} false; then : 23603 $as_echo_n "(cached) " >&6 23604else 23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23606/* end confdefs.h. */ 23607 23608int 23609main () 23610{ 23611 23612volatile int x; 23613int * volatile y = (int *) 0; 23614return !x && !y; 23615 ; 23616 return 0; 23617} 23618_ACEOF 23619if ac_fn_c_try_compile "$LINENO"; then : 23620 ac_cv_c_volatile=yes 23621else 23622 ac_cv_c_volatile=no 23623fi 23624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23625fi 23626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 23627$as_echo "$ac_cv_c_volatile" >&6; } 23628if test $ac_cv_c_volatile = no; then 23629 23630$as_echo "#define volatile /**/" >>confdefs.h 23631 23632fi 23633 23634 23635# If words are stored with the most significant byte first (like 23636# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 23638$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 23639if ${ac_cv_c_bigendian+:} false; then : 23640 $as_echo_n "(cached) " >&6 23641else 23642 ac_cv_c_bigendian=unknown 23643 # See if we're dealing with a universal compiler. 23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23645/* end confdefs.h. */ 23646#ifndef __APPLE_CC__ 23647 not a universal capable compiler 23648 #endif 23649 typedef int dummy; 23650 23651_ACEOF 23652if ac_fn_c_try_compile "$LINENO"; then : 23653 23654 # Check for potential -arch flags. It is not universal unless 23655 # there are at least two -arch flags with different values. 23656 ac_arch= 23657 ac_prev= 23658 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 23659 if test -n "$ac_prev"; then 23660 case $ac_word in 23661 i?86 | x86_64 | ppc | ppc64) 23662 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 23663 ac_arch=$ac_word 23664 else 23665 ac_cv_c_bigendian=universal 23666 break 23667 fi 23668 ;; 23669 esac 23670 ac_prev= 23671 elif test "x$ac_word" = "x-arch"; then 23672 ac_prev=arch 23673 fi 23674 done 23675fi 23676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23677 if test $ac_cv_c_bigendian = unknown; then 23678 # See if sys/param.h defines the BYTE_ORDER macro. 23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23680/* end confdefs.h. */ 23681#include <sys/types.h> 23682 #include <sys/param.h> 23683 23684int 23685main () 23686{ 23687#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 23688 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 23689 && LITTLE_ENDIAN) 23690 bogus endian macros 23691 #endif 23692 23693 ; 23694 return 0; 23695} 23696_ACEOF 23697if ac_fn_c_try_compile "$LINENO"; then : 23698 # It does; now see whether it defined to BIG_ENDIAN or not. 23699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23700/* end confdefs.h. */ 23701#include <sys/types.h> 23702 #include <sys/param.h> 23703 23704int 23705main () 23706{ 23707#if BYTE_ORDER != BIG_ENDIAN 23708 not big endian 23709 #endif 23710 23711 ; 23712 return 0; 23713} 23714_ACEOF 23715if ac_fn_c_try_compile "$LINENO"; then : 23716 ac_cv_c_bigendian=yes 23717else 23718 ac_cv_c_bigendian=no 23719fi 23720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23721fi 23722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23723 fi 23724 if test $ac_cv_c_bigendian = unknown; then 23725 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 23726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23727/* end confdefs.h. */ 23728#include <limits.h> 23729 23730int 23731main () 23732{ 23733#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 23734 bogus endian macros 23735 #endif 23736 23737 ; 23738 return 0; 23739} 23740_ACEOF 23741if ac_fn_c_try_compile "$LINENO"; then : 23742 # It does; now see whether it defined to _BIG_ENDIAN or not. 23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23744/* end confdefs.h. */ 23745#include <limits.h> 23746 23747int 23748main () 23749{ 23750#ifndef _BIG_ENDIAN 23751 not big endian 23752 #endif 23753 23754 ; 23755 return 0; 23756} 23757_ACEOF 23758if ac_fn_c_try_compile "$LINENO"; then : 23759 ac_cv_c_bigendian=yes 23760else 23761 ac_cv_c_bigendian=no 23762fi 23763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23764fi 23765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23766 fi 23767 if test $ac_cv_c_bigendian = unknown; then 23768 # Compile a test program. 23769 if test "$cross_compiling" = yes; then : 23770 # Try to guess by grepping values from an object file. 23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23772/* end confdefs.h. */ 23773short int ascii_mm[] = 23774 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 23775 short int ascii_ii[] = 23776 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 23777 int use_ascii (int i) { 23778 return ascii_mm[i] + ascii_ii[i]; 23779 } 23780 short int ebcdic_ii[] = 23781 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 23782 short int ebcdic_mm[] = 23783 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 23784 int use_ebcdic (int i) { 23785 return ebcdic_mm[i] + ebcdic_ii[i]; 23786 } 23787 extern int foo; 23788 23789int 23790main () 23791{ 23792return use_ascii (foo) == use_ebcdic (foo); 23793 ; 23794 return 0; 23795} 23796_ACEOF 23797if ac_fn_c_try_compile "$LINENO"; then : 23798 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 23799 ac_cv_c_bigendian=yes 23800 fi 23801 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 23802 if test "$ac_cv_c_bigendian" = unknown; then 23803 ac_cv_c_bigendian=no 23804 else 23805 # finding both strings is unlikely to happen, but who knows? 23806 ac_cv_c_bigendian=unknown 23807 fi 23808 fi 23809fi 23810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23811else 23812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23813/* end confdefs.h. */ 23814$ac_includes_default 23815int 23816main () 23817{ 23818 23819 /* Are we little or big endian? From Harbison&Steele. */ 23820 union 23821 { 23822 long int l; 23823 char c[sizeof (long int)]; 23824 } u; 23825 u.l = 1; 23826 return u.c[sizeof (long int) - 1] == 1; 23827 23828 ; 23829 return 0; 23830} 23831_ACEOF 23832if ac_fn_c_try_run "$LINENO"; then : 23833 ac_cv_c_bigendian=no 23834else 23835 ac_cv_c_bigendian=yes 23836fi 23837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23838 conftest.$ac_objext conftest.beam conftest.$ac_ext 23839fi 23840 23841 fi 23842fi 23843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 23844$as_echo "$ac_cv_c_bigendian" >&6; } 23845 case $ac_cv_c_bigendian in #( 23846 yes) 23847 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 23848;; #( 23849 no) 23850 ;; #( 23851 universal) 23852 23853$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 23854 23855 ;; #( 23856 *) 23857 as_fn_error $? "unknown endianness 23858 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 23859 esac 23860 23861 23862# Define to a suitable type, if standard headers do not define it. 23863ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 23864case $ac_cv_c_int8_t in #( 23865 no|yes) ;; #( 23866 *) 23867 23868cat >>confdefs.h <<_ACEOF 23869#define int8_t $ac_cv_c_int8_t 23870_ACEOF 23871;; 23872esac 23873 23874ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 23875case $ac_cv_c_int16_t in #( 23876 no|yes) ;; #( 23877 *) 23878 23879cat >>confdefs.h <<_ACEOF 23880#define int16_t $ac_cv_c_int16_t 23881_ACEOF 23882;; 23883esac 23884 23885ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 23886case $ac_cv_c_int32_t in #( 23887 no|yes) ;; #( 23888 *) 23889 23890cat >>confdefs.h <<_ACEOF 23891#define int32_t $ac_cv_c_int32_t 23892_ACEOF 23893;; 23894esac 23895 23896ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 23897case $ac_cv_c_int64_t in #( 23898 no|yes) ;; #( 23899 *) 23900 23901cat >>confdefs.h <<_ACEOF 23902#define int64_t $ac_cv_c_int64_t 23903_ACEOF 23904;; 23905esac 23906 23907 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 23909$as_echo_n "checking for unsigned long long int... " >&6; } 23910if ${ac_cv_type_unsigned_long_long_int+:} false; then : 23911 $as_echo_n "(cached) " >&6 23912else 23913 ac_cv_type_unsigned_long_long_int=yes 23914 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23916/* end confdefs.h. */ 23917 23918 /* For now, do not test the preprocessor; as of 2007 there are too many 23919 implementations with broken preprocessors. Perhaps this can 23920 be revisited in 2012. In the meantime, code should not expect 23921 #if to work with literals wider than 32 bits. */ 23922 /* Test literals. */ 23923 long long int ll = 9223372036854775807ll; 23924 long long int nll = -9223372036854775807LL; 23925 unsigned long long int ull = 18446744073709551615ULL; 23926 /* Test constant expressions. */ 23927 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 23928 ? 1 : -1)]; 23929 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 23930 ? 1 : -1)]; 23931 int i = 63; 23932int 23933main () 23934{ 23935/* Test availability of runtime routines for shift and division. */ 23936 long long int llmax = 9223372036854775807ll; 23937 unsigned long long int ullmax = 18446744073709551615ull; 23938 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 23939 | (llmax / ll) | (llmax % ll) 23940 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 23941 | (ullmax / ull) | (ullmax % ull)); 23942 ; 23943 return 0; 23944} 23945 23946_ACEOF 23947if ac_fn_c_try_link "$LINENO"; then : 23948 23949else 23950 ac_cv_type_unsigned_long_long_int=no 23951fi 23952rm -f core conftest.err conftest.$ac_objext \ 23953 conftest$ac_exeext conftest.$ac_ext 23954 fi 23955fi 23956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 23957$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 23958 if test $ac_cv_type_unsigned_long_long_int = yes; then 23959 23960$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 23961 23962 fi 23963 23964 23965 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 23967$as_echo_n "checking for long long int... " >&6; } 23968if ${ac_cv_type_long_long_int+:} false; then : 23969 $as_echo_n "(cached) " >&6 23970else 23971 ac_cv_type_long_long_int=yes 23972 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 23973 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 23974 if test $ac_cv_type_long_long_int = yes; then 23975 if test "$cross_compiling" = yes; then : 23976 : 23977else 23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23979/* end confdefs.h. */ 23980#include <limits.h> 23981 #ifndef LLONG_MAX 23982 # define HALF \ 23983 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 23984 # define LLONG_MAX (HALF - 1 + HALF) 23985 #endif 23986int 23987main () 23988{ 23989long long int n = 1; 23990 int i; 23991 for (i = 0; ; i++) 23992 { 23993 long long int m = n << i; 23994 if (m >> i != n) 23995 return 1; 23996 if (LLONG_MAX / 2 < m) 23997 break; 23998 } 23999 return 0; 24000 ; 24001 return 0; 24002} 24003_ACEOF 24004if ac_fn_c_try_run "$LINENO"; then : 24005 24006else 24007 ac_cv_type_long_long_int=no 24008fi 24009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24010 conftest.$ac_objext conftest.beam conftest.$ac_ext 24011fi 24012 24013 fi 24014 fi 24015fi 24016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 24017$as_echo "$ac_cv_type_long_long_int" >&6; } 24018 if test $ac_cv_type_long_long_int = yes; then 24019 24020$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 24021 24022 fi 24023 24024 24025 24026 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 24027if test "x$ac_cv_type_intmax_t" = xyes; then : 24028 24029$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 24030 24031else 24032 test $ac_cv_type_long_long_int = yes \ 24033 && ac_type='long long int' \ 24034 || ac_type='long int' 24035 24036cat >>confdefs.h <<_ACEOF 24037#define intmax_t $ac_type 24038_ACEOF 24039 24040fi 24041 24042 24043 24044 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 24045if test "x$ac_cv_type_intptr_t" = xyes; then : 24046 24047$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 24048 24049else 24050 for ac_type in 'int' 'long int' 'long long int'; do 24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24052/* end confdefs.h. */ 24053$ac_includes_default 24054int 24055main () 24056{ 24057static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 24058test_array [0] = 0; 24059return test_array [0]; 24060 24061 ; 24062 return 0; 24063} 24064_ACEOF 24065if ac_fn_c_try_compile "$LINENO"; then : 24066 24067cat >>confdefs.h <<_ACEOF 24068#define intptr_t $ac_type 24069_ACEOF 24070 24071 ac_type= 24072fi 24073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24074 test -z "$ac_type" && break 24075 done 24076fi 24077 24078 24079 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 24081$as_echo_n "checking for long double... " >&6; } 24082if ${ac_cv_type_long_double+:} false; then : 24083 $as_echo_n "(cached) " >&6 24084else 24085 if test "$GCC" = yes; then 24086 ac_cv_type_long_double=yes 24087 else 24088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24089/* end confdefs.h. */ 24090/* The Stardent Vistra knows sizeof (long double), but does 24091 not support it. */ 24092 long double foo = 0.0L; 24093int 24094main () 24095{ 24096static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 24097 sizeof (double) <= sizeof (long double))]; 24098test_array [0] = 0; 24099return test_array [0]; 24100 24101 ; 24102 return 0; 24103} 24104_ACEOF 24105if ac_fn_c_try_compile "$LINENO"; then : 24106 ac_cv_type_long_double=yes 24107else 24108 ac_cv_type_long_double=no 24109fi 24110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24111 fi 24112fi 24113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 24114$as_echo "$ac_cv_type_long_double" >&6; } 24115 if test $ac_cv_type_long_double = yes; then 24116 24117$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 24118 24119 fi 24120 24121 24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 24123$as_echo_n "checking for long double with more range or precision than double... " >&6; } 24124if ${ac_cv_type_long_double_wider+:} false; then : 24125 $as_echo_n "(cached) " >&6 24126else 24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24128/* end confdefs.h. */ 24129#include <float.h> 24130 long double const a[] = 24131 { 24132 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 24133 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 24134 }; 24135 long double 24136 f (long double x) 24137 { 24138 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 24139 + (x ? f (x) : 'c')); 24140 } 24141 24142int 24143main () 24144{ 24145static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 24146 + (DBL_MANT_DIG < LDBL_MANT_DIG) 24147 - (LDBL_MAX_EXP < DBL_MAX_EXP) 24148 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 24149 && (int) LDBL_EPSILON == 0 24150 )]; 24151test_array [0] = 0; 24152return test_array [0]; 24153 24154 ; 24155 return 0; 24156} 24157_ACEOF 24158if ac_fn_c_try_compile "$LINENO"; then : 24159 ac_cv_type_long_double_wider=yes 24160else 24161 ac_cv_type_long_double_wider=no 24162fi 24163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24164fi 24165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 24166$as_echo "$ac_cv_type_long_double_wider" >&6; } 24167 if test $ac_cv_type_long_double_wider = yes; then 24168 24169$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 24170 24171 fi 24172 24173 24174 24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 24176$as_echo_n "checking for long long int... " >&6; } 24177if ${ac_cv_type_long_long_int+:} false; then : 24178 $as_echo_n "(cached) " >&6 24179else 24180 ac_cv_type_long_long_int=yes 24181 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 24182 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 24183 if test $ac_cv_type_long_long_int = yes; then 24184 if test "$cross_compiling" = yes; then : 24185 : 24186else 24187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24188/* end confdefs.h. */ 24189#include <limits.h> 24190 #ifndef LLONG_MAX 24191 # define HALF \ 24192 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 24193 # define LLONG_MAX (HALF - 1 + HALF) 24194 #endif 24195int 24196main () 24197{ 24198long long int n = 1; 24199 int i; 24200 for (i = 0; ; i++) 24201 { 24202 long long int m = n << i; 24203 if (m >> i != n) 24204 return 1; 24205 if (LLONG_MAX / 2 < m) 24206 break; 24207 } 24208 return 0; 24209 ; 24210 return 0; 24211} 24212_ACEOF 24213if ac_fn_c_try_run "$LINENO"; then : 24214 24215else 24216 ac_cv_type_long_long_int=no 24217fi 24218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24219 conftest.$ac_objext conftest.beam conftest.$ac_ext 24220fi 24221 24222 fi 24223 fi 24224fi 24225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 24226$as_echo "$ac_cv_type_long_long_int" >&6; } 24227 if test $ac_cv_type_long_long_int = yes; then 24228 24229$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 24230 24231 fi 24232 24233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 24234$as_echo_n "checking for mbstate_t... " >&6; } 24235if ${ac_cv_type_mbstate_t+:} false; then : 24236 $as_echo_n "(cached) " >&6 24237else 24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24239/* end confdefs.h. */ 24240$ac_includes_default 24241# include <wchar.h> 24242int 24243main () 24244{ 24245mbstate_t x; return sizeof x; 24246 ; 24247 return 0; 24248} 24249_ACEOF 24250if ac_fn_c_try_compile "$LINENO"; then : 24251 ac_cv_type_mbstate_t=yes 24252else 24253 ac_cv_type_mbstate_t=no 24254fi 24255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24256fi 24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 24258$as_echo "$ac_cv_type_mbstate_t" >&6; } 24259 if test $ac_cv_type_mbstate_t = yes; then 24260 24261$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 24262 24263 else 24264 24265$as_echo "#define mbstate_t int" >>confdefs.h 24266 24267 fi 24268ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 24269if test "x$ac_cv_type_mode_t" = xyes; then : 24270 24271else 24272 24273cat >>confdefs.h <<_ACEOF 24274#define mode_t int 24275_ACEOF 24276 24277fi 24278 24279ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 24280if test "x$ac_cv_type_off_t" = xyes; then : 24281 24282else 24283 24284cat >>confdefs.h <<_ACEOF 24285#define off_t long int 24286_ACEOF 24287 24288fi 24289 24290ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24291if test "x$ac_cv_type_pid_t" = xyes; then : 24292 24293else 24294 24295cat >>confdefs.h <<_ACEOF 24296#define pid_t int 24297_ACEOF 24298 24299fi 24300 24301ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 24302if test "x$ac_cv_type_size_t" = xyes; then : 24303 24304else 24305 24306cat >>confdefs.h <<_ACEOF 24307#define size_t unsigned int 24308_ACEOF 24309 24310fi 24311 24312ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 24313if test "x$ac_cv_type_ssize_t" = xyes; then : 24314 24315else 24316 24317cat >>confdefs.h <<_ACEOF 24318#define ssize_t int 24319_ACEOF 24320 24321fi 24322 24323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 24324$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 24325if ${ac_cv_type_uid_t+:} false; then : 24326 $as_echo_n "(cached) " >&6 24327else 24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24329/* end confdefs.h. */ 24330#include <sys/types.h> 24331 24332_ACEOF 24333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24334 $EGREP "uid_t" >/dev/null 2>&1; then : 24335 ac_cv_type_uid_t=yes 24336else 24337 ac_cv_type_uid_t=no 24338fi 24339rm -f conftest* 24340 24341fi 24342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 24343$as_echo "$ac_cv_type_uid_t" >&6; } 24344if test $ac_cv_type_uid_t = no; then 24345 24346$as_echo "#define uid_t int" >>confdefs.h 24347 24348 24349$as_echo "#define gid_t int" >>confdefs.h 24350 24351fi 24352 24353ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 24354case $ac_cv_c_uint8_t in #( 24355 no|yes) ;; #( 24356 *) 24357 24358$as_echo "#define _UINT8_T 1" >>confdefs.h 24359 24360 24361cat >>confdefs.h <<_ACEOF 24362#define uint8_t $ac_cv_c_uint8_t 24363_ACEOF 24364;; 24365 esac 24366 24367ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 24368case $ac_cv_c_uint16_t in #( 24369 no|yes) ;; #( 24370 *) 24371 24372 24373cat >>confdefs.h <<_ACEOF 24374#define uint16_t $ac_cv_c_uint16_t 24375_ACEOF 24376;; 24377 esac 24378 24379ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 24380case $ac_cv_c_uint32_t in #( 24381 no|yes) ;; #( 24382 *) 24383 24384$as_echo "#define _UINT32_T 1" >>confdefs.h 24385 24386 24387cat >>confdefs.h <<_ACEOF 24388#define uint32_t $ac_cv_c_uint32_t 24389_ACEOF 24390;; 24391 esac 24392 24393ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 24394case $ac_cv_c_uint64_t in #( 24395 no|yes) ;; #( 24396 *) 24397 24398$as_echo "#define _UINT64_T 1" >>confdefs.h 24399 24400 24401cat >>confdefs.h <<_ACEOF 24402#define uint64_t $ac_cv_c_uint64_t 24403_ACEOF 24404;; 24405 esac 24406 24407 24408 24409 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 24410if test "x$ac_cv_type_uintmax_t" = xyes; then : 24411 24412$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 24413 24414else 24415 test $ac_cv_type_unsigned_long_long_int = yes \ 24416 && ac_type='unsigned long long int' \ 24417 || ac_type='unsigned long int' 24418 24419cat >>confdefs.h <<_ACEOF 24420#define uintmax_t $ac_type 24421_ACEOF 24422 24423fi 24424 24425 24426 24427 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 24428if test "x$ac_cv_type_uintptr_t" = xyes; then : 24429 24430$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 24431 24432else 24433 for ac_type in 'unsigned int' 'unsigned long int' \ 24434 'unsigned long long int'; do 24435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24436/* end confdefs.h. */ 24437$ac_includes_default 24438int 24439main () 24440{ 24441static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 24442test_array [0] = 0; 24443return test_array [0]; 24444 24445 ; 24446 return 0; 24447} 24448_ACEOF 24449if ac_fn_c_try_compile "$LINENO"; then : 24450 24451cat >>confdefs.h <<_ACEOF 24452#define uintptr_t $ac_type 24453_ACEOF 24454 24455 ac_type= 24456fi 24457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24458 test -z "$ac_type" && break 24459 done 24460fi 24461 24462 24463 24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 24465$as_echo_n "checking for unsigned long long int... " >&6; } 24466if ${ac_cv_type_unsigned_long_long_int+:} false; then : 24467 $as_echo_n "(cached) " >&6 24468else 24469 ac_cv_type_unsigned_long_long_int=yes 24470 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 24471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24472/* end confdefs.h. */ 24473 24474 /* For now, do not test the preprocessor; as of 2007 there are too many 24475 implementations with broken preprocessors. Perhaps this can 24476 be revisited in 2012. In the meantime, code should not expect 24477 #if to work with literals wider than 32 bits. */ 24478 /* Test literals. */ 24479 long long int ll = 9223372036854775807ll; 24480 long long int nll = -9223372036854775807LL; 24481 unsigned long long int ull = 18446744073709551615ULL; 24482 /* Test constant expressions. */ 24483 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 24484 ? 1 : -1)]; 24485 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 24486 ? 1 : -1)]; 24487 int i = 63; 24488int 24489main () 24490{ 24491/* Test availability of runtime routines for shift and division. */ 24492 long long int llmax = 9223372036854775807ll; 24493 unsigned long long int ullmax = 18446744073709551615ull; 24494 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 24495 | (llmax / ll) | (llmax % ll) 24496 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 24497 | (ullmax / ull) | (ullmax % ull)); 24498 ; 24499 return 0; 24500} 24501 24502_ACEOF 24503if ac_fn_c_try_link "$LINENO"; then : 24504 24505else 24506 ac_cv_type_unsigned_long_long_int=no 24507fi 24508rm -f core conftest.err conftest.$ac_objext \ 24509 conftest$ac_exeext conftest.$ac_ext 24510 fi 24511fi 24512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 24513$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 24514 if test $ac_cv_type_unsigned_long_long_int = yes; then 24515 24516$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 24517 24518 fi 24519 24520 24521ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h> 24522" 24523if test "x$ac_cv_type_locale_t" = xyes; then : 24524 24525cat >>confdefs.h <<_ACEOF 24526#define HAVE_LOCALE_T 1 24527_ACEOF 24528 24529 24530fi 24531 24532 24533# Float_t and double_t are intended to be the the most efficient type. 24534ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> 24535" 24536if test "x$ac_cv_type_float_t" = xyes; then : 24537 24538cat >>confdefs.h <<_ACEOF 24539#define HAVE_FLOAT_T 1 24540_ACEOF 24541 24542 24543fi 24544 24545ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> 24546" 24547if test "x$ac_cv_type_double_t" = xyes; then : 24548 24549cat >>confdefs.h <<_ACEOF 24550#define HAVE_DOUBLE_T 1 24551_ACEOF 24552 24553 24554fi 24555 24556# The cast to long int works around a bug in the HP C Compiler 24557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24559# This bug is HP SR number 8606223364. 24560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 24561$as_echo_n "checking size of float_t... " >&6; } 24562if ${ac_cv_sizeof_float_t+:} false; then : 24563 $as_echo_n "(cached) " >&6 24564else 24565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> 24566"; then : 24567 24568else 24569 if test "$ac_cv_type_float_t" = yes; then 24570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24572as_fn_error 77 "cannot compute sizeof (float_t) 24573See \`config.log' for more details" "$LINENO" 5; } 24574 else 24575 ac_cv_sizeof_float_t=0 24576 fi 24577fi 24578 24579fi 24580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 24581$as_echo "$ac_cv_sizeof_float_t" >&6; } 24582 24583 24584 24585cat >>confdefs.h <<_ACEOF 24586#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t 24587_ACEOF 24588 24589 24590# The cast to long int works around a bug in the HP C Compiler 24591# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24592# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24593# This bug is HP SR number 8606223364. 24594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 24595$as_echo_n "checking size of double_t... " >&6; } 24596if ${ac_cv_sizeof_double_t+:} false; then : 24597 $as_echo_n "(cached) " >&6 24598else 24599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> 24600"; then : 24601 24602else 24603 if test "$ac_cv_type_double_t" = yes; then 24604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24606as_fn_error 77 "cannot compute sizeof (double_t) 24607See \`config.log' for more details" "$LINENO" 5; } 24608 else 24609 ac_cv_sizeof_double_t=0 24610 fi 24611fi 24612 24613fi 24614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 24615$as_echo "$ac_cv_sizeof_double_t" >&6; } 24616 24617 24618 24619cat >>confdefs.h <<_ACEOF 24620#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t 24621_ACEOF 24622 24623 24624 24625# Get size of float, double and long double for comparaison. 24626# The cast to long int works around a bug in the HP C Compiler 24627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24629# This bug is HP SR number 8606223364. 24630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 24631$as_echo_n "checking size of float... " >&6; } 24632if ${ac_cv_sizeof_float+:} false; then : 24633 $as_echo_n "(cached) " >&6 24634else 24635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 24636 24637else 24638 if test "$ac_cv_type_float" = yes; then 24639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24641as_fn_error 77 "cannot compute sizeof (float) 24642See \`config.log' for more details" "$LINENO" 5; } 24643 else 24644 ac_cv_sizeof_float=0 24645 fi 24646fi 24647 24648fi 24649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 24650$as_echo "$ac_cv_sizeof_float" >&6; } 24651 24652 24653 24654cat >>confdefs.h <<_ACEOF 24655#define SIZEOF_FLOAT $ac_cv_sizeof_float 24656_ACEOF 24657 24658 24659# The cast to long int works around a bug in the HP C Compiler 24660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24662# This bug is HP SR number 8606223364. 24663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 24664$as_echo_n "checking size of double... " >&6; } 24665if ${ac_cv_sizeof_double+:} false; then : 24666 $as_echo_n "(cached) " >&6 24667else 24668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 24669 24670else 24671 if test "$ac_cv_type_double" = yes; then 24672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24674as_fn_error 77 "cannot compute sizeof (double) 24675See \`config.log' for more details" "$LINENO" 5; } 24676 else 24677 ac_cv_sizeof_double=0 24678 fi 24679fi 24680 24681fi 24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 24683$as_echo "$ac_cv_sizeof_double" >&6; } 24684 24685 24686 24687cat >>confdefs.h <<_ACEOF 24688#define SIZEOF_DOUBLE $ac_cv_sizeof_double 24689_ACEOF 24690 24691 24692# The cast to long int works around a bug in the HP C Compiler 24693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24695# This bug is HP SR number 8606223364. 24696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 24697$as_echo_n "checking size of long double... " >&6; } 24698if ${ac_cv_sizeof_long_double+:} false; then : 24699 $as_echo_n "(cached) " >&6 24700else 24701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 24702 24703else 24704 if test "$ac_cv_type_long_double" = yes; then 24705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24707as_fn_error 77 "cannot compute sizeof (long double) 24708See \`config.log' for more details" "$LINENO" 5; } 24709 else 24710 ac_cv_sizeof_long_double=0 24711 fi 24712fi 24713 24714fi 24715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 24716$as_echo "$ac_cv_sizeof_long_double" >&6; } 24717 24718 24719 24720cat >>confdefs.h <<_ACEOF 24721#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 24722_ACEOF 24723 24724 24725 24726# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 24727# The cast to long int works around a bug in the HP C Compiler 24728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24730# This bug is HP SR number 8606223364. 24731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 24732$as_echo_n "checking size of signed short... " >&6; } 24733if ${ac_cv_sizeof_signed_short+:} false; then : 24734 $as_echo_n "(cached) " >&6 24735else 24736 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 24737 24738else 24739 if test "$ac_cv_type_signed_short" = yes; then 24740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24742as_fn_error 77 "cannot compute sizeof (signed short) 24743See \`config.log' for more details" "$LINENO" 5; } 24744 else 24745 ac_cv_sizeof_signed_short=0 24746 fi 24747fi 24748 24749fi 24750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 24751$as_echo "$ac_cv_sizeof_signed_short" >&6; } 24752 24753 24754 24755cat >>confdefs.h <<_ACEOF 24756#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 24757_ACEOF 24758 24759 24760 24761# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 24762# The cast to long int works around a bug in the HP C Compiler 24763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24765# This bug is HP SR number 8606223364. 24766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 24767$as_echo_n "checking size of unsigned short... " >&6; } 24768if ${ac_cv_sizeof_unsigned_short+:} false; then : 24769 $as_echo_n "(cached) " >&6 24770else 24771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 24772 24773else 24774 if test "$ac_cv_type_unsigned_short" = yes; then 24775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24777as_fn_error 77 "cannot compute sizeof (unsigned short) 24778See \`config.log' for more details" "$LINENO" 5; } 24779 else 24780 ac_cv_sizeof_unsigned_short=0 24781 fi 24782fi 24783 24784fi 24785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 24786$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 24787 24788 24789 24790cat >>confdefs.h <<_ACEOF 24791#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 24792_ACEOF 24793 24794 24795 24796# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 24797# The cast to long int works around a bug in the HP C Compiler 24798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24800# This bug is HP SR number 8606223364. 24801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 24802$as_echo_n "checking size of signed int... " >&6; } 24803if ${ac_cv_sizeof_signed_int+:} false; then : 24804 $as_echo_n "(cached) " >&6 24805else 24806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 24807 24808else 24809 if test "$ac_cv_type_signed_int" = yes; then 24810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24812as_fn_error 77 "cannot compute sizeof (signed int) 24813See \`config.log' for more details" "$LINENO" 5; } 24814 else 24815 ac_cv_sizeof_signed_int=0 24816 fi 24817fi 24818 24819fi 24820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 24821$as_echo "$ac_cv_sizeof_signed_int" >&6; } 24822 24823 24824 24825cat >>confdefs.h <<_ACEOF 24826#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 24827_ACEOF 24828 24829 24830 24831# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 24832# The cast to long int works around a bug in the HP C Compiler 24833# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24834# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24835# This bug is HP SR number 8606223364. 24836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 24837$as_echo_n "checking size of unsigned int... " >&6; } 24838if ${ac_cv_sizeof_unsigned_int+:} false; then : 24839 $as_echo_n "(cached) " >&6 24840else 24841 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 24842 24843else 24844 if test "$ac_cv_type_unsigned_int" = yes; then 24845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24847as_fn_error 77 "cannot compute sizeof (unsigned int) 24848See \`config.log' for more details" "$LINENO" 5; } 24849 else 24850 ac_cv_sizeof_unsigned_int=0 24851 fi 24852fi 24853 24854fi 24855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 24856$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 24857 24858 24859 24860cat >>confdefs.h <<_ACEOF 24861#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 24862_ACEOF 24863 24864 24865 24866# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 24867# The cast to long int works around a bug in the HP C Compiler 24868# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24869# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24870# This bug is HP SR number 8606223364. 24871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 24872$as_echo_n "checking size of signed long... " >&6; } 24873if ${ac_cv_sizeof_signed_long+:} false; then : 24874 $as_echo_n "(cached) " >&6 24875else 24876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 24877 24878else 24879 if test "$ac_cv_type_signed_long" = yes; then 24880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24882as_fn_error 77 "cannot compute sizeof (signed long) 24883See \`config.log' for more details" "$LINENO" 5; } 24884 else 24885 ac_cv_sizeof_signed_long=0 24886 fi 24887fi 24888 24889fi 24890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 24891$as_echo "$ac_cv_sizeof_signed_long" >&6; } 24892 24893 24894 24895cat >>confdefs.h <<_ACEOF 24896#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 24897_ACEOF 24898 24899 24900 24901# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 24902# The cast to long int works around a bug in the HP C Compiler 24903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24905# This bug is HP SR number 8606223364. 24906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 24907$as_echo_n "checking size of unsigned long... " >&6; } 24908if ${ac_cv_sizeof_unsigned_long+:} false; then : 24909 $as_echo_n "(cached) " >&6 24910else 24911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 24912 24913else 24914 if test "$ac_cv_type_unsigned_long" = yes; then 24915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24917as_fn_error 77 "cannot compute sizeof (unsigned long) 24918See \`config.log' for more details" "$LINENO" 5; } 24919 else 24920 ac_cv_sizeof_unsigned_long=0 24921 fi 24922fi 24923 24924fi 24925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 24926$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 24927 24928 24929 24930cat >>confdefs.h <<_ACEOF 24931#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 24932_ACEOF 24933 24934 24935 24936# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If 24937# 'signed long long' is not supported then the value defined is zero. 24938# The cast to long int works around a bug in the HP C Compiler 24939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24941# This bug is HP SR number 8606223364. 24942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 24943$as_echo_n "checking size of signed long long... " >&6; } 24944if ${ac_cv_sizeof_signed_long_long+:} false; then : 24945 $as_echo_n "(cached) " >&6 24946else 24947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 24948 24949else 24950 if test "$ac_cv_type_signed_long_long" = yes; then 24951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24953as_fn_error 77 "cannot compute sizeof (signed long long) 24954See \`config.log' for more details" "$LINENO" 5; } 24955 else 24956 ac_cv_sizeof_signed_long_long=0 24957 fi 24958fi 24959 24960fi 24961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 24962$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 24963 24964 24965 24966cat >>confdefs.h <<_ACEOF 24967#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 24968_ACEOF 24969 24970 24971 24972# Obtain size of a 'unsigned long long' and define as 24973# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 24974# supported then the value defined is zero. 24975# The cast to long int works around a bug in the HP C Compiler 24976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24978# This bug is HP SR number 8606223364. 24979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 24980$as_echo_n "checking size of unsigned long long... " >&6; } 24981if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 24982 $as_echo_n "(cached) " >&6 24983else 24984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 24985 24986else 24987 if test "$ac_cv_type_unsigned_long_long" = yes; then 24988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24990as_fn_error 77 "cannot compute sizeof (unsigned long long) 24991See \`config.log' for more details" "$LINENO" 5; } 24992 else 24993 ac_cv_sizeof_unsigned_long_long=0 24994 fi 24995fi 24996 24997fi 24998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 24999$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 25000 25001 25002 25003cat >>confdefs.h <<_ACEOF 25004#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 25005_ACEOF 25006 25007 25008 25009# Obtain size of off_t and define as SIZEOF_OFF_T 25010# The cast to long int works around a bug in the HP C Compiler 25011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25013# This bug is HP SR number 8606223364. 25014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 25015$as_echo_n "checking size of off_t... " >&6; } 25016if ${ac_cv_sizeof_off_t+:} false; then : 25017 $as_echo_n "(cached) " >&6 25018else 25019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 25020 25021else 25022 if test "$ac_cv_type_off_t" = yes; then 25023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25025as_fn_error 77 "cannot compute sizeof (off_t) 25026See \`config.log' for more details" "$LINENO" 5; } 25027 else 25028 ac_cv_sizeof_off_t=0 25029 fi 25030fi 25031 25032fi 25033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 25034$as_echo "$ac_cv_sizeof_off_t" >&6; } 25035 25036 25037 25038cat >>confdefs.h <<_ACEOF 25039#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 25040_ACEOF 25041 25042 25043 25044# Obtain size of size_t and define as SIZEOF_SIZE_T 25045# The cast to long int works around a bug in the HP C Compiler 25046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25048# This bug is HP SR number 8606223364. 25049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 25050$as_echo_n "checking size of size_t... " >&6; } 25051if ${ac_cv_sizeof_size_t+:} false; then : 25052 $as_echo_n "(cached) " >&6 25053else 25054 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 25055 25056else 25057 if test "$ac_cv_type_size_t" = yes; then 25058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25060as_fn_error 77 "cannot compute sizeof (size_t) 25061See \`config.log' for more details" "$LINENO" 5; } 25062 else 25063 ac_cv_sizeof_size_t=0 25064 fi 25065fi 25066 25067fi 25068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 25069$as_echo "$ac_cv_sizeof_size_t" >&6; } 25070 25071 25072 25073cat >>confdefs.h <<_ACEOF 25074#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 25075_ACEOF 25076 25077 25078 25079# Obtain size of ssize_t and define as SIZEOF_SSIZE_T 25080# The cast to long int works around a bug in the HP C Compiler 25081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25083# This bug is HP SR number 8606223364. 25084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 25085$as_echo_n "checking size of ssize_t... " >&6; } 25086if ${ac_cv_sizeof_ssize_t+:} false; then : 25087 $as_echo_n "(cached) " >&6 25088else 25089 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 25090 25091else 25092 if test "$ac_cv_type_ssize_t" = yes; then 25093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25095as_fn_error 77 "cannot compute sizeof (ssize_t) 25096See \`config.log' for more details" "$LINENO" 5; } 25097 else 25098 ac_cv_sizeof_ssize_t=0 25099 fi 25100fi 25101 25102fi 25103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 25104$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 25105 25106 25107 25108cat >>confdefs.h <<_ACEOF 25109#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 25110_ACEOF 25111 25112 25113 25114# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP 25115# The cast to long int works around a bug in the HP C Compiler 25116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25118# This bug is HP SR number 8606223364. 25119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 25120$as_echo_n "checking size of unsigned int*... " >&6; } 25121if ${ac_cv_sizeof_unsigned_intp+:} false; then : 25122 $as_echo_n "(cached) " >&6 25123else 25124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : 25125 25126else 25127 if test "$ac_cv_type_unsigned_intp" = yes; then 25128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25130as_fn_error 77 "cannot compute sizeof (unsigned int*) 25131See \`config.log' for more details" "$LINENO" 5; } 25132 else 25133 ac_cv_sizeof_unsigned_intp=0 25134 fi 25135fi 25136 25137fi 25138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 25139$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } 25140 25141 25142 25143cat >>confdefs.h <<_ACEOF 25144#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp 25145_ACEOF 25146 25147 25148 25149# 25150# Compute sized types for current CPU and compiler options. 25151# 25152 25153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 25154$as_echo_n "checking for signed 8-bit type... " >&6; } 25155INT8_T='signed char' 25156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 25157$as_echo "$INT8_T" >&6; } 25158 25159 25160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 25161$as_echo_n "checking for unsigned 8-bit type... " >&6; } 25162UINT8_T='unsigned char' 25163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 25164$as_echo "$UINT8_T" >&6; } 25165 25166 25167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 25168$as_echo_n "checking for signed 16-bit type... " >&6; } 25169INT16_T='signed short' 25170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 25171$as_echo "$INT16_T" >&6; } 25172 25173 25174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 25175$as_echo_n "checking for unsigned 16-bit type... " >&6; } 25176UINT16_T='unsigned short' 25177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 25178$as_echo "$UINT16_T" >&6; } 25179 25180 25181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 25182$as_echo_n "checking for signed 32-bit type... " >&6; } 25183INT32_T='none' 25184INT32_F='none' 25185if test $ac_cv_sizeof_signed_int -eq 4; then 25186 INT32_T='signed int' 25187 INT32_F='""' 25188elif test $ac_cv_sizeof_signed_long -eq 4; then 25189 INT32_T='signed long' 25190 INT32_F='"l"' 25191fi 25192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 25193$as_echo "$INT32_T" >&6; } 25194 25195 25196 25197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 25198$as_echo_n "checking for unsigned 32-bit type... " >&6; } 25199UINT32_T='none' 25200UINT32_F='none' 25201if test $ac_cv_sizeof_unsigned_int -eq 4; then 25202 UINT32_T='unsigned int' 25203 UINT32_F='""' 25204elif test $ac_cv_sizeof_unsigned_long -eq 4; then 25205 UINT32_T='unsigned long' 25206 UINT32_F='"l"' 25207fi 25208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 25209$as_echo "$UINT32_T" >&6; } 25210 25211 25212 25213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 25214$as_echo_n "checking for signed 64-bit type... " >&6; } 25215INT64_T='none' 25216INT64_F='none' 25217if test $ac_cv_sizeof_signed_long -eq 8; then 25218 INT64_T='signed long' 25219 INT64_F='"l"' 25220elif test $ac_cv_sizeof_signed_long_long -eq 8; then 25221 INT64_T='signed long long' 25222 INT64_F='"ll"' 25223fi 25224case "${host_os}" in 25225 mingw* ) 25226 INT64_F='"I64"' 25227 ;; 25228esac 25229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 25230$as_echo "$INT64_T" >&6; } 25231 25232 25233 25234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 25235$as_echo_n "checking for unsigned 64-bit type... " >&6; } 25236UINT64_T='none' 25237UINT64_F='none' 25238if test $ac_cv_sizeof_unsigned_long -eq 8; then 25239 UINT64_T='unsigned long' 25240 UINT64_F='"l"' 25241elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then 25242 UINT64_T='unsigned long long' 25243 UINT64_F='"ll"' 25244fi 25245case "${host_os}" in 25246 mingw* ) 25247 UINT64_F='"I64"' 25248 ;; 25249esac 25250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 25251$as_echo "$UINT64_T" >&6; } 25252 25253 25254 25255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 25256$as_echo_n "checking for unsigned maximum type... " >&6; } 25257UINTMAX_T='none' 25258UINTMAX_F='none' 25259if test "$UINT64_T" != 'none'; then 25260 UINTMAX_T=$UINT64_T 25261 UINTMAX_F=$UINT64_F 25262elif test "$UINT32_T" != 'none'; then 25263 UINTMAX_T=$UINT32_T 25264 UINTMAX_F=$UINT32_F 25265fi 25266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 25267$as_echo "$UINTMAX_T" >&6; } 25268 25269 25270 25271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 25272$as_echo_n "checking for pointer difference type... " >&6; } 25273UINTPTR_T='none' 25274UINTPTR_F='none' 25275if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then 25276 UINTPTR_T='unsigned long' 25277 UINTPTR_F='"l"' 25278elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then 25279 UINTPTR_T='unsigned long long' 25280 UINTPTR_F='"ll"' 25281fi 25282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 25283$as_echo "$UINTPTR_T" >&6; } 25284 25285 25286 25287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 25288$as_echo_n "checking whether our compiler supports __func__... " >&6; } 25289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25290/* end confdefs.h. */ 25291 25292int 25293main () 25294{ 25295{ const char *func = __func__; return(func != 0 ? 0 : 1); } 25296 ; 25297 return 0; 25298} 25299_ACEOF 25300if ac_fn_c_try_compile "$LINENO"; then : 25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25302$as_echo "yes" >&6; } 25303else 25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25305$as_echo "no" >&6; } 25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 25307$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25309/* end confdefs.h. */ 25310 25311int 25312main () 25313{ 25314{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } 25315 ; 25316 return 0; 25317} 25318_ACEOF 25319if ac_fn_c_try_compile "$LINENO"; then : 25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25321$as_echo "yes" >&6; } 25322 25323$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 25324 25325else 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25327$as_echo "no" >&6; } 25328 25329$as_echo "#define __func__ __FILE__" >>confdefs.h 25330 25331fi 25332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25333fi 25334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25335 25336######## 25337# 25338# Check for functions 25339# 25340######## 25341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 25342$as_echo_n "checking whether closedir returns void... " >&6; } 25343if ${ac_cv_func_closedir_void+:} false; then : 25344 $as_echo_n "(cached) " >&6 25345else 25346 if test "$cross_compiling" = yes; then : 25347 ac_cv_func_closedir_void=yes 25348else 25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25350/* end confdefs.h. */ 25351$ac_includes_default 25352#include <$ac_header_dirent> 25353#ifndef __cplusplus 25354int closedir (); 25355#endif 25356 25357int 25358main () 25359{ 25360return closedir (opendir (".")) != 0; 25361 ; 25362 return 0; 25363} 25364_ACEOF 25365if ac_fn_c_try_run "$LINENO"; then : 25366 ac_cv_func_closedir_void=no 25367else 25368 ac_cv_func_closedir_void=yes 25369fi 25370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25371 conftest.$ac_objext conftest.beam conftest.$ac_ext 25372fi 25373 25374fi 25375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 25376$as_echo "$ac_cv_func_closedir_void" >&6; } 25377if test $ac_cv_func_closedir_void = yes; then 25378 25379$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 25380 25381fi 25382 25383 25384 25385 25386 for ac_header in $ac_header_list 25387do : 25388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 25390" 25391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25392 cat >>confdefs.h <<_ACEOF 25393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25394_ACEOF 25395 25396fi 25397 25398done 25399 25400 25401 25402 25403 25404 25405 25406 25407for ac_func in getpagesize 25408do : 25409 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 25410if test "x$ac_cv_func_getpagesize" = xyes; then : 25411 cat >>confdefs.h <<_ACEOF 25412#define HAVE_GETPAGESIZE 1 25413_ACEOF 25414 25415fi 25416done 25417 25418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 25419$as_echo_n "checking for working mmap... " >&6; } 25420if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 25421 $as_echo_n "(cached) " >&6 25422else 25423 if test "$cross_compiling" = yes; then : 25424 ac_cv_func_mmap_fixed_mapped=no 25425else 25426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25427/* end confdefs.h. */ 25428$ac_includes_default 25429/* malloc might have been renamed as rpl_malloc. */ 25430#undef malloc 25431 25432/* Thanks to Mike Haertel and Jim Avera for this test. 25433 Here is a matrix of mmap possibilities: 25434 mmap private not fixed 25435 mmap private fixed at somewhere currently unmapped 25436 mmap private fixed at somewhere already mapped 25437 mmap shared not fixed 25438 mmap shared fixed at somewhere currently unmapped 25439 mmap shared fixed at somewhere already mapped 25440 For private mappings, we should verify that changes cannot be read() 25441 back from the file, nor mmap's back from the file at a different 25442 address. (There have been systems where private was not correctly 25443 implemented like the infamous i386 svr4.0, and systems where the 25444 VM page cache was not coherent with the file system buffer cache 25445 like early versions of FreeBSD and possibly contemporary NetBSD.) 25446 For shared mappings, we should conversely verify that changes get 25447 propagated back to all the places they're supposed to be. 25448 25449 Grep wants private fixed already mapped. 25450 The main things grep needs to know about mmap are: 25451 * does it exist and is it safe to write into the mmap'd area 25452 * how to use it (BSD variants) */ 25453 25454#include <fcntl.h> 25455#include <sys/mman.h> 25456 25457#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 25458char *malloc (); 25459#endif 25460 25461/* This mess was copied from the GNU getpagesize.h. */ 25462#ifndef HAVE_GETPAGESIZE 25463# ifdef _SC_PAGESIZE 25464# define getpagesize() sysconf(_SC_PAGESIZE) 25465# else /* no _SC_PAGESIZE */ 25466# ifdef HAVE_SYS_PARAM_H 25467# include <sys/param.h> 25468# ifdef EXEC_PAGESIZE 25469# define getpagesize() EXEC_PAGESIZE 25470# else /* no EXEC_PAGESIZE */ 25471# ifdef NBPG 25472# define getpagesize() NBPG * CLSIZE 25473# ifndef CLSIZE 25474# define CLSIZE 1 25475# endif /* no CLSIZE */ 25476# else /* no NBPG */ 25477# ifdef NBPC 25478# define getpagesize() NBPC 25479# else /* no NBPC */ 25480# ifdef PAGESIZE 25481# define getpagesize() PAGESIZE 25482# endif /* PAGESIZE */ 25483# endif /* no NBPC */ 25484# endif /* no NBPG */ 25485# endif /* no EXEC_PAGESIZE */ 25486# else /* no HAVE_SYS_PARAM_H */ 25487# define getpagesize() 8192 /* punt totally */ 25488# endif /* no HAVE_SYS_PARAM_H */ 25489# endif /* no _SC_PAGESIZE */ 25490 25491#endif /* no HAVE_GETPAGESIZE */ 25492 25493int 25494main () 25495{ 25496 char *data, *data2, *data3; 25497 const char *cdata2; 25498 int i, pagesize; 25499 int fd, fd2; 25500 25501 pagesize = getpagesize (); 25502 25503 /* First, make a file with some known garbage in it. */ 25504 data = (char *) malloc (pagesize); 25505 if (!data) 25506 return 1; 25507 for (i = 0; i < pagesize; ++i) 25508 *(data + i) = rand (); 25509 umask (0); 25510 fd = creat ("conftest.mmap", 0600); 25511 if (fd < 0) 25512 return 2; 25513 if (write (fd, data, pagesize) != pagesize) 25514 return 3; 25515 close (fd); 25516 25517 /* Next, check that the tail of a page is zero-filled. File must have 25518 non-zero length, otherwise we risk SIGBUS for entire page. */ 25519 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 25520 if (fd2 < 0) 25521 return 4; 25522 cdata2 = ""; 25523 if (write (fd2, cdata2, 1) != 1) 25524 return 5; 25525 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 25526 if (data2 == MAP_FAILED) 25527 return 6; 25528 for (i = 0; i < pagesize; ++i) 25529 if (*(data2 + i)) 25530 return 7; 25531 close (fd2); 25532 if (munmap (data2, pagesize)) 25533 return 8; 25534 25535 /* Next, try to mmap the file at a fixed address which already has 25536 something else allocated at it. If we can, also make sure that 25537 we see the same garbage. */ 25538 fd = open ("conftest.mmap", O_RDWR); 25539 if (fd < 0) 25540 return 9; 25541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 25542 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 25543 return 10; 25544 for (i = 0; i < pagesize; ++i) 25545 if (*(data + i) != *(data2 + i)) 25546 return 11; 25547 25548 /* Finally, make sure that changes to the mapped area do not 25549 percolate back to the file as seen by read(). (This is a bug on 25550 some variants of i386 svr4.0.) */ 25551 for (i = 0; i < pagesize; ++i) 25552 *(data2 + i) = *(data2 + i) + 1; 25553 data3 = (char *) malloc (pagesize); 25554 if (!data3) 25555 return 12; 25556 if (read (fd, data3, pagesize) != pagesize) 25557 return 13; 25558 for (i = 0; i < pagesize; ++i) 25559 if (*(data + i) != *(data3 + i)) 25560 return 14; 25561 close (fd); 25562 return 0; 25563} 25564_ACEOF 25565if ac_fn_c_try_run "$LINENO"; then : 25566 ac_cv_func_mmap_fixed_mapped=yes 25567else 25568 ac_cv_func_mmap_fixed_mapped=no 25569fi 25570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25571 conftest.$ac_objext conftest.beam conftest.$ac_ext 25572fi 25573 25574fi 25575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 25576$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 25577if test $ac_cv_func_mmap_fixed_mapped = yes; then 25578 25579$as_echo "#define HAVE_MMAP 1" >>confdefs.h 25580 25581fi 25582rm -f conftest.mmap conftest.txt 25583 25584for ac_header in vfork.h 25585do : 25586 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 25587if test "x$ac_cv_header_vfork_h" = xyes; then : 25588 cat >>confdefs.h <<_ACEOF 25589#define HAVE_VFORK_H 1 25590_ACEOF 25591 25592fi 25593 25594done 25595 25596for ac_func in fork vfork 25597do : 25598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25599ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25600if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25601 cat >>confdefs.h <<_ACEOF 25602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25603_ACEOF 25604 25605fi 25606done 25607 25608if test "x$ac_cv_func_fork" = xyes; then 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25610$as_echo_n "checking for working fork... " >&6; } 25611if ${ac_cv_func_fork_works+:} false; then : 25612 $as_echo_n "(cached) " >&6 25613else 25614 if test "$cross_compiling" = yes; then : 25615 ac_cv_func_fork_works=cross 25616else 25617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25618/* end confdefs.h. */ 25619$ac_includes_default 25620int 25621main () 25622{ 25623 25624 /* By Ruediger Kuhlmann. */ 25625 return fork () < 0; 25626 25627 ; 25628 return 0; 25629} 25630_ACEOF 25631if ac_fn_c_try_run "$LINENO"; then : 25632 ac_cv_func_fork_works=yes 25633else 25634 ac_cv_func_fork_works=no 25635fi 25636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25637 conftest.$ac_objext conftest.beam conftest.$ac_ext 25638fi 25639 25640fi 25641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25642$as_echo "$ac_cv_func_fork_works" >&6; } 25643 25644else 25645 ac_cv_func_fork_works=$ac_cv_func_fork 25646fi 25647if test "x$ac_cv_func_fork_works" = xcross; then 25648 case $host in 25649 *-*-amigaos* | *-*-msdosdjgpp*) 25650 # Override, as these systems have only a dummy fork() stub 25651 ac_cv_func_fork_works=no 25652 ;; 25653 *) 25654 ac_cv_func_fork_works=yes 25655 ;; 25656 esac 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25658$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25659fi 25660ac_cv_func_vfork_works=$ac_cv_func_vfork 25661if test "x$ac_cv_func_vfork" = xyes; then 25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25663$as_echo_n "checking for working vfork... " >&6; } 25664if ${ac_cv_func_vfork_works+:} false; then : 25665 $as_echo_n "(cached) " >&6 25666else 25667 if test "$cross_compiling" = yes; then : 25668 ac_cv_func_vfork_works=cross 25669else 25670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25671/* end confdefs.h. */ 25672/* Thanks to Paul Eggert for this test. */ 25673$ac_includes_default 25674#include <sys/wait.h> 25675#ifdef HAVE_VFORK_H 25676# include <vfork.h> 25677#endif 25678/* On some sparc systems, changes by the child to local and incoming 25679 argument registers are propagated back to the parent. The compiler 25680 is told about this with #include <vfork.h>, but some compilers 25681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 25682 static variable whose address is put into a register that is 25683 clobbered by the vfork. */ 25684static void 25685#ifdef __cplusplus 25686sparc_address_test (int arg) 25687# else 25688sparc_address_test (arg) int arg; 25689#endif 25690{ 25691 static pid_t child; 25692 if (!child) { 25693 child = vfork (); 25694 if (child < 0) { 25695 perror ("vfork"); 25696 _exit(2); 25697 } 25698 if (!child) { 25699 arg = getpid(); 25700 write(-1, "", 0); 25701 _exit (arg); 25702 } 25703 } 25704} 25705 25706int 25707main () 25708{ 25709 pid_t parent = getpid (); 25710 pid_t child; 25711 25712 sparc_address_test (0); 25713 25714 child = vfork (); 25715 25716 if (child == 0) { 25717 /* Here is another test for sparc vfork register problems. This 25718 test uses lots of local variables, at least as many local 25719 variables as main has allocated so far including compiler 25720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 25721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 25722 reuse the register of parent for one of the local variables, 25723 since it will think that parent can't possibly be used any more 25724 in this routine. Assigning to the local variable will thus 25725 munge parent in the parent process. */ 25726 pid_t 25727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 25728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 25729 /* Convince the compiler that p..p7 are live; otherwise, it might 25730 use the same hardware register for all 8 local variables. */ 25731 if (p != p1 || p != p2 || p != p3 || p != p4 25732 || p != p5 || p != p6 || p != p7) 25733 _exit(1); 25734 25735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 25736 from child file descriptors. If the child closes a descriptor 25737 before it execs or exits, this munges the parent's descriptor 25738 as well. Test for this by closing stdout in the child. */ 25739 _exit(close(fileno(stdout)) != 0); 25740 } else { 25741 int status; 25742 struct stat st; 25743 25744 while (wait(&status) != child) 25745 ; 25746 return ( 25747 /* Was there some problem with vforking? */ 25748 child < 0 25749 25750 /* Did the child fail? (This shouldn't happen.) */ 25751 || status 25752 25753 /* Did the vfork/compiler bug occur? */ 25754 || parent != getpid() 25755 25756 /* Did the file descriptor bug occur? */ 25757 || fstat(fileno(stdout), &st) != 0 25758 ); 25759 } 25760} 25761_ACEOF 25762if ac_fn_c_try_run "$LINENO"; then : 25763 ac_cv_func_vfork_works=yes 25764else 25765 ac_cv_func_vfork_works=no 25766fi 25767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25768 conftest.$ac_objext conftest.beam conftest.$ac_ext 25769fi 25770 25771fi 25772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25773$as_echo "$ac_cv_func_vfork_works" >&6; } 25774 25775fi; 25776if test "x$ac_cv_func_fork_works" = xcross; then 25777 ac_cv_func_vfork_works=$ac_cv_func_vfork 25778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25779$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25780fi 25781 25782if test "x$ac_cv_func_vfork_works" = xyes; then 25783 25784$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25785 25786else 25787 25788$as_echo "#define vfork fork" >>confdefs.h 25789 25790fi 25791if test "x$ac_cv_func_fork_works" = xyes; then 25792 25793$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25794 25795fi 25796 25797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 25798$as_echo_n "checking for working memcmp... " >&6; } 25799if ${ac_cv_func_memcmp_working+:} false; then : 25800 $as_echo_n "(cached) " >&6 25801else 25802 if test "$cross_compiling" = yes; then : 25803 ac_cv_func_memcmp_working=no 25804else 25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25806/* end confdefs.h. */ 25807$ac_includes_default 25808int 25809main () 25810{ 25811 25812 /* Some versions of memcmp are not 8-bit clean. */ 25813 char c0 = '\100', c1 = '\200', c2 = '\201'; 25814 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 25815 return 1; 25816 25817 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 25818 or more and with at least one buffer not starting on a 4-byte boundary. 25819 William Lewis provided this test program. */ 25820 { 25821 char foo[21]; 25822 char bar[21]; 25823 int i; 25824 for (i = 0; i < 4; i++) 25825 { 25826 char *a = foo + i; 25827 char *b = bar + i; 25828 strcpy (a, "--------01111111"); 25829 strcpy (b, "--------10000000"); 25830 if (memcmp (a, b, 16) >= 0) 25831 return 1; 25832 } 25833 return 0; 25834 } 25835 25836 ; 25837 return 0; 25838} 25839_ACEOF 25840if ac_fn_c_try_run "$LINENO"; then : 25841 ac_cv_func_memcmp_working=yes 25842else 25843 ac_cv_func_memcmp_working=no 25844fi 25845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25846 conftest.$ac_objext conftest.beam conftest.$ac_ext 25847fi 25848 25849fi 25850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 25851$as_echo "$ac_cv_func_memcmp_working" >&6; } 25852test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 25853 *" memcmp.$ac_objext "* ) ;; 25854 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 25855 ;; 25856esac 25857 25858 25859for ac_header in sys/select.h sys/socket.h 25860do : 25861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25862ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25864 cat >>confdefs.h <<_ACEOF 25865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25866_ACEOF 25867 25868fi 25869 25870done 25871 25872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 25873$as_echo_n "checking types of arguments for select... " >&6; } 25874if ${ac_cv_func_select_args+:} false; then : 25875 $as_echo_n "(cached) " >&6 25876else 25877 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 25878 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 25879 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25881/* end confdefs.h. */ 25882$ac_includes_default 25883#ifdef HAVE_SYS_SELECT_H 25884# include <sys/select.h> 25885#endif 25886#ifdef HAVE_SYS_SOCKET_H 25887# include <sys/socket.h> 25888#endif 25889 25890int 25891main () 25892{ 25893extern int select ($ac_arg1, 25894 $ac_arg234, $ac_arg234, $ac_arg234, 25895 $ac_arg5); 25896 ; 25897 return 0; 25898} 25899_ACEOF 25900if ac_fn_c_try_compile "$LINENO"; then : 25901 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 25902fi 25903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25904 done 25905 done 25906done 25907# Provide a safe default value. 25908: "${ac_cv_func_select_args=int,int *,struct timeval *}" 25909 25910fi 25911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 25912$as_echo "$ac_cv_func_select_args" >&6; } 25913ac_save_IFS=$IFS; IFS=',' 25914set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 25915IFS=$ac_save_IFS 25916shift 25917 25918cat >>confdefs.h <<_ACEOF 25919#define SELECT_TYPE_ARG1 $1 25920_ACEOF 25921 25922 25923cat >>confdefs.h <<_ACEOF 25924#define SELECT_TYPE_ARG234 ($2) 25925_ACEOF 25926 25927 25928cat >>confdefs.h <<_ACEOF 25929#define SELECT_TYPE_ARG5 ($3) 25930_ACEOF 25931 25932rm -f conftest* 25933 25934if ${ac_cv_func_setvbuf_reversed+:} false; then : 25935 $as_echo_n "(cached) " >&6 25936else 25937 ac_cv_func_setvbuf_reversed=no 25938fi 25939 25940 25941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 25942$as_echo_n "checking return type of signal handlers... " >&6; } 25943if ${ac_cv_type_signal+:} false; then : 25944 $as_echo_n "(cached) " >&6 25945else 25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25947/* end confdefs.h. */ 25948#include <sys/types.h> 25949#include <signal.h> 25950 25951int 25952main () 25953{ 25954return *(signal (0, 0)) (0) == 1; 25955 ; 25956 return 0; 25957} 25958_ACEOF 25959if ac_fn_c_try_compile "$LINENO"; then : 25960 ac_cv_type_signal=int 25961else 25962 ac_cv_type_signal=void 25963fi 25964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25965fi 25966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 25967$as_echo "$ac_cv_type_signal" >&6; } 25968 25969cat >>confdefs.h <<_ACEOF 25970#define RETSIGTYPE $ac_cv_type_signal 25971_ACEOF 25972 25973 25974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 25975$as_echo_n "checking for working strtod... " >&6; } 25976if ${ac_cv_func_strtod+:} false; then : 25977 $as_echo_n "(cached) " >&6 25978else 25979 if test "$cross_compiling" = yes; then : 25980 ac_cv_func_strtod=no 25981else 25982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25983/* end confdefs.h. */ 25984 25985$ac_includes_default 25986#ifndef strtod 25987double strtod (); 25988#endif 25989int 25990main() 25991{ 25992 { 25993 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 25994 char *string = " +69"; 25995 char *term; 25996 double value; 25997 value = strtod (string, &term); 25998 if (value != 69 || term != (string + 4)) 25999 return 1; 26000 } 26001 26002 { 26003 /* Under Solaris 2.4, strtod returns the wrong value for the 26004 terminating character under some conditions. */ 26005 char *string = "NaN"; 26006 char *term; 26007 strtod (string, &term); 26008 if (term != string && *(term - 1) == 0) 26009 return 1; 26010 } 26011 return 0; 26012} 26013 26014_ACEOF 26015if ac_fn_c_try_run "$LINENO"; then : 26016 ac_cv_func_strtod=yes 26017else 26018 ac_cv_func_strtod=no 26019fi 26020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26021 conftest.$ac_objext conftest.beam conftest.$ac_ext 26022fi 26023 26024fi 26025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 26026$as_echo "$ac_cv_func_strtod" >&6; } 26027if test $ac_cv_func_strtod = no; then 26028 case " $LIBOBJS " in 26029 *" strtod.$ac_objext "* ) ;; 26030 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 26031 ;; 26032esac 26033 26034ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 26035if test "x$ac_cv_func_pow" = xyes; then : 26036 26037fi 26038 26039if test $ac_cv_func_pow = no; then 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 26041$as_echo_n "checking for pow in -lm... " >&6; } 26042if ${ac_cv_lib_m_pow+:} false; then : 26043 $as_echo_n "(cached) " >&6 26044else 26045 ac_check_lib_save_LIBS=$LIBS 26046LIBS="-lm $LIBS" 26047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26048/* end confdefs.h. */ 26049 26050/* Override any GCC internal prototype to avoid an error. 26051 Use char because int might match the return type of a GCC 26052 builtin and then its argument prototype would still apply. */ 26053#ifdef __cplusplus 26054extern "C" 26055#endif 26056char pow (); 26057int 26058main () 26059{ 26060return pow (); 26061 ; 26062 return 0; 26063} 26064_ACEOF 26065if ac_fn_c_try_link "$LINENO"; then : 26066 ac_cv_lib_m_pow=yes 26067else 26068 ac_cv_lib_m_pow=no 26069fi 26070rm -f core conftest.err conftest.$ac_objext \ 26071 conftest$ac_exeext conftest.$ac_ext 26072LIBS=$ac_check_lib_save_LIBS 26073fi 26074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 26075$as_echo "$ac_cv_lib_m_pow" >&6; } 26076if test "x$ac_cv_lib_m_pow" = xyes; then : 26077 POW_LIB=-lm 26078else 26079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 26080$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 26081fi 26082 26083fi 26084 26085fi 26086 26087ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 26088if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 26089 ac_have_decl=1 26090else 26091 ac_have_decl=0 26092fi 26093 26094cat >>confdefs.h <<_ACEOF 26095#define HAVE_DECL_STRERROR_R $ac_have_decl 26096_ACEOF 26097 26098for ac_func in strerror_r 26099do : 26100 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 26101if test "x$ac_cv_func_strerror_r" = xyes; then : 26102 cat >>confdefs.h <<_ACEOF 26103#define HAVE_STRERROR_R 1 26104_ACEOF 26105 26106fi 26107done 26108 26109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 26110$as_echo_n "checking whether strerror_r returns char *... " >&6; } 26111if ${ac_cv_func_strerror_r_char_p+:} false; then : 26112 $as_echo_n "(cached) " >&6 26113else 26114 26115 ac_cv_func_strerror_r_char_p=no 26116 if test $ac_cv_have_decl_strerror_r = yes; then 26117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26118/* end confdefs.h. */ 26119$ac_includes_default 26120int 26121main () 26122{ 26123 26124 char buf[100]; 26125 char x = *strerror_r (0, buf, sizeof buf); 26126 char *p = strerror_r (0, buf, sizeof buf); 26127 return !p || x; 26128 26129 ; 26130 return 0; 26131} 26132_ACEOF 26133if ac_fn_c_try_compile "$LINENO"; then : 26134 ac_cv_func_strerror_r_char_p=yes 26135fi 26136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26137 else 26138 # strerror_r is not declared. Choose between 26139 # systems that have relatively inaccessible declarations for the 26140 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 26141 # former has a strerror_r that returns char*, while the latter 26142 # has a strerror_r that returns `int'. 26143 # This test should segfault on the DEC system. 26144 if test "$cross_compiling" = yes; then : 26145 : 26146else 26147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26148/* end confdefs.h. */ 26149$ac_includes_default 26150 extern char *strerror_r (); 26151int 26152main () 26153{ 26154char buf[100]; 26155 char x = *strerror_r (0, buf, sizeof buf); 26156 return ! isalpha (x); 26157 ; 26158 return 0; 26159} 26160_ACEOF 26161if ac_fn_c_try_run "$LINENO"; then : 26162 ac_cv_func_strerror_r_char_p=yes 26163fi 26164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26165 conftest.$ac_objext conftest.beam conftest.$ac_ext 26166fi 26167 26168 fi 26169 26170fi 26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 26172$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 26173if test $ac_cv_func_strerror_r_char_p = yes; then 26174 26175$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 26176 26177fi 26178 26179for ac_func in vprintf 26180do : 26181 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 26182if test "x$ac_cv_func_vprintf" = xyes; then : 26183 cat >>confdefs.h <<_ACEOF 26184#define HAVE_VPRINTF 1 26185_ACEOF 26186 26187ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 26188if test "x$ac_cv_func__doprnt" = xyes; then : 26189 26190$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 26191 26192fi 26193 26194fi 26195done 26196 26197 26198 26199# 26200# Find math library 26201# 26202MATH_LIBS='' 26203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 26204$as_echo_n "checking for sqrt in -lm... " >&6; } 26205if ${ac_cv_lib_m_sqrt+:} false; then : 26206 $as_echo_n "(cached) " >&6 26207else 26208 ac_check_lib_save_LIBS=$LIBS 26209LIBS="-lm $LIBS" 26210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26211/* end confdefs.h. */ 26212 26213/* Override any GCC internal prototype to avoid an error. 26214 Use char because int might match the return type of a GCC 26215 builtin and then its argument prototype would still apply. */ 26216#ifdef __cplusplus 26217extern "C" 26218#endif 26219char sqrt (); 26220int 26221main () 26222{ 26223return sqrt (); 26224 ; 26225 return 0; 26226} 26227_ACEOF 26228if ac_fn_c_try_link "$LINENO"; then : 26229 ac_cv_lib_m_sqrt=yes 26230else 26231 ac_cv_lib_m_sqrt=no 26232fi 26233rm -f core conftest.err conftest.$ac_objext \ 26234 conftest$ac_exeext conftest.$ac_ext 26235LIBS=$ac_check_lib_save_LIBS 26236fi 26237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 26238$as_echo "$ac_cv_lib_m_sqrt" >&6; } 26239if test "x$ac_cv_lib_m_sqrt" = xyes; then : 26240 MATH_LIBS="-lm" 26241fi 26242 26243LIBS="$MATH_LIBS $LIBS" 26244 26245 26246# 26247# Find socket library 26248# 26249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 26250$as_echo_n "checking for library containing gethostbyname... " >&6; } 26251if ${ac_cv_search_gethostbyname+:} false; then : 26252 $as_echo_n "(cached) " >&6 26253else 26254 ac_func_search_save_LIBS=$LIBS 26255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26256/* end confdefs.h. */ 26257 26258/* Override any GCC internal prototype to avoid an error. 26259 Use char because int might match the return type of a GCC 26260 builtin and then its argument prototype would still apply. */ 26261#ifdef __cplusplus 26262extern "C" 26263#endif 26264char gethostbyname (); 26265int 26266main () 26267{ 26268return gethostbyname (); 26269 ; 26270 return 0; 26271} 26272_ACEOF 26273for ac_lib in '' resolv nsl; do 26274 if test -z "$ac_lib"; then 26275 ac_res="none required" 26276 else 26277 ac_res=-l$ac_lib 26278 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26279 fi 26280 if ac_fn_c_try_link "$LINENO"; then : 26281 ac_cv_search_gethostbyname=$ac_res 26282fi 26283rm -f core conftest.err conftest.$ac_objext \ 26284 conftest$ac_exeext 26285 if ${ac_cv_search_gethostbyname+:} false; then : 26286 break 26287fi 26288done 26289if ${ac_cv_search_gethostbyname+:} false; then : 26290 26291else 26292 ac_cv_search_gethostbyname=no 26293fi 26294rm conftest.$ac_ext 26295LIBS=$ac_func_search_save_LIBS 26296fi 26297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 26298$as_echo "$ac_cv_search_gethostbyname" >&6; } 26299ac_res=$ac_cv_search_gethostbyname 26300if test "$ac_res" != no; then : 26301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26302 26303fi 26304 26305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 26306$as_echo_n "checking for library containing socket... " >&6; } 26307if ${ac_cv_search_socket+:} false; then : 26308 $as_echo_n "(cached) " >&6 26309else 26310 ac_func_search_save_LIBS=$LIBS 26311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26312/* end confdefs.h. */ 26313 26314/* Override any GCC internal prototype to avoid an error. 26315 Use char because int might match the return type of a GCC 26316 builtin and then its argument prototype would still apply. */ 26317#ifdef __cplusplus 26318extern "C" 26319#endif 26320char socket (); 26321int 26322main () 26323{ 26324return socket (); 26325 ; 26326 return 0; 26327} 26328_ACEOF 26329for ac_lib in '' socket; do 26330 if test -z "$ac_lib"; then 26331 ac_res="none required" 26332 else 26333 ac_res=-l$ac_lib 26334 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26335 fi 26336 if ac_fn_c_try_link "$LINENO"; then : 26337 ac_cv_search_socket=$ac_res 26338fi 26339rm -f core conftest.err conftest.$ac_objext \ 26340 conftest$ac_exeext 26341 if ${ac_cv_search_socket+:} false; then : 26342 break 26343fi 26344done 26345if ${ac_cv_search_socket+:} false; then : 26346 26347else 26348 ac_cv_search_socket=no 26349fi 26350rm conftest.$ac_ext 26351LIBS=$ac_func_search_save_LIBS 26352fi 26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 26354$as_echo "$ac_cv_search_socket" >&6; } 26355ac_res=$ac_cv_search_socket 26356if test "$ac_res" != no; then : 26357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26358 26359 26360$as_echo "#define HAVE_SOCKET 1" >>confdefs.h 26361 26362 MAGICK_FEATURES="DPC $MAGICK_FEATURES" 26363 26364fi 26365 26366 26367for 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 26368do : 26369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26371if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26372 cat >>confdefs.h <<_ACEOF 26373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26374_ACEOF 26375 26376fi 26377done 26378 26379 26380# 26381# Check for clock_gettime(). 26382# 26383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 26384$as_echo_n "checking for library containing clock_gettime... " >&6; } 26385if ${ac_cv_search_clock_gettime+:} false; then : 26386 $as_echo_n "(cached) " >&6 26387else 26388 ac_func_search_save_LIBS=$LIBS 26389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26390/* end confdefs.h. */ 26391 26392/* Override any GCC internal prototype to avoid an error. 26393 Use char because int might match the return type of a GCC 26394 builtin and then its argument prototype would still apply. */ 26395#ifdef __cplusplus 26396extern "C" 26397#endif 26398char clock_gettime (); 26399int 26400main () 26401{ 26402return clock_gettime (); 26403 ; 26404 return 0; 26405} 26406_ACEOF 26407for ac_lib in '' rt; do 26408 if test -z "$ac_lib"; then 26409 ac_res="none required" 26410 else 26411 ac_res=-l$ac_lib 26412 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26413 fi 26414 if ac_fn_c_try_link "$LINENO"; then : 26415 ac_cv_search_clock_gettime=$ac_res 26416fi 26417rm -f core conftest.err conftest.$ac_objext \ 26418 conftest$ac_exeext 26419 if ${ac_cv_search_clock_gettime+:} false; then : 26420 break 26421fi 26422done 26423if ${ac_cv_search_clock_gettime+:} false; then : 26424 26425else 26426 ac_cv_search_clock_gettime=no 26427fi 26428rm conftest.$ac_ext 26429LIBS=$ac_func_search_save_LIBS 26430fi 26431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 26432$as_echo "$ac_cv_search_clock_gettime" >&6; } 26433ac_res=$ac_cv_search_clock_gettime 26434if test "$ac_res" != no; then : 26435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26436 26437 26438$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 26439 26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 26441$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } 26442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26443/* end confdefs.h. */ 26444 26445 #include <time.h> 26446int 26447main () 26448{ 26449clockid_t clockType = CLOCK_REALTIME; 26450 ; 26451 return 0; 26452} 26453_ACEOF 26454if ac_fn_c_try_compile "$LINENO"; then : 26455 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26457$as_echo "yes" >&6; } 26458 26459$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h 26460 26461 26462else 26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26464$as_echo "no" >&6; } 26465 26466fi 26467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26468 26469else 26470 26471 for ac_func in gettimeofday ftime 26472do : 26473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26475if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26476 cat >>confdefs.h <<_ACEOF 26477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26478_ACEOF 26479 break 26480fi 26481done 26482 26483 26484 26485fi 26486 26487 26488######## 26489# 26490# Check for function prototypes 26491# 26492######## 26493 26494ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 26495#include <unistd.h> 26496" 26497if test "x$ac_cv_have_decl_pread" = xyes; then : 26498 ac_have_decl=1 26499else 26500 ac_have_decl=0 26501fi 26502 26503cat >>confdefs.h <<_ACEOF 26504#define HAVE_DECL_PREAD $ac_have_decl 26505_ACEOF 26506ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 26507#include <unistd.h> 26508" 26509if test "x$ac_cv_have_decl_pwrite" = xyes; then : 26510 ac_have_decl=1 26511else 26512 ac_have_decl=0 26513fi 26514 26515cat >>confdefs.h <<_ACEOF 26516#define HAVE_DECL_PWRITE $ac_have_decl 26517_ACEOF 26518 26519 26520ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 26521#include <strings.h> 26522" 26523if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 26524 ac_have_decl=1 26525else 26526 ac_have_decl=0 26527fi 26528 26529cat >>confdefs.h <<_ACEOF 26530#define HAVE_DECL_STRLCPY $ac_have_decl 26531_ACEOF 26532 26533 26534ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 26535#include <stdio.h> 26536#include <stdarg.h> 26537" 26538if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 26539 ac_have_decl=1 26540else 26541 ac_have_decl=0 26542fi 26543 26544cat >>confdefs.h <<_ACEOF 26545#define HAVE_DECL_VSNPRINTF $ac_have_decl 26546_ACEOF 26547 26548 26549######## 26550# 26551# C++ Support Tests (For Magick++) 26552# 26553######## 26554have_magick_plus_plus='no' 26555if test "$with_magick_plus_plus" = 'yes'; then 26556 OLIBS="$LIBS" 26557 LIBS='' 26558 ac_ext=cpp 26559ac_cpp='$CXXCPP $CPPFLAGS' 26560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26563 26564 26565 # Full set of headers used... 26566 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 26567 # functional iomanip iosfwd iostream iterator list string strstream utility 26568 ac_ext=cpp 26569ac_cpp='$CXXCPP $CPPFLAGS' 26570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26573 26574 ac_ext=cpp 26575ac_cpp='$CXXCPP $CPPFLAGS' 26576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26579if test -z "$CXX"; then 26580 if test -n "$CCC"; then 26581 CXX=$CCC 26582 else 26583 if test -n "$ac_tool_prefix"; then 26584 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 26585 do 26586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26587set dummy $ac_tool_prefix$ac_prog; ac_word=$2 26588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26589$as_echo_n "checking for $ac_word... " >&6; } 26590if ${ac_cv_prog_CXX+:} false; then : 26591 $as_echo_n "(cached) " >&6 26592else 26593 if test -n "$CXX"; then 26594 ac_cv_prog_CXX="$CXX" # Let the user override the test. 26595else 26596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26597for as_dir in $PATH 26598do 26599 IFS=$as_save_IFS 26600 test -z "$as_dir" && as_dir=. 26601 for ac_exec_ext in '' $ac_executable_extensions; do 26602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26603 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 26604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26605 break 2 26606 fi 26607done 26608 done 26609IFS=$as_save_IFS 26610 26611fi 26612fi 26613CXX=$ac_cv_prog_CXX 26614if test -n "$CXX"; then 26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 26616$as_echo "$CXX" >&6; } 26617else 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26619$as_echo "no" >&6; } 26620fi 26621 26622 26623 test -n "$CXX" && break 26624 done 26625fi 26626if test -z "$CXX"; then 26627 ac_ct_CXX=$CXX 26628 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 26629do 26630 # Extract the first word of "$ac_prog", so it can be a program name with args. 26631set dummy $ac_prog; ac_word=$2 26632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26633$as_echo_n "checking for $ac_word... " >&6; } 26634if ${ac_cv_prog_ac_ct_CXX+:} false; then : 26635 $as_echo_n "(cached) " >&6 26636else 26637 if test -n "$ac_ct_CXX"; then 26638 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 26639else 26640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26641for as_dir in $PATH 26642do 26643 IFS=$as_save_IFS 26644 test -z "$as_dir" && as_dir=. 26645 for ac_exec_ext in '' $ac_executable_extensions; do 26646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26647 ac_cv_prog_ac_ct_CXX="$ac_prog" 26648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26649 break 2 26650 fi 26651done 26652 done 26653IFS=$as_save_IFS 26654 26655fi 26656fi 26657ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 26658if test -n "$ac_ct_CXX"; then 26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 26660$as_echo "$ac_ct_CXX" >&6; } 26661else 26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26663$as_echo "no" >&6; } 26664fi 26665 26666 26667 test -n "$ac_ct_CXX" && break 26668done 26669 26670 if test "x$ac_ct_CXX" = x; then 26671 CXX="g++" 26672 else 26673 case $cross_compiling:$ac_tool_warned in 26674yes:) 26675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26677ac_tool_warned=yes ;; 26678esac 26679 CXX=$ac_ct_CXX 26680 fi 26681fi 26682 26683 fi 26684fi 26685# Provide some information about the compiler. 26686$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 26687set X $ac_compile 26688ac_compiler=$2 26689for ac_option in --version -v -V -qversion; do 26690 { { ac_try="$ac_compiler $ac_option >&5" 26691case "(($ac_try" in 26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26693 *) ac_try_echo=$ac_try;; 26694esac 26695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 26696$as_echo "$ac_try_echo"; } >&5 26697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 26698 ac_status=$? 26699 if test -s conftest.err; then 26700 sed '10a\ 26701... rest of stderr output deleted ... 26702 10q' conftest.err >conftest.er1 26703 cat conftest.er1 >&5 26704 fi 26705 rm -f conftest.er1 conftest.err 26706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26707 test $ac_status = 0; } 26708done 26709 26710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 26711$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 26712if ${ac_cv_cxx_compiler_gnu+:} false; then : 26713 $as_echo_n "(cached) " >&6 26714else 26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26716/* end confdefs.h. */ 26717 26718int 26719main () 26720{ 26721#ifndef __GNUC__ 26722 choke me 26723#endif 26724 26725 ; 26726 return 0; 26727} 26728_ACEOF 26729if ac_fn_cxx_try_compile "$LINENO"; then : 26730 ac_compiler_gnu=yes 26731else 26732 ac_compiler_gnu=no 26733fi 26734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26735ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 26736 26737fi 26738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 26739$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 26740if test $ac_compiler_gnu = yes; then 26741 GXX=yes 26742else 26743 GXX= 26744fi 26745ac_test_CXXFLAGS=${CXXFLAGS+set} 26746ac_save_CXXFLAGS=$CXXFLAGS 26747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 26748$as_echo_n "checking whether $CXX accepts -g... " >&6; } 26749if ${ac_cv_prog_cxx_g+:} false; then : 26750 $as_echo_n "(cached) " >&6 26751else 26752 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 26753 ac_cxx_werror_flag=yes 26754 ac_cv_prog_cxx_g=no 26755 CXXFLAGS="-g" 26756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26757/* end confdefs.h. */ 26758 26759int 26760main () 26761{ 26762 26763 ; 26764 return 0; 26765} 26766_ACEOF 26767if ac_fn_cxx_try_compile "$LINENO"; then : 26768 ac_cv_prog_cxx_g=yes 26769else 26770 CXXFLAGS="" 26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26772/* end confdefs.h. */ 26773 26774int 26775main () 26776{ 26777 26778 ; 26779 return 0; 26780} 26781_ACEOF 26782if ac_fn_cxx_try_compile "$LINENO"; then : 26783 26784else 26785 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26786 CXXFLAGS="-g" 26787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26788/* end confdefs.h. */ 26789 26790int 26791main () 26792{ 26793 26794 ; 26795 return 0; 26796} 26797_ACEOF 26798if ac_fn_cxx_try_compile "$LINENO"; then : 26799 ac_cv_prog_cxx_g=yes 26800fi 26801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26802fi 26803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26804fi 26805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26806 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26807fi 26808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 26809$as_echo "$ac_cv_prog_cxx_g" >&6; } 26810if test "$ac_test_CXXFLAGS" = set; then 26811 CXXFLAGS=$ac_save_CXXFLAGS 26812elif test $ac_cv_prog_cxx_g = yes; then 26813 if test "$GXX" = yes; then 26814 CXXFLAGS="-g -O2" 26815 else 26816 CXXFLAGS="-g" 26817 fi 26818else 26819 if test "$GXX" = yes; then 26820 CXXFLAGS="-O2" 26821 else 26822 CXXFLAGS= 26823 fi 26824fi 26825ac_ext=cpp 26826ac_cpp='$CXXCPP $CPPFLAGS' 26827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26830 26831depcc="$CXX" am_compiler_list= 26832 26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 26834$as_echo_n "checking dependency style of $depcc... " >&6; } 26835if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 26836 $as_echo_n "(cached) " >&6 26837else 26838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 26839 # We make a subdir and do the tests there. Otherwise we can end up 26840 # making bogus files that we don't know about and never remove. For 26841 # instance it was reported that on HP-UX the gcc test will end up 26842 # making a dummy file named 'D' -- because '-MD' means "put the output 26843 # in D". 26844 rm -rf conftest.dir 26845 mkdir conftest.dir 26846 # Copy depcomp to subdir because otherwise we won't find it if we're 26847 # using a relative directory. 26848 cp "$am_depcomp" conftest.dir 26849 cd conftest.dir 26850 # We will build objects and dependencies in a subdirectory because 26851 # it helps to detect inapplicable dependency modes. For instance 26852 # both Tru64's cc and ICC support -MD to output dependencies as a 26853 # side effect of compilation, but ICC will put the dependencies in 26854 # the current directory while Tru64 will put them in the object 26855 # directory. 26856 mkdir sub 26857 26858 am_cv_CXX_dependencies_compiler_type=none 26859 if test "$am_compiler_list" = ""; then 26860 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 26861 fi 26862 am__universal=false 26863 case " $depcc " in #( 26864 *\ -arch\ *\ -arch\ *) am__universal=true ;; 26865 esac 26866 26867 for depmode in $am_compiler_list; do 26868 # Setup a source with many dependencies, because some compilers 26869 # like to wrap large dependency lists on column 80 (with \), and 26870 # we should not choose a depcomp mode which is confused by this. 26871 # 26872 # We need to recreate these files for each test, as the compiler may 26873 # overwrite some of them when testing with obscure command lines. 26874 # This happens at least with the AIX C compiler. 26875 : > sub/conftest.c 26876 for i in 1 2 3 4 5 6; do 26877 echo '#include "conftst'$i'.h"' >> sub/conftest.c 26878 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 26879 # Solaris 10 /bin/sh. 26880 echo '/* dummy */' > sub/conftst$i.h 26881 done 26882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 26883 26884 # We check with '-c' and '-o' for the sake of the "dashmstdout" 26885 # mode. It turns out that the SunPro C++ compiler does not properly 26886 # handle '-M -o', and we need to detect this. Also, some Intel 26887 # versions had trouble with output in subdirs. 26888 am__obj=sub/conftest.${OBJEXT-o} 26889 am__minus_obj="-o $am__obj" 26890 case $depmode in 26891 gcc) 26892 # This depmode causes a compiler race in universal mode. 26893 test "$am__universal" = false || continue 26894 ;; 26895 nosideeffect) 26896 # After this tag, mechanisms are not by side-effect, so they'll 26897 # only be used when explicitly requested. 26898 if test "x$enable_dependency_tracking" = xyes; then 26899 continue 26900 else 26901 break 26902 fi 26903 ;; 26904 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 26905 # This compiler won't grok '-c -o', but also, the minuso test has 26906 # not run yet. These depmodes are late enough in the game, and 26907 # so weak that their functioning should not be impacted. 26908 am__obj=conftest.${OBJEXT-o} 26909 am__minus_obj= 26910 ;; 26911 none) break ;; 26912 esac 26913 if depmode=$depmode \ 26914 source=sub/conftest.c object=$am__obj \ 26915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 26916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 26917 >/dev/null 2>conftest.err && 26918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 26919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 26920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 26921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 26922 # icc doesn't choke on unknown options, it will just issue warnings 26923 # or remarks (even with -Werror). So we grep stderr for any message 26924 # that says an option was ignored or not supported. 26925 # When given -MP, icc 7.0 and 7.1 complain thusly: 26926 # icc: Command line warning: ignoring option '-M'; no argument required 26927 # The diagnosis changed in icc 8.0: 26928 # icc: Command line remark: option '-MP' not supported 26929 if (grep 'ignoring option' conftest.err || 26930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 26931 am_cv_CXX_dependencies_compiler_type=$depmode 26932 break 26933 fi 26934 fi 26935 done 26936 26937 cd .. 26938 rm -rf conftest.dir 26939else 26940 am_cv_CXX_dependencies_compiler_type=none 26941fi 26942 26943fi 26944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 26945$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 26946CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 26947 26948 if 26949 test "x$enable_dependency_tracking" != xno \ 26950 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 26951 am__fastdepCXX_TRUE= 26952 am__fastdepCXX_FALSE='#' 26953else 26954 am__fastdepCXX_TRUE='#' 26955 am__fastdepCXX_FALSE= 26956fi 26957 26958 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 26960$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } 26961if ${ax_cv_cxx_bool+:} false; then : 26962 $as_echo_n "(cached) " >&6 26963else 26964 ac_ext=cpp 26965ac_cpp='$CXXCPP $CPPFLAGS' 26966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26969 26970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26971/* end confdefs.h. */ 26972 int f(int x){return 1;} 26973 int f(char x){return 1;} 26974 int f(bool x){return 1;} 26975int 26976main () 26977{ 26978bool b = true; return f(b); 26979 ; 26980 return 0; 26981} 26982_ACEOF 26983if ac_fn_cxx_try_compile "$LINENO"; then : 26984 ax_cv_cxx_bool=yes 26985else 26986 ax_cv_cxx_bool=no 26987fi 26988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26989 ac_ext=cpp 26990ac_cpp='$CXXCPP $CPPFLAGS' 26991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26994 26995 26996fi 26997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 26998$as_echo "$ax_cv_cxx_bool" >&6; } 26999 if test "X$ax_cv_cxx_bool" = Xyes; then : 27000 27001$as_echo "#define HAVE_BOOL /**/" >>confdefs.h 27002 27003fi 27004 27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 27006$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 27007if ${ax_cv_cxx_namespaces+:} false; then : 27008 $as_echo_n "(cached) " >&6 27009else 27010 ac_ext=cpp 27011ac_cpp='$CXXCPP $CPPFLAGS' 27012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27015 27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27017/* end confdefs.h. */ 27018namespace Outer { namespace Inner { int i = 0; }} 27019 using namespace Outer::Inner; int foo(void) { return i;} 27020_ACEOF 27021if ac_fn_cxx_try_compile "$LINENO"; then : 27022 ax_cv_cxx_namespaces=yes 27023else 27024 ax_cv_cxx_namespaces=no 27025fi 27026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27027 ac_ext=cpp 27028ac_cpp='$CXXCPP $CPPFLAGS' 27029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27032 27033 27034fi 27035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 27036$as_echo "$ax_cv_cxx_namespaces" >&6; } 27037if test "$ax_cv_cxx_namespaces" = yes; then 27038 27039$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 27040 27041fi 27042 27043 27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 27045$as_echo_n "checking if g++ supports namespace std... " >&6; } 27046if ${ax_cv_cxx_have_std_namespace+:} false; then : 27047 $as_echo_n "(cached) " >&6 27048else 27049 27050 ac_ext=cpp 27051ac_cpp='$CXXCPP $CPPFLAGS' 27052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27055 27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27057/* end confdefs.h. */ 27058#include <iostream> 27059 std::istream& is = std::cin; 27060int 27061main () 27062{ 27063 27064 ; 27065 return 0; 27066} 27067_ACEOF 27068if ac_fn_cxx_try_compile "$LINENO"; then : 27069 ax_cv_cxx_have_std_namespace=yes 27070else 27071 ax_cv_cxx_have_std_namespace=no 27072fi 27073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27074 ac_ext=cpp 27075ac_cpp='$CXXCPP $CPPFLAGS' 27076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27079 27080 27081fi 27082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 27083$as_echo "$ax_cv_cxx_have_std_namespace" >&6; } 27084 if test "$ax_cv_cxx_have_std_namespace" = yes; then 27085 27086$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h 27087 27088 fi 27089 27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 27091$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } 27092if ${ac_cv_cxx_have_std_libs+:} false; then : 27093 $as_echo_n "(cached) " >&6 27094else 27095 27096 27097 ac_ext=cpp 27098ac_cpp='$CXXCPP $CPPFLAGS' 27099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27102 27103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27104/* end confdefs.h. */ 27105#include <iostream> 27106#include <map> 27107#include <iomanip> 27108#include <cmath> 27109#ifdef HAVE_NAMESPACES 27110using namespace std; 27111#endif 27112int 27113main () 27114{ 27115return 0; 27116 ; 27117 return 0; 27118} 27119_ACEOF 27120if ac_fn_cxx_try_compile "$LINENO"; then : 27121 ac_cv_cxx_have_std_libs=yes 27122else 27123 ac_cv_cxx_have_std_libs=no 27124fi 27125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27126 ac_ext=cpp 27127ac_cpp='$CXXCPP $CPPFLAGS' 27128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27131 27132 27133fi 27134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 27135$as_echo "$ac_cv_cxx_have_std_libs" >&6; } 27136if test "$ac_cv_cxx_have_std_libs" = yes; then 27137 27138$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h 27139 27140fi 27141 27142 27143 OPENMP_CXXFLAGS= 27144 # Check whether --enable-openmp was given. 27145if test "${enable_openmp+set}" = set; then : 27146 enableval=$enable_openmp; 27147fi 27148 27149 if test "$enable_openmp" != no; then 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 27151$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } 27152if ${ac_cv_prog_cxx_openmp+:} false; then : 27153 $as_echo_n "(cached) " >&6 27154else 27155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27156/* end confdefs.h. */ 27157 27158#ifndef _OPENMP 27159 choke me 27160#endif 27161#include <omp.h> 27162int main () { return omp_get_num_threads (); } 27163 27164_ACEOF 27165if ac_fn_cxx_try_link "$LINENO"; then : 27166 ac_cv_prog_cxx_openmp='none needed' 27167else 27168 ac_cv_prog_cxx_openmp='unsupported' 27169 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 27170 -Popenmp --openmp; do 27171 ac_save_CXXFLAGS=$CXXFLAGS 27172 CXXFLAGS="$CXXFLAGS $ac_option" 27173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27174/* end confdefs.h. */ 27175 27176#ifndef _OPENMP 27177 choke me 27178#endif 27179#include <omp.h> 27180int main () { return omp_get_num_threads (); } 27181 27182_ACEOF 27183if ac_fn_cxx_try_link "$LINENO"; then : 27184 ac_cv_prog_cxx_openmp=$ac_option 27185fi 27186rm -f core conftest.err conftest.$ac_objext \ 27187 conftest$ac_exeext conftest.$ac_ext 27188 CXXFLAGS=$ac_save_CXXFLAGS 27189 if test "$ac_cv_prog_cxx_openmp" != unsupported; then 27190 break 27191 fi 27192 done 27193fi 27194rm -f core conftest.err conftest.$ac_objext \ 27195 conftest$ac_exeext conftest.$ac_ext 27196fi 27197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 27198$as_echo "$ac_cv_prog_cxx_openmp" >&6; } 27199 case $ac_cv_prog_cxx_openmp in #( 27200 "none needed" | unsupported) 27201 ;; #( 27202 *) 27203 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; 27204 esac 27205 fi 27206 27207 27208 ac_ext=c 27209ac_cpp='$CPP $CPPFLAGS' 27210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27212ac_compiler_gnu=$ac_cv_c_compiler_gnu 27213 27214 27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 27216$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } 27217 if \ 27218 test $ax_cv_cxx_bool = 'yes' && \ 27219 test $ax_cv_cxx_namespaces = 'yes' && \ 27220 test $ac_cv_cxx_have_std_libs = 'yes' && \ 27221 test $ax_cv_cxx_have_std_namespace = 'yes'; then 27222 have_magick_plus_plus='yes' 27223 else 27224 have_magick_plus_plus='no (failed tests)' 27225 fi 27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 27227$as_echo "$have_magick_plus_plus" >&6; } 27228 LIBS="$OLIBS" 27229fi 27230 if test "$have_magick_plus_plus" = 'yes'; then 27231 WITH_MAGICK_PLUS_PLUS_TRUE= 27232 WITH_MAGICK_PLUS_PLUS_FALSE='#' 27233else 27234 WITH_MAGICK_PLUS_PLUS_TRUE='#' 27235 WITH_MAGICK_PLUS_PLUS_FALSE= 27236fi 27237 27238 27239# Only check for delegate libraries in subdirectories if requested. 27240if test "$enable_delegate_build" != 'no'; then 27241 # Check for delegate sub-directories and add -I & -L options as required. 27242 # This presumes that delegates are installed as detailed in the ImageMagick 27243 # README. If delegates are installed in a standard location where the 27244 # compiler will automatically find them then these options should not be 27245 # required. 27246 27247 # 27248 # Most delegates have includes in the same directory as the library, but not all... 27249 # 27250 # Includes 27251 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 27252 if test -d "$builddir/$dir"; then 27253 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 27254 else 27255 if test -d "$srcdirfull/$dir"; then 27256 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 27257 fi 27258 fi 27259 done 27260 27261 # Libraries 27262 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 27263 if test -d "$builddir/$dir/.libs"; then 27264 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 27265 else 27266 if test -d "$srcdirfull/$dir/.libs"; then 27267 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 27268 fi 27269 fi 27270 if test -d "$builddir/$dir"; then 27271 LDFLAGS="$LDFLAGS -L$builddir/$dir" 27272 else 27273 if test -d "$srcdirfull/$dir"; then 27274 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 27275 fi 27276 fi 27277 done 27278fi 27279 27280# Assume that delegate headers reside under same directory as ImageMagick 27281# installation prefix. 27282MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS" 27283 27284# 27285# Find the X11 RGB database 27286# 27287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 27288$as_echo_n "checking for X11 configure files... " >&6; } 27289if ${im_cv_x_configure+:} false; then : 27290 $as_echo_n "(cached) " >&6 27291else 27292 # Look for the header file in a standard set of common directories. 27293# Check X11 before X11Rn because it is often a symlink to the current release. 27294 for ac_dir in \ 27295 /lib/usr/lib/X11 \ 27296 /usr/X11/lib \ 27297 /usr/X11R4/lib \ 27298 /usr/X11R5/lib \ 27299 /usr/X11R6/lib \ 27300 /usr/X11R7/lib \ 27301 /usr/X386/lib \ 27302 /usr/XFree86/lib/X11 \ 27303 /usr/athena/lib \ 27304 /usr/lib \ 27305 /usr/lib/X11 \ 27306 /usr/lib/X11R4 \ 27307 /usr/lib/X11R5 \ 27308 /usr/lib/X11R6 \ 27309 /usr/lib/X11R7 \ 27310 /usr/local/X11/lib \ 27311 /usr/local/X11R4/lib \ 27312 /usr/local/X11R5/lib \ 27313 /usr/local/X11R6/lib \ 27314 /usr/local/lib \ 27315 /usr/local/lib/X11 \ 27316 /usr/local/lib/X11R4 \ 27317 /usr/local/lib/X11R5 \ 27318 /usr/local/lib/X11R6 \ 27319 /usr/local/lib/X11R7 \ 27320 /usr/local/x11r5/lib \ 27321 /usr/lpp/Xamples/lib \ 27322 /usr/openwin/lib \ 27323 /usr/openwin/share/lib \ 27324 /usr/unsupported/lib \ 27325 /usr/x386/lib \ 27326 ; do 27327 if test -f "$ac_dir/X11/rgb.txt"; then 27328 im_cv_x_configure="$ac_dir/X11/" 27329 break 27330 elif test -f "$ac_dir/rgb.txt"; then 27331 im_cv_x_configure="$ac_dir/" 27332 break 27333 fi 27334 27335 done 27336fi 27337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 27338$as_echo "$im_cv_x_configure" >&6; } 27339X11_CONFIGURE_PATH="$im_cv_x_configure" 27340case "${build_os}" in 27341 mingw* ) 27342 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 27343 ;; 27344esac 27345 27346cat >>confdefs.h <<_ACEOF 27347#define X11_CONFIGURE_PATH "$X11ConfigurePath" 27348_ACEOF 27349 27350 27351# 27352# Find OpenMP library 27353# 27354GOMP_LIBS='' 27355if test "$enable_openmp" != 'no'; then 27356 if test "${GCC}" = "yes"; then 27357 # Open64 (passes for GCC but uses different OpenMP implementation) 27358 if test "x$GOMP_LIBS" = x ; then 27359 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 27361$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } 27362if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : 27363 $as_echo_n "(cached) " >&6 27364else 27365 ac_check_lib_save_LIBS=$LIBS 27366LIBS="-lopenmp $LIBS" 27367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27368/* end confdefs.h. */ 27369 27370/* Override any GCC internal prototype to avoid an error. 27371 Use char because int might match the return type of a GCC 27372 builtin and then its argument prototype would still apply. */ 27373#ifdef __cplusplus 27374extern "C" 27375#endif 27376char omp_get_num_procs (); 27377int 27378main () 27379{ 27380return omp_get_num_procs (); 27381 ; 27382 return 0; 27383} 27384_ACEOF 27385if ac_fn_c_try_link "$LINENO"; then : 27386 ac_cv_lib_openmp_omp_get_num_procs=yes 27387else 27388 ac_cv_lib_openmp_omp_get_num_procs=no 27389fi 27390rm -f core conftest.err conftest.$ac_objext \ 27391 conftest$ac_exeext conftest.$ac_ext 27392LIBS=$ac_check_lib_save_LIBS 27393fi 27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 27395$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } 27396if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : 27397 GOMP_LIBS="-lopenmp" 27398fi 27399 27400 fi 27401 fi 27402 # GCC 27403 if test "x$GOMP_LIBS" = x ; then 27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 27405$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } 27406if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : 27407 $as_echo_n "(cached) " >&6 27408else 27409 ac_check_lib_save_LIBS=$LIBS 27410LIBS="-lgomp $LIBS" 27411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27412/* end confdefs.h. */ 27413 27414/* Override any GCC internal prototype to avoid an error. 27415 Use char because int might match the return type of a GCC 27416 builtin and then its argument prototype would still apply. */ 27417#ifdef __cplusplus 27418extern "C" 27419#endif 27420char GOMP_parallel_start (); 27421int 27422main () 27423{ 27424return GOMP_parallel_start (); 27425 ; 27426 return 0; 27427} 27428_ACEOF 27429if ac_fn_c_try_link "$LINENO"; then : 27430 ac_cv_lib_gomp_GOMP_parallel_start=yes 27431else 27432 ac_cv_lib_gomp_GOMP_parallel_start=no 27433fi 27434rm -f core conftest.err conftest.$ac_objext \ 27435 conftest$ac_exeext conftest.$ac_ext 27436LIBS=$ac_check_lib_save_LIBS 27437fi 27438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 27439$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } 27440if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : 27441 GOMP_LIBS="-lgomp" 27442fi 27443 27444 fi 27445 else 27446 # Sun CC 27447 if test "x$GOMP_LIBS" = x ; then 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 27449$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } 27450if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : 27451 $as_echo_n "(cached) " >&6 27452else 27453 ac_check_lib_save_LIBS=$LIBS 27454LIBS="-lmtsk $LIBS" 27455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27456/* end confdefs.h. */ 27457 27458/* Override any GCC internal prototype to avoid an error. 27459 Use char because int might match the return type of a GCC 27460 builtin and then its argument prototype would still apply. */ 27461#ifdef __cplusplus 27462extern "C" 27463#endif 27464char sunw_mp_register_warn (); 27465int 27466main () 27467{ 27468return sunw_mp_register_warn (); 27469 ; 27470 return 0; 27471} 27472_ACEOF 27473if ac_fn_c_try_link "$LINENO"; then : 27474 ac_cv_lib_mtsk_sunw_mp_register_warn=yes 27475else 27476 ac_cv_lib_mtsk_sunw_mp_register_warn=no 27477fi 27478rm -f core conftest.err conftest.$ac_objext \ 27479 conftest$ac_exeext conftest.$ac_ext 27480LIBS=$ac_check_lib_save_LIBS 27481fi 27482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 27483$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } 27484if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : 27485 GOMP_LIBS="-lmtsk" 27486fi 27487 27488 fi 27489 # AIX xlc 27490 if test "x$GOMP_LIBS" = x ; then 27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 27492$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } 27493if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : 27494 $as_echo_n "(cached) " >&6 27495else 27496 ac_check_lib_save_LIBS=$LIBS 27497LIBS="-lxlsmp $LIBS" 27498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27499/* end confdefs.h. */ 27500 27501/* Override any GCC internal prototype to avoid an error. 27502 Use char because int might match the return type of a GCC 27503 builtin and then its argument prototype would still apply. */ 27504#ifdef __cplusplus 27505extern "C" 27506#endif 27507char _xlsmpFlush (); 27508int 27509main () 27510{ 27511return _xlsmpFlush (); 27512 ; 27513 return 0; 27514} 27515_ACEOF 27516if ac_fn_c_try_link "$LINENO"; then : 27517 ac_cv_lib_xlsmp__xlsmpFlush=yes 27518else 27519 ac_cv_lib_xlsmp__xlsmpFlush=no 27520fi 27521rm -f core conftest.err conftest.$ac_objext \ 27522 conftest$ac_exeext conftest.$ac_ext 27523LIBS=$ac_check_lib_save_LIBS 27524fi 27525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 27526$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } 27527if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : 27528 GOMP_LIBS="-lxlsmp" 27529fi 27530 27531 fi 27532 # SGI IRIX 6.5 MIPSpro C/C++ 27533 if test "x$GOMP_LIBS" = x ; then 27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 27535$as_echo_n "checking for mp_destroy in -lmp... " >&6; } 27536if ${ac_cv_lib_mp_mp_destroy+:} false; then : 27537 $as_echo_n "(cached) " >&6 27538else 27539 ac_check_lib_save_LIBS=$LIBS 27540LIBS="-lmp $LIBS" 27541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27542/* end confdefs.h. */ 27543 27544/* Override any GCC internal prototype to avoid an error. 27545 Use char because int might match the return type of a GCC 27546 builtin and then its argument prototype would still apply. */ 27547#ifdef __cplusplus 27548extern "C" 27549#endif 27550char mp_destroy (); 27551int 27552main () 27553{ 27554return mp_destroy (); 27555 ; 27556 return 0; 27557} 27558_ACEOF 27559if ac_fn_c_try_link "$LINENO"; then : 27560 ac_cv_lib_mp_mp_destroy=yes 27561else 27562 ac_cv_lib_mp_mp_destroy=no 27563fi 27564rm -f core conftest.err conftest.$ac_objext \ 27565 conftest$ac_exeext conftest.$ac_ext 27566LIBS=$ac_check_lib_save_LIBS 27567fi 27568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 27569$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } 27570if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : 27571 GOMP_LIBS="-lmp" 27572fi 27573 27574 fi 27575 fi 27576 LIBS="$GOMP_LIBS $LIBS" 27577fi 27578 27579 27580# 27581# Check for jemalloc. 27582# 27583have_jemalloc='no' 27584JEMALLOC_LIBS='' 27585if test "$with_jemalloc" != 'no'; then 27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5 27587$as_echo_n "checking for JEMALLOC support ... " >&6; } 27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 27589$as_echo "" >&6; } 27590 failed=0 27591 passed=0 27592 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default" 27593if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then : 27594 passed=`expr $passed + 1` 27595else 27596 failed=`expr $failed + 1` 27597fi 27598 27599 27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5 27601$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; } 27602if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then : 27603 $as_echo_n "(cached) " >&6 27604else 27605 ac_check_lib_save_LIBS=$LIBS 27606LIBS="-ljemalloc $LIBS" 27607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27608/* end confdefs.h. */ 27609 27610/* Override any GCC internal prototype to avoid an error. 27611 Use char because int might match the return type of a GCC 27612 builtin and then its argument prototype would still apply. */ 27613#ifdef __cplusplus 27614extern "C" 27615#endif 27616char malloc_stats_print (); 27617int 27618main () 27619{ 27620return malloc_stats_print (); 27621 ; 27622 return 0; 27623} 27624_ACEOF 27625if ac_fn_c_try_link "$LINENO"; then : 27626 ac_cv_lib_jemalloc_malloc_stats_print=yes 27627else 27628 ac_cv_lib_jemalloc_malloc_stats_print=no 27629fi 27630rm -f core conftest.err conftest.$ac_objext \ 27631 conftest$ac_exeext conftest.$ac_ext 27632LIBS=$ac_check_lib_save_LIBS 27633fi 27634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5 27635$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; } 27636if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then : 27637 passed=`expr $passed + 1` 27638else 27639 failed=`expr $failed + 1` 27640fi 27641 27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5 27643$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; } 27644 if test $passed -gt 0; then 27645 if test $failed -gt 0; then 27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 27647$as_echo "no -- some components failed test" >&6; } 27648 have_jemalloc='no (failed tests)' 27649 else 27650 JEMALLOC_LIBS='-ljemalloc' 27651 LIBS="$JEMALLOC_LIBS $LIBS" 27652 27653$as_echo "#define HasJEMALLOC 1" >>confdefs.h 27654 27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27656$as_echo "yes" >&6; } 27657 have_jemalloc='yes' 27658 fi 27659 else 27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27661$as_echo "no" >&6; } 27662 fi 27663fi 27664 if test "$have_jemalloc" = 'yes'; then 27665 HasJEMALLOC_TRUE= 27666 HasJEMALLOC_FALSE='#' 27667else 27668 HasJEMALLOC_TRUE='#' 27669 HasJEMALLOC_FALSE= 27670fi 27671 27672 27673 27674# 27675# Check for umem. 27676# 27677have_umem='no' 27678UMEM_LIBS='' 27679if test "$with_umem" != 'no'; then 27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 27681$as_echo_n "checking for UMEM support ... " >&6; } 27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 27683$as_echo "" >&6; } 27684 failed=0 27685 passed=0 27686 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" 27687if test "x$ac_cv_header_umem_h" = xyes; then : 27688 passed=`expr $passed + 1` 27689else 27690 failed=`expr $failed + 1` 27691fi 27692 27693 27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 27695$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 27696if ${ac_cv_lib_umem_umem_alloc+:} false; then : 27697 $as_echo_n "(cached) " >&6 27698else 27699 ac_check_lib_save_LIBS=$LIBS 27700LIBS="-lumem $LIBS" 27701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27702/* end confdefs.h. */ 27703 27704/* Override any GCC internal prototype to avoid an error. 27705 Use char because int might match the return type of a GCC 27706 builtin and then its argument prototype would still apply. */ 27707#ifdef __cplusplus 27708extern "C" 27709#endif 27710char umem_alloc (); 27711int 27712main () 27713{ 27714return umem_alloc (); 27715 ; 27716 return 0; 27717} 27718_ACEOF 27719if ac_fn_c_try_link "$LINENO"; then : 27720 ac_cv_lib_umem_umem_alloc=yes 27721else 27722 ac_cv_lib_umem_umem_alloc=no 27723fi 27724rm -f core conftest.err conftest.$ac_objext \ 27725 conftest$ac_exeext conftest.$ac_ext 27726LIBS=$ac_check_lib_save_LIBS 27727fi 27728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 27729$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 27730if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 27731 passed=`expr $passed + 1` 27732else 27733 failed=`expr $failed + 1` 27734fi 27735 27736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 27737$as_echo_n "checking for umem_free in -lumem... " >&6; } 27738if ${ac_cv_lib_umem_umem_free+:} false; then : 27739 $as_echo_n "(cached) " >&6 27740else 27741 ac_check_lib_save_LIBS=$LIBS 27742LIBS="-lumem $LIBS" 27743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27744/* end confdefs.h. */ 27745 27746/* Override any GCC internal prototype to avoid an error. 27747 Use char because int might match the return type of a GCC 27748 builtin and then its argument prototype would still apply. */ 27749#ifdef __cplusplus 27750extern "C" 27751#endif 27752char umem_free (); 27753int 27754main () 27755{ 27756return umem_free (); 27757 ; 27758 return 0; 27759} 27760_ACEOF 27761if ac_fn_c_try_link "$LINENO"; then : 27762 ac_cv_lib_umem_umem_free=yes 27763else 27764 ac_cv_lib_umem_umem_free=no 27765fi 27766rm -f core conftest.err conftest.$ac_objext \ 27767 conftest$ac_exeext conftest.$ac_ext 27768LIBS=$ac_check_lib_save_LIBS 27769fi 27770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 27771$as_echo "$ac_cv_lib_umem_umem_free" >&6; } 27772if test "x$ac_cv_lib_umem_umem_free" = xyes; then : 27773 passed=`expr $passed + 1` 27774else 27775 failed=`expr $failed + 1` 27776fi 27777 27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 27779$as_echo_n "checking if umem memory allocation library is complete... " >&6; } 27780 if test $passed -gt 0; then 27781 if test $failed -gt 0; then 27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 27783$as_echo "no -- some components failed test" >&6; } 27784 have_umem='no (failed tests)' 27785 else 27786 UMEM_LIBS='-lumem' 27787 LIBS="$UMEM_LIBS $LIBS" 27788 27789$as_echo "#define HasUMEM 1" >>confdefs.h 27790 27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27792$as_echo "yes" >&6; } 27793 have_umem='yes' 27794 fi 27795 else 27796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27797$as_echo "no" >&6; } 27798 fi 27799fi 27800 if test "$have_umem" = 'yes'; then 27801 HasUMEM_TRUE= 27802 HasUMEM_FALSE='#' 27803else 27804 HasUMEM_TRUE='#' 27805 HasUMEM_FALSE= 27806fi 27807 27808 27809 27810# 27811# Add support for ccmalloc memory debugging library if requested 27812# 27813have_ccmalloc='no' 27814CCMALLOC_LIBS='' 27815if test "$enable_ccmalloc" = 'yes'; then 27816 # Extract the first word of "ccmalloc", so it can be a program name with args. 27817set dummy ccmalloc; ac_word=$2 27818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27819$as_echo_n "checking for $ac_word... " >&6; } 27820if ${ac_cv_path_CCMALLOCDelegate+:} false; then : 27821 $as_echo_n "(cached) " >&6 27822else 27823 case $CCMALLOCDelegate in 27824 [\\/]* | ?:[\\/]*) 27825 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. 27826 ;; 27827 *) 27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27829for as_dir in $PATH 27830do 27831 IFS=$as_save_IFS 27832 test -z "$as_dir" && as_dir=. 27833 for ac_exec_ext in '' $ac_executable_extensions; do 27834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27835 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" 27836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27837 break 2 27838 fi 27839done 27840 done 27841IFS=$as_save_IFS 27842 27843 ;; 27844esac 27845fi 27846CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate 27847if test -n "$CCMALLOCDelegate"; then 27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 27849$as_echo "$CCMALLOCDelegate" >&6; } 27850else 27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27852$as_echo "no" >&6; } 27853fi 27854 27855 27856 if test -n "$CCMALLOCDelegate"; then 27857 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 27858 OLIBS="$LIBS" 27859 # Assume that gcc is used with ccmalloc. 27860 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 27862$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } 27863if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : 27864 $as_echo_n "(cached) " >&6 27865else 27866 ac_check_lib_save_LIBS=$LIBS 27867LIBS="-lccmalloc -ldl $LIBS" 27868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27869/* end confdefs.h. */ 27870 27871/* Override any GCC internal prototype to avoid an error. 27872 Use char because int might match the return type of a GCC 27873 builtin and then its argument prototype would still apply. */ 27874#ifdef __cplusplus 27875extern "C" 27876#endif 27877char ccmalloc_malloc (); 27878int 27879main () 27880{ 27881return ccmalloc_malloc (); 27882 ; 27883 return 0; 27884} 27885_ACEOF 27886if ac_fn_c_try_link "$LINENO"; then : 27887 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes 27888else 27889 ac_cv_lib_ccmalloc_ccmalloc_malloc=no 27890fi 27891rm -f core conftest.err conftest.$ac_objext \ 27892 conftest$ac_exeext conftest.$ac_ext 27893LIBS=$ac_check_lib_save_LIBS 27894fi 27895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 27896$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } 27897if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : 27898 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" 27899fi 27900 27901 if test -n "$CCMALLOC_LIBS"; then 27902 LIBS="$OLIBS" 27903 LIBS="$LIBS $CCMALLOC_LIBS" 27904 have_ccmalloc='yes' 27905 else 27906 LIBS="$OLIBS" 27907 fi 27908 fi 27909fi 27910 27911# 27912# Add support for 'huge pages' if requested 27913# 27914if test "x$enable_hugepages" != "xno"; then : 27915 27916 27917$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h 27918 27919 27920fi 27921 27922# 27923# Add support for efence memory debugging library if requested 27924# 27925if test "$enable_efence" = 'yes'; then 27926 EFENCE_LIBS='-lefence' 27927 LIBS="$EFENCE_LIBS $LIBS" 27928fi 27929 27930 27931# 27932# Check for BZLIB 27933# 27934 27935 27936# Check whether --with-bzlib was given. 27937if test "${with_bzlib+set}" = set; then : 27938 withval=$with_bzlib; with_bzlib=$withval 27939else 27940 with_bzlib='yes' 27941fi 27942 27943 27944if test "$with_bzlib" != 'yes'; then 27945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 27946fi 27947 27948have_bzlib='no' 27949if test "$with_bzlib" != 'no'; then 27950 BZLIB_LIBS='' 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 27952$as_echo "-------------------------------------------------------------" >&6; } 27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 27954$as_echo_n "checking for BZLIB... " >&6; } 27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 27956$as_echo "" >&6; } 27957 failed=0 27958 passed=0 27959 found_libbz=0 27960 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 27961if test "x$ac_cv_header_bzlib_h" = xyes; then : 27962 passed=`expr $passed + 1` 27963else 27964 failed=`expr $failed + 1` 27965fi 27966 27967 27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 27969$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 27970if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : 27971 $as_echo_n "(cached) " >&6 27972else 27973 ac_check_lib_save_LIBS=$LIBS 27974LIBS="-lbz2 $LIBS" 27975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27976/* end confdefs.h. */ 27977 27978/* Override any GCC internal prototype to avoid an error. 27979 Use char because int might match the return type of a GCC 27980 builtin and then its argument prototype would still apply. */ 27981#ifdef __cplusplus 27982extern "C" 27983#endif 27984char BZ2_bzDecompress (); 27985int 27986main () 27987{ 27988return BZ2_bzDecompress (); 27989 ; 27990 return 0; 27991} 27992_ACEOF 27993if ac_fn_c_try_link "$LINENO"; then : 27994 ac_cv_lib_bz2_BZ2_bzDecompress=yes 27995else 27996 ac_cv_lib_bz2_BZ2_bzDecompress=no 27997fi 27998rm -f core conftest.err conftest.$ac_objext \ 27999 conftest$ac_exeext conftest.$ac_ext 28000LIBS=$ac_check_lib_save_LIBS 28001fi 28002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 28003$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 28004if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : 28005 found_libbz=`expr $found_libbz + 1` 28006fi 28007 28008 if test "$native_win32_build" = 'yes'; then 28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 28010$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } 28011if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : 28012 $as_echo_n "(cached) " >&6 28013else 28014 ac_check_lib_save_LIBS=$LIBS 28015LIBS="-lbz2 $LIBS" 28016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28017/* end confdefs.h. */ 28018 28019/* Override any GCC internal prototype to avoid an error. 28020 Use char because int might match the return type of a GCC 28021 builtin and then its argument prototype would still apply. */ 28022#ifdef __cplusplus 28023extern "C" 28024#endif 28025char _imp__BZ2_decompress (); 28026int 28027main () 28028{ 28029return _imp__BZ2_decompress (); 28030 ; 28031 return 0; 28032} 28033_ACEOF 28034if ac_fn_c_try_link "$LINENO"; then : 28035 ac_cv_lib_bz2__imp__BZ2_decompress=yes 28036else 28037 ac_cv_lib_bz2__imp__BZ2_decompress=no 28038fi 28039rm -f core conftest.err conftest.$ac_objext \ 28040 conftest$ac_exeext conftest.$ac_ext 28041LIBS=$ac_check_lib_save_LIBS 28042fi 28043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 28044$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } 28045if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : 28046 found_libbz=`expr $found_libbz + 1` 28047fi 28048 28049 fi 28050 if test $found_libbz -gt 0; then 28051 passed=`expr $passed + 1` 28052 else 28053 failed=`expr $failed + 1` 28054 fi 28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 28056$as_echo_n "checking if BZLIB package is complete... " >&6; } 28057 if test $passed -gt 0; then 28058 if test $failed -gt 0; then 28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28060$as_echo "no -- some components failed test" >&6; } 28061 have_bzlib='no (failed tests)' 28062 else 28063 BZLIB_LIBS='-lbz2' 28064 LIBS="$BZLIB_LIBS $LIBS" 28065 28066$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h 28067 28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28069$as_echo "yes" >&6; } 28070 have_bzlib='yes' 28071 fi 28072 else 28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28074$as_echo "no" >&6; } 28075 fi 28076fi 28077 if test "$have_bzlib" = 'yes'; then 28078 BZLIB_DELEGATE_TRUE= 28079 BZLIB_DELEGATE_FALSE='#' 28080else 28081 BZLIB_DELEGATE_TRUE='#' 28082 BZLIB_DELEGATE_FALSE= 28083fi 28084 28085 28086 28087# 28088# Find the X11 include and library directories. 28089# 28090IPC_LIBS='' 28091X11_LIBS='' 28092XEXT_LIBS='' 28093XT_LIBS='' 28094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 28095$as_echo_n "checking for X... " >&6; } 28096 28097 28098# Check whether --with-x was given. 28099if test "${with_x+set}" = set; then : 28100 withval=$with_x; 28101fi 28102 28103# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 28104if test "x$with_x" = xno; then 28105 # The user explicitly disabled X. 28106 have_x=disabled 28107else 28108 case $x_includes,$x_libraries in #( 28109 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 28110 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 28111 $as_echo_n "(cached) " >&6 28112else 28113 # One or both of the vars are not set, and there is no cached value. 28114ac_x_includes=no ac_x_libraries=no 28115rm -f -r conftest.dir 28116if mkdir conftest.dir; then 28117 cd conftest.dir 28118 cat >Imakefile <<'_ACEOF' 28119incroot: 28120 @echo incroot='${INCROOT}' 28121usrlibdir: 28122 @echo usrlibdir='${USRLIBDIR}' 28123libdir: 28124 @echo libdir='${LIBDIR}' 28125_ACEOF 28126 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 28127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 28128 for ac_var in incroot usrlibdir libdir; do 28129 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 28130 done 28131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 28132 for ac_extension in a so sl dylib la dll; do 28133 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 28134 test -f "$ac_im_libdir/libX11.$ac_extension"; then 28135 ac_im_usrlibdir=$ac_im_libdir; break 28136 fi 28137 done 28138 # Screen out bogus values from the imake configuration. They are 28139 # bogus both because they are the default anyway, and because 28140 # using them would break gcc on systems where it needs fixed includes. 28141 case $ac_im_incroot in 28142 /usr/include) ac_x_includes= ;; 28143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 28144 esac 28145 case $ac_im_usrlibdir in 28146 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 28147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 28148 esac 28149 fi 28150 cd .. 28151 rm -f -r conftest.dir 28152fi 28153 28154# Standard set of common directories for X headers. 28155# Check X11 before X11Rn because it is often a symlink to the current release. 28156ac_x_header_dirs=' 28157/usr/X11/include 28158/usr/X11R7/include 28159/usr/X11R6/include 28160/usr/X11R5/include 28161/usr/X11R4/include 28162 28163/usr/include/X11 28164/usr/include/X11R7 28165/usr/include/X11R6 28166/usr/include/X11R5 28167/usr/include/X11R4 28168 28169/usr/local/X11/include 28170/usr/local/X11R7/include 28171/usr/local/X11R6/include 28172/usr/local/X11R5/include 28173/usr/local/X11R4/include 28174 28175/usr/local/include/X11 28176/usr/local/include/X11R7 28177/usr/local/include/X11R6 28178/usr/local/include/X11R5 28179/usr/local/include/X11R4 28180 28181/usr/X386/include 28182/usr/x386/include 28183/usr/XFree86/include/X11 28184 28185/usr/include 28186/usr/local/include 28187/usr/unsupported/include 28188/usr/athena/include 28189/usr/local/x11r5/include 28190/usr/lpp/Xamples/include 28191 28192/usr/openwin/include 28193/usr/openwin/share/include' 28194 28195if test "$ac_x_includes" = no; then 28196 # Guess where to find include files, by looking for Xlib.h. 28197 # First, try using that file with no special directory specified. 28198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28199/* end confdefs.h. */ 28200#include <X11/Xlib.h> 28201_ACEOF 28202if ac_fn_c_try_cpp "$LINENO"; then : 28203 # We can compile using X headers with no special include directory. 28204ac_x_includes= 28205else 28206 for ac_dir in $ac_x_header_dirs; do 28207 if test -r "$ac_dir/X11/Xlib.h"; then 28208 ac_x_includes=$ac_dir 28209 break 28210 fi 28211done 28212fi 28213rm -f conftest.err conftest.i conftest.$ac_ext 28214fi # $ac_x_includes = no 28215 28216if test "$ac_x_libraries" = no; then 28217 # Check for the libraries. 28218 # See if we find them without any special options. 28219 # Don't add to $LIBS permanently. 28220 ac_save_LIBS=$LIBS 28221 LIBS="-lX11 $LIBS" 28222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28223/* end confdefs.h. */ 28224#include <X11/Xlib.h> 28225int 28226main () 28227{ 28228XrmInitialize () 28229 ; 28230 return 0; 28231} 28232_ACEOF 28233if ac_fn_c_try_link "$LINENO"; then : 28234 LIBS=$ac_save_LIBS 28235# We can link X programs with no special library path. 28236ac_x_libraries= 28237else 28238 LIBS=$ac_save_LIBS 28239for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 28240do 28241 # Don't even attempt the hair of trying to link an X program! 28242 for ac_extension in a so sl dylib la dll; do 28243 if test -r "$ac_dir/libX11.$ac_extension"; then 28244 ac_x_libraries=$ac_dir 28245 break 2 28246 fi 28247 done 28248done 28249fi 28250rm -f core conftest.err conftest.$ac_objext \ 28251 conftest$ac_exeext conftest.$ac_ext 28252fi # $ac_x_libraries = no 28253 28254case $ac_x_includes,$ac_x_libraries in #( 28255 no,* | *,no | *\'*) 28256 # Didn't find X, or a directory has "'" in its name. 28257 ac_cv_have_x="have_x=no";; #( 28258 *) 28259 # Record where we found X for the cache. 28260 ac_cv_have_x="have_x=yes\ 28261 ac_x_includes='$ac_x_includes'\ 28262 ac_x_libraries='$ac_x_libraries'" 28263esac 28264fi 28265;; #( 28266 *) have_x=yes;; 28267 esac 28268 eval "$ac_cv_have_x" 28269fi # $with_x != no 28270 28271if test "$have_x" != yes; then 28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 28273$as_echo "$have_x" >&6; } 28274 no_x=yes 28275else 28276 # If each of the values was on the command line, it overrides each guess. 28277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 28278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 28279 # Update the cache value to reflect the command line values. 28280 ac_cv_have_x="have_x=yes\ 28281 ac_x_includes='$x_includes'\ 28282 ac_x_libraries='$x_libraries'" 28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 28284$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 28285fi 28286 28287if test "$no_x" = yes; then 28288 # Not all programs may use this symbol, but it does not hurt to define it. 28289 28290$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 28291 28292 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 28293else 28294 if test -n "$x_includes"; then 28295 X_CFLAGS="$X_CFLAGS -I$x_includes" 28296 fi 28297 28298 # It would also be nice to do this for all -L options, not just this one. 28299 if test -n "$x_libraries"; then 28300 X_LIBS="$X_LIBS -L$x_libraries" 28301 # For Solaris; some versions of Sun CC require a space after -R and 28302 # others require no space. Words are not sufficient . . . . 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 28304$as_echo_n "checking whether -R must be followed by a space... " >&6; } 28305 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 28306 ac_xsave_c_werror_flag=$ac_c_werror_flag 28307 ac_c_werror_flag=yes 28308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28309/* end confdefs.h. */ 28310 28311int 28312main () 28313{ 28314 28315 ; 28316 return 0; 28317} 28318_ACEOF 28319if ac_fn_c_try_link "$LINENO"; then : 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28321$as_echo "no" >&6; } 28322 X_LIBS="$X_LIBS -R$x_libraries" 28323else 28324 LIBS="$ac_xsave_LIBS -R $x_libraries" 28325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28326/* end confdefs.h. */ 28327 28328int 28329main () 28330{ 28331 28332 ; 28333 return 0; 28334} 28335_ACEOF 28336if ac_fn_c_try_link "$LINENO"; then : 28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28338$as_echo "yes" >&6; } 28339 X_LIBS="$X_LIBS -R $x_libraries" 28340else 28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 28342$as_echo "neither works" >&6; } 28343fi 28344rm -f core conftest.err conftest.$ac_objext \ 28345 conftest$ac_exeext conftest.$ac_ext 28346fi 28347rm -f core conftest.err conftest.$ac_objext \ 28348 conftest$ac_exeext conftest.$ac_ext 28349 ac_c_werror_flag=$ac_xsave_c_werror_flag 28350 LIBS=$ac_xsave_LIBS 28351 fi 28352 28353 # Check for system-dependent libraries X programs must link with. 28354 # Do this before checking for the system-independent R6 libraries 28355 # (-lICE), since we may need -lsocket or whatever for X linking. 28356 28357 if test "$ISC" = yes; then 28358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 28359 else 28360 # Martyn Johnson says this is needed for Ultrix, if the X 28361 # libraries were built with DECnet support. And Karl Berry says 28362 # the Alpha needs dnet_stub (dnet does not exist). 28363 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 28364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28365/* end confdefs.h. */ 28366 28367/* Override any GCC internal prototype to avoid an error. 28368 Use char because int might match the return type of a GCC 28369 builtin and then its argument prototype would still apply. */ 28370#ifdef __cplusplus 28371extern "C" 28372#endif 28373char XOpenDisplay (); 28374int 28375main () 28376{ 28377return XOpenDisplay (); 28378 ; 28379 return 0; 28380} 28381_ACEOF 28382if ac_fn_c_try_link "$LINENO"; then : 28383 28384else 28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 28386$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 28387if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 28388 $as_echo_n "(cached) " >&6 28389else 28390 ac_check_lib_save_LIBS=$LIBS 28391LIBS="-ldnet $LIBS" 28392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28393/* end confdefs.h. */ 28394 28395/* Override any GCC internal prototype to avoid an error. 28396 Use char because int might match the return type of a GCC 28397 builtin and then its argument prototype would still apply. */ 28398#ifdef __cplusplus 28399extern "C" 28400#endif 28401char dnet_ntoa (); 28402int 28403main () 28404{ 28405return dnet_ntoa (); 28406 ; 28407 return 0; 28408} 28409_ACEOF 28410if ac_fn_c_try_link "$LINENO"; then : 28411 ac_cv_lib_dnet_dnet_ntoa=yes 28412else 28413 ac_cv_lib_dnet_dnet_ntoa=no 28414fi 28415rm -f core conftest.err conftest.$ac_objext \ 28416 conftest$ac_exeext conftest.$ac_ext 28417LIBS=$ac_check_lib_save_LIBS 28418fi 28419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 28420$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 28421if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 28422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 28423fi 28424 28425 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 28427$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 28428if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 28429 $as_echo_n "(cached) " >&6 28430else 28431 ac_check_lib_save_LIBS=$LIBS 28432LIBS="-ldnet_stub $LIBS" 28433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28434/* end confdefs.h. */ 28435 28436/* Override any GCC internal prototype to avoid an error. 28437 Use char because int might match the return type of a GCC 28438 builtin and then its argument prototype would still apply. */ 28439#ifdef __cplusplus 28440extern "C" 28441#endif 28442char dnet_ntoa (); 28443int 28444main () 28445{ 28446return dnet_ntoa (); 28447 ; 28448 return 0; 28449} 28450_ACEOF 28451if ac_fn_c_try_link "$LINENO"; then : 28452 ac_cv_lib_dnet_stub_dnet_ntoa=yes 28453else 28454 ac_cv_lib_dnet_stub_dnet_ntoa=no 28455fi 28456rm -f core conftest.err conftest.$ac_objext \ 28457 conftest$ac_exeext conftest.$ac_ext 28458LIBS=$ac_check_lib_save_LIBS 28459fi 28460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 28461$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 28462if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 28463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 28464fi 28465 28466 fi 28467fi 28468rm -f core conftest.err conftest.$ac_objext \ 28469 conftest$ac_exeext conftest.$ac_ext 28470 LIBS="$ac_xsave_LIBS" 28471 28472 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 28473 # to get the SysV transport functions. 28474 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 28475 # needs -lnsl. 28476 # The nsl library prevents programs from opening the X display 28477 # on Irix 5.2, according to T.E. Dickey. 28478 # The functions gethostbyname, getservbyname, and inet_addr are 28479 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 28480 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 28481if test "x$ac_cv_func_gethostbyname" = xyes; then : 28482 28483fi 28484 28485 if test $ac_cv_func_gethostbyname = no; then 28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 28487$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 28488if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 28489 $as_echo_n "(cached) " >&6 28490else 28491 ac_check_lib_save_LIBS=$LIBS 28492LIBS="-lnsl $LIBS" 28493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28494/* end confdefs.h. */ 28495 28496/* Override any GCC internal prototype to avoid an error. 28497 Use char because int might match the return type of a GCC 28498 builtin and then its argument prototype would still apply. */ 28499#ifdef __cplusplus 28500extern "C" 28501#endif 28502char gethostbyname (); 28503int 28504main () 28505{ 28506return gethostbyname (); 28507 ; 28508 return 0; 28509} 28510_ACEOF 28511if ac_fn_c_try_link "$LINENO"; then : 28512 ac_cv_lib_nsl_gethostbyname=yes 28513else 28514 ac_cv_lib_nsl_gethostbyname=no 28515fi 28516rm -f core conftest.err conftest.$ac_objext \ 28517 conftest$ac_exeext conftest.$ac_ext 28518LIBS=$ac_check_lib_save_LIBS 28519fi 28520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 28521$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 28522if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 28523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 28524fi 28525 28526 if test $ac_cv_lib_nsl_gethostbyname = no; then 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 28528$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 28529if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 28530 $as_echo_n "(cached) " >&6 28531else 28532 ac_check_lib_save_LIBS=$LIBS 28533LIBS="-lbsd $LIBS" 28534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28535/* end confdefs.h. */ 28536 28537/* Override any GCC internal prototype to avoid an error. 28538 Use char because int might match the return type of a GCC 28539 builtin and then its argument prototype would still apply. */ 28540#ifdef __cplusplus 28541extern "C" 28542#endif 28543char gethostbyname (); 28544int 28545main () 28546{ 28547return gethostbyname (); 28548 ; 28549 return 0; 28550} 28551_ACEOF 28552if ac_fn_c_try_link "$LINENO"; then : 28553 ac_cv_lib_bsd_gethostbyname=yes 28554else 28555 ac_cv_lib_bsd_gethostbyname=no 28556fi 28557rm -f core conftest.err conftest.$ac_objext \ 28558 conftest$ac_exeext conftest.$ac_ext 28559LIBS=$ac_check_lib_save_LIBS 28560fi 28561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 28562$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 28563if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 28564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 28565fi 28566 28567 fi 28568 fi 28569 28570 # lieder@skyler.mavd.honeywell.com says without -lsocket, 28571 # socket/setsockopt and other routines are undefined under SCO ODT 28572 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 28573 # on later versions), says Simon Leinen: it contains gethostby* 28574 # variants that don't use the name server (or something). -lsocket 28575 # must be given before -lnsl if both are needed. We assume that 28576 # if connect needs -lnsl, so does gethostbyname. 28577 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 28578if test "x$ac_cv_func_connect" = xyes; then : 28579 28580fi 28581 28582 if test $ac_cv_func_connect = no; then 28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 28584$as_echo_n "checking for connect in -lsocket... " >&6; } 28585if ${ac_cv_lib_socket_connect+:} false; then : 28586 $as_echo_n "(cached) " >&6 28587else 28588 ac_check_lib_save_LIBS=$LIBS 28589LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 28590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28591/* end confdefs.h. */ 28592 28593/* Override any GCC internal prototype to avoid an error. 28594 Use char because int might match the return type of a GCC 28595 builtin and then its argument prototype would still apply. */ 28596#ifdef __cplusplus 28597extern "C" 28598#endif 28599char connect (); 28600int 28601main () 28602{ 28603return connect (); 28604 ; 28605 return 0; 28606} 28607_ACEOF 28608if ac_fn_c_try_link "$LINENO"; then : 28609 ac_cv_lib_socket_connect=yes 28610else 28611 ac_cv_lib_socket_connect=no 28612fi 28613rm -f core conftest.err conftest.$ac_objext \ 28614 conftest$ac_exeext conftest.$ac_ext 28615LIBS=$ac_check_lib_save_LIBS 28616fi 28617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 28618$as_echo "$ac_cv_lib_socket_connect" >&6; } 28619if test "x$ac_cv_lib_socket_connect" = xyes; then : 28620 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 28621fi 28622 28623 fi 28624 28625 # Guillermo Gomez says -lposix is necessary on A/UX. 28626 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 28627if test "x$ac_cv_func_remove" = xyes; then : 28628 28629fi 28630 28631 if test $ac_cv_func_remove = no; then 28632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 28633$as_echo_n "checking for remove in -lposix... " >&6; } 28634if ${ac_cv_lib_posix_remove+:} false; then : 28635 $as_echo_n "(cached) " >&6 28636else 28637 ac_check_lib_save_LIBS=$LIBS 28638LIBS="-lposix $LIBS" 28639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28640/* end confdefs.h. */ 28641 28642/* Override any GCC internal prototype to avoid an error. 28643 Use char because int might match the return type of a GCC 28644 builtin and then its argument prototype would still apply. */ 28645#ifdef __cplusplus 28646extern "C" 28647#endif 28648char remove (); 28649int 28650main () 28651{ 28652return remove (); 28653 ; 28654 return 0; 28655} 28656_ACEOF 28657if ac_fn_c_try_link "$LINENO"; then : 28658 ac_cv_lib_posix_remove=yes 28659else 28660 ac_cv_lib_posix_remove=no 28661fi 28662rm -f core conftest.err conftest.$ac_objext \ 28663 conftest$ac_exeext conftest.$ac_ext 28664LIBS=$ac_check_lib_save_LIBS 28665fi 28666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 28667$as_echo "$ac_cv_lib_posix_remove" >&6; } 28668if test "x$ac_cv_lib_posix_remove" = xyes; then : 28669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 28670fi 28671 28672 fi 28673 28674 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 28675 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 28676if test "x$ac_cv_func_shmat" = xyes; then : 28677 28678fi 28679 28680 if test $ac_cv_func_shmat = no; then 28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 28682$as_echo_n "checking for shmat in -lipc... " >&6; } 28683if ${ac_cv_lib_ipc_shmat+:} false; then : 28684 $as_echo_n "(cached) " >&6 28685else 28686 ac_check_lib_save_LIBS=$LIBS 28687LIBS="-lipc $LIBS" 28688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28689/* end confdefs.h. */ 28690 28691/* Override any GCC internal prototype to avoid an error. 28692 Use char because int might match the return type of a GCC 28693 builtin and then its argument prototype would still apply. */ 28694#ifdef __cplusplus 28695extern "C" 28696#endif 28697char shmat (); 28698int 28699main () 28700{ 28701return shmat (); 28702 ; 28703 return 0; 28704} 28705_ACEOF 28706if ac_fn_c_try_link "$LINENO"; then : 28707 ac_cv_lib_ipc_shmat=yes 28708else 28709 ac_cv_lib_ipc_shmat=no 28710fi 28711rm -f core conftest.err conftest.$ac_objext \ 28712 conftest$ac_exeext conftest.$ac_ext 28713LIBS=$ac_check_lib_save_LIBS 28714fi 28715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 28716$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 28717if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 28718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 28719fi 28720 28721 fi 28722 fi 28723 28724 # Check for libraries that X11R6 Xt/Xaw programs need. 28725 ac_save_LDFLAGS=$LDFLAGS 28726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 28727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 28728 # check for ICE first), but we must link in the order -lSM -lICE or 28729 # we get undefined symbols. So assume we have SM if we have ICE. 28730 # These have to be linked with before -lX11, unlike the other 28731 # libraries we check for below, so use a different variable. 28732 # John Interrante, Karl Berry 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 28734$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 28735if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 28736 $as_echo_n "(cached) " >&6 28737else 28738 ac_check_lib_save_LIBS=$LIBS 28739LIBS="-lICE $X_EXTRA_LIBS $LIBS" 28740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28741/* end confdefs.h. */ 28742 28743/* Override any GCC internal prototype to avoid an error. 28744 Use char because int might match the return type of a GCC 28745 builtin and then its argument prototype would still apply. */ 28746#ifdef __cplusplus 28747extern "C" 28748#endif 28749char IceConnectionNumber (); 28750int 28751main () 28752{ 28753return IceConnectionNumber (); 28754 ; 28755 return 0; 28756} 28757_ACEOF 28758if ac_fn_c_try_link "$LINENO"; then : 28759 ac_cv_lib_ICE_IceConnectionNumber=yes 28760else 28761 ac_cv_lib_ICE_IceConnectionNumber=no 28762fi 28763rm -f core conftest.err conftest.$ac_objext \ 28764 conftest$ac_exeext conftest.$ac_ext 28765LIBS=$ac_check_lib_save_LIBS 28766fi 28767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 28768$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 28769if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 28770 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 28771fi 28772 28773 LDFLAGS=$ac_save_LDFLAGS 28774 28775fi 28776 28777if test "$no_x" != 'yes'; then 28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28779$as_echo "-------------------------------------------------------------" >&6; } 28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 28781$as_echo_n "checking for X11... " >&6; } 28782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28783$as_echo "" >&6; } 28784 LDFLAGS="$LDFLAGS $X_LIBS" 28785 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 28786 LIBS="$X11_LIBS $LIBS" 28787 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 28788 28789 28790$as_echo "#define X11_DELEGATE 1" >>confdefs.h 28791 28792 # 28793 # Check for X11 shared memory extension 28794 # 28795 # shmctl is required to support the shared memory extension 28796 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" 28797if test "x$ac_cv_func_shmctl" = xyes; then : 28798 have_shmctl='yes' 28799fi 28800 28801 if test "$have_shmctl" != 'yes'; then 28802 PERSIST_LIBS=$LIBS 28803 LIBS="$LIBS -lcygipc" 28804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28805/* end confdefs.h. */ 28806 28807/* Override any GCC internal prototype to avoid an error. 28808 Use char because int might match the return type of a GCC 28809 builtin and then its argument prototype would still apply. */ 28810#ifdef __cplusplus 28811extern "C" 28812#endif 28813char shmctl (); 28814int 28815main () 28816{ 28817return shmctl (); 28818 ; 28819 return 0; 28820} 28821_ACEOF 28822if ac_fn_c_try_link "$LINENO"; then : 28823 have_shmctl='yes'; IPC_LIBS='-lcygipc' 28824fi 28825rm -f core conftest.err conftest.$ac_objext \ 28826 conftest$ac_exeext conftest.$ac_ext 28827 LIBS=$PERSIST_LIBS 28828 fi 28829 28830 if test "$have_shmctl" = 'yes'; then 28831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 28832$as_echo_n "checking for XShmAttach in -lXext... " >&6; } 28833if ${ac_cv_lib_Xext_XShmAttach+:} false; then : 28834 $as_echo_n "(cached) " >&6 28835else 28836 ac_check_lib_save_LIBS=$LIBS 28837LIBS="-lXext $LIBS" 28838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28839/* end confdefs.h. */ 28840 28841/* Override any GCC internal prototype to avoid an error. 28842 Use char because int might match the return type of a GCC 28843 builtin and then its argument prototype would still apply. */ 28844#ifdef __cplusplus 28845extern "C" 28846#endif 28847char XShmAttach (); 28848int 28849main () 28850{ 28851return XShmAttach (); 28852 ; 28853 return 0; 28854} 28855_ACEOF 28856if ac_fn_c_try_link "$LINENO"; then : 28857 ac_cv_lib_Xext_XShmAttach=yes 28858else 28859 ac_cv_lib_Xext_XShmAttach=no 28860fi 28861rm -f core conftest.err conftest.$ac_objext \ 28862 conftest$ac_exeext conftest.$ac_ext 28863LIBS=$ac_check_lib_save_LIBS 28864fi 28865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 28866$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 28867if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : 28868 XEXT_LIBS='-lXext' ; 28869$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h 28870 28871fi 28872 28873 fi 28874 28875 # 28876 # Check for X11 shape extension 28877 # 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 28879$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } 28880if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : 28881 $as_echo_n "(cached) " >&6 28882else 28883 ac_check_lib_save_LIBS=$LIBS 28884LIBS="-lXext $LIBS" 28885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28886/* end confdefs.h. */ 28887 28888/* Override any GCC internal prototype to avoid an error. 28889 Use char because int might match the return type of a GCC 28890 builtin and then its argument prototype would still apply. */ 28891#ifdef __cplusplus 28892extern "C" 28893#endif 28894char XShapeCombineMask (); 28895int 28896main () 28897{ 28898return XShapeCombineMask (); 28899 ; 28900 return 0; 28901} 28902_ACEOF 28903if ac_fn_c_try_link "$LINENO"; then : 28904 ac_cv_lib_Xext_XShapeCombineMask=yes 28905else 28906 ac_cv_lib_Xext_XShapeCombineMask=no 28907fi 28908rm -f core conftest.err conftest.$ac_objext \ 28909 conftest$ac_exeext conftest.$ac_ext 28910LIBS=$ac_check_lib_save_LIBS 28911fi 28912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 28913$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } 28914if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : 28915 XEXT_LIBS='-lXext' ; 28916$as_echo "#define HAVE_SHAPE 1" >>confdefs.h 28917 28918fi 28919 28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 28921$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } 28922if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : 28923 $as_echo_n "(cached) " >&6 28924else 28925 ac_check_lib_save_LIBS=$LIBS 28926LIBS="-lXt $LIBS" 28927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28928/* end confdefs.h. */ 28929 28930/* Override any GCC internal prototype to avoid an error. 28931 Use char because int might match the return type of a GCC 28932 builtin and then its argument prototype would still apply. */ 28933#ifdef __cplusplus 28934extern "C" 28935#endif 28936char XtSetEventDispatcher (); 28937int 28938main () 28939{ 28940return XtSetEventDispatcher (); 28941 ; 28942 return 0; 28943} 28944_ACEOF 28945if ac_fn_c_try_link "$LINENO"; then : 28946 ac_cv_lib_Xt_XtSetEventDispatcher=yes 28947else 28948 ac_cv_lib_Xt_XtSetEventDispatcher=no 28949fi 28950rm -f core conftest.err conftest.$ac_objext \ 28951 conftest$ac_exeext conftest.$ac_ext 28952LIBS=$ac_check_lib_save_LIBS 28953fi 28954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 28955$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } 28956if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : 28957 XT_LIBS='-lXt' 28958fi 28959 28960 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 28961fi 28962if test "$no_x" != 'yes'; then 28963 have_x='yes' 28964else 28965 have_x='no' 28966fi 28967 if test "$have_x" = 'yes'; then 28968 X11_DELEGATE_TRUE= 28969 X11_DELEGATE_FALSE='#' 28970else 28971 X11_DELEGATE_TRUE='#' 28972 X11_DELEGATE_FALSE= 28973fi 28974 28975 28976 28977 28978 28979# 28980# Check for ZLIB 28981# 28982 28983# Check whether --with-zlib was given. 28984if test "${with_zlib+set}" = set; then : 28985 withval=$with_zlib; with_zlib=$withval 28986else 28987 with_zlib='yes' 28988fi 28989 28990 28991if test "$with_zlib" != 'yes'; then 28992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 28993fi 28994 28995have_zlib='no' 28996ZLIB_CFLAGS="" 28997ZLIB_LIBS="" 28998ZLIB_PKG="" 28999if test "x$with_zlib" = "xyes"; then 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29001$as_echo "-------------------------------------------------------------" >&6; } 29002 29003pkg_failed=no 29004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 29005$as_echo_n "checking for ZLIB... " >&6; } 29006 29007if test -n "$ZLIB_CFLAGS"; then 29008 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 29009 elif test -n "$PKG_CONFIG"; then 29010 if test -n "$PKG_CONFIG" && \ 29011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 29012 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 29013 ac_status=$? 29014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29015 test $ac_status = 0; }; then 29016 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null` 29017 test "x$?" != "x0" && pkg_failed=yes 29018else 29019 pkg_failed=yes 29020fi 29021 else 29022 pkg_failed=untried 29023fi 29024if test -n "$ZLIB_LIBS"; then 29025 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 29026 elif test -n "$PKG_CONFIG"; then 29027 if test -n "$PKG_CONFIG" && \ 29028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 29029 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 29030 ac_status=$? 29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29032 test $ac_status = 0; }; then 29033 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null` 29034 test "x$?" != "x0" && pkg_failed=yes 29035else 29036 pkg_failed=yes 29037fi 29038 else 29039 pkg_failed=untried 29040fi 29041 29042 29043 29044if test $pkg_failed = yes; then 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29046$as_echo "no" >&6; } 29047 29048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29049 _pkg_short_errors_supported=yes 29050else 29051 _pkg_short_errors_supported=no 29052fi 29053 if test $_pkg_short_errors_supported = yes; then 29054 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 29055 else 29056 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 29057 fi 29058 # Put the nasty error message in config.log where it belongs 29059 echo "$ZLIB_PKG_ERRORS" >&5 29060 29061 have_zlib=no 29062elif test $pkg_failed = untried; then 29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29064$as_echo "no" >&6; } 29065 have_zlib=no 29066else 29067 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 29068 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29070$as_echo "yes" >&6; } 29071 have_zlib=yes 29072fi 29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29074$as_echo "" >&6; } 29075fi 29076 29077if test "$have_zlib" = 'yes'; then 29078 29079$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h 29080 29081 CFLAGS="$ZLIB_CFLAGS $CFLAGS" 29082fi 29083 29084 if test "$have_zlib" = 'yes'; then 29085 ZLIB_DELEGATE_TRUE= 29086 ZLIB_DELEGATE_FALSE='#' 29087else 29088 ZLIB_DELEGATE_TRUE='#' 29089 ZLIB_DELEGATE_FALSE= 29090fi 29091 29092 29093 29094 29095 29096# whether modules are built or not. 29097with_ltdl='yes' 29098have_ltdl='no' 29099LTDL_LIBS='' 29100if test "$build_modules" != 'no' ; then 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29102$as_echo "-------------------------------------------------------------" >&6; } 29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 29104$as_echo_n "checking for libltdl... " >&6; } 29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29106$as_echo "" >&6; } 29107 failed=0 29108 passed=0 29109 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 29110if test "x$ac_cv_header_ltdl_h" = xyes; then : 29111 passed=`expr $passed + 1` 29112else 29113 failed=`expr $failed + 1` 29114fi 29115 29116 29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 29118$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 29119if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 29120 $as_echo_n "(cached) " >&6 29121else 29122 ac_check_lib_save_LIBS=$LIBS 29123LIBS="-lltdl $LIBS" 29124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29125/* end confdefs.h. */ 29126 29127/* Override any GCC internal prototype to avoid an error. 29128 Use char because int might match the return type of a GCC 29129 builtin and then its argument prototype would still apply. */ 29130#ifdef __cplusplus 29131extern "C" 29132#endif 29133char lt_dlinit (); 29134int 29135main () 29136{ 29137return lt_dlinit (); 29138 ; 29139 return 0; 29140} 29141_ACEOF 29142if ac_fn_c_try_link "$LINENO"; then : 29143 ac_cv_lib_ltdl_lt_dlinit=yes 29144else 29145 ac_cv_lib_ltdl_lt_dlinit=no 29146fi 29147rm -f core conftest.err conftest.$ac_objext \ 29148 conftest$ac_exeext conftest.$ac_ext 29149LIBS=$ac_check_lib_save_LIBS 29150fi 29151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 29152$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 29153if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 29154 passed=`expr $passed + 1` 29155else 29156 failed=`expr $failed + 1` 29157fi 29158 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 29160$as_echo_n "checking if libltdl package is complete... " >&6; } 29161 if test $passed -gt 0 ; then 29162 if test $failed -gt 0 ; then 29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29164$as_echo "no -- some components failed test" >&6; } 29165 have_ltdl='no (failed tests)' 29166 else 29167 LTDL_LIBS='-lltdl' 29168 LIBS="$LTDL_LIBS $LIBS" 29169 29170$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h 29171 29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29173$as_echo "yes" >&6; } 29174 have_ltdl='yes' 29175 fi 29176 else 29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29178$as_echo "no" >&6; } 29179 fi 29180 if test "$have_ltdl" != 'yes' ; then 29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29183as_fn_error 1 "libltdl is required for modules build 29184See \`config.log' for more details" "$LINENO" 5; } 29185 fi 29186fi 29187 if test "$have_ltdl" != 'no'; then 29188 WITH_LTDL_TRUE= 29189 WITH_LTDL_FALSE='#' 29190else 29191 WITH_LTDL_TRUE='#' 29192 WITH_LTDL_FALSE= 29193fi 29194 29195 29196# 29197# If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 29198# 29199LIB_DL='' 29200if test "$enable_profiling" = 'yes'; then 29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 29202$as_echo_n "checking for dlopen in -ldl... " >&6; } 29203if ${ac_cv_lib_dl_dlopen+:} false; then : 29204 $as_echo_n "(cached) " >&6 29205else 29206 ac_check_lib_save_LIBS=$LIBS 29207LIBS="-ldl $LIBS" 29208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29209/* end confdefs.h. */ 29210 29211/* Override any GCC internal prototype to avoid an error. 29212 Use char because int might match the return type of a GCC 29213 builtin and then its argument prototype would still apply. */ 29214#ifdef __cplusplus 29215extern "C" 29216#endif 29217char dlopen (); 29218int 29219main () 29220{ 29221return dlopen (); 29222 ; 29223 return 0; 29224} 29225_ACEOF 29226if ac_fn_c_try_link "$LINENO"; then : 29227 ac_cv_lib_dl_dlopen=yes 29228else 29229 ac_cv_lib_dl_dlopen=no 29230fi 29231rm -f core conftest.err conftest.$ac_objext \ 29232 conftest$ac_exeext conftest.$ac_ext 29233LIBS=$ac_check_lib_save_LIBS 29234fi 29235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 29236$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 29237if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 29238 LIB_DL='-ldl' 29239fi 29240 29241 LIBS="$LIB_DL $LIBS" 29242fi 29243 29244 29245 29246# 29247# Set Apple font directory. 29248# 29249 29250# Check whether --with-apple-font-dir was given. 29251if test "${with_apple_font_dir+set}" = set; then : 29252 withval=$with_apple_font_dir; with_apple_font_dir=$withval 29253else 29254 with_apple_font_dir='default' 29255fi 29256 29257 29258if test "$with_apple_font_dir" != 'default'; then 29259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir " 29260fi 29261 29262 29263# 29264# Check for Autotrace delegate library. 29265# 29266 29267# Check whether --with-autotrace was given. 29268if test "${with_autotrace+set}" = set; then : 29269 withval=$with_autotrace; with_autotrace=$withval 29270else 29271 with_autotrace='no' 29272fi 29273 29274 29275if test "$with_autotrace" != 'yes'; then 29276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 29277fi 29278 29279have_autotrace='no' 29280AUTOTRACE_CFLAGS="" 29281AUTOTRACE_LIBS="" 29282AUTOTRACE_PKG="" 29283if test "x$with_autotrace" = "xyes"; then 29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29285$as_echo "-------------------------------------------------------------" >&6; } 29286 29287pkg_failed=no 29288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 29289$as_echo_n "checking for AUTOTRACE... " >&6; } 29290 29291if test -n "$AUTOTRACE_CFLAGS"; then 29292 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" 29293 elif test -n "$PKG_CONFIG"; then 29294 if test -n "$PKG_CONFIG" && \ 29295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 29296 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 29297 ac_status=$? 29298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29299 test $ac_status = 0; }; then 29300 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` 29301 test "x$?" != "x0" && pkg_failed=yes 29302else 29303 pkg_failed=yes 29304fi 29305 else 29306 pkg_failed=untried 29307fi 29308if test -n "$AUTOTRACE_LIBS"; then 29309 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" 29310 elif test -n "$PKG_CONFIG"; then 29311 if test -n "$PKG_CONFIG" && \ 29312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 29313 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 29314 ac_status=$? 29315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29316 test $ac_status = 0; }; then 29317 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` 29318 test "x$?" != "x0" && pkg_failed=yes 29319else 29320 pkg_failed=yes 29321fi 29322 else 29323 pkg_failed=untried 29324fi 29325 29326 29327 29328if test $pkg_failed = yes; then 29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29330$as_echo "no" >&6; } 29331 29332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29333 _pkg_short_errors_supported=yes 29334else 29335 _pkg_short_errors_supported=no 29336fi 29337 if test $_pkg_short_errors_supported = yes; then 29338 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 29339 else 29340 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 29341 fi 29342 # Put the nasty error message in config.log where it belongs 29343 echo "$AUTOTRACE_PKG_ERRORS" >&5 29344 29345 have_autotrace=no 29346elif test $pkg_failed = untried; then 29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29348$as_echo "no" >&6; } 29349 have_autotrace=no 29350else 29351 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS 29352 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS 29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29354$as_echo "yes" >&6; } 29355 have_autotrace=yes 29356fi 29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29358$as_echo "" >&6; } 29359fi 29360 29361if test "$have_autotrace" = 'yes'; then 29362 29363$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h 29364 29365 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS" 29366fi 29367 29368 if test "$have_autotrace" = 'yes'; then 29369 AUTOTRACE_DELEGATE_TRUE= 29370 AUTOTRACE_DELEGATE_FALSE='#' 29371else 29372 AUTOTRACE_DELEGATE_TRUE='#' 29373 AUTOTRACE_DELEGATE_FALSE= 29374fi 29375 29376 29377 29378 29379 29380# 29381# Check for Display Postscript delegate library. 29382# 29383 29384# Check whether --with-dps was given. 29385if test "${with_dps+set}" = set; then : 29386 withval=$with_dps; with_dps=$withval 29387else 29388 with_dps='yes' 29389fi 29390 29391 29392if test "$with_dps" != 'yes'; then 29393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 29394fi 29395 29396have_dps='no' 29397DPS_LIBS='' 29398if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29400$as_echo "-------------------------------------------------------------" >&6; } 29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 29402$as_echo_n "checking for DPS... " >&6; } 29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29404$as_echo "" >&6; } 29405 failed=0 29406 passed=0 29407 PERSIST_CPPFLAGS="$CPPFLAGS" 29408 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 29409 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" 29410if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : 29411 passed=`expr $passed + 1` 29412else 29413 failed=`expr $failed + 1` 29414fi 29415 29416 29417 # DPS issues: 29418 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 29419 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 29420 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 29421 # ImageMagick itself doesn't use -lXt. 29422 have_libdps='no' 29423 LIBDPS_XT='' 29424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 29425$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 29426if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 29427 $as_echo_n "(cached) " >&6 29428else 29429 ac_check_lib_save_LIBS=$LIBS 29430LIBS="-ldps $LIBS" 29431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29432/* end confdefs.h. */ 29433 29434/* Override any GCC internal prototype to avoid an error. 29435 Use char because int might match the return type of a GCC 29436 builtin and then its argument prototype would still apply. */ 29437#ifdef __cplusplus 29438extern "C" 29439#endif 29440char DPSInitialize (); 29441int 29442main () 29443{ 29444return DPSInitialize (); 29445 ; 29446 return 0; 29447} 29448_ACEOF 29449if ac_fn_c_try_link "$LINENO"; then : 29450 ac_cv_lib_dps_DPSInitialize=yes 29451else 29452 ac_cv_lib_dps_DPSInitialize=no 29453fi 29454rm -f core conftest.err conftest.$ac_objext \ 29455 conftest$ac_exeext conftest.$ac_ext 29456LIBS=$ac_check_lib_save_LIBS 29457fi 29458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 29459$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 29460if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 29461 have_libdps='yes' 29462else 29463 have_libdps='no' 29464fi 29465 29466 if test "$have_libdps" != 'yes'; then 29467 # Unset cache variable so we can try again. 29468 unset ac_cv_lib_dps_DPSInitialize 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 29470$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 29471if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 29472 $as_echo_n "(cached) " >&6 29473else 29474 ac_check_lib_save_LIBS=$LIBS 29475LIBS="-ldps -lXt $LIBS" 29476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29477/* end confdefs.h. */ 29478 29479/* Override any GCC internal prototype to avoid an error. 29480 Use char because int might match the return type of a GCC 29481 builtin and then its argument prototype would still apply. */ 29482#ifdef __cplusplus 29483extern "C" 29484#endif 29485char DPSInitialize (); 29486int 29487main () 29488{ 29489return DPSInitialize (); 29490 ; 29491 return 0; 29492} 29493_ACEOF 29494if ac_fn_c_try_link "$LINENO"; then : 29495 ac_cv_lib_dps_DPSInitialize=yes 29496else 29497 ac_cv_lib_dps_DPSInitialize=no 29498fi 29499rm -f core conftest.err conftest.$ac_objext \ 29500 conftest$ac_exeext conftest.$ac_ext 29501LIBS=$ac_check_lib_save_LIBS 29502fi 29503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 29504$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 29505if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 29506 have_libdps='yes' 29507else 29508 have_libdps='no' 29509fi 29510 29511 if test "$have_libdps" = 'yes'; then 29512 LIBDPS_XT='-lXt' 29513 fi 29514 fi 29515 if test "$have_libdps" = 'yes'; then 29516 passed=`expr $passed + 1` 29517 else 29518 failed=`expr $failed + 1` 29519 fi 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 29521$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } 29522if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : 29523 $as_echo_n "(cached) " >&6 29524else 29525 ac_check_lib_save_LIBS=$LIBS 29526LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" 29527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29528/* end confdefs.h. */ 29529 29530/* Override any GCC internal prototype to avoid an error. 29531 Use char because int might match the return type of a GCC 29532 builtin and then its argument prototype would still apply. */ 29533#ifdef __cplusplus 29534extern "C" 29535#endif 29536char XDPSPixelsPerPoint (); 29537int 29538main () 29539{ 29540return XDPSPixelsPerPoint (); 29541 ; 29542 return 0; 29543} 29544_ACEOF 29545if ac_fn_c_try_link "$LINENO"; then : 29546 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes 29547else 29548 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no 29549fi 29550rm -f core conftest.err conftest.$ac_objext \ 29551 conftest$ac_exeext conftest.$ac_ext 29552LIBS=$ac_check_lib_save_LIBS 29553fi 29554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 29555$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } 29556if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : 29557 passed=`expr $passed + 1` 29558else 29559 failed=`expr $failed + 1` 29560fi 29561 29562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 29563$as_echo_n "checking if DPS package is complete... " >&6; } 29564 if test $passed -gt 0; then 29565 if test $failed -gt 0; then 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29567$as_echo "no -- some components failed test" >&6; } 29568 have_dps='no (failed tests)' 29569 CPPFLAGS="$PERSIST_CPPFLAGS" 29570 else 29571 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 29572 LIBS="$DPS_LIBS $LIBS" 29573 29574$as_echo "#define DPS_DELEGATE 1" >>confdefs.h 29575 29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29577$as_echo "yes" >&6; } 29578 have_dps='yes' 29579 fi 29580 else 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29582$as_echo "no" >&6; } 29583 CPPFLAGS=$PERSIST_CPPFLAGS 29584 fi 29585fi 29586 if test "$have_dps" = 'yes'; then 29587 DPS_DELEGATE_TRUE= 29588 DPS_DELEGATE_FALSE='#' 29589else 29590 DPS_DELEGATE_TRUE='#' 29591 DPS_DELEGATE_FALSE= 29592fi 29593 29594 29595 29596 29597# 29598# Set DejaVu font directory. 29599# 29600 29601# Check whether --with-dejavu-font-dir was given. 29602if test "${with_dejavu_font_dir+set}" = set; then : 29603 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval 29604else 29605 with_dejavu_font_dir='default' 29606fi 29607 29608 29609if test "$with_dejavu_font_dir" != 'default'; then 29610 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 29611fi 29612 29613 29614# 29615# Check for FFTW delegate library. 29616# 29617 29618# Check whether --with-fftw was given. 29619if test "${with_fftw+set}" = set; then : 29620 withval=$with_fftw; with_fftw=$withval 29621else 29622 with_fftw='yes' 29623fi 29624 29625 29626if test "$with_fftw" != 'yes'; then 29627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 29628fi 29629 29630have_fftw='no' 29631FFTW_CFLAGS="" 29632FFTW_LIBS="" 29633FFTW_PKG="" 29634if test "x$with_fftw" = "xyes"; then 29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29636$as_echo "-------------------------------------------------------------" >&6; } 29637 29638pkg_failed=no 29639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5 29640$as_echo_n "checking for fftw3... " >&6; } 29641 29642if test -n "$fftw3_CFLAGS"; then 29643 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS" 29644 elif test -n "$PKG_CONFIG"; then 29645 if test -n "$PKG_CONFIG" && \ 29646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 29647 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 29648 ac_status=$? 29649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29650 test $ac_status = 0; }; then 29651 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null` 29652 test "x$?" != "x0" && pkg_failed=yes 29653else 29654 pkg_failed=yes 29655fi 29656 else 29657 pkg_failed=untried 29658fi 29659if test -n "$fftw3_LIBS"; then 29660 pkg_cv_fftw3_LIBS="$fftw3_LIBS" 29661 elif test -n "$PKG_CONFIG"; then 29662 if test -n "$PKG_CONFIG" && \ 29663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 29664 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 29665 ac_status=$? 29666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29667 test $ac_status = 0; }; then 29668 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null` 29669 test "x$?" != "x0" && pkg_failed=yes 29670else 29671 pkg_failed=yes 29672fi 29673 else 29674 pkg_failed=untried 29675fi 29676 29677 29678 29679if test $pkg_failed = yes; then 29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29681$as_echo "no" >&6; } 29682 29683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29684 _pkg_short_errors_supported=yes 29685else 29686 _pkg_short_errors_supported=no 29687fi 29688 if test $_pkg_short_errors_supported = yes; then 29689 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 29690 else 29691 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 29692 fi 29693 # Put the nasty error message in config.log where it belongs 29694 echo "$fftw3_PKG_ERRORS" >&5 29695 29696 have_fftw=no 29697elif test $pkg_failed = untried; then 29698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29699$as_echo "no" >&6; } 29700 have_fftw=no 29701else 29702 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS 29703 fftw3_LIBS=$pkg_cv_fftw3_LIBS 29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29705$as_echo "yes" >&6; } 29706 have_fftw=yes 29707fi 29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29709$as_echo "" >&6; } 29710fi 29711 29712if test "$have_fftw" = 'yes'; then 29713 29714$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h 29715 29716 FFTW_CFLAGS="$fftw3_CFLAGS" 29717 FFTW_LIBS="$fftw3_LIBS" 29718 CFLAGS="$fftw3_CFLAGS $CFLAGS" 29719fi 29720 29721 if test "$have_fftw" = 'yes'; then 29722 FFTW_DELEGATE_TRUE= 29723 FFTW_DELEGATE_FALSE='#' 29724else 29725 FFTW_DELEGATE_TRUE='#' 29726 FFTW_DELEGATE_FALSE= 29727fi 29728 29729 29730 29731 29732 29733# 29734# Check for FlashPIX delegate library. 29735# 29736 29737# Check whether --with-fpx was given. 29738if test "${with_fpx+set}" = set; then : 29739 withval=$with_fpx; with_fpx=$withval 29740else 29741 with_fpx='yes' 29742fi 29743 29744 29745if test "$with_fpx" != 'yes'; then 29746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 29747fi 29748 29749have_fpx='no' 29750FPX_LIBS='' 29751if test "$with_fpx" != 'no'; then 29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29753$as_echo "-------------------------------------------------------------" >&6; } 29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 29755$as_echo_n "checking for FlashPIX... " >&6; } 29756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29757$as_echo "" >&6; } 29758 failed=0 29759 passed=0 29760 ac_ext=cpp 29761ac_cpp='$CXXCPP $CPPFLAGS' 29762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29765 29766 29767ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" 29768if test "x$ac_cv_header_fpxlib_h" = xyes; then : 29769 passed=`expr $passed + 1` 29770else 29771 failed=`expr $failed + 1` 29772fi 29773 29774 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 29776$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } 29777if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : 29778 $as_echo_n "(cached) " >&6 29779else 29780 ac_check_lib_save_LIBS=$LIBS 29781LIBS="-lfpx $LIBS" 29782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29783/* end confdefs.h. */ 29784 29785/* Override any GCC internal prototype to avoid an error. 29786 Use char because int might match the return type of a GCC 29787 builtin and then its argument prototype would still apply. */ 29788#ifdef __cplusplus 29789extern "C" 29790#endif 29791char FPX_OpenImageByFilename (); 29792int 29793main () 29794{ 29795return FPX_OpenImageByFilename (); 29796 ; 29797 return 0; 29798} 29799_ACEOF 29800if ac_fn_cxx_try_link "$LINENO"; then : 29801 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes 29802else 29803 ac_cv_lib_fpx_FPX_OpenImageByFilename=no 29804fi 29805rm -f core conftest.err conftest.$ac_objext \ 29806 conftest$ac_exeext conftest.$ac_ext 29807LIBS=$ac_check_lib_save_LIBS 29808fi 29809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 29810$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } 29811if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : 29812 passed=`expr $passed + 1` 29813else 29814 failed=`expr $failed + 1` 29815fi 29816 29817 ac_ext=c 29818ac_cpp='$CPP $CPPFLAGS' 29819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29821ac_compiler_gnu=$ac_cv_c_compiler_gnu 29822 29823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 29824$as_echo_n "checking if FlashPIX package is complete... " >&6; } 29825 if test $passed -gt 0; then 29826 if test $failed -gt 0; then 29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29828$as_echo "no -- some components failed test" >&6; } 29829 have_fpx='no (failed tests)' 29830 else 29831 FPX_LIBS='-lfpx' 29832 29833$as_echo "#define FPX_DELEGATE 1" >>confdefs.h 29834 29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29836$as_echo "yes" >&6; } 29837 have_fpx='yes' 29838 PERLMAINCC="$CXX" 29839 fi 29840 else 29841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29842$as_echo "no" >&6; } 29843 fi 29844fi 29845 if test "$have_fpx" = 'yes'; then 29846 FPX_DELEGATE_TRUE= 29847 FPX_DELEGATE_FALSE='#' 29848else 29849 FPX_DELEGATE_TRUE='#' 29850 FPX_DELEGATE_FALSE= 29851fi 29852 29853 29854 29855 29856# 29857# Check for DJVU delegate library. 29858# 29859 29860# Check whether --with-djvu was given. 29861if test "${with_djvu+set}" = set; then : 29862 withval=$with_djvu; with_djvu=$withval 29863else 29864 with_djvu='yes' 29865fi 29866 29867 29868if test "$with_djvu" != 'yes'; then 29869 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 29870fi 29871 29872have_djvu='no' 29873DJVU_CFLAGS="" 29874DJVU_LIBS="" 29875DJVU_PKG="" 29876if test "x$with_djvu" = "xyes"; then 29877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29878$as_echo "-------------------------------------------------------------" >&6; } 29879 29880pkg_failed=no 29881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5 29882$as_echo_n "checking for ddjvuapi... " >&6; } 29883 29884if test -n "$ddjvuapi_CFLAGS"; then 29885 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS" 29886 elif test -n "$PKG_CONFIG"; then 29887 if test -n "$PKG_CONFIG" && \ 29888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 29889 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 29890 ac_status=$? 29891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29892 test $ac_status = 0; }; then 29893 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null` 29894 test "x$?" != "x0" && pkg_failed=yes 29895else 29896 pkg_failed=yes 29897fi 29898 else 29899 pkg_failed=untried 29900fi 29901if test -n "$ddjvuapi_LIBS"; then 29902 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS" 29903 elif test -n "$PKG_CONFIG"; then 29904 if test -n "$PKG_CONFIG" && \ 29905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 29906 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 29907 ac_status=$? 29908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29909 test $ac_status = 0; }; then 29910 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null` 29911 test "x$?" != "x0" && pkg_failed=yes 29912else 29913 pkg_failed=yes 29914fi 29915 else 29916 pkg_failed=untried 29917fi 29918 29919 29920 29921if test $pkg_failed = yes; then 29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29923$as_echo "no" >&6; } 29924 29925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29926 _pkg_short_errors_supported=yes 29927else 29928 _pkg_short_errors_supported=no 29929fi 29930 if test $_pkg_short_errors_supported = yes; then 29931 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 29932 else 29933 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 29934 fi 29935 # Put the nasty error message in config.log where it belongs 29936 echo "$ddjvuapi_PKG_ERRORS" >&5 29937 29938 have_djvu=no 29939elif test $pkg_failed = untried; then 29940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29941$as_echo "no" >&6; } 29942 have_djvu=no 29943else 29944 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS 29945 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS 29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29947$as_echo "yes" >&6; } 29948 have_djvu=yes 29949fi 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29951$as_echo "" >&6; } 29952fi 29953 29954if test "$have_djvu" = 'yes'; then 29955 29956$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h 29957 29958 DJVU_CFLAGS="$ddjvuapi_CFLAGS" 29959 DJVU_LIBS="$ddjvuapi_LIBS" 29960 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS" 29961fi 29962 29963 if test "$have_djvu" = 'yes'; then 29964 DJVU_DELEGATE_TRUE= 29965 DJVU_DELEGATE_FALSE='#' 29966else 29967 DJVU_DELEGATE_TRUE='#' 29968 DJVU_DELEGATE_FALSE= 29969fi 29970 29971 29972 29973 29974 29975# 29976# Check for fontconfig delegate library. 29977# 29978 29979# Check whether --with-fontconfig was given. 29980if test "${with_fontconfig+set}" = set; then : 29981 withval=$with_fontconfig; with_fontconfig=$withval 29982else 29983 with_fontconfig='yes' 29984fi 29985 29986 29987if test "$with_fontconfig" != 'yes'; then 29988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 29989fi 29990 29991have_fontconfig='no' 29992FONTCONFIG_CFLAGS="" 29993FONTCONFIG_LIBS="" 29994FONTCONFIG_PKG="" 29995if test "x$with_fontconfig" = "xyes"; then 29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29997$as_echo "-------------------------------------------------------------" >&6; } 29998 29999pkg_failed=no 30000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 30001$as_echo_n "checking for FONTCONFIG... " >&6; } 30002 30003if test -n "$FONTCONFIG_CFLAGS"; then 30004 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 30005 elif test -n "$PKG_CONFIG"; then 30006 if test -n "$PKG_CONFIG" && \ 30007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 30008 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 30009 ac_status=$? 30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30011 test $ac_status = 0; }; then 30012 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` 30013 test "x$?" != "x0" && pkg_failed=yes 30014else 30015 pkg_failed=yes 30016fi 30017 else 30018 pkg_failed=untried 30019fi 30020if test -n "$FONTCONFIG_LIBS"; then 30021 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 30022 elif test -n "$PKG_CONFIG"; then 30023 if test -n "$PKG_CONFIG" && \ 30024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 30025 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 30026 ac_status=$? 30027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30028 test $ac_status = 0; }; then 30029 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` 30030 test "x$?" != "x0" && pkg_failed=yes 30031else 30032 pkg_failed=yes 30033fi 30034 else 30035 pkg_failed=untried 30036fi 30037 30038 30039 30040if test $pkg_failed = yes; then 30041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30042$as_echo "no" >&6; } 30043 30044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30045 _pkg_short_errors_supported=yes 30046else 30047 _pkg_short_errors_supported=no 30048fi 30049 if test $_pkg_short_errors_supported = yes; then 30050 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 30051 else 30052 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 30053 fi 30054 # Put the nasty error message in config.log where it belongs 30055 echo "$FONTCONFIG_PKG_ERRORS" >&5 30056 30057 have_fontconfig=no 30058elif test $pkg_failed = untried; then 30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30060$as_echo "no" >&6; } 30061 have_fontconfig=no 30062else 30063 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 30064 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30066$as_echo "yes" >&6; } 30067 have_fontconfig=yes 30068fi 30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30070$as_echo "" >&6; } 30071fi 30072 30073if test "$have_fontconfig" = 'yes'; then 30074 30075$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h 30076 30077 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS" 30078fi 30079 30080 if test "$have_fontconfig" = 'yes'; then 30081 FONTCONFIG_DELEGATE_TRUE= 30082 FONTCONFIG_DELEGATE_FALSE='#' 30083else 30084 FONTCONFIG_DELEGATE_TRUE='#' 30085 FONTCONFIG_DELEGATE_FALSE= 30086fi 30087 30088 30089 30090 30091 30092# 30093# Check for the Freetype delegate library. 30094# 30095 30096# Check whether --with-freetype was given. 30097if test "${with_freetype+set}" = set; then : 30098 withval=$with_freetype; with_freetype=$withval 30099else 30100 with_freetype='yes' 30101fi 30102 30103 30104if test "$with_freetype" != 'yes'; then 30105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 30106fi 30107 30108have_freetype='no' 30109FREETYPE_CFLAGS="" 30110FREETYPE_LIBS="" 30111FREETYPE_PKG="" 30112if test "x$with_freetype" = "xyes"; then 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30114$as_echo "-------------------------------------------------------------" >&6; } 30115 30116pkg_failed=no 30117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 30118$as_echo_n "checking for FREETYPE... " >&6; } 30119 30120if test -n "$FREETYPE_CFLAGS"; then 30121 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 30122 elif test -n "$PKG_CONFIG"; then 30123 if test -n "$PKG_CONFIG" && \ 30124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 30125 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 30126 ac_status=$? 30127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30128 test $ac_status = 0; }; then 30129 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 30130 test "x$?" != "x0" && pkg_failed=yes 30131else 30132 pkg_failed=yes 30133fi 30134 else 30135 pkg_failed=untried 30136fi 30137if test -n "$FREETYPE_LIBS"; then 30138 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 30139 elif test -n "$PKG_CONFIG"; then 30140 if test -n "$PKG_CONFIG" && \ 30141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 30142 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 30143 ac_status=$? 30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30145 test $ac_status = 0; }; then 30146 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 30147 test "x$?" != "x0" && pkg_failed=yes 30148else 30149 pkg_failed=yes 30150fi 30151 else 30152 pkg_failed=untried 30153fi 30154 30155 30156 30157if test $pkg_failed = yes; then 30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30159$as_echo "no" >&6; } 30160 30161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30162 _pkg_short_errors_supported=yes 30163else 30164 _pkg_short_errors_supported=no 30165fi 30166 if test $_pkg_short_errors_supported = yes; then 30167 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 30168 else 30169 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 30170 fi 30171 # Put the nasty error message in config.log where it belongs 30172 echo "$FREETYPE_PKG_ERRORS" >&5 30173 30174 have_freetype=no 30175elif test $pkg_failed = untried; then 30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30177$as_echo "no" >&6; } 30178 have_freetype=no 30179else 30180 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 30181 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30183$as_echo "yes" >&6; } 30184 have_freetype=yes 30185fi 30186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30187$as_echo "" >&6; } 30188fi 30189 30190if test "$have_freetype" = 'yes'; then 30191 30192$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h 30193 30194 CFLAGS="$FREETYPE_CFLAGS $CFLAGS" 30195fi 30196 30197 if test "$have_freetype" = 'yes'; then 30198 FREETYPE_DELEGATE_TRUE= 30199 FREETYPE_DELEGATE_FALSE='#' 30200else 30201 FREETYPE_DELEGATE_TRUE='#' 30202 FREETYPE_DELEGATE_FALSE= 30203fi 30204 30205 30206 30207 30208 30209# 30210# Check for Ghostscript library or framework. 30211# 30212# Test for iapi.h & test for gsapi_new_instance in -lgs 30213# or -framework Ghostscript 30214 30215 30216# Check whether --with-gslib was given. 30217if test "${with_gslib+set}" = set; then : 30218 withval=$with_gslib; with_gslib=$withval 30219else 30220 with_gslib='no' 30221fi 30222 30223 30224gslib_framework='no' 30225if test "$with_gslib" != 'yes'; then 30226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 30227fi 30228 30229have_gslib='no' 30230GS_LIBS='' 30231if test "$with_gslib" != 'no'; then 30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30233$as_echo "-------------------------------------------------------------" >&6; } 30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 30235$as_echo_n "checking for Ghostscript... " >&6; } 30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30237$as_echo "" >&6; } 30238 framework=0 30239 failed=0 30240 passed=0 30241 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" 30242if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : 30243 passed=`expr $passed + 1` 30244else 30245 failed=`expr $failed + 1` 30246fi 30247 30248 30249 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" 30250if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : 30251 passed=`expr $passed + 1` 30252else 30253 failed=`expr $failed + 1` 30254fi 30255 30256 30257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 30258$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } 30259if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : 30260 $as_echo_n "(cached) " >&6 30261else 30262 ac_check_framework_save_LIBS=$LIBS 30263LIBS="-framework Ghostscript $LIBS" 30264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30265/* end confdefs.h. */ 30266 30267/* Override any GCC internal prototype to avoid an error. 30268 Use char because int might match the return type of a GCC 30269 builtin and then its argument prototype would still apply. */ 30270#ifdef __cplusplus 30271extern "C" 30272#endif 30273char gsapi_new_instance (); 30274int 30275main () 30276{ 30277return gsapi_new_instance (); 30278 ; 30279 return 0; 30280} 30281_ACEOF 30282if ac_fn_c_try_link "$LINENO"; then : 30283 ac_cv_framework_Ghostscript_gsapi_new_instance=yes 30284else 30285 ac_cv_framework_Ghostscript_gsapi_new_instance=no 30286fi 30287rm -f core conftest.err conftest.$ac_objext \ 30288 conftest$ac_exeext conftest.$ac_ext 30289LIBS=$ac_check_framework_save_LIBS 30290fi 30291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 30292$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } 30293if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : 30294 framework=`expr $framework + 1` 30295else 30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 30297$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } 30298if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : 30299 $as_echo_n "(cached) " >&6 30300else 30301 ac_check_lib_save_LIBS=$LIBS 30302LIBS="-lgs $LIBS" 30303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30304/* end confdefs.h. */ 30305 30306/* Override any GCC internal prototype to avoid an error. 30307 Use char because int might match the return type of a GCC 30308 builtin and then its argument prototype would still apply. */ 30309#ifdef __cplusplus 30310extern "C" 30311#endif 30312char gsapi_new_instance (); 30313int 30314main () 30315{ 30316return gsapi_new_instance (); 30317 ; 30318 return 0; 30319} 30320_ACEOF 30321if ac_fn_c_try_link "$LINENO"; then : 30322 ac_cv_lib_gs_gsapi_new_instance=yes 30323else 30324 ac_cv_lib_gs_gsapi_new_instance=no 30325fi 30326rm -f core conftest.err conftest.$ac_objext \ 30327 conftest$ac_exeext conftest.$ac_ext 30328LIBS=$ac_check_lib_save_LIBS 30329fi 30330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 30331$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } 30332if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : 30333 passed=`expr $passed + 1` 30334else 30335 failed=`expr $failed + 1` 30336fi 30337 30338fi 30339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 30340$as_echo_n "checking if Ghostscript package is complete... " >&6; } 30341 if test $passed -gt 0; then 30342 if test $failed -gt 0; then 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30344$as_echo "no -- some components failed test" >&6; } 30345 have_gslib='no (failed tests)' 30346 else 30347 if test $framework -gt 0; then 30348 GS_LIBS='-framework Ghostscript' 30349 gslib_framework='yes' 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 30351$as_echo "yes, using framework." >&6; } 30352 else 30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 30354$as_echo "yes, using library." >&6; } 30355 GS_LIBS='-lgs' 30356 fi 30357 LIBS="$GS_LIBS $LIBS" 30358 30359$as_echo "#define GS_DELEGATE 1" >>confdefs.h 30360 30361 have_gslib='yes' 30362 fi 30363 else 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30365$as_echo "no" >&6; } 30366 fi 30367fi 30368 if test "$have_gslib" = 'yes'; then 30369 GS_DELEGATE_TRUE= 30370 GS_DELEGATE_FALSE='#' 30371else 30372 GS_DELEGATE_TRUE='#' 30373 GS_DELEGATE_FALSE= 30374fi 30375 30376 30377 30378# Set default font search path 30379 30380# Check whether --with-fontpath was given. 30381if test "${with_fontpath+set}" = set; then : 30382 withval=$with_fontpath; with_fontpath=$withval 30383else 30384 with_fontpath='' 30385fi 30386 30387 30388if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 30389 with_fontpath='' 30390else 30391 30392cat >>confdefs.h <<_ACEOF 30393#define MAGICK_FONT_PATH "$with_fontpath" 30394_ACEOF 30395 30396fi 30397if test "$with_fontpath=" != ''; then 30398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 30399fi 30400 30401# Set Ghostscript font directory 30402 30403# Check whether --with-gs-font-dir was given. 30404if test "${with_gs_font_dir+set}" = set; then : 30405 withval=$with_gs_font_dir; with_gs_font_dir=$withval 30406else 30407 with_gs_font_dir='default' 30408fi 30409 30410 30411if test "$with_gs_font_dir" != 'default'; then 30412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 30413fi 30414 30415 30416# 30417# Check for GVC delegate library. 30418# 30419 30420# Check whether --with-gvc was given. 30421if test "${with_gvc+set}" = set; then : 30422 withval=$with_gvc; with_gvc=$withval 30423else 30424 with_gvc='yes' 30425fi 30426 30427 30428if test "$with_gvc" != 'yes'; then 30429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 30430fi 30431 30432GVC_PKG="" 30433if test "x$with_gvc" = "xyes"; then 30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30435$as_echo "-------------------------------------------------------------" >&6; } 30436 30437pkg_failed=no 30438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 30439$as_echo_n "checking for GVC... " >&6; } 30440 30441if test -n "$GVC_CFLAGS"; then 30442 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" 30443 elif test -n "$PKG_CONFIG"; then 30444 if test -n "$PKG_CONFIG" && \ 30445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 30446 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 30447 ac_status=$? 30448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30449 test $ac_status = 0; }; then 30450 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` 30451 test "x$?" != "x0" && pkg_failed=yes 30452else 30453 pkg_failed=yes 30454fi 30455 else 30456 pkg_failed=untried 30457fi 30458if test -n "$GVC_LIBS"; then 30459 pkg_cv_GVC_LIBS="$GVC_LIBS" 30460 elif test -n "$PKG_CONFIG"; then 30461 if test -n "$PKG_CONFIG" && \ 30462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 30463 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 30464 ac_status=$? 30465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30466 test $ac_status = 0; }; then 30467 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` 30468 test "x$?" != "x0" && pkg_failed=yes 30469else 30470 pkg_failed=yes 30471fi 30472 else 30473 pkg_failed=untried 30474fi 30475 30476 30477 30478if test $pkg_failed = yes; then 30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30480$as_echo "no" >&6; } 30481 30482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30483 _pkg_short_errors_supported=yes 30484else 30485 _pkg_short_errors_supported=no 30486fi 30487 if test $_pkg_short_errors_supported = yes; then 30488 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 30489 else 30490 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 30491 fi 30492 # Put the nasty error message in config.log where it belongs 30493 echo "$GVC_PKG_ERRORS" >&5 30494 30495 have_gvc=no 30496elif test $pkg_failed = untried; then 30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30498$as_echo "no" >&6; } 30499 have_gvc=no 30500else 30501 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS 30502 GVC_LIBS=$pkg_cv_GVC_LIBS 30503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30504$as_echo "yes" >&6; } 30505 have_gvc=yes 30506fi 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30508$as_echo "" >&6; } 30509fi 30510 30511if test "$have_gvc" = 'yes'; then 30512 30513$as_echo "#define GVC_DELEGATE 1" >>confdefs.h 30514 30515 CFLAGS="$GVC_CFLAGS $CFLAGS" 30516fi 30517 30518 if test "$have_gvc" = 'yes'; then 30519 GVC_DELEGATE_TRUE= 30520 GVC_DELEGATE_FALSE='#' 30521else 30522 GVC_DELEGATE_TRUE='#' 30523 GVC_DELEGATE_FALSE= 30524fi 30525 30526 30527 30528 30529 30530# 30531# Check for JBIG delegate library. 30532# 30533 30534 30535# Check whether --with-jbig was given. 30536if test "${with_jbig+set}" = set; then : 30537 withval=$with_jbig; with_jbig=$withval 30538else 30539 with_jbig='yes' 30540fi 30541 30542 30543have_jbig='no' 30544JBIG_LIBS='' 30545if test "$with_jbig" != 'no'; then 30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30547$as_echo "-------------------------------------------------------------" >&6; } 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 30549$as_echo_n "checking for JBIG... " >&6; } 30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30551$as_echo "" >&6; } 30552 failed=0 30553 passed=0 30554 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 30555if test "x$ac_cv_header_jbig_h" = xyes; then : 30556 passed=`expr $passed + 1` 30557else 30558 failed=`expr $failed + 1` 30559fi 30560 30561 30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 30563$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 30564if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 30565 $as_echo_n "(cached) " >&6 30566else 30567 ac_check_lib_save_LIBS=$LIBS 30568LIBS="-ljbig $LIBS" 30569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30570/* end confdefs.h. */ 30571 30572/* Override any GCC internal prototype to avoid an error. 30573 Use char because int might match the return type of a GCC 30574 builtin and then its argument prototype would still apply. */ 30575#ifdef __cplusplus 30576extern "C" 30577#endif 30578char jbg_dec_init (); 30579int 30580main () 30581{ 30582return jbg_dec_init (); 30583 ; 30584 return 0; 30585} 30586_ACEOF 30587if ac_fn_c_try_link "$LINENO"; then : 30588 ac_cv_lib_jbig_jbg_dec_init=yes 30589else 30590 ac_cv_lib_jbig_jbg_dec_init=no 30591fi 30592rm -f core conftest.err conftest.$ac_objext \ 30593 conftest$ac_exeext conftest.$ac_ext 30594LIBS=$ac_check_lib_save_LIBS 30595fi 30596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 30597$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 30598if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 30599 passed=`expr $passed + 1` 30600else 30601 failed=`expr $failed + 1` 30602fi 30603 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 30605$as_echo_n "checking if JBIG package is complete... " >&6; } 30606 if test $passed -gt 0; then 30607 if test $failed -gt 0; then 30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30609$as_echo "no -- some components failed test" >&6; } 30610 have_jbig='no (failed tests)' 30611 else 30612 JBIG_LIBS='-ljbig' 30613 LIBS="$JBIG_LIBS $LIBS" 30614 30615$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h 30616 30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30618$as_echo "yes" >&6; } 30619 have_jbig='yes' 30620 fi 30621 else 30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30623$as_echo "no" >&6; } 30624 fi 30625fi 30626 if test "$have_jbig" = 'yes'; then 30627 JBIG_DELEGATE_TRUE= 30628 JBIG_DELEGATE_FALSE='#' 30629else 30630 JBIG_DELEGATE_TRUE='#' 30631 JBIG_DELEGATE_FALSE= 30632fi 30633 30634 30635 30636 30637# 30638# Check for JPEG delegate library. 30639# 30640 30641# Check whether --with-jpeg was given. 30642if test "${with_jpeg+set}" = set; then : 30643 withval=$with_jpeg; with_jpeg=$withval 30644else 30645 with_jpeg='yes' 30646fi 30647 30648 30649if test "$with_jpeg" != 'yes'; then 30650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 30651fi 30652 30653have_jpeg='no' 30654JPEG_LIBS='' 30655if test "$with_jpeg" != 'no'; then 30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30657$as_echo "-------------------------------------------------------------" >&6; } 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 30659$as_echo_n "checking for JPEG... " >&6; } 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30661$as_echo "" >&6; } 30662 failed=0 30663 passed=0 30664 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 30665if test "x$ac_cv_header_jconfig_h" = xyes; then : 30666 passed=`expr $passed + 1` 30667else 30668 failed=`expr $failed + 1` 30669fi 30670 30671 30672 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 30673if test "x$ac_cv_header_jerror_h" = xyes; then : 30674 passed=`expr $passed + 1` 30675else 30676 failed=`expr $failed + 1` 30677fi 30678 30679 30680 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" 30681if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 30682 passed=`expr $passed + 1` 30683else 30684 failed=`expr $failed + 1` 30685fi 30686 30687 30688 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 30689if test "x$ac_cv_header_jpeglib_h" = xyes; then : 30690 passed=`expr $passed + 1` 30691else 30692 failed=`expr $failed + 1` 30693fi 30694 30695 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 30697$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 30698if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 30699 $as_echo_n "(cached) " >&6 30700else 30701 ac_check_lib_save_LIBS=$LIBS 30702LIBS="-ljpeg $LIBS" 30703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30704/* end confdefs.h. */ 30705 30706/* Override any GCC internal prototype to avoid an error. 30707 Use char because int might match the return type of a GCC 30708 builtin and then its argument prototype would still apply. */ 30709#ifdef __cplusplus 30710extern "C" 30711#endif 30712char jpeg_read_header (); 30713int 30714main () 30715{ 30716return jpeg_read_header (); 30717 ; 30718 return 0; 30719} 30720_ACEOF 30721if ac_fn_c_try_link "$LINENO"; then : 30722 ac_cv_lib_jpeg_jpeg_read_header=yes 30723else 30724 ac_cv_lib_jpeg_jpeg_read_header=no 30725fi 30726rm -f core conftest.err conftest.$ac_objext \ 30727 conftest$ac_exeext conftest.$ac_ext 30728LIBS=$ac_check_lib_save_LIBS 30729fi 30730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 30731$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 30732if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 30733 passed=`expr $passed + 1` 30734else 30735 failed=`expr $failed + 1` 30736fi 30737 30738 30739# Test for compatible JPEG library 30740if test "$ac_cv_jpeg_version_ok" != 'yes'; then 30741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 30742$as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 30743if ${ac_cv_jpeg_version_ok+:} false; then : 30744 $as_echo_n "(cached) " >&6 30745else 30746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30747/* end confdefs.h. */ 30748#include <stdio.h> 30749#include <stdlib.h> 30750#include <jpeglib.h> 30751 30752int 30753main () 30754{ 30755 30756#if JPEG_LIB_VERSION < 62 30757#error IJG JPEG library must be version 6b or newer! 30758#endif 30759return 0; 30760 30761 ; 30762 return 0; 30763} 30764_ACEOF 30765if ac_fn_c_try_compile "$LINENO"; then : 30766 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` 30767else 30768 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` 30769fi 30770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30771fi 30772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 30773$as_echo "$ac_cv_jpeg_version_ok" >&6; } 30774fi 30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 30776$as_echo_n "checking if JPEG package is complete... " >&6; } 30777 if test $passed -gt 0; then 30778 if test $failed -gt 0; then 30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30780$as_echo "no -- some components failed test" >&6; } 30781 have_jpeg='no (failed tests)' 30782 else 30783 JPEG_LIBS='-ljpeg' 30784 LIBS="$JPEG_LIBS $LIBS" 30785 30786$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h 30787 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30789$as_echo "yes" >&6; } 30790 have_jpeg='yes' 30791 fi 30792 else 30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30794$as_echo "no" >&6; } 30795 fi 30796fi 30797 if test "$have_jpeg" = 'yes'; then 30798 JPEG_DELEGATE_TRUE= 30799 JPEG_DELEGATE_FALSE='#' 30800else 30801 JPEG_DELEGATE_TRUE='#' 30802 JPEG_DELEGATE_FALSE= 30803fi 30804 30805 30806 30807 30808# 30809# Check for LCMS delegate library. 30810# 30811 30812# Check whether --with-lcms was given. 30813if test "${with_lcms+set}" = set; then : 30814 withval=$with_lcms; with_lcms=$withval 30815else 30816 with_lcms='yes' 30817fi 30818 30819if test "$with_lcms" != 'yes' ; then 30820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 30821fi 30822 30823have_lcms='no' 30824LCMS_CFLAGS="" 30825LCMS_LIBS="" 30826LCMS_PKG="" 30827if test "x$with_lcms" = "xyes"; then 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30829$as_echo "-------------------------------------------------------------" >&6; } 30830 30831pkg_failed=no 30832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5 30833$as_echo_n "checking for LCMS2... " >&6; } 30834 30835if test -n "$LCMS2_CFLAGS"; then 30836 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS" 30837 elif test -n "$PKG_CONFIG"; then 30838 if test -n "$PKG_CONFIG" && \ 30839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 30840 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 30841 ac_status=$? 30842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30843 test $ac_status = 0; }; then 30844 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null` 30845 test "x$?" != "x0" && pkg_failed=yes 30846else 30847 pkg_failed=yes 30848fi 30849 else 30850 pkg_failed=untried 30851fi 30852if test -n "$LCMS2_LIBS"; then 30853 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS" 30854 elif test -n "$PKG_CONFIG"; then 30855 if test -n "$PKG_CONFIG" && \ 30856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 30857 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 30858 ac_status=$? 30859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30860 test $ac_status = 0; }; then 30861 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null` 30862 test "x$?" != "x0" && pkg_failed=yes 30863else 30864 pkg_failed=yes 30865fi 30866 else 30867 pkg_failed=untried 30868fi 30869 30870 30871 30872if test $pkg_failed = yes; then 30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30874$as_echo "no" >&6; } 30875 30876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30877 _pkg_short_errors_supported=yes 30878else 30879 _pkg_short_errors_supported=no 30880fi 30881 if test $_pkg_short_errors_supported = yes; then 30882 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 30883 else 30884 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 30885 fi 30886 # Put the nasty error message in config.log where it belongs 30887 echo "$LCMS2_PKG_ERRORS" >&5 30888 30889 have_lcms=no 30890elif test $pkg_failed = untried; then 30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30892$as_echo "no" >&6; } 30893 have_lcms=no 30894else 30895 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS 30896 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS 30897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30898$as_echo "yes" >&6; } 30899 have_lcms=yes 30900fi 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30902$as_echo "" >&6; } 30903fi 30904 30905if test "$have_lcms" = 'yes'; then 30906 30907$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h 30908 30909 LCMS_CFLAGS="$LCMS2_CFLAGS" 30910 LCMS_LIBS="$LCMS2_LIBS" 30911 CFLAGS="$LCMS2_CFLAGS $CFLAGS" 30912 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" 30913if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : 30914 have_lcms_header='yes' 30915fi 30916 30917 30918 if test "$have_lcms_header" = 'yes'; then 30919 30920$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h 30921 30922 else 30923 30924$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h 30925 30926 fi 30927fi 30928 30929 if test "$have_lcms" = 'yes'; then 30930 LCMS_DELEGATE_TRUE= 30931 LCMS_DELEGATE_FALSE='#' 30932else 30933 LCMS_DELEGATE_TRUE='#' 30934 LCMS_DELEGATE_FALSE= 30935fi 30936 30937 30938 30939 30940 30941# 30942# Check for the OpenJP2 delegate library. 30943# 30944 30945# Check whether --with-openjp2 was given. 30946if test "${with_openjp2+set}" = set; then : 30947 withval=$with_openjp2; with_openjp2=$withval 30948else 30949 with_openjp2='yes' 30950fi 30951 30952 30953if test "$with_openjp2" != 'yes'; then 30954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 " 30955fi 30956 30957have_openjp2='no' 30958LIBOPENJP2_CFLAGS="" 30959LIBOPENJP2_LIBS="" 30960LIBOPENJP2_PKG="" 30961if test "x$with_openjp2" = "xyes"; then 30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30963$as_echo "-------------------------------------------------------------" >&6; } 30964 30965pkg_failed=no 30966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5 30967$as_echo_n "checking for LIBOPENJP2... " >&6; } 30968 30969if test -n "$LIBOPENJP2_CFLAGS"; then 30970 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS" 30971 elif test -n "$PKG_CONFIG"; then 30972 if test -n "$PKG_CONFIG" && \ 30973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 30974 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 30975 ac_status=$? 30976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30977 test $ac_status = 0; }; then 30978 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null` 30979 test "x$?" != "x0" && pkg_failed=yes 30980else 30981 pkg_failed=yes 30982fi 30983 else 30984 pkg_failed=untried 30985fi 30986if test -n "$LIBOPENJP2_LIBS"; then 30987 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS" 30988 elif test -n "$PKG_CONFIG"; then 30989 if test -n "$PKG_CONFIG" && \ 30990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 30991 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 30992 ac_status=$? 30993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30994 test $ac_status = 0; }; then 30995 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null` 30996 test "x$?" != "x0" && pkg_failed=yes 30997else 30998 pkg_failed=yes 30999fi 31000 else 31001 pkg_failed=untried 31002fi 31003 31004 31005 31006if test $pkg_failed = yes; then 31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31008$as_echo "no" >&6; } 31009 31010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31011 _pkg_short_errors_supported=yes 31012else 31013 _pkg_short_errors_supported=no 31014fi 31015 if test $_pkg_short_errors_supported = yes; then 31016 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 31017 else 31018 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 31019 fi 31020 # Put the nasty error message in config.log where it belongs 31021 echo "$LIBOPENJP2_PKG_ERRORS" >&5 31022 31023 have_openjp2=no 31024elif test $pkg_failed = untried; then 31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31026$as_echo "no" >&6; } 31027 have_openjp2=no 31028else 31029 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS 31030 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS 31031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31032$as_echo "yes" >&6; } 31033 have_openjp2=yes 31034fi 31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31036$as_echo "" >&6; } 31037fi 31038 31039if test "$have_openjp2" = 'yes'; then 31040 31041$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h 31042 31043 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS" 31044fi 31045 31046 if test "$have_openjp2" = 'yes'; then 31047 LIBOPENJP2_DELEGATE_TRUE= 31048 LIBOPENJP2_DELEGATE_FALSE='#' 31049else 31050 LIBOPENJP2_DELEGATE_TRUE='#' 31051 LIBOPENJP2_DELEGATE_FALSE= 31052fi 31053 31054 31055 31056 31057 31058 31059# 31060# Check for the LQR (Liquid Rescale) delegate library. 31061# 31062 31063# Check whether --with-lqr was given. 31064if test "${with_lqr+set}" = set; then : 31065 withval=$with_lqr; with_lqr=$withval 31066else 31067 with_lqr='yes' 31068fi 31069 31070 31071if test "$with_lqr" != 'yes'; then 31072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 31073fi 31074 31075have_lqr='no' 31076LQR_CFLAGS="" 31077LQR_LIBS="" 31078LQR_PKG="" 31079if test "x$with_lqr" = "xyes"; then 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31081$as_echo "-------------------------------------------------------------" >&6; } 31082 31083pkg_failed=no 31084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 31085$as_echo_n "checking for LQR... " >&6; } 31086 31087if test -n "$LQR_CFLAGS"; then 31088 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" 31089 elif test -n "$PKG_CONFIG"; then 31090 if test -n "$PKG_CONFIG" && \ 31091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 31092 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 31093 ac_status=$? 31094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31095 test $ac_status = 0; }; then 31096 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` 31097 test "x$?" != "x0" && pkg_failed=yes 31098else 31099 pkg_failed=yes 31100fi 31101 else 31102 pkg_failed=untried 31103fi 31104if test -n "$LQR_LIBS"; then 31105 pkg_cv_LQR_LIBS="$LQR_LIBS" 31106 elif test -n "$PKG_CONFIG"; then 31107 if test -n "$PKG_CONFIG" && \ 31108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 31109 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 31110 ac_status=$? 31111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31112 test $ac_status = 0; }; then 31113 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` 31114 test "x$?" != "x0" && pkg_failed=yes 31115else 31116 pkg_failed=yes 31117fi 31118 else 31119 pkg_failed=untried 31120fi 31121 31122 31123 31124if test $pkg_failed = yes; then 31125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31126$as_echo "no" >&6; } 31127 31128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31129 _pkg_short_errors_supported=yes 31130else 31131 _pkg_short_errors_supported=no 31132fi 31133 if test $_pkg_short_errors_supported = yes; then 31134 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 31135 else 31136 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 31137 fi 31138 # Put the nasty error message in config.log where it belongs 31139 echo "$LQR_PKG_ERRORS" >&5 31140 31141 have_lqr=no 31142elif test $pkg_failed = untried; then 31143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31144$as_echo "no" >&6; } 31145 have_lqr=no 31146else 31147 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS 31148 LQR_LIBS=$pkg_cv_LQR_LIBS 31149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31150$as_echo "yes" >&6; } 31151 have_lqr=yes 31152fi 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31154$as_echo "" >&6; } 31155fi 31156 31157if test "$have_lqr" = 'yes'; then 31158 31159$as_echo "#define LQR_DELEGATE 1" >>confdefs.h 31160 31161 CFLAGS="$LQR_CFLAGS $CFLAGS" 31162fi 31163 31164 if test "$have_lqr" = 'yes'; then 31165 LQR_DELEGATE_TRUE= 31166 LQR_DELEGATE_FALSE='#' 31167else 31168 LQR_DELEGATE_TRUE='#' 31169 LQR_DELEGATE_FALSE= 31170fi 31171 31172 31173 31174 31175 31176# Disable LZMA (lzma library) 31177 31178# Check whether --with-lzma was given. 31179if test "${with_lzma+set}" = set; then : 31180 withval=$with_lzma; with_lzma=$withval 31181else 31182 with_lzma='yes' 31183fi 31184 31185if test "$with_lzma" != 'yes' ; then 31186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 31187fi 31188 31189LZMA_PKG="" 31190if test "x$with_lzma" = "xyes"; then 31191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31192$as_echo "-------------------------------------------------------------" >&6; } 31193 31194pkg_failed=no 31195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 31196$as_echo_n "checking for LZMA... " >&6; } 31197 31198if test -n "$LZMA_CFLAGS"; then 31199 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 31200 elif test -n "$PKG_CONFIG"; then 31201 if test -n "$PKG_CONFIG" && \ 31202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 31203 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 31204 ac_status=$? 31205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31206 test $ac_status = 0; }; then 31207 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` 31208 test "x$?" != "x0" && pkg_failed=yes 31209else 31210 pkg_failed=yes 31211fi 31212 else 31213 pkg_failed=untried 31214fi 31215if test -n "$LZMA_LIBS"; then 31216 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 31217 elif test -n "$PKG_CONFIG"; then 31218 if test -n "$PKG_CONFIG" && \ 31219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 31220 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 31221 ac_status=$? 31222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31223 test $ac_status = 0; }; then 31224 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` 31225 test "x$?" != "x0" && pkg_failed=yes 31226else 31227 pkg_failed=yes 31228fi 31229 else 31230 pkg_failed=untried 31231fi 31232 31233 31234 31235if test $pkg_failed = yes; then 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31237$as_echo "no" >&6; } 31238 31239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31240 _pkg_short_errors_supported=yes 31241else 31242 _pkg_short_errors_supported=no 31243fi 31244 if test $_pkg_short_errors_supported = yes; then 31245 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 31246 else 31247 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 31248 fi 31249 # Put the nasty error message in config.log where it belongs 31250 echo "$LZMA_PKG_ERRORS" >&5 31251 31252 have_lzma=no 31253elif test $pkg_failed = untried; then 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31255$as_echo "no" >&6; } 31256 have_lzma=no 31257else 31258 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 31259 LZMA_LIBS=$pkg_cv_LZMA_LIBS 31260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31261$as_echo "yes" >&6; } 31262 have_lzma=yes 31263fi 31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31265$as_echo "" >&6; } 31266fi 31267 31268if test "$have_lzma" = 'yes'; then 31269 31270$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h 31271 31272 CFLAGS="$LZMA_CFLAGS $CFLAGS" 31273fi 31274 31275 if test "$have_lzma" = 'yes'; then 31276 LZMA_DELEGATE_TRUE= 31277 LZMA_DELEGATE_FALSE='#' 31278else 31279 LZMA_DELEGATE_TRUE='#' 31280 LZMA_DELEGATE_FALSE= 31281fi 31282 31283 31284 31285 31286 31287# 31288# Check for the OpenEXR delegate library. 31289# 31290 31291# Check whether --with-openexr was given. 31292if test "${with_openexr+set}" = set; then : 31293 withval=$with_openexr; with_openexr=$withval 31294else 31295 with_openexr='yes' 31296fi 31297 31298 31299if test "$with_openexr" != 'yes'; then 31300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 31301fi 31302 31303have_openexr='no' 31304OPENEXR_CFLAGS="" 31305OPENEXR_LIBS="" 31306OPENEXR_PKG="" 31307if test "x$with_openexr" = "xyes"; then 31308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31309$as_echo "-------------------------------------------------------------" >&6; } 31310 31311pkg_failed=no 31312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 31313$as_echo_n "checking for OPENEXR... " >&6; } 31314 31315if test -n "$OPENEXR_CFLAGS"; then 31316 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" 31317 elif test -n "$PKG_CONFIG"; then 31318 if test -n "$PKG_CONFIG" && \ 31319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 31320 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 31321 ac_status=$? 31322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31323 test $ac_status = 0; }; then 31324 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` 31325 test "x$?" != "x0" && pkg_failed=yes 31326else 31327 pkg_failed=yes 31328fi 31329 else 31330 pkg_failed=untried 31331fi 31332if test -n "$OPENEXR_LIBS"; then 31333 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" 31334 elif test -n "$PKG_CONFIG"; then 31335 if test -n "$PKG_CONFIG" && \ 31336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 31337 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 31338 ac_status=$? 31339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31340 test $ac_status = 0; }; then 31341 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` 31342 test "x$?" != "x0" && pkg_failed=yes 31343else 31344 pkg_failed=yes 31345fi 31346 else 31347 pkg_failed=untried 31348fi 31349 31350 31351 31352if test $pkg_failed = yes; then 31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31354$as_echo "no" >&6; } 31355 31356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31357 _pkg_short_errors_supported=yes 31358else 31359 _pkg_short_errors_supported=no 31360fi 31361 if test $_pkg_short_errors_supported = yes; then 31362 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 31363 else 31364 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 31365 fi 31366 # Put the nasty error message in config.log where it belongs 31367 echo "$OPENEXR_PKG_ERRORS" >&5 31368 31369 have_openexr=no 31370elif test $pkg_failed = untried; then 31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31372$as_echo "no" >&6; } 31373 have_openexr=no 31374else 31375 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS 31376 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31378$as_echo "yes" >&6; } 31379 have_openexr=yes 31380fi 31381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31382$as_echo "" >&6; } 31383fi 31384 31385if test "$have_openexr" = 'yes'; then 31386 31387$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h 31388 31389 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 31390fi 31391 31392 if test "$have_openexr" = 'yes'; then 31393 OPENEXR_DELEGATE_TRUE= 31394 OPENEXR_DELEGATE_FALSE='#' 31395else 31396 OPENEXR_DELEGATE_TRUE='#' 31397 OPENEXR_DELEGATE_FALSE= 31398fi 31399 31400 31401 31402 31403 31404# 31405# Check for PANGO delegate library. 31406# 31407 31408# Check whether --with-pango was given. 31409if test "${with_pango+set}" = set; then : 31410 withval=$with_pango; with_pango=$withval 31411else 31412 with_pango='yes' 31413fi 31414 31415 31416if test "$with_pango" != 'yes'; then 31417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 31418fi 31419 31420have_pango='no' 31421have_pangocairo='no' 31422PANGO_CFLAGS="" 31423PANGO_LIBS="" 31424PANGO_PKG="" 31425if test "x$with_pango" = "xyes"; then 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31427$as_echo "-------------------------------------------------------------" >&6; } 31428 31429pkg_failed=no 31430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 31431$as_echo_n "checking for PANGO... " >&6; } 31432 31433if test -n "$PANGO_CFLAGS"; then 31434 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 31435 elif test -n "$PKG_CONFIG"; then 31436 if test -n "$PKG_CONFIG" && \ 31437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 31438 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 31439 ac_status=$? 31440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31441 test $ac_status = 0; }; then 31442 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` 31443 test "x$?" != "x0" && pkg_failed=yes 31444else 31445 pkg_failed=yes 31446fi 31447 else 31448 pkg_failed=untried 31449fi 31450if test -n "$PANGO_LIBS"; then 31451 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 31452 elif test -n "$PKG_CONFIG"; then 31453 if test -n "$PKG_CONFIG" && \ 31454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 31455 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 31456 ac_status=$? 31457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31458 test $ac_status = 0; }; then 31459 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` 31460 test "x$?" != "x0" && pkg_failed=yes 31461else 31462 pkg_failed=yes 31463fi 31464 else 31465 pkg_failed=untried 31466fi 31467 31468 31469 31470if test $pkg_failed = yes; then 31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31472$as_echo "no" >&6; } 31473 31474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31475 _pkg_short_errors_supported=yes 31476else 31477 _pkg_short_errors_supported=no 31478fi 31479 if test $_pkg_short_errors_supported = yes; then 31480 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 31481 else 31482 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 31483 fi 31484 # Put the nasty error message in config.log where it belongs 31485 echo "$PANGO_PKG_ERRORS" >&5 31486 31487 have_pangocairo=no 31488elif test $pkg_failed = untried; then 31489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31490$as_echo "no" >&6; } 31491 have_pangocairo=no 31492else 31493 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 31494 PANGO_LIBS=$pkg_cv_PANGO_LIBS 31495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31496$as_echo "yes" >&6; } 31497 have_pangocairo=yes 31498fi 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31500$as_echo "" >&6; } 31501 31502pkg_failed=no 31503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 31504$as_echo_n "checking for PANGO... " >&6; } 31505 31506if test -n "$PANGO_CFLAGS"; then 31507 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 31508 elif test -n "$PKG_CONFIG"; then 31509 if test -n "$PKG_CONFIG" && \ 31510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 31511 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 31512 ac_status=$? 31513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31514 test $ac_status = 0; }; then 31515 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` 31516 test "x$?" != "x0" && pkg_failed=yes 31517else 31518 pkg_failed=yes 31519fi 31520 else 31521 pkg_failed=untried 31522fi 31523if test -n "$PANGO_LIBS"; then 31524 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 31525 elif test -n "$PKG_CONFIG"; then 31526 if test -n "$PKG_CONFIG" && \ 31527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 31528 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 31529 ac_status=$? 31530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31531 test $ac_status = 0; }; then 31532 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` 31533 test "x$?" != "x0" && pkg_failed=yes 31534else 31535 pkg_failed=yes 31536fi 31537 else 31538 pkg_failed=untried 31539fi 31540 31541 31542 31543if test $pkg_failed = yes; then 31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31545$as_echo "no" >&6; } 31546 31547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31548 _pkg_short_errors_supported=yes 31549else 31550 _pkg_short_errors_supported=no 31551fi 31552 if test $_pkg_short_errors_supported = yes; then 31553 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 31554 else 31555 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 31556 fi 31557 # Put the nasty error message in config.log where it belongs 31558 echo "$PANGO_PKG_ERRORS" >&5 31559 31560 have_pango=no 31561elif test $pkg_failed = untried; then 31562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31563$as_echo "no" >&6; } 31564 have_pango=no 31565else 31566 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 31567 PANGO_LIBS=$pkg_cv_PANGO_LIBS 31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31569$as_echo "yes" >&6; } 31570 have_pango=yes 31571fi 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31573$as_echo "" >&6; } 31574fi 31575 31576if test "$have_pango" = 'yes'; then 31577 31578$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h 31579 31580 CFLAGS="$PANGO_CFLAGS $CFLAGS" 31581fi 31582 31583if test "$have_pangocairo" = 'yes'; then 31584 31585$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h 31586 31587 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS" 31588fi 31589 31590 if test "$have_pango" = 'yes'; then 31591 PANGO_DELEGATE_TRUE= 31592 PANGO_DELEGATE_FALSE='#' 31593else 31594 PANGO_DELEGATE_TRUE='#' 31595 PANGO_DELEGATE_FALSE= 31596fi 31597 31598 if test "$have_pangocairo" = 'yes'; then 31599 PANGOCAIRO_DELEGATE_TRUE= 31600 PANGOCAIRO_DELEGATE_FALSE='#' 31601else 31602 PANGOCAIRO_DELEGATE_TRUE='#' 31603 PANGOCAIRO_DELEGATE_FALSE= 31604fi 31605 31606 31607 31608 31609 31610# 31611# Check for PNG delegate library. 31612# 31613 31614# Check whether --with-png was given. 31615if test "${with_png+set}" = set; then : 31616 withval=$with_png; with_png=$withval 31617else 31618 with_png='yes' 31619fi 31620 31621 31622if test "$with_png" != 'yes'; then 31623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 31624fi 31625 31626have_png='no' 31627PNG_CFLAGS="" 31628PNG_LIBS="" 31629PNG_PKG="" 31630if test "x$with_png" = "xyes"; then 31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31632$as_echo "-------------------------------------------------------------" >&6; } 31633 31634pkg_failed=no 31635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 31636$as_echo_n "checking for PNG... " >&6; } 31637 31638if test -n "$PNG_CFLAGS"; then 31639 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 31640 elif test -n "$PKG_CONFIG"; then 31641 if test -n "$PKG_CONFIG" && \ 31642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 31643 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 31644 ac_status=$? 31645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31646 test $ac_status = 0; }; then 31647 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null` 31648 test "x$?" != "x0" && pkg_failed=yes 31649else 31650 pkg_failed=yes 31651fi 31652 else 31653 pkg_failed=untried 31654fi 31655if test -n "$PNG_LIBS"; then 31656 pkg_cv_PNG_LIBS="$PNG_LIBS" 31657 elif test -n "$PKG_CONFIG"; then 31658 if test -n "$PKG_CONFIG" && \ 31659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 31660 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 31661 ac_status=$? 31662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31663 test $ac_status = 0; }; then 31664 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null` 31665 test "x$?" != "x0" && pkg_failed=yes 31666else 31667 pkg_failed=yes 31668fi 31669 else 31670 pkg_failed=untried 31671fi 31672 31673 31674 31675if test $pkg_failed = yes; then 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31677$as_echo "no" >&6; } 31678 31679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31680 _pkg_short_errors_supported=yes 31681else 31682 _pkg_short_errors_supported=no 31683fi 31684 if test $_pkg_short_errors_supported = yes; then 31685 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 31686 else 31687 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 31688 fi 31689 # Put the nasty error message in config.log where it belongs 31690 echo "$PNG_PKG_ERRORS" >&5 31691 31692 have_png=no 31693elif test $pkg_failed = untried; then 31694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31695$as_echo "no" >&6; } 31696 have_png=no 31697else 31698 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 31699 PNG_LIBS=$pkg_cv_PNG_LIBS 31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31701$as_echo "yes" >&6; } 31702 have_png=yes 31703fi 31704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31705$as_echo "" >&6; } 31706fi 31707 31708if test "$have_png" = 'yes'; then 31709 31710$as_echo "#define PNG_DELEGATE 1" >>confdefs.h 31711 31712 CFLAGS="$PNG_CFLAGS $CFLAGS" 31713fi 31714 31715 if test "$have_png" = 'yes'; then 31716 PNG_DELEGATE_TRUE= 31717 PNG_DELEGATE_FALSE='#' 31718else 31719 PNG_DELEGATE_TRUE='#' 31720 PNG_DELEGATE_FALSE= 31721fi 31722 31723 31724 31725 31726 31727# 31728# Check for RSVG delegate library. 31729# 31730 31731# Check whether --with-rsvg was given. 31732if test "${with_rsvg+set}" = set; then : 31733 withval=$with_rsvg; with_rsvg=$withval 31734else 31735 with_rsvg='no' 31736fi 31737 31738 31739if test "$with_rsvg" != 'yes'; then 31740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 31741fi 31742 31743have_rsvg='no' 31744have_cairo='no' 31745RSVG_CFLAGS="" 31746RSVG_LIBS="" 31747RSVG_PKG="" 31748if test "x$with_rsvg" = "xyes"; then 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31750$as_echo "-------------------------------------------------------------" >&6; } 31751 31752pkg_failed=no 31753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 31754$as_echo_n "checking for RSVG... " >&6; } 31755 31756if test -n "$RSVG_CFLAGS"; then 31757 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" 31758 elif test -n "$PKG_CONFIG"; then 31759 if test -n "$PKG_CONFIG" && \ 31760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 31761 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 31762 ac_status=$? 31763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31764 test $ac_status = 0; }; then 31765 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` 31766 test "x$?" != "x0" && pkg_failed=yes 31767else 31768 pkg_failed=yes 31769fi 31770 else 31771 pkg_failed=untried 31772fi 31773if test -n "$RSVG_LIBS"; then 31774 pkg_cv_RSVG_LIBS="$RSVG_LIBS" 31775 elif test -n "$PKG_CONFIG"; then 31776 if test -n "$PKG_CONFIG" && \ 31777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 31778 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 31779 ac_status=$? 31780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31781 test $ac_status = 0; }; then 31782 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` 31783 test "x$?" != "x0" && pkg_failed=yes 31784else 31785 pkg_failed=yes 31786fi 31787 else 31788 pkg_failed=untried 31789fi 31790 31791 31792 31793if test $pkg_failed = yes; then 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31795$as_echo "no" >&6; } 31796 31797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31798 _pkg_short_errors_supported=yes 31799else 31800 _pkg_short_errors_supported=no 31801fi 31802 if test $_pkg_short_errors_supported = yes; then 31803 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 31804 else 31805 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 31806 fi 31807 # Put the nasty error message in config.log where it belongs 31808 echo "$RSVG_PKG_ERRORS" >&5 31809 31810 have_rsvg=no 31811elif test $pkg_failed = untried; then 31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31813$as_echo "no" >&6; } 31814 have_rsvg=no 31815else 31816 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS 31817 RSVG_LIBS=$pkg_cv_RSVG_LIBS 31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31819$as_echo "yes" >&6; } 31820 have_rsvg=yes 31821fi 31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31823$as_echo "" >&6; } 31824 31825pkg_failed=no 31826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 31827$as_echo_n "checking for CAIRO_SVG... " >&6; } 31828 31829if test -n "$CAIRO_SVG_CFLAGS"; then 31830 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" 31831 elif test -n "$PKG_CONFIG"; then 31832 if test -n "$PKG_CONFIG" && \ 31833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 31834 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 31835 ac_status=$? 31836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31837 test $ac_status = 0; }; then 31838 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` 31839 test "x$?" != "x0" && pkg_failed=yes 31840else 31841 pkg_failed=yes 31842fi 31843 else 31844 pkg_failed=untried 31845fi 31846if test -n "$CAIRO_SVG_LIBS"; then 31847 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" 31848 elif test -n "$PKG_CONFIG"; then 31849 if test -n "$PKG_CONFIG" && \ 31850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 31851 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 31852 ac_status=$? 31853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31854 test $ac_status = 0; }; then 31855 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` 31856 test "x$?" != "x0" && pkg_failed=yes 31857else 31858 pkg_failed=yes 31859fi 31860 else 31861 pkg_failed=untried 31862fi 31863 31864 31865 31866if test $pkg_failed = yes; then 31867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31868$as_echo "no" >&6; } 31869 31870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31871 _pkg_short_errors_supported=yes 31872else 31873 _pkg_short_errors_supported=no 31874fi 31875 if test $_pkg_short_errors_supported = yes; then 31876 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1` 31877 else 31878 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1` 31879 fi 31880 # Put the nasty error message in config.log where it belongs 31881 echo "$CAIRO_SVG_PKG_ERRORS" >&5 31882 31883 have_cairo=no 31884elif test $pkg_failed = untried; then 31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31886$as_echo "no" >&6; } 31887 have_cairo=no 31888else 31889 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS 31890 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS 31891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31892$as_echo "yes" >&6; } 31893 have_cairo=yes 31894fi 31895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31896$as_echo "" >&6; } 31897fi 31898 31899if test "$have_rsvg" = 'yes'; then 31900 31901$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h 31902 31903 CFLAGS="$RSVG_CFLAGS $CFLAGS" 31904fi 31905 31906if test "$have_cairo" = 'yes'; then 31907 31908$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h 31909 31910 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS" 31911fi 31912 31913 if test "$have_rsvg" = 'yes'; then 31914 RSVG_DELEGATE_TRUE= 31915 RSVG_DELEGATE_FALSE='#' 31916else 31917 RSVG_DELEGATE_TRUE='#' 31918 RSVG_DELEGATE_FALSE= 31919fi 31920 31921 if test "$have_cairo" = 'yes'; then 31922 CAIRO_DELEGATE_TRUE= 31923 CAIRO_DELEGATE_FALSE='#' 31924else 31925 CAIRO_DELEGATE_TRUE='#' 31926 CAIRO_DELEGATE_FALSE= 31927fi 31928 31929 31930 31931 31932 31933# 31934# Check for TIFF delegate library. 31935# 31936 31937# Check whether --with-tiff was given. 31938if test "${with_tiff+set}" = set; then : 31939 withval=$with_tiff; with_tiff=$withval 31940else 31941 with_tiff='yes' 31942fi 31943 31944 31945if test "$with_tiff" != 'yes'; then 31946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 31947fi 31948 31949have_tiff='no' 31950TIFF_LIBS='' 31951if test "$with_tiff" != 'no'; then 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31953$as_echo "-------------------------------------------------------------" >&6; } 31954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 31955$as_echo_n "checking for TIFF... " >&6; } 31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31957$as_echo "" >&6; } 31958 failed=0 31959 passed=0 31960 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 31961if test "x$ac_cv_header_tiff_h" = xyes; then : 31962 passed=`expr $passed + 1` 31963else 31964 failed=`expr $failed + 1` 31965fi 31966 31967 31968 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 31969if test "x$ac_cv_header_tiffio_h" = xyes; then : 31970 passed=`expr $passed + 1` 31971else 31972 failed=`expr $failed + 1` 31973fi 31974 31975 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 31977$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 31978if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 31979 $as_echo_n "(cached) " >&6 31980else 31981 ac_check_lib_save_LIBS=$LIBS 31982LIBS="-ltiff $LIBS" 31983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31984/* end confdefs.h. */ 31985 31986/* Override any GCC internal prototype to avoid an error. 31987 Use char because int might match the return type of a GCC 31988 builtin and then its argument prototype would still apply. */ 31989#ifdef __cplusplus 31990extern "C" 31991#endif 31992char TIFFOpen (); 31993int 31994main () 31995{ 31996return TIFFOpen (); 31997 ; 31998 return 0; 31999} 32000_ACEOF 32001if ac_fn_c_try_link "$LINENO"; then : 32002 ac_cv_lib_tiff_TIFFOpen=yes 32003else 32004 ac_cv_lib_tiff_TIFFOpen=no 32005fi 32006rm -f core conftest.err conftest.$ac_objext \ 32007 conftest$ac_exeext conftest.$ac_ext 32008LIBS=$ac_check_lib_save_LIBS 32009fi 32010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 32011$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 32012if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 32013 passed=`expr $passed + 1` 32014else 32015 failed=`expr $failed + 1` 32016fi 32017 32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 32019$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 32020if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 32021 $as_echo_n "(cached) " >&6 32022else 32023 ac_check_lib_save_LIBS=$LIBS 32024LIBS="-ltiff $LIBS" 32025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32026/* end confdefs.h. */ 32027 32028/* Override any GCC internal prototype to avoid an error. 32029 Use char because int might match the return type of a GCC 32030 builtin and then its argument prototype would still apply. */ 32031#ifdef __cplusplus 32032extern "C" 32033#endif 32034char TIFFClientOpen (); 32035int 32036main () 32037{ 32038return TIFFClientOpen (); 32039 ; 32040 return 0; 32041} 32042_ACEOF 32043if ac_fn_c_try_link "$LINENO"; then : 32044 ac_cv_lib_tiff_TIFFClientOpen=yes 32045else 32046 ac_cv_lib_tiff_TIFFClientOpen=no 32047fi 32048rm -f core conftest.err conftest.$ac_objext \ 32049 conftest$ac_exeext conftest.$ac_ext 32050LIBS=$ac_check_lib_save_LIBS 32051fi 32052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 32053$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 32054if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 32055 passed=`expr $passed + 1` 32056else 32057 failed=`expr $failed + 1` 32058fi 32059 32060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 32061$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 32062if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 32063 $as_echo_n "(cached) " >&6 32064else 32065 ac_check_lib_save_LIBS=$LIBS 32066LIBS="-ltiff $LIBS" 32067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32068/* end confdefs.h. */ 32069 32070/* Override any GCC internal prototype to avoid an error. 32071 Use char because int might match the return type of a GCC 32072 builtin and then its argument prototype would still apply. */ 32073#ifdef __cplusplus 32074extern "C" 32075#endif 32076char TIFFIsByteSwapped (); 32077int 32078main () 32079{ 32080return TIFFIsByteSwapped (); 32081 ; 32082 return 0; 32083} 32084_ACEOF 32085if ac_fn_c_try_link "$LINENO"; then : 32086 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 32087else 32088 ac_cv_lib_tiff_TIFFIsByteSwapped=no 32089fi 32090rm -f core conftest.err conftest.$ac_objext \ 32091 conftest$ac_exeext conftest.$ac_ext 32092LIBS=$ac_check_lib_save_LIBS 32093fi 32094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 32095$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 32096if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 32097 passed=`expr $passed + 1` 32098else 32099 failed=`expr $failed + 1` 32100fi 32101 32102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 32103$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } 32104if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : 32105 $as_echo_n "(cached) " >&6 32106else 32107 ac_check_lib_save_LIBS=$LIBS 32108LIBS="-ltiff $LIBS" 32109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32110/* end confdefs.h. */ 32111 32112/* Override any GCC internal prototype to avoid an error. 32113 Use char because int might match the return type of a GCC 32114 builtin and then its argument prototype would still apply. */ 32115#ifdef __cplusplus 32116extern "C" 32117#endif 32118char TIFFReadRGBATile (); 32119int 32120main () 32121{ 32122return TIFFReadRGBATile (); 32123 ; 32124 return 0; 32125} 32126_ACEOF 32127if ac_fn_c_try_link "$LINENO"; then : 32128 ac_cv_lib_tiff_TIFFReadRGBATile=yes 32129else 32130 ac_cv_lib_tiff_TIFFReadRGBATile=no 32131fi 32132rm -f core conftest.err conftest.$ac_objext \ 32133 conftest$ac_exeext conftest.$ac_ext 32134LIBS=$ac_check_lib_save_LIBS 32135fi 32136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 32137$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } 32138if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : 32139 passed=`expr $passed + 1` 32140else 32141 failed=`expr $failed + 1` 32142fi 32143 32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 32145$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } 32146if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : 32147 $as_echo_n "(cached) " >&6 32148else 32149 ac_check_lib_save_LIBS=$LIBS 32150LIBS="-ltiff $LIBS" 32151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32152/* end confdefs.h. */ 32153 32154/* Override any GCC internal prototype to avoid an error. 32155 Use char because int might match the return type of a GCC 32156 builtin and then its argument prototype would still apply. */ 32157#ifdef __cplusplus 32158extern "C" 32159#endif 32160char TIFFReadRGBAStrip (); 32161int 32162main () 32163{ 32164return TIFFReadRGBAStrip (); 32165 ; 32166 return 0; 32167} 32168_ACEOF 32169if ac_fn_c_try_link "$LINENO"; then : 32170 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes 32171else 32172 ac_cv_lib_tiff_TIFFReadRGBAStrip=no 32173fi 32174rm -f core conftest.err conftest.$ac_objext \ 32175 conftest$ac_exeext conftest.$ac_ext 32176LIBS=$ac_check_lib_save_LIBS 32177fi 32178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 32179$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } 32180if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : 32181 passed=`expr $passed + 1` 32182else 32183 failed=`expr $failed + 1` 32184fi 32185 32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 32187$as_echo_n "checking if TIFF package is complete... " >&6; } 32188 if test $passed -gt 0; then 32189 if test $failed -gt 0; then 32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32191$as_echo "no -- some components failed test" >&6; } 32192 have_tiff='no (failed tests)' 32193 else 32194 TIFF_LIBS='-ltiff' 32195 LIBS="$TIFF_LIBS $LIBS" 32196 32197$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h 32198 32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32200$as_echo "yes" >&6; } 32201 have_tiff='yes' 32202 for ac_header in tiffconf.h 32203do : 32204 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 32205if test "x$ac_cv_header_tiffconf_h" = xyes; then : 32206 cat >>confdefs.h <<_ACEOF 32207#define HAVE_TIFFCONF_H 1 32208_ACEOF 32209 32210fi 32211 32212done 32213 32214 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ 32215 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 32216 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 32217 TIFFSwabArrayOfTriples 32218do : 32219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 32220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 32221if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 32222 cat >>confdefs.h <<_ACEOF 32223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 32224_ACEOF 32225 32226fi 32227done 32228 32229 fi 32230 else 32231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32232$as_echo "no" >&6; } 32233 fi 32234fi 32235 if test "$have_tiff" = 'yes'; then 32236 TIFF_DELEGATE_TRUE= 32237 TIFF_DELEGATE_FALSE='#' 32238else 32239 TIFF_DELEGATE_TRUE='#' 32240 TIFF_DELEGATE_FALSE= 32241fi 32242 32243 32244 32245 32246# 32247# Check for WEBP delegate library. 32248# 32249 32250# Check whether --with-webp was given. 32251if test "${with_webp+set}" = set; then : 32252 withval=$with_webp; with_webp=$withval 32253else 32254 with_webp='yes' 32255fi 32256 32257 32258if test "$with_webp" != 'yes'; then 32259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 32260fi 32261 32262have_webp='no' 32263WEBP_LIBS='' 32264if test "$with_webp" != 'no'; then 32265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32266$as_echo "-------------------------------------------------------------" >&6; } 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 32268$as_echo_n "checking for WEBP... " >&6; } 32269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32270$as_echo "" >&6; } 32271 failed=0 32272 passed=0 32273 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 32274if test "x$ac_cv_header_webp_decode_h" = xyes; then : 32275 passed=`expr $passed + 1` 32276else 32277 failed=`expr $failed + 1` 32278fi 32279 32280 32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5 32282$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; } 32283if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then : 32284 $as_echo_n "(cached) " >&6 32285else 32286 ac_check_lib_save_LIBS=$LIBS 32287LIBS="-lwebp $LIBS" 32288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32289/* end confdefs.h. */ 32290 32291/* Override any GCC internal prototype to avoid an error. 32292 Use char because int might match the return type of a GCC 32293 builtin and then its argument prototype would still apply. */ 32294#ifdef __cplusplus 32295extern "C" 32296#endif 32297char WebPPictureInitInternal (); 32298int 32299main () 32300{ 32301return WebPPictureInitInternal (); 32302 ; 32303 return 0; 32304} 32305_ACEOF 32306if ac_fn_c_try_link "$LINENO"; then : 32307 ac_cv_lib_webp_WebPPictureInitInternal=yes 32308else 32309 ac_cv_lib_webp_WebPPictureInitInternal=no 32310fi 32311rm -f core conftest.err conftest.$ac_objext \ 32312 conftest$ac_exeext conftest.$ac_ext 32313LIBS=$ac_check_lib_save_LIBS 32314fi 32315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5 32316$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; } 32317if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then : 32318 passed=`expr $passed + 1` 32319else 32320 failed=`expr $failed + 1` 32321fi 32322 32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 32324$as_echo_n "checking if WEBP package is complete... " >&6; } 32325 if test $passed -gt 0; then 32326 if test $failed -gt 0; then 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32328$as_echo "no -- some components failed test" >&6; } 32329 have_webp='no (failed tests)' 32330 else 32331 WEBP_LIBS='-lwebp' 32332 LIBS="$WEBP_LIBS $LIBS" 32333 32334$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h 32335 32336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32337$as_echo "yes" >&6; } 32338 have_webp='yes' 32339 fi 32340 else 32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32342$as_echo "no" >&6; } 32343 fi 32344fi 32345 if test "$have_webp" = 'yes'; then 32346 WEBP_DELEGATE_TRUE= 32347 WEBP_DELEGATE_FALSE='#' 32348else 32349 WEBP_DELEGATE_TRUE='#' 32350 WEBP_DELEGATE_FALSE= 32351fi 32352 32353 32354 32355 32356# 32357# Set Windows font directory. 32358# 32359 32360# Check whether --with-windows-font-dir was given. 32361if test "${with_windows_font_dir+set}" = set; then : 32362 withval=$with_windows_font_dir; with_windows_font_dir=$withval 32363else 32364 with_windows_font_dir='default' 32365fi 32366 32367 32368if test "$with_windows_font_dir" != 'default'; then 32369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 32370fi 32371 32372 32373# 32374# Check for WMF delegate library. 32375# 32376 32377# Check whether --with-wmf was given. 32378if test "${with_wmf+set}" = set; then : 32379 withval=$with_wmf; with_wmf=$withval 32380else 32381 with_wmf='yes' 32382fi 32383 32384 32385if test "$with_wmf" != 'yes'; then 32386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 32387fi 32388 32389have_wmf='no' 32390WMF_LIBS='' 32391WMF_CFLAGS='' 32392OLIBS="$LIBS" 32393if test "$with_wmf" != 'no'; then 32394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5 32395$as_echo_n "checking for WMF support ... " >&6; } 32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32397$as_echo "" >&6; } 32398 32399 have_libwmflite='no' 32400 have_libwmf_ipa_h='no' 32401 32402 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H 32403" 32404if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : 32405 have_libwmf_ipa_h='yes' 32406fi 32407 32408 32409 if test "$have_libwmf_ipa_h" = 'yes'; then 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 32411$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } 32412if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : 32413 $as_echo_n "(cached) " >&6 32414else 32415 ac_check_lib_save_LIBS=$LIBS 32416LIBS="-lwmflite $LIBS" 32417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32418/* end confdefs.h. */ 32419 32420/* Override any GCC internal prototype to avoid an error. 32421 Use char because int might match the return type of a GCC 32422 builtin and then its argument prototype would still apply. */ 32423#ifdef __cplusplus 32424extern "C" 32425#endif 32426char wmf_lite_create (); 32427int 32428main () 32429{ 32430return wmf_lite_create (); 32431 ; 32432 return 0; 32433} 32434_ACEOF 32435if ac_fn_c_try_link "$LINENO"; then : 32436 ac_cv_lib_wmflite_wmf_lite_create=yes 32437else 32438 ac_cv_lib_wmflite_wmf_lite_create=no 32439fi 32440rm -f core conftest.err conftest.$ac_objext \ 32441 conftest$ac_exeext conftest.$ac_ext 32442LIBS=$ac_check_lib_save_LIBS 32443fi 32444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 32445$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } 32446if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : 32447 have_libwmflite='yes' 32448fi 32449 32450 if test "$have_libwmflite" = 'yes'; then 32451 32452$as_echo "#define WMF_DELEGATE 1" >>confdefs.h 32453 32454 WMF_LIBS='-lwmflite' 32455 LIBS="$WMF_LIBS $LIBS" 32456 have_wmf='yes' 32457 else 32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32459$as_echo "no -- some components failed test" >&6; } 32460 have_wmf='no (failed tests)' 32461 have_wmflite='no (failed tests)' 32462 LIBS="$OLIBS" 32463 WMF_LIBS='' 32464 fi 32465 fi 32466fi 32467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5 32468$as_echo_n "checking if WMF package is complete ... " >&6; } 32469if test "$have_wmf" = 'yes'; then 32470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32471$as_echo "yes" >&6; } 32472else 32473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32474$as_echo "no" >&6; } 32475fi 32476 if test "$have_wmf" = 'yes'; then 32477 WMF_DELEGATE_TRUE= 32478 WMF_DELEGATE_FALSE='#' 32479else 32480 WMF_DELEGATE_TRUE='#' 32481 WMF_DELEGATE_FALSE= 32482fi 32483 32484 32485 32486 32487 32488# 32489# Check for XML delegate library. 32490# 32491 32492# Check whether --with-xml was given. 32493if test "${with_xml+set}" = set; then : 32494 withval=$with_xml; with_xml=$withval 32495else 32496 with_xml='yes' 32497fi 32498 32499 32500if test "$with_xml" != 'yes' ; then 32501 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 32502fi 32503 32504have_xml='no' 32505XML_CFLAGS="" 32506XML_LIBS="" 32507XML_PKG="" 32508if test "x$with_xml" = "xyes"; then 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32510$as_echo "-------------------------------------------------------------" >&6; } 32511 32512pkg_failed=no 32513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 32514$as_echo_n "checking for XML... " >&6; } 32515 32516if test -n "$XML_CFLAGS"; then 32517 pkg_cv_XML_CFLAGS="$XML_CFLAGS" 32518 elif test -n "$PKG_CONFIG"; then 32519 if test -n "$PKG_CONFIG" && \ 32520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 32521 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 32522 ac_status=$? 32523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32524 test $ac_status = 0; }; then 32525 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null` 32526 test "x$?" != "x0" && pkg_failed=yes 32527else 32528 pkg_failed=yes 32529fi 32530 else 32531 pkg_failed=untried 32532fi 32533if test -n "$XML_LIBS"; then 32534 pkg_cv_XML_LIBS="$XML_LIBS" 32535 elif test -n "$PKG_CONFIG"; then 32536 if test -n "$PKG_CONFIG" && \ 32537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 32538 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 32539 ac_status=$? 32540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32541 test $ac_status = 0; }; then 32542 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null` 32543 test "x$?" != "x0" && pkg_failed=yes 32544else 32545 pkg_failed=yes 32546fi 32547 else 32548 pkg_failed=untried 32549fi 32550 32551 32552 32553if test $pkg_failed = yes; then 32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32555$as_echo "no" >&6; } 32556 32557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32558 _pkg_short_errors_supported=yes 32559else 32560 _pkg_short_errors_supported=no 32561fi 32562 if test $_pkg_short_errors_supported = yes; then 32563 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 32564 else 32565 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 32566 fi 32567 # Put the nasty error message in config.log where it belongs 32568 echo "$XML_PKG_ERRORS" >&5 32569 32570 have_xml=no 32571elif test $pkg_failed = untried; then 32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32573$as_echo "no" >&6; } 32574 have_xml=no 32575else 32576 XML_CFLAGS=$pkg_cv_XML_CFLAGS 32577 XML_LIBS=$pkg_cv_XML_LIBS 32578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32579$as_echo "yes" >&6; } 32580 have_xml=yes 32581fi 32582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32583$as_echo "" >&6; } 32584fi 32585 32586if test "$have_xml" = 'yes'; then 32587 32588$as_echo "#define XML_DELEGATE 1" >>confdefs.h 32589 32590 CFLAGS="$XML_CFLAGS $CFLAGS" 32591fi 32592 32593 if test "$have_xml" = 'yes'; then 32594 XML_DELEGATE_TRUE= 32595 XML_DELEGATE_FALSE='#' 32596else 32597 XML_DELEGATE_TRUE='#' 32598 XML_DELEGATE_FALSE= 32599fi 32600 32601 32602 32603 32604 32605# Substitute compiler name to build/link PerlMagick 32606# 32607 32608 32609# 32610# Configure install Paths 32611# 32612 32613# Path to ImageMagick header files 32614INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 32615INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" 32616DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" 32617case "${build_os}" in 32618 mingw* ) 32619 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 32620 ;; 32621esac 32622 32623cat >>confdefs.h <<_ACEOF 32624#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" 32625_ACEOF 32626 32627 32628 32629# Path to ImageMagick header files (arch part) 32630INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 32631DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 32632case "${build_os}" in 32633 mingw* ) 32634 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` 32635 ;; 32636esac 32637 32638cat >>confdefs.h <<_ACEOF 32639#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH" 32640_ACEOF 32641 32642 32643 32644# Subdirectory under lib to place ImageMagick lib files 32645LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 32646 32647cat >>confdefs.h <<_ACEOF 32648#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" 32649_ACEOF 32650 32651 32652# Path to ImageMagick bin directory 32653EXECUTABLE_PATH="${BIN_DIR}" 32654DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 32655case "${build_os}" in 32656 mingw* ) 32657 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 32658 ;; 32659esac 32660 32661cat >>confdefs.h <<_ACEOF 32662#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" 32663_ACEOF 32664 32665 32666 32667# Path to ImageMagick lib 32668LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 32669DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 32670case "${build_os}" in 32671 mingw* ) 32672 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 32673 ;; 32674esac 32675 32676cat >>confdefs.h <<_ACEOF 32677#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" 32678_ACEOF 32679 32680 32681 32682# 32683# path to local binaries 32684if test "x$LIB_BIN_BASEDIRNAME" = "x"; then 32685 LIB_BIN_BASEDIRNAME="bin" 32686fi 32687 32688cat >>confdefs.h <<_ACEOF 32689#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME" 32690_ACEOF 32691 32692 32693 32694if test "x$LIB_BIN_DIR" = "x"; then 32695 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32696fi 32697 32698 32699LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR 32700 32701LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}" 32702 32703 32704# 32705# path to modules lib 32706if test "x$MODULES_BASEDIRNAME" = "x"; then 32707 MODULES_BASEDIRNAME="modules" 32708fi 32709 32710cat >>confdefs.h <<_ACEOF 32711#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" 32712_ACEOF 32713 32714 32715 32716if test "x$MODULES_DIRNAME" = "x"; then 32717 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32718else 32719 32720cat >>confdefs.h <<_ACEOF 32721#define MODULES_DIRNAME "$MODULES_DIRNAME" 32722_ACEOF 32723 32724fi 32725 32726 32727MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 32728 32729MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 32730 32731 32732# 32733# path to coders lib 32734if test "x$CODER_DIRNAME" = "x"; then 32735 CODER_DIRNAME="coders" 32736fi 32737 32738cat >>confdefs.h <<_ACEOF 32739#define CODER_DIRNAME "$CODER_DIRNAME" 32740_ACEOF 32741 32742 32743 32744CODER_RELATIVE_PATH="${CODER_DIRNAME}" 32745CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 32746 32747 32748# 32749# Subdirectory under lib to place ImageMagick filter module files 32750# 32751# path to coders lib 32752if test "x$FILTER_DIRNAME" = "x"; then 32753 FILTER_DIRNAME="filters" 32754fi 32755 32756cat >>confdefs.h <<_ACEOF 32757#define FILTER_DIRNAME "$FILTER_DIRNAME" 32758_ACEOF 32759 32760 32761 32762FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 32763FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 32764 32765 32766# 32767# Path to ImageMagick documentation files 32768DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 32769DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 32770DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 32771case "${build_os}" in 32772 mingw* ) 32773 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 32774 ;; 32775esac 32776 32777cat >>confdefs.h <<_ACEOF 32778#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" 32779_ACEOF 32780 32781 32782 32783# 32784# Enable/Disable documentation 32785# Check whether --enable-docs was given. 32786if test "${enable_docs+set}" = set; then : 32787 enableval=$enable_docs; wantdocs=$enableval 32788else 32789 wantdocs=yes 32790fi 32791 32792 if test "$wantdocs" = "yes"; then 32793 INSTALL_DOC_TRUE= 32794 INSTALL_DOC_FALSE='#' 32795else 32796 INSTALL_DOC_TRUE='#' 32797 INSTALL_DOC_FALSE= 32798fi 32799 32800 32801# Subdirectory to place architecture-dependent configuration files 32802CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 32803 32804cat >>confdefs.h <<_ACEOF 32805#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" 32806_ACEOF 32807 32808CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 32809DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 32810case "${build_os}" in 32811 mingw* ) 32812 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 32813 ;; 32814esac 32815 32816cat >>confdefs.h <<_ACEOF 32817#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" 32818_ACEOF 32819 32820 32821 32822# Subdirectory to place architecture-independent configuration files 32823SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 32824 32825cat >>confdefs.h <<_ACEOF 32826#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" 32827_ACEOF 32828 32829SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 32830DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 32831case "${build_os}" in 32832 mingw* ) 32833 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 32834 ;; 32835esac 32836 32837cat >>confdefs.h <<_ACEOF 32838#define SHARE_PATH "$DEFINE_SHARE_PATH" 32839_ACEOF 32840 32841 32842 32843# 32844# Subdirectory to place architecture-dependent configuration files. 32845if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 32846 SHAREARCH_BASEDIRNAME="config" 32847fi 32848 32849cat >>confdefs.h <<_ACEOF 32850#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" 32851_ACEOF 32852 32853 32854 32855if test "x$SHAREARCH_DIRNAME" = "x"; then 32856 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32857else 32858 32859cat >>confdefs.h <<_ACEOF 32860#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" 32861_ACEOF 32862 32863fi 32864 32865 32866SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 32867 32868SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 32869 32870 32871# 32872# program_transform_name is formed for use in a Makefile, so create a 32873# modified version for use in a shell script. 32874configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 32875 32876# Default delegate definitions 32877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32878$as_echo "-------------------------------------------------------------" >&6; } 32879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 32880$as_echo_n "checking for ImageMagick delegate programs... " >&6; } 32881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32882$as_echo "" >&6; } 32883AutotraceDecodeDelegateDefault='autotrace' 32884BPGDecodeDelegateDefault='bpgdec' 32885BPGEncodeDelegateDefault='bpgenc' 32886BlenderDecodeDelegateDefault='blender' 32887BZIPDelegateDefault='bzip2' 32888BrowseDelegateDefault='xdg-open' 32889CatDelegateDefault='cat' 32890DNGDecodeDelegateDefault='ufraw-batch' 32891DOCDecodeDelegateDefault='soffice' 32892GVCDecodeDelegateDefault='dot' 32893DVIDecodeDelegateDefault='dvips' 32894EchoDelegateDefault='echo' 32895EditorDelegateDefault='xterm' 32896ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` 32897DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` 32898MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` 32899GnuplotDecodeDelegateDefault='gnuplot' 32900HPGLDecodeDelegateDefault='hp2xx' 32901HTMLDecodeDelegateDefault='html2ps' 32902ILBMDecodeDelegateDefault='ilbmtoppm' 32903ILBMEncodeDelegateDefault='ppmtoilbm' 32904JXRDecodeDelegateDefault='JxrDecApp' 32905JXREncodeDelegateDefault='JxrEncApp' 32906LPDelegateDefault='lp' 32907LPRDelegateDefault='lpr' 32908LaunchDelegateDefault='gimp' 32909MANDelegateDefault='groff' 32910MPEGDecodeDelegateDefault='avconv' 32911MPEGEncodeDelegateDefault='avconv' 32912MrSIDDecodeDelegateDefault='mrsidgeodecode' 32913MVDelegateDefault='mv' 32914PCLDelegateDefault='pcl6' 32915PGPDecodeDelegateDefault='pgpv' 32916POVDelegateDefault='povray' 32917if test "$native_win32_build" = 'yes'; then 32918 PSDelegateDefault='gswin32c' 32919elif test "$gslib_framework" = 'yes'; then 32920 PSDelegateDefault='gsc' 32921else 32922 PSDelegateDefault='gs' 32923fi 32924RLEEncodeDelegateDefault='rawtorle' 32925RMDelegateDefault='rm' 32926RSVGDecodeDelegateDefault='rsvg-convert' 32927SCANDecodeDelegateDefault='scanimage' 32928SVGDecodeDelegateDefault='inkscape' 32929TXTDelegateDefault='enscript' 32930UniconvertorDelegateDefault='uniconvertor' 32931WebPDecodeDelegateDefault='dwebp' 32932WebPEncodeDelegateDefault='cwebp' 32933WMFDecodeDelegateDefault='wmf2eps' 32934WWWDecodeDelegateDefault='curl' 32935XPSDelegateDefault='gxps' 32936ZipDelegateDefault='gzip' 32937 32938# Search for delegates 32939# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. 32940set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 32941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32942$as_echo_n "checking for $ac_word... " >&6; } 32943if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : 32944 $as_echo_n "(cached) " >&6 32945else 32946 case $AutotraceDecodeDelegate in 32947 [\\/]* | ?:[\\/]*) 32948 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. 32949 ;; 32950 *) 32951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32952for as_dir in $PATH 32953do 32954 IFS=$as_save_IFS 32955 test -z "$as_dir" && as_dir=. 32956 for ac_exec_ext in '' $ac_executable_extensions; do 32957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32958 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32960 break 2 32961 fi 32962done 32963 done 32964IFS=$as_save_IFS 32965 32966 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" 32967 ;; 32968esac 32969fi 32970AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate 32971if test -n "$AutotraceDecodeDelegate"; then 32972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 32973$as_echo "$AutotraceDecodeDelegate" >&6; } 32974else 32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32976$as_echo "no" >&6; } 32977fi 32978 32979 32980# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args. 32981set dummy "$BGPDecodeDelegateDefault"; ac_word=$2 32982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32983$as_echo_n "checking for $ac_word... " >&6; } 32984if ${ac_cv_path_BGPDecodeDelegate+:} false; then : 32985 $as_echo_n "(cached) " >&6 32986else 32987 case $BGPDecodeDelegate in 32988 [\\/]* | ?:[\\/]*) 32989 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path. 32990 ;; 32991 *) 32992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32993for as_dir in $PATH 32994do 32995 IFS=$as_save_IFS 32996 test -z "$as_dir" && as_dir=. 32997 for ac_exec_ext in '' $ac_executable_extensions; do 32998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32999 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33001 break 2 33002 fi 33003done 33004 done 33005IFS=$as_save_IFS 33006 33007 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault"" 33008 ;; 33009esac 33010fi 33011BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate 33012if test -n "$BGPDecodeDelegate"; then 33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5 33014$as_echo "$BGPDecodeDelegate" >&6; } 33015else 33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33017$as_echo "no" >&6; } 33018fi 33019 33020 33021# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args. 33022set dummy "$BGPEncodeDelegateDefault"; ac_word=$2 33023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33024$as_echo_n "checking for $ac_word... " >&6; } 33025if ${ac_cv_path_BGPEncodeDelegate+:} false; then : 33026 $as_echo_n "(cached) " >&6 33027else 33028 case $BGPEncodeDelegate in 33029 [\\/]* | ?:[\\/]*) 33030 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path. 33031 ;; 33032 *) 33033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33034for as_dir in $PATH 33035do 33036 IFS=$as_save_IFS 33037 test -z "$as_dir" && as_dir=. 33038 for ac_exec_ext in '' $ac_executable_extensions; do 33039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33040 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33042 break 2 33043 fi 33044done 33045 done 33046IFS=$as_save_IFS 33047 33048 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault"" 33049 ;; 33050esac 33051fi 33052BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate 33053if test -n "$BGPEncodeDelegate"; then 33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5 33055$as_echo "$BGPEncodeDelegate" >&6; } 33056else 33057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33058$as_echo "no" >&6; } 33059fi 33060 33061 33062# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. 33063set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 33064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33065$as_echo_n "checking for $ac_word... " >&6; } 33066if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : 33067 $as_echo_n "(cached) " >&6 33068else 33069 case $BlenderDecodeDelegate in 33070 [\\/]* | ?:[\\/]*) 33071 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. 33072 ;; 33073 *) 33074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33075for as_dir in $PATH 33076do 33077 IFS=$as_save_IFS 33078 test -z "$as_dir" && as_dir=. 33079 for ac_exec_ext in '' $ac_executable_extensions; do 33080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33081 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33083 break 2 33084 fi 33085done 33086 done 33087IFS=$as_save_IFS 33088 33089 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" 33090 ;; 33091esac 33092fi 33093BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate 33094if test -n "$BlenderDecodeDelegate"; then 33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 33096$as_echo "$BlenderDecodeDelegate" >&6; } 33097else 33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33099$as_echo "no" >&6; } 33100fi 33101 33102 33103# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. 33104set dummy "$BZIPDelegateDefault"; ac_word=$2 33105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33106$as_echo_n "checking for $ac_word... " >&6; } 33107if ${ac_cv_path_BZIPDelegate+:} false; then : 33108 $as_echo_n "(cached) " >&6 33109else 33110 case $BZIPDelegate in 33111 [\\/]* | ?:[\\/]*) 33112 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. 33113 ;; 33114 *) 33115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33116for as_dir in $PATH 33117do 33118 IFS=$as_save_IFS 33119 test -z "$as_dir" && as_dir=. 33120 for ac_exec_ext in '' $ac_executable_extensions; do 33121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33122 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" 33123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33124 break 2 33125 fi 33126done 33127 done 33128IFS=$as_save_IFS 33129 33130 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" 33131 ;; 33132esac 33133fi 33134BZIPDelegate=$ac_cv_path_BZIPDelegate 33135if test -n "$BZIPDelegate"; then 33136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 33137$as_echo "$BZIPDelegate" >&6; } 33138else 33139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33140$as_echo "no" >&6; } 33141fi 33142 33143 33144for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx 33145do 33146 # Extract the first word of "$ac_prog", so it can be a program name with args. 33147set dummy $ac_prog; ac_word=$2 33148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33149$as_echo_n "checking for $ac_word... " >&6; } 33150if ${ac_cv_path_BrowseDelegate+:} false; then : 33151 $as_echo_n "(cached) " >&6 33152else 33153 case $BrowseDelegate in 33154 [\\/]* | ?:[\\/]*) 33155 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. 33156 ;; 33157 *) 33158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33159for as_dir in $PATH 33160do 33161 IFS=$as_save_IFS 33162 test -z "$as_dir" && as_dir=. 33163 for ac_exec_ext in '' $ac_executable_extensions; do 33164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33165 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" 33166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33167 break 2 33168 fi 33169done 33170 done 33171IFS=$as_save_IFS 33172 33173 ;; 33174esac 33175fi 33176BrowseDelegate=$ac_cv_path_BrowseDelegate 33177if test -n "$BrowseDelegate"; then 33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 33179$as_echo "$BrowseDelegate" >&6; } 33180else 33181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33182$as_echo "no" >&6; } 33183fi 33184 33185 33186 test -n "$BrowseDelegate" && break 33187done 33188test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" 33189 33190# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. 33191set dummy "$CatDelegateDefault"; ac_word=$2 33192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33193$as_echo_n "checking for $ac_word... " >&6; } 33194if ${ac_cv_path_CatDelegate+:} false; then : 33195 $as_echo_n "(cached) " >&6 33196else 33197 case $CatDelegate in 33198 [\\/]* | ?:[\\/]*) 33199 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. 33200 ;; 33201 *) 33202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33203for as_dir in $PATH 33204do 33205 IFS=$as_save_IFS 33206 test -z "$as_dir" && as_dir=. 33207 for ac_exec_ext in '' $ac_executable_extensions; do 33208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33209 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" 33210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33211 break 2 33212 fi 33213done 33214 done 33215IFS=$as_save_IFS 33216 33217 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" 33218 ;; 33219esac 33220fi 33221CatDelegate=$ac_cv_path_CatDelegate 33222if test -n "$CatDelegate"; then 33223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 33224$as_echo "$CatDelegate" >&6; } 33225else 33226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33227$as_echo "no" >&6; } 33228fi 33229 33230 33231# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. 33232set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 33233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33234$as_echo_n "checking for $ac_word... " >&6; } 33235if ${ac_cv_path_DNGDecodeDelegate+:} false; then : 33236 $as_echo_n "(cached) " >&6 33237else 33238 case $DNGDecodeDelegate in 33239 [\\/]* | ?:[\\/]*) 33240 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. 33241 ;; 33242 *) 33243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33244for as_dir in $PATH 33245do 33246 IFS=$as_save_IFS 33247 test -z "$as_dir" && as_dir=. 33248 for ac_exec_ext in '' $ac_executable_extensions; do 33249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33250 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33252 break 2 33253 fi 33254done 33255 done 33256IFS=$as_save_IFS 33257 33258 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" 33259 ;; 33260esac 33261fi 33262DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate 33263if test -n "$DNGDecodeDelegate"; then 33264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 33265$as_echo "$DNGDecodeDelegate" >&6; } 33266else 33267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33268$as_echo "no" >&6; } 33269fi 33270 33271 33272# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args. 33273set dummy "$DOCDecodeDelegateDefault"; ac_word=$2 33274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33275$as_echo_n "checking for $ac_word... " >&6; } 33276if ${ac_cv_path_DOCDecodeDelegate+:} false; then : 33277 $as_echo_n "(cached) " >&6 33278else 33279 case $DOCDecodeDelegate in 33280 [\\/]* | ?:[\\/]*) 33281 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path. 33282 ;; 33283 *) 33284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33285for as_dir in $PATH 33286do 33287 IFS=$as_save_IFS 33288 test -z "$as_dir" && as_dir=. 33289 for ac_exec_ext in '' $ac_executable_extensions; do 33290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33291 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33293 break 2 33294 fi 33295done 33296 done 33297IFS=$as_save_IFS 33298 33299 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault"" 33300 ;; 33301esac 33302fi 33303DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate 33304if test -n "$DOCDecodeDelegate"; then 33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5 33306$as_echo "$DOCDecodeDelegate" >&6; } 33307else 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33309$as_echo "no" >&6; } 33310fi 33311 33312 33313# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. 33314set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 33315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33316$as_echo_n "checking for $ac_word... " >&6; } 33317if ${ac_cv_path_DVIDecodeDelegate+:} false; then : 33318 $as_echo_n "(cached) " >&6 33319else 33320 case $DVIDecodeDelegate in 33321 [\\/]* | ?:[\\/]*) 33322 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. 33323 ;; 33324 *) 33325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33326for as_dir in $PATH 33327do 33328 IFS=$as_save_IFS 33329 test -z "$as_dir" && as_dir=. 33330 for ac_exec_ext in '' $ac_executable_extensions; do 33331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33332 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33334 break 2 33335 fi 33336done 33337 done 33338IFS=$as_save_IFS 33339 33340 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" 33341 ;; 33342esac 33343fi 33344DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate 33345if test -n "$DVIDecodeDelegate"; then 33346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 33347$as_echo "$DVIDecodeDelegate" >&6; } 33348else 33349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33350$as_echo "no" >&6; } 33351fi 33352 33353 33354# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. 33355set dummy "$ConvertDelegateDefault"; ac_word=$2 33356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33357$as_echo_n "checking for $ac_word... " >&6; } 33358if ${ac_cv_path_ConvertDelegate+:} false; then : 33359 $as_echo_n "(cached) " >&6 33360else 33361 case $ConvertDelegate in 33362 [\\/]* | ?:[\\/]*) 33363 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. 33364 ;; 33365 *) 33366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33367for as_dir in $PATH 33368do 33369 IFS=$as_save_IFS 33370 test -z "$as_dir" && as_dir=. 33371 for ac_exec_ext in '' $ac_executable_extensions; do 33372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33373 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" 33374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33375 break 2 33376 fi 33377done 33378 done 33379IFS=$as_save_IFS 33380 33381 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" 33382 ;; 33383esac 33384fi 33385ConvertDelegate=$ac_cv_path_ConvertDelegate 33386if test -n "$ConvertDelegate"; then 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 33388$as_echo "$ConvertDelegate" >&6; } 33389else 33390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33391$as_echo "no" >&6; } 33392fi 33393 33394 33395# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. 33396set dummy "$DisplayDelegateDefault"; ac_word=$2 33397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33398$as_echo_n "checking for $ac_word... " >&6; } 33399if ${ac_cv_path_DisplayDelegate+:} false; then : 33400 $as_echo_n "(cached) " >&6 33401else 33402 case $DisplayDelegate in 33403 [\\/]* | ?:[\\/]*) 33404 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. 33405 ;; 33406 *) 33407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33408for as_dir in $PATH 33409do 33410 IFS=$as_save_IFS 33411 test -z "$as_dir" && as_dir=. 33412 for ac_exec_ext in '' $ac_executable_extensions; do 33413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33414 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" 33415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33416 break 2 33417 fi 33418done 33419 done 33420IFS=$as_save_IFS 33421 33422 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" 33423 ;; 33424esac 33425fi 33426DisplayDelegate=$ac_cv_path_DisplayDelegate 33427if test -n "$DisplayDelegate"; then 33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 33429$as_echo "$DisplayDelegate" >&6; } 33430else 33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33432$as_echo "no" >&6; } 33433fi 33434 33435 33436# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. 33437set dummy "$EchoDelegateDefault"; ac_word=$2 33438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33439$as_echo_n "checking for $ac_word... " >&6; } 33440if ${ac_cv_path_EchoDelegate+:} false; then : 33441 $as_echo_n "(cached) " >&6 33442else 33443 case $EchoDelegate in 33444 [\\/]* | ?:[\\/]*) 33445 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. 33446 ;; 33447 *) 33448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33449for as_dir in $PATH 33450do 33451 IFS=$as_save_IFS 33452 test -z "$as_dir" && as_dir=. 33453 for ac_exec_ext in '' $ac_executable_extensions; do 33454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33455 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" 33456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33457 break 2 33458 fi 33459done 33460 done 33461IFS=$as_save_IFS 33462 33463 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" 33464 ;; 33465esac 33466fi 33467EchoDelegate=$ac_cv_path_EchoDelegate 33468if test -n "$EchoDelegate"; then 33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 33470$as_echo "$EchoDelegate" >&6; } 33471else 33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33473$as_echo "no" >&6; } 33474fi 33475 33476 33477# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. 33478set dummy "$EditorDelegateDefault"; ac_word=$2 33479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33480$as_echo_n "checking for $ac_word... " >&6; } 33481if ${ac_cv_path_EditorDelegate+:} false; then : 33482 $as_echo_n "(cached) " >&6 33483else 33484 case $EditorDelegate in 33485 [\\/]* | ?:[\\/]*) 33486 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. 33487 ;; 33488 *) 33489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33490for as_dir in $PATH 33491do 33492 IFS=$as_save_IFS 33493 test -z "$as_dir" && as_dir=. 33494 for ac_exec_ext in '' $ac_executable_extensions; do 33495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33496 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" 33497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33498 break 2 33499 fi 33500done 33501 done 33502IFS=$as_save_IFS 33503 33504 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" 33505 ;; 33506esac 33507fi 33508EditorDelegate=$ac_cv_path_EditorDelegate 33509if test -n "$EditorDelegate"; then 33510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 33511$as_echo "$EditorDelegate" >&6; } 33512else 33513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33514$as_echo "no" >&6; } 33515fi 33516 33517 33518# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. 33519set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 33520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33521$as_echo_n "checking for $ac_word... " >&6; } 33522if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : 33523 $as_echo_n "(cached) " >&6 33524else 33525 case $GnuplotDecodeDelegate in 33526 [\\/]* | ?:[\\/]*) 33527 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. 33528 ;; 33529 *) 33530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33531for as_dir in $PATH 33532do 33533 IFS=$as_save_IFS 33534 test -z "$as_dir" && as_dir=. 33535 for ac_exec_ext in '' $ac_executable_extensions; do 33536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33537 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33539 break 2 33540 fi 33541done 33542 done 33543IFS=$as_save_IFS 33544 33545 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" 33546 ;; 33547esac 33548fi 33549GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate 33550if test -n "$GnuplotDecodeDelegate"; then 33551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 33552$as_echo "$GnuplotDecodeDelegate" >&6; } 33553else 33554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33555$as_echo "no" >&6; } 33556fi 33557 33558 33559# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. 33560set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 33561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33562$as_echo_n "checking for $ac_word... " >&6; } 33563if ${ac_cv_path_GVCDecodeDelegate+:} false; then : 33564 $as_echo_n "(cached) " >&6 33565else 33566 case $GVCDecodeDelegate in 33567 [\\/]* | ?:[\\/]*) 33568 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. 33569 ;; 33570 *) 33571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33572for as_dir in $PATH 33573do 33574 IFS=$as_save_IFS 33575 test -z "$as_dir" && as_dir=. 33576 for ac_exec_ext in '' $ac_executable_extensions; do 33577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33578 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33580 break 2 33581 fi 33582done 33583 done 33584IFS=$as_save_IFS 33585 33586 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" 33587 ;; 33588esac 33589fi 33590GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate 33591if test -n "$GVCDecodeDelegate"; then 33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 33593$as_echo "$GVCDecodeDelegate" >&6; } 33594else 33595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33596$as_echo "no" >&6; } 33597fi 33598 33599 33600# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. 33601set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 33602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33603$as_echo_n "checking for $ac_word... " >&6; } 33604if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : 33605 $as_echo_n "(cached) " >&6 33606else 33607 case $HPGLDecodeDelegate in 33608 [\\/]* | ?:[\\/]*) 33609 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. 33610 ;; 33611 *) 33612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33613for as_dir in $PATH 33614do 33615 IFS=$as_save_IFS 33616 test -z "$as_dir" && as_dir=. 33617 for ac_exec_ext in '' $ac_executable_extensions; do 33618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33619 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33621 break 2 33622 fi 33623done 33624 done 33625IFS=$as_save_IFS 33626 33627 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" 33628 ;; 33629esac 33630fi 33631HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate 33632if test -n "$HPGLDecodeDelegate"; then 33633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 33634$as_echo "$HPGLDecodeDelegate" >&6; } 33635else 33636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33637$as_echo "no" >&6; } 33638fi 33639 33640 33641# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. 33642set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 33643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33644$as_echo_n "checking for $ac_word... " >&6; } 33645if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : 33646 $as_echo_n "(cached) " >&6 33647else 33648 case $HTMLDecodeDelegate in 33649 [\\/]* | ?:[\\/]*) 33650 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. 33651 ;; 33652 *) 33653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33654for as_dir in $PATH 33655do 33656 IFS=$as_save_IFS 33657 test -z "$as_dir" && as_dir=. 33658 for ac_exec_ext in '' $ac_executable_extensions; do 33659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33660 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33662 break 2 33663 fi 33664done 33665 done 33666IFS=$as_save_IFS 33667 33668 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" 33669 ;; 33670esac 33671fi 33672HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate 33673if test -n "$HTMLDecodeDelegate"; then 33674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 33675$as_echo "$HTMLDecodeDelegate" >&6; } 33676else 33677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33678$as_echo "no" >&6; } 33679fi 33680 33681 33682# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. 33683set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 33684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33685$as_echo_n "checking for $ac_word... " >&6; } 33686if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : 33687 $as_echo_n "(cached) " >&6 33688else 33689 case $ILBMDecodeDelegate in 33690 [\\/]* | ?:[\\/]*) 33691 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. 33692 ;; 33693 *) 33694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33695for as_dir in $PATH 33696do 33697 IFS=$as_save_IFS 33698 test -z "$as_dir" && as_dir=. 33699 for ac_exec_ext in '' $ac_executable_extensions; do 33700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33701 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33703 break 2 33704 fi 33705done 33706 done 33707IFS=$as_save_IFS 33708 33709 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" 33710 ;; 33711esac 33712fi 33713ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate 33714if test -n "$ILBMDecodeDelegate"; then 33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 33716$as_echo "$ILBMDecodeDelegate" >&6; } 33717else 33718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33719$as_echo "no" >&6; } 33720fi 33721 33722 33723# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. 33724set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 33725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33726$as_echo_n "checking for $ac_word... " >&6; } 33727if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : 33728 $as_echo_n "(cached) " >&6 33729else 33730 case $ILBMEncodeDelegate in 33731 [\\/]* | ?:[\\/]*) 33732 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. 33733 ;; 33734 *) 33735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33736for as_dir in $PATH 33737do 33738 IFS=$as_save_IFS 33739 test -z "$as_dir" && as_dir=. 33740 for ac_exec_ext in '' $ac_executable_extensions; do 33741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33742 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33744 break 2 33745 fi 33746done 33747 done 33748IFS=$as_save_IFS 33749 33750 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" 33751 ;; 33752esac 33753fi 33754ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate 33755if test -n "$ILBMEncodeDelegate"; then 33756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 33757$as_echo "$ILBMEncodeDelegate" >&6; } 33758else 33759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33760$as_echo "no" >&6; } 33761fi 33762 33763 33764# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args. 33765set dummy "$JXRDecodeDelegateDefault"; ac_word=$2 33766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33767$as_echo_n "checking for $ac_word... " >&6; } 33768if ${ac_cv_path_JXRDecodeDelegate+:} false; then : 33769 $as_echo_n "(cached) " >&6 33770else 33771 case $JXRDecodeDelegate in 33772 [\\/]* | ?:[\\/]*) 33773 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path. 33774 ;; 33775 *) 33776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33777for as_dir in $PATH 33778do 33779 IFS=$as_save_IFS 33780 test -z "$as_dir" && as_dir=. 33781 for ac_exec_ext in '' $ac_executable_extensions; do 33782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33783 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33785 break 2 33786 fi 33787done 33788 done 33789IFS=$as_save_IFS 33790 33791 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault"" 33792 ;; 33793esac 33794fi 33795JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate 33796if test -n "$JXRDecodeDelegate"; then 33797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5 33798$as_echo "$JXRDecodeDelegate" >&6; } 33799else 33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33801$as_echo "no" >&6; } 33802fi 33803 33804 33805# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args. 33806set dummy "$JXREncodeDelegateDefault"; ac_word=$2 33807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33808$as_echo_n "checking for $ac_word... " >&6; } 33809if ${ac_cv_path_JXREncodeDelegate+:} false; then : 33810 $as_echo_n "(cached) " >&6 33811else 33812 case $JXREncodeDelegate in 33813 [\\/]* | ?:[\\/]*) 33814 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path. 33815 ;; 33816 *) 33817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33818for as_dir in $PATH 33819do 33820 IFS=$as_save_IFS 33821 test -z "$as_dir" && as_dir=. 33822 for ac_exec_ext in '' $ac_executable_extensions; do 33823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33824 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33826 break 2 33827 fi 33828done 33829 done 33830IFS=$as_save_IFS 33831 33832 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault"" 33833 ;; 33834esac 33835fi 33836JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate 33837if test -n "$JXREncodeDelegate"; then 33838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5 33839$as_echo "$JXREncodeDelegate" >&6; } 33840else 33841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33842$as_echo "no" >&6; } 33843fi 33844 33845 33846# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. 33847set dummy "$LPDelegateDefault"; ac_word=$2 33848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33849$as_echo_n "checking for $ac_word... " >&6; } 33850if ${ac_cv_path_LPDelegate+:} false; then : 33851 $as_echo_n "(cached) " >&6 33852else 33853 case $LPDelegate in 33854 [\\/]* | ?:[\\/]*) 33855 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. 33856 ;; 33857 *) 33858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33859for as_dir in $PATH 33860do 33861 IFS=$as_save_IFS 33862 test -z "$as_dir" && as_dir=. 33863 for ac_exec_ext in '' $ac_executable_extensions; do 33864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33865 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" 33866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33867 break 2 33868 fi 33869done 33870 done 33871IFS=$as_save_IFS 33872 33873 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" 33874 ;; 33875esac 33876fi 33877LPDelegate=$ac_cv_path_LPDelegate 33878if test -n "$LPDelegate"; then 33879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 33880$as_echo "$LPDelegate" >&6; } 33881else 33882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33883$as_echo "no" >&6; } 33884fi 33885 33886 33887# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. 33888set dummy "$LPRDelegateDefault"; ac_word=$2 33889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33890$as_echo_n "checking for $ac_word... " >&6; } 33891if ${ac_cv_path_LPRDelegate+:} false; then : 33892 $as_echo_n "(cached) " >&6 33893else 33894 case $LPRDelegate in 33895 [\\/]* | ?:[\\/]*) 33896 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. 33897 ;; 33898 *) 33899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33900for as_dir in $PATH 33901do 33902 IFS=$as_save_IFS 33903 test -z "$as_dir" && as_dir=. 33904 for ac_exec_ext in '' $ac_executable_extensions; do 33905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33906 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" 33907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33908 break 2 33909 fi 33910done 33911 done 33912IFS=$as_save_IFS 33913 33914 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" 33915 ;; 33916esac 33917fi 33918LPRDelegate=$ac_cv_path_LPRDelegate 33919if test -n "$LPRDelegate"; then 33920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 33921$as_echo "$LPRDelegate" >&6; } 33922else 33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33924$as_echo "no" >&6; } 33925fi 33926 33927 33928# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. 33929set dummy "$LaunchDelegateDefault"; ac_word=$2 33930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33931$as_echo_n "checking for $ac_word... " >&6; } 33932if ${ac_cv_path_LaunchDelegate+:} false; then : 33933 $as_echo_n "(cached) " >&6 33934else 33935 case $LaunchDelegate in 33936 [\\/]* | ?:[\\/]*) 33937 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. 33938 ;; 33939 *) 33940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33941for as_dir in $PATH 33942do 33943 IFS=$as_save_IFS 33944 test -z "$as_dir" && as_dir=. 33945 for ac_exec_ext in '' $ac_executable_extensions; do 33946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33947 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" 33948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33949 break 2 33950 fi 33951done 33952 done 33953IFS=$as_save_IFS 33954 33955 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" 33956 ;; 33957esac 33958fi 33959LaunchDelegate=$ac_cv_path_LaunchDelegate 33960if test -n "$LaunchDelegate"; then 33961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 33962$as_echo "$LaunchDelegate" >&6; } 33963else 33964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33965$as_echo "no" >&6; } 33966fi 33967 33968 33969# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. 33970set dummy "$MANDelegateDefault"; ac_word=$2 33971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33972$as_echo_n "checking for $ac_word... " >&6; } 33973if ${ac_cv_path_MANDelegate+:} false; then : 33974 $as_echo_n "(cached) " >&6 33975else 33976 case $MANDelegate in 33977 [\\/]* | ?:[\\/]*) 33978 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. 33979 ;; 33980 *) 33981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33982for as_dir in $PATH 33983do 33984 IFS=$as_save_IFS 33985 test -z "$as_dir" && as_dir=. 33986 for ac_exec_ext in '' $ac_executable_extensions; do 33987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33988 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" 33989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33990 break 2 33991 fi 33992done 33993 done 33994IFS=$as_save_IFS 33995 33996 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" 33997 ;; 33998esac 33999fi 34000MANDelegate=$ac_cv_path_MANDelegate 34001if test -n "$MANDelegate"; then 34002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 34003$as_echo "$MANDelegate" >&6; } 34004else 34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34006$as_echo "no" >&6; } 34007fi 34008 34009 34010# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. 34011set dummy "$MogrifyDelegateDefault"; ac_word=$2 34012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34013$as_echo_n "checking for $ac_word... " >&6; } 34014if ${ac_cv_path_MogrifyDelegate+:} false; then : 34015 $as_echo_n "(cached) " >&6 34016else 34017 case $MogrifyDelegate in 34018 [\\/]* | ?:[\\/]*) 34019 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. 34020 ;; 34021 *) 34022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34023for as_dir in $PATH 34024do 34025 IFS=$as_save_IFS 34026 test -z "$as_dir" && as_dir=. 34027 for ac_exec_ext in '' $ac_executable_extensions; do 34028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34029 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" 34030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34031 break 2 34032 fi 34033done 34034 done 34035IFS=$as_save_IFS 34036 34037 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" 34038 ;; 34039esac 34040fi 34041MogrifyDelegate=$ac_cv_path_MogrifyDelegate 34042if test -n "$MogrifyDelegate"; then 34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 34044$as_echo "$MogrifyDelegate" >&6; } 34045else 34046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34047$as_echo "no" >&6; } 34048fi 34049 34050 34051# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 34052set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 34053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34054$as_echo_n "checking for $ac_word... " >&6; } 34055if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 34056 $as_echo_n "(cached) " >&6 34057else 34058 case $MPEGDecodeDelegate in 34059 [\\/]* | ?:[\\/]*) 34060 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 34061 ;; 34062 *) 34063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34064for as_dir in $PATH 34065do 34066 IFS=$as_save_IFS 34067 test -z "$as_dir" && as_dir=. 34068 for ac_exec_ext in '' $ac_executable_extensions; do 34069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34070 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34072 break 2 34073 fi 34074done 34075 done 34076IFS=$as_save_IFS 34077 34078 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 34079 ;; 34080esac 34081fi 34082MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 34083if test -n "$MPEGDecodeDelegate"; then 34084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 34085$as_echo "$MPEGDecodeDelegate" >&6; } 34086else 34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34088$as_echo "no" >&6; } 34089fi 34090 34091 34092if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then 34093 MPEGDecodeDelegateDefault='ffmpeg' 34094 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 34095set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 34096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34097$as_echo_n "checking for $ac_word... " >&6; } 34098if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 34099 $as_echo_n "(cached) " >&6 34100else 34101 case $MPEGDecodeDelegate in 34102 [\\/]* | ?:[\\/]*) 34103 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 34104 ;; 34105 *) 34106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34107for as_dir in $PATH 34108do 34109 IFS=$as_save_IFS 34110 test -z "$as_dir" && as_dir=. 34111 for ac_exec_ext in '' $ac_executable_extensions; do 34112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34113 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34115 break 2 34116 fi 34117done 34118 done 34119IFS=$as_save_IFS 34120 34121 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 34122 ;; 34123esac 34124fi 34125MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 34126if test -n "$MPEGDecodeDelegate"; then 34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 34128$as_echo "$MPEGDecodeDelegate" >&6; } 34129else 34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34131$as_echo "no" >&6; } 34132fi 34133 34134 34135fi; 34136# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 34137set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 34138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34139$as_echo_n "checking for $ac_word... " >&6; } 34140if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 34141 $as_echo_n "(cached) " >&6 34142else 34143 case $MPEGEncodeDelegate in 34144 [\\/]* | ?:[\\/]*) 34145 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 34146 ;; 34147 *) 34148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34149for as_dir in $PATH 34150do 34151 IFS=$as_save_IFS 34152 test -z "$as_dir" && as_dir=. 34153 for ac_exec_ext in '' $ac_executable_extensions; do 34154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34155 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34157 break 2 34158 fi 34159done 34160 done 34161IFS=$as_save_IFS 34162 34163 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 34164 ;; 34165esac 34166fi 34167MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 34168if test -n "$MPEGEncodeDelegate"; then 34169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 34170$as_echo "$MPEGEncodeDelegate" >&6; } 34171else 34172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34173$as_echo "no" >&6; } 34174fi 34175 34176 34177if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then 34178 MPEGEncodeDelegateDefault='ffmpeg' 34179 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 34180set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 34181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34182$as_echo_n "checking for $ac_word... " >&6; } 34183if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 34184 $as_echo_n "(cached) " >&6 34185else 34186 case $MPEGEncodeDelegate in 34187 [\\/]* | ?:[\\/]*) 34188 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 34189 ;; 34190 *) 34191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34192for as_dir in $PATH 34193do 34194 IFS=$as_save_IFS 34195 test -z "$as_dir" && as_dir=. 34196 for ac_exec_ext in '' $ac_executable_extensions; do 34197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34198 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34200 break 2 34201 fi 34202done 34203 done 34204IFS=$as_save_IFS 34205 34206 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 34207 ;; 34208esac 34209fi 34210MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 34211if test -n "$MPEGEncodeDelegate"; then 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 34213$as_echo "$MPEGEncodeDelegate" >&6; } 34214else 34215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34216$as_echo "no" >&6; } 34217fi 34218 34219 34220fi; 34221# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. 34222set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 34223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34224$as_echo_n "checking for $ac_word... " >&6; } 34225if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : 34226 $as_echo_n "(cached) " >&6 34227else 34228 case $MrSIDDecodeDelegate in 34229 [\\/]* | ?:[\\/]*) 34230 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. 34231 ;; 34232 *) 34233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34234for as_dir in $PATH 34235do 34236 IFS=$as_save_IFS 34237 test -z "$as_dir" && as_dir=. 34238 for ac_exec_ext in '' $ac_executable_extensions; do 34239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34240 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34242 break 2 34243 fi 34244done 34245 done 34246IFS=$as_save_IFS 34247 34248 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" 34249 ;; 34250esac 34251fi 34252MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate 34253if test -n "$MrSIDDecodeDelegate"; then 34254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 34255$as_echo "$MrSIDDecodeDelegate" >&6; } 34256else 34257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34258$as_echo "no" >&6; } 34259fi 34260 34261 34262# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. 34263set dummy "$MVDelegateDefault"; ac_word=$2 34264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34265$as_echo_n "checking for $ac_word... " >&6; } 34266if ${ac_cv_path_MVDelegate+:} false; then : 34267 $as_echo_n "(cached) " >&6 34268else 34269 case $MVDelegate in 34270 [\\/]* | ?:[\\/]*) 34271 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. 34272 ;; 34273 *) 34274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34275for as_dir in $PATH 34276do 34277 IFS=$as_save_IFS 34278 test -z "$as_dir" && as_dir=. 34279 for ac_exec_ext in '' $ac_executable_extensions; do 34280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34281 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" 34282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34283 break 2 34284 fi 34285done 34286 done 34287IFS=$as_save_IFS 34288 34289 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" 34290 ;; 34291esac 34292fi 34293MVDelegate=$ac_cv_path_MVDelegate 34294if test -n "$MVDelegate"; then 34295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 34296$as_echo "$MVDelegate" >&6; } 34297else 34298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34299$as_echo "no" >&6; } 34300fi 34301 34302 34303# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. 34304set dummy "$PCLDelegateDefault"; ac_word=$2 34305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34306$as_echo_n "checking for $ac_word... " >&6; } 34307if ${ac_cv_path_PCLDelegate+:} false; then : 34308 $as_echo_n "(cached) " >&6 34309else 34310 case $PCLDelegate in 34311 [\\/]* | ?:[\\/]*) 34312 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. 34313 ;; 34314 *) 34315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34316for as_dir in $PATH 34317do 34318 IFS=$as_save_IFS 34319 test -z "$as_dir" && as_dir=. 34320 for ac_exec_ext in '' $ac_executable_extensions; do 34321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34322 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" 34323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34324 break 2 34325 fi 34326done 34327 done 34328IFS=$as_save_IFS 34329 34330 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" 34331 ;; 34332esac 34333fi 34334PCLDelegate=$ac_cv_path_PCLDelegate 34335if test -n "$PCLDelegate"; then 34336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 34337$as_echo "$PCLDelegate" >&6; } 34338else 34339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34340$as_echo "no" >&6; } 34341fi 34342 34343 34344# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. 34345set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 34346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34347$as_echo_n "checking for $ac_word... " >&6; } 34348if ${ac_cv_path_PGPDecodeDelegate+:} false; then : 34349 $as_echo_n "(cached) " >&6 34350else 34351 case $PGPDecodeDelegate in 34352 [\\/]* | ?:[\\/]*) 34353 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. 34354 ;; 34355 *) 34356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34357for as_dir in $PATH 34358do 34359 IFS=$as_save_IFS 34360 test -z "$as_dir" && as_dir=. 34361 for ac_exec_ext in '' $ac_executable_extensions; do 34362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34363 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34365 break 2 34366 fi 34367done 34368 done 34369IFS=$as_save_IFS 34370 34371 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" 34372 ;; 34373esac 34374fi 34375PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate 34376if test -n "$PGPDecodeDelegate"; then 34377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 34378$as_echo "$PGPDecodeDelegate" >&6; } 34379else 34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34381$as_echo "no" >&6; } 34382fi 34383 34384 34385# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. 34386set dummy "$POVDelegateDefault"; ac_word=$2 34387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34388$as_echo_n "checking for $ac_word... " >&6; } 34389if ${ac_cv_path_POVDelegate+:} false; then : 34390 $as_echo_n "(cached) " >&6 34391else 34392 case $POVDelegate in 34393 [\\/]* | ?:[\\/]*) 34394 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. 34395 ;; 34396 *) 34397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34398for as_dir in $PATH 34399do 34400 IFS=$as_save_IFS 34401 test -z "$as_dir" && as_dir=. 34402 for ac_exec_ext in '' $ac_executable_extensions; do 34403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34404 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" 34405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34406 break 2 34407 fi 34408done 34409 done 34410IFS=$as_save_IFS 34411 34412 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" 34413 ;; 34414esac 34415fi 34416POVDelegate=$ac_cv_path_POVDelegate 34417if test -n "$POVDelegate"; then 34418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 34419$as_echo "$POVDelegate" >&6; } 34420else 34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34422$as_echo "no" >&6; } 34423fi 34424 34425 34426for ac_prog in gsx gsc "$PSDelegateDefault" 34427do 34428 # Extract the first word of "$ac_prog", so it can be a program name with args. 34429set dummy $ac_prog; ac_word=$2 34430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34431$as_echo_n "checking for $ac_word... " >&6; } 34432if ${ac_cv_path_PSDelegate+:} false; then : 34433 $as_echo_n "(cached) " >&6 34434else 34435 case $PSDelegate in 34436 [\\/]* | ?:[\\/]*) 34437 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. 34438 ;; 34439 *) 34440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34441for as_dir in $PATH 34442do 34443 IFS=$as_save_IFS 34444 test -z "$as_dir" && as_dir=. 34445 for ac_exec_ext in '' $ac_executable_extensions; do 34446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34447 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" 34448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34449 break 2 34450 fi 34451done 34452 done 34453IFS=$as_save_IFS 34454 34455 ;; 34456esac 34457fi 34458PSDelegate=$ac_cv_path_PSDelegate 34459if test -n "$PSDelegate"; then 34460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 34461$as_echo "$PSDelegate" >&6; } 34462else 34463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34464$as_echo "no" >&6; } 34465fi 34466 34467 34468 test -n "$PSDelegate" && break 34469done 34470test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" 34471 34472# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. 34473set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 34474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34475$as_echo_n "checking for $ac_word... " >&6; } 34476if ${ac_cv_path_RLEEncodeDelegate+:} false; then : 34477 $as_echo_n "(cached) " >&6 34478else 34479 case $RLEEncodeDelegate in 34480 [\\/]* | ?:[\\/]*) 34481 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. 34482 ;; 34483 *) 34484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34485for as_dir in $PATH 34486do 34487 IFS=$as_save_IFS 34488 test -z "$as_dir" && as_dir=. 34489 for ac_exec_ext in '' $ac_executable_extensions; do 34490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34491 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34493 break 2 34494 fi 34495done 34496 done 34497IFS=$as_save_IFS 34498 34499 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" 34500 ;; 34501esac 34502fi 34503RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate 34504if test -n "$RLEEncodeDelegate"; then 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 34506$as_echo "$RLEEncodeDelegate" >&6; } 34507else 34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34509$as_echo "no" >&6; } 34510fi 34511 34512 34513# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. 34514set dummy "$RMDelegateDefault"; ac_word=$2 34515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34516$as_echo_n "checking for $ac_word... " >&6; } 34517if ${ac_cv_path_RMDelegate+:} false; then : 34518 $as_echo_n "(cached) " >&6 34519else 34520 case $RMDelegate in 34521 [\\/]* | ?:[\\/]*) 34522 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. 34523 ;; 34524 *) 34525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34526for as_dir in $PATH 34527do 34528 IFS=$as_save_IFS 34529 test -z "$as_dir" && as_dir=. 34530 for ac_exec_ext in '' $ac_executable_extensions; do 34531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34532 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" 34533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34534 break 2 34535 fi 34536done 34537 done 34538IFS=$as_save_IFS 34539 34540 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" 34541 ;; 34542esac 34543fi 34544RMDelegate=$ac_cv_path_RMDelegate 34545if test -n "$RMDelegate"; then 34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 34547$as_echo "$RMDelegate" >&6; } 34548else 34549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34550$as_echo "no" >&6; } 34551fi 34552 34553 34554# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. 34555set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 34556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34557$as_echo_n "checking for $ac_word... " >&6; } 34558if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : 34559 $as_echo_n "(cached) " >&6 34560else 34561 case $RSVGDecodeDelegate in 34562 [\\/]* | ?:[\\/]*) 34563 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. 34564 ;; 34565 *) 34566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34567for as_dir in $PATH 34568do 34569 IFS=$as_save_IFS 34570 test -z "$as_dir" && as_dir=. 34571 for ac_exec_ext in '' $ac_executable_extensions; do 34572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34573 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34575 break 2 34576 fi 34577done 34578 done 34579IFS=$as_save_IFS 34580 34581 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" 34582 ;; 34583esac 34584fi 34585RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate 34586if test -n "$RSVGDecodeDelegate"; then 34587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 34588$as_echo "$RSVGDecodeDelegate" >&6; } 34589else 34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34591$as_echo "no" >&6; } 34592fi 34593 34594 34595# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. 34596set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 34597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34598$as_echo_n "checking for $ac_word... " >&6; } 34599if ${ac_cv_path_SCANDecodeDelegate+:} false; then : 34600 $as_echo_n "(cached) " >&6 34601else 34602 case $SCANDecodeDelegate in 34603 [\\/]* | ?:[\\/]*) 34604 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. 34605 ;; 34606 *) 34607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34608for as_dir in $PATH 34609do 34610 IFS=$as_save_IFS 34611 test -z "$as_dir" && as_dir=. 34612 for ac_exec_ext in '' $ac_executable_extensions; do 34613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34614 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34616 break 2 34617 fi 34618done 34619 done 34620IFS=$as_save_IFS 34621 34622 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" 34623 ;; 34624esac 34625fi 34626SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate 34627if test -n "$SCANDecodeDelegate"; then 34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 34629$as_echo "$SCANDecodeDelegate" >&6; } 34630else 34631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34632$as_echo "no" >&6; } 34633fi 34634 34635 34636# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. 34637set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 34638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34639$as_echo_n "checking for $ac_word... " >&6; } 34640if ${ac_cv_path_SVGDecodeDelegate+:} false; then : 34641 $as_echo_n "(cached) " >&6 34642else 34643 case $SVGDecodeDelegate in 34644 [\\/]* | ?:[\\/]*) 34645 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. 34646 ;; 34647 *) 34648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34649for as_dir in $PATH 34650do 34651 IFS=$as_save_IFS 34652 test -z "$as_dir" && as_dir=. 34653 for ac_exec_ext in '' $ac_executable_extensions; do 34654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34655 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34657 break 2 34658 fi 34659done 34660 done 34661IFS=$as_save_IFS 34662 34663 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" 34664 ;; 34665esac 34666fi 34667SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate 34668if test -n "$SVGDecodeDelegate"; then 34669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 34670$as_echo "$SVGDecodeDelegate" >&6; } 34671else 34672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34673$as_echo "no" >&6; } 34674fi 34675 34676 34677# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. 34678set dummy "$TXTDelegateDefault"; ac_word=$2 34679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34680$as_echo_n "checking for $ac_word... " >&6; } 34681if ${ac_cv_path_TXTDelegate+:} false; then : 34682 $as_echo_n "(cached) " >&6 34683else 34684 case $TXTDelegate in 34685 [\\/]* | ?:[\\/]*) 34686 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. 34687 ;; 34688 *) 34689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34690for as_dir in $PATH 34691do 34692 IFS=$as_save_IFS 34693 test -z "$as_dir" && as_dir=. 34694 for ac_exec_ext in '' $ac_executable_extensions; do 34695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34696 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" 34697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34698 break 2 34699 fi 34700done 34701 done 34702IFS=$as_save_IFS 34703 34704 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" 34705 ;; 34706esac 34707fi 34708TXTDelegate=$ac_cv_path_TXTDelegate 34709if test -n "$TXTDelegate"; then 34710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 34711$as_echo "$TXTDelegate" >&6; } 34712else 34713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34714$as_echo "no" >&6; } 34715fi 34716 34717 34718# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. 34719set dummy "$UniconvertorDelegateDefault"; ac_word=$2 34720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34721$as_echo_n "checking for $ac_word... " >&6; } 34722if ${ac_cv_path_UniconvertorDelegate+:} false; then : 34723 $as_echo_n "(cached) " >&6 34724else 34725 case $UniconvertorDelegate in 34726 [\\/]* | ?:[\\/]*) 34727 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. 34728 ;; 34729 *) 34730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34731for as_dir in $PATH 34732do 34733 IFS=$as_save_IFS 34734 test -z "$as_dir" && as_dir=. 34735 for ac_exec_ext in '' $ac_executable_extensions; do 34736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34737 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" 34738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34739 break 2 34740 fi 34741done 34742 done 34743IFS=$as_save_IFS 34744 34745 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" 34746 ;; 34747esac 34748fi 34749UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate 34750if test -n "$UniconvertorDelegate"; then 34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 34752$as_echo "$UniconvertorDelegate" >&6; } 34753else 34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34755$as_echo "no" >&6; } 34756fi 34757 34758 34759# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args. 34760set dummy "$WebPDecodeDelegateDefault"; ac_word=$2 34761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34762$as_echo_n "checking for $ac_word... " >&6; } 34763if ${ac_cv_path_WebPDecodeDelegate+:} false; then : 34764 $as_echo_n "(cached) " >&6 34765else 34766 case $WebPDecodeDelegate in 34767 [\\/]* | ?:[\\/]*) 34768 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path. 34769 ;; 34770 *) 34771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34772for as_dir in $PATH 34773do 34774 IFS=$as_save_IFS 34775 test -z "$as_dir" && as_dir=. 34776 for ac_exec_ext in '' $ac_executable_extensions; do 34777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34778 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34780 break 2 34781 fi 34782done 34783 done 34784IFS=$as_save_IFS 34785 34786 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault"" 34787 ;; 34788esac 34789fi 34790WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate 34791if test -n "$WebPDecodeDelegate"; then 34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5 34793$as_echo "$WebPDecodeDelegate" >&6; } 34794else 34795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34796$as_echo "no" >&6; } 34797fi 34798 34799 34800# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args. 34801set dummy "$WebPEncodeDelegateDefault"; ac_word=$2 34802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34803$as_echo_n "checking for $ac_word... " >&6; } 34804if ${ac_cv_path_WebPEncodeDelegate+:} false; then : 34805 $as_echo_n "(cached) " >&6 34806else 34807 case $WebPEncodeDelegate in 34808 [\\/]* | ?:[\\/]*) 34809 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path. 34810 ;; 34811 *) 34812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34813for as_dir in $PATH 34814do 34815 IFS=$as_save_IFS 34816 test -z "$as_dir" && as_dir=. 34817 for ac_exec_ext in '' $ac_executable_extensions; do 34818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34819 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34821 break 2 34822 fi 34823done 34824 done 34825IFS=$as_save_IFS 34826 34827 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault"" 34828 ;; 34829esac 34830fi 34831WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate 34832if test -n "$WebPEncodeDelegate"; then 34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5 34834$as_echo "$WebPEncodeDelegate" >&6; } 34835else 34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34837$as_echo "no" >&6; } 34838fi 34839 34840 34841# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. 34842set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 34843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34844$as_echo_n "checking for $ac_word... " >&6; } 34845if ${ac_cv_path_WMFDecodeDelegate+:} false; then : 34846 $as_echo_n "(cached) " >&6 34847else 34848 case $WMFDecodeDelegate in 34849 [\\/]* | ?:[\\/]*) 34850 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. 34851 ;; 34852 *) 34853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34854for as_dir in $PATH 34855do 34856 IFS=$as_save_IFS 34857 test -z "$as_dir" && as_dir=. 34858 for ac_exec_ext in '' $ac_executable_extensions; do 34859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34860 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34862 break 2 34863 fi 34864done 34865 done 34866IFS=$as_save_IFS 34867 34868 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" 34869 ;; 34870esac 34871fi 34872WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate 34873if test -n "$WMFDecodeDelegate"; then 34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 34875$as_echo "$WMFDecodeDelegate" >&6; } 34876else 34877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34878$as_echo "no" >&6; } 34879fi 34880 34881 34882# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. 34883set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 34884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34885$as_echo_n "checking for $ac_word... " >&6; } 34886if ${ac_cv_path_WWWDecodeDelegate+:} false; then : 34887 $as_echo_n "(cached) " >&6 34888else 34889 case $WWWDecodeDelegate in 34890 [\\/]* | ?:[\\/]*) 34891 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. 34892 ;; 34893 *) 34894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34895for as_dir in $PATH 34896do 34897 IFS=$as_save_IFS 34898 test -z "$as_dir" && as_dir=. 34899 for ac_exec_ext in '' $ac_executable_extensions; do 34900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34901 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34903 break 2 34904 fi 34905done 34906 done 34907IFS=$as_save_IFS 34908 34909 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" 34910 ;; 34911esac 34912fi 34913WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate 34914if test -n "$WWWDecodeDelegate"; then 34915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 34916$as_echo "$WWWDecodeDelegate" >&6; } 34917else 34918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34919$as_echo "no" >&6; } 34920fi 34921 34922 34923# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. 34924set dummy "$XPSDelegateDefault"; ac_word=$2 34925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34926$as_echo_n "checking for $ac_word... " >&6; } 34927if ${ac_cv_path_XPSDelegate+:} false; then : 34928 $as_echo_n "(cached) " >&6 34929else 34930 case $XPSDelegate in 34931 [\\/]* | ?:[\\/]*) 34932 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. 34933 ;; 34934 *) 34935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34936for as_dir in $PATH 34937do 34938 IFS=$as_save_IFS 34939 test -z "$as_dir" && as_dir=. 34940 for ac_exec_ext in '' $ac_executable_extensions; do 34941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34942 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" 34943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34944 break 2 34945 fi 34946done 34947 done 34948IFS=$as_save_IFS 34949 34950 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" 34951 ;; 34952esac 34953fi 34954XPSDelegate=$ac_cv_path_XPSDelegate 34955if test -n "$XPSDelegate"; then 34956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 34957$as_echo "$XPSDelegate" >&6; } 34958else 34959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34960$as_echo "no" >&6; } 34961fi 34962 34963 34964# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. 34965set dummy "$ZipDelegateDefault"; ac_word=$2 34966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34967$as_echo_n "checking for $ac_word... " >&6; } 34968if ${ac_cv_path_ZipDelegate+:} false; then : 34969 $as_echo_n "(cached) " >&6 34970else 34971 case $ZipDelegate in 34972 [\\/]* | ?:[\\/]*) 34973 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. 34974 ;; 34975 *) 34976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34977for as_dir in $PATH 34978do 34979 IFS=$as_save_IFS 34980 test -z "$as_dir" && as_dir=. 34981 for ac_exec_ext in '' $ac_executable_extensions; do 34982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34983 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" 34984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34985 break 2 34986 fi 34987done 34988 done 34989IFS=$as_save_IFS 34990 34991 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" 34992 ;; 34993esac 34994fi 34995ZipDelegate=$ac_cv_path_ZipDelegate 34996if test -n "$ZipDelegate"; then 34997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 34998$as_echo "$ZipDelegate" >&6; } 34999else 35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35001$as_echo "no" >&6; } 35002fi 35003 35004 35005 35006# Prefer lpr to lp; lp needs options tacked on. 35007if test "$LPRDelegate" != no; then 35008 PrintDelegate="$LPRDelegate" 35009else 35010 PrintDelegate="$LPDelegate -c -s" 35011fi 35012 35013 35014# Installed ImageMagick utiltity paths 35015ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 35016DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 35017MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 35018 35019# Set delegate booleans 35020have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi 35021have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 35022have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 35023have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 35024have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 35025have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 35026have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 35027have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 35028 35029# 35030# Test for font directories 35031# 35032type_include_files='' 35033 35034 Apple fonts. 35035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5 35036$as_echo_n "checking for Apple fonts directory... " >&6; } 35037apple_font_dir='' 35038if test "${with_apple_font_dir}" != 'default'; then 35039 apple_font_dir="${with_apple_font_dir}/" 35040else 35041 for font_dir in '/Library/Fonts/'; do 35042 if test -f "${font_dir}Arial.ttf"; then 35043 apple_font_dir="${font_dir}" 35044 break 1 35045 fi 35046 done 35047fi 35048if test "${apple_font_dir}x" != 'x'; then 35049 type_include_files="${type_include_files} "'<include file="type-apple.xml" />' 35050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5 35051$as_echo "$apple_font_dir" >&6; } 35052else 35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 35054$as_echo "not found!" >&6; }; 35055fi 35056 35057 35058# Dejavu fonts. 35059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 35060$as_echo_n "checking for Dejavu fonts directory... " >&6; } 35061dejavu_font_dir='' 35062if test "${with_dejavu_font_dir}" != 'default'; then 35063 dejavu_font_dir="${with_dejavu_font_dir}/" 35064else 35065 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 35066 if test -f "${font_dir}DejaVuSerif.ttf"; then 35067 dejavu_font_dir="${font_dir}" 35068 break 1 35069 fi 35070 done 35071fi 35072if test "${dejavu_font_dir}x" != 'x'; then 35073 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 35075$as_echo "$dejavu_font_dir" >&6; } 35076else 35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 35078$as_echo "not found!" >&6; }; 35079fi 35080 35081 35082# Ghostscript 35083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 35084$as_echo_n "checking for Ghostscript fonts directory... " >&6; } 35085ghostscript_font_dir='' 35086if test "${with_gs_font_dir}" != 'default'; then 35087 ghostscript_font_dir="${with_gs_font_dir}/" 35088else 35089 if test "${native_win32_build}" = 'yes'; then 35090 # Native Windows Build 35091 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 35092 if test -f "${font_dir}a010013l.pfb"; then 35093 ghostscript_font_dir="$font_dir" 35094 break 1 35095 fi 35096 done 35097 if test "${PSDelegate}" != 'gswin32c'; then 35098 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 35099 fi 35100 else 35101 # Linux / Mac OS X / Unix Build 35102 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 35103 if test -f "${font_dir}a010013l.pfb"; then 35104 ghostscript_font_dir="${font_dir}" 35105 break 1 35106 fi 35107 done 35108 if test "${ghostscript_font_dir}x" = 'x'; then 35109 if test "$PSDelegate" != 'gs'; then 35110 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 35111 fi 35112 fi 35113 fi 35114fi 35115if test "${ghostscript_font_dir}x" != 'x'; then 35116 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 35118$as_echo "$ghostscript_font_dir" >&6; } 35119else 35120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 35121$as_echo "not found!" >&6; }; 35122fi 35123 35124case "${build_os}" in 35125 mingw* ) 35126 PSDelegate=`$WinPathScript "$PSDelegate" 1` 35127 ;; 35128esac 35129 35130# Windows fonts. 35131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5 35132$as_echo_n "checking for Windows fonts directory... " >&6; } 35133windows_font_dir='' 35134if test "${with_windows_font_dir}" != 'default'; then 35135 windows_font_dir="${with_windows_font_dir}/" 35136else 35137 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do 35138 if test -f "${font_dir}arial.ttf"; then 35139 windows_font_dir="${font_dir}" 35140 break 1 35141 fi 35142 done 35143fi 35144if test "${windows_font_dir}x" != 'x'; then 35145 type_include_files="${type_include_files} "'<include file="type-windows.xml" />' 35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5 35147$as_echo "$windows_font_dir" >&6; } 35148else 35149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 35150$as_echo "not found!" >&6; }; 35151fi 35152 35153 35154 35155 35156# 35157# Handle case where user doesn't want frozen paths 35158# 35159if test "$with_frozenpaths" != 'yes'; then 35160 # Re-set delegate definitions to default (no paths) 35161 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" 35162 BGPDecodeDelegate="$BGPDecodeDelegateDefault" 35163 BGPEncodeDelegate="$BGPEncodeDelegateDefault" 35164 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 35165 BZIPDelegate="$BZIPDelegateDefault" 35166 BrowseDelegate="$BrowseDelegateDefault" 35167 CatDelegate="$CatDelegateDefault" 35168 ConvertDelegate="$ConvertDelegateDefault" 35169 DisplayDelegate="$DisplayDelegateDefault" 35170 DNGDecodeDelegate="$DNGDecodeDelegateDefault" 35171 DOCDecodeDelegate="$DOCDecodeDelegateDefault" 35172 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 35173 EchoDelegate="$EchoDelegateDefault" 35174 EditorDelegate="$EditorDelegateDefault" 35175 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" 35176 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 35177 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 35178 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 35179 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 35180 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 35181 JXRDecodeDelegate="$JXRDecodeDelegateDefault" 35182 JXREncodeDelegate="$JXREncodeDelegateDefault" 35183 LPDelegate="$LPDelegateDefault" 35184 LaunchDelegate="$LaunchDelegateDefault" 35185 MANDelegate="$MANDelegateDefault" 35186 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 35187 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 35188 MogrifyDelegate="$MogrifyDelegateDefault" 35189 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 35190 MVDelegate="$MVDelegateDefault" 35191 PCLDelegate="$PCLDelegateDefault" 35192 PGPDecodeDelegate="$PGPDecodeDelegateDefault" 35193 POVDelegate="$POVDelegateDefault" 35194 PSDelegate="$PSDelegateDefault" 35195 RLEEncodeDelegate="$RLEEncodeDelegateDefault" 35196 RMDelegate="$RMDelegateDefault" 35197 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 35198 SCANDecodeDelegate="$SCANDecodeDelegateDefault" 35199 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 35200 ShowImageDelegate="$ShowImageDelegateDefault" 35201 TXTDelegate="$TXTDelegateDefault" 35202 UniconvertorDelegate="$UniconvertorDelegateDefault" 35203 WebPDecodeDelegate="$WebPDecodeDelegateDefault" 35204 WebPEncodeDelegate="$WebPEncodeDelegateDefault" 35205 WMFDecodeDelegate="$WMFDecodeDelegateDefault" 35206 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 35207 XPSDelegate="$XPSDelegateDefault" 35208 ZipDelegate="$ZipDelegateDefault" 35209fi 35210 35211# Delegate substitutions 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 35226 35227 35228 35229 35230 35231 35232 35233 35234 35235 35236 35237 35238 35239 35240 35241 35242 35243 35244 35245 35246 35247 35248 35249 35250 35251 35252 35253 35254 35255 35256# 35257# RPM support. 35258# 35259RPM='' 35260for ac_prog in gnutar gtar tar 35261do 35262 # Extract the first word of "$ac_prog", so it can be a program name with args. 35263set dummy $ac_prog; ac_word=$2 35264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35265$as_echo_n "checking for $ac_word... " >&6; } 35266if ${ac_cv_prog_TAR+:} false; then : 35267 $as_echo_n "(cached) " >&6 35268else 35269 if test -n "$TAR"; then 35270 ac_cv_prog_TAR="$TAR" # Let the user override the test. 35271else 35272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35273for as_dir in $PATH 35274do 35275 IFS=$as_save_IFS 35276 test -z "$as_dir" && as_dir=. 35277 for ac_exec_ext in '' $ac_executable_extensions; do 35278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35279 ac_cv_prog_TAR="$ac_prog" 35280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35281 break 2 35282 fi 35283done 35284 done 35285IFS=$as_save_IFS 35286 35287fi 35288fi 35289TAR=$ac_cv_prog_TAR 35290if test -n "$TAR"; then 35291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 35292$as_echo "$TAR" >&6; } 35293else 35294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35295$as_echo "no" >&6; } 35296fi 35297 35298 35299 test -n "$TAR" && break 35300done 35301 35302for ac_prog in perl 35303do 35304 # Extract the first word of "$ac_prog", so it can be a program name with args. 35305set dummy $ac_prog; ac_word=$2 35306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35307$as_echo_n "checking for $ac_word... " >&6; } 35308if ${ac_cv_prog_PERL+:} false; then : 35309 $as_echo_n "(cached) " >&6 35310else 35311 if test -n "$PERL"; then 35312 ac_cv_prog_PERL="$PERL" # Let the user override the test. 35313else 35314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35315for as_dir in $PATH 35316do 35317 IFS=$as_save_IFS 35318 test -z "$as_dir" && as_dir=. 35319 for ac_exec_ext in '' $ac_executable_extensions; do 35320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35321 ac_cv_prog_PERL="$ac_prog" 35322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35323 break 2 35324 fi 35325done 35326 done 35327IFS=$as_save_IFS 35328 35329fi 35330fi 35331PERL=$ac_cv_prog_PERL 35332if test -n "$PERL"; then 35333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 35334$as_echo "$PERL" >&6; } 35335else 35336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35337$as_echo "no" >&6; } 35338fi 35339 35340 35341 test -n "$PERL" && break 35342done 35343 35344for ac_prog in rpmbuild rpm 35345do 35346 # Extract the first word of "$ac_prog", so it can be a program name with args. 35347set dummy $ac_prog; ac_word=$2 35348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35349$as_echo_n "checking for $ac_word... " >&6; } 35350if ${ac_cv_prog_RPM+:} false; then : 35351 $as_echo_n "(cached) " >&6 35352else 35353 if test -n "$RPM"; then 35354 ac_cv_prog_RPM="$RPM" # Let the user override the test. 35355else 35356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35357for as_dir in $PATH 35358do 35359 IFS=$as_save_IFS 35360 test -z "$as_dir" && as_dir=. 35361 for ac_exec_ext in '' $ac_executable_extensions; do 35362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35363 ac_cv_prog_RPM="$ac_prog" 35364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35365 break 2 35366 fi 35367done 35368 done 35369IFS=$as_save_IFS 35370 35371fi 35372fi 35373RPM=$ac_cv_prog_RPM 35374if test -n "$RPM"; then 35375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 35376$as_echo "$RPM" >&6; } 35377else 35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35379$as_echo "no" >&6; } 35380fi 35381 35382 35383 test -n "$RPM" && break 35384done 35385 35386 35387ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 35388 35389 35390AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 35391 35392 35393AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 35394 35395 35396AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 35397 35398 35399 if test "x$RPM" != "x" ; then 35400 RPM_DELEGATE_TRUE= 35401 RPM_DELEGATE_FALSE='#' 35402else 35403 RPM_DELEGATE_TRUE='#' 35404 RPM_DELEGATE_FALSE= 35405fi 35406 35407 35408# 35409# 7ZIP support (http://p7zip.sourceforge.net/) 35410# 35411P7ZIP='' 35412for ac_prog in 7za 35413do 35414 # Extract the first word of "$ac_prog", so it can be a program name with args. 35415set dummy $ac_prog; ac_word=$2 35416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35417$as_echo_n "checking for $ac_word... " >&6; } 35418if ${ac_cv_prog_P7ZIP+:} false; then : 35419 $as_echo_n "(cached) " >&6 35420else 35421 if test -n "$P7ZIP"; then 35422 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. 35423else 35424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35425for as_dir in $PATH 35426do 35427 IFS=$as_save_IFS 35428 test -z "$as_dir" && as_dir=. 35429 for ac_exec_ext in '' $ac_executable_extensions; do 35430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35431 ac_cv_prog_P7ZIP="$ac_prog" 35432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35433 break 2 35434 fi 35435done 35436 done 35437IFS=$as_save_IFS 35438 35439fi 35440fi 35441P7ZIP=$ac_cv_prog_P7ZIP 35442if test -n "$P7ZIP"; then 35443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 35444$as_echo "$P7ZIP" >&6; } 35445else 35446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35447$as_echo "no" >&6; } 35448fi 35449 35450 35451 test -n "$P7ZIP" && break 35452done 35453 35454 35455 if test "x$P7ZIP" != "x" ; then 35456 P7ZIP_DELEGATE_TRUE= 35457 P7ZIP_DELEGATE_FALSE='#' 35458else 35459 P7ZIP_DELEGATE_TRUE='#' 35460 P7ZIP_DELEGATE_FALSE= 35461fi 35462 35463 35464# 35465# ZIP support (http://www.info-zip.org/Zip.html) 35466# 35467ZIP='' 35468for ac_prog in zip 35469do 35470 # Extract the first word of "$ac_prog", so it can be a program name with args. 35471set dummy $ac_prog; ac_word=$2 35472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35473$as_echo_n "checking for $ac_word... " >&6; } 35474if ${ac_cv_prog_ZIP+:} false; then : 35475 $as_echo_n "(cached) " >&6 35476else 35477 if test -n "$ZIP"; then 35478 ac_cv_prog_ZIP="$ZIP" # Let the user override the test. 35479else 35480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35481for as_dir in $PATH 35482do 35483 IFS=$as_save_IFS 35484 test -z "$as_dir" && as_dir=. 35485 for ac_exec_ext in '' $ac_executable_extensions; do 35486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35487 ac_cv_prog_ZIP="$ac_prog" 35488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35489 break 2 35490 fi 35491done 35492 done 35493IFS=$as_save_IFS 35494 35495fi 35496fi 35497ZIP=$ac_cv_prog_ZIP 35498if test -n "$ZIP"; then 35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 35500$as_echo "$ZIP" >&6; } 35501else 35502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35503$as_echo "no" >&6; } 35504fi 35505 35506 35507 test -n "$ZIP" && break 35508done 35509 35510 35511 if test "x$ZIP" != "x" ; then 35512 ZIP_DELEGATE_TRUE= 35513 ZIP_DELEGATE_FALSE='#' 35514else 35515 ZIP_DELEGATE_TRUE='#' 35516 ZIP_DELEGATE_FALSE= 35517fi 35518 35519 35520# 35521# GhostPCL related configuration. 35522# 35523PCLColorDevice=ppmraw 35524PCLCMYKDevice=pamcmyk32 35525PCLMonoDevice=pbmraw 35526if test -z "$PCLVersion"; then 35527 PCLVersion='unknown' 35528fi 35529if test $have_pcl = 'yes'; then 35530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35531$as_echo "-------------------------------------------------------------" >&6; } 35532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 35533$as_echo_n "checking for PCL... " >&6; } 35534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 35535$as_echo "" >&6; } 35536 # PCLColorDevice 35537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 35538$as_echo_n "checking for pcl color device... " >&6; } 35539 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35540 : 35541 else 35542 PCLColorDevice=ppmraw 35543 fi 35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 35545$as_echo "$PCLColorDevice" >&6; } 35546 35547 # PCLCMYKDevice 35548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 35549$as_echo_n "checking for pcl CMYK device... " >&6; } 35550 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35551 : 35552 else 35553 PCLCMYKDevice=$PCLColorDevice 35554 fi 35555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 35556$as_echo "$PCLCMYKDevice" >&6; } 35557 35558 # PCLMonoDevice 35559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 35560$as_echo_n "checking for pcl mono device... " >&6; } 35561 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35562 : 35563 else 35564 PCLMonoDevice=$PCLColorDevice 35565 fi 35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 35567$as_echo "$PCLMonoDevice" >&6; } 35568fi 35569 35570 35571 35572 35573 35574 35575# 35576# GhostXPS related configuration. 35577# 35578XPSColorDevice=ppmraw 35579XPSCMYKDevice=bmpsep8 35580XPSMonoDevice=pbmraw 35581if test -z "$XPSVersion"; then 35582 XPSVersion='unknown' 35583fi 35584if test $have_xps = 'yes'; then 35585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35586$as_echo "-------------------------------------------------------------" >&6; } 35587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 35588$as_echo_n "checking for XPS... " >&6; } 35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 35590$as_echo "" >&6; } 35591 # XPSColorDevice 35592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 35593$as_echo_n "checking for xps color device... " >&6; } 35594 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35595 : 35596 else 35597 XPSColorDevice=ppmraw 35598 fi 35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 35600$as_echo "$XPSColorDevice" >&6; } 35601 35602 # XPSCMYKDevice 35603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 35604$as_echo_n "checking for xps CMYK device... " >&6; } 35605 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35606 : 35607 else 35608 XPSCMYKDevice=$XPSColorDevice 35609 fi 35610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 35611$as_echo "$XPSCMYKDevice" >&6; } 35612 35613 # XPSMonoDevice 35614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 35615$as_echo_n "checking for xps mono device... " >&6; } 35616 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35617 : 35618 else 35619 XPSMonoDevice=$XPSColorDevice 35620 fi 35621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 35622$as_echo "$XPSMonoDevice" >&6; } 35623fi 35624 35625 35626 35627 35628 35629 35630# 35631# Ghostscript related configuration. 35632# 35633GSAlphaDevice=pngalpha 35634GSColorDevice=pnmraw 35635GSCMYKDevice=pamcmyk32 35636GSMonoDevice=pbmraw 35637GSPDFDevice=pdfwrite 35638GSPSDevice=ps2write 35639GSEPSDevice=eps2write 35640GSVersion='unknown' 35641if test $have_gs = 'yes'; then 35642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35643$as_echo "-------------------------------------------------------------" >&6; } 35644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 35645$as_echo_n "checking for Ghostscript... " >&6; } 35646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 35647$as_echo "" >&6; } 35648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 35649$as_echo_n "checking for Ghostscript version... " >&6; } 35650 if GSVersion=`$PSDelegate --version`; then 35651 : 35652 else 35653 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 35654 fi 35655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 35656$as_echo "$GSVersion" >&6; } 35657 35658 # GSColorDevice 35659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 35660$as_echo_n "checking for gs color device... " >&6; } 35661 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35662 : 35663 else 35664 GSColorDevice=ppmraw 35665 fi 35666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 35667$as_echo "$GSColorDevice" >&6; } 35668 35669 # GSAlphaDevice 35670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 35671$as_echo_n "checking for gs alpha device... " >&6; } 35672 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35673 : 35674 else 35675 GSAlphaDevice=$GSColorDevice 35676 fi 35677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 35678$as_echo "$GSAlphaDevice" >&6; } 35679 35680 # GSCMYKDevice 35681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 35682$as_echo_n "checking for gs CMYK device... " >&6; } 35683 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35684 : 35685 else 35686 GSCMYKDevice=pam 35687 fi 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 35689$as_echo "$GSCMYKDevice" >&6; } 35690 35691 # GSMonoDevice 35692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 35693$as_echo_n "checking for gs mono device... " >&6; } 35694 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35695 : 35696 else 35697 GSMonoDevice=$GSColorDevice 35698 fi 35699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 35700$as_echo "$GSMonoDevice" >&6; } 35701 35702 # GSPDFDevice 35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 35704$as_echo_n "checking for gs PDF writing device... " >&6; } 35705 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35706 : 35707 else 35708 GSPDFDevice=nodevice 35709 fi 35710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 35711$as_echo "$GSPDFDevice" >&6; } 35712 35713 # GSPSDevice 35714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 35715$as_echo_n "checking for gs PS writing device... " >&6; } 35716 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35717 : 35718 else 35719 GSPSDevice=pswrite 35720 fi 35721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 35722$as_echo "$GSPSDevice" >&6; } 35723 35724 # GSEPSDevice 35725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 35726$as_echo_n "checking for gs EPS writing device... " >&6; } 35727 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 35728 : 35729 else 35730 GSEPSDevice=epswrite 35731 fi 35732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 35733$as_echo "$GSEPSDevice" >&6; } 35734fi 35735 35736 35737 35738 35739 35740 35741 35742 35743 35744 35745# 35746# PerlMagick-related configuration 35747# 35748 35749# Look for PERL if PerlMagick requested 35750# If name/path of desired PERL interpreter is specified, look for that one first 35751have_perl='no' 35752if test "$with_perl" != 'no'; then 35753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35754$as_echo "-------------------------------------------------------------" >&6; } 35755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 35756$as_echo_n "checking for Perl... " >&6; } 35757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 35758$as_echo "" >&6; } 35759 if test "$with_perl" != 'yes'; then 35760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 35761$as_echo_n "checking for perl... " >&6; } 35762if ${ac_cv_path_PERL+:} false; then : 35763 $as_echo_n "(cached) " >&6 35764else 35765 ac_cv_path_PERL="$with_perl" 35766fi 35767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 35768$as_echo "$ac_cv_path_PERL" >&6; }; 35769 PERL=$ac_cv_path_PERL 35770 have_perl="$ac_cv_path_PERL" 35771 else 35772 for ac_prog in perl perl5 35773do 35774 # Extract the first word of "$ac_prog", so it can be a program name with args. 35775set dummy $ac_prog; ac_word=$2 35776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35777$as_echo_n "checking for $ac_word... " >&6; } 35778if ${ac_cv_path_PERL+:} false; then : 35779 $as_echo_n "(cached) " >&6 35780else 35781 case $PERL in 35782 [\\/]* | ?:[\\/]*) 35783 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 35784 ;; 35785 *) 35786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35787for as_dir in $PATH 35788do 35789 IFS=$as_save_IFS 35790 test -z "$as_dir" && as_dir=. 35791 for ac_exec_ext in '' $ac_executable_extensions; do 35792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35793 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 35794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35795 break 2 35796 fi 35797done 35798 done 35799IFS=$as_save_IFS 35800 35801 ;; 35802esac 35803fi 35804PERL=$ac_cv_path_PERL 35805if test -n "$PERL"; then 35806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 35807$as_echo "$PERL" >&6; } 35808else 35809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35810$as_echo "no" >&6; } 35811fi 35812 35813 35814 test -n "$PERL" && break 35815done 35816 if test "$ac_cv_path_PERL"; then 35817 have_perl="$ac_cv_path_PERL" 35818 fi 35819 fi 35820fi 35821 35822if test "$with_perl" != 'yes' ; then 35823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 35824fi 35825 35826PERL_SUPPORTS_DESTDIR='no' 35827 35828with_perl_static='no' 35829with_perl_dynamic='no' 35830if test "$have_perl" != 'no'; then 35831 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 35832 with_perl_static='yes' 35833 fi 35834 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 35835 with_perl_dynamic='yes' 35836 fi 35837 # Is PERL's MakeMaker new enough to support DESTDIR? 35838 35839 35840 35841 35842 if test -n "$PERL"; then : 35843 35844 ax_perl_version="5.8.1" 35845 35846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 35847$as_echo_n "checking for perl version... " >&6; } 35848 35849 perl_version=`$PERL --version 2>&1 \ 35850 | $SED -n -e '/This is perl/b inspect 35851b 35852: inspect 35853s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'` 35854 35855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 35856$as_echo "$perl_version" >&6; } 35857 35858 PERL_VERSION=$perl_version 35859 35860 35861 35862 35863 35864 # Used to indicate true or false condition 35865 ax_compare_version=false 35866 35867 # Convert the two version strings to be compared into a format that 35868 # allows a simple string comparison. The end result is that a version 35869 # string of the form 1.12.5-r617 will be converted to the form 35870 # 0001001200050617. In other words, each number is zero padded to four 35871 # digits, and non digits are removed. 35872 35873 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 35874 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 35875 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 35876 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 35877 -e 's/[^0-9]//g'` 35878 35879 35880 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 35881 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 35882 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 35883 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 35884 -e 's/[^0-9]//g'` 35885 35886 35887 ax_compare_version=`echo "x$ax_compare_version_A 35888x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 35889 35890 35891 35892 if test "$ax_compare_version" = "true" ; then 35893 35894 : 35895 PERL_SUPPORTS_DESTDIR='yes' 35896 35897 else 35898 : 35899 PERL_SUPPORTS_DESTDIR='no' 35900 35901 fi 35902 35903 35904else 35905 35906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 35907$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 35908 PERL_SUPPORTS_DESTDIR='no' 35909 35910fi 35911 35912fi 35913 if test "$have_perl" != 'no'; then 35914 WITH_PERL_TRUE= 35915 WITH_PERL_FALSE='#' 35916else 35917 WITH_PERL_TRUE='#' 35918 WITH_PERL_FALSE= 35919fi 35920 35921 if test $with_perl_static = 'yes'; then 35922 WITH_PERL_STATIC_TRUE= 35923 WITH_PERL_STATIC_FALSE='#' 35924else 35925 WITH_PERL_STATIC_TRUE='#' 35926 WITH_PERL_STATIC_FALSE= 35927fi 35928 35929 if test $with_perl_dynamic = 'yes'; then 35930 WITH_PERL_DYNAMIC_TRUE= 35931 WITH_PERL_DYNAMIC_FALSE='#' 35932else 35933 WITH_PERL_DYNAMIC_TRUE='#' 35934 WITH_PERL_DYNAMIC_FALSE= 35935fi 35936 35937 35938 35939# Determine path to pick up MagickCore library from for use with building PerlMagick 35940MAGICKCORE_PATH="${LIB_DIR}" 35941if test $with_perl_static = 'yes'; then 35942 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 35943 libtool_objdir=$objdir 35944 35945 # Linker search path to library, followed by -lMagickCore 35946 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 35947fi 35948 35949 35950# Create a simple string containing format names for all delegate libraries. 35951MAGICK_DELEGATES='' 35952if test "$have_autotrace" = 'yes' ; then 35953 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 35954fi 35955if test "$have_bzlib" = 'yes' ; then 35956 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 35957fi 35958if test "$have_dps" = 'yes' ; then 35959 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 35960fi 35961if test "$have_djvu" = 'yes' ; then 35962 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 35963fi 35964if test "$have_avconv" = 'yes' ; then 35965 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 35966fi 35967if test "$have_fftw" = 'yes' ; then 35968 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 35969fi 35970if test "$have_fpx" = 'yes' ; then 35971 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 35972fi 35973if test "$have_fontconfig" = 'yes' ; then 35974 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 35975fi 35976if test "$have_freetype" = 'yes' ; then 35977 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 35978fi 35979if test "$have_gslib" = 'yes' ; then 35980 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 35981fi 35982if test "$have_jbig" = 'yes' ; then 35983 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 35984fi 35985if test "$have_png$have_jpeg" = 'yesyes' ; then 35986 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 35987fi 35988if test "$have_jpeg" = 'yes' ; then 35989 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 35990fi 35991if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 35992 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 35993fi 35994if test "$have_lqr" = 'yes' ; then 35995 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 35996fi 35997if test "$have_lzma" = 'yes' ; then 35998 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 35999fi 36000if test "$have_openexr" = 'yes' ; then 36001 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 36002fi 36003if test "$have_openjp2" = 'yes' ; then 36004 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2" 36005fi 36006if test "$have_pango" = 'yes' ; then 36007 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 36008fi 36009if test "$have_png" = 'yes' ; then 36010 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 36011fi 36012have_ps='no' 36013if test "$have_dps" = 'yes' || \ 36014 test "$have_gs" = 'yes' || \ 36015 test "${native_win32_build}" = 'yes' ; then 36016 have_ps='yes' 36017fi 36018if test "$have_ps" = 'yes' ; then 36019 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 36020fi 36021if test "$have_ra_ppm" = 'yes' ; then 36022 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 36023fi 36024if test "$have_rsvg" = 'yes' ; then 36025 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 36026fi 36027if test "$have_tiff" = 'yes' ; then 36028 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 36029fi 36030if test "$have_ttf" = 'yes' ; then 36031 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 36032fi 36033if test "$have_webp" = 'yes' ; then 36034 MAGICK_DELEGATES="$MAGICK_DELEGATES webp" 36035fi 36036if test "$have_wmf" = 'yes' ; then 36037 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 36038fi 36039if test "$have_x" = 'yes' ; then 36040 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 36041fi 36042if test "$have_xml" = 'yes' ; then 36043 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 36044fi 36045if test "$have_zlib" = 'yes' ; then 36046 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 36047fi 36048 36049# Remove extraneous spaces from output variables (asthetic) 36050MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 36051MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 36052 36053 36054 36055# 36056# Handle special compiler flags 36057# 36058 36059# Add '-p' if prof source profiling support enabled 36060if test "$enable_prof" = 'yes'; then 36061 CFLAGS="-p $CFLAGS" 36062 CXXFLAGS="-p $CXXFLAGS" 36063 LDFLAGS="-p $LDFLAGS" 36064fi 36065 36066# Add '-pg' if gprof source profiling support enabled 36067if test "$enable_gprof" = 'yes'; then 36068 CFLAGS="-pg $CFLAGS" 36069 CXXFLAGS="-pg $CXXFLAGS" 36070 LDFLAGS="-pg $LDFLAGS" 36071fi 36072 36073# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 36074# This is a gcc-specific feature 36075if test "$enable_gcov" = 'yes'; then 36076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 36077$as_echo_n "checking for _gcov_init in -lgcov... " >&6; } 36078if ${ac_cv_lib_gcov__gcov_init+:} false; then : 36079 $as_echo_n "(cached) " >&6 36080else 36081 ac_check_lib_save_LIBS=$LIBS 36082LIBS="-lgcov $LIBS" 36083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36084/* end confdefs.h. */ 36085 36086/* Override any GCC internal prototype to avoid an error. 36087 Use char because int might match the return type of a GCC 36088 builtin and then its argument prototype would still apply. */ 36089#ifdef __cplusplus 36090extern "C" 36091#endif 36092char _gcov_init (); 36093int 36094main () 36095{ 36096return _gcov_init (); 36097 ; 36098 return 0; 36099} 36100_ACEOF 36101if ac_fn_c_try_link "$LINENO"; then : 36102 ac_cv_lib_gcov__gcov_init=yes 36103else 36104 ac_cv_lib_gcov__gcov_init=no 36105fi 36106rm -f core conftest.err conftest.$ac_objext \ 36107 conftest$ac_exeext conftest.$ac_ext 36108LIBS=$ac_check_lib_save_LIBS 36109fi 36110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 36111$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } 36112if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : 36113 cat >>confdefs.h <<_ACEOF 36114#define HAVE_LIBGCOV 1 36115_ACEOF 36116 36117 LIBS="-lgcov $LIBS" 36118 36119fi 36120 36121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 36122$as_echo_n "checking for __gcov_init in -lgcov... " >&6; } 36123if ${ac_cv_lib_gcov___gcov_init+:} false; then : 36124 $as_echo_n "(cached) " >&6 36125else 36126 ac_check_lib_save_LIBS=$LIBS 36127LIBS="-lgcov $LIBS" 36128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36129/* end confdefs.h. */ 36130 36131/* Override any GCC internal prototype to avoid an error. 36132 Use char because int might match the return type of a GCC 36133 builtin and then its argument prototype would still apply. */ 36134#ifdef __cplusplus 36135extern "C" 36136#endif 36137char __gcov_init (); 36138int 36139main () 36140{ 36141return __gcov_init (); 36142 ; 36143 return 0; 36144} 36145_ACEOF 36146if ac_fn_c_try_link "$LINENO"; then : 36147 ac_cv_lib_gcov___gcov_init=yes 36148else 36149 ac_cv_lib_gcov___gcov_init=no 36150fi 36151rm -f core conftest.err conftest.$ac_objext \ 36152 conftest$ac_exeext conftest.$ac_ext 36153LIBS=$ac_check_lib_save_LIBS 36154fi 36155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 36156$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } 36157if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : 36158 cat >>confdefs.h <<_ACEOF 36159#define HAVE_LIBGCOV 1 36160_ACEOF 36161 36162 LIBS="-lgcov $LIBS" 36163 36164fi 36165 36166 case "$target_os" in 36167 darwin*) 36168 OSX_GCOV_LDFLAG="-Wl,-single_module" 36169 ;; 36170 *) 36171 OSX_GCOV_LDFLAG="" 36172 ;; 36173 esac 36174 36175 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 36176 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 36177 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 36178fi 36179 36180# 36181# Build library dependency list for libMagickCore 36182# 36183 36184if test "$build_modules" != 'no'; then 36185 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS" 36186else 36187 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $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" 36188fi 36189 36190 36191# Pass only user-provided LIBS as "global" libraries 36192LIBS=$USER_LIBS 36193 36194#AC_SUBST(CPPFLAGS) 36195 36196#AC_SUBST(LDFLAGS) 36197#AC_SUBST(X_PRE_LIBS) 36198#AC_SUBST(X_LIBS) 36199#AC_SUBST(X_EXTRA_LIBS) 36200 36201MAGICK_CFLAGS=$CFLAGS 36202MAGICK_CXXFLAGS="$CXXFLAGS" 36203MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 36204MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 36205MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 36206MAGICK_LIBS="$MAGICK_DEP_LIBS" 36207 36208 36209 36210 36211 36212 36213 36214 36215# Set configured scripts to executable. 36216ac_config_commands="$ac_config_commands default" 36217 36218ac_config_commands="$ac_config_commands magick.sh.in" 36219 36220ac_config_commands="$ac_config_commands MagickCore-config.in" 36221 36222ac_config_commands="$ac_config_commands MagickWand-config.in" 36223 36224ac_config_commands="$ac_config_commands Magick++-config.in" 36225 36226ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" 36227 36228 36229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36230$as_echo "-------------------------------------------------------------" >&6; } 36231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 36232$as_echo "Update ImageMagick configuration" >&6; } 36233 36234rm -f magick-version 36235 36236result_dejavu_font_dir='none' 36237if test "${dejavu_font_dir}x" != 'x'; then 36238 result_dejavu_font_dir=$dejavu_font_dir 36239fi 36240 36241result_ghostscript_font_dir='none' 36242if test "${ghostscript_font_dir}x" != 'x'; then 36243 result_ghostscript_font_dir=$ghostscript_font_dir 36244fi 36245 36246result_windows_font_dir='none' 36247if test "${windows_font_dir}x" != 'x'; then 36248 result_windows_font_dir=${windows_font_dir} 36249fi 36250 36251# ============================================================================== 36252# Generate build environment 36253# ============================================================================== 36254ac_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/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" 36255 36256cat >confcache <<\_ACEOF 36257# This file is a shell script that caches the results of configure 36258# tests run on this system so they can be shared between configure 36259# scripts and configure runs, see configure's option --config-cache. 36260# It is not useful on other systems. If it contains results you don't 36261# want to keep, you may remove or edit it. 36262# 36263# config.status only pays attention to the cache file if you give it 36264# the --recheck option to rerun configure. 36265# 36266# `ac_cv_env_foo' variables (set or unset) will be overridden when 36267# loading this file, other *unset* `ac_cv_foo' will be assigned the 36268# following values. 36269 36270_ACEOF 36271 36272# The following way of writing the cache mishandles newlines in values, 36273# but we know of no workaround that is simple, portable, and efficient. 36274# So, we kill variables containing newlines. 36275# Ultrix sh set writes to stderr and can't be redirected directly, 36276# and sets the high bit in the cache file unless we assign to the vars. 36277( 36278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 36279 eval ac_val=\$$ac_var 36280 case $ac_val in #( 36281 *${as_nl}*) 36282 case $ac_var in #( 36283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 36284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 36285 esac 36286 case $ac_var in #( 36287 _ | IFS | as_nl) ;; #( 36288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 36289 *) { eval $ac_var=; unset $ac_var;} ;; 36290 esac ;; 36291 esac 36292 done 36293 36294 (set) 2>&1 | 36295 case $as_nl`(ac_space=' '; set) 2>&1` in #( 36296 *${as_nl}ac_space=\ *) 36297 # `set' does not quote correctly, so add quotes: double-quote 36298 # substitution turns \\\\ into \\, and sed turns \\ into \. 36299 sed -n \ 36300 "s/'/'\\\\''/g; 36301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 36302 ;; #( 36303 *) 36304 # `set' quotes correctly as required by POSIX, so do not add quotes. 36305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 36306 ;; 36307 esac | 36308 sort 36309) | 36310 sed ' 36311 /^ac_cv_env_/b end 36312 t clear 36313 :clear 36314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 36315 t end 36316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 36317 :end' >>confcache 36318if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 36319 if test -w "$cache_file"; then 36320 if test "x$cache_file" != "x/dev/null"; then 36321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 36322$as_echo "$as_me: updating cache $cache_file" >&6;} 36323 if test ! -f "$cache_file" || test -h "$cache_file"; then 36324 cat confcache >"$cache_file" 36325 else 36326 case $cache_file in #( 36327 */* | ?:*) 36328 mv -f confcache "$cache_file"$$ && 36329 mv -f "$cache_file"$$ "$cache_file" ;; #( 36330 *) 36331 mv -f confcache "$cache_file" ;; 36332 esac 36333 fi 36334 fi 36335 else 36336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 36337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 36338 fi 36339fi 36340rm -f confcache 36341 36342test "x$prefix" = xNONE && prefix=$ac_default_prefix 36343# Let make expand exec_prefix. 36344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 36345 36346DEFS=-DHAVE_CONFIG_H 36347 36348ac_libobjs= 36349ac_ltlibobjs= 36350U= 36351for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 36352 # 1. Remove the extension, and $U if already installed. 36353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 36354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 36355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 36356 # will be set to the directory where LIBOBJS objects are built. 36357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 36358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 36359done 36360LIBOBJS=$ac_libobjs 36361 36362LTLIBOBJS=$ac_ltlibobjs 36363 36364 36365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 36366$as_echo_n "checking that generated files are newer than configure... " >&6; } 36367 if test -n "$am_sleep_pid"; then 36368 # Hide warnings about reused PIDs. 36369 wait $am_sleep_pid 2>/dev/null 36370 fi 36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 36372$as_echo "done" >&6; } 36373 if test -n "$EXEEXT"; then 36374 am__EXEEXT_TRUE= 36375 am__EXEEXT_FALSE='#' 36376else 36377 am__EXEEXT_TRUE='#' 36378 am__EXEEXT_FALSE= 36379fi 36380 36381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 36382$as_echo_n "checking that generated files are newer than configure... " >&6; } 36383 if test -n "$am_sleep_pid"; then 36384 # Hide warnings about reused PIDs. 36385 wait $am_sleep_pid 2>/dev/null 36386 fi 36387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 36388$as_echo "done" >&6; } 36389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 36390 as_fn_error $? "conditional \"AMDEP\" was never defined. 36391Usually this means the macro was only invoked conditionally." "$LINENO" 5 36392fi 36393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 36394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 36395Usually this means the macro was only invoked conditionally." "$LINENO" 5 36396fi 36397if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 36398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 36399Usually this means the macro was only invoked conditionally." "$LINENO" 5 36400fi 36401if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 36402 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 36403Usually this means the macro was only invoked conditionally." "$LINENO" 5 36404fi 36405if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 36406 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 36407Usually this means the macro was only invoked conditionally." "$LINENO" 5 36408fi 36409if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then 36410 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. 36411Usually this means the macro was only invoked conditionally." "$LINENO" 5 36412fi 36413if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then 36414 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. 36415Usually this means the macro was only invoked conditionally." "$LINENO" 5 36416fi 36417if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then 36418 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. 36419Usually this means the macro was only invoked conditionally." "$LINENO" 5 36420fi 36421if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then 36422 as_fn_error $? "conditional \"USING_CL\" was never defined. 36423Usually this means the macro was only invoked conditionally." "$LINENO" 5 36424fi 36425if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then 36426 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. 36427Usually this means the macro was only invoked conditionally." "$LINENO" 5 36428fi 36429if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then 36430 as_fn_error $? "conditional \"WITH_MODULES\" was never defined. 36431Usually this means the macro was only invoked conditionally." "$LINENO" 5 36432fi 36433if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 36434 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 36435Usually this means the macro was only invoked conditionally." "$LINENO" 5 36436fi 36437if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then 36438 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. 36439Usually this means the macro was only invoked conditionally." "$LINENO" 5 36440fi 36441 36442if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 36443 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 36444Usually this means the macro was only invoked conditionally." "$LINENO" 5 36445fi 36446if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then 36447 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. 36448Usually this means the macro was only invoked conditionally." "$LINENO" 5 36449fi 36450if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then 36451 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined. 36452Usually this means the macro was only invoked conditionally." "$LINENO" 5 36453fi 36454if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then 36455 as_fn_error $? "conditional \"HasUMEM\" was never defined. 36456Usually this means the macro was only invoked conditionally." "$LINENO" 5 36457fi 36458if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then 36459 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. 36460Usually this means the macro was only invoked conditionally." "$LINENO" 5 36461fi 36462if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then 36463 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. 36464Usually this means the macro was only invoked conditionally." "$LINENO" 5 36465fi 36466if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then 36467 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. 36468Usually this means the macro was only invoked conditionally." "$LINENO" 5 36469fi 36470if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then 36471 as_fn_error $? "conditional \"WITH_LTDL\" was never defined. 36472Usually this means the macro was only invoked conditionally." "$LINENO" 5 36473fi 36474if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then 36475 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. 36476Usually this means the macro was only invoked conditionally." "$LINENO" 5 36477fi 36478if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then 36479 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. 36480Usually this means the macro was only invoked conditionally." "$LINENO" 5 36481fi 36482if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then 36483 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. 36484Usually this means the macro was only invoked conditionally." "$LINENO" 5 36485fi 36486if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then 36487 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. 36488Usually this means the macro was only invoked conditionally." "$LINENO" 5 36489fi 36490if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then 36491 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. 36492Usually this means the macro was only invoked conditionally." "$LINENO" 5 36493fi 36494if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then 36495 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. 36496Usually this means the macro was only invoked conditionally." "$LINENO" 5 36497fi 36498if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then 36499 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. 36500Usually this means the macro was only invoked conditionally." "$LINENO" 5 36501fi 36502if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then 36503 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. 36504Usually this means the macro was only invoked conditionally." "$LINENO" 5 36505fi 36506if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then 36507 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. 36508Usually this means the macro was only invoked conditionally." "$LINENO" 5 36509fi 36510if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then 36511 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. 36512Usually this means the macro was only invoked conditionally." "$LINENO" 5 36513fi 36514if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then 36515 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. 36516Usually this means the macro was only invoked conditionally." "$LINENO" 5 36517fi 36518if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then 36519 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. 36520Usually this means the macro was only invoked conditionally." "$LINENO" 5 36521fi 36522if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then 36523 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined. 36524Usually this means the macro was only invoked conditionally." "$LINENO" 5 36525fi 36526if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then 36527 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. 36528Usually this means the macro was only invoked conditionally." "$LINENO" 5 36529fi 36530if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then 36531 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. 36532Usually this means the macro was only invoked conditionally." "$LINENO" 5 36533fi 36534if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then 36535 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. 36536Usually this means the macro was only invoked conditionally." "$LINENO" 5 36537fi 36538if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then 36539 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. 36540Usually this means the macro was only invoked conditionally." "$LINENO" 5 36541fi 36542if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then 36543 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. 36544Usually this means the macro was only invoked conditionally." "$LINENO" 5 36545fi 36546if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then 36547 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. 36548Usually this means the macro was only invoked conditionally." "$LINENO" 5 36549fi 36550if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then 36551 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. 36552Usually this means the macro was only invoked conditionally." "$LINENO" 5 36553fi 36554if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then 36555 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. 36556Usually this means the macro was only invoked conditionally." "$LINENO" 5 36557fi 36558if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then 36559 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. 36560Usually this means the macro was only invoked conditionally." "$LINENO" 5 36561fi 36562if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then 36563 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. 36564Usually this means the macro was only invoked conditionally." "$LINENO" 5 36565fi 36566if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then 36567 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. 36568Usually this means the macro was only invoked conditionally." "$LINENO" 5 36569fi 36570if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then 36571 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. 36572Usually this means the macro was only invoked conditionally." "$LINENO" 5 36573fi 36574if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then 36575 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined. 36576Usually this means the macro was only invoked conditionally." "$LINENO" 5 36577fi 36578if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then 36579 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. 36580Usually this means the macro was only invoked conditionally." "$LINENO" 5 36581fi 36582if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then 36583 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. 36584Usually this means the macro was only invoked conditionally." "$LINENO" 5 36585fi 36586if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then 36587 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. 36588Usually this means the macro was only invoked conditionally." "$LINENO" 5 36589fi 36590if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then 36591 as_fn_error $? "conditional \"WITH_PERL\" was never defined. 36592Usually this means the macro was only invoked conditionally." "$LINENO" 5 36593fi 36594if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then 36595 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. 36596Usually this means the macro was only invoked conditionally." "$LINENO" 5 36597fi 36598if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then 36599 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. 36600Usually this means the macro was only invoked conditionally." "$LINENO" 5 36601fi 36602 36603: "${CONFIG_STATUS=./config.status}" 36604ac_write_fail=0 36605ac_clean_files_save=$ac_clean_files 36606ac_clean_files="$ac_clean_files $CONFIG_STATUS" 36607{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 36608$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 36609as_write_fail=0 36610cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 36611#! $SHELL 36612# Generated by $as_me. 36613# Run this file to recreate the current configuration. 36614# Compiler output produced by configure, useful for debugging 36615# configure, is in config.log if it exists. 36616 36617debug=false 36618ac_cs_recheck=false 36619ac_cs_silent=false 36620 36621SHELL=\${CONFIG_SHELL-$SHELL} 36622export SHELL 36623_ASEOF 36624cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 36625## -------------------- ## 36626## M4sh Initialization. ## 36627## -------------------- ## 36628 36629# Be more Bourne compatible 36630DUALCASE=1; export DUALCASE # for MKS sh 36631if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 36632 emulate sh 36633 NULLCMD=: 36634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 36635 # is contrary to our usage. Disable this feature. 36636 alias -g '${1+"$@"}'='"$@"' 36637 setopt NO_GLOB_SUBST 36638else 36639 case `(set -o) 2>/dev/null` in #( 36640 *posix*) : 36641 set -o posix ;; #( 36642 *) : 36643 ;; 36644esac 36645fi 36646 36647 36648as_nl=' 36649' 36650export as_nl 36651# Printing a long string crashes Solaris 7 /usr/bin/printf. 36652as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 36653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 36654as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 36655# Prefer a ksh shell builtin over an external printf program on Solaris, 36656# but without wasting forks for bash or zsh. 36657if test -z "$BASH_VERSION$ZSH_VERSION" \ 36658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 36659 as_echo='print -r --' 36660 as_echo_n='print -rn --' 36661elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 36662 as_echo='printf %s\n' 36663 as_echo_n='printf %s' 36664else 36665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 36666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 36667 as_echo_n='/usr/ucb/echo -n' 36668 else 36669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 36670 as_echo_n_body='eval 36671 arg=$1; 36672 case $arg in #( 36673 *"$as_nl"*) 36674 expr "X$arg" : "X\\(.*\\)$as_nl"; 36675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 36676 esac; 36677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 36678 ' 36679 export as_echo_n_body 36680 as_echo_n='sh -c $as_echo_n_body as_echo' 36681 fi 36682 export as_echo_body 36683 as_echo='sh -c $as_echo_body as_echo' 36684fi 36685 36686# The user is always right. 36687if test "${PATH_SEPARATOR+set}" != set; then 36688 PATH_SEPARATOR=: 36689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 36690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 36691 PATH_SEPARATOR=';' 36692 } 36693fi 36694 36695 36696# IFS 36697# We need space, tab and new line, in precisely that order. Quoting is 36698# there to prevent editors from complaining about space-tab. 36699# (If _AS_PATH_WALK were called with IFS unset, it would disable word 36700# splitting by setting IFS to empty value.) 36701IFS=" "" $as_nl" 36702 36703# Find who we are. Look in the path if we contain no directory separator. 36704as_myself= 36705case $0 in #(( 36706 *[\\/]* ) as_myself=$0 ;; 36707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36708for as_dir in $PATH 36709do 36710 IFS=$as_save_IFS 36711 test -z "$as_dir" && as_dir=. 36712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 36713 done 36714IFS=$as_save_IFS 36715 36716 ;; 36717esac 36718# We did not find ourselves, most probably we were run as `sh COMMAND' 36719# in which case we are not to be found in the path. 36720if test "x$as_myself" = x; then 36721 as_myself=$0 36722fi 36723if test ! -f "$as_myself"; then 36724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 36725 exit 1 36726fi 36727 36728# Unset variables that we do not need and which cause bugs (e.g. in 36729# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 36730# suppresses any "Segmentation fault" message there. '((' could 36731# trigger a bug in pdksh 5.2.14. 36732for as_var in BASH_ENV ENV MAIL MAILPATH 36733do eval test x\${$as_var+set} = xset \ 36734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 36735done 36736PS1='$ ' 36737PS2='> ' 36738PS4='+ ' 36739 36740# NLS nuisances. 36741LC_ALL=C 36742export LC_ALL 36743LANGUAGE=C 36744export LANGUAGE 36745 36746# CDPATH. 36747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36748 36749 36750# as_fn_error STATUS ERROR [LINENO LOG_FD] 36751# ---------------------------------------- 36752# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 36753# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 36754# script with STATUS, using 1 if that was 0. 36755as_fn_error () 36756{ 36757 as_status=$1; test $as_status -eq 0 && as_status=1 36758 if test "$4"; then 36759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 36760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 36761 fi 36762 $as_echo "$as_me: error: $2" >&2 36763 as_fn_exit $as_status 36764} # as_fn_error 36765 36766 36767# as_fn_set_status STATUS 36768# ----------------------- 36769# Set $? to STATUS, without forking. 36770as_fn_set_status () 36771{ 36772 return $1 36773} # as_fn_set_status 36774 36775# as_fn_exit STATUS 36776# ----------------- 36777# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 36778as_fn_exit () 36779{ 36780 set +e 36781 as_fn_set_status $1 36782 exit $1 36783} # as_fn_exit 36784 36785# as_fn_unset VAR 36786# --------------- 36787# Portably unset VAR. 36788as_fn_unset () 36789{ 36790 { eval $1=; unset $1;} 36791} 36792as_unset=as_fn_unset 36793# as_fn_append VAR VALUE 36794# ---------------------- 36795# Append the text in VALUE to the end of the definition contained in VAR. Take 36796# advantage of any shell optimizations that allow amortized linear growth over 36797# repeated appends, instead of the typical quadratic growth present in naive 36798# implementations. 36799if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 36800 eval 'as_fn_append () 36801 { 36802 eval $1+=\$2 36803 }' 36804else 36805 as_fn_append () 36806 { 36807 eval $1=\$$1\$2 36808 } 36809fi # as_fn_append 36810 36811# as_fn_arith ARG... 36812# ------------------ 36813# Perform arithmetic evaluation on the ARGs, and store the result in the 36814# global $as_val. Take advantage of shells that can avoid forks. The arguments 36815# must be portable across $(()) and expr. 36816if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 36817 eval 'as_fn_arith () 36818 { 36819 as_val=$(( $* )) 36820 }' 36821else 36822 as_fn_arith () 36823 { 36824 as_val=`expr "$@" || test $? -eq 1` 36825 } 36826fi # as_fn_arith 36827 36828 36829if expr a : '\(a\)' >/dev/null 2>&1 && 36830 test "X`expr 00001 : '.*\(...\)'`" = X001; then 36831 as_expr=expr 36832else 36833 as_expr=false 36834fi 36835 36836if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 36837 as_basename=basename 36838else 36839 as_basename=false 36840fi 36841 36842if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 36843 as_dirname=dirname 36844else 36845 as_dirname=false 36846fi 36847 36848as_me=`$as_basename -- "$0" || 36849$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 36850 X"$0" : 'X\(//\)$' \| \ 36851 X"$0" : 'X\(/\)' \| . 2>/dev/null || 36852$as_echo X/"$0" | 36853 sed '/^.*\/\([^/][^/]*\)\/*$/{ 36854 s//\1/ 36855 q 36856 } 36857 /^X\/\(\/\/\)$/{ 36858 s//\1/ 36859 q 36860 } 36861 /^X\/\(\/\).*/{ 36862 s//\1/ 36863 q 36864 } 36865 s/.*/./; q'` 36866 36867# Avoid depending upon Character Ranges. 36868as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36870as_cr_Letters=$as_cr_letters$as_cr_LETTERS 36871as_cr_digits='0123456789' 36872as_cr_alnum=$as_cr_Letters$as_cr_digits 36873 36874ECHO_C= ECHO_N= ECHO_T= 36875case `echo -n x` in #((((( 36876-n*) 36877 case `echo 'xy\c'` in 36878 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 36879 xy) ECHO_C='\c';; 36880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 36881 ECHO_T=' ';; 36882 esac;; 36883*) 36884 ECHO_N='-n';; 36885esac 36886 36887rm -f conf$$ conf$$.exe conf$$.file 36888if test -d conf$$.dir; then 36889 rm -f conf$$.dir/conf$$.file 36890else 36891 rm -f conf$$.dir 36892 mkdir conf$$.dir 2>/dev/null 36893fi 36894if (echo >conf$$.file) 2>/dev/null; then 36895 if ln -s conf$$.file conf$$ 2>/dev/null; then 36896 as_ln_s='ln -s' 36897 # ... but there are two gotchas: 36898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 36899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 36900 # In both cases, we have to default to `cp -pR'. 36901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 36902 as_ln_s='cp -pR' 36903 elif ln conf$$.file conf$$ 2>/dev/null; then 36904 as_ln_s=ln 36905 else 36906 as_ln_s='cp -pR' 36907 fi 36908else 36909 as_ln_s='cp -pR' 36910fi 36911rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 36912rmdir conf$$.dir 2>/dev/null 36913 36914 36915# as_fn_mkdir_p 36916# ------------- 36917# Create "$as_dir" as a directory, including parents if necessary. 36918as_fn_mkdir_p () 36919{ 36920 36921 case $as_dir in #( 36922 -*) as_dir=./$as_dir;; 36923 esac 36924 test -d "$as_dir" || eval $as_mkdir_p || { 36925 as_dirs= 36926 while :; do 36927 case $as_dir in #( 36928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 36929 *) as_qdir=$as_dir;; 36930 esac 36931 as_dirs="'$as_qdir' $as_dirs" 36932 as_dir=`$as_dirname -- "$as_dir" || 36933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36934 X"$as_dir" : 'X\(//\)[^/]' \| \ 36935 X"$as_dir" : 'X\(//\)$' \| \ 36936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 36937$as_echo X"$as_dir" | 36938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36939 s//\1/ 36940 q 36941 } 36942 /^X\(\/\/\)[^/].*/{ 36943 s//\1/ 36944 q 36945 } 36946 /^X\(\/\/\)$/{ 36947 s//\1/ 36948 q 36949 } 36950 /^X\(\/\).*/{ 36951 s//\1/ 36952 q 36953 } 36954 s/.*/./; q'` 36955 test -d "$as_dir" && break 36956 done 36957 test -z "$as_dirs" || eval "mkdir $as_dirs" 36958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 36959 36960 36961} # as_fn_mkdir_p 36962if mkdir -p . 2>/dev/null; then 36963 as_mkdir_p='mkdir -p "$as_dir"' 36964else 36965 test -d ./-p && rmdir ./-p 36966 as_mkdir_p=false 36967fi 36968 36969 36970# as_fn_executable_p FILE 36971# ----------------------- 36972# Test if FILE is an executable regular file. 36973as_fn_executable_p () 36974{ 36975 test -f "$1" && test -x "$1" 36976} # as_fn_executable_p 36977as_test_x='test -x' 36978as_executable_p=as_fn_executable_p 36979 36980# Sed expression to map a string onto a valid CPP name. 36981as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 36982 36983# Sed expression to map a string onto a valid variable name. 36984as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 36985 36986 36987exec 6>&1 36988## ----------------------------------- ## 36989## Main body of $CONFIG_STATUS script. ## 36990## ----------------------------------- ## 36991_ASEOF 36992test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 36993 36994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36995# Save the log message, to keep $0 and so on meaningful, and to 36996# report actual input values of CONFIG_FILES etc. instead of their 36997# values after options handling. 36998ac_log=" 36999This file was extended by ImageMagick $as_me 7.0.0-0, which was 37000generated by GNU Autoconf 2.69. Invocation command line was 37001 37002 CONFIG_FILES = $CONFIG_FILES 37003 CONFIG_HEADERS = $CONFIG_HEADERS 37004 CONFIG_LINKS = $CONFIG_LINKS 37005 CONFIG_COMMANDS = $CONFIG_COMMANDS 37006 $ $0 $@ 37007 37008on `(hostname || uname -n) 2>/dev/null | sed 1q` 37009" 37010 37011_ACEOF 37012 37013case $ac_config_files in *" 37014"*) set x $ac_config_files; shift; ac_config_files=$*;; 37015esac 37016 37017case $ac_config_headers in *" 37018"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 37019esac 37020 37021 37022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37023# Files that config.status was made for. 37024config_files="$ac_config_files" 37025config_headers="$ac_config_headers" 37026config_commands="$ac_config_commands" 37027 37028_ACEOF 37029 37030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37031ac_cs_usage="\ 37032\`$as_me' instantiates files and other configuration actions 37033from templates according to the current configuration. Unless the files 37034and actions are specified as TAGs, all are instantiated by default. 37035 37036Usage: $0 [OPTION]... [TAG]... 37037 37038 -h, --help print this help, then exit 37039 -V, --version print version number and configuration settings, then exit 37040 --config print configuration, then exit 37041 -q, --quiet, --silent 37042 do not print progress messages 37043 -d, --debug don't remove temporary files 37044 --recheck update $as_me by reconfiguring in the same conditions 37045 --file=FILE[:TEMPLATE] 37046 instantiate the configuration file FILE 37047 --header=FILE[:TEMPLATE] 37048 instantiate the configuration header FILE 37049 37050Configuration files: 37051$config_files 37052 37053Configuration headers: 37054$config_headers 37055 37056Configuration commands: 37057$config_commands 37058 37059Report bugs to <http://www.imagemagick.org>." 37060 37061_ACEOF 37062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37063ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 37064ac_cs_version="\\ 37065ImageMagick config.status 7.0.0-0 37066configured by $0, generated by GNU Autoconf 2.69, 37067 with options \\"\$ac_cs_config\\" 37068 37069Copyright (C) 2012 Free Software Foundation, Inc. 37070This config.status script is free software; the Free Software Foundation 37071gives unlimited permission to copy, distribute and modify it." 37072 37073ac_pwd='$ac_pwd' 37074srcdir='$srcdir' 37075INSTALL='$INSTALL' 37076MKDIR_P='$MKDIR_P' 37077AWK='$AWK' 37078test -n "\$AWK" || AWK=awk 37079_ACEOF 37080 37081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37082# The default lists apply if the user does not specify any file. 37083ac_need_defaults=: 37084while test $# != 0 37085do 37086 case $1 in 37087 --*=?*) 37088 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 37090 ac_shift=: 37091 ;; 37092 --*=) 37093 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37094 ac_optarg= 37095 ac_shift=: 37096 ;; 37097 *) 37098 ac_option=$1 37099 ac_optarg=$2 37100 ac_shift=shift 37101 ;; 37102 esac 37103 37104 case $ac_option in 37105 # Handling of the options. 37106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 37107 ac_cs_recheck=: ;; 37108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 37109 $as_echo "$ac_cs_version"; exit ;; 37110 --config | --confi | --conf | --con | --co | --c ) 37111 $as_echo "$ac_cs_config"; exit ;; 37112 --debug | --debu | --deb | --de | --d | -d ) 37113 debug=: ;; 37114 --file | --fil | --fi | --f ) 37115 $ac_shift 37116 case $ac_optarg in 37117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37118 '') as_fn_error $? "missing file argument" ;; 37119 esac 37120 as_fn_append CONFIG_FILES " '$ac_optarg'" 37121 ac_need_defaults=false;; 37122 --header | --heade | --head | --hea ) 37123 $ac_shift 37124 case $ac_optarg in 37125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37126 esac 37127 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 37128 ac_need_defaults=false;; 37129 --he | --h) 37130 # Conflict between --help and --header 37131 as_fn_error $? "ambiguous option: \`$1' 37132Try \`$0 --help' for more information.";; 37133 --help | --hel | -h ) 37134 $as_echo "$ac_cs_usage"; exit ;; 37135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 37136 | -silent | --silent | --silen | --sile | --sil | --si | --s) 37137 ac_cs_silent=: ;; 37138 37139 # This is an error. 37140 -*) as_fn_error $? "unrecognized option: \`$1' 37141Try \`$0 --help' for more information." ;; 37142 37143 *) as_fn_append ac_config_targets " $1" 37144 ac_need_defaults=false ;; 37145 37146 esac 37147 shift 37148done 37149 37150ac_configure_extra_args= 37151 37152if $ac_cs_silent; then 37153 exec 6>/dev/null 37154 ac_configure_extra_args="$ac_configure_extra_args --silent" 37155fi 37156 37157_ACEOF 37158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37159if \$ac_cs_recheck; then 37160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 37161 shift 37162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 37163 CONFIG_SHELL='$SHELL' 37164 export CONFIG_SHELL 37165 exec "\$@" 37166fi 37167 37168_ACEOF 37169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37170exec 5>>config.log 37171{ 37172 echo 37173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 37174## Running $as_me. ## 37175_ASBOX 37176 $as_echo "$ac_log" 37177} >&5 37178 37179_ACEOF 37180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37181# 37182# INIT-COMMANDS 37183# 37184PACKAGE="$PACKAGE" 37185AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 37186 37187 37188# The HP-UX ksh and POSIX shell print the target directory to stdout 37189# if CDPATH is set. 37190(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37191 37192sed_quote_subst='$sed_quote_subst' 37193double_quote_subst='$double_quote_subst' 37194delay_variable_subst='$delay_variable_subst' 37195SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 37196Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 37197GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 37198EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 37199FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 37200SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 37201ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 37202LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 37203macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 37204macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 37205AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 37206DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 37207OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 37208enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 37209enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 37210pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 37211enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 37212shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 37213PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 37214host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 37215host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 37216host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 37217build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 37218build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 37219build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 37220NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 37221LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 37222max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 37223ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 37224exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 37225lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 37226lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 37227lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 37228lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 37229lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 37230reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 37231reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 37232deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 37233file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 37234file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 37235want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 37236sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 37237AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 37238AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 37239archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 37240STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 37241RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 37242old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37243old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37244old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 37245lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 37246CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 37247CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 37248compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 37249GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 37250lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 37251lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 37252lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 37253lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 37254lt_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"`' 37255lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 37256nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 37257lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 37258lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 37259objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 37260MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 37261lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 37262lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 37263lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 37264lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 37265lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 37266need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 37267MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 37268DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 37269NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 37270LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 37271OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 37272OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 37273libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 37274shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 37275extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37276archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 37277enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 37278export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 37279whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 37280compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 37281old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 37282old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37283archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 37284archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37285module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 37286module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37287with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 37288allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 37289no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 37290hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 37291hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 37292hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 37293hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 37294hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 37295hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 37296hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 37297inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 37298link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 37299always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 37300export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 37301exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 37302include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 37303prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 37304postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 37305file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 37306variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 37307need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 37308need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 37309version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 37310runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 37311shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 37312shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 37313libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 37314library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 37315soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 37316install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 37317postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37318postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37319finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 37320finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 37321hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 37322sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 37323configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 37324configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 37325hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 37326enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 37327enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 37328enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 37329old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 37330striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 37331compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 37332predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 37333postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 37334predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 37335postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 37336compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 37337LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 37338reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 37339reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37340old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37341compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 37342GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 37343lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 37344lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 37345lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 37346lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 37347lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 37348archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 37349enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 37350export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37351whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37352compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 37353old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37354old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37355archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37356archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37357module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37358module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37359with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 37360allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 37361no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 37362hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37363hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 37364hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 37365hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 37366hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 37367hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 37368hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 37369inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 37370link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 37371always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 37372export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37373exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 37374include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 37375prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37376postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37377file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 37378hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 37379compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 37380predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 37381postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 37382predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 37383postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 37384compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 37385 37386LTCC='$LTCC' 37387LTCFLAGS='$LTCFLAGS' 37388compiler='$compiler_DEFAULT' 37389 37390# A function that is used when there is no print builtin or printf. 37391func_fallback_echo () 37392{ 37393 eval 'cat <<_LTECHO_EOF 37394\$1 37395_LTECHO_EOF' 37396} 37397 37398# Quote evaled strings. 37399for var in SED \ 37400GREP \ 37401EGREP \ 37402FGREP \ 37403SHELL \ 37404ECHO \ 37405LD \ 37406AS \ 37407DLLTOOL \ 37408OBJDUMP \ 37409PATH_SEPARATOR \ 37410NM \ 37411LN_S \ 37412lt_SP2NL \ 37413lt_NL2SP \ 37414reload_flag \ 37415deplibs_check_method \ 37416file_magic_cmd \ 37417file_magic_glob \ 37418want_nocaseglob \ 37419sharedlib_from_linklib_cmd \ 37420AR \ 37421AR_FLAGS \ 37422archiver_list_spec \ 37423STRIP \ 37424RANLIB \ 37425CC \ 37426CFLAGS \ 37427compiler \ 37428lt_cv_sys_global_symbol_pipe \ 37429lt_cv_sys_global_symbol_to_cdecl \ 37430lt_cv_sys_global_symbol_to_import \ 37431lt_cv_sys_global_symbol_to_c_name_address \ 37432lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 37433lt_cv_nm_interface \ 37434nm_file_list_spec \ 37435lt_cv_truncate_bin \ 37436lt_prog_compiler_no_builtin_flag \ 37437lt_prog_compiler_pic \ 37438lt_prog_compiler_wl \ 37439lt_prog_compiler_static \ 37440lt_cv_prog_compiler_c_o \ 37441need_locks \ 37442MANIFEST_TOOL \ 37443DSYMUTIL \ 37444NMEDIT \ 37445LIPO \ 37446OTOOL \ 37447OTOOL64 \ 37448shrext_cmds \ 37449export_dynamic_flag_spec \ 37450whole_archive_flag_spec \ 37451compiler_needs_object \ 37452with_gnu_ld \ 37453allow_undefined_flag \ 37454no_undefined_flag \ 37455hardcode_libdir_flag_spec \ 37456hardcode_libdir_separator \ 37457exclude_expsyms \ 37458include_expsyms \ 37459file_list_spec \ 37460variables_saved_for_relink \ 37461libname_spec \ 37462library_names_spec \ 37463soname_spec \ 37464install_override_mode \ 37465finish_eval \ 37466old_striplib \ 37467striplib \ 37468compiler_lib_search_dirs \ 37469predep_objects \ 37470postdep_objects \ 37471predeps \ 37472postdeps \ 37473compiler_lib_search_path \ 37474LD_CXX \ 37475reload_flag_CXX \ 37476compiler_CXX \ 37477lt_prog_compiler_no_builtin_flag_CXX \ 37478lt_prog_compiler_pic_CXX \ 37479lt_prog_compiler_wl_CXX \ 37480lt_prog_compiler_static_CXX \ 37481lt_cv_prog_compiler_c_o_CXX \ 37482export_dynamic_flag_spec_CXX \ 37483whole_archive_flag_spec_CXX \ 37484compiler_needs_object_CXX \ 37485with_gnu_ld_CXX \ 37486allow_undefined_flag_CXX \ 37487no_undefined_flag_CXX \ 37488hardcode_libdir_flag_spec_CXX \ 37489hardcode_libdir_separator_CXX \ 37490exclude_expsyms_CXX \ 37491include_expsyms_CXX \ 37492file_list_spec_CXX \ 37493compiler_lib_search_dirs_CXX \ 37494predep_objects_CXX \ 37495postdep_objects_CXX \ 37496predeps_CXX \ 37497postdeps_CXX \ 37498compiler_lib_search_path_CXX; do 37499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37500 *[\\\\\\\`\\"\\\$]*) 37501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 37502 ;; 37503 *) 37504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37505 ;; 37506 esac 37507done 37508 37509# Double-quote double-evaled strings. 37510for var in reload_cmds \ 37511old_postinstall_cmds \ 37512old_postuninstall_cmds \ 37513old_archive_cmds \ 37514extract_expsyms_cmds \ 37515old_archive_from_new_cmds \ 37516old_archive_from_expsyms_cmds \ 37517archive_cmds \ 37518archive_expsym_cmds \ 37519module_cmds \ 37520module_expsym_cmds \ 37521export_symbols_cmds \ 37522prelink_cmds \ 37523postlink_cmds \ 37524postinstall_cmds \ 37525postuninstall_cmds \ 37526finish_cmds \ 37527sys_lib_search_path_spec \ 37528configure_time_dlsearch_path \ 37529configure_time_lt_sys_library_path \ 37530reload_cmds_CXX \ 37531old_archive_cmds_CXX \ 37532old_archive_from_new_cmds_CXX \ 37533old_archive_from_expsyms_cmds_CXX \ 37534archive_cmds_CXX \ 37535archive_expsym_cmds_CXX \ 37536module_cmds_CXX \ 37537module_expsym_cmds_CXX \ 37538export_symbols_cmds_CXX \ 37539prelink_cmds_CXX \ 37540postlink_cmds_CXX; do 37541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37542 *[\\\\\\\`\\"\\\$]*) 37543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 37544 ;; 37545 *) 37546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37547 ;; 37548 esac 37549done 37550 37551ac_aux_dir='$ac_aux_dir' 37552 37553# See if we are running on zsh, and set the options that allow our 37554# commands through without removal of \ escapes INIT. 37555if test -n "\${ZSH_VERSION+set}"; then 37556 setopt NO_GLOB_SUBST 37557fi 37558 37559 37560 PACKAGE='$PACKAGE' 37561 VERSION='$VERSION' 37562 RM='$RM' 37563 ofile='$ofile' 37564 37565 37566 37567 37568 37569 37570_ACEOF 37571 37572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37573 37574# Handling of arguments. 37575for ac_config_target in $ac_config_targets 37576do 37577 case $ac_config_target in 37578 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 37579 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; 37580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 37581 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 37582 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 37583 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; 37584 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; 37585 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; 37586 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; 37587 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; 37588 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; 37589 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; 37590 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; 37591 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; 37592 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; 37593 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; 37594 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; 37595 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;; 37596 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; 37597 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; 37598 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; 37599 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; 37600 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; 37601 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; 37602 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; 37603 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; 37604 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; 37605 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; 37606 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; 37607 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 37608 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; 37609 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; 37610 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;; 37611 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; 37612 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;; 37613 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;; 37614 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;; 37615 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;; 37616 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;; 37617 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; 37618 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; 37619 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; 37620 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; 37621 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; 37622 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; 37623 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; 37624 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; 37625 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; 37626 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; 37627 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; 37628 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; 37629 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; 37630 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; 37631 37632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 37633 esac 37634done 37635 37636 37637# If the user did not use the arguments to specify the items to instantiate, 37638# then the envvar interface is used. Set only those that are not. 37639# We use the long form for the default assignment because of an extremely 37640# bizarre bug on SunOS 4.1.3. 37641if $ac_need_defaults; then 37642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 37643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 37644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 37645fi 37646 37647# Have a temporary directory for convenience. Make it in the build tree 37648# simply because there is no reason against having it here, and in addition, 37649# creating and moving files from /tmp can sometimes cause problems. 37650# Hook for its removal unless debugging. 37651# Note that there is a small window in which the directory will not be cleaned: 37652# after its creation but before its name has been assigned to `$tmp'. 37653$debug || 37654{ 37655 tmp= ac_tmp= 37656 trap 'exit_status=$? 37657 : "${ac_tmp:=$tmp}" 37658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 37659' 0 37660 trap 'as_fn_exit 1' 1 2 13 15 37661} 37662# Create a (secure) tmp directory for tmp files. 37663 37664{ 37665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 37666 test -d "$tmp" 37667} || 37668{ 37669 tmp=./conf$$-$RANDOM 37670 (umask 077 && mkdir "$tmp") 37671} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 37672ac_tmp=$tmp 37673 37674# Set up the scripts for CONFIG_FILES section. 37675# No need to generate them if there are no CONFIG_FILES. 37676# This happens for instance with `./config.status config.h'. 37677if test -n "$CONFIG_FILES"; then 37678 37679 37680ac_cr=`echo X | tr X '\015'` 37681# On cygwin, bash can eat \r inside `` if the user requested igncr. 37682# But we know of no other shell where ac_cr would be empty at this 37683# point, so we can use a bashism as a fallback. 37684if test "x$ac_cr" = x; then 37685 eval ac_cr=\$\'\\r\' 37686fi 37687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 37688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 37689 ac_cs_awk_cr='\\r' 37690else 37691 ac_cs_awk_cr=$ac_cr 37692fi 37693 37694echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 37695_ACEOF 37696 37697 37698{ 37699 echo "cat >conf$$subs.awk <<_ACEOF" && 37700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 37701 echo "_ACEOF" 37702} >conf$$subs.sh || 37703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37704ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 37705ac_delim='%!_!# ' 37706for ac_last_try in false false false false false :; do 37707 . ./conf$$subs.sh || 37708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37709 37710 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 37711 if test $ac_delim_n = $ac_delim_num; then 37712 break 37713 elif $ac_last_try; then 37714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37715 else 37716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 37717 fi 37718done 37719rm -f conf$$subs.sh 37720 37721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37722cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 37723_ACEOF 37724sed -n ' 37725h 37726s/^/S["/; s/!.*/"]=/ 37727p 37728g 37729s/^[^!]*!// 37730:repl 37731t repl 37732s/'"$ac_delim"'$// 37733t delim 37734:nl 37735h 37736s/\(.\{148\}\)..*/\1/ 37737t more1 37738s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 37739p 37740n 37741b repl 37742:more1 37743s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37744p 37745g 37746s/.\{148\}// 37747t nl 37748:delim 37749h 37750s/\(.\{148\}\)..*/\1/ 37751t more2 37752s/["\\]/\\&/g; s/^/"/; s/$/"/ 37753p 37754b 37755:more2 37756s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37757p 37758g 37759s/.\{148\}// 37760t delim 37761' <conf$$subs.awk | sed ' 37762/^[^""]/{ 37763 N 37764 s/\n// 37765} 37766' >>$CONFIG_STATUS || ac_write_fail=1 37767rm -f conf$$subs.awk 37768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37769_ACAWK 37770cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 37771 for (key in S) S_is_set[key] = 1 37772 FS = "" 37773 37774} 37775{ 37776 line = $ 0 37777 nfields = split(line, field, "@") 37778 substed = 0 37779 len = length(field[1]) 37780 for (i = 2; i < nfields; i++) { 37781 key = field[i] 37782 keylen = length(key) 37783 if (S_is_set[key]) { 37784 value = S[key] 37785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 37786 len += length(value) + length(field[++i]) 37787 substed = 1 37788 } else 37789 len += 1 + keylen 37790 } 37791 37792 print line 37793} 37794 37795_ACAWK 37796_ACEOF 37797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 37799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 37800else 37801 cat 37802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 37803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 37804_ACEOF 37805 37806# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 37807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 37808# trailing colons and then remove the whole line if VPATH becomes empty 37809# (actually we leave an empty line to preserve line numbers). 37810if test "x$srcdir" = x.; then 37811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 37812h 37813s/// 37814s/^/:/ 37815s/[ ]*$/:/ 37816s/:\$(srcdir):/:/g 37817s/:\${srcdir}:/:/g 37818s/:@srcdir@:/:/g 37819s/^:*// 37820s/:*$// 37821x 37822s/\(=[ ]*\).*/\1/ 37823G 37824s/\n// 37825s/^[^=]*=[ ]*$// 37826}' 37827fi 37828 37829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37830fi # test -n "$CONFIG_FILES" 37831 37832# Set up the scripts for CONFIG_HEADERS section. 37833# No need to generate them if there are no CONFIG_HEADERS. 37834# This happens for instance with `./config.status Makefile'. 37835if test -n "$CONFIG_HEADERS"; then 37836cat >"$ac_tmp/defines.awk" <<\_ACAWK || 37837BEGIN { 37838_ACEOF 37839 37840# Transform confdefs.h into an awk script `defines.awk', embedded as 37841# here-document in config.status, that substitutes the proper values into 37842# config.h.in to produce config.h. 37843 37844# Create a delimiter string that does not exist in confdefs.h, to ease 37845# handling of long lines. 37846ac_delim='%!_!# ' 37847for ac_last_try in false false :; do 37848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 37849 if test -z "$ac_tt"; then 37850 break 37851 elif $ac_last_try; then 37852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 37853 else 37854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 37855 fi 37856done 37857 37858# For the awk script, D is an array of macro values keyed by name, 37859# likewise P contains macro parameters if any. Preserve backslash 37860# newline sequences. 37861 37862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 37863sed -n ' 37864s/.\{148\}/&'"$ac_delim"'/g 37865t rset 37866:rset 37867s/^[ ]*#[ ]*define[ ][ ]*/ / 37868t def 37869d 37870:def 37871s/\\$// 37872t bsnl 37873s/["\\]/\\&/g 37874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 37875D["\1"]=" \3"/p 37876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 37877d 37878:bsnl 37879s/["\\]/\\&/g 37880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 37881D["\1"]=" \3\\\\\\n"\\/p 37882t cont 37883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 37884t cont 37885d 37886:cont 37887n 37888s/.\{148\}/&'"$ac_delim"'/g 37889t clear 37890:clear 37891s/\\$// 37892t bsnlc 37893s/["\\]/\\&/g; s/^/"/; s/$/"/p 37894d 37895:bsnlc 37896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 37897b cont 37898' <confdefs.h | sed ' 37899s/'"$ac_delim"'/"\\\ 37900"/g' >>$CONFIG_STATUS || ac_write_fail=1 37901 37902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37903 for (key in D) D_is_set[key] = 1 37904 FS = "" 37905} 37906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 37907 line = \$ 0 37908 split(line, arg, " ") 37909 if (arg[1] == "#") { 37910 defundef = arg[2] 37911 mac1 = arg[3] 37912 } else { 37913 defundef = substr(arg[1], 2) 37914 mac1 = arg[2] 37915 } 37916 split(mac1, mac2, "(") #) 37917 macro = mac2[1] 37918 prefix = substr(line, 1, index(line, defundef) - 1) 37919 if (D_is_set[macro]) { 37920 # Preserve the white space surrounding the "#". 37921 print prefix "define", macro P[macro] D[macro] 37922 next 37923 } else { 37924 # Replace #undef with comments. This is necessary, for example, 37925 # in the case of _POSIX_SOURCE, which is predefined and required 37926 # on some systems where configure will not decide to define it. 37927 if (defundef == "undef") { 37928 print "/*", prefix defundef, macro, "*/" 37929 next 37930 } 37931 } 37932} 37933{ print } 37934_ACAWK 37935_ACEOF 37936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 37938fi # test -n "$CONFIG_HEADERS" 37939 37940 37941eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 37942shift 37943for ac_tag 37944do 37945 case $ac_tag in 37946 :[FHLC]) ac_mode=$ac_tag; continue;; 37947 esac 37948 case $ac_mode$ac_tag in 37949 :[FHL]*:*);; 37950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 37951 :[FH]-) ac_tag=-:-;; 37952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 37953 esac 37954 ac_save_IFS=$IFS 37955 IFS=: 37956 set x $ac_tag 37957 IFS=$ac_save_IFS 37958 shift 37959 ac_file=$1 37960 shift 37961 37962 case $ac_mode in 37963 :L) ac_source=$1;; 37964 :[FH]) 37965 ac_file_inputs= 37966 for ac_f 37967 do 37968 case $ac_f in 37969 -) ac_f="$ac_tmp/stdin";; 37970 *) # Look for the file first in the build tree, then in the source tree 37971 # (if the path is not absolute). The absolute path cannot be DOS-style, 37972 # because $ac_f cannot contain `:'. 37973 test -f "$ac_f" || 37974 case $ac_f in 37975 [\\/$]*) false;; 37976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 37977 esac || 37978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 37979 esac 37980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 37981 as_fn_append ac_file_inputs " '$ac_f'" 37982 done 37983 37984 # Let's still pretend it is `configure' which instantiates (i.e., don't 37985 # use $as_me), people would be surprised to read: 37986 # /* config.h. Generated by config.status. */ 37987 configure_input='Generated from '` 37988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 37989 `' by configure.' 37990 if test x"$ac_file" != x-; then 37991 configure_input="$ac_file. $configure_input" 37992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 37993$as_echo "$as_me: creating $ac_file" >&6;} 37994 fi 37995 # Neutralize special characters interpreted by sed in replacement strings. 37996 case $configure_input in #( 37997 *\&* | *\|* | *\\* ) 37998 ac_sed_conf_input=`$as_echo "$configure_input" | 37999 sed 's/[\\\\&|]/\\\\&/g'`;; #( 38000 *) ac_sed_conf_input=$configure_input;; 38001 esac 38002 38003 case $ac_tag in 38004 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 38005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 38006 esac 38007 ;; 38008 esac 38009 38010 ac_dir=`$as_dirname -- "$ac_file" || 38011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38012 X"$ac_file" : 'X\(//\)[^/]' \| \ 38013 X"$ac_file" : 'X\(//\)$' \| \ 38014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38015$as_echo X"$ac_file" | 38016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38017 s//\1/ 38018 q 38019 } 38020 /^X\(\/\/\)[^/].*/{ 38021 s//\1/ 38022 q 38023 } 38024 /^X\(\/\/\)$/{ 38025 s//\1/ 38026 q 38027 } 38028 /^X\(\/\).*/{ 38029 s//\1/ 38030 q 38031 } 38032 s/.*/./; q'` 38033 as_dir="$ac_dir"; as_fn_mkdir_p 38034 ac_builddir=. 38035 38036case "$ac_dir" in 38037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 38038*) 38039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 38040 # A ".." for each directory in $ac_dir_suffix. 38041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 38042 case $ac_top_builddir_sub in 38043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 38044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 38045 esac ;; 38046esac 38047ac_abs_top_builddir=$ac_pwd 38048ac_abs_builddir=$ac_pwd$ac_dir_suffix 38049# for backward compatibility: 38050ac_top_builddir=$ac_top_build_prefix 38051 38052case $srcdir in 38053 .) # We are building in place. 38054 ac_srcdir=. 38055 ac_top_srcdir=$ac_top_builddir_sub 38056 ac_abs_top_srcdir=$ac_pwd ;; 38057 [\\/]* | ?:[\\/]* ) # Absolute name. 38058 ac_srcdir=$srcdir$ac_dir_suffix; 38059 ac_top_srcdir=$srcdir 38060 ac_abs_top_srcdir=$srcdir ;; 38061 *) # Relative name. 38062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 38063 ac_top_srcdir=$ac_top_build_prefix$srcdir 38064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 38065esac 38066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 38067 38068 38069 case $ac_mode in 38070 :F) 38071 # 38072 # CONFIG_FILE 38073 # 38074 38075 case $INSTALL in 38076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 38077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 38078 esac 38079 ac_MKDIR_P=$MKDIR_P 38080 case $MKDIR_P in 38081 [\\/$]* | ?:[\\/]* ) ;; 38082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 38083 esac 38084_ACEOF 38085 38086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38087# If the template does not know about datarootdir, expand it. 38088# FIXME: This hack should be removed a few years after 2.60. 38089ac_datarootdir_hack=; ac_datarootdir_seen= 38090ac_sed_dataroot=' 38091/datarootdir/ { 38092 p 38093 q 38094} 38095/@datadir@/p 38096/@docdir@/p 38097/@infodir@/p 38098/@localedir@/p 38099/@mandir@/p' 38100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 38101*datarootdir*) ac_datarootdir_seen=yes;; 38102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 38103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 38104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 38105_ACEOF 38106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38107 ac_datarootdir_hack=' 38108 s&@datadir@&$datadir&g 38109 s&@docdir@&$docdir&g 38110 s&@infodir@&$infodir&g 38111 s&@localedir@&$localedir&g 38112 s&@mandir@&$mandir&g 38113 s&\\\${datarootdir}&$datarootdir&g' ;; 38114esac 38115_ACEOF 38116 38117# Neutralize VPATH when `$srcdir' = `.'. 38118# Shell code in configure.ac might set extrasub. 38119# FIXME: do we really want to maintain this feature? 38120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38121ac_sed_extra="$ac_vpsub 38122$extrasub 38123_ACEOF 38124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38125:t 38126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 38127s|@configure_input@|$ac_sed_conf_input|;t t 38128s&@top_builddir@&$ac_top_builddir_sub&;t t 38129s&@top_build_prefix@&$ac_top_build_prefix&;t t 38130s&@srcdir@&$ac_srcdir&;t t 38131s&@abs_srcdir@&$ac_abs_srcdir&;t t 38132s&@top_srcdir@&$ac_top_srcdir&;t t 38133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 38134s&@builddir@&$ac_builddir&;t t 38135s&@abs_builddir@&$ac_abs_builddir&;t t 38136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 38137s&@INSTALL@&$ac_INSTALL&;t t 38138s&@MKDIR_P@&$ac_MKDIR_P&;t t 38139$ac_datarootdir_hack 38140" 38141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 38142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38143 38144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 38145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 38146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 38147 "$ac_tmp/out"`; test -z "$ac_out"; } && 38148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38149which seems to be undefined. Please make sure it is defined" >&5 38150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38151which seems to be undefined. Please make sure it is defined" >&2;} 38152 38153 rm -f "$ac_tmp/stdin" 38154 case $ac_file in 38155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 38156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 38157 esac \ 38158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38159 ;; 38160 :H) 38161 # 38162 # CONFIG_HEADER 38163 # 38164 if test x"$ac_file" != x-; then 38165 { 38166 $as_echo "/* $configure_input */" \ 38167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 38168 } >"$ac_tmp/config.h" \ 38169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 38171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 38172$as_echo "$as_me: $ac_file is unchanged" >&6;} 38173 else 38174 rm -f "$ac_file" 38175 mv "$ac_tmp/config.h" "$ac_file" \ 38176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38177 fi 38178 else 38179 $as_echo "/* $configure_input */" \ 38180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 38181 || as_fn_error $? "could not create -" "$LINENO" 5 38182 fi 38183# Compute "$ac_file"'s index in $config_headers. 38184_am_arg="$ac_file" 38185_am_stamp_count=1 38186for _am_header in $config_headers :; do 38187 case $_am_header in 38188 $_am_arg | $_am_arg:* ) 38189 break ;; 38190 * ) 38191 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 38192 esac 38193done 38194echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 38195$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38196 X"$_am_arg" : 'X\(//\)[^/]' \| \ 38197 X"$_am_arg" : 'X\(//\)$' \| \ 38198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 38199$as_echo X"$_am_arg" | 38200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38201 s//\1/ 38202 q 38203 } 38204 /^X\(\/\/\)[^/].*/{ 38205 s//\1/ 38206 q 38207 } 38208 /^X\(\/\/\)$/{ 38209 s//\1/ 38210 q 38211 } 38212 /^X\(\/\).*/{ 38213 s//\1/ 38214 q 38215 } 38216 s/.*/./; q'`/stamp-h$_am_stamp_count 38217 ;; 38218 38219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 38220$as_echo "$as_me: executing $ac_file commands" >&6;} 38221 ;; 38222 esac 38223 38224 38225 case $ac_file$ac_mode in 38226 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` 38227ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 38228ac_prefix_conf_PKG=`echo MagickCore` 38229ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 38230ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 38231ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 38232if test ".$ac_prefix_conf_INP" = "."; then 38233 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 38234 case "$ac_file" in 38235 *.h) ac_prefix_conf_INP=$ac_file ;; 38236 *) 38237 esac 38238 test ".$ac_prefix_conf_INP" != "." && break 38239 done 38240fi 38241if test ".$ac_prefix_conf_INP" = "."; then 38242 case "$ac_prefix_conf_OUT" in 38243 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 38244 ;; 38245 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 38246 ;; 38247 *) ac_prefix_conf_INP=config.h 38248 ;; 38249 esac 38250fi 38251if test -z "$ac_prefix_conf_PKG" ; then 38252 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 38253else 38254 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 38255 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 38256 fi fi 38257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 38258$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 38259 if test -f $ac_prefix_conf_INP ; then 38260 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 38261 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 38262 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 38263 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 38264 $as_echo "#endif/" >> conftest.prefix 38265 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 38266 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 38267 $as_echo "#endif/" >> conftest.prefix 38268 # now executing _script on _DEF input to create _OUT output file 38269 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 38270 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 38271 echo ' ' >>$tmp/pconfig.h 38272 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 38273 38274 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 38275 echo ' ' >>$tmp/pconfig.h 38276 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 38277 echo "#endif" >>$tmp/pconfig.h 38278 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 38279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 38280$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 38281 else 38282 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 38283$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38284 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 38285 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 38286 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 38287$as_echo X"$ac_prefix_conf_OUT" | 38288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38289 s//\1/ 38290 q 38291 } 38292 /^X\(\/\/\)[^/].*/{ 38293 s//\1/ 38294 q 38295 } 38296 /^X\(\/\/\)$/{ 38297 s//\1/ 38298 q 38299 } 38300 /^X\(\/\).*/{ 38301 s//\1/ 38302 q 38303 } 38304 s/.*/./; q'` 38305 as_dir="$ac_dir"; as_fn_mkdir_p 38306 rm -f "$ac_prefix_conf_OUT" 38307 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 38308 fi 38309 else 38310 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 38311 fi 38312 rm -f conftest.* 38313fi 38314 ;; 38315 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 38316 # Older Autoconf quotes --file arguments for eval, but not when files 38317 # are listed without --file. Let's play safe and only enable the eval 38318 # if we detect the quoting. 38319 case $CONFIG_FILES in 38320 *\'*) eval set x "$CONFIG_FILES" ;; 38321 *) set x $CONFIG_FILES ;; 38322 esac 38323 shift 38324 for mf 38325 do 38326 # Strip MF so we end up with the name of the file. 38327 mf=`echo "$mf" | sed -e 's/:.*$//'` 38328 # Check whether this is an Automake generated Makefile or not. 38329 # We used to match only the files named 'Makefile.in', but 38330 # some people rename them; so instead we look at the file content. 38331 # Grep'ing the first line is not enough: some people post-process 38332 # each Makefile.in and add a new line on top of each file to say so. 38333 # Grep'ing the whole file is not good either: AIX grep has a line 38334 # limit of 2048, but all sed's we know have understand at least 4000. 38335 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 38336 dirpart=`$as_dirname -- "$mf" || 38337$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38338 X"$mf" : 'X\(//\)[^/]' \| \ 38339 X"$mf" : 'X\(//\)$' \| \ 38340 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 38341$as_echo X"$mf" | 38342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38343 s//\1/ 38344 q 38345 } 38346 /^X\(\/\/\)[^/].*/{ 38347 s//\1/ 38348 q 38349 } 38350 /^X\(\/\/\)$/{ 38351 s//\1/ 38352 q 38353 } 38354 /^X\(\/\).*/{ 38355 s//\1/ 38356 q 38357 } 38358 s/.*/./; q'` 38359 else 38360 continue 38361 fi 38362 # Extract the definition of DEPDIR, am__include, and am__quote 38363 # from the Makefile without running 'make'. 38364 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 38365 test -z "$DEPDIR" && continue 38366 am__include=`sed -n 's/^am__include = //p' < "$mf"` 38367 test -z "$am__include" && continue 38368 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 38369 # Find all dependency output files, they are included files with 38370 # $(DEPDIR) in their names. We invoke sed twice because it is the 38371 # simplest approach to changing $(DEPDIR) to its actual value in the 38372 # expansion. 38373 for file in `sed -n " 38374 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 38375 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 38376 # Make sure the directory exists. 38377 test -f "$dirpart/$file" && continue 38378 fdir=`$as_dirname -- "$file" || 38379$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38380 X"$file" : 'X\(//\)[^/]' \| \ 38381 X"$file" : 'X\(//\)$' \| \ 38382 X"$file" : 'X\(/\)' \| . 2>/dev/null || 38383$as_echo X"$file" | 38384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38385 s//\1/ 38386 q 38387 } 38388 /^X\(\/\/\)[^/].*/{ 38389 s//\1/ 38390 q 38391 } 38392 /^X\(\/\/\)$/{ 38393 s//\1/ 38394 q 38395 } 38396 /^X\(\/\).*/{ 38397 s//\1/ 38398 q 38399 } 38400 s/.*/./; q'` 38401 as_dir=$dirpart/$fdir; as_fn_mkdir_p 38402 # echo "creating $dirpart/$file" 38403 echo '# dummy' > "$dirpart/$file" 38404 done 38405 done 38406} 38407 ;; 38408 "libtool":C) 38409 38410 # See if we are running on zsh, and set the options that allow our 38411 # commands through without removal of \ escapes. 38412 if test -n "${ZSH_VERSION+set}"; then 38413 setopt NO_GLOB_SUBST 38414 fi 38415 38416 cfgfile=${ofile}T 38417 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 38418 $RM "$cfgfile" 38419 38420 cat <<_LT_EOF >> "$cfgfile" 38421#! $SHELL 38422# Generated automatically by $as_me ($PACKAGE) $VERSION 38423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 38424# NOTE: Changes made to this file will be lost: look at ltmain.sh. 38425 38426# Provide generalized library-building support services. 38427# Written by Gordon Matzigkeit, 1996 38428 38429# Copyright (C) 2014 Free Software Foundation, Inc. 38430# This is free software; see the source for copying conditions. There is NO 38431# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 38432 38433# GNU Libtool is free software; you can redistribute it and/or modify 38434# it under the terms of the GNU General Public License as published by 38435# the Free Software Foundation; either version 2 of of the License, or 38436# (at your option) any later version. 38437# 38438# As a special exception to the GNU General Public License, if you 38439# distribute this file as part of a program or library that is built 38440# using GNU Libtool, you may include this file under the same 38441# distribution terms that you use for the rest of that program. 38442# 38443# GNU Libtool is distributed in the hope that it will be useful, but 38444# WITHOUT ANY WARRANTY; without even the implied warranty of 38445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38446# GNU General Public License for more details. 38447# 38448# You should have received a copy of the GNU General Public License 38449# along with this program. If not, see <http://www.gnu.org/licenses/>. 38450 38451 38452# The names of the tagged configurations supported by this script. 38453available_tags='CXX ' 38454 38455# Configured defaults for sys_lib_dlsearch_path munging. 38456: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 38457 38458# ### BEGIN LIBTOOL CONFIG 38459 38460# A sed program that does not truncate output. 38461SED=$lt_SED 38462 38463# Sed that helps us avoid accidentally triggering echo(1) options like -n. 38464Xsed="\$SED -e 1s/^X//" 38465 38466# A grep program that handles long lines. 38467GREP=$lt_GREP 38468 38469# An ERE matcher. 38470EGREP=$lt_EGREP 38471 38472# A literal string matcher. 38473FGREP=$lt_FGREP 38474 38475# Shell to use when invoking shell scripts. 38476SHELL=$lt_SHELL 38477 38478# An echo program that protects backslashes. 38479ECHO=$lt_ECHO 38480 38481# Which release of libtool.m4 was used? 38482macro_version=$macro_version 38483macro_revision=$macro_revision 38484 38485# Assembler program. 38486AS=$lt_AS 38487 38488# DLL creation program. 38489DLLTOOL=$lt_DLLTOOL 38490 38491# Object dumper program. 38492OBJDUMP=$lt_OBJDUMP 38493 38494# Whether or not to build shared libraries. 38495build_libtool_libs=$enable_shared 38496 38497# Whether or not to build static libraries. 38498build_old_libs=$enable_static 38499 38500# What type of objects to build. 38501pic_mode=$pic_mode 38502 38503# Whether or not to optimize for fast installation. 38504fast_install=$enable_fast_install 38505 38506# Shared archive member basename,for filename based shared library versioning on AIX. 38507shared_archive_member_spec=$shared_archive_member_spec 38508 38509# The PATH separator for the build system. 38510PATH_SEPARATOR=$lt_PATH_SEPARATOR 38511 38512# The host system. 38513host_alias=$host_alias 38514host=$host 38515host_os=$host_os 38516 38517# The build system. 38518build_alias=$build_alias 38519build=$build 38520build_os=$build_os 38521 38522# A BSD- or MS-compatible name lister. 38523NM=$lt_NM 38524 38525# Whether we need soft or hard links. 38526LN_S=$lt_LN_S 38527 38528# What is the maximum length of a command? 38529max_cmd_len=$max_cmd_len 38530 38531# Object file suffix (normally "o"). 38532objext=$ac_objext 38533 38534# Executable file suffix (normally ""). 38535exeext=$exeext 38536 38537# whether the shell understands "unset". 38538lt_unset=$lt_unset 38539 38540# turn spaces into newlines. 38541SP2NL=$lt_lt_SP2NL 38542 38543# turn newlines into spaces. 38544NL2SP=$lt_lt_NL2SP 38545 38546# convert \$build file names to \$host format. 38547to_host_file_cmd=$lt_cv_to_host_file_cmd 38548 38549# convert \$build files to toolchain format. 38550to_tool_file_cmd=$lt_cv_to_tool_file_cmd 38551 38552# Method to check whether dependent libraries are shared objects. 38553deplibs_check_method=$lt_deplibs_check_method 38554 38555# Command to use when deplibs_check_method = "file_magic". 38556file_magic_cmd=$lt_file_magic_cmd 38557 38558# How to find potential files when deplibs_check_method = "file_magic". 38559file_magic_glob=$lt_file_magic_glob 38560 38561# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 38562want_nocaseglob=$lt_want_nocaseglob 38563 38564# Command to associate shared and link libraries. 38565sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 38566 38567# The archiver. 38568AR=$lt_AR 38569 38570# Flags to create an archive. 38571AR_FLAGS=$lt_AR_FLAGS 38572 38573# How to feed a file listing to the archiver. 38574archiver_list_spec=$lt_archiver_list_spec 38575 38576# A symbol stripping program. 38577STRIP=$lt_STRIP 38578 38579# Commands used to install an old-style archive. 38580RANLIB=$lt_RANLIB 38581old_postinstall_cmds=$lt_old_postinstall_cmds 38582old_postuninstall_cmds=$lt_old_postuninstall_cmds 38583 38584# Whether to use a lock for old archive extraction. 38585lock_old_archive_extraction=$lock_old_archive_extraction 38586 38587# A C compiler. 38588LTCC=$lt_CC 38589 38590# LTCC compiler flags. 38591LTCFLAGS=$lt_CFLAGS 38592 38593# Take the output of nm and produce a listing of raw symbols and C names. 38594global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 38595 38596# Transform the output of nm in a proper C declaration. 38597global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 38598 38599# Transform the output of nm into a list of symbols to manually relocate. 38600global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 38601 38602# Transform the output of nm in a C name address pair. 38603global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 38604 38605# Transform the output of nm in a C name address pair when lib prefix is needed. 38606global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 38607 38608# The name lister interface. 38609nm_interface=$lt_lt_cv_nm_interface 38610 38611# Specify filename containing input files for \$NM. 38612nm_file_list_spec=$lt_nm_file_list_spec 38613 38614# The root where to search for dependent libraries,and where our libraries should be installed. 38615lt_sysroot=$lt_sysroot 38616 38617# Command to truncate a binary pipe. 38618lt_truncate_bin=$lt_lt_cv_truncate_bin 38619 38620# The name of the directory that contains temporary libtool files. 38621objdir=$objdir 38622 38623# Used to examine libraries when file_magic_cmd begins with "file". 38624MAGIC_CMD=$MAGIC_CMD 38625 38626# Must we lock files when doing compilation? 38627need_locks=$lt_need_locks 38628 38629# Manifest tool. 38630MANIFEST_TOOL=$lt_MANIFEST_TOOL 38631 38632# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 38633DSYMUTIL=$lt_DSYMUTIL 38634 38635# Tool to change global to local symbols on Mac OS X. 38636NMEDIT=$lt_NMEDIT 38637 38638# Tool to manipulate fat objects and archives on Mac OS X. 38639LIPO=$lt_LIPO 38640 38641# ldd/readelf like tool for Mach-O binaries on Mac OS X. 38642OTOOL=$lt_OTOOL 38643 38644# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 38645OTOOL64=$lt_OTOOL64 38646 38647# Old archive suffix (normally "a"). 38648libext=$libext 38649 38650# Shared library suffix (normally ".so"). 38651shrext_cmds=$lt_shrext_cmds 38652 38653# The commands to extract the exported symbol list from a shared archive. 38654extract_expsyms_cmds=$lt_extract_expsyms_cmds 38655 38656# Variables whose values should be saved in libtool wrapper scripts and 38657# restored at link time. 38658variables_saved_for_relink=$lt_variables_saved_for_relink 38659 38660# Do we need the "lib" prefix for modules? 38661need_lib_prefix=$need_lib_prefix 38662 38663# Do we need a version for libraries? 38664need_version=$need_version 38665 38666# Library versioning type. 38667version_type=$version_type 38668 38669# Shared library runtime path variable. 38670runpath_var=$runpath_var 38671 38672# Shared library path variable. 38673shlibpath_var=$shlibpath_var 38674 38675# Is shlibpath searched before the hard-coded library search path? 38676shlibpath_overrides_runpath=$shlibpath_overrides_runpath 38677 38678# Format of library name prefix. 38679libname_spec=$lt_libname_spec 38680 38681# List of archive names. First name is the real one, the rest are links. 38682# The last name is the one that the linker finds with -lNAME 38683library_names_spec=$lt_library_names_spec 38684 38685# The coded name of the library, if different from the real name. 38686soname_spec=$lt_soname_spec 38687 38688# Permission mode override for installation of shared libraries. 38689install_override_mode=$lt_install_override_mode 38690 38691# Command to use after installation of a shared archive. 38692postinstall_cmds=$lt_postinstall_cmds 38693 38694# Command to use after uninstallation of a shared archive. 38695postuninstall_cmds=$lt_postuninstall_cmds 38696 38697# Commands used to finish a libtool library installation in a directory. 38698finish_cmds=$lt_finish_cmds 38699 38700# As "finish_cmds", except a single script fragment to be evaled but 38701# not shown. 38702finish_eval=$lt_finish_eval 38703 38704# Whether we should hardcode library paths into libraries. 38705hardcode_into_libs=$hardcode_into_libs 38706 38707# Compile-time system search path for libraries. 38708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 38709 38710# Detected run-time system search path for libraries. 38711sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 38712 38713# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 38714configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 38715 38716# Whether dlopen is supported. 38717dlopen_support=$enable_dlopen 38718 38719# Whether dlopen of programs is supported. 38720dlopen_self=$enable_dlopen_self 38721 38722# Whether dlopen of statically linked programs is supported. 38723dlopen_self_static=$enable_dlopen_self_static 38724 38725# Commands to strip libraries. 38726old_striplib=$lt_old_striplib 38727striplib=$lt_striplib 38728 38729 38730# The linker used to build libraries. 38731LD=$lt_LD 38732 38733# How to create reloadable object files. 38734reload_flag=$lt_reload_flag 38735reload_cmds=$lt_reload_cmds 38736 38737# Commands used to build an old-style archive. 38738old_archive_cmds=$lt_old_archive_cmds 38739 38740# A language specific compiler. 38741CC=$lt_compiler 38742 38743# Is the compiler the GNU compiler? 38744with_gcc=$GCC 38745 38746# Compiler flag to turn off builtin functions. 38747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 38748 38749# Additional compiler flags for building library objects. 38750pic_flag=$lt_lt_prog_compiler_pic 38751 38752# How to pass a linker flag through the compiler. 38753wl=$lt_lt_prog_compiler_wl 38754 38755# Compiler flag to prevent dynamic linking. 38756link_static_flag=$lt_lt_prog_compiler_static 38757 38758# Does compiler simultaneously support -c and -o options? 38759compiler_c_o=$lt_lt_cv_prog_compiler_c_o 38760 38761# Whether or not to add -lc for building shared libraries. 38762build_libtool_need_lc=$archive_cmds_need_lc 38763 38764# Whether or not to disallow shared libs when runtime libs are static. 38765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 38766 38767# Compiler flag to allow reflexive dlopens. 38768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 38769 38770# Compiler flag to generate shared objects directly from archives. 38771whole_archive_flag_spec=$lt_whole_archive_flag_spec 38772 38773# Whether the compiler copes with passing no objects directly. 38774compiler_needs_object=$lt_compiler_needs_object 38775 38776# Create an old-style archive from a shared archive. 38777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 38778 38779# Create a temporary old-style archive to link instead of a shared archive. 38780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 38781 38782# Commands used to build a shared archive. 38783archive_cmds=$lt_archive_cmds 38784archive_expsym_cmds=$lt_archive_expsym_cmds 38785 38786# Commands used to build a loadable module if different from building 38787# a shared archive. 38788module_cmds=$lt_module_cmds 38789module_expsym_cmds=$lt_module_expsym_cmds 38790 38791# Whether we are building with GNU ld or not. 38792with_gnu_ld=$lt_with_gnu_ld 38793 38794# Flag that allows shared libraries with undefined symbols to be built. 38795allow_undefined_flag=$lt_allow_undefined_flag 38796 38797# Flag that enforces no undefined symbols. 38798no_undefined_flag=$lt_no_undefined_flag 38799 38800# Flag to hardcode \$libdir into a binary during linking. 38801# This must work even if \$libdir does not exist 38802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 38803 38804# Whether we need a single "-rpath" flag with a separated argument. 38805hardcode_libdir_separator=$lt_hardcode_libdir_separator 38806 38807# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 38808# DIR into the resulting binary. 38809hardcode_direct=$hardcode_direct 38810 38811# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 38812# DIR into the resulting binary and the resulting library dependency is 38813# "absolute",i.e impossible to change by setting \$shlibpath_var if the 38814# library is relocated. 38815hardcode_direct_absolute=$hardcode_direct_absolute 38816 38817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 38818# into the resulting binary. 38819hardcode_minus_L=$hardcode_minus_L 38820 38821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 38822# into the resulting binary. 38823hardcode_shlibpath_var=$hardcode_shlibpath_var 38824 38825# Set to "yes" if building a shared library automatically hardcodes DIR 38826# into the library and all subsequent libraries and executables linked 38827# against it. 38828hardcode_automatic=$hardcode_automatic 38829 38830# Set to yes if linker adds runtime paths of dependent libraries 38831# to runtime path list. 38832inherit_rpath=$inherit_rpath 38833 38834# Whether libtool must link a program against all its dependency libraries. 38835link_all_deplibs=$link_all_deplibs 38836 38837# Set to "yes" if exported symbols are required. 38838always_export_symbols=$always_export_symbols 38839 38840# The commands to list exported symbols. 38841export_symbols_cmds=$lt_export_symbols_cmds 38842 38843# Symbols that should not be listed in the preloaded symbols. 38844exclude_expsyms=$lt_exclude_expsyms 38845 38846# Symbols that must always be exported. 38847include_expsyms=$lt_include_expsyms 38848 38849# Commands necessary for linking programs (against libraries) with templates. 38850prelink_cmds=$lt_prelink_cmds 38851 38852# Commands necessary for finishing linking programs. 38853postlink_cmds=$lt_postlink_cmds 38854 38855# Specify filename containing input files. 38856file_list_spec=$lt_file_list_spec 38857 38858# How to hardcode a shared library path into an executable. 38859hardcode_action=$hardcode_action 38860 38861# The directories searched by this compiler when creating a shared library. 38862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 38863 38864# Dependencies to place before and after the objects being linked to 38865# create a shared library. 38866predep_objects=$lt_predep_objects 38867postdep_objects=$lt_postdep_objects 38868predeps=$lt_predeps 38869postdeps=$lt_postdeps 38870 38871# The library search path used internally by the compiler when linking 38872# a shared library. 38873compiler_lib_search_path=$lt_compiler_lib_search_path 38874 38875# ### END LIBTOOL CONFIG 38876 38877_LT_EOF 38878 38879 cat <<'_LT_EOF' >> "$cfgfile" 38880 38881# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 38882 38883# func_munge_path_list VARIABLE PATH 38884# ----------------------------------- 38885# VARIABLE is name of variable containing _space_ separated list of 38886# directories to be munged by the contents of PATH, which is string 38887# having a format: 38888# "DIR[:DIR]:" 38889# string "DIR[ DIR]" will be prepended to VARIABLE 38890# ":DIR[:DIR]" 38891# string "DIR[ DIR]" will be appended to VARIABLE 38892# "DIRP[:DIRP]::[DIRA:]DIRA" 38893# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 38894# "DIRA[ DIRA]" will be appended to VARIABLE 38895# "DIR[:DIR]" 38896# VARIABLE will be replaced by "DIR[ DIR]" 38897func_munge_path_list () 38898{ 38899 case x$2 in 38900 x) 38901 ;; 38902 *:) 38903 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 38904 ;; 38905 x:*) 38906 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 38907 ;; 38908 *::*) 38909 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 38910 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 38911 ;; 38912 *) 38913 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 38914 ;; 38915 esac 38916} 38917 38918 38919# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 38920func_cc_basename () 38921{ 38922 for cc_temp in $*""; do 38923 case $cc_temp in 38924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 38925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 38926 \-*) ;; 38927 *) break;; 38928 esac 38929 done 38930 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 38931} 38932 38933 38934# ### END FUNCTIONS SHARED WITH CONFIGURE 38935 38936_LT_EOF 38937 38938 case $host_os in 38939 aix3*) 38940 cat <<\_LT_EOF >> "$cfgfile" 38941# AIX sometimes has problems with the GCC collect2 program. For some 38942# reason, if we set the COLLECT_NAMES environment variable, the problems 38943# vanish in a puff of smoke. 38944if test set != "${COLLECT_NAMES+set}"; then 38945 COLLECT_NAMES= 38946 export COLLECT_NAMES 38947fi 38948_LT_EOF 38949 ;; 38950 esac 38951 38952 38953ltmain=$ac_aux_dir/ltmain.sh 38954 38955 38956 # We use sed instead of cat because bash on DJGPP gets confused if 38957 # if finds mixed CR/LF and LF-only lines. Since sed operates in 38958 # text mode, it properly converts lines to CR/LF. This bash problem 38959 # is reportedly fixed, but why not run on old versions too? 38960 sed '$q' "$ltmain" >> "$cfgfile" \ 38961 || (rm -f "$cfgfile"; exit 1) 38962 38963 mv -f "$cfgfile" "$ofile" || 38964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 38965 chmod +x "$ofile" 38966 38967 38968 cat <<_LT_EOF >> "$ofile" 38969 38970# ### BEGIN LIBTOOL TAG CONFIG: CXX 38971 38972# The linker used to build libraries. 38973LD=$lt_LD_CXX 38974 38975# How to create reloadable object files. 38976reload_flag=$lt_reload_flag_CXX 38977reload_cmds=$lt_reload_cmds_CXX 38978 38979# Commands used to build an old-style archive. 38980old_archive_cmds=$lt_old_archive_cmds_CXX 38981 38982# A language specific compiler. 38983CC=$lt_compiler_CXX 38984 38985# Is the compiler the GNU compiler? 38986with_gcc=$GCC_CXX 38987 38988# Compiler flag to turn off builtin functions. 38989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 38990 38991# Additional compiler flags for building library objects. 38992pic_flag=$lt_lt_prog_compiler_pic_CXX 38993 38994# How to pass a linker flag through the compiler. 38995wl=$lt_lt_prog_compiler_wl_CXX 38996 38997# Compiler flag to prevent dynamic linking. 38998link_static_flag=$lt_lt_prog_compiler_static_CXX 38999 39000# Does compiler simultaneously support -c and -o options? 39001compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 39002 39003# Whether or not to add -lc for building shared libraries. 39004build_libtool_need_lc=$archive_cmds_need_lc_CXX 39005 39006# Whether or not to disallow shared libs when runtime libs are static. 39007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 39008 39009# Compiler flag to allow reflexive dlopens. 39010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 39011 39012# Compiler flag to generate shared objects directly from archives. 39013whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 39014 39015# Whether the compiler copes with passing no objects directly. 39016compiler_needs_object=$lt_compiler_needs_object_CXX 39017 39018# Create an old-style archive from a shared archive. 39019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 39020 39021# Create a temporary old-style archive to link instead of a shared archive. 39022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 39023 39024# Commands used to build a shared archive. 39025archive_cmds=$lt_archive_cmds_CXX 39026archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 39027 39028# Commands used to build a loadable module if different from building 39029# a shared archive. 39030module_cmds=$lt_module_cmds_CXX 39031module_expsym_cmds=$lt_module_expsym_cmds_CXX 39032 39033# Whether we are building with GNU ld or not. 39034with_gnu_ld=$lt_with_gnu_ld_CXX 39035 39036# Flag that allows shared libraries with undefined symbols to be built. 39037allow_undefined_flag=$lt_allow_undefined_flag_CXX 39038 39039# Flag that enforces no undefined symbols. 39040no_undefined_flag=$lt_no_undefined_flag_CXX 39041 39042# Flag to hardcode \$libdir into a binary during linking. 39043# This must work even if \$libdir does not exist 39044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 39045 39046# Whether we need a single "-rpath" flag with a separated argument. 39047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 39048 39049# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39050# DIR into the resulting binary. 39051hardcode_direct=$hardcode_direct_CXX 39052 39053# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39054# DIR into the resulting binary and the resulting library dependency is 39055# "absolute",i.e impossible to change by setting \$shlibpath_var if the 39056# library is relocated. 39057hardcode_direct_absolute=$hardcode_direct_absolute_CXX 39058 39059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39060# into the resulting binary. 39061hardcode_minus_L=$hardcode_minus_L_CXX 39062 39063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39064# into the resulting binary. 39065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 39066 39067# Set to "yes" if building a shared library automatically hardcodes DIR 39068# into the library and all subsequent libraries and executables linked 39069# against it. 39070hardcode_automatic=$hardcode_automatic_CXX 39071 39072# Set to yes if linker adds runtime paths of dependent libraries 39073# to runtime path list. 39074inherit_rpath=$inherit_rpath_CXX 39075 39076# Whether libtool must link a program against all its dependency libraries. 39077link_all_deplibs=$link_all_deplibs_CXX 39078 39079# Set to "yes" if exported symbols are required. 39080always_export_symbols=$always_export_symbols_CXX 39081 39082# The commands to list exported symbols. 39083export_symbols_cmds=$lt_export_symbols_cmds_CXX 39084 39085# Symbols that should not be listed in the preloaded symbols. 39086exclude_expsyms=$lt_exclude_expsyms_CXX 39087 39088# Symbols that must always be exported. 39089include_expsyms=$lt_include_expsyms_CXX 39090 39091# Commands necessary for linking programs (against libraries) with templates. 39092prelink_cmds=$lt_prelink_cmds_CXX 39093 39094# Commands necessary for finishing linking programs. 39095postlink_cmds=$lt_postlink_cmds_CXX 39096 39097# Specify filename containing input files. 39098file_list_spec=$lt_file_list_spec_CXX 39099 39100# How to hardcode a shared library path into an executable. 39101hardcode_action=$hardcode_action_CXX 39102 39103# The directories searched by this compiler when creating a shared library. 39104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 39105 39106# Dependencies to place before and after the objects being linked to 39107# create a shared library. 39108predep_objects=$lt_predep_objects_CXX 39109postdep_objects=$lt_postdep_objects_CXX 39110predeps=$lt_predeps_CXX 39111postdeps=$lt_postdeps_CXX 39112 39113# The library search path used internally by the compiler when linking 39114# a shared library. 39115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 39116 39117# ### END LIBTOOL TAG CONFIG: CXX 39118_LT_EOF 39119 39120 ;; 39121 "magick.sh.in":C) chmod +x magick.sh ;; 39122 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; 39123 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; 39124 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; 39125 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; 39126 39127 esac 39128done # for ac_tag 39129 39130 39131as_fn_exit 0 39132_ACEOF 39133ac_clean_files=$ac_clean_files_save 39134 39135test $ac_write_fail = 0 || 39136 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 39137 39138 39139# configure is writing to config.log, and then calls config.status. 39140# config.status does its own redirection, appending to config.log. 39141# Unfortunately, on DOS this fails, as config.log is still kept open 39142# by configure, so config.status won't be able to write to it; its 39143# output is simply discarded. So we exec the FD to /dev/null, 39144# effectively closing config.log, so it can be properly (re)opened and 39145# appended to by config.status. When coming back to configure, we 39146# need to make the FD available again. 39147if test "$no_create" != yes; then 39148 ac_cs_success=: 39149 ac_config_status_args= 39150 test "$silent" = yes && 39151 ac_config_status_args="$ac_config_status_args --quiet" 39152 exec 5>/dev/null 39153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 39154 exec 5>>config.log 39155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 39156 # would make configure fail if this is the last instruction. 39157 $ac_cs_success || as_fn_exit 1 39158fi 39159if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 39160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 39161$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 39162fi 39163 39164 39165# ============================================================================== 39166# ImageMagick Configuration 39167# ============================================================================== 39168{ $as_echo "$as_me:${as_lineno-$LINENO}: 39169============================================================================== 39170ImageMagick is configured as follows. Please verify that this configuration 39171matches your expectations. 39172 39173 Host system type: $host 39174 Build system type: $build 39175 39176 Option Value 39177 ------------------------------------------------------------------------------ 39178 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 39179 Static libraries --enable-static=$enable_static $libtool_build_static_libs 39180 Module support --with-modules=$build_modules $build_modules 39181 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 39182 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 39183 High Dynamic Range Imagery 39184 --enable-hdri=$enable_hdri $enable_hdri 39185 39186 Install documentation: $wantdocs 39187 39188 Delegate Library Configuration: 39189 BZLIB --with-bzlib=$with_bzlib $have_bzlib 39190 Autotrace --with-autotrace=$with_autotrace $have_autotrace 39191 DJVU --with-djvu=$with_djvu $have_djvu 39192 DPS --with-dps=$with_dps $have_dps 39193 FFTW --with-fftw=$with_fftw $have_fftw 39194 FlashPIX --with-fpx=$with_fpx $have_fpx 39195 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 39196 FreeType --with-freetype=$with_freetype $have_freetype 39197 Ghostscript lib --with-gslib=$with_gslib $have_gslib 39198 Graphviz --with-gvc=$with_gvc $have_gvc 39199 JBIG --with-jbig=$with_jbig $have_jbig 39200 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 39201 LCMS --with-lcms=$with_lcms $have_lcms 39202 LQR --with-lqr=$with_lqr $have_lqr 39203 LTDL --with-ltdl=$with_ltdl $have_ltdl 39204 LZMA --with-lzma=$with_lzma $have_lzma 39205 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 39206 OpenEXR --with-openexr=$with_openexr $have_openexr 39207 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 39208 PANGO --with-pango=$with_pango $have_pango 39209 PERL --with-perl=$with_perl $have_perl 39210 PNG --with-png=$with_png $have_png 39211 RSVG --with-rsvg=$with_rsvg $have_rsvg 39212 TIFF --with-tiff=$with_tiff $have_tiff 39213 WEBP --with-webp=$with_webp $have_webp 39214 WMF --with-wmf=$with_wmf $have_wmf 39215 X11 --with-x=$with_x $have_x 39216 XML --with-xml=$with_xml $have_xml 39217 ZLIB --with-zlib=$with_zlib $have_zlib 39218 39219 Delegate Program Configuration: 39220 GhostPCL None $PCLDelegate ($PCLVersion) 39221 GhostXPS None $XPSDelegate ($XPSVersion) 39222 Ghostscript None $PSDelegate ($GSVersion) 39223 39224 Font Configuration: 39225 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 39226 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 39227 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 39228 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 39229 39230 X11 Configuration: 39231 X_CFLAGS = $X_CFLAGS 39232 X_PRE_LIBS = $X_PRE_LIBS 39233 X_LIBS = $X_LIBS 39234 X_EXTRA_LIBS = $X_EXTRA_LIBS 39235 39236 Options used to compile and link: 39237 PREFIX = $PREFIX_DIR 39238 EXEC-PREFIX = $EXEC_PREFIX_DIR 39239 VERSION = $PACKAGE_VERSION 39240 CC = $CC 39241 CFLAGS = $CFLAGS 39242 CPPFLAGS = $CPPFLAGS 39243 PCFLAGS = $PCFLAGS 39244 DEFS = $DEFS 39245 LDFLAGS = $LDFLAGS 39246 LIBS = $LIBS 39247 CXX = $CXX 39248 CXXFLAGS = $CXXFLAGS 39249 FEATURES = $MAGICK_FEATURES 39250 DELEGATES = $MAGICK_DELEGATES 39251============================================================================== 39252" >&5 39253$as_echo "$as_me: 39254============================================================================== 39255ImageMagick is configured as follows. Please verify that this configuration 39256matches your expectations. 39257 39258 Host system type: $host 39259 Build system type: $build 39260 39261 Option Value 39262 ------------------------------------------------------------------------------ 39263 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 39264 Static libraries --enable-static=$enable_static $libtool_build_static_libs 39265 Module support --with-modules=$build_modules $build_modules 39266 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 39267 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 39268 High Dynamic Range Imagery 39269 --enable-hdri=$enable_hdri $enable_hdri 39270 39271 Install documentation: $wantdocs 39272 39273 Delegate Library Configuration: 39274 BZLIB --with-bzlib=$with_bzlib $have_bzlib 39275 Autotrace --with-autotrace=$with_autotrace $have_autotrace 39276 DJVU --with-djvu=$with_djvu $have_djvu 39277 DPS --with-dps=$with_dps $have_dps 39278 FFTW --with-fftw=$with_fftw $have_fftw 39279 FlashPIX --with-fpx=$with_fpx $have_fpx 39280 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 39281 FreeType --with-freetype=$with_freetype $have_freetype 39282 Ghostscript lib --with-gslib=$with_gslib $have_gslib 39283 Graphviz --with-gvc=$with_gvc $have_gvc 39284 JBIG --with-jbig=$with_jbig $have_jbig 39285 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 39286 LCMS --with-lcms=$with_lcms $have_lcms 39287 LQR --with-lqr=$with_lqr $have_lqr 39288 LTDL --with-ltdl=$with_ltdl $have_ltdl 39289 LZMA --with-lzma=$with_lzma $have_lzma 39290 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 39291 OpenEXR --with-openexr=$with_openexr $have_openexr 39292 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 39293 PANGO --with-pango=$with_pango $have_pango 39294 PERL --with-perl=$with_perl $have_perl 39295 PNG --with-png=$with_png $have_png 39296 RSVG --with-rsvg=$with_rsvg $have_rsvg 39297 TIFF --with-tiff=$with_tiff $have_tiff 39298 WEBP --with-webp=$with_webp $have_webp 39299 WMF --with-wmf=$with_wmf $have_wmf 39300 X11 --with-x=$with_x $have_x 39301 XML --with-xml=$with_xml $have_xml 39302 ZLIB --with-zlib=$with_zlib $have_zlib 39303 39304 Delegate Program Configuration: 39305 GhostPCL None $PCLDelegate ($PCLVersion) 39306 GhostXPS None $XPSDelegate ($XPSVersion) 39307 Ghostscript None $PSDelegate ($GSVersion) 39308 39309 Font Configuration: 39310 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 39311 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 39312 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 39313 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 39314 39315 X11 Configuration: 39316 X_CFLAGS = $X_CFLAGS 39317 X_PRE_LIBS = $X_PRE_LIBS 39318 X_LIBS = $X_LIBS 39319 X_EXTRA_LIBS = $X_EXTRA_LIBS 39320 39321 Options used to compile and link: 39322 PREFIX = $PREFIX_DIR 39323 EXEC-PREFIX = $EXEC_PREFIX_DIR 39324 VERSION = $PACKAGE_VERSION 39325 CC = $CC 39326 CFLAGS = $CFLAGS 39327 CPPFLAGS = $CPPFLAGS 39328 PCFLAGS = $PCFLAGS 39329 DEFS = $DEFS 39330 LDFLAGS = $LDFLAGS 39331 LIBS = $LIBS 39332 CXX = $CXX 39333 CXXFLAGS = $CXXFLAGS 39334 FEATURES = $MAGICK_FEATURES 39335 DELEGATES = $MAGICK_DELEGATES 39336============================================================================== 39337" >&6;} 39338