1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.3.0. 4# 5# Report bugs to <tiff@lists.maptools.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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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: tiff@lists.maptools.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='LibTIFF Software' 592PACKAGE_TARNAME='tiff' 593PACKAGE_VERSION='4.3.0' 594PACKAGE_STRING='LibTIFF Software 4.3.0' 595PACKAGE_BUGREPORT='tiff@lists.maptools.org' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBDIR 638WIN32_IO_FALSE 639WIN32_IO_TRUE 640HAVE_OPENGL_FALSE 641HAVE_OPENGL_TRUE 642GLUT_LIBS 643GLUT_CFLAGS 644GLU_LIBS 645GLU_CFLAGS 646GL_LIBS 647GL_CFLAGS 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651ax_pthread_config 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657HAVE_CXX_FALSE 658HAVE_CXX_TRUE 659HAVE_WEBP_FALSE 660HAVE_WEBP_TRUE 661HAVE_ZSTD_FALSE 662HAVE_ZSTD_TRUE 663HAVE_LZMA_FALSE 664HAVE_LZMA_TRUE 665HAVE_LERC_FALSE 666HAVE_LERC_TRUE 667HAVE_JBIG_FALSE 668HAVE_JBIG_TRUE 669HAVE_JPEG_FALSE 670HAVE_JPEG_TRUE 671LIBTIFF_DOCDIR 672HAVE_RPATH_FALSE 673HAVE_RPATH_TRUE 674LIBOBJS 675tiff_libs_private 676CXXCPP 677am__fastdepCXX_FALSE 678am__fastdepCXX_TRUE 679CXXDEPMODE 680ac_ct_CXX 681CXXFLAGS 682CXX 683CPP 684LT_SYS_LIBRARY_PATH 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693AR 694NM 695ac_ct_DUMPBIN 696DUMPBIN 697LD 698FGREP 699EGREP 700GREP 701SED 702LIBTOOL 703OBJDUMP 704DLLTOOL 705AS 706HAVE_LD_VERSION_SCRIPT_FALSE 707HAVE_LD_VERSION_SCRIPT_TRUE 708CMAKE 709LN_S 710am__fastdepCC_FALSE 711am__fastdepCC_TRUE 712CCDEPMODE 713am__nodep 714AMDEPBACKSLASH 715AMDEP_FALSE 716AMDEP_TRUE 717am__include 718DEPDIR 719OBJEXT 720EXEEXT 721ac_ct_CC 722CPPFLAGS 723LDFLAGS 724CFLAGS 725CC 726LIBTIFF_RELEASE_DATE 727LIBTIFF_VERSION_INFO 728LIBTIFF_VERSION 729LIBTIFF_ALPHA_VERSION 730LIBTIFF_MICRO_VERSION 731LIBTIFF_MINOR_VERSION 732LIBTIFF_MAJOR_VERSION 733MAINT 734MAINTAINER_MODE_FALSE 735MAINTAINER_MODE_TRUE 736AM_BACKSLASH 737AM_DEFAULT_VERBOSITY 738AM_DEFAULT_V 739AM_V 740am__untar 741am__tar 742AMTAR 743am__leading_dot 744SET_MAKE 745AWK 746mkdir_p 747MKDIR_P 748INSTALL_STRIP_PROGRAM 749STRIP 750install_sh 751MAKEINFO 752AUTOHEADER 753AUTOMAKE 754AUTOCONF 755ACLOCAL 756VERSION 757PACKAGE 758CYGPATH_W 759am__isrc 760INSTALL_DATA 761INSTALL_SCRIPT 762INSTALL_PROGRAM 763host_os 764host_vendor 765host_cpu 766host 767build_os 768build_vendor 769build_cpu 770build 771target_alias 772host_alias 773build_alias 774LIBS 775ECHO_T 776ECHO_N 777ECHO_C 778DEFS 779mandir 780localedir 781libdir 782psdir 783pdfdir 784dvidir 785htmldir 786infodir 787docdir 788oldincludedir 789includedir 790runstatedir 791localstatedir 792sharedstatedir 793sysconfdir 794datadir 795datarootdir 796libexecdir 797sbindir 798bindir 799program_transform_name 800prefix 801exec_prefix 802PACKAGE_URL 803PACKAGE_BUGREPORT 804PACKAGE_STRING 805PACKAGE_VERSION 806PACKAGE_TARNAME 807PACKAGE_NAME 808PATH_SEPARATOR 809SHELL 810am__quote' 811ac_subst_files='' 812ac_user_opts=' 813enable_option_checking 814enable_silent_rules 815enable_maintainer_mode 816enable_dependency_tracking 817enable_ld_version_script 818enable_shared 819enable_static 820with_pic 821enable_fast_install 822with_aix_soname 823with_gnu_ld 824with_sysroot 825enable_libtool_lock 826enable_rpath 827enable_largefile 828with_docdir 829enable_ccitt 830enable_packbits 831enable_lzw 832enable_thunder 833enable_next 834enable_logluv 835enable_mdi 836enable_zlib 837with_zlib_include_dir 838with_zlib_lib_dir 839enable_libdeflate 840with_libdeflate_include_dir 841with_libdeflate_lib_dir 842enable_pixarlog 843enable_jpeg 844with_jpeg_include_dir 845with_jpeg_lib_dir 846enable_old_jpeg 847enable_jbig 848with_jbig_include_dir 849with_jbig_lib_dir 850enable_lerc 851with_lerc_include_dir 852with_lerc_lib_dir 853enable_lzma 854with_lzma_include_dir 855with_lzma_lib_dir 856enable_zstd 857with_zstd_include_dir 858with_zstd_lib_dir 859enable_webp 860with_webp_include_dir 861with_webp_lib_dir 862enable_jpeg12 863with_jpeg12_include_dir 864with_jpeg12_lib 865enable_cxx 866with_x 867enable_win32_io 868enable_strip_chopping 869with_default_strip_size 870enable_defer_strile_load 871enable_chunky_strip_read 872enable_extrasample_as_alpha 873enable_check_ycbcr_subsampling 874' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881LIBS 882CPPFLAGS 883LT_SYS_LIBRARY_PATH 884CPP 885CXX 886CXXFLAGS 887CCC 888CXXCPP 889XMKMF' 890 891 892# Initialize some variables set by options. 893ac_init_help= 894ac_init_version=false 895ac_unrecognized_opts= 896ac_unrecognized_sep= 897# The variables have the same names as the options, with 898# dashes changed to underlines. 899cache_file=/dev/null 900exec_prefix=NONE 901no_create= 902no_recursion= 903prefix=NONE 904program_prefix=NONE 905program_suffix=NONE 906program_transform_name=s,x,x, 907silent= 908site= 909srcdir= 910verbose= 911x_includes=NONE 912x_libraries=NONE 913 914# Installation directory options. 915# These are left unexpanded so users can "make install exec_prefix=/foo" 916# and all the variables that are supposed to be based on exec_prefix 917# by default will actually change. 918# Use braces instead of parens because sh, perl, etc. also accept them. 919# (The list follows the same order as the GNU Coding Standards.) 920bindir='${exec_prefix}/bin' 921sbindir='${exec_prefix}/sbin' 922libexecdir='${exec_prefix}/libexec' 923datarootdir='${prefix}/share' 924datadir='${datarootdir}' 925sysconfdir='${prefix}/etc' 926sharedstatedir='${prefix}/com' 927localstatedir='${prefix}/var' 928runstatedir='${localstatedir}/run' 929includedir='${prefix}/include' 930oldincludedir='/usr/include' 931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 932infodir='${datarootdir}/info' 933htmldir='${docdir}' 934dvidir='${docdir}' 935pdfdir='${docdir}' 936psdir='${docdir}' 937libdir='${exec_prefix}/lib' 938localedir='${datarootdir}/locale' 939mandir='${datarootdir}/man' 940 941ac_prev= 942ac_dashdash= 943for ac_option 944do 945 # If the previous option needs an argument, assign it. 946 if test -n "$ac_prev"; then 947 eval $ac_prev=\$ac_option 948 ac_prev= 949 continue 950 fi 951 952 case $ac_option in 953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 954 *=) ac_optarg= ;; 955 *) ac_optarg=yes ;; 956 esac 957 958 # Accept the important Cygnus configure options, so we can diagnose typos. 959 960 case $ac_dashdash$ac_option in 961 --) 962 ac_dashdash=yes ;; 963 964 -bindir | --bindir | --bindi | --bind | --bin | --bi) 965 ac_prev=bindir ;; 966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 967 bindir=$ac_optarg ;; 968 969 -build | --build | --buil | --bui | --bu) 970 ac_prev=build_alias ;; 971 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 972 build_alias=$ac_optarg ;; 973 974 -cache-file | --cache-file | --cache-fil | --cache-fi \ 975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 976 ac_prev=cache_file ;; 977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 979 cache_file=$ac_optarg ;; 980 981 --config-cache | -C) 982 cache_file=config.cache ;; 983 984 -datadir | --datadir | --datadi | --datad) 985 ac_prev=datadir ;; 986 -datadir=* | --datadir=* | --datadi=* | --datad=*) 987 datadir=$ac_optarg ;; 988 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 990 | --dataroo | --dataro | --datar) 991 ac_prev=datarootdir ;; 992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 994 datarootdir=$ac_optarg ;; 995 996 -disable-* | --disable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error $? "invalid feature name: $ac_useropt" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=no ;; 1011 1012 -docdir | --docdir | --docdi | --doc | --do) 1013 ac_prev=docdir ;; 1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1015 docdir=$ac_optarg ;; 1016 1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1018 ac_prev=dvidir ;; 1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1020 dvidir=$ac_optarg ;; 1021 1022 -enable-* | --enable-*) 1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1024 # Reject names that are not valid shell variable names. 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1026 as_fn_error $? "invalid feature name: $ac_useropt" 1027 ac_useropt_orig=$ac_useropt 1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1029 case $ac_user_opts in 1030 *" 1031"enable_$ac_useropt" 1032"*) ;; 1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1034 ac_unrecognized_sep=', ';; 1035 esac 1036 eval enable_$ac_useropt=\$ac_optarg ;; 1037 1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1040 | --exec | --exe | --ex) 1041 ac_prev=exec_prefix ;; 1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1044 | --exec=* | --exe=* | --ex=*) 1045 exec_prefix=$ac_optarg ;; 1046 1047 -gas | --gas | --ga | --g) 1048 # Obsolete; use --with-gas. 1049 with_gas=yes ;; 1050 1051 -help | --help | --hel | --he | -h) 1052 ac_init_help=long ;; 1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1054 ac_init_help=recursive ;; 1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1056 ac_init_help=short ;; 1057 1058 -host | --host | --hos | --ho) 1059 ac_prev=host_alias ;; 1060 -host=* | --host=* | --hos=* | --ho=*) 1061 host_alias=$ac_optarg ;; 1062 1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1064 ac_prev=htmldir ;; 1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1066 | --ht=*) 1067 htmldir=$ac_optarg ;; 1068 1069 -includedir | --includedir | --includedi | --included | --include \ 1070 | --includ | --inclu | --incl | --inc) 1071 ac_prev=includedir ;; 1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1073 | --includ=* | --inclu=* | --incl=* | --inc=*) 1074 includedir=$ac_optarg ;; 1075 1076 -infodir | --infodir | --infodi | --infod | --info | --inf) 1077 ac_prev=infodir ;; 1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1079 infodir=$ac_optarg ;; 1080 1081 -libdir | --libdir | --libdi | --libd) 1082 ac_prev=libdir ;; 1083 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1084 libdir=$ac_optarg ;; 1085 1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1087 | --libexe | --libex | --libe) 1088 ac_prev=libexecdir ;; 1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1090 | --libexe=* | --libex=* | --libe=*) 1091 libexecdir=$ac_optarg ;; 1092 1093 -localedir | --localedir | --localedi | --localed | --locale) 1094 ac_prev=localedir ;; 1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1096 localedir=$ac_optarg ;; 1097 1098 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1099 | --localstate | --localstat | --localsta | --localst | --locals) 1100 ac_prev=localstatedir ;; 1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1103 localstatedir=$ac_optarg ;; 1104 1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1106 ac_prev=mandir ;; 1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1108 mandir=$ac_optarg ;; 1109 1110 -nfp | --nfp | --nf) 1111 # Obsolete; use --without-fp. 1112 with_fp=no ;; 1113 1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1115 | --no-cr | --no-c | -n) 1116 no_create=yes ;; 1117 1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1120 no_recursion=yes ;; 1121 1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1124 | --oldin | --oldi | --old | --ol | --o) 1125 ac_prev=oldincludedir ;; 1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1129 oldincludedir=$ac_optarg ;; 1130 1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1132 ac_prev=prefix ;; 1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1134 prefix=$ac_optarg ;; 1135 1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1137 | --program-pre | --program-pr | --program-p) 1138 ac_prev=program_prefix ;; 1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1141 program_prefix=$ac_optarg ;; 1142 1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1144 | --program-suf | --program-su | --program-s) 1145 ac_prev=program_suffix ;; 1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1148 program_suffix=$ac_optarg ;; 1149 1150 -program-transform-name | --program-transform-name \ 1151 | --program-transform-nam | --program-transform-na \ 1152 | --program-transform-n | --program-transform- \ 1153 | --program-transform | --program-transfor \ 1154 | --program-transfo | --program-transf \ 1155 | --program-trans | --program-tran \ 1156 | --progr-tra | --program-tr | --program-t) 1157 ac_prev=program_transform_name ;; 1158 -program-transform-name=* | --program-transform-name=* \ 1159 | --program-transform-nam=* | --program-transform-na=* \ 1160 | --program-transform-n=* | --program-transform-=* \ 1161 | --program-transform=* | --program-transfor=* \ 1162 | --program-transfo=* | --program-transf=* \ 1163 | --program-trans=* | --program-tran=* \ 1164 | --progr-tra=* | --program-tr=* | --program-t=*) 1165 program_transform_name=$ac_optarg ;; 1166 1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1168 ac_prev=pdfdir ;; 1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1170 pdfdir=$ac_optarg ;; 1171 1172 -psdir | --psdir | --psdi | --psd | --ps) 1173 ac_prev=psdir ;; 1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1175 psdir=$ac_optarg ;; 1176 1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1178 | -silent | --silent | --silen | --sile | --sil) 1179 silent=yes ;; 1180 1181 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1182 | --runstate | --runstat | --runsta | --runst | --runs \ 1183 | --run | --ru | --r) 1184 ac_prev=runstatedir ;; 1185 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1186 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1187 | --run=* | --ru=* | --r=*) 1188 runstatedir=$ac_optarg ;; 1189 1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1191 ac_prev=sbindir ;; 1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1193 | --sbi=* | --sb=*) 1194 sbindir=$ac_optarg ;; 1195 1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1198 | --sharedst | --shareds | --shared | --share | --shar \ 1199 | --sha | --sh) 1200 ac_prev=sharedstatedir ;; 1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1204 | --sha=* | --sh=*) 1205 sharedstatedir=$ac_optarg ;; 1206 1207 -site | --site | --sit) 1208 ac_prev=site ;; 1209 -site=* | --site=* | --sit=*) 1210 site=$ac_optarg ;; 1211 1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1213 ac_prev=srcdir ;; 1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1215 srcdir=$ac_optarg ;; 1216 1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1218 | --syscon | --sysco | --sysc | --sys | --sy) 1219 ac_prev=sysconfdir ;; 1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1222 sysconfdir=$ac_optarg ;; 1223 1224 -target | --target | --targe | --targ | --tar | --ta | --t) 1225 ac_prev=target_alias ;; 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1227 target_alias=$ac_optarg ;; 1228 1229 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1230 verbose=yes ;; 1231 1232 -version | --version | --versio | --versi | --vers | -V) 1233 ac_init_version=: ;; 1234 1235 -with-* | --with-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=\$ac_optarg ;; 1250 1251 -without-* | --without-*) 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1255 as_fn_error $? "invalid package name: $ac_useropt" 1256 ac_useropt_orig=$ac_useropt 1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1258 case $ac_user_opts in 1259 *" 1260"with_$ac_useropt" 1261"*) ;; 1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1263 ac_unrecognized_sep=', ';; 1264 esac 1265 eval with_$ac_useropt=no ;; 1266 1267 --x) 1268 # Obsolete; use --with-x. 1269 with_x=yes ;; 1270 1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1272 | --x-incl | --x-inc | --x-in | --x-i) 1273 ac_prev=x_includes ;; 1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1276 x_includes=$ac_optarg ;; 1277 1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1280 ac_prev=x_libraries ;; 1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1283 x_libraries=$ac_optarg ;; 1284 1285 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1286Try \`$0 --help' for more information" 1287 ;; 1288 1289 *=*) 1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1291 # Reject names that are not valid shell variable names. 1292 case $ac_envvar in #( 1293 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1295 esac 1296 eval $ac_envvar=\$ac_optarg 1297 export $ac_envvar ;; 1298 1299 *) 1300 # FIXME: should be removed in autoconf 3.0. 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1305 ;; 1306 1307 esac 1308done 1309 1310if test -n "$ac_prev"; then 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1312 as_fn_error $? "missing argument to $ac_option" 1313fi 1314 1315if test -n "$ac_unrecognized_opts"; then 1316 case $enable_option_checking in 1317 no) ;; 1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1320 esac 1321fi 1322 1323# Check all directory arguments for consistency. 1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1325 datadir sysconfdir sharedstatedir localstatedir includedir \ 1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1327 libdir localedir mandir runstatedir 1328do 1329 eval ac_val=\$$ac_var 1330 # Remove trailing slashes. 1331 case $ac_val in 1332 */ ) 1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1334 eval $ac_var=\$ac_val;; 1335 esac 1336 # Be sure to have absolute directory names. 1337 case $ac_val in 1338 [\\/$]* | ?:[\\/]* ) continue;; 1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1340 esac 1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1342done 1343 1344# There might be people who depend on the old broken behavior: `$host' 1345# used to hold the argument of --host etc. 1346# FIXME: To remove some day. 1347build=$build_alias 1348host=$host_alias 1349target=$target_alias 1350 1351# FIXME: To remove some day. 1352if test "x$host_alias" != x; then 1353 if test "x$build_alias" = x; then 1354 cross_compiling=maybe 1355 elif test "x$build_alias" != "x$host_alias"; then 1356 cross_compiling=yes 1357 fi 1358fi 1359 1360ac_tool_prefix= 1361test -n "$host_alias" && ac_tool_prefix=$host_alias- 1362 1363test "$silent" = yes && exec 6>/dev/null 1364 1365 1366ac_pwd=`pwd` && test -n "$ac_pwd" && 1367ac_ls_di=`ls -di .` && 1368ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1369 as_fn_error $? "working directory cannot be determined" 1370test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1371 as_fn_error $? "pwd does not report name of working directory" 1372 1373 1374# Find the source files, if location was not specified. 1375if test -z "$srcdir"; then 1376 ac_srcdir_defaulted=yes 1377 # Try the directory containing this script, then the parent directory. 1378 ac_confdir=`$as_dirname -- "$as_myself" || 1379$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1380 X"$as_myself" : 'X\(//\)[^/]' \| \ 1381 X"$as_myself" : 'X\(//\)$' \| \ 1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1383$as_echo X"$as_myself" | 1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1385 s//\1/ 1386 q 1387 } 1388 /^X\(\/\/\)[^/].*/{ 1389 s//\1/ 1390 q 1391 } 1392 /^X\(\/\/\)$/{ 1393 s//\1/ 1394 q 1395 } 1396 /^X\(\/\).*/{ 1397 s//\1/ 1398 q 1399 } 1400 s/.*/./; q'` 1401 srcdir=$ac_confdir 1402 if test ! -r "$srcdir/$ac_unique_file"; then 1403 srcdir=.. 1404 fi 1405else 1406 ac_srcdir_defaulted=no 1407fi 1408if test ! -r "$srcdir/$ac_unique_file"; then 1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1410 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1411fi 1412ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1413ac_abs_confdir=`( 1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1415 pwd)` 1416# When building in place, set srcdir=. 1417if test "$ac_abs_confdir" = "$ac_pwd"; then 1418 srcdir=. 1419fi 1420# Remove unnecessary trailing slashes from srcdir. 1421# Double slashes in file names in object file debugging info 1422# mess up M-x gdb in Emacs. 1423case $srcdir in 1424*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1425esac 1426for ac_var in $ac_precious_vars; do 1427 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1428 eval ac_env_${ac_var}_value=\$${ac_var} 1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1430 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1431done 1432 1433# 1434# Report the --help message. 1435# 1436if test "$ac_init_help" = "long"; then 1437 # Omit some internal or obsolete options to make the list less imposing. 1438 # This message is too long to be a string in the A/UX 3.1 sh. 1439 cat <<_ACEOF 1440\`configure' configures LibTIFF Software 4.3.0 to adapt to many kinds of systems. 1441 1442Usage: $0 [OPTION]... [VAR=VALUE]... 1443 1444To assign environment variables (e.g., CC, CFLAGS...), specify them as 1445VAR=VALUE. See below for descriptions of some of the useful variables. 1446 1447Defaults for the options are specified in brackets. 1448 1449Configuration: 1450 -h, --help display this help and exit 1451 --help=short display options specific to this package 1452 --help=recursive display the short help of all the included packages 1453 -V, --version display version information and exit 1454 -q, --quiet, --silent do not print \`checking ...' messages 1455 --cache-file=FILE cache test results in FILE [disabled] 1456 -C, --config-cache alias for \`--cache-file=config.cache' 1457 -n, --no-create do not create output files 1458 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1459 1460Installation directories: 1461 --prefix=PREFIX install architecture-independent files in PREFIX 1462 [$ac_default_prefix] 1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1464 [PREFIX] 1465 1466By default, \`make install' will install all the files in 1467\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1468an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1469for instance \`--prefix=\$HOME'. 1470 1471For better control, use the options below. 1472 1473Fine tuning of the installation directories: 1474 --bindir=DIR user executables [EPREFIX/bin] 1475 --sbindir=DIR system admin executables [EPREFIX/sbin] 1476 --libexecdir=DIR program executables [EPREFIX/libexec] 1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1480 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1481 --libdir=DIR object code libraries [EPREFIX/lib] 1482 --includedir=DIR C header files [PREFIX/include] 1483 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1486 --infodir=DIR info documentation [DATAROOTDIR/info] 1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1488 --mandir=DIR man documentation [DATAROOTDIR/man] 1489 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1490 --htmldir=DIR html documentation [DOCDIR] 1491 --dvidir=DIR dvi documentation [DOCDIR] 1492 --pdfdir=DIR pdf documentation [DOCDIR] 1493 --psdir=DIR ps documentation [DOCDIR] 1494_ACEOF 1495 1496 cat <<\_ACEOF 1497 1498Program names: 1499 --program-prefix=PREFIX prepend PREFIX to installed program names 1500 --program-suffix=SUFFIX append SUFFIX to installed program names 1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1502 1503X features: 1504 --x-includes=DIR X include files are in DIR 1505 --x-libraries=DIR X library files are in DIR 1506 1507System types: 1508 --build=BUILD configure for building on BUILD [guessed] 1509 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1510_ACEOF 1511fi 1512 1513if test -n "$ac_init_help"; then 1514 case $ac_init_help in 1515 short | recursive ) echo "Configuration of LibTIFF Software 4.3.0:";; 1516 esac 1517 cat <<\_ACEOF 1518 1519Optional Features: 1520 --disable-option-checking ignore unrecognized --enable/--with options 1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1523 --enable-silent-rules less verbose build output (undo: "make V=1") 1524 --disable-silent-rules verbose build output (undo: "make V=0") 1525 --enable-maintainer-mode 1526 enable make rules and dependencies not useful (and 1527 sometimes confusing) to the casual installer 1528 --enable-dependency-tracking 1529 do not reject slow dependency extractors 1530 --disable-dependency-tracking 1531 speeds up one-time build 1532 --enable-ld-version-script 1533 enable linker version script (default is disabled) 1534 --enable-shared[=PKGS] build shared libraries [default=yes] 1535 --enable-static[=PKGS] build static libraries [default=yes] 1536 --enable-fast-install[=PKGS] 1537 optimize for fast installation [default=yes] 1538 --disable-libtool-lock avoid locking (might break parallel builds) 1539 --enable-rpath Enable runtime linker paths (-R libtool option) 1540 --disable-largefile omit support for large files 1541 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1542 --disable-packbits disable support for Macintosh PackBits algorithm 1543 --disable-lzw disable support for LZW algorithm 1544 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1545 --disable-next disable support for NeXT 2-bit RLE algorithm 1546 --disable-logluv disable support for LogLuv high dynamic range 1547 encoding 1548 --disable-mdi disable support for Microsoft Document Imaging 1549 --disable-zlib disable Zlib usage (required for Deflate 1550 compression, enabled by default) 1551 --disable-libdeflate disable libdeflate usage (optional for faster 1552 Deflate support (still requires zlib), enabled by 1553 default) 1554 --disable-pixarlog disable support for Pixar log-format algorithm 1555 (requires Zlib) 1556 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1557 compression, enabled by default) 1558 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1559 enabled by default) 1560 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1561 compression, enabled by default) 1562 --disable-lerc disable liblerc usage (required for lerc 1563 compression, enabled by default) 1564 --disable-lzma disable liblzma usage (required for LZMA2 1565 compression, enabled by default) 1566 --disable-zstd disable libzstd usage (required for zstd 1567 compression, enabled by default) 1568 --disable-webp disable libwebp usage (required for webp 1569 compression, enabled by default) 1570 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1571 --enable-cxx enable C++ stream API building (requires C++ 1572 compiler) 1573 --disable-win32-io disable Win32 I/O (Windows only, enabled by default 1574 except for Cygwin) 1575 --disable-strip-chopping 1576 disable support for strip chopping (whether or not 1577 to convert single-strip uncompressed images to 1578 multiple strips of specified size to reduce memory 1579 usage) 1580 --enable-defer-strile-load 1581 enable deferred strip/tile offset/size loading (also 1582 available at runtime with the 'D' flag of TIFFOpen() 1583 --enable-chunky-strip-read 1584 enable reading large strips in chunks for 1585 TIFFReadScanline() (experimental) 1586 --disable-extrasample-as-alpha 1587 the RGBA interface will treat a fourth sample with 1588 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1589 packages produce RGBA files but don't mark the alpha 1590 properly 1591 --disable-check-ycbcr-subsampling 1592 disable picking up YCbCr subsampling info from the 1593 JPEG data stream to support files lacking the tag 1594 1595Optional Packages: 1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1599 both] 1600 --with-aix-soname=aix|svr4|both 1601 shared library versioning (aka "SONAME") variant to 1602 provide on AIX, [default=aix]. 1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1604 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1605 compiler's sysroot if not specified). 1606 --with-docdir=DIR directory where documentation should be installed 1607 --with-zlib-include-dir=DIR 1608 location of Zlib headers 1609 --with-zlib-lib-dir=DIR location of Zlib library binary 1610 --with-libdeflate-include-dir=DIR 1611 location of libdeflate headers 1612 --with-libdeflate-lib-dir=DIR 1613 location of libdeflate library binary 1614 --with-jpeg-include-dir=DIR 1615 location of IJG JPEG library headers 1616 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1617 --with-jbig-include-dir=DIR 1618 location of JBIG-KIT headers 1619 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1620 --with-lerc-include-dir=DIR 1621 location of liblerc headers 1622 --with-lerc-lib-dir=DIR location of liblerc library binary 1623 --with-lzma-include-dir=DIR 1624 location of liblzma headers 1625 --with-lzma-lib-dir=DIR location of liblzma library binary 1626 --with-zstd-include-dir=DIR 1627 location of libzstd headers 1628 --with-zstd-lib-dir=DIR location of libzstd library binary 1629 --with-webp-include-dir=DIR 1630 location of libwebp headers 1631 --with-webp-lib-dir=DIR location of libwebp library binary 1632 --with-jpeg12-include-dir=DIR 1633 location of libjpeg 12bit headers 1634 --with-jpeg12-lib=LIBRARY 1635 path to libjpeg 12bit library 1636 --with-x use the X Window System 1637 --with-default-strip-size=SIZE 1638 default size of the strip in bytes (when strip 1639 chopping enabled) [[default=8192]] 1640 1641Some influential environment variables: 1642 CC C compiler command 1643 CFLAGS C compiler flags 1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1645 nonstandard directory <lib dir> 1646 LIBS libraries to pass to the linker, e.g. -l<library> 1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1648 you have headers in a nonstandard directory <include dir> 1649 LT_SYS_LIBRARY_PATH 1650 User-defined run-time library search path. 1651 CPP C preprocessor 1652 CXX C++ compiler command 1653 CXXFLAGS C++ compiler flags 1654 CXXCPP C++ preprocessor 1655 XMKMF Path to xmkmf, Makefile generator for X Window System 1656 1657Use these variables to override the choices made by `configure' or to help 1658it to find libraries and programs with nonstandard names/locations. 1659 1660Report bugs to <tiff@lists.maptools.org>. 1661_ACEOF 1662ac_status=$? 1663fi 1664 1665if test "$ac_init_help" = "recursive"; then 1666 # If there are subdirs, report their specific --help. 1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1668 test -d "$ac_dir" || 1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1670 continue 1671 ac_builddir=. 1672 1673case "$ac_dir" in 1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1675*) 1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1677 # A ".." for each directory in $ac_dir_suffix. 1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1679 case $ac_top_builddir_sub in 1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1682 esac ;; 1683esac 1684ac_abs_top_builddir=$ac_pwd 1685ac_abs_builddir=$ac_pwd$ac_dir_suffix 1686# for backward compatibility: 1687ac_top_builddir=$ac_top_build_prefix 1688 1689case $srcdir in 1690 .) # We are building in place. 1691 ac_srcdir=. 1692 ac_top_srcdir=$ac_top_builddir_sub 1693 ac_abs_top_srcdir=$ac_pwd ;; 1694 [\\/]* | ?:[\\/]* ) # Absolute name. 1695 ac_srcdir=$srcdir$ac_dir_suffix; 1696 ac_top_srcdir=$srcdir 1697 ac_abs_top_srcdir=$srcdir ;; 1698 *) # Relative name. 1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1700 ac_top_srcdir=$ac_top_build_prefix$srcdir 1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1702esac 1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1704 1705 cd "$ac_dir" || { ac_status=$?; continue; } 1706 # Check for guested configure. 1707 if test -f "$ac_srcdir/configure.gnu"; then 1708 echo && 1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1710 elif test -f "$ac_srcdir/configure"; then 1711 echo && 1712 $SHELL "$ac_srcdir/configure" --help=recursive 1713 else 1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1715 fi || ac_status=$? 1716 cd "$ac_pwd" || { ac_status=$?; break; } 1717 done 1718fi 1719 1720test -n "$ac_init_help" && exit $ac_status 1721if $ac_init_version; then 1722 cat <<\_ACEOF 1723LibTIFF Software configure 4.3.0 1724generated by GNU Autoconf 2.69 1725 1726Copyright (C) 2012 Free Software Foundation, Inc. 1727This configure script is free software; the Free Software Foundation 1728gives unlimited permission to copy, distribute and modify it. 1729_ACEOF 1730 exit 1731fi 1732 1733## ------------------------ ## 1734## Autoconf initialization. ## 1735## ------------------------ ## 1736 1737# ac_fn_c_try_compile LINENO 1738# -------------------------- 1739# Try to compile conftest.$ac_ext, and return whether this succeeded. 1740ac_fn_c_try_compile () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 rm -f conftest.$ac_objext 1744 if { { ac_try="$ac_compile" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_compile") 2>conftest.err 1752 ac_status=$? 1753 if test -s conftest.err; then 1754 grep -v '^ *+' conftest.err >conftest.er1 1755 cat conftest.er1 >&5 1756 mv -f conftest.er1 conftest.err 1757 fi 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } && { 1760 test -z "$ac_c_werror_flag" || 1761 test ! -s conftest.err 1762 } && test -s conftest.$ac_objext; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=1 1769fi 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 as_fn_set_status $ac_retval 1772 1773} # ac_fn_c_try_compile 1774 1775# ac_fn_c_try_link LINENO 1776# ----------------------- 1777# Try to link conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_c_try_link () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest$ac_exeext 1782 if { { ac_try="$ac_link" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_link") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest$ac_exeext && { 1801 test "$cross_compiling" = yes || 1802 test -x conftest$ac_exeext 1803 }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: failed program was:" >&5 1807sed 's/^/| /' conftest.$ac_ext >&5 1808 1809 ac_retval=1 1810fi 1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1813 # interfere with the next link command; also delete a directory that is 1814 # left behind by Apple's compiler. We do this before executing the actions. 1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_c_try_link 1820 1821# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1822# ------------------------------------------------------- 1823# Tests whether HEADER exists and can be compiled using the include files in 1824# INCLUDES, setting the cache variable VAR accordingly. 1825ac_fn_c_check_header_compile () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1829$as_echo_n "checking for $2... " >&6; } 1830if eval \${$3+:} false; then : 1831 $as_echo_n "(cached) " >&6 1832else 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_header_compile 1851 1852# ac_fn_c_try_cpp LINENO 1853# ---------------------- 1854# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_c_try_cpp () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_cpp conftest.$ac_ext" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } > conftest.i && { 1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1875 test ! -s conftest.err 1876 }; then : 1877 ac_retval=0 1878else 1879 $as_echo "$as_me: failed program was:" >&5 1880sed 's/^/| /' conftest.$ac_ext >&5 1881 1882 ac_retval=1 1883fi 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 as_fn_set_status $ac_retval 1886 1887} # ac_fn_c_try_cpp 1888 1889# ac_fn_c_try_run LINENO 1890# ---------------------- 1891# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1892# that executables *can* be run. 1893ac_fn_c_try_run () 1894{ 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 if { { ac_try="$ac_link" 1897case "(($ac_try" in 1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1899 *) ac_try_echo=$ac_try;; 1900esac 1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1902$as_echo "$ac_try_echo"; } >&5 1903 (eval "$ac_link") 2>&5 1904 ac_status=$? 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1907 { { case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_try") 2>&5 1914 ac_status=$? 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; }; }; then : 1917 ac_retval=0 1918else 1919 $as_echo "$as_me: program exited with status $ac_status" >&5 1920 $as_echo "$as_me: failed program was:" >&5 1921sed 's/^/| /' conftest.$ac_ext >&5 1922 1923 ac_retval=$ac_status 1924fi 1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 as_fn_set_status $ac_retval 1928 1929} # ac_fn_c_try_run 1930 1931# ac_fn_c_check_func LINENO FUNC VAR 1932# ---------------------------------- 1933# Tests whether FUNC exists, setting the cache variable VAR accordingly 1934ac_fn_c_check_func () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1938$as_echo_n "checking for $2... " >&6; } 1939if eval \${$3+:} false; then : 1940 $as_echo_n "(cached) " >&6 1941else 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1946#define $2 innocuous_$2 1947 1948/* System header to define __stub macros and hopefully few prototypes, 1949 which can conflict with char $2 (); below. 1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1951 <limits.h> exists even on freestanding compilers. */ 1952 1953#ifdef __STDC__ 1954# include <limits.h> 1955#else 1956# include <assert.h> 1957#endif 1958 1959#undef $2 1960 1961/* Override any GCC internal prototype to avoid an error. 1962 Use char because int might match the return type of a GCC 1963 builtin and then its argument prototype would still apply. */ 1964#ifdef __cplusplus 1965extern "C" 1966#endif 1967char $2 (); 1968/* The GNU C library defines this for functions which it implements 1969 to always fail with ENOSYS. Some functions are actually named 1970 something starting with __ and the normal name is an alias. */ 1971#if defined __stub_$2 || defined __stub___$2 1972choke me 1973#endif 1974 1975int 1976main () 1977{ 1978return $2 (); 1979 ; 1980 return 0; 1981} 1982_ACEOF 1983if ac_fn_c_try_link "$LINENO"; then : 1984 eval "$3=yes" 1985else 1986 eval "$3=no" 1987fi 1988rm -f core conftest.err conftest.$ac_objext \ 1989 conftest$ac_exeext conftest.$ac_ext 1990fi 1991eval ac_res=\$$3 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993$as_echo "$ac_res" >&6; } 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 1996} # ac_fn_c_check_func 1997 1998# ac_fn_cxx_try_compile LINENO 1999# ---------------------------- 2000# Try to compile conftest.$ac_ext, and return whether this succeeded. 2001ac_fn_cxx_try_compile () 2002{ 2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2004 rm -f conftest.$ac_objext 2005 if { { ac_try="$ac_compile" 2006case "(($ac_try" in 2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2008 *) ac_try_echo=$ac_try;; 2009esac 2010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2011$as_echo "$ac_try_echo"; } >&5 2012 (eval "$ac_compile") 2>conftest.err 2013 ac_status=$? 2014 if test -s conftest.err; then 2015 grep -v '^ *+' conftest.err >conftest.er1 2016 cat conftest.er1 >&5 2017 mv -f conftest.er1 conftest.err 2018 fi 2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2020 test $ac_status = 0; } && { 2021 test -z "$ac_cxx_werror_flag" || 2022 test ! -s conftest.err 2023 } && test -s conftest.$ac_objext; then : 2024 ac_retval=0 2025else 2026 $as_echo "$as_me: failed program was:" >&5 2027sed 's/^/| /' conftest.$ac_ext >&5 2028 2029 ac_retval=1 2030fi 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 as_fn_set_status $ac_retval 2033 2034} # ac_fn_cxx_try_compile 2035 2036# ac_fn_cxx_try_cpp LINENO 2037# ------------------------ 2038# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2039ac_fn_cxx_try_cpp () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 if { { ac_try="$ac_cpp conftest.$ac_ext" 2043case "(($ac_try" in 2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2045 *) ac_try_echo=$ac_try;; 2046esac 2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2048$as_echo "$ac_try_echo"; } >&5 2049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2050 ac_status=$? 2051 if test -s conftest.err; then 2052 grep -v '^ *+' conftest.err >conftest.er1 2053 cat conftest.er1 >&5 2054 mv -f conftest.er1 conftest.err 2055 fi 2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2057 test $ac_status = 0; } > conftest.i && { 2058 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2059 test ! -s conftest.err 2060 }; then : 2061 ac_retval=0 2062else 2063 $as_echo "$as_me: failed program was:" >&5 2064sed 's/^/| /' conftest.$ac_ext >&5 2065 2066 ac_retval=1 2067fi 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2069 as_fn_set_status $ac_retval 2070 2071} # ac_fn_cxx_try_cpp 2072 2073# ac_fn_cxx_try_link LINENO 2074# ------------------------- 2075# Try to link conftest.$ac_ext, and return whether this succeeded. 2076ac_fn_cxx_try_link () 2077{ 2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2079 rm -f conftest.$ac_objext conftest$ac_exeext 2080 if { { ac_try="$ac_link" 2081case "(($ac_try" in 2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2083 *) ac_try_echo=$ac_try;; 2084esac 2085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2086$as_echo "$ac_try_echo"; } >&5 2087 (eval "$ac_link") 2>conftest.err 2088 ac_status=$? 2089 if test -s conftest.err; then 2090 grep -v '^ *+' conftest.err >conftest.er1 2091 cat conftest.er1 >&5 2092 mv -f conftest.er1 conftest.err 2093 fi 2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2095 test $ac_status = 0; } && { 2096 test -z "$ac_cxx_werror_flag" || 2097 test ! -s conftest.err 2098 } && test -s conftest$ac_exeext && { 2099 test "$cross_compiling" = yes || 2100 test -x conftest$ac_exeext 2101 }; then : 2102 ac_retval=0 2103else 2104 $as_echo "$as_me: failed program was:" >&5 2105sed 's/^/| /' conftest.$ac_ext >&5 2106 2107 ac_retval=1 2108fi 2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2111 # interfere with the next link command; also delete a directory that is 2112 # left behind by Apple's compiler. We do this before executing the actions. 2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2115 as_fn_set_status $ac_retval 2116 2117} # ac_fn_cxx_try_link 2118 2119# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2120# ------------------------------------------------------- 2121# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2122# the include files in INCLUDES and setting the cache variable VAR 2123# accordingly. 2124ac_fn_c_check_header_mongrel () 2125{ 2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2127 if eval \${$3+:} false; then : 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129$as_echo_n "checking for $2... " >&6; } 2130if eval \${$3+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132fi 2133eval ac_res=\$$3 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2135$as_echo "$ac_res" >&6; } 2136else 2137 # Is the header compilable? 2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2139$as_echo_n "checking $2 usability... " >&6; } 2140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141/* end confdefs.h. */ 2142$4 2143#include <$2> 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 ac_header_compiler=yes 2147else 2148 ac_header_compiler=no 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2152$as_echo "$ac_header_compiler" >&6; } 2153 2154# Is the header present? 2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2156$as_echo_n "checking $2 presence... " >&6; } 2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159#include <$2> 2160_ACEOF 2161if ac_fn_c_try_cpp "$LINENO"; then : 2162 ac_header_preproc=yes 2163else 2164 ac_header_preproc=no 2165fi 2166rm -f conftest.err conftest.i conftest.$ac_ext 2167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2168$as_echo "$ac_header_preproc" >&6; } 2169 2170# So? What about this header? 2171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2172 yes:no: ) 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2174$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2176$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2177 ;; 2178 no:yes:* ) 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2180$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2182$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2184$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2186$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2188$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2189( $as_echo "## -------------------------------------- ## 2190## Report this to tiff@lists.maptools.org ## 2191## -------------------------------------- ##" 2192 ) | sed "s/^/$as_me: WARNING: /" >&2 2193 ;; 2194esac 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2196$as_echo_n "checking for $2... " >&6; } 2197if eval \${$3+:} false; then : 2198 $as_echo_n "(cached) " >&6 2199else 2200 eval "$3=\$ac_header_compiler" 2201fi 2202eval ac_res=\$$3 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2204$as_echo "$ac_res" >&6; } 2205fi 2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2207 2208} # ac_fn_c_check_header_mongrel 2209 2210# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2211# ------------------------------------------- 2212# Tests whether TYPE exists after having included INCLUDES, setting cache 2213# variable VAR accordingly. 2214ac_fn_c_check_type () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2218$as_echo_n "checking for $2... " >&6; } 2219if eval \${$3+:} false; then : 2220 $as_echo_n "(cached) " >&6 2221else 2222 eval "$3=no" 2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225$4 2226int 2227main () 2228{ 2229if (sizeof ($2)) 2230 return 0; 2231 ; 2232 return 0; 2233} 2234_ACEOF 2235if ac_fn_c_try_compile "$LINENO"; then : 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237/* end confdefs.h. */ 2238$4 2239int 2240main () 2241{ 2242if (sizeof (($2))) 2243 return 0; 2244 ; 2245 return 0; 2246} 2247_ACEOF 2248if ac_fn_c_try_compile "$LINENO"; then : 2249 2250else 2251 eval "$3=yes" 2252fi 2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2254fi 2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2256fi 2257eval ac_res=\$$3 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2259$as_echo "$ac_res" >&6; } 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 2262} # ac_fn_c_check_type 2263 2264# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2265# --------------------------------------------- 2266# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2267# accordingly. 2268ac_fn_c_check_decl () 2269{ 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 as_decl_name=`echo $2|sed 's/ *(.*//'` 2272 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2274$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2275if eval \${$3+:} false; then : 2276 $as_echo_n "(cached) " >&6 2277else 2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2279/* end confdefs.h. */ 2280$4 2281int 2282main () 2283{ 2284#ifndef $as_decl_name 2285#ifdef __cplusplus 2286 (void) $as_decl_use; 2287#else 2288 (void) $as_decl_name; 2289#endif 2290#endif 2291 2292 ; 2293 return 0; 2294} 2295_ACEOF 2296if ac_fn_c_try_compile "$LINENO"; then : 2297 eval "$3=yes" 2298else 2299 eval "$3=no" 2300fi 2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2302fi 2303eval ac_res=\$$3 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2305$as_echo "$ac_res" >&6; } 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 2308} # ac_fn_c_check_decl 2309 2310# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2311# -------------------------------------------- 2312# Tries to find the compile-time value of EXPR in a program that includes 2313# INCLUDES, setting VAR accordingly. Returns whether the value could be 2314# computed 2315ac_fn_c_compute_int () 2316{ 2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2318 if test "$cross_compiling" = yes; then 2319 # Depending upon the size, compute the lo and hi bounds. 2320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2321/* end confdefs.h. */ 2322$4 2323int 2324main () 2325{ 2326static int test_array [1 - 2 * !(($2) >= 0)]; 2327test_array [0] = 0; 2328return test_array [0]; 2329 2330 ; 2331 return 0; 2332} 2333_ACEOF 2334if ac_fn_c_try_compile "$LINENO"; then : 2335 ac_lo=0 ac_mid=0 2336 while :; do 2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2338/* end confdefs.h. */ 2339$4 2340int 2341main () 2342{ 2343static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2344test_array [0] = 0; 2345return test_array [0]; 2346 2347 ; 2348 return 0; 2349} 2350_ACEOF 2351if ac_fn_c_try_compile "$LINENO"; then : 2352 ac_hi=$ac_mid; break 2353else 2354 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2355 if test $ac_lo -le $ac_mid; then 2356 ac_lo= ac_hi= 2357 break 2358 fi 2359 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362 done 2363else 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365/* end confdefs.h. */ 2366$4 2367int 2368main () 2369{ 2370static int test_array [1 - 2 * !(($2) < 0)]; 2371test_array [0] = 0; 2372return test_array [0]; 2373 2374 ; 2375 return 0; 2376} 2377_ACEOF 2378if ac_fn_c_try_compile "$LINENO"; then : 2379 ac_hi=-1 ac_mid=-1 2380 while :; do 2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2382/* end confdefs.h. */ 2383$4 2384int 2385main () 2386{ 2387static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2388test_array [0] = 0; 2389return test_array [0]; 2390 2391 ; 2392 return 0; 2393} 2394_ACEOF 2395if ac_fn_c_try_compile "$LINENO"; then : 2396 ac_lo=$ac_mid; break 2397else 2398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2399 if test $ac_mid -le $ac_hi; then 2400 ac_lo= ac_hi= 2401 break 2402 fi 2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2404fi 2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2406 done 2407else 2408 ac_lo= ac_hi= 2409fi 2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2411fi 2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413# Binary search between lo and hi bounds. 2414while test "x$ac_lo" != "x$ac_hi"; do 2415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417/* end confdefs.h. */ 2418$4 2419int 2420main () 2421{ 2422static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2423test_array [0] = 0; 2424return test_array [0]; 2425 2426 ; 2427 return 0; 2428} 2429_ACEOF 2430if ac_fn_c_try_compile "$LINENO"; then : 2431 ac_hi=$ac_mid 2432else 2433 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2434fi 2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2436done 2437case $ac_lo in #(( 2438?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2439'') ac_retval=1 ;; 2440esac 2441 else 2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2443/* end confdefs.h. */ 2444$4 2445static long int longval () { return $2; } 2446static unsigned long int ulongval () { return $2; } 2447#include <stdio.h> 2448#include <stdlib.h> 2449int 2450main () 2451{ 2452 2453 FILE *f = fopen ("conftest.val", "w"); 2454 if (! f) 2455 return 1; 2456 if (($2) < 0) 2457 { 2458 long int i = longval (); 2459 if (i != ($2)) 2460 return 1; 2461 fprintf (f, "%ld", i); 2462 } 2463 else 2464 { 2465 unsigned long int i = ulongval (); 2466 if (i != ($2)) 2467 return 1; 2468 fprintf (f, "%lu", i); 2469 } 2470 /* Do not output a trailing newline, as this causes \r\n confusion 2471 on some platforms. */ 2472 return ferror (f) || fclose (f) != 0; 2473 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478if ac_fn_c_try_run "$LINENO"; then : 2479 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2480else 2481 ac_retval=1 2482fi 2483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2484 conftest.$ac_objext conftest.beam conftest.$ac_ext 2485rm -f conftest.val 2486 2487 fi 2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2489 as_fn_set_status $ac_retval 2490 2491} # ac_fn_c_compute_int 2492cat >config.log <<_ACEOF 2493This file contains any messages produced by compilers while 2494running configure, to aid debugging if configure makes a mistake. 2495 2496It was created by LibTIFF Software $as_me 4.3.0, which was 2497generated by GNU Autoconf 2.69. Invocation command line was 2498 2499 $ $0 $@ 2500 2501_ACEOF 2502exec 5>>config.log 2503{ 2504cat <<_ASUNAME 2505## --------- ## 2506## Platform. ## 2507## --------- ## 2508 2509hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2510uname -m = `(uname -m) 2>/dev/null || echo unknown` 2511uname -r = `(uname -r) 2>/dev/null || echo unknown` 2512uname -s = `(uname -s) 2>/dev/null || echo unknown` 2513uname -v = `(uname -v) 2>/dev/null || echo unknown` 2514 2515/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2516/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2517 2518/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2519/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2520/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2521/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2522/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2523/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2524/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2525 2526_ASUNAME 2527 2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529for as_dir in $PATH 2530do 2531 IFS=$as_save_IFS 2532 test -z "$as_dir" && as_dir=. 2533 $as_echo "PATH: $as_dir" 2534 done 2535IFS=$as_save_IFS 2536 2537} >&5 2538 2539cat >&5 <<_ACEOF 2540 2541 2542## ----------- ## 2543## Core tests. ## 2544## ----------- ## 2545 2546_ACEOF 2547 2548 2549# Keep a trace of the command line. 2550# Strip out --no-create and --no-recursion so they do not pile up. 2551# Strip out --silent because we don't want to record it for future runs. 2552# Also quote any args containing shell meta-characters. 2553# Make two passes to allow for proper duplicate-argument suppression. 2554ac_configure_args= 2555ac_configure_args0= 2556ac_configure_args1= 2557ac_must_keep_next=false 2558for ac_pass in 1 2 2559do 2560 for ac_arg 2561 do 2562 case $ac_arg in 2563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2565 | -silent | --silent | --silen | --sile | --sil) 2566 continue ;; 2567 *\'*) 2568 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2569 esac 2570 case $ac_pass in 2571 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2572 2) 2573 as_fn_append ac_configure_args1 " '$ac_arg'" 2574 if test $ac_must_keep_next = true; then 2575 ac_must_keep_next=false # Got value, back to normal. 2576 else 2577 case $ac_arg in 2578 *=* | --config-cache | -C | -disable-* | --disable-* \ 2579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2581 | -with-* | --with-* | -without-* | --without-* | --x) 2582 case "$ac_configure_args0 " in 2583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2584 esac 2585 ;; 2586 -* ) ac_must_keep_next=true ;; 2587 esac 2588 fi 2589 as_fn_append ac_configure_args " '$ac_arg'" 2590 ;; 2591 esac 2592 done 2593done 2594{ ac_configure_args0=; unset ac_configure_args0;} 2595{ ac_configure_args1=; unset ac_configure_args1;} 2596 2597# When interrupted or exit'd, cleanup temporary files, and complete 2598# config.log. We remove comments because anyway the quotes in there 2599# would cause problems or look ugly. 2600# WARNING: Use '\'' to represent an apostrophe within the trap. 2601# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2602trap 'exit_status=$? 2603 # Save into config.log some information that might help in debugging. 2604 { 2605 echo 2606 2607 $as_echo "## ---------------- ## 2608## Cache variables. ## 2609## ---------------- ##" 2610 echo 2611 # The following way of writing the cache mishandles newlines in values, 2612( 2613 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2614 eval ac_val=\$$ac_var 2615 case $ac_val in #( 2616 *${as_nl}*) 2617 case $ac_var in #( 2618 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2619$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2620 esac 2621 case $ac_var in #( 2622 _ | IFS | as_nl) ;; #( 2623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2624 *) { eval $ac_var=; unset $ac_var;} ;; 2625 esac ;; 2626 esac 2627 done 2628 (set) 2>&1 | 2629 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2630 *${as_nl}ac_space=\ *) 2631 sed -n \ 2632 "s/'\''/'\''\\\\'\'''\''/g; 2633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2634 ;; #( 2635 *) 2636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2637 ;; 2638 esac | 2639 sort 2640) 2641 echo 2642 2643 $as_echo "## ----------------- ## 2644## Output variables. ## 2645## ----------------- ##" 2646 echo 2647 for ac_var in $ac_subst_vars 2648 do 2649 eval ac_val=\$$ac_var 2650 case $ac_val in 2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2652 esac 2653 $as_echo "$ac_var='\''$ac_val'\''" 2654 done | sort 2655 echo 2656 2657 if test -n "$ac_subst_files"; then 2658 $as_echo "## ------------------- ## 2659## File substitutions. ## 2660## ------------------- ##" 2661 echo 2662 for ac_var in $ac_subst_files 2663 do 2664 eval ac_val=\$$ac_var 2665 case $ac_val in 2666 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2667 esac 2668 $as_echo "$ac_var='\''$ac_val'\''" 2669 done | sort 2670 echo 2671 fi 2672 2673 if test -s confdefs.h; then 2674 $as_echo "## ----------- ## 2675## confdefs.h. ## 2676## ----------- ##" 2677 echo 2678 cat confdefs.h 2679 echo 2680 fi 2681 test "$ac_signal" != 0 && 2682 $as_echo "$as_me: caught signal $ac_signal" 2683 $as_echo "$as_me: exit $exit_status" 2684 } >&5 2685 rm -f core *.core core.conftest.* && 2686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2687 exit $exit_status 2688' 0 2689for ac_signal in 1 2 13 15; do 2690 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2691done 2692ac_signal=0 2693 2694# confdefs.h avoids OS command line length limits that DEFS can exceed. 2695rm -f -r conftest* confdefs.h 2696 2697$as_echo "/* confdefs.h */" > confdefs.h 2698 2699# Predefined preprocessor variables. 2700 2701cat >>confdefs.h <<_ACEOF 2702#define PACKAGE_NAME "$PACKAGE_NAME" 2703_ACEOF 2704 2705cat >>confdefs.h <<_ACEOF 2706#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2707_ACEOF 2708 2709cat >>confdefs.h <<_ACEOF 2710#define PACKAGE_VERSION "$PACKAGE_VERSION" 2711_ACEOF 2712 2713cat >>confdefs.h <<_ACEOF 2714#define PACKAGE_STRING "$PACKAGE_STRING" 2715_ACEOF 2716 2717cat >>confdefs.h <<_ACEOF 2718#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2719_ACEOF 2720 2721cat >>confdefs.h <<_ACEOF 2722#define PACKAGE_URL "$PACKAGE_URL" 2723_ACEOF 2724 2725 2726# Let the site file select an alternate cache file if it wants to. 2727# Prefer an explicitly selected file to automatically selected ones. 2728ac_site_file1=NONE 2729ac_site_file2=NONE 2730if test -n "$CONFIG_SITE"; then 2731 # We do not want a PATH search for config.site. 2732 case $CONFIG_SITE in #(( 2733 -*) ac_site_file1=./$CONFIG_SITE;; 2734 */*) ac_site_file1=$CONFIG_SITE;; 2735 *) ac_site_file1=./$CONFIG_SITE;; 2736 esac 2737elif test "x$prefix" != xNONE; then 2738 ac_site_file1=$prefix/share/config.site 2739 ac_site_file2=$prefix/etc/config.site 2740else 2741 ac_site_file1=$ac_default_prefix/share/config.site 2742 ac_site_file2=$ac_default_prefix/etc/config.site 2743fi 2744for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2745do 2746 test "x$ac_site_file" = xNONE && continue 2747 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2749$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2750 sed 's/^/| /' "$ac_site_file" >&5 2751 . "$ac_site_file" \ 2752 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754as_fn_error $? "failed to load site script $ac_site_file 2755See \`config.log' for more details" "$LINENO" 5; } 2756 fi 2757done 2758 2759if test -r "$cache_file"; then 2760 # Some versions of bash will fail to source /dev/null (special files 2761 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2762 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2764$as_echo "$as_me: loading cache $cache_file" >&6;} 2765 case $cache_file in 2766 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2767 *) . "./$cache_file";; 2768 esac 2769 fi 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2772$as_echo "$as_me: creating cache $cache_file" >&6;} 2773 >$cache_file 2774fi 2775 2776# Check that the precious variables saved in the cache have kept the same 2777# value. 2778ac_cache_corrupted=false 2779for ac_var in $ac_precious_vars; do 2780 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2781 eval ac_new_set=\$ac_env_${ac_var}_set 2782 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2783 eval ac_new_val=\$ac_env_${ac_var}_value 2784 case $ac_old_set,$ac_new_set in 2785 set,) 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2787$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2788 ac_cache_corrupted=: ;; 2789 ,set) 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2791$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2792 ac_cache_corrupted=: ;; 2793 ,);; 2794 *) 2795 if test "x$ac_old_val" != "x$ac_new_val"; then 2796 # differences in whitespace do not lead to failure. 2797 ac_old_val_w=`echo x $ac_old_val` 2798 ac_new_val_w=`echo x $ac_new_val` 2799 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2801$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2802 ac_cache_corrupted=: 2803 else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2805$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2806 eval $ac_var=\$ac_old_val 2807 fi 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2809$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2811$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2812 fi;; 2813 esac 2814 # Pass precious variables to config.status. 2815 if test "$ac_new_set" = set; then 2816 case $ac_new_val in 2817 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2818 *) ac_arg=$ac_var=$ac_new_val ;; 2819 esac 2820 case " $ac_configure_args " in 2821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2822 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2823 esac 2824 fi 2825done 2826if $ac_cache_corrupted; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2830$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2831 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2832fi 2833## -------------------- ## 2834## Main body of script. ## 2835## -------------------- ## 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842 2843 2844ac_aux_dir= 2845for ac_dir in config "$srcdir"/config; do 2846 if test -f "$ac_dir/install-sh"; then 2847 ac_aux_dir=$ac_dir 2848 ac_install_sh="$ac_aux_dir/install-sh -c" 2849 break 2850 elif test -f "$ac_dir/install.sh"; then 2851 ac_aux_dir=$ac_dir 2852 ac_install_sh="$ac_aux_dir/install.sh -c" 2853 break 2854 elif test -f "$ac_dir/shtool"; then 2855 ac_aux_dir=$ac_dir 2856 ac_install_sh="$ac_aux_dir/shtool install -c" 2857 break 2858 fi 2859done 2860if test -z "$ac_aux_dir"; then 2861 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2862fi 2863 2864# These three variables are undocumented and unsupported, 2865# and are intended to be withdrawn in a future Autoconf release. 2866# They can cause serious problems if a builder's source tree is in a directory 2867# whose full name contains unusual characters. 2868ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2869ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2870ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2871 2872 2873 2874ac_ext=c 2875ac_cpp='$CPP $CPPFLAGS' 2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2878ac_compiler_gnu=$ac_cv_c_compiler_gnu 2879 2880 2881# Make sure we can run config.sub. 2882$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2883 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2884 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2886$as_echo_n "checking build system type... " >&6; } 2887if ${ac_cv_build+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 ac_build_alias=$build_alias 2891test "x$ac_build_alias" = x && 2892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2893test "x$ac_build_alias" = x && 2894 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2895ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2897 2898fi 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2900$as_echo "$ac_cv_build" >&6; } 2901case $ac_cv_build in 2902*-*-*) ;; 2903*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2904esac 2905build=$ac_cv_build 2906ac_save_IFS=$IFS; IFS='-' 2907set x $ac_cv_build 2908shift 2909build_cpu=$1 2910build_vendor=$2 2911shift; shift 2912# Remember, the first character of IFS is used to create $*, 2913# except with old shells: 2914build_os=$* 2915IFS=$ac_save_IFS 2916case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2917 2918 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2920$as_echo_n "checking host system type... " >&6; } 2921if ${ac_cv_host+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test "x$host_alias" = x; then 2925 ac_cv_host=$ac_cv_build 2926else 2927 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2928 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2929fi 2930 2931fi 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2933$as_echo "$ac_cv_host" >&6; } 2934case $ac_cv_host in 2935*-*-*) ;; 2936*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2937esac 2938host=$ac_cv_host 2939ac_save_IFS=$IFS; IFS='-' 2940set x $ac_cv_host 2941shift 2942host_cpu=$1 2943host_vendor=$2 2944shift; shift 2945# Remember, the first character of IFS is used to create $*, 2946# except with old shells: 2947host_os=$* 2948IFS=$ac_save_IFS 2949case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2950 2951 2952 2953am__api_version='1.16' 2954 2955# Find a good install program. We prefer a C program (faster), 2956# so one script is as good as another. But avoid the broken or 2957# incompatible versions: 2958# SysV /etc/install, /usr/sbin/install 2959# SunOS /usr/etc/install 2960# IRIX /sbin/install 2961# AIX /bin/install 2962# AmigaOS /C/install, which installs bootblocks on floppy discs 2963# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2964# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2965# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2966# OS/2's system install, which has a completely different semantic 2967# ./install, which can be erroneously created by make from ./install.sh. 2968# Reject install programs that cannot install multiple files. 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2970$as_echo_n "checking for a BSD-compatible install... " >&6; } 2971if test -z "$INSTALL"; then 2972if ${ac_cv_path_install+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 # Account for people who put trailing slashes in PATH elements. 2981case $as_dir/ in #(( 2982 ./ | .// | /[cC]/* | \ 2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2984 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2985 /usr/ucb/* ) ;; 2986 *) 2987 # OSF1 and SCO ODT 3.0 have their own names for install. 2988 # Don't use installbsd from OSF since it installs stuff as root 2989 # by default. 2990 for ac_prog in ginstall scoinst install; do 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2993 if test $ac_prog = install && 2994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2995 # AIX install. It has an incompatible calling convention. 2996 : 2997 elif test $ac_prog = install && 2998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2999 # program-specific install script used by HP pwplus--don't use. 3000 : 3001 else 3002 rm -rf conftest.one conftest.two conftest.dir 3003 echo one > conftest.one 3004 echo two > conftest.two 3005 mkdir conftest.dir 3006 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3007 test -s conftest.one && test -s conftest.two && 3008 test -s conftest.dir/conftest.one && 3009 test -s conftest.dir/conftest.two 3010 then 3011 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3012 break 3 3013 fi 3014 fi 3015 fi 3016 done 3017 done 3018 ;; 3019esac 3020 3021 done 3022IFS=$as_save_IFS 3023 3024rm -rf conftest.one conftest.two conftest.dir 3025 3026fi 3027 if test "${ac_cv_path_install+set}" = set; then 3028 INSTALL=$ac_cv_path_install 3029 else 3030 # As a last resort, use the slow shell script. Don't cache a 3031 # value for INSTALL within a source directory, because that will 3032 # break other packages using the cache if that directory is 3033 # removed, or if the value is a relative name. 3034 INSTALL=$ac_install_sh 3035 fi 3036fi 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3038$as_echo "$INSTALL" >&6; } 3039 3040# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3041# It thinks the first close brace ends the variable substitution. 3042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3043 3044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3045 3046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3047 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3049$as_echo_n "checking whether build environment is sane... " >&6; } 3050# Reject unsafe characters in $srcdir or the absolute working directory 3051# name. Accept space and tab only in the latter. 3052am_lf=' 3053' 3054case `pwd` in 3055 *[\\\"\#\$\&\'\`$am_lf]*) 3056 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3057esac 3058case $srcdir in 3059 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3060 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3061esac 3062 3063# Do 'set' in a subshell so we don't clobber the current shell's 3064# arguments. Must try -L first in case configure is actually a 3065# symlink; some systems play weird games with the mod time of symlinks 3066# (eg FreeBSD returns the mod time of the symlink's containing 3067# directory). 3068if ( 3069 am_has_slept=no 3070 for am_try in 1 2; do 3071 echo "timestamp, slept: $am_has_slept" > conftest.file 3072 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3073 if test "$*" = "X"; then 3074 # -L didn't work. 3075 set X `ls -t "$srcdir/configure" conftest.file` 3076 fi 3077 if test "$*" != "X $srcdir/configure conftest.file" \ 3078 && test "$*" != "X conftest.file $srcdir/configure"; then 3079 3080 # If neither matched, then we have a broken ls. This can happen 3081 # if, for instance, CONFIG_SHELL is bash and it inherits a 3082 # broken ls alias from the environment. This has actually 3083 # happened. Such a system could not be considered "sane". 3084 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3085 alias in your environment" "$LINENO" 5 3086 fi 3087 if test "$2" = conftest.file || test $am_try -eq 2; then 3088 break 3089 fi 3090 # Just in case. 3091 sleep 1 3092 am_has_slept=yes 3093 done 3094 test "$2" = conftest.file 3095 ) 3096then 3097 # Ok. 3098 : 3099else 3100 as_fn_error $? "newly created file is older than distributed files! 3101Check your system clock" "$LINENO" 5 3102fi 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3104$as_echo "yes" >&6; } 3105# If we didn't sleep, we still need to ensure time stamps of config.status and 3106# generated files are strictly newer. 3107am_sleep_pid= 3108if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3109 ( sleep 1 ) & 3110 am_sleep_pid=$! 3111fi 3112 3113rm -f conftest.file 3114 3115test "$program_prefix" != NONE && 3116 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3117# Use a double $ so make ignores it. 3118test "$program_suffix" != NONE && 3119 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3120# Double any \ or $. 3121# By default was `s,x,x', remove it if useless. 3122ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3123program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3124 3125# Expand $ac_aux_dir to an absolute path. 3126am_aux_dir=`cd "$ac_aux_dir" && pwd` 3127 3128if test x"${MISSING+set}" != xset; then 3129 case $am_aux_dir in 3130 *\ * | *\ *) 3131 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3132 *) 3133 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3134 esac 3135fi 3136# Use eval to expand $SHELL 3137if eval "$MISSING --is-lightweight"; then 3138 am_missing_run="$MISSING " 3139else 3140 am_missing_run= 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3142$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3143fi 3144 3145if test x"${install_sh+set}" != xset; then 3146 case $am_aux_dir in 3147 *\ * | *\ *) 3148 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3149 *) 3150 install_sh="\${SHELL} $am_aux_dir/install-sh" 3151 esac 3152fi 3153 3154# Installed binaries are usually stripped using 'strip' when the user 3155# run "make install-strip". However 'strip' might not be the right 3156# tool to use in cross-compilation environments, therefore Automake 3157# will honor the 'STRIP' environment variable to overrule this program. 3158if test "$cross_compiling" != no; then 3159 if test -n "$ac_tool_prefix"; then 3160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3161set dummy ${ac_tool_prefix}strip; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if ${ac_cv_prog_STRIP+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$STRIP"; then 3168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3177 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187STRIP=$ac_cv_prog_STRIP 3188if test -n "$STRIP"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3190$as_echo "$STRIP" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197fi 3198if test -z "$ac_cv_prog_STRIP"; then 3199 ac_ct_STRIP=$STRIP 3200 # Extract the first word of "strip", so it can be a program name with args. 3201set dummy strip; ac_word=$2 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203$as_echo_n "checking for $ac_word... " >&6; } 3204if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -n "$ac_ct_STRIP"; then 3208 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3217 ac_cv_prog_ac_ct_STRIP="strip" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3228if test -n "$ac_ct_STRIP"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3230$as_echo "$ac_ct_STRIP" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 if test "x$ac_ct_STRIP" = x; then 3237 STRIP=":" 3238 else 3239 case $cross_compiling:$ac_tool_warned in 3240yes:) 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3243ac_tool_warned=yes ;; 3244esac 3245 STRIP=$ac_ct_STRIP 3246 fi 3247else 3248 STRIP="$ac_cv_prog_STRIP" 3249fi 3250 3251fi 3252INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3253 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3255$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3256if test -z "$MKDIR_P"; then 3257 if ${ac_cv_path_mkdir+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3262do 3263 IFS=$as_save_IFS 3264 test -z "$as_dir" && as_dir=. 3265 for ac_prog in mkdir gmkdir; do 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3268 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3269 'mkdir (GNU coreutils) '* | \ 3270 'mkdir (coreutils) '* | \ 3271 'mkdir (fileutils) '4.1*) 3272 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3273 break 3;; 3274 esac 3275 done 3276 done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281 3282 test -d ./--version && rmdir ./--version 3283 if test "${ac_cv_path_mkdir+set}" = set; then 3284 MKDIR_P="$ac_cv_path_mkdir -p" 3285 else 3286 # As a last resort, use the slow shell script. Don't cache a 3287 # value for MKDIR_P within a source directory, because that will 3288 # break other packages using the cache if that directory is 3289 # removed, or if the value is a relative name. 3290 MKDIR_P="$ac_install_sh -d" 3291 fi 3292fi 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3294$as_echo "$MKDIR_P" >&6; } 3295 3296for ac_prog in gawk mawk nawk awk 3297do 3298 # Extract the first word of "$ac_prog", so it can be a program name with args. 3299set dummy $ac_prog; ac_word=$2 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3301$as_echo_n "checking for $ac_word... " >&6; } 3302if ${ac_cv_prog_AWK+:} false; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 if test -n "$AWK"; then 3306 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3307else 3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3309for as_dir in $PATH 3310do 3311 IFS=$as_save_IFS 3312 test -z "$as_dir" && as_dir=. 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3315 ac_cv_prog_AWK="$ac_prog" 3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323fi 3324fi 3325AWK=$ac_cv_prog_AWK 3326if test -n "$AWK"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3328$as_echo "$AWK" >&6; } 3329else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332fi 3333 3334 3335 test -n "$AWK" && break 3336done 3337 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3339$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3340set x ${MAKE-make} 3341ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3342if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3343 $as_echo_n "(cached) " >&6 3344else 3345 cat >conftest.make <<\_ACEOF 3346SHELL = /bin/sh 3347all: 3348 @echo '@@@%%%=$(MAKE)=@@@%%%' 3349_ACEOF 3350# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3351case `${MAKE-make} -f conftest.make 2>/dev/null` in 3352 *@@@%%%=?*=@@@%%%*) 3353 eval ac_cv_prog_make_${ac_make}_set=yes;; 3354 *) 3355 eval ac_cv_prog_make_${ac_make}_set=no;; 3356esac 3357rm -f conftest.make 3358fi 3359if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3361$as_echo "yes" >&6; } 3362 SET_MAKE= 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3365$as_echo "no" >&6; } 3366 SET_MAKE="MAKE=${MAKE-make}" 3367fi 3368 3369rm -rf .tst 2>/dev/null 3370mkdir .tst 2>/dev/null 3371if test -d .tst; then 3372 am__leading_dot=. 3373else 3374 am__leading_dot=_ 3375fi 3376rmdir .tst 2>/dev/null 3377 3378# Check whether --enable-silent-rules was given. 3379if test "${enable_silent_rules+set}" = set; then : 3380 enableval=$enable_silent_rules; 3381fi 3382 3383case $enable_silent_rules in # ((( 3384 yes) AM_DEFAULT_VERBOSITY=0;; 3385 no) AM_DEFAULT_VERBOSITY=1;; 3386 *) AM_DEFAULT_VERBOSITY=1;; 3387esac 3388am_make=${MAKE-make} 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3390$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3391if ${am_cv_make_support_nested_variables+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 if $as_echo 'TRUE=$(BAR$(V)) 3395BAR0=false 3396BAR1=true 3397V=1 3398am__doit: 3399 @$(TRUE) 3400.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3401 am_cv_make_support_nested_variables=yes 3402else 3403 am_cv_make_support_nested_variables=no 3404fi 3405fi 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3407$as_echo "$am_cv_make_support_nested_variables" >&6; } 3408if test $am_cv_make_support_nested_variables = yes; then 3409 AM_V='$(V)' 3410 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3411else 3412 AM_V=$AM_DEFAULT_VERBOSITY 3413 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3414fi 3415AM_BACKSLASH='\' 3416 3417if test "`cd $srcdir && pwd`" != "`pwd`"; then 3418 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3419 # is not polluted with repeated "-I." 3420 am__isrc=' -I$(srcdir)' 3421 # test to see if srcdir already configured 3422 if test -f $srcdir/config.status; then 3423 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3424 fi 3425fi 3426 3427# test whether we have cygpath 3428if test -z "$CYGPATH_W"; then 3429 if (cygpath --version) >/dev/null 2>/dev/null; then 3430 CYGPATH_W='cygpath -w' 3431 else 3432 CYGPATH_W=echo 3433 fi 3434fi 3435 3436 3437# Define the identity of the package. 3438 PACKAGE='tiff' 3439 VERSION='4.3.0' 3440 3441 3442cat >>confdefs.h <<_ACEOF 3443#define PACKAGE "$PACKAGE" 3444_ACEOF 3445 3446 3447cat >>confdefs.h <<_ACEOF 3448#define VERSION "$VERSION" 3449_ACEOF 3450 3451# Some tools Automake needs. 3452 3453ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3454 3455 3456AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3457 3458 3459AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3460 3461 3462AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3463 3464 3465MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3466 3467# For better backward compatibility. To be removed once Automake 1.9.x 3468# dies out for good. For more background, see: 3469# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3471mkdir_p='$(MKDIR_P)' 3472 3473# We need awk for the "check" target (and possibly the TAP driver). The 3474# system "awk" is bad on some platforms. 3475# Always define AMTAR for backward compatibility. Yes, it's still used 3476# in the wild :-( We should find a proper way to deprecate it ... 3477AMTAR='$${TAR-tar}' 3478 3479 3480# We'll loop over all known methods to create a tar archive until one works. 3481_am_tools='gnutar plaintar pax cpio none' 3482 3483# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3484 # There is notably a 21 bits limit for the UID and the GID. In fact, 3485 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3486 # and bug#13588). 3487 am_max_uid=2097151 # 2^21 - 1 3488 am_max_gid=$am_max_uid 3489 # The $UID and $GID variables are not portable, so we need to resort 3490 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3491 # below are definitely unexpected, so allow the users to see them 3492 # (that is, avoid stderr redirection). 3493 am_uid=`id -u || echo unknown` 3494 am_gid=`id -g || echo unknown` 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3496$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3497 if test $am_uid -le $am_max_uid; then 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3499$as_echo "yes" >&6; } 3500 else 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3502$as_echo "no" >&6; } 3503 _am_tools=none 3504 fi 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3506$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3507 if test $am_gid -le $am_max_gid; then 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3509$as_echo "yes" >&6; } 3510 else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3512$as_echo "no" >&6; } 3513 _am_tools=none 3514 fi 3515 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3517$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3518 3519 # Go ahead even if we have the value already cached. We do so because we 3520 # need to set the values for the 'am__tar' and 'am__untar' variables. 3521 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3522 3523 for _am_tool in $_am_tools; do 3524 case $_am_tool in 3525 gnutar) 3526 for _am_tar in tar gnutar gtar; do 3527 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3528 ($_am_tar --version) >&5 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); } && break 3532 done 3533 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3534 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3535 am__untar="$_am_tar -xf -" 3536 ;; 3537 plaintar) 3538 # Must skip GNU tar: if it does not support --format= it doesn't create 3539 # ustar tarball either. 3540 (tar --version) >/dev/null 2>&1 && continue 3541 am__tar='tar chf - "$$tardir"' 3542 am__tar_='tar chf - "$tardir"' 3543 am__untar='tar xf -' 3544 ;; 3545 pax) 3546 am__tar='pax -L -x ustar -w "$$tardir"' 3547 am__tar_='pax -L -x ustar -w "$tardir"' 3548 am__untar='pax -r' 3549 ;; 3550 cpio) 3551 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3552 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3553 am__untar='cpio -i -H ustar -d' 3554 ;; 3555 none) 3556 am__tar=false 3557 am__tar_=false 3558 am__untar=false 3559 ;; 3560 esac 3561 3562 # If the value was cached, stop now. We just wanted to have am__tar 3563 # and am__untar set. 3564 test -n "${am_cv_prog_tar_ustar}" && break 3565 3566 # tar/untar a dummy directory, and stop if the command works. 3567 rm -rf conftest.dir 3568 mkdir conftest.dir 3569 echo GrepMe > conftest.dir/file 3570 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3571 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3572 ac_status=$? 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); } 3575 rm -rf conftest.dir 3576 if test -s conftest.tar; then 3577 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3578 ($am__untar <conftest.tar) >&5 2>&5 3579 ac_status=$? 3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581 (exit $ac_status); } 3582 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3583 (cat conftest.dir/file) >&5 2>&5 3584 ac_status=$? 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); } 3587 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3588 fi 3589 done 3590 rm -rf conftest.dir 3591 3592 if ${am_cv_prog_tar_ustar+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 am_cv_prog_tar_ustar=$_am_tool 3596fi 3597 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3599$as_echo "$am_cv_prog_tar_ustar" >&6; } 3600 3601 3602 3603 3604 3605 3606# POSIX will say in a future version that running "rm -f" with no argument 3607# is OK; and we want to be able to make that assumption in our Makefile 3608# recipes. So use an aggressive probe to check that the usage we want is 3609# actually supported "in the wild" to an acceptable degree. 3610# See automake bug#10828. 3611# To make any issue more visible, cause the running configure to be aborted 3612# by default if the 'rm' program in use doesn't match our expectations; the 3613# user can still override this though. 3614if rm -f && rm -fr && rm -rf; then : OK; else 3615 cat >&2 <<'END' 3616Oops! 3617 3618Your 'rm' program seems unable to run without file operands specified 3619on the command line, even when the '-f' option is present. This is contrary 3620to the behaviour of most rm programs out there, and not conforming with 3621the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3622 3623Please tell bug-automake@gnu.org about your system, including the value 3624of your $PATH and any error possibly output before this message. This 3625can help us improve future automake versions. 3626 3627END 3628 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3629 echo 'Configuration will proceed anyway, since you have set the' >&2 3630 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3631 echo >&2 3632 else 3633 cat >&2 <<'END' 3634Aborting the configuration process, to ensure you take notice of the issue. 3635 3636You can download and install GNU coreutils to get an 'rm' implementation 3637that behaves properly: <https://www.gnu.org/software/coreutils/>. 3638 3639If you want to complete the configuration process using your problematic 3640'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3641to "yes", and re-run configure. 3642 3643END 3644 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3645 fi 3646fi 3647 3648 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3650$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3651 # Check whether --enable-maintainer-mode was given. 3652if test "${enable_maintainer_mode+set}" = set; then : 3653 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3654else 3655 USE_MAINTAINER_MODE=no 3656fi 3657 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3659$as_echo "$USE_MAINTAINER_MODE" >&6; } 3660 if test $USE_MAINTAINER_MODE = yes; then 3661 MAINTAINER_MODE_TRUE= 3662 MAINTAINER_MODE_FALSE='#' 3663else 3664 MAINTAINER_MODE_TRUE='#' 3665 MAINTAINER_MODE_FALSE= 3666fi 3667 3668 MAINT=$MAINTAINER_MODE_TRUE 3669 3670 3671 3672LIBTIFF_MAJOR_VERSION=4 3673LIBTIFF_MINOR_VERSION=3 3674LIBTIFF_MICRO_VERSION=0 3675LIBTIFF_ALPHA_VERSION= 3676LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3677LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3678 3679LIBTIFF_CURRENT=12 3680LIBTIFF_REVISION=0 3681LIBTIFF_AGE=7 3682LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3683 3684# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3685# in OpenBSD uses some special semantics for shared libraries. Their soname 3686# contains only two numbers, major and minor. 3687# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3688#case "$host_os" in 3689# openbsd* | mirbsd*) 3690# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3691# ;; 3692# *) 3693# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3694# ;; 3695#esac 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705DEPDIR="${am__leading_dot}deps" 3706 3707ac_config_commands="$ac_config_commands depfiles" 3708 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3710$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3711cat > confinc.mk << 'END' 3712am__doit: 3713 @echo this is the am__doit target >confinc.out 3714.PHONY: am__doit 3715END 3716am__include="#" 3717am__quote= 3718# BSD make does it like this. 3719echo '.include "confinc.mk" # ignored' > confmf.BSD 3720# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3721echo 'include confinc.mk # ignored' > confmf.GNU 3722_am_result=no 3723for s in GNU BSD; do 3724 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3725 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3726 ac_status=$? 3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3728 (exit $ac_status); } 3729 case $?:`cat confinc.out 2>/dev/null` in #( 3730 '0:this is the am__doit target') : 3731 case $s in #( 3732 BSD) : 3733 am__include='.include' am__quote='"' ;; #( 3734 *) : 3735 am__include='include' am__quote='' ;; 3736esac ;; #( 3737 *) : 3738 ;; 3739esac 3740 if test "$am__include" != "#"; then 3741 _am_result="yes ($s style)" 3742 break 3743 fi 3744done 3745rm -f confinc.* confmf.* 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3747$as_echo "${_am_result}" >&6; } 3748 3749# Check whether --enable-dependency-tracking was given. 3750if test "${enable_dependency_tracking+set}" = set; then : 3751 enableval=$enable_dependency_tracking; 3752fi 3753 3754if test "x$enable_dependency_tracking" != xno; then 3755 am_depcomp="$ac_aux_dir/depcomp" 3756 AMDEPBACKSLASH='\' 3757 am__nodep='_no' 3758fi 3759 if test "x$enable_dependency_tracking" != xno; then 3760 AMDEP_TRUE= 3761 AMDEP_FALSE='#' 3762else 3763 AMDEP_TRUE='#' 3764 AMDEP_FALSE= 3765fi 3766 3767 3768ac_ext=c 3769ac_cpp='$CPP $CPPFLAGS' 3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773if test -n "$ac_tool_prefix"; then 3774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3775set dummy ${ac_tool_prefix}gcc; ac_word=$2 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3777$as_echo_n "checking for $ac_word... " >&6; } 3778if ${ac_cv_prog_CC+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 if test -n "$CC"; then 3782 ac_cv_prog_CC="$CC" # Let the user override the test. 3783else 3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3785for as_dir in $PATH 3786do 3787 IFS=$as_save_IFS 3788 test -z "$as_dir" && as_dir=. 3789 for ac_exec_ext in '' $ac_executable_extensions; do 3790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3791 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3793 break 2 3794 fi 3795done 3796 done 3797IFS=$as_save_IFS 3798 3799fi 3800fi 3801CC=$ac_cv_prog_CC 3802if test -n "$CC"; then 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3804$as_echo "$CC" >&6; } 3805else 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3807$as_echo "no" >&6; } 3808fi 3809 3810 3811fi 3812if test -z "$ac_cv_prog_CC"; then 3813 ac_ct_CC=$CC 3814 # Extract the first word of "gcc", so it can be a program name with args. 3815set dummy gcc; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_ac_ct_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$ac_ct_CC"; then 3822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_ac_ct_CC="gcc" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841ac_ct_CC=$ac_cv_prog_ac_ct_CC 3842if test -n "$ac_ct_CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3844$as_echo "$ac_ct_CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 if test "x$ac_ct_CC" = x; then 3851 CC="" 3852 else 3853 case $cross_compiling:$ac_tool_warned in 3854yes:) 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3857ac_tool_warned=yes ;; 3858esac 3859 CC=$ac_ct_CC 3860 fi 3861else 3862 CC="$ac_cv_prog_CC" 3863fi 3864 3865if test -z "$CC"; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3868set dummy ${ac_tool_prefix}cc; ac_word=$2 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870$as_echo_n "checking for $ac_word... " >&6; } 3871if ${ac_cv_prog_CC+:} false; then : 3872 $as_echo_n "(cached) " >&6 3873else 3874 if test -n "$CC"; then 3875 ac_cv_prog_CC="$CC" # Let the user override the test. 3876else 3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_exec_ext in '' $ac_executable_extensions; do 3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3884 ac_cv_prog_CC="${ac_tool_prefix}cc" 3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3886 break 2 3887 fi 3888done 3889 done 3890IFS=$as_save_IFS 3891 3892fi 3893fi 3894CC=$ac_cv_prog_CC 3895if test -n "$CC"; then 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3897$as_echo "$CC" >&6; } 3898else 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3900$as_echo "no" >&6; } 3901fi 3902 3903 3904 fi 3905fi 3906if test -z "$CC"; then 3907 # Extract the first word of "cc", so it can be a program name with args. 3908set dummy cc; ac_word=$2 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3910$as_echo_n "checking for $ac_word... " >&6; } 3911if ${ac_cv_prog_CC+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 if test -n "$CC"; then 3915 ac_cv_prog_CC="$CC" # Let the user override the test. 3916else 3917 ac_prog_rejected=no 3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3919for as_dir in $PATH 3920do 3921 IFS=$as_save_IFS 3922 test -z "$as_dir" && as_dir=. 3923 for ac_exec_ext in '' $ac_executable_extensions; do 3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3926 ac_prog_rejected=yes 3927 continue 3928 fi 3929 ac_cv_prog_CC="cc" 3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3931 break 2 3932 fi 3933done 3934 done 3935IFS=$as_save_IFS 3936 3937if test $ac_prog_rejected = yes; then 3938 # We found a bogon in the path, so make sure we never use it. 3939 set dummy $ac_cv_prog_CC 3940 shift 3941 if test $# != 0; then 3942 # We chose a different compiler from the bogus one. 3943 # However, it has the same basename, so the bogon will be chosen 3944 # first if we set CC to just the basename; use the full file name. 3945 shift 3946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3947 fi 3948fi 3949fi 3950fi 3951CC=$ac_cv_prog_CC 3952if test -n "$CC"; then 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3954$as_echo "$CC" >&6; } 3955else 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3957$as_echo "no" >&6; } 3958fi 3959 3960 3961fi 3962if test -z "$CC"; then 3963 if test -n "$ac_tool_prefix"; then 3964 for ac_prog in cl.exe 3965 do 3966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3967set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3969$as_echo_n "checking for $ac_word... " >&6; } 3970if ${ac_cv_prog_CC+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 if test -n "$CC"; then 3974 ac_cv_prog_CC="$CC" # Let the user override the test. 3975else 3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3977for as_dir in $PATH 3978do 3979 IFS=$as_save_IFS 3980 test -z "$as_dir" && as_dir=. 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3985 break 2 3986 fi 3987done 3988 done 3989IFS=$as_save_IFS 3990 3991fi 3992fi 3993CC=$ac_cv_prog_CC 3994if test -n "$CC"; then 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3996$as_echo "$CC" >&6; } 3997else 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3999$as_echo "no" >&6; } 4000fi 4001 4002 4003 test -n "$CC" && break 4004 done 4005fi 4006if test -z "$CC"; then 4007 ac_ct_CC=$CC 4008 for ac_prog in cl.exe 4009do 4010 # Extract the first word of "$ac_prog", so it can be a program name with args. 4011set dummy $ac_prog; ac_word=$2 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4013$as_echo_n "checking for $ac_word... " >&6; } 4014if ${ac_cv_prog_ac_ct_CC+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 if test -n "$ac_ct_CC"; then 4018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4019else 4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4021for as_dir in $PATH 4022do 4023 IFS=$as_save_IFS 4024 test -z "$as_dir" && as_dir=. 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4027 ac_cv_prog_ac_ct_CC="$ac_prog" 4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031done 4032 done 4033IFS=$as_save_IFS 4034 4035fi 4036fi 4037ac_ct_CC=$ac_cv_prog_ac_ct_CC 4038if test -n "$ac_ct_CC"; then 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4040$as_echo "$ac_ct_CC" >&6; } 4041else 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4043$as_echo "no" >&6; } 4044fi 4045 4046 4047 test -n "$ac_ct_CC" && break 4048done 4049 4050 if test "x$ac_ct_CC" = x; then 4051 CC="" 4052 else 4053 case $cross_compiling:$ac_tool_warned in 4054yes:) 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4057ac_tool_warned=yes ;; 4058esac 4059 CC=$ac_ct_CC 4060 fi 4061fi 4062 4063fi 4064 4065 4066test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4068as_fn_error $? "no acceptable C compiler found in \$PATH 4069See \`config.log' for more details" "$LINENO" 5; } 4070 4071# Provide some information about the compiler. 4072$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4073set X $ac_compile 4074ac_compiler=$2 4075for ac_option in --version -v -V -qversion; do 4076 { { ac_try="$ac_compiler $ac_option >&5" 4077case "(($ac_try" in 4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4079 *) ac_try_echo=$ac_try;; 4080esac 4081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4082$as_echo "$ac_try_echo"; } >&5 4083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4084 ac_status=$? 4085 if test -s conftest.err; then 4086 sed '10a\ 4087... rest of stderr output deleted ... 4088 10q' conftest.err >conftest.er1 4089 cat conftest.er1 >&5 4090 fi 4091 rm -f conftest.er1 conftest.err 4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; } 4094done 4095 4096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097/* end confdefs.h. */ 4098 4099int 4100main () 4101{ 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107ac_clean_files_save=$ac_clean_files 4108ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4109# Try to create an executable without -o first, disregard a.out. 4110# It will help us diagnose broken compilers, and finding out an intuition 4111# of exeext. 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4113$as_echo_n "checking whether the C compiler works... " >&6; } 4114ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4115 4116# The possible output files: 4117ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4118 4119ac_rmfiles= 4120for ac_file in $ac_files 4121do 4122 case $ac_file in 4123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4124 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4125 esac 4126done 4127rm -f $ac_rmfiles 4128 4129if { { ac_try="$ac_link_default" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_link_default") 2>&5 4137 ac_status=$? 4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4139 test $ac_status = 0; }; then : 4140 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4141# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4142# in a Makefile. We should not override ac_cv_exeext if it was cached, 4143# so that the user can short-circuit this test for compilers unknown to 4144# Autoconf. 4145for ac_file in $ac_files '' 4146do 4147 test -f "$ac_file" || continue 4148 case $ac_file in 4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4150 ;; 4151 [ab].out ) 4152 # We found the default executable, but exeext='' is most 4153 # certainly right. 4154 break;; 4155 *.* ) 4156 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4157 then :; else 4158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4159 fi 4160 # We set ac_cv_exeext here because the later test for it is not 4161 # safe: cross compilers may not add the suffix if given an `-o' 4162 # argument, so we may need to know it at that point already. 4163 # Even if this section looks crufty: it has the advantage of 4164 # actually working. 4165 break;; 4166 * ) 4167 break;; 4168 esac 4169done 4170test "$ac_cv_exeext" = no && ac_cv_exeext= 4171 4172else 4173 ac_file='' 4174fi 4175if test -z "$ac_file"; then : 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4177$as_echo "no" >&6; } 4178$as_echo "$as_me: failed program was:" >&5 4179sed 's/^/| /' conftest.$ac_ext >&5 4180 4181{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4183as_fn_error 77 "C compiler cannot create executables 4184See \`config.log' for more details" "$LINENO" 5; } 4185else 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4187$as_echo "yes" >&6; } 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4190$as_echo_n "checking for C compiler default output file name... " >&6; } 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4192$as_echo "$ac_file" >&6; } 4193ac_exeext=$ac_cv_exeext 4194 4195rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4196ac_clean_files=$ac_clean_files_save 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4198$as_echo_n "checking for suffix of executables... " >&6; } 4199if { { ac_try="$ac_link" 4200case "(($ac_try" in 4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4202 *) ac_try_echo=$ac_try;; 4203esac 4204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4205$as_echo "$ac_try_echo"; } >&5 4206 (eval "$ac_link") 2>&5 4207 ac_status=$? 4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4209 test $ac_status = 0; }; then : 4210 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4211# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4212# work properly (i.e., refer to `conftest.exe'), while it won't with 4213# `rm'. 4214for ac_file in conftest.exe conftest conftest.*; do 4215 test -f "$ac_file" || continue 4216 case $ac_file in 4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4219 break;; 4220 * ) break;; 4221 esac 4222done 4223else 4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4226as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4227See \`config.log' for more details" "$LINENO" 5; } 4228fi 4229rm -f conftest conftest$ac_cv_exeext 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4231$as_echo "$ac_cv_exeext" >&6; } 4232 4233rm -f conftest.$ac_ext 4234EXEEXT=$ac_cv_exeext 4235ac_exeext=$EXEEXT 4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#include <stdio.h> 4239int 4240main () 4241{ 4242FILE *f = fopen ("conftest.out", "w"); 4243 return ferror (f) || fclose (f) != 0; 4244 4245 ; 4246 return 0; 4247} 4248_ACEOF 4249ac_clean_files="$ac_clean_files conftest.out" 4250# Check that the compiler produces executables we can run. If not, either 4251# the compiler is broken, or we cross compile. 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4253$as_echo_n "checking whether we are cross compiling... " >&6; } 4254if test "$cross_compiling" != yes; then 4255 { { ac_try="$ac_link" 4256case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259esac 4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4261$as_echo "$ac_try_echo"; } >&5 4262 (eval "$ac_link") 2>&5 4263 ac_status=$? 4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4265 test $ac_status = 0; } 4266 if { ac_try='./conftest$ac_cv_exeext' 4267 { { case "(($ac_try" in 4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4269 *) ac_try_echo=$ac_try;; 4270esac 4271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4272$as_echo "$ac_try_echo"; } >&5 4273 (eval "$ac_try") 2>&5 4274 ac_status=$? 4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4276 test $ac_status = 0; }; }; then 4277 cross_compiling=no 4278 else 4279 if test "$cross_compiling" = maybe; then 4280 cross_compiling=yes 4281 else 4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4284as_fn_error $? "cannot run C compiled programs. 4285If you meant to cross compile, use \`--host'. 4286See \`config.log' for more details" "$LINENO" 5; } 4287 fi 4288 fi 4289fi 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4291$as_echo "$cross_compiling" >&6; } 4292 4293rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4294ac_clean_files=$ac_clean_files_save 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4296$as_echo_n "checking for suffix of object files... " >&6; } 4297if ${ac_cv_objext+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302 4303int 4304main () 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.o conftest.obj 4312if { { ac_try="$ac_compile" 4313case "(($ac_try" in 4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4315 *) ac_try_echo=$ac_try;; 4316esac 4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4318$as_echo "$ac_try_echo"; } >&5 4319 (eval "$ac_compile") 2>&5 4320 ac_status=$? 4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4322 test $ac_status = 0; }; then : 4323 for ac_file in conftest.o conftest.obj conftest.*; do 4324 test -f "$ac_file" || continue; 4325 case $ac_file in 4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4328 break;; 4329 esac 4330done 4331else 4332 $as_echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4337as_fn_error $? "cannot compute suffix of object files: cannot compile 4338See \`config.log' for more details" "$LINENO" 5; } 4339fi 4340rm -f conftest.$ac_cv_objext conftest.$ac_ext 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4343$as_echo "$ac_cv_objext" >&6; } 4344OBJEXT=$ac_cv_objext 4345ac_objext=$OBJEXT 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4347$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4348if ${ac_cv_c_compiler_gnu+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352/* end confdefs.h. */ 4353 4354int 4355main () 4356{ 4357#ifndef __GNUC__ 4358 choke me 4359#endif 4360 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365if ac_fn_c_try_compile "$LINENO"; then : 4366 ac_compiler_gnu=yes 4367else 4368 ac_compiler_gnu=no 4369fi 4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4371ac_cv_c_compiler_gnu=$ac_compiler_gnu 4372 4373fi 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4375$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4376if test $ac_compiler_gnu = yes; then 4377 GCC=yes 4378else 4379 GCC= 4380fi 4381ac_test_CFLAGS=${CFLAGS+set} 4382ac_save_CFLAGS=$CFLAGS 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4384$as_echo_n "checking whether $CC accepts -g... " >&6; } 4385if ${ac_cv_prog_cc_g+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 ac_save_c_werror_flag=$ac_c_werror_flag 4389 ac_c_werror_flag=yes 4390 ac_cv_prog_cc_g=no 4391 CFLAGS="-g" 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4393/* end confdefs.h. */ 4394 4395int 4396main () 4397{ 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403if ac_fn_c_try_compile "$LINENO"; then : 4404 ac_cv_prog_cc_g=yes 4405else 4406 CFLAGS="" 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main () 4412{ 4413 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418if ac_fn_c_try_compile "$LINENO"; then : 4419 4420else 4421 ac_c_werror_flag=$ac_save_c_werror_flag 4422 CFLAGS="-g" 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425 4426int 4427main () 4428{ 4429 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434if ac_fn_c_try_compile "$LINENO"; then : 4435 ac_cv_prog_cc_g=yes 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4438fi 4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4440fi 4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4442 ac_c_werror_flag=$ac_save_c_werror_flag 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4445$as_echo "$ac_cv_prog_cc_g" >&6; } 4446if test "$ac_test_CFLAGS" = set; then 4447 CFLAGS=$ac_save_CFLAGS 4448elif test $ac_cv_prog_cc_g = yes; then 4449 if test "$GCC" = yes; then 4450 CFLAGS="-g -O2" 4451 else 4452 CFLAGS="-g" 4453 fi 4454else 4455 if test "$GCC" = yes; then 4456 CFLAGS="-O2" 4457 else 4458 CFLAGS= 4459 fi 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4462$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4463if ${ac_cv_prog_cc_c89+:} false; then : 4464 $as_echo_n "(cached) " >&6 4465else 4466 ac_cv_prog_cc_c89=no 4467ac_save_CC=$CC 4468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470#include <stdarg.h> 4471#include <stdio.h> 4472struct stat; 4473/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4474struct buf { int x; }; 4475FILE * (*rcsopen) (struct buf *, struct stat *, int); 4476static char *e (p, i) 4477 char **p; 4478 int i; 4479{ 4480 return p[i]; 4481} 4482static char *f (char * (*g) (char **, int), char **p, ...) 4483{ 4484 char *s; 4485 va_list v; 4486 va_start (v,p); 4487 s = g (p, va_arg (v,int)); 4488 va_end (v); 4489 return s; 4490} 4491 4492/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4493 function prototypes and stuff, but not '\xHH' hex character constants. 4494 These don't provoke an error unfortunately, instead are silently treated 4495 as 'x'. The following induces an error, until -std is added to get 4496 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4497 array size at least. It's necessary to write '\x00'==0 to get something 4498 that's true only with -std. */ 4499int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4500 4501/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4502 inside strings and character constants. */ 4503#define FOO(x) 'x' 4504int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4505 4506int test (int i, double x); 4507struct s1 {int (*f) (int a);}; 4508struct s2 {int (*f) (double a);}; 4509int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4510int argc; 4511char **argv; 4512int 4513main () 4514{ 4515return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4516 ; 4517 return 0; 4518} 4519_ACEOF 4520for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4521 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4522do 4523 CC="$ac_save_CC $ac_arg" 4524 if ac_fn_c_try_compile "$LINENO"; then : 4525 ac_cv_prog_cc_c89=$ac_arg 4526fi 4527rm -f core conftest.err conftest.$ac_objext 4528 test "x$ac_cv_prog_cc_c89" != "xno" && break 4529done 4530rm -f conftest.$ac_ext 4531CC=$ac_save_CC 4532 4533fi 4534# AC_CACHE_VAL 4535case "x$ac_cv_prog_cc_c89" in 4536 x) 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4538$as_echo "none needed" >&6; } ;; 4539 xno) 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4541$as_echo "unsupported" >&6; } ;; 4542 *) 4543 CC="$CC $ac_cv_prog_cc_c89" 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4545$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4546esac 4547if test "x$ac_cv_prog_cc_c89" != xno; then : 4548 4549fi 4550 4551ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556 4557ac_ext=c 4558ac_cpp='$CPP $CPPFLAGS' 4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4561ac_compiler_gnu=$ac_cv_c_compiler_gnu 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4563$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4564if ${am_cv_prog_cc_c_o+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4568/* end confdefs.h. */ 4569 4570int 4571main () 4572{ 4573 4574 ; 4575 return 0; 4576} 4577_ACEOF 4578 # Make sure it works both with $CC and with simple cc. 4579 # Following AC_PROG_CC_C_O, we do the test twice because some 4580 # compilers refuse to overwrite an existing .o file with -o, 4581 # though they will create one. 4582 am_cv_prog_cc_c_o=yes 4583 for am_i in 1 2; do 4584 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4585 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4586 ac_status=$? 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } \ 4589 && test -f conftest2.$ac_objext; then 4590 : OK 4591 else 4592 am_cv_prog_cc_c_o=no 4593 break 4594 fi 4595 done 4596 rm -f core conftest* 4597 unset am_i 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4600$as_echo "$am_cv_prog_cc_c_o" >&6; } 4601if test "$am_cv_prog_cc_c_o" != yes; then 4602 # Losing compiler, so override with the script. 4603 # FIXME: It is wrong to rewrite CC. 4604 # But if we don't then we get into trouble of one sort or another. 4605 # A longer-term fix would be to have automake use am__CC in this case, 4606 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4607 CC="$am_aux_dir/compile $CC" 4608fi 4609ac_ext=c 4610ac_cpp='$CPP $CPPFLAGS' 4611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4613ac_compiler_gnu=$ac_cv_c_compiler_gnu 4614 4615 4616depcc="$CC" am_compiler_list= 4617 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4619$as_echo_n "checking dependency style of $depcc... " >&6; } 4620if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4624 # We make a subdir and do the tests there. Otherwise we can end up 4625 # making bogus files that we don't know about and never remove. For 4626 # instance it was reported that on HP-UX the gcc test will end up 4627 # making a dummy file named 'D' -- because '-MD' means "put the output 4628 # in D". 4629 rm -rf conftest.dir 4630 mkdir conftest.dir 4631 # Copy depcomp to subdir because otherwise we won't find it if we're 4632 # using a relative directory. 4633 cp "$am_depcomp" conftest.dir 4634 cd conftest.dir 4635 # We will build objects and dependencies in a subdirectory because 4636 # it helps to detect inapplicable dependency modes. For instance 4637 # both Tru64's cc and ICC support -MD to output dependencies as a 4638 # side effect of compilation, but ICC will put the dependencies in 4639 # the current directory while Tru64 will put them in the object 4640 # directory. 4641 mkdir sub 4642 4643 am_cv_CC_dependencies_compiler_type=none 4644 if test "$am_compiler_list" = ""; then 4645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4646 fi 4647 am__universal=false 4648 case " $depcc " in #( 4649 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4650 esac 4651 4652 for depmode in $am_compiler_list; do 4653 # Setup a source with many dependencies, because some compilers 4654 # like to wrap large dependency lists on column 80 (with \), and 4655 # we should not choose a depcomp mode which is confused by this. 4656 # 4657 # We need to recreate these files for each test, as the compiler may 4658 # overwrite some of them when testing with obscure command lines. 4659 # This happens at least with the AIX C compiler. 4660 : > sub/conftest.c 4661 for i in 1 2 3 4 5 6; do 4662 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4663 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4664 # Solaris 10 /bin/sh. 4665 echo '/* dummy */' > sub/conftst$i.h 4666 done 4667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4668 4669 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4670 # mode. It turns out that the SunPro C++ compiler does not properly 4671 # handle '-M -o', and we need to detect this. Also, some Intel 4672 # versions had trouble with output in subdirs. 4673 am__obj=sub/conftest.${OBJEXT-o} 4674 am__minus_obj="-o $am__obj" 4675 case $depmode in 4676 gcc) 4677 # This depmode causes a compiler race in universal mode. 4678 test "$am__universal" = false || continue 4679 ;; 4680 nosideeffect) 4681 # After this tag, mechanisms are not by side-effect, so they'll 4682 # only be used when explicitly requested. 4683 if test "x$enable_dependency_tracking" = xyes; then 4684 continue 4685 else 4686 break 4687 fi 4688 ;; 4689 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4690 # This compiler won't grok '-c -o', but also, the minuso test has 4691 # not run yet. These depmodes are late enough in the game, and 4692 # so weak that their functioning should not be impacted. 4693 am__obj=conftest.${OBJEXT-o} 4694 am__minus_obj= 4695 ;; 4696 none) break ;; 4697 esac 4698 if depmode=$depmode \ 4699 source=sub/conftest.c object=$am__obj \ 4700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4701 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4702 >/dev/null 2>conftest.err && 4703 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4705 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4707 # icc doesn't choke on unknown options, it will just issue warnings 4708 # or remarks (even with -Werror). So we grep stderr for any message 4709 # that says an option was ignored or not supported. 4710 # When given -MP, icc 7.0 and 7.1 complain thusly: 4711 # icc: Command line warning: ignoring option '-M'; no argument required 4712 # The diagnosis changed in icc 8.0: 4713 # icc: Command line remark: option '-MP' not supported 4714 if (grep 'ignoring option' conftest.err || 4715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4716 am_cv_CC_dependencies_compiler_type=$depmode 4717 break 4718 fi 4719 fi 4720 done 4721 4722 cd .. 4723 rm -rf conftest.dir 4724else 4725 am_cv_CC_dependencies_compiler_type=none 4726fi 4727 4728fi 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4730$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4731CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4732 4733 if 4734 test "x$enable_dependency_tracking" != xno \ 4735 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4736 am__fastdepCC_TRUE= 4737 am__fastdepCC_FALSE='#' 4738else 4739 am__fastdepCC_TRUE='#' 4740 am__fastdepCC_FALSE= 4741fi 4742 4743 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4745$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4746if ${ac_cv_prog_cc_c99+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 ac_cv_prog_cc_c99=no 4750ac_save_CC=$CC 4751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753#include <stdarg.h> 4754#include <stdbool.h> 4755#include <stdlib.h> 4756#include <wchar.h> 4757#include <stdio.h> 4758 4759// Check varargs macros. These examples are taken from C99 6.10.3.5. 4760#define debug(...) fprintf (stderr, __VA_ARGS__) 4761#define showlist(...) puts (#__VA_ARGS__) 4762#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4763static void 4764test_varargs_macros (void) 4765{ 4766 int x = 1234; 4767 int y = 5678; 4768 debug ("Flag"); 4769 debug ("X = %d\n", x); 4770 showlist (The first, second, and third items.); 4771 report (x>y, "x is %d but y is %d", x, y); 4772} 4773 4774// Check long long types. 4775#define BIG64 18446744073709551615ull 4776#define BIG32 4294967295ul 4777#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4778#if !BIG_OK 4779 your preprocessor is broken; 4780#endif 4781#if BIG_OK 4782#else 4783 your preprocessor is broken; 4784#endif 4785static long long int bignum = -9223372036854775807LL; 4786static unsigned long long int ubignum = BIG64; 4787 4788struct incomplete_array 4789{ 4790 int datasize; 4791 double data[]; 4792}; 4793 4794struct named_init { 4795 int number; 4796 const wchar_t *name; 4797 double average; 4798}; 4799 4800typedef const char *ccp; 4801 4802static inline int 4803test_restrict (ccp restrict text) 4804{ 4805 // See if C++-style comments work. 4806 // Iterate through items via the restricted pointer. 4807 // Also check for declarations in for loops. 4808 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4809 continue; 4810 return 0; 4811} 4812 4813// Check varargs and va_copy. 4814static void 4815test_varargs (const char *format, ...) 4816{ 4817 va_list args; 4818 va_start (args, format); 4819 va_list args_copy; 4820 va_copy (args_copy, args); 4821 4822 const char *str; 4823 int number; 4824 float fnumber; 4825 4826 while (*format) 4827 { 4828 switch (*format++) 4829 { 4830 case 's': // string 4831 str = va_arg (args_copy, const char *); 4832 break; 4833 case 'd': // int 4834 number = va_arg (args_copy, int); 4835 break; 4836 case 'f': // float 4837 fnumber = va_arg (args_copy, double); 4838 break; 4839 default: 4840 break; 4841 } 4842 } 4843 va_end (args_copy); 4844 va_end (args); 4845} 4846 4847int 4848main () 4849{ 4850 4851 // Check bool. 4852 _Bool success = false; 4853 4854 // Check restrict. 4855 if (test_restrict ("String literal") == 0) 4856 success = true; 4857 char *restrict newvar = "Another string"; 4858 4859 // Check varargs. 4860 test_varargs ("s, d' f .", "string", 65, 34.234); 4861 test_varargs_macros (); 4862 4863 // Check flexible array members. 4864 struct incomplete_array *ia = 4865 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4866 ia->datasize = 10; 4867 for (int i = 0; i < ia->datasize; ++i) 4868 ia->data[i] = i * 1.234; 4869 4870 // Check named initializers. 4871 struct named_init ni = { 4872 .number = 34, 4873 .name = L"Test wide string", 4874 .average = 543.34343, 4875 }; 4876 4877 ni.number = 58; 4878 4879 int dynamic_array[ni.number]; 4880 dynamic_array[ni.number - 1] = 543; 4881 4882 // work around unused variable warnings 4883 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4884 || dynamic_array[ni.number - 1] != 543); 4885 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4891do 4892 CC="$ac_save_CC $ac_arg" 4893 if ac_fn_c_try_compile "$LINENO"; then : 4894 ac_cv_prog_cc_c99=$ac_arg 4895fi 4896rm -f core conftest.err conftest.$ac_objext 4897 test "x$ac_cv_prog_cc_c99" != "xno" && break 4898done 4899rm -f conftest.$ac_ext 4900CC=$ac_save_CC 4901 4902fi 4903# AC_CACHE_VAL 4904case "x$ac_cv_prog_cc_c99" in 4905 x) 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4907$as_echo "none needed" >&6; } ;; 4908 xno) 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4910$as_echo "unsupported" >&6; } ;; 4911 *) 4912 CC="$CC $ac_cv_prog_cc_c99" 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4914$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4915esac 4916if test "x$ac_cv_prog_cc_c99" != xno; then : 4917 4918fi 4919 4920 4921 4922 4923 4924 ansi= 4925 if test -z "$ansi"; then 4926 msg="for C compiler warning flags" 4927 else 4928 msg="for C compiler warning and ANSI conformance flags" 4929 fi 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4931$as_echo_n "checking $msg... " >&6; } 4932if ${vl_cv_prog_cc_warnings+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 4936 if test -n "$CC"; then 4937 cat > conftest.c <<EOF 4938int main(int argc, char **argv) { return 0; } 4939EOF 4940 4941 if test "$GCC" = "yes"; then 4942 if test -z "$ansi"; then 4943 vl_cv_prog_cc_warnings="-Wall -W" 4944 else 4945 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4946 fi 4947 4948 4949 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4950 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4951 test -f conftest.o; then 4952 if test -z "$ansi"; then 4953 vl_cv_prog_cc_warnings="-v" 4954 else 4955 vl_cv_prog_cc_warnings="-v -Xc" 4956 fi 4957 4958 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4959 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4960 test -f conftest.o; then 4961 if test -z "$ansi"; then 4962 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4963 else 4964 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4965 fi 4966 4967 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4968 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4969 test -f conftest.o; then 4970 if test -z "$ansi"; then 4971 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4972 else 4973 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4974 fi 4975 4976 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4977 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4978 test -f conftest.o; then 4979 if test -z "$ansi"; then 4980 vl_cv_prog_cc_warnings="-fullwarn" 4981 else 4982 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4983 fi 4984 4985 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4986 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4987 test -f conftest.o; then 4988 if test -z "$ansi"; then 4989 vl_cv_prog_cc_warnings="+w1" 4990 else 4991 vl_cv_prog_cc_warnings="+w1 -Aa" 4992 fi 4993 4994 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4995 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4996 test -f conftest.o; then 4997 if test -z "$ansi"; then 4998 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4999 else 5000 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 5001 fi 5002 5003 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 5004 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 5005 test -f conftest.o; then 5006 if test -z "$ansi"; then 5007 vl_cv_prog_cc_warnings="-h msglevel 2" 5008 else 5009 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 5010 fi 5011 5012 fi 5013 rm -f conftest.* 5014 fi 5015 if test -n "$vl_cv_prog_cc_warnings"; then 5016 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 5017 else 5018 vl_cv_prog_cc_warnings="unknown" 5019 fi 5020 5021fi 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 5023$as_echo "$vl_cv_prog_cc_warnings" >&6; } 5024 5025 5026 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5028$as_echo_n "checking whether ln -s works... " >&6; } 5029LN_S=$as_ln_s 5030if test "$LN_S" = "ln -s"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5032$as_echo "yes" >&6; } 5033else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5035$as_echo "no, using $LN_S" >&6; } 5036fi 5037 5038# Used only for validating the source distribution during distcheck 5039# Extract the first word of "cmake", so it can be a program name with args. 5040set dummy cmake; ac_word=$2 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5042$as_echo_n "checking for $ac_word... " >&6; } 5043if ${ac_cv_path_CMAKE+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 case $CMAKE in 5047 [\\/]* | ?:[\\/]*) 5048 ac_cv_path_CMAKE="$CMAKE" # Let the user override the test with a path. 5049 ;; 5050 *) 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052for as_dir in $PATH 5053do 5054 IFS=$as_save_IFS 5055 test -z "$as_dir" && as_dir=. 5056 for ac_exec_ext in '' $ac_executable_extensions; do 5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5058 ac_cv_path_CMAKE="$as_dir/$ac_word$ac_exec_ext" 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5060 break 2 5061 fi 5062done 5063 done 5064IFS=$as_save_IFS 5065 5066 ;; 5067esac 5068fi 5069CMAKE=$ac_cv_path_CMAKE 5070if test -n "$CMAKE"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5 5072$as_echo "$CMAKE" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5075$as_echo "no" >&6; } 5076fi 5077 5078 5079 5080 5081# Check if LD supports linker scripts, and define automake conditional 5082# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 5083# constrained to compilers using GNU ld on ELF systems or systems 5084# which provide an adequate emulation thereof. 5085# Check whether --enable-ld-version-script was given. 5086if test "${enable_ld_version_script+set}" = set; then : 5087 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 5088else 5089 have_ld_version_script=no 5090fi 5091 5092if test "$have_ld_version_script" != no; then 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 5094$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 5095 save_LDFLAGS="$LDFLAGS" 5096 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 5097 cat > conftest.map <<EOF 5098VERS_1 { 5099 global: sym; 5100}; 5101 5102VERS_2 { 5103 global: sym; 5104} VERS_1; 5105EOF 5106 5107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109 5110int 5111main () 5112{ 5113 5114 ; 5115 return 0; 5116} 5117_ACEOF 5118if ac_fn_c_try_link "$LINENO"; then : 5119 have_ld_version_script=yes 5120else 5121 have_ld_version_script=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext \ 5124 conftest$ac_exeext conftest.$ac_ext 5125 rm -f conftest.map 5126 LDFLAGS="$save_LDFLAGS" 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 5128$as_echo "$have_ld_version_script" >&6; } 5129fi 5130 if test "$have_ld_version_script" = "yes"; then 5131 HAVE_LD_VERSION_SCRIPT_TRUE= 5132 HAVE_LD_VERSION_SCRIPT_FALSE='#' 5133else 5134 HAVE_LD_VERSION_SCRIPT_TRUE='#' 5135 HAVE_LD_VERSION_SCRIPT_FALSE= 5136fi 5137 5138 5139 5140 5141 5142 5143case `pwd` in 5144 *\ * | *\ *) 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5146$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5147esac 5148 5149 5150 5151macro_version='2.4.6' 5152macro_revision='2.4.6' 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166ltmain=$ac_aux_dir/ltmain.sh 5167 5168# Backslashify metacharacters that are still active within 5169# double-quoted strings. 5170sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5171 5172# Same as above, but do not quote variable references. 5173double_quote_subst='s/\(["`\\]\)/\\\1/g' 5174 5175# Sed substitution to delay expansion of an escaped shell variable in a 5176# double_quote_subst'ed string. 5177delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5178 5179# Sed substitution to delay expansion of an escaped single quote. 5180delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5181 5182# Sed substitution to avoid accidental globbing in evaled expressions 5183no_glob_subst='s/\*/\\\*/g' 5184 5185ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5186ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5187ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5190$as_echo_n "checking how to print strings... " >&6; } 5191# Test print first, because it will be a builtin if present. 5192if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5194 ECHO='print -r --' 5195elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5196 ECHO='printf %s\n' 5197else 5198 # Use this function as a fallback that always works. 5199 func_fallback_echo () 5200 { 5201 eval 'cat <<_LTECHO_EOF 5202$1 5203_LTECHO_EOF' 5204 } 5205 ECHO='func_fallback_echo' 5206fi 5207 5208# func_echo_all arg... 5209# Invoke $ECHO with all args, space-separated. 5210func_echo_all () 5211{ 5212 $ECHO "" 5213} 5214 5215case $ECHO in 5216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5217$as_echo "printf" >&6; } ;; 5218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5219$as_echo "print -r" >&6; } ;; 5220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5221$as_echo "cat" >&6; } ;; 5222esac 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5238$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5239if ${ac_cv_path_SED+:} false; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5243 for ac_i in 1 2 3 4 5 6 7; do 5244 ac_script="$ac_script$as_nl$ac_script" 5245 done 5246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5247 { ac_script=; unset ac_script;} 5248 if test -z "$SED"; then 5249 ac_path_SED_found=false 5250 # Loop through the user's path and test for each of PROGNAME-LIST 5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252for as_dir in $PATH 5253do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_prog in sed gsed; do 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5259 as_fn_executable_p "$ac_path_SED" || continue 5260# Check for GNU ac_path_SED and select it if it is found. 5261 # Check for GNU $ac_path_SED 5262case `"$ac_path_SED" --version 2>&1` in 5263*GNU*) 5264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5265*) 5266 ac_count=0 5267 $as_echo_n 0123456789 >"conftest.in" 5268 while : 5269 do 5270 cat "conftest.in" "conftest.in" >"conftest.tmp" 5271 mv "conftest.tmp" "conftest.in" 5272 cp "conftest.in" "conftest.nl" 5273 $as_echo '' >> "conftest.nl" 5274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5276 as_fn_arith $ac_count + 1 && ac_count=$as_val 5277 if test $ac_count -gt ${ac_path_SED_max-0}; then 5278 # Best one so far, save it but keep looking for a better one 5279 ac_cv_path_SED="$ac_path_SED" 5280 ac_path_SED_max=$ac_count 5281 fi 5282 # 10*(2^10) chars as input seems more than enough 5283 test $ac_count -gt 10 && break 5284 done 5285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5286esac 5287 5288 $ac_path_SED_found && break 3 5289 done 5290 done 5291 done 5292IFS=$as_save_IFS 5293 if test -z "$ac_cv_path_SED"; then 5294 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5295 fi 5296else 5297 ac_cv_path_SED=$SED 5298fi 5299 5300fi 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5302$as_echo "$ac_cv_path_SED" >&6; } 5303 SED="$ac_cv_path_SED" 5304 rm -f conftest.sed 5305 5306test -z "$SED" && SED=sed 5307Xsed="$SED -e 1s/^X//" 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5320$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5321if ${ac_cv_path_GREP+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -z "$GREP"; then 5325 ac_path_GREP_found=false 5326 # Loop through the user's path and test for each of PROGNAME-LIST 5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5329do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_prog in grep ggrep; do 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5335 as_fn_executable_p "$ac_path_GREP" || continue 5336# Check for GNU ac_path_GREP and select it if it is found. 5337 # Check for GNU $ac_path_GREP 5338case `"$ac_path_GREP" --version 2>&1` in 5339*GNU*) 5340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5341*) 5342 ac_count=0 5343 $as_echo_n 0123456789 >"conftest.in" 5344 while : 5345 do 5346 cat "conftest.in" "conftest.in" >"conftest.tmp" 5347 mv "conftest.tmp" "conftest.in" 5348 cp "conftest.in" "conftest.nl" 5349 $as_echo 'GREP' >> "conftest.nl" 5350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5352 as_fn_arith $ac_count + 1 && ac_count=$as_val 5353 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5354 # Best one so far, save it but keep looking for a better one 5355 ac_cv_path_GREP="$ac_path_GREP" 5356 ac_path_GREP_max=$ac_count 5357 fi 5358 # 10*(2^10) chars as input seems more than enough 5359 test $ac_count -gt 10 && break 5360 done 5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5362esac 5363 5364 $ac_path_GREP_found && break 3 5365 done 5366 done 5367 done 5368IFS=$as_save_IFS 5369 if test -z "$ac_cv_path_GREP"; then 5370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5371 fi 5372else 5373 ac_cv_path_GREP=$GREP 5374fi 5375 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5378$as_echo "$ac_cv_path_GREP" >&6; } 5379 GREP="$ac_cv_path_GREP" 5380 5381 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5383$as_echo_n "checking for egrep... " >&6; } 5384if ${ac_cv_path_EGREP+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5388 then ac_cv_path_EGREP="$GREP -E" 5389 else 5390 if test -z "$EGREP"; then 5391 ac_path_EGREP_found=false 5392 # Loop through the user's path and test for each of PROGNAME-LIST 5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_prog in egrep; do 5399 for ac_exec_ext in '' $ac_executable_extensions; do 5400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5401 as_fn_executable_p "$ac_path_EGREP" || continue 5402# Check for GNU ac_path_EGREP and select it if it is found. 5403 # Check for GNU $ac_path_EGREP 5404case `"$ac_path_EGREP" --version 2>&1` in 5405*GNU*) 5406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5407*) 5408 ac_count=0 5409 $as_echo_n 0123456789 >"conftest.in" 5410 while : 5411 do 5412 cat "conftest.in" "conftest.in" >"conftest.tmp" 5413 mv "conftest.tmp" "conftest.in" 5414 cp "conftest.in" "conftest.nl" 5415 $as_echo 'EGREP' >> "conftest.nl" 5416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5418 as_fn_arith $ac_count + 1 && ac_count=$as_val 5419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5420 # Best one so far, save it but keep looking for a better one 5421 ac_cv_path_EGREP="$ac_path_EGREP" 5422 ac_path_EGREP_max=$ac_count 5423 fi 5424 # 10*(2^10) chars as input seems more than enough 5425 test $ac_count -gt 10 && break 5426 done 5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5428esac 5429 5430 $ac_path_EGREP_found && break 3 5431 done 5432 done 5433 done 5434IFS=$as_save_IFS 5435 if test -z "$ac_cv_path_EGREP"; then 5436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5437 fi 5438else 5439 ac_cv_path_EGREP=$EGREP 5440fi 5441 5442 fi 5443fi 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5445$as_echo "$ac_cv_path_EGREP" >&6; } 5446 EGREP="$ac_cv_path_EGREP" 5447 5448 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5450$as_echo_n "checking for fgrep... " >&6; } 5451if ${ac_cv_path_FGREP+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5455 then ac_cv_path_FGREP="$GREP -F" 5456 else 5457 if test -z "$FGREP"; then 5458 ac_path_FGREP_found=false 5459 # Loop through the user's path and test for each of PROGNAME-LIST 5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5462do 5463 IFS=$as_save_IFS 5464 test -z "$as_dir" && as_dir=. 5465 for ac_prog in fgrep; do 5466 for ac_exec_ext in '' $ac_executable_extensions; do 5467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5468 as_fn_executable_p "$ac_path_FGREP" || continue 5469# Check for GNU ac_path_FGREP and select it if it is found. 5470 # Check for GNU $ac_path_FGREP 5471case `"$ac_path_FGREP" --version 2>&1` in 5472*GNU*) 5473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5474*) 5475 ac_count=0 5476 $as_echo_n 0123456789 >"conftest.in" 5477 while : 5478 do 5479 cat "conftest.in" "conftest.in" >"conftest.tmp" 5480 mv "conftest.tmp" "conftest.in" 5481 cp "conftest.in" "conftest.nl" 5482 $as_echo 'FGREP' >> "conftest.nl" 5483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5485 as_fn_arith $ac_count + 1 && ac_count=$as_val 5486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5487 # Best one so far, save it but keep looking for a better one 5488 ac_cv_path_FGREP="$ac_path_FGREP" 5489 ac_path_FGREP_max=$ac_count 5490 fi 5491 # 10*(2^10) chars as input seems more than enough 5492 test $ac_count -gt 10 && break 5493 done 5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5495esac 5496 5497 $ac_path_FGREP_found && break 3 5498 done 5499 done 5500 done 5501IFS=$as_save_IFS 5502 if test -z "$ac_cv_path_FGREP"; then 5503 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5504 fi 5505else 5506 ac_cv_path_FGREP=$FGREP 5507fi 5508 5509 fi 5510fi 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5512$as_echo "$ac_cv_path_FGREP" >&6; } 5513 FGREP="$ac_cv_path_FGREP" 5514 5515 5516test -z "$GREP" && GREP=grep 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536# Check whether --with-gnu-ld was given. 5537if test "${with_gnu_ld+set}" = set; then : 5538 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5539else 5540 with_gnu_ld=no 5541fi 5542 5543ac_prog=ld 5544if test yes = "$GCC"; then 5545 # Check if gcc -print-prog-name=ld gives a path. 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5547$as_echo_n "checking for ld used by $CC... " >&6; } 5548 case $host in 5549 *-*-mingw*) 5550 # gcc leaves a trailing carriage return, which upsets mingw 5551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5552 *) 5553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5554 esac 5555 case $ac_prog in 5556 # Accept absolute paths. 5557 [\\/]* | ?:[\\/]*) 5558 re_direlt='/[^/][^/]*/\.\./' 5559 # Canonicalize the pathname of ld 5560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5563 done 5564 test -z "$LD" && LD=$ac_prog 5565 ;; 5566 "") 5567 # If it fails, then pretend we aren't using GCC. 5568 ac_prog=ld 5569 ;; 5570 *) 5571 # If it is relative, then search for the first ld in PATH. 5572 with_gnu_ld=unknown 5573 ;; 5574 esac 5575elif test yes = "$with_gnu_ld"; then 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5577$as_echo_n "checking for GNU ld... " >&6; } 5578else 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5580$as_echo_n "checking for non-GNU ld... " >&6; } 5581fi 5582if ${lt_cv_path_LD+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584else 5585 if test -z "$LD"; then 5586 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5587 for ac_dir in $PATH; do 5588 IFS=$lt_save_ifs 5589 test -z "$ac_dir" && ac_dir=. 5590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5591 lt_cv_path_LD=$ac_dir/$ac_prog 5592 # Check to see if the program is GNU ld. I'd rather use --version, 5593 # but apparently some variants of GNU ld only accept -v. 5594 # Break only if it was the GNU/non-GNU ld that we prefer. 5595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5596 *GNU* | *'with BFD'*) 5597 test no != "$with_gnu_ld" && break 5598 ;; 5599 *) 5600 test yes != "$with_gnu_ld" && break 5601 ;; 5602 esac 5603 fi 5604 done 5605 IFS=$lt_save_ifs 5606else 5607 lt_cv_path_LD=$LD # Let the user override the test with a path. 5608fi 5609fi 5610 5611LD=$lt_cv_path_LD 5612if test -n "$LD"; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5614$as_echo "$LD" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5617$as_echo "no" >&6; } 5618fi 5619test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5621$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5622if ${lt_cv_prog_gnu_ld+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5626case `$LD -v 2>&1 </dev/null` in 5627*GNU* | *'with BFD'*) 5628 lt_cv_prog_gnu_ld=yes 5629 ;; 5630*) 5631 lt_cv_prog_gnu_ld=no 5632 ;; 5633esac 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5636$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5637with_gnu_ld=$lt_cv_prog_gnu_ld 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5648$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5649if ${lt_cv_path_NM+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 if test -n "$NM"; then 5653 # Let the user override the test. 5654 lt_cv_path_NM=$NM 5655else 5656 lt_nm_to_check=${ac_tool_prefix}nm 5657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5658 lt_nm_to_check="$lt_nm_to_check nm" 5659 fi 5660 for lt_tmp_nm in $lt_nm_to_check; do 5661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5663 IFS=$lt_save_ifs 5664 test -z "$ac_dir" && ac_dir=. 5665 tmp_nm=$ac_dir/$lt_tmp_nm 5666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5667 # Check to see if the nm accepts a BSD-compat flag. 5668 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5669 # nm: unknown option "B" ignored 5670 # Tru64's nm complains that /dev/null is an invalid object file 5671 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5672 case $build_os in 5673 mingw*) lt_bad_file=conftest.nm/nofile ;; 5674 *) lt_bad_file=/dev/null ;; 5675 esac 5676 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5677 *$lt_bad_file* | *'Invalid file or object type'*) 5678 lt_cv_path_NM="$tmp_nm -B" 5679 break 2 5680 ;; 5681 *) 5682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5683 */dev/null*) 5684 lt_cv_path_NM="$tmp_nm -p" 5685 break 2 5686 ;; 5687 *) 5688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5689 continue # so that we can try to find one that supports BSD flags 5690 ;; 5691 esac 5692 ;; 5693 esac 5694 fi 5695 done 5696 IFS=$lt_save_ifs 5697 done 5698 : ${lt_cv_path_NM=no} 5699fi 5700fi 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5702$as_echo "$lt_cv_path_NM" >&6; } 5703if test no != "$lt_cv_path_NM"; then 5704 NM=$lt_cv_path_NM 5705else 5706 # Didn't find any BSD compatible name lister, look for dumpbin. 5707 if test -n "$DUMPBIN"; then : 5708 # Let the user override the test. 5709 else 5710 if test -n "$ac_tool_prefix"; then 5711 for ac_prog in dumpbin "link -dump" 5712 do 5713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5714set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5716$as_echo_n "checking for $ac_word... " >&6; } 5717if ${ac_cv_prog_DUMPBIN+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 if test -n "$DUMPBIN"; then 5721 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5722else 5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5730 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734done 5735 done 5736IFS=$as_save_IFS 5737 5738fi 5739fi 5740DUMPBIN=$ac_cv_prog_DUMPBIN 5741if test -n "$DUMPBIN"; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5743$as_echo "$DUMPBIN" >&6; } 5744else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746$as_echo "no" >&6; } 5747fi 5748 5749 5750 test -n "$DUMPBIN" && break 5751 done 5752fi 5753if test -z "$DUMPBIN"; then 5754 ac_ct_DUMPBIN=$DUMPBIN 5755 for ac_prog in dumpbin "link -dump" 5756do 5757 # Extract the first word of "$ac_prog", so it can be a program name with args. 5758set dummy $ac_prog; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$ac_ct_DUMPBIN"; then 5765 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5785if test -n "$ac_ct_DUMPBIN"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5787$as_echo "$ac_ct_DUMPBIN" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794 test -n "$ac_ct_DUMPBIN" && break 5795done 5796 5797 if test "x$ac_ct_DUMPBIN" = x; then 5798 DUMPBIN=":" 5799 else 5800 case $cross_compiling:$ac_tool_warned in 5801yes:) 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5804ac_tool_warned=yes ;; 5805esac 5806 DUMPBIN=$ac_ct_DUMPBIN 5807 fi 5808fi 5809 5810 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5811 *COFF*) 5812 DUMPBIN="$DUMPBIN -symbols -headers" 5813 ;; 5814 *) 5815 DUMPBIN=: 5816 ;; 5817 esac 5818 fi 5819 5820 if test : != "$DUMPBIN"; then 5821 NM=$DUMPBIN 5822 fi 5823fi 5824test -z "$NM" && NM=nm 5825 5826 5827 5828 5829 5830 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5832$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5833if ${lt_cv_nm_interface+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 lt_cv_nm_interface="BSD nm" 5837 echo "int some_variable = 0;" > conftest.$ac_ext 5838 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5839 (eval "$ac_compile" 2>conftest.err) 5840 cat conftest.err >&5 5841 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5843 cat conftest.err >&5 5844 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5845 cat conftest.out >&5 5846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5847 lt_cv_nm_interface="MS dumpbin" 5848 fi 5849 rm -f conftest* 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5852$as_echo "$lt_cv_nm_interface" >&6; } 5853 5854# find the maximum length of command line arguments 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5856$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5857if ${lt_cv_sys_max_cmd_len+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 i=0 5861 teststring=ABCD 5862 5863 case $build_os in 5864 msdosdjgpp*) 5865 # On DJGPP, this test can blow up pretty badly due to problems in libc 5866 # (any single argument exceeding 2000 bytes causes a buffer overrun 5867 # during glob expansion). Even if it were fixed, the result of this 5868 # check would be larger than it should be. 5869 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5870 ;; 5871 5872 gnu*) 5873 # Under GNU Hurd, this test is not required because there is 5874 # no limit to the length of command line arguments. 5875 # Libtool will interpret -1 as no limit whatsoever 5876 lt_cv_sys_max_cmd_len=-1; 5877 ;; 5878 5879 cygwin* | mingw* | cegcc*) 5880 # On Win9x/ME, this test blows up -- it succeeds, but takes 5881 # about 5 minutes as the teststring grows exponentially. 5882 # Worse, since 9x/ME are not pre-emptively multitasking, 5883 # you end up with a "frozen" computer, even though with patience 5884 # the test eventually succeeds (with a max line length of 256k). 5885 # Instead, let's just punt: use the minimum linelength reported by 5886 # all of the supported platforms: 8192 (on NT/2K/XP). 5887 lt_cv_sys_max_cmd_len=8192; 5888 ;; 5889 5890 mint*) 5891 # On MiNT this can take a long time and run out of memory. 5892 lt_cv_sys_max_cmd_len=8192; 5893 ;; 5894 5895 amigaos*) 5896 # On AmigaOS with pdksh, this test takes hours, literally. 5897 # So we just punt and use a minimum line length of 8192. 5898 lt_cv_sys_max_cmd_len=8192; 5899 ;; 5900 5901 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5902 # This has been around since 386BSD, at least. Likely further. 5903 if test -x /sbin/sysctl; then 5904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5905 elif test -x /usr/sbin/sysctl; then 5906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5907 else 5908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5909 fi 5910 # And add a safety zone 5911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5913 ;; 5914 5915 interix*) 5916 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5917 lt_cv_sys_max_cmd_len=196608 5918 ;; 5919 5920 os2*) 5921 # The test takes a long time on OS/2. 5922 lt_cv_sys_max_cmd_len=8192 5923 ;; 5924 5925 osf*) 5926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5928 # nice to cause kernel panics so lets avoid the loop below. 5929 # First set a reasonable default. 5930 lt_cv_sys_max_cmd_len=16384 5931 # 5932 if test -x /sbin/sysconfig; then 5933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5934 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5935 esac 5936 fi 5937 ;; 5938 sco3.2v5*) 5939 lt_cv_sys_max_cmd_len=102400 5940 ;; 5941 sysv5* | sco5v6* | sysv4.2uw2*) 5942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5943 if test -n "$kargmax"; then 5944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5945 else 5946 lt_cv_sys_max_cmd_len=32768 5947 fi 5948 ;; 5949 *) 5950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5951 if test -n "$lt_cv_sys_max_cmd_len" && \ 5952 test undefined != "$lt_cv_sys_max_cmd_len"; then 5953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5955 else 5956 # Make teststring a little bigger before we do anything with it. 5957 # a 1K string should be a reasonable start. 5958 for i in 1 2 3 4 5 6 7 8; do 5959 teststring=$teststring$teststring 5960 done 5961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5962 # If test is not a shell built-in, we'll probably end up computing a 5963 # maximum length that is only half of the actual maximum length, but 5964 # we can't tell. 5965 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5966 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5967 test 17 != "$i" # 1/2 MB should be enough 5968 do 5969 i=`expr $i + 1` 5970 teststring=$teststring$teststring 5971 done 5972 # Only check the string length outside the loop. 5973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5974 teststring= 5975 # Add a significant safety factor because C++ compilers can tack on 5976 # massive amounts of additional arguments before passing them to the 5977 # linker. It appears as though 1/2 is a usable value. 5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5979 fi 5980 ;; 5981 esac 5982 5983fi 5984 5985if test -n "$lt_cv_sys_max_cmd_len"; then 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5987$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5988else 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5990$as_echo "none" >&6; } 5991fi 5992max_cmd_len=$lt_cv_sys_max_cmd_len 5993 5994 5995 5996 5997 5998 5999: ${CP="cp -f"} 6000: ${MV="mv -f"} 6001: ${RM="rm -f"} 6002 6003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6004 lt_unset=unset 6005else 6006 lt_unset=false 6007fi 6008 6009 6010 6011 6012 6013# test EBCDIC or ASCII 6014case `echo X|tr X '\101'` in 6015 A) # ASCII based system 6016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6017 lt_SP2NL='tr \040 \012' 6018 lt_NL2SP='tr \015\012 \040\040' 6019 ;; 6020 *) # EBCDIC based system 6021 lt_SP2NL='tr \100 \n' 6022 lt_NL2SP='tr \r\n \100\100' 6023 ;; 6024esac 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6035$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6036if ${lt_cv_to_host_file_cmd+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038else 6039 case $host in 6040 *-*-mingw* ) 6041 case $build in 6042 *-*-mingw* ) # actually msys 6043 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6044 ;; 6045 *-*-cygwin* ) 6046 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6047 ;; 6048 * ) # otherwise, assume *nix 6049 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6050 ;; 6051 esac 6052 ;; 6053 *-*-cygwin* ) 6054 case $build in 6055 *-*-mingw* ) # actually msys 6056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6057 ;; 6058 *-*-cygwin* ) 6059 lt_cv_to_host_file_cmd=func_convert_file_noop 6060 ;; 6061 * ) # otherwise, assume *nix 6062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6063 ;; 6064 esac 6065 ;; 6066 * ) # unhandled hosts (and "normal" native builds) 6067 lt_cv_to_host_file_cmd=func_convert_file_noop 6068 ;; 6069esac 6070 6071fi 6072 6073to_host_file_cmd=$lt_cv_to_host_file_cmd 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6075$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6076 6077 6078 6079 6080 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6082$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6083if ${lt_cv_to_tool_file_cmd+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 #assume ordinary cross tools, or native build. 6087lt_cv_to_tool_file_cmd=func_convert_file_noop 6088case $host in 6089 *-*-mingw* ) 6090 case $build in 6091 *-*-mingw* ) # actually msys 6092 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6093 ;; 6094 esac 6095 ;; 6096esac 6097 6098fi 6099 6100to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6102$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6103 6104 6105 6106 6107 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6109$as_echo_n "checking for $LD option to reload object files... " >&6; } 6110if ${lt_cv_ld_reload_flag+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 lt_cv_ld_reload_flag='-r' 6114fi 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6116$as_echo "$lt_cv_ld_reload_flag" >&6; } 6117reload_flag=$lt_cv_ld_reload_flag 6118case $reload_flag in 6119"" | " "*) ;; 6120*) reload_flag=" $reload_flag" ;; 6121esac 6122reload_cmds='$LD$reload_flag -o $output$reload_objs' 6123case $host_os in 6124 cygwin* | mingw* | pw32* | cegcc*) 6125 if test yes != "$GCC"; then 6126 reload_cmds=false 6127 fi 6128 ;; 6129 darwin*) 6130 if test yes = "$GCC"; then 6131 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6132 else 6133 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6134 fi 6135 ;; 6136esac 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6148set dummy ${ac_tool_prefix}objdump; ac_word=$2 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if ${ac_cv_prog_OBJDUMP+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$OBJDUMP"; then 6155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174OBJDUMP=$ac_cv_prog_OBJDUMP 6175if test -n "$OBJDUMP"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6177$as_echo "$OBJDUMP" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184fi 6185if test -z "$ac_cv_prog_OBJDUMP"; then 6186 ac_ct_OBJDUMP=$OBJDUMP 6187 # Extract the first word of "objdump", so it can be a program name with args. 6188set dummy objdump; ac_word=$2 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190$as_echo_n "checking for $ac_word... " >&6; } 6191if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193else 6194 if test -n "$ac_ct_OBJDUMP"; then 6195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6196else 6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6204 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208done 6209 done 6210IFS=$as_save_IFS 6211 6212fi 6213fi 6214ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6215if test -n "$ac_ct_OBJDUMP"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6217$as_echo "$ac_ct_OBJDUMP" >&6; } 6218else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220$as_echo "no" >&6; } 6221fi 6222 6223 if test "x$ac_ct_OBJDUMP" = x; then 6224 OBJDUMP="false" 6225 else 6226 case $cross_compiling:$ac_tool_warned in 6227yes:) 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6230ac_tool_warned=yes ;; 6231esac 6232 OBJDUMP=$ac_ct_OBJDUMP 6233 fi 6234else 6235 OBJDUMP="$ac_cv_prog_OBJDUMP" 6236fi 6237 6238test -z "$OBJDUMP" && OBJDUMP=objdump 6239 6240 6241 6242 6243 6244 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6246$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6247if ${lt_cv_deplibs_check_method+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 lt_cv_file_magic_cmd='$MAGIC_CMD' 6251lt_cv_file_magic_test_file= 6252lt_cv_deplibs_check_method='unknown' 6253# Need to set the preceding variable on all platforms that support 6254# interlibrary dependencies. 6255# 'none' -- dependencies not supported. 6256# 'unknown' -- same as none, but documents that we really don't know. 6257# 'pass_all' -- all dependencies passed with no checks. 6258# 'test_compile' -- check by making test program. 6259# 'file_magic [[regex]]' -- check by looking for files in library path 6260# that responds to the $file_magic_cmd with a given extended regex. 6261# If you have 'file' or equivalent on your system and you're not sure 6262# whether 'pass_all' will *always* work, you probably want this one. 6263 6264case $host_os in 6265aix[4-9]*) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269beos*) 6270 lt_cv_deplibs_check_method=pass_all 6271 ;; 6272 6273bsdi[45]*) 6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6275 lt_cv_file_magic_cmd='/usr/bin/file -L' 6276 lt_cv_file_magic_test_file=/shlib/libc.so 6277 ;; 6278 6279cygwin*) 6280 # func_win32_libid is a shell function defined in ltmain.sh 6281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6282 lt_cv_file_magic_cmd='func_win32_libid' 6283 ;; 6284 6285mingw* | pw32*) 6286 # Base MSYS/MinGW do not provide the 'file' command needed by 6287 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6288 # unless we find 'file', for example because we are cross-compiling. 6289 if ( file / ) >/dev/null 2>&1; then 6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6291 lt_cv_file_magic_cmd='func_win32_libid' 6292 else 6293 # Keep this pattern in sync with the one in func_win32_libid. 6294 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6295 lt_cv_file_magic_cmd='$OBJDUMP -f' 6296 fi 6297 ;; 6298 6299cegcc*) 6300 # use the weaker test based on 'objdump'. See mingw*. 6301 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6302 lt_cv_file_magic_cmd='$OBJDUMP -f' 6303 ;; 6304 6305darwin* | rhapsody*) 6306 lt_cv_deplibs_check_method=pass_all 6307 ;; 6308 6309freebsd* | dragonfly*) 6310 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6311 case $host_cpu in 6312 i*86 ) 6313 # Not sure whether the presence of OpenBSD here was a mistake. 6314 # Let's accept both of them until this is cleared up. 6315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6316 lt_cv_file_magic_cmd=/usr/bin/file 6317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6318 ;; 6319 esac 6320 else 6321 lt_cv_deplibs_check_method=pass_all 6322 fi 6323 ;; 6324 6325haiku*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329hpux10.20* | hpux11*) 6330 lt_cv_file_magic_cmd=/usr/bin/file 6331 case $host_cpu in 6332 ia64*) 6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6335 ;; 6336 hppa*64*) 6337 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]' 6338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6339 ;; 6340 *) 6341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6342 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6343 ;; 6344 esac 6345 ;; 6346 6347interix[3-9]*) 6348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6350 ;; 6351 6352irix5* | irix6* | nonstopux*) 6353 case $LD in 6354 *-32|*"-32 ") libmagic=32-bit;; 6355 *-n32|*"-n32 ") libmagic=N32;; 6356 *-64|*"-64 ") libmagic=64-bit;; 6357 *) libmagic=never-match;; 6358 esac 6359 lt_cv_deplibs_check_method=pass_all 6360 ;; 6361 6362# This must be glibc/ELF. 6363linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6364 lt_cv_deplibs_check_method=pass_all 6365 ;; 6366 6367netbsd* | netbsdelf*-gnu) 6368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6370 else 6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6372 fi 6373 ;; 6374 6375newos6*) 6376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6377 lt_cv_file_magic_cmd=/usr/bin/file 6378 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6379 ;; 6380 6381*nto* | *qnx*) 6382 lt_cv_deplibs_check_method=pass_all 6383 ;; 6384 6385openbsd* | bitrig*) 6386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6388 else 6389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6390 fi 6391 ;; 6392 6393osf3* | osf4* | osf5*) 6394 lt_cv_deplibs_check_method=pass_all 6395 ;; 6396 6397rdos*) 6398 lt_cv_deplibs_check_method=pass_all 6399 ;; 6400 6401solaris*) 6402 lt_cv_deplibs_check_method=pass_all 6403 ;; 6404 6405sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409sysv4 | sysv4.3*) 6410 case $host_vendor in 6411 motorola) 6412 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]' 6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6414 ;; 6415 ncr) 6416 lt_cv_deplibs_check_method=pass_all 6417 ;; 6418 sequent) 6419 lt_cv_file_magic_cmd='/bin/file' 6420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6421 ;; 6422 sni) 6423 lt_cv_file_magic_cmd='/bin/file' 6424 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6425 lt_cv_file_magic_test_file=/lib/libc.so 6426 ;; 6427 siemens) 6428 lt_cv_deplibs_check_method=pass_all 6429 ;; 6430 pc) 6431 lt_cv_deplibs_check_method=pass_all 6432 ;; 6433 esac 6434 ;; 6435 6436tpf*) 6437 lt_cv_deplibs_check_method=pass_all 6438 ;; 6439os2*) 6440 lt_cv_deplibs_check_method=pass_all 6441 ;; 6442esac 6443 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6446$as_echo "$lt_cv_deplibs_check_method" >&6; } 6447 6448file_magic_glob= 6449want_nocaseglob=no 6450if test "$build" = "$host"; then 6451 case $host_os in 6452 mingw* | pw32*) 6453 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6454 want_nocaseglob=yes 6455 else 6456 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6457 fi 6458 ;; 6459 esac 6460fi 6461 6462file_magic_cmd=$lt_cv_file_magic_cmd 6463deplibs_check_method=$lt_cv_deplibs_check_method 6464test -z "$deplibs_check_method" && deplibs_check_method=unknown 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487if test -n "$ac_tool_prefix"; then 6488 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6489set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6491$as_echo_n "checking for $ac_word... " >&6; } 6492if ${ac_cv_prog_DLLTOOL+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 if test -n "$DLLTOOL"; then 6496 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6497else 6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499for as_dir in $PATH 6500do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6505 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509done 6510 done 6511IFS=$as_save_IFS 6512 6513fi 6514fi 6515DLLTOOL=$ac_cv_prog_DLLTOOL 6516if test -n "$DLLTOOL"; then 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6518$as_echo "$DLLTOOL" >&6; } 6519else 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6521$as_echo "no" >&6; } 6522fi 6523 6524 6525fi 6526if test -z "$ac_cv_prog_DLLTOOL"; then 6527 ac_ct_DLLTOOL=$DLLTOOL 6528 # Extract the first word of "dlltool", so it can be a program name with args. 6529set dummy dlltool; ac_word=$2 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531$as_echo_n "checking for $ac_word... " >&6; } 6532if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 if test -n "$ac_ct_DLLTOOL"; then 6536 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6537else 6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6545 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549done 6550 done 6551IFS=$as_save_IFS 6552 6553fi 6554fi 6555ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6556if test -n "$ac_ct_DLLTOOL"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6558$as_echo "$ac_ct_DLLTOOL" >&6; } 6559else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561$as_echo "no" >&6; } 6562fi 6563 6564 if test "x$ac_ct_DLLTOOL" = x; then 6565 DLLTOOL="false" 6566 else 6567 case $cross_compiling:$ac_tool_warned in 6568yes:) 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6571ac_tool_warned=yes ;; 6572esac 6573 DLLTOOL=$ac_ct_DLLTOOL 6574 fi 6575else 6576 DLLTOOL="$ac_cv_prog_DLLTOOL" 6577fi 6578 6579test -z "$DLLTOOL" && DLLTOOL=dlltool 6580 6581 6582 6583 6584 6585 6586 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6588$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6589if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 lt_cv_sharedlib_from_linklib_cmd='unknown' 6593 6594case $host_os in 6595cygwin* | mingw* | pw32* | cegcc*) 6596 # two different shell functions defined in ltmain.sh; 6597 # decide which one to use based on capabilities of $DLLTOOL 6598 case `$DLLTOOL --help 2>&1` in 6599 *--identify-strict*) 6600 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6601 ;; 6602 *) 6603 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6604 ;; 6605 esac 6606 ;; 6607*) 6608 # fallback: assume linklib IS sharedlib 6609 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6610 ;; 6611esac 6612 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6615$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6616sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6617test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6618 6619 6620 6621 6622 6623 6624 6625if test -n "$ac_tool_prefix"; then 6626 for ac_prog in ar 6627 do 6628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6631$as_echo_n "checking for $ac_word... " >&6; } 6632if ${ac_cv_prog_AR+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 if test -n "$AR"; then 6636 ac_cv_prog_AR="$AR" # Let the user override the test. 6637else 6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6639for as_dir in $PATH 6640do 6641 IFS=$as_save_IFS 6642 test -z "$as_dir" && as_dir=. 6643 for ac_exec_ext in '' $ac_executable_extensions; do 6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6645 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6647 break 2 6648 fi 6649done 6650 done 6651IFS=$as_save_IFS 6652 6653fi 6654fi 6655AR=$ac_cv_prog_AR 6656if test -n "$AR"; then 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6658$as_echo "$AR" >&6; } 6659else 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6661$as_echo "no" >&6; } 6662fi 6663 6664 6665 test -n "$AR" && break 6666 done 6667fi 6668if test -z "$AR"; then 6669 ac_ct_AR=$AR 6670 for ac_prog in ar 6671do 6672 # Extract the first word of "$ac_prog", so it can be a program name with args. 6673set dummy $ac_prog; ac_word=$2 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6675$as_echo_n "checking for $ac_word... " >&6; } 6676if ${ac_cv_prog_ac_ct_AR+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 if test -n "$ac_ct_AR"; then 6680 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6689 ac_cv_prog_ac_ct_AR="$ac_prog" 6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693done 6694 done 6695IFS=$as_save_IFS 6696 6697fi 6698fi 6699ac_ct_AR=$ac_cv_prog_ac_ct_AR 6700if test -n "$ac_ct_AR"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6702$as_echo "$ac_ct_AR" >&6; } 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; } 6706fi 6707 6708 6709 test -n "$ac_ct_AR" && break 6710done 6711 6712 if test "x$ac_ct_AR" = x; then 6713 AR="false" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 AR=$ac_ct_AR 6722 fi 6723fi 6724 6725: ${AR=ar} 6726: ${AR_FLAGS=cr} 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6739$as_echo_n "checking for archiver @FILE support... " >&6; } 6740if ${lt_cv_ar_at_file+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 lt_cv_ar_at_file=no 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746 6747int 6748main () 6749{ 6750 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO"; then : 6756 echo conftest.$ac_objext > conftest.lst 6757 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6759 (eval $lt_ar_try) 2>&5 6760 ac_status=$? 6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6762 test $ac_status = 0; } 6763 if test 0 -eq "$ac_status"; then 6764 # Ensure the archiver fails upon bogus file names. 6765 rm -f conftest.$ac_objext libconftest.a 6766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6767 (eval $lt_ar_try) 2>&5 6768 ac_status=$? 6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6770 test $ac_status = 0; } 6771 if test 0 -ne "$ac_status"; then 6772 lt_cv_ar_at_file=@ 6773 fi 6774 fi 6775 rm -f conftest.* libconftest.a 6776 6777fi 6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779 6780fi 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6782$as_echo "$lt_cv_ar_at_file" >&6; } 6783 6784if test no = "$lt_cv_ar_at_file"; then 6785 archiver_list_spec= 6786else 6787 archiver_list_spec=$lt_cv_ar_at_file 6788fi 6789 6790 6791 6792 6793 6794 6795 6796if test -n "$ac_tool_prefix"; then 6797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6798set dummy ${ac_tool_prefix}strip; ac_word=$2 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6800$as_echo_n "checking for $ac_word... " >&6; } 6801if ${ac_cv_prog_STRIP+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 if test -n "$STRIP"; then 6805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6806else 6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6814 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822fi 6823fi 6824STRIP=$ac_cv_prog_STRIP 6825if test -n "$STRIP"; then 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6827$as_echo "$STRIP" >&6; } 6828else 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6830$as_echo "no" >&6; } 6831fi 6832 6833 6834fi 6835if test -z "$ac_cv_prog_STRIP"; then 6836 ac_ct_STRIP=$STRIP 6837 # Extract the first word of "strip", so it can be a program name with args. 6838set dummy strip; ac_word=$2 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840$as_echo_n "checking for $ac_word... " >&6; } 6841if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 if test -n "$ac_ct_STRIP"; then 6845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6846else 6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848for as_dir in $PATH 6849do 6850 IFS=$as_save_IFS 6851 test -z "$as_dir" && as_dir=. 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6854 ac_cv_prog_ac_ct_STRIP="strip" 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6856 break 2 6857 fi 6858done 6859 done 6860IFS=$as_save_IFS 6861 6862fi 6863fi 6864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6865if test -n "$ac_ct_STRIP"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6867$as_echo "$ac_ct_STRIP" >&6; } 6868else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870$as_echo "no" >&6; } 6871fi 6872 6873 if test "x$ac_ct_STRIP" = x; then 6874 STRIP=":" 6875 else 6876 case $cross_compiling:$ac_tool_warned in 6877yes:) 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6880ac_tool_warned=yes ;; 6881esac 6882 STRIP=$ac_ct_STRIP 6883 fi 6884else 6885 STRIP="$ac_cv_prog_STRIP" 6886fi 6887 6888test -z "$STRIP" && STRIP=: 6889 6890 6891 6892 6893 6894 6895if test -n "$ac_tool_prefix"; then 6896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6897set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6899$as_echo_n "checking for $ac_word... " >&6; } 6900if ${ac_cv_prog_RANLIB+:} false; then : 6901 $as_echo_n "(cached) " >&6 6902else 6903 if test -n "$RANLIB"; then 6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6905else 6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907for as_dir in $PATH 6908do 6909 IFS=$as_save_IFS 6910 test -z "$as_dir" && as_dir=. 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917done 6918 done 6919IFS=$as_save_IFS 6920 6921fi 6922fi 6923RANLIB=$ac_cv_prog_RANLIB 6924if test -n "$RANLIB"; then 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6926$as_echo "$RANLIB" >&6; } 6927else 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6929$as_echo "no" >&6; } 6930fi 6931 6932 6933fi 6934if test -z "$ac_cv_prog_RANLIB"; then 6935 ac_ct_RANLIB=$RANLIB 6936 # Extract the first word of "ranlib", so it can be a program name with args. 6937set dummy ranlib; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$ac_ct_RANLIB"; then 6944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953 ac_cv_prog_ac_ct_RANLIB="ranlib" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6964if test -n "$ac_ct_RANLIB"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6966$as_echo "$ac_ct_RANLIB" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 if test "x$ac_ct_RANLIB" = x; then 6973 RANLIB=":" 6974 else 6975 case $cross_compiling:$ac_tool_warned in 6976yes:) 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6979ac_tool_warned=yes ;; 6980esac 6981 RANLIB=$ac_ct_RANLIB 6982 fi 6983else 6984 RANLIB="$ac_cv_prog_RANLIB" 6985fi 6986 6987test -z "$RANLIB" && RANLIB=: 6988 6989 6990 6991 6992 6993 6994# Determine commands to create old-style static archives. 6995old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6996old_postinstall_cmds='chmod 644 $oldlib' 6997old_postuninstall_cmds= 6998 6999if test -n "$RANLIB"; then 7000 case $host_os in 7001 bitrig* | openbsd*) 7002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7003 ;; 7004 *) 7005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7006 ;; 7007 esac 7008 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7009fi 7010 7011case $host_os in 7012 darwin*) 7013 lock_old_archive_extraction=yes ;; 7014 *) 7015 lock_old_archive_extraction=no ;; 7016esac 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056# If no C compiler was specified, use CC. 7057LTCC=${LTCC-"$CC"} 7058 7059# If no C compiler flags were specified, use CFLAGS. 7060LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7061 7062# Allow CC to be a program name with arguments. 7063compiler=$CC 7064 7065 7066# Check for command to grab the raw symbol name followed by C symbol from nm. 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7068$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7069if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 7073# These are sane defaults that work on at least a few old systems. 7074# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7075 7076# Character class describing NM global symbol codes. 7077symcode='[BCDEGRST]' 7078 7079# Regexp to match symbols that can be accessed directly from C. 7080sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7081 7082# Define system-specific variables. 7083case $host_os in 7084aix*) 7085 symcode='[BCDT]' 7086 ;; 7087cygwin* | mingw* | pw32* | cegcc*) 7088 symcode='[ABCDGISTW]' 7089 ;; 7090hpux*) 7091 if test ia64 = "$host_cpu"; then 7092 symcode='[ABCDEGRST]' 7093 fi 7094 ;; 7095irix* | nonstopux*) 7096 symcode='[BCDEGRST]' 7097 ;; 7098osf*) 7099 symcode='[BCDEGQRST]' 7100 ;; 7101solaris*) 7102 symcode='[BDRT]' 7103 ;; 7104sco3.2v5*) 7105 symcode='[DT]' 7106 ;; 7107sysv4.2uw2*) 7108 symcode='[DT]' 7109 ;; 7110sysv5* | sco5v6* | unixware* | OpenUNIX*) 7111 symcode='[ABDT]' 7112 ;; 7113sysv4) 7114 symcode='[DFNSTU]' 7115 ;; 7116esac 7117 7118# If we're using GNU nm, then use its standard symbol codes. 7119case `$NM -V 2>&1` in 7120*GNU* | *'with BFD'*) 7121 symcode='[ABCDGIRSTW]' ;; 7122esac 7123 7124if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7125 # Gets list of data symbols to import. 7126 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7127 # Adjust the below global symbol transforms to fixup imported variables. 7128 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7129 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7130 lt_c_name_lib_hook="\ 7131 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7132 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7133else 7134 # Disable hooks by default. 7135 lt_cv_sys_global_symbol_to_import= 7136 lt_cdecl_hook= 7137 lt_c_name_hook= 7138 lt_c_name_lib_hook= 7139fi 7140 7141# Transform an extracted symbol line into a proper C declaration. 7142# Some systems (esp. on ia64) link data and code symbols differently, 7143# so use this general approach. 7144lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7145$lt_cdecl_hook\ 7146" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7147" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7148 7149# Transform an extracted symbol line into symbol name and symbol address 7150lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7151$lt_c_name_hook\ 7152" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7153" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7154 7155# Transform an extracted symbol line into symbol name with lib prefix and 7156# symbol address. 7157lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7158$lt_c_name_lib_hook\ 7159" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7160" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7161" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7162 7163# Handle CRLF in mingw tool chain 7164opt_cr= 7165case $build_os in 7166mingw*) 7167 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7168 ;; 7169esac 7170 7171# Try without a prefix underscore, then with it. 7172for ac_symprfx in "" "_"; do 7173 7174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7175 symxfrm="\\1 $ac_symprfx\\2 \\2" 7176 7177 # Write the raw and C identifiers. 7178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7179 # Fake it for dumpbin and say T for any non-static function, 7180 # D for any global variable and I for any imported variable. 7181 # Also find C++ and __fastcall symbols from MSVC++, 7182 # which start with @ or ?. 7183 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7184" {last_section=section; section=\$ 3};"\ 7185" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7186" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7187" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7188" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7189" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7190" \$ 0!~/External *\|/{next};"\ 7191" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7192" {if(hide[section]) next};"\ 7193" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7194" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7195" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7196" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7197" ' prfx=^$ac_symprfx" 7198 else 7199 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7200 fi 7201 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7202 7203 # Check to see that the pipe works correctly. 7204 pipe_works=no 7205 7206 rm -f conftest* 7207 cat > conftest.$ac_ext <<_LT_EOF 7208#ifdef __cplusplus 7209extern "C" { 7210#endif 7211char nm_test_var; 7212void nm_test_func(void); 7213void nm_test_func(void){} 7214#ifdef __cplusplus 7215} 7216#endif 7217int main(){nm_test_var='a';nm_test_func();return(0);} 7218_LT_EOF 7219 7220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7221 (eval $ac_compile) 2>&5 7222 ac_status=$? 7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7224 test $ac_status = 0; }; then 7225 # Now try to grab the symbols. 7226 nlist=conftest.nm 7227 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7228 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7229 # Try sorting and uniquifying the output. 7230 if sort "$nlist" | uniq > "$nlist"T; then 7231 mv -f "$nlist"T "$nlist" 7232 else 7233 rm -f "$nlist"T 7234 fi 7235 7236 # Make sure that we snagged all the symbols we need. 7237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7239 cat <<_LT_EOF > conftest.$ac_ext 7240/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7241#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7242/* DATA imports from DLLs on WIN32 can't be const, because runtime 7243 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7244# define LT_DLSYM_CONST 7245#elif defined __osf__ 7246/* This system does not cope well with relocations in const data. */ 7247# define LT_DLSYM_CONST 7248#else 7249# define LT_DLSYM_CONST const 7250#endif 7251 7252#ifdef __cplusplus 7253extern "C" { 7254#endif 7255 7256_LT_EOF 7257 # Now generate the symbol file. 7258 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7259 7260 cat <<_LT_EOF >> conftest.$ac_ext 7261 7262/* The mapping between symbol names and symbols. */ 7263LT_DLSYM_CONST struct { 7264 const char *name; 7265 void *address; 7266} 7267lt__PROGRAM__LTX_preloaded_symbols[] = 7268{ 7269 { "@PROGRAM@", (void *) 0 }, 7270_LT_EOF 7271 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7272 cat <<\_LT_EOF >> conftest.$ac_ext 7273 {0, (void *) 0} 7274}; 7275 7276/* This works around a problem in FreeBSD linker */ 7277#ifdef FREEBSD_WORKAROUND 7278static const void *lt_preloaded_setup() { 7279 return lt__PROGRAM__LTX_preloaded_symbols; 7280} 7281#endif 7282 7283#ifdef __cplusplus 7284} 7285#endif 7286_LT_EOF 7287 # Now try linking the two files. 7288 mv conftest.$ac_objext conftstm.$ac_objext 7289 lt_globsym_save_LIBS=$LIBS 7290 lt_globsym_save_CFLAGS=$CFLAGS 7291 LIBS=conftstm.$ac_objext 7292 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7294 (eval $ac_link) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7298 pipe_works=yes 7299 fi 7300 LIBS=$lt_globsym_save_LIBS 7301 CFLAGS=$lt_globsym_save_CFLAGS 7302 else 7303 echo "cannot find nm_test_func in $nlist" >&5 7304 fi 7305 else 7306 echo "cannot find nm_test_var in $nlist" >&5 7307 fi 7308 else 7309 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7310 fi 7311 else 7312 echo "$progname: failed program was:" >&5 7313 cat conftest.$ac_ext >&5 7314 fi 7315 rm -rf conftest* conftst* 7316 7317 # Do not use the global_symbol_pipe unless it works. 7318 if test yes = "$pipe_works"; then 7319 break 7320 else 7321 lt_cv_sys_global_symbol_pipe= 7322 fi 7323done 7324 7325fi 7326 7327if test -z "$lt_cv_sys_global_symbol_pipe"; then 7328 lt_cv_sys_global_symbol_to_cdecl= 7329fi 7330if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7332$as_echo "failed" >&6; } 7333else 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7335$as_echo "ok" >&6; } 7336fi 7337 7338# Response file support. 7339if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7340 nm_file_list_spec='@' 7341elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7342 nm_file_list_spec='@' 7343fi 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7382$as_echo_n "checking for sysroot... " >&6; } 7383 7384# Check whether --with-sysroot was given. 7385if test "${with_sysroot+set}" = set; then : 7386 withval=$with_sysroot; 7387else 7388 with_sysroot=no 7389fi 7390 7391 7392lt_sysroot= 7393case $with_sysroot in #( 7394 yes) 7395 if test yes = "$GCC"; then 7396 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7397 fi 7398 ;; #( 7399 /*) 7400 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7401 ;; #( 7402 no|'') 7403 ;; #( 7404 *) 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7406$as_echo "$with_sysroot" >&6; } 7407 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7408 ;; 7409esac 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7412$as_echo "${lt_sysroot:-no}" >&6; } 7413 7414 7415 7416 7417 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7419$as_echo_n "checking for a working dd... " >&6; } 7420if ${ac_cv_path_lt_DD+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 printf 0123456789abcdef0123456789abcdef >conftest.i 7424cat conftest.i conftest.i >conftest2.i 7425: ${lt_DD:=$DD} 7426if test -z "$lt_DD"; then 7427 ac_path_lt_DD_found=false 7428 # Loop through the user's path and test for each of PROGNAME-LIST 7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7430for as_dir in $PATH 7431do 7432 IFS=$as_save_IFS 7433 test -z "$as_dir" && as_dir=. 7434 for ac_prog in dd; do 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7437 as_fn_executable_p "$ac_path_lt_DD" || continue 7438if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7439 cmp -s conftest.i conftest.out \ 7440 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7441fi 7442 $ac_path_lt_DD_found && break 3 7443 done 7444 done 7445 done 7446IFS=$as_save_IFS 7447 if test -z "$ac_cv_path_lt_DD"; then 7448 : 7449 fi 7450else 7451 ac_cv_path_lt_DD=$lt_DD 7452fi 7453 7454rm -f conftest.i conftest2.i conftest.out 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7457$as_echo "$ac_cv_path_lt_DD" >&6; } 7458 7459 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7461$as_echo_n "checking how to truncate binary pipes... " >&6; } 7462if ${lt_cv_truncate_bin+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 printf 0123456789abcdef0123456789abcdef >conftest.i 7466cat conftest.i conftest.i >conftest2.i 7467lt_cv_truncate_bin= 7468if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7469 cmp -s conftest.i conftest.out \ 7470 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7471fi 7472rm -f conftest.i conftest2.i conftest.out 7473test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7476$as_echo "$lt_cv_truncate_bin" >&6; } 7477 7478 7479 7480 7481 7482 7483 7484# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7485func_cc_basename () 7486{ 7487 for cc_temp in $*""; do 7488 case $cc_temp in 7489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7491 \-*) ;; 7492 *) break;; 7493 esac 7494 done 7495 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7496} 7497 7498# Check whether --enable-libtool-lock was given. 7499if test "${enable_libtool_lock+set}" = set; then : 7500 enableval=$enable_libtool_lock; 7501fi 7502 7503test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7504 7505# Some flags need to be propagated to the compiler or linker for good 7506# libtool support. 7507case $host in 7508ia64-*-hpux*) 7509 # Find out what ABI is being produced by ac_compile, and set mode 7510 # options accordingly. 7511 echo 'int i;' > conftest.$ac_ext 7512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7513 (eval $ac_compile) 2>&5 7514 ac_status=$? 7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7516 test $ac_status = 0; }; then 7517 case `/usr/bin/file conftest.$ac_objext` in 7518 *ELF-32*) 7519 HPUX_IA64_MODE=32 7520 ;; 7521 *ELF-64*) 7522 HPUX_IA64_MODE=64 7523 ;; 7524 esac 7525 fi 7526 rm -rf conftest* 7527 ;; 7528*-*-irix6*) 7529 # Find out what ABI is being produced by ac_compile, and set linker 7530 # options accordingly. 7531 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7533 (eval $ac_compile) 2>&5 7534 ac_status=$? 7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7536 test $ac_status = 0; }; then 7537 if test yes = "$lt_cv_prog_gnu_ld"; then 7538 case `/usr/bin/file conftest.$ac_objext` in 7539 *32-bit*) 7540 LD="${LD-ld} -melf32bsmip" 7541 ;; 7542 *N32*) 7543 LD="${LD-ld} -melf32bmipn32" 7544 ;; 7545 *64-bit*) 7546 LD="${LD-ld} -melf64bmip" 7547 ;; 7548 esac 7549 else 7550 case `/usr/bin/file conftest.$ac_objext` in 7551 *32-bit*) 7552 LD="${LD-ld} -32" 7553 ;; 7554 *N32*) 7555 LD="${LD-ld} -n32" 7556 ;; 7557 *64-bit*) 7558 LD="${LD-ld} -64" 7559 ;; 7560 esac 7561 fi 7562 fi 7563 rm -rf conftest* 7564 ;; 7565 7566mips64*-*linux*) 7567 # Find out what ABI is being produced by ac_compile, and set linker 7568 # options accordingly. 7569 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7571 (eval $ac_compile) 2>&5 7572 ac_status=$? 7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7574 test $ac_status = 0; }; then 7575 emul=elf 7576 case `/usr/bin/file conftest.$ac_objext` in 7577 *32-bit*) 7578 emul="${emul}32" 7579 ;; 7580 *64-bit*) 7581 emul="${emul}64" 7582 ;; 7583 esac 7584 case `/usr/bin/file conftest.$ac_objext` in 7585 *MSB*) 7586 emul="${emul}btsmip" 7587 ;; 7588 *LSB*) 7589 emul="${emul}ltsmip" 7590 ;; 7591 esac 7592 case `/usr/bin/file conftest.$ac_objext` in 7593 *N32*) 7594 emul="${emul}n32" 7595 ;; 7596 esac 7597 LD="${LD-ld} -m $emul" 7598 fi 7599 rm -rf conftest* 7600 ;; 7601 7602x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7603s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7604 # Find out what ABI is being produced by ac_compile, and set linker 7605 # options accordingly. Note that the listed cases only cover the 7606 # situations where additional linker options are needed (such as when 7607 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7608 # vice versa); the common cases where no linker options are needed do 7609 # not appear in the list. 7610 echo 'int i;' > conftest.$ac_ext 7611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7612 (eval $ac_compile) 2>&5 7613 ac_status=$? 7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7615 test $ac_status = 0; }; then 7616 case `/usr/bin/file conftest.o` in 7617 *32-bit*) 7618 case $host in 7619 x86_64-*kfreebsd*-gnu) 7620 LD="${LD-ld} -m elf_i386_fbsd" 7621 ;; 7622 x86_64-*linux*) 7623 case `/usr/bin/file conftest.o` in 7624 *x86-64*) 7625 LD="${LD-ld} -m elf32_x86_64" 7626 ;; 7627 *) 7628 LD="${LD-ld} -m elf_i386" 7629 ;; 7630 esac 7631 ;; 7632 powerpc64le-*linux*) 7633 LD="${LD-ld} -m elf32lppclinux" 7634 ;; 7635 powerpc64-*linux*) 7636 LD="${LD-ld} -m elf32ppclinux" 7637 ;; 7638 s390x-*linux*) 7639 LD="${LD-ld} -m elf_s390" 7640 ;; 7641 sparc64-*linux*) 7642 LD="${LD-ld} -m elf32_sparc" 7643 ;; 7644 esac 7645 ;; 7646 *64-bit*) 7647 case $host in 7648 x86_64-*kfreebsd*-gnu) 7649 LD="${LD-ld} -m elf_x86_64_fbsd" 7650 ;; 7651 x86_64-*linux*) 7652 LD="${LD-ld} -m elf_x86_64" 7653 ;; 7654 powerpcle-*linux*) 7655 LD="${LD-ld} -m elf64lppc" 7656 ;; 7657 powerpc-*linux*) 7658 LD="${LD-ld} -m elf64ppc" 7659 ;; 7660 s390*-*linux*|s390*-*tpf*) 7661 LD="${LD-ld} -m elf64_s390" 7662 ;; 7663 sparc*-*linux*) 7664 LD="${LD-ld} -m elf64_sparc" 7665 ;; 7666 esac 7667 ;; 7668 esac 7669 fi 7670 rm -rf conftest* 7671 ;; 7672 7673*-*-sco3.2v5*) 7674 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7675 SAVE_CFLAGS=$CFLAGS 7676 CFLAGS="$CFLAGS -belf" 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7678$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7679if ${lt_cv_cc_needs_belf+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681else 7682 ac_ext=c 7683ac_cpp='$CPP $CPPFLAGS' 7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7686ac_compiler_gnu=$ac_cv_c_compiler_gnu 7687 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690 7691int 7692main () 7693{ 7694 7695 ; 7696 return 0; 7697} 7698_ACEOF 7699if ac_fn_c_try_link "$LINENO"; then : 7700 lt_cv_cc_needs_belf=yes 7701else 7702 lt_cv_cc_needs_belf=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext \ 7705 conftest$ac_exeext conftest.$ac_ext 7706 ac_ext=c 7707ac_cpp='$CPP $CPPFLAGS' 7708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7710ac_compiler_gnu=$ac_cv_c_compiler_gnu 7711 7712fi 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7714$as_echo "$lt_cv_cc_needs_belf" >&6; } 7715 if test yes != "$lt_cv_cc_needs_belf"; then 7716 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7717 CFLAGS=$SAVE_CFLAGS 7718 fi 7719 ;; 7720*-*solaris*) 7721 # Find out what ABI is being produced by ac_compile, and set linker 7722 # options accordingly. 7723 echo 'int i;' > conftest.$ac_ext 7724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7725 (eval $ac_compile) 2>&5 7726 ac_status=$? 7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7728 test $ac_status = 0; }; then 7729 case `/usr/bin/file conftest.o` in 7730 *64-bit*) 7731 case $lt_cv_prog_gnu_ld in 7732 yes*) 7733 case $host in 7734 i?86-*-solaris*|x86_64-*-solaris*) 7735 LD="${LD-ld} -m elf_x86_64" 7736 ;; 7737 sparc*-*-solaris*) 7738 LD="${LD-ld} -m elf64_sparc" 7739 ;; 7740 esac 7741 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7742 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7743 LD=${LD-ld}_sol2 7744 fi 7745 ;; 7746 *) 7747 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7748 LD="${LD-ld} -64" 7749 fi 7750 ;; 7751 esac 7752 ;; 7753 esac 7754 fi 7755 rm -rf conftest* 7756 ;; 7757esac 7758 7759need_locks=$enable_libtool_lock 7760 7761if test -n "$ac_tool_prefix"; then 7762 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7763set dummy ${ac_tool_prefix}mt; ac_word=$2 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765$as_echo_n "checking for $ac_word... " >&6; } 7766if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 if test -n "$MANIFEST_TOOL"; then 7770 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7771else 7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773for as_dir in $PATH 7774do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7790if test -n "$MANIFEST_TOOL"; then 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7792$as_echo "$MANIFEST_TOOL" >&6; } 7793else 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795$as_echo "no" >&6; } 7796fi 7797 7798 7799fi 7800if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7801 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7802 # Extract the first word of "mt", so it can be a program name with args. 7803set dummy mt; ac_word=$2 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7805$as_echo_n "checking for $ac_word... " >&6; } 7806if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7807 $as_echo_n "(cached) " >&6 7808else 7809 if test -n "$ac_ct_MANIFEST_TOOL"; then 7810 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7811else 7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7813for as_dir in $PATH 7814do 7815 IFS=$as_save_IFS 7816 test -z "$as_dir" && as_dir=. 7817 for ac_exec_ext in '' $ac_executable_extensions; do 7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7819 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7821 break 2 7822 fi 7823done 7824 done 7825IFS=$as_save_IFS 7826 7827fi 7828fi 7829ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7830if test -n "$ac_ct_MANIFEST_TOOL"; then 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7832$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7833else 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835$as_echo "no" >&6; } 7836fi 7837 7838 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7839 MANIFEST_TOOL=":" 7840 else 7841 case $cross_compiling:$ac_tool_warned in 7842yes:) 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7845ac_tool_warned=yes ;; 7846esac 7847 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7848 fi 7849else 7850 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7851fi 7852 7853test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7855$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7856if ${lt_cv_path_mainfest_tool+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 lt_cv_path_mainfest_tool=no 7860 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7861 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7862 cat conftest.err >&5 7863 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7864 lt_cv_path_mainfest_tool=yes 7865 fi 7866 rm -f conftest* 7867fi 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7869$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7870if test yes != "$lt_cv_path_mainfest_tool"; then 7871 MANIFEST_TOOL=: 7872fi 7873 7874 7875 7876 7877 7878 7879 case $host_os in 7880 rhapsody* | darwin*) 7881 if test -n "$ac_tool_prefix"; then 7882 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7883set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7885$as_echo_n "checking for $ac_word... " >&6; } 7886if ${ac_cv_prog_DSYMUTIL+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 if test -n "$DSYMUTIL"; then 7890 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7891else 7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7893for as_dir in $PATH 7894do 7895 IFS=$as_save_IFS 7896 test -z "$as_dir" && as_dir=. 7897 for ac_exec_ext in '' $ac_executable_extensions; do 7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7899 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7901 break 2 7902 fi 7903done 7904 done 7905IFS=$as_save_IFS 7906 7907fi 7908fi 7909DSYMUTIL=$ac_cv_prog_DSYMUTIL 7910if test -n "$DSYMUTIL"; then 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7912$as_echo "$DSYMUTIL" >&6; } 7913else 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7915$as_echo "no" >&6; } 7916fi 7917 7918 7919fi 7920if test -z "$ac_cv_prog_DSYMUTIL"; then 7921 ac_ct_DSYMUTIL=$DSYMUTIL 7922 # Extract the first word of "dsymutil", so it can be a program name with args. 7923set dummy dsymutil; ac_word=$2 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7925$as_echo_n "checking for $ac_word... " >&6; } 7926if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 if test -n "$ac_ct_DSYMUTIL"; then 7930 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7931else 7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7933for as_dir in $PATH 7934do 7935 IFS=$as_save_IFS 7936 test -z "$as_dir" && as_dir=. 7937 for ac_exec_ext in '' $ac_executable_extensions; do 7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7939 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7941 break 2 7942 fi 7943done 7944 done 7945IFS=$as_save_IFS 7946 7947fi 7948fi 7949ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7950if test -n "$ac_ct_DSYMUTIL"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7952$as_echo "$ac_ct_DSYMUTIL" >&6; } 7953else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955$as_echo "no" >&6; } 7956fi 7957 7958 if test "x$ac_ct_DSYMUTIL" = x; then 7959 DSYMUTIL=":" 7960 else 7961 case $cross_compiling:$ac_tool_warned in 7962yes:) 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7965ac_tool_warned=yes ;; 7966esac 7967 DSYMUTIL=$ac_ct_DSYMUTIL 7968 fi 7969else 7970 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7971fi 7972 7973 if test -n "$ac_tool_prefix"; then 7974 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7975set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7977$as_echo_n "checking for $ac_word... " >&6; } 7978if ${ac_cv_prog_NMEDIT+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 if test -n "$NMEDIT"; then 7982 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7983else 7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7985for as_dir in $PATH 7986do 7987 IFS=$as_save_IFS 7988 test -z "$as_dir" && as_dir=. 7989 for ac_exec_ext in '' $ac_executable_extensions; do 7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7991 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7993 break 2 7994 fi 7995done 7996 done 7997IFS=$as_save_IFS 7998 7999fi 8000fi 8001NMEDIT=$ac_cv_prog_NMEDIT 8002if test -n "$NMEDIT"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8004$as_echo "$NMEDIT" >&6; } 8005else 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8007$as_echo "no" >&6; } 8008fi 8009 8010 8011fi 8012if test -z "$ac_cv_prog_NMEDIT"; then 8013 ac_ct_NMEDIT=$NMEDIT 8014 # Extract the first word of "nmedit", so it can be a program name with args. 8015set dummy nmedit; ac_word=$2 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8017$as_echo_n "checking for $ac_word... " >&6; } 8018if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 if test -n "$ac_ct_NMEDIT"; then 8022 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 test -z "$as_dir" && as_dir=. 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8031 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8033 break 2 8034 fi 8035done 8036 done 8037IFS=$as_save_IFS 8038 8039fi 8040fi 8041ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8042if test -n "$ac_ct_NMEDIT"; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8044$as_echo "$ac_ct_NMEDIT" >&6; } 8045else 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8047$as_echo "no" >&6; } 8048fi 8049 8050 if test "x$ac_ct_NMEDIT" = x; then 8051 NMEDIT=":" 8052 else 8053 case $cross_compiling:$ac_tool_warned in 8054yes:) 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8057ac_tool_warned=yes ;; 8058esac 8059 NMEDIT=$ac_ct_NMEDIT 8060 fi 8061else 8062 NMEDIT="$ac_cv_prog_NMEDIT" 8063fi 8064 8065 if test -n "$ac_tool_prefix"; then 8066 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8067set dummy ${ac_tool_prefix}lipo; ac_word=$2 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8069$as_echo_n "checking for $ac_word... " >&6; } 8070if ${ac_cv_prog_LIPO+:} false; then : 8071 $as_echo_n "(cached) " >&6 8072else 8073 if test -n "$LIPO"; then 8074 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8075else 8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8077for as_dir in $PATH 8078do 8079 IFS=$as_save_IFS 8080 test -z "$as_dir" && as_dir=. 8081 for ac_exec_ext in '' $ac_executable_extensions; do 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8083 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8085 break 2 8086 fi 8087done 8088 done 8089IFS=$as_save_IFS 8090 8091fi 8092fi 8093LIPO=$ac_cv_prog_LIPO 8094if test -n "$LIPO"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8096$as_echo "$LIPO" >&6; } 8097else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099$as_echo "no" >&6; } 8100fi 8101 8102 8103fi 8104if test -z "$ac_cv_prog_LIPO"; then 8105 ac_ct_LIPO=$LIPO 8106 # Extract the first word of "lipo", so it can be a program name with args. 8107set dummy lipo; ac_word=$2 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8109$as_echo_n "checking for $ac_word... " >&6; } 8110if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 if test -n "$ac_ct_LIPO"; then 8114 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8115else 8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8117for as_dir in $PATH 8118do 8119 IFS=$as_save_IFS 8120 test -z "$as_dir" && as_dir=. 8121 for ac_exec_ext in '' $ac_executable_extensions; do 8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8123 ac_cv_prog_ac_ct_LIPO="lipo" 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8125 break 2 8126 fi 8127done 8128 done 8129IFS=$as_save_IFS 8130 8131fi 8132fi 8133ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8134if test -n "$ac_ct_LIPO"; then 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8136$as_echo "$ac_ct_LIPO" >&6; } 8137else 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8139$as_echo "no" >&6; } 8140fi 8141 8142 if test "x$ac_ct_LIPO" = x; then 8143 LIPO=":" 8144 else 8145 case $cross_compiling:$ac_tool_warned in 8146yes:) 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8149ac_tool_warned=yes ;; 8150esac 8151 LIPO=$ac_ct_LIPO 8152 fi 8153else 8154 LIPO="$ac_cv_prog_LIPO" 8155fi 8156 8157 if test -n "$ac_tool_prefix"; then 8158 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8159set dummy ${ac_tool_prefix}otool; ac_word=$2 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8161$as_echo_n "checking for $ac_word... " >&6; } 8162if ${ac_cv_prog_OTOOL+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164else 8165 if test -n "$OTOOL"; then 8166 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8167else 8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8169for as_dir in $PATH 8170do 8171 IFS=$as_save_IFS 8172 test -z "$as_dir" && as_dir=. 8173 for ac_exec_ext in '' $ac_executable_extensions; do 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8175 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8177 break 2 8178 fi 8179done 8180 done 8181IFS=$as_save_IFS 8182 8183fi 8184fi 8185OTOOL=$ac_cv_prog_OTOOL 8186if test -n "$OTOOL"; then 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8188$as_echo "$OTOOL" >&6; } 8189else 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8191$as_echo "no" >&6; } 8192fi 8193 8194 8195fi 8196if test -z "$ac_cv_prog_OTOOL"; then 8197 ac_ct_OTOOL=$OTOOL 8198 # Extract the first word of "otool", so it can be a program name with args. 8199set dummy otool; ac_word=$2 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201$as_echo_n "checking for $ac_word... " >&6; } 8202if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204else 8205 if test -n "$ac_ct_OTOOL"; then 8206 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8207else 8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8209for as_dir in $PATH 8210do 8211 IFS=$as_save_IFS 8212 test -z "$as_dir" && as_dir=. 8213 for ac_exec_ext in '' $ac_executable_extensions; do 8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8215 ac_cv_prog_ac_ct_OTOOL="otool" 8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8217 break 2 8218 fi 8219done 8220 done 8221IFS=$as_save_IFS 8222 8223fi 8224fi 8225ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8226if test -n "$ac_ct_OTOOL"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8228$as_echo "$ac_ct_OTOOL" >&6; } 8229else 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8231$as_echo "no" >&6; } 8232fi 8233 8234 if test "x$ac_ct_OTOOL" = x; then 8235 OTOOL=":" 8236 else 8237 case $cross_compiling:$ac_tool_warned in 8238yes:) 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8241ac_tool_warned=yes ;; 8242esac 8243 OTOOL=$ac_ct_OTOOL 8244 fi 8245else 8246 OTOOL="$ac_cv_prog_OTOOL" 8247fi 8248 8249 if test -n "$ac_tool_prefix"; then 8250 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8251set dummy ${ac_tool_prefix}otool64; ac_word=$2 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8253$as_echo_n "checking for $ac_word... " >&6; } 8254if ${ac_cv_prog_OTOOL64+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 if test -n "$OTOOL64"; then 8258 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8259else 8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8261for as_dir in $PATH 8262do 8263 IFS=$as_save_IFS 8264 test -z "$as_dir" && as_dir=. 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8267 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271done 8272 done 8273IFS=$as_save_IFS 8274 8275fi 8276fi 8277OTOOL64=$ac_cv_prog_OTOOL64 8278if test -n "$OTOOL64"; then 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8280$as_echo "$OTOOL64" >&6; } 8281else 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283$as_echo "no" >&6; } 8284fi 8285 8286 8287fi 8288if test -z "$ac_cv_prog_OTOOL64"; then 8289 ac_ct_OTOOL64=$OTOOL64 8290 # Extract the first word of "otool64", so it can be a program name with args. 8291set dummy otool64; ac_word=$2 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8293$as_echo_n "checking for $ac_word... " >&6; } 8294if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8295 $as_echo_n "(cached) " >&6 8296else 8297 if test -n "$ac_ct_OTOOL64"; then 8298 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8299else 8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8301for as_dir in $PATH 8302do 8303 IFS=$as_save_IFS 8304 test -z "$as_dir" && as_dir=. 8305 for ac_exec_ext in '' $ac_executable_extensions; do 8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8307 ac_cv_prog_ac_ct_OTOOL64="otool64" 8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8309 break 2 8310 fi 8311done 8312 done 8313IFS=$as_save_IFS 8314 8315fi 8316fi 8317ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8318if test -n "$ac_ct_OTOOL64"; then 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8320$as_echo "$ac_ct_OTOOL64" >&6; } 8321else 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323$as_echo "no" >&6; } 8324fi 8325 8326 if test "x$ac_ct_OTOOL64" = x; then 8327 OTOOL64=":" 8328 else 8329 case $cross_compiling:$ac_tool_warned in 8330yes:) 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8333ac_tool_warned=yes ;; 8334esac 8335 OTOOL64=$ac_ct_OTOOL64 8336 fi 8337else 8338 OTOOL64="$ac_cv_prog_OTOOL64" 8339fi 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8368$as_echo_n "checking for -single_module linker flag... " >&6; } 8369if ${lt_cv_apple_cc_single_mod+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 lt_cv_apple_cc_single_mod=no 8373 if test -z "$LT_MULTI_MODULE"; then 8374 # By default we will add the -single_module flag. You can override 8375 # by either setting the environment variable LT_MULTI_MODULE 8376 # non-empty at configure time, or by adding -multi_module to the 8377 # link flags. 8378 rm -rf libconftest.dylib* 8379 echo "int foo(void){return 1;}" > conftest.c 8380 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8381-dynamiclib -Wl,-single_module conftest.c" >&5 8382 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8383 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8384 _lt_result=$? 8385 # If there is a non-empty error log, and "single_module" 8386 # appears in it, assume the flag caused a linker warning 8387 if test -s conftest.err && $GREP single_module conftest.err; then 8388 cat conftest.err >&5 8389 # Otherwise, if the output was created with a 0 exit code from 8390 # the compiler, it worked. 8391 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8392 lt_cv_apple_cc_single_mod=yes 8393 else 8394 cat conftest.err >&5 8395 fi 8396 rm -rf libconftest.dylib* 8397 rm -f conftest.* 8398 fi 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8401$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8404$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8405if ${lt_cv_ld_exported_symbols_list+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 lt_cv_ld_exported_symbols_list=no 8409 save_LDFLAGS=$LDFLAGS 8410 echo "_main" > conftest.sym 8411 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8413/* end confdefs.h. */ 8414 8415int 8416main () 8417{ 8418 8419 ; 8420 return 0; 8421} 8422_ACEOF 8423if ac_fn_c_try_link "$LINENO"; then : 8424 lt_cv_ld_exported_symbols_list=yes 8425else 8426 lt_cv_ld_exported_symbols_list=no 8427fi 8428rm -f core conftest.err conftest.$ac_objext \ 8429 conftest$ac_exeext conftest.$ac_ext 8430 LDFLAGS=$save_LDFLAGS 8431 8432fi 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8434$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8435 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8437$as_echo_n "checking for -force_load linker flag... " >&6; } 8438if ${lt_cv_ld_force_load+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 lt_cv_ld_force_load=no 8442 cat > conftest.c << _LT_EOF 8443int forced_loaded() { return 2;} 8444_LT_EOF 8445 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8446 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8447 echo "$AR cr libconftest.a conftest.o" >&5 8448 $AR cr libconftest.a conftest.o 2>&5 8449 echo "$RANLIB libconftest.a" >&5 8450 $RANLIB libconftest.a 2>&5 8451 cat > conftest.c << _LT_EOF 8452int main() { return 0;} 8453_LT_EOF 8454 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8455 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8456 _lt_result=$? 8457 if test -s conftest.err && $GREP force_load conftest.err; then 8458 cat conftest.err >&5 8459 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8460 lt_cv_ld_force_load=yes 8461 else 8462 cat conftest.err >&5 8463 fi 8464 rm -f conftest.err libconftest.a conftest conftest.c 8465 rm -rf conftest.dSYM 8466 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8469$as_echo "$lt_cv_ld_force_load" >&6; } 8470 case $host_os in 8471 rhapsody* | darwin1.[012]) 8472 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8473 darwin1.*) 8474 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8475 darwin*) # darwin 5.x on 8476 # if running on 10.5 or later, the deployment target defaults 8477 # to the OS version, if on x86, and 10.4, the deployment 8478 # target defaults to 10.4. Don't you love it? 8479 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8480 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8481 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8482 10.[012][,.]*) 8483 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8484 10.*) 8485 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8486 esac 8487 ;; 8488 esac 8489 if test yes = "$lt_cv_apple_cc_single_mod"; then 8490 _lt_dar_single_mod='$single_module' 8491 fi 8492 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8493 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8494 else 8495 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8496 fi 8497 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8498 _lt_dsymutil='~$DSYMUTIL $lib || :' 8499 else 8500 _lt_dsymutil= 8501 fi 8502 ;; 8503 esac 8504 8505# func_munge_path_list VARIABLE PATH 8506# ----------------------------------- 8507# VARIABLE is name of variable containing _space_ separated list of 8508# directories to be munged by the contents of PATH, which is string 8509# having a format: 8510# "DIR[:DIR]:" 8511# string "DIR[ DIR]" will be prepended to VARIABLE 8512# ":DIR[:DIR]" 8513# string "DIR[ DIR]" will be appended to VARIABLE 8514# "DIRP[:DIRP]::[DIRA:]DIRA" 8515# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8516# "DIRA[ DIRA]" will be appended to VARIABLE 8517# "DIR[:DIR]" 8518# VARIABLE will be replaced by "DIR[ DIR]" 8519func_munge_path_list () 8520{ 8521 case x$2 in 8522 x) 8523 ;; 8524 *:) 8525 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8526 ;; 8527 x:*) 8528 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8529 ;; 8530 *::*) 8531 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8532 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8533 ;; 8534 *) 8535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8536 ;; 8537 esac 8538} 8539 8540ac_ext=c 8541ac_cpp='$CPP $CPPFLAGS' 8542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8544ac_compiler_gnu=$ac_cv_c_compiler_gnu 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8546$as_echo_n "checking how to run the C preprocessor... " >&6; } 8547# On Suns, sometimes $CPP names a directory. 8548if test -n "$CPP" && test -d "$CPP"; then 8549 CPP= 8550fi 8551if test -z "$CPP"; then 8552 if ${ac_cv_prog_CPP+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 # Double quotes because CPP needs to be expanded 8556 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8557 do 8558 ac_preproc_ok=false 8559for ac_c_preproc_warn_flag in '' yes 8560do 8561 # Use a header file that comes with gcc, so configuring glibc 8562 # with a fresh cross-compiler works. 8563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8564 # <limits.h> exists even on freestanding compilers. 8565 # On the NeXT, cc -E runs the code through the compiler's parser, 8566 # not just through cpp. "Syntax error" is here to catch this case. 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569#ifdef __STDC__ 8570# include <limits.h> 8571#else 8572# include <assert.h> 8573#endif 8574 Syntax error 8575_ACEOF 8576if ac_fn_c_try_cpp "$LINENO"; then : 8577 8578else 8579 # Broken: fails on valid input. 8580continue 8581fi 8582rm -f conftest.err conftest.i conftest.$ac_ext 8583 8584 # OK, works on sane cases. Now check whether nonexistent headers 8585 # can be detected and how. 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588#include <ac_nonexistent.h> 8589_ACEOF 8590if ac_fn_c_try_cpp "$LINENO"; then : 8591 # Broken: success on invalid input. 8592continue 8593else 8594 # Passes both tests. 8595ac_preproc_ok=: 8596break 8597fi 8598rm -f conftest.err conftest.i conftest.$ac_ext 8599 8600done 8601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8602rm -f conftest.i conftest.err conftest.$ac_ext 8603if $ac_preproc_ok; then : 8604 break 8605fi 8606 8607 done 8608 ac_cv_prog_CPP=$CPP 8609 8610fi 8611 CPP=$ac_cv_prog_CPP 8612else 8613 ac_cv_prog_CPP=$CPP 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8616$as_echo "$CPP" >&6; } 8617ac_preproc_ok=false 8618for ac_c_preproc_warn_flag in '' yes 8619do 8620 # Use a header file that comes with gcc, so configuring glibc 8621 # with a fresh cross-compiler works. 8622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8623 # <limits.h> exists even on freestanding compilers. 8624 # On the NeXT, cc -E runs the code through the compiler's parser, 8625 # not just through cpp. "Syntax error" is here to catch this case. 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628#ifdef __STDC__ 8629# include <limits.h> 8630#else 8631# include <assert.h> 8632#endif 8633 Syntax error 8634_ACEOF 8635if ac_fn_c_try_cpp "$LINENO"; then : 8636 8637else 8638 # Broken: fails on valid input. 8639continue 8640fi 8641rm -f conftest.err conftest.i conftest.$ac_ext 8642 8643 # OK, works on sane cases. Now check whether nonexistent headers 8644 # can be detected and how. 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647#include <ac_nonexistent.h> 8648_ACEOF 8649if ac_fn_c_try_cpp "$LINENO"; then : 8650 # Broken: success on invalid input. 8651continue 8652else 8653 # Passes both tests. 8654ac_preproc_ok=: 8655break 8656fi 8657rm -f conftest.err conftest.i conftest.$ac_ext 8658 8659done 8660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8661rm -f conftest.i conftest.err conftest.$ac_ext 8662if $ac_preproc_ok; then : 8663 8664else 8665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8667as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8668See \`config.log' for more details" "$LINENO" 5; } 8669fi 8670 8671ac_ext=c 8672ac_cpp='$CPP $CPPFLAGS' 8673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8675ac_compiler_gnu=$ac_cv_c_compiler_gnu 8676 8677 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8679$as_echo_n "checking for ANSI C header files... " >&6; } 8680if ${ac_cv_header_stdc+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682else 8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684/* end confdefs.h. */ 8685#include <stdlib.h> 8686#include <stdarg.h> 8687#include <string.h> 8688#include <float.h> 8689 8690int 8691main () 8692{ 8693 8694 ; 8695 return 0; 8696} 8697_ACEOF 8698if ac_fn_c_try_compile "$LINENO"; then : 8699 ac_cv_header_stdc=yes 8700else 8701 ac_cv_header_stdc=no 8702fi 8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8704 8705if test $ac_cv_header_stdc = yes; then 8706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709#include <string.h> 8710 8711_ACEOF 8712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8713 $EGREP "memchr" >/dev/null 2>&1; then : 8714 8715else 8716 ac_cv_header_stdc=no 8717fi 8718rm -f conftest* 8719 8720fi 8721 8722if test $ac_cv_header_stdc = yes; then 8723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726#include <stdlib.h> 8727 8728_ACEOF 8729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8730 $EGREP "free" >/dev/null 2>&1; then : 8731 8732else 8733 ac_cv_header_stdc=no 8734fi 8735rm -f conftest* 8736 8737fi 8738 8739if test $ac_cv_header_stdc = yes; then 8740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8741 if test "$cross_compiling" = yes; then : 8742 : 8743else 8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8745/* end confdefs.h. */ 8746#include <ctype.h> 8747#include <stdlib.h> 8748#if ((' ' & 0x0FF) == 0x020) 8749# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8750# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8751#else 8752# define ISLOWER(c) \ 8753 (('a' <= (c) && (c) <= 'i') \ 8754 || ('j' <= (c) && (c) <= 'r') \ 8755 || ('s' <= (c) && (c) <= 'z')) 8756# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8757#endif 8758 8759#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8760int 8761main () 8762{ 8763 int i; 8764 for (i = 0; i < 256; i++) 8765 if (XOR (islower (i), ISLOWER (i)) 8766 || toupper (i) != TOUPPER (i)) 8767 return 2; 8768 return 0; 8769} 8770_ACEOF 8771if ac_fn_c_try_run "$LINENO"; then : 8772 8773else 8774 ac_cv_header_stdc=no 8775fi 8776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8777 conftest.$ac_objext conftest.beam conftest.$ac_ext 8778fi 8779 8780fi 8781fi 8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8783$as_echo "$ac_cv_header_stdc" >&6; } 8784if test $ac_cv_header_stdc = yes; then 8785 8786$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8787 8788fi 8789 8790# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8791for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8792 inttypes.h stdint.h unistd.h 8793do : 8794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8795ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8796" 8797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8798 cat >>confdefs.h <<_ACEOF 8799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8800_ACEOF 8801 8802fi 8803 8804done 8805 8806 8807for ac_header in dlfcn.h 8808do : 8809 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8810" 8811if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8812 cat >>confdefs.h <<_ACEOF 8813#define HAVE_DLFCN_H 1 8814_ACEOF 8815 8816fi 8817 8818done 8819 8820 8821 8822 8823 8824# Set options 8825enable_win32_dll=yes 8826 8827case $host in 8828*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8829 if test -n "$ac_tool_prefix"; then 8830 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8831set dummy ${ac_tool_prefix}as; ac_word=$2 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8833$as_echo_n "checking for $ac_word... " >&6; } 8834if ${ac_cv_prog_AS+:} false; then : 8835 $as_echo_n "(cached) " >&6 8836else 8837 if test -n "$AS"; then 8838 ac_cv_prog_AS="$AS" # Let the user override the test. 8839else 8840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8841for as_dir in $PATH 8842do 8843 IFS=$as_save_IFS 8844 test -z "$as_dir" && as_dir=. 8845 for ac_exec_ext in '' $ac_executable_extensions; do 8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8847 ac_cv_prog_AS="${ac_tool_prefix}as" 8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8849 break 2 8850 fi 8851done 8852 done 8853IFS=$as_save_IFS 8854 8855fi 8856fi 8857AS=$ac_cv_prog_AS 8858if test -n "$AS"; then 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8860$as_echo "$AS" >&6; } 8861else 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8863$as_echo "no" >&6; } 8864fi 8865 8866 8867fi 8868if test -z "$ac_cv_prog_AS"; then 8869 ac_ct_AS=$AS 8870 # Extract the first word of "as", so it can be a program name with args. 8871set dummy as; ac_word=$2 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8873$as_echo_n "checking for $ac_word... " >&6; } 8874if ${ac_cv_prog_ac_ct_AS+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 if test -n "$ac_ct_AS"; then 8878 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8879else 8880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8881for as_dir in $PATH 8882do 8883 IFS=$as_save_IFS 8884 test -z "$as_dir" && as_dir=. 8885 for ac_exec_ext in '' $ac_executable_extensions; do 8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8887 ac_cv_prog_ac_ct_AS="as" 8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8889 break 2 8890 fi 8891done 8892 done 8893IFS=$as_save_IFS 8894 8895fi 8896fi 8897ac_ct_AS=$ac_cv_prog_ac_ct_AS 8898if test -n "$ac_ct_AS"; then 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8900$as_echo "$ac_ct_AS" >&6; } 8901else 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8903$as_echo "no" >&6; } 8904fi 8905 8906 if test "x$ac_ct_AS" = x; then 8907 AS="false" 8908 else 8909 case $cross_compiling:$ac_tool_warned in 8910yes:) 8911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8913ac_tool_warned=yes ;; 8914esac 8915 AS=$ac_ct_AS 8916 fi 8917else 8918 AS="$ac_cv_prog_AS" 8919fi 8920 8921 if test -n "$ac_tool_prefix"; then 8922 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8923set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8925$as_echo_n "checking for $ac_word... " >&6; } 8926if ${ac_cv_prog_DLLTOOL+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 if test -n "$DLLTOOL"; then 8930 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8931else 8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8933for as_dir in $PATH 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_prog_DLLTOOL="${ac_tool_prefix}dlltool" 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 8947fi 8948fi 8949DLLTOOL=$ac_cv_prog_DLLTOOL 8950if test -n "$DLLTOOL"; then 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8952$as_echo "$DLLTOOL" >&6; } 8953else 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8955$as_echo "no" >&6; } 8956fi 8957 8958 8959fi 8960if test -z "$ac_cv_prog_DLLTOOL"; then 8961 ac_ct_DLLTOOL=$DLLTOOL 8962 # Extract the first word of "dlltool", so it can be a program name with args. 8963set dummy dlltool; ac_word=$2 8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8965$as_echo_n "checking for $ac_word... " >&6; } 8966if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 if test -n "$ac_ct_DLLTOOL"; then 8970 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8971else 8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8973for as_dir in $PATH 8974do 8975 IFS=$as_save_IFS 8976 test -z "$as_dir" && as_dir=. 8977 for ac_exec_ext in '' $ac_executable_extensions; do 8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8979 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8981 break 2 8982 fi 8983done 8984 done 8985IFS=$as_save_IFS 8986 8987fi 8988fi 8989ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8990if test -n "$ac_ct_DLLTOOL"; then 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8992$as_echo "$ac_ct_DLLTOOL" >&6; } 8993else 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8995$as_echo "no" >&6; } 8996fi 8997 8998 if test "x$ac_ct_DLLTOOL" = x; then 8999 DLLTOOL="false" 9000 else 9001 case $cross_compiling:$ac_tool_warned in 9002yes:) 9003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9005ac_tool_warned=yes ;; 9006esac 9007 DLLTOOL=$ac_ct_DLLTOOL 9008 fi 9009else 9010 DLLTOOL="$ac_cv_prog_DLLTOOL" 9011fi 9012 9013 if test -n "$ac_tool_prefix"; then 9014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9015set dummy ${ac_tool_prefix}objdump; ac_word=$2 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9017$as_echo_n "checking for $ac_word... " >&6; } 9018if ${ac_cv_prog_OBJDUMP+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 if test -n "$OBJDUMP"; then 9022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9023else 9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9025for as_dir in $PATH 9026do 9027 IFS=$as_save_IFS 9028 test -z "$as_dir" && as_dir=. 9029 for ac_exec_ext in '' $ac_executable_extensions; do 9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9033 break 2 9034 fi 9035done 9036 done 9037IFS=$as_save_IFS 9038 9039fi 9040fi 9041OBJDUMP=$ac_cv_prog_OBJDUMP 9042if test -n "$OBJDUMP"; then 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9044$as_echo "$OBJDUMP" >&6; } 9045else 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9047$as_echo "no" >&6; } 9048fi 9049 9050 9051fi 9052if test -z "$ac_cv_prog_OBJDUMP"; then 9053 ac_ct_OBJDUMP=$OBJDUMP 9054 # Extract the first word of "objdump", so it can be a program name with args. 9055set dummy objdump; ac_word=$2 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9057$as_echo_n "checking for $ac_word... " >&6; } 9058if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9059 $as_echo_n "(cached) " >&6 9060else 9061 if test -n "$ac_ct_OBJDUMP"; then 9062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9063else 9064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9065for as_dir in $PATH 9066do 9067 IFS=$as_save_IFS 9068 test -z "$as_dir" && as_dir=. 9069 for ac_exec_ext in '' $ac_executable_extensions; do 9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9071 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9073 break 2 9074 fi 9075done 9076 done 9077IFS=$as_save_IFS 9078 9079fi 9080fi 9081ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9082if test -n "$ac_ct_OBJDUMP"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9084$as_echo "$ac_ct_OBJDUMP" >&6; } 9085else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087$as_echo "no" >&6; } 9088fi 9089 9090 if test "x$ac_ct_OBJDUMP" = x; then 9091 OBJDUMP="false" 9092 else 9093 case $cross_compiling:$ac_tool_warned in 9094yes:) 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9097ac_tool_warned=yes ;; 9098esac 9099 OBJDUMP=$ac_ct_OBJDUMP 9100 fi 9101else 9102 OBJDUMP="$ac_cv_prog_OBJDUMP" 9103fi 9104 9105 ;; 9106esac 9107 9108test -z "$AS" && AS=as 9109 9110 9111 9112 9113 9114test -z "$DLLTOOL" && DLLTOOL=dlltool 9115 9116 9117 9118 9119 9120test -z "$OBJDUMP" && OBJDUMP=objdump 9121 9122 9123 9124 9125 9126 9127 9128 enable_dlopen=no 9129 9130 9131 9132 # Check whether --enable-shared was given. 9133if test "${enable_shared+set}" = set; then : 9134 enableval=$enable_shared; p=${PACKAGE-default} 9135 case $enableval in 9136 yes) enable_shared=yes ;; 9137 no) enable_shared=no ;; 9138 *) 9139 enable_shared=no 9140 # Look at the argument we got. We use all the common list separators. 9141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9142 for pkg in $enableval; do 9143 IFS=$lt_save_ifs 9144 if test "X$pkg" = "X$p"; then 9145 enable_shared=yes 9146 fi 9147 done 9148 IFS=$lt_save_ifs 9149 ;; 9150 esac 9151else 9152 enable_shared=yes 9153fi 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 # Check whether --enable-static was given. 9164if test "${enable_static+set}" = set; then : 9165 enableval=$enable_static; p=${PACKAGE-default} 9166 case $enableval in 9167 yes) enable_static=yes ;; 9168 no) enable_static=no ;; 9169 *) 9170 enable_static=no 9171 # Look at the argument we got. We use all the common list separators. 9172 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9173 for pkg in $enableval; do 9174 IFS=$lt_save_ifs 9175 if test "X$pkg" = "X$p"; then 9176 enable_static=yes 9177 fi 9178 done 9179 IFS=$lt_save_ifs 9180 ;; 9181 esac 9182else 9183 enable_static=yes 9184fi 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195# Check whether --with-pic was given. 9196if test "${with_pic+set}" = set; then : 9197 withval=$with_pic; lt_p=${PACKAGE-default} 9198 case $withval in 9199 yes|no) pic_mode=$withval ;; 9200 *) 9201 pic_mode=default 9202 # Look at the argument we got. We use all the common list separators. 9203 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9204 for lt_pkg in $withval; do 9205 IFS=$lt_save_ifs 9206 if test "X$lt_pkg" = "X$lt_p"; then 9207 pic_mode=yes 9208 fi 9209 done 9210 IFS=$lt_save_ifs 9211 ;; 9212 esac 9213else 9214 pic_mode=default 9215fi 9216 9217 9218 9219 9220 9221 9222 9223 9224 # Check whether --enable-fast-install was given. 9225if test "${enable_fast_install+set}" = set; then : 9226 enableval=$enable_fast_install; p=${PACKAGE-default} 9227 case $enableval in 9228 yes) enable_fast_install=yes ;; 9229 no) enable_fast_install=no ;; 9230 *) 9231 enable_fast_install=no 9232 # Look at the argument we got. We use all the common list separators. 9233 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9234 for pkg in $enableval; do 9235 IFS=$lt_save_ifs 9236 if test "X$pkg" = "X$p"; then 9237 enable_fast_install=yes 9238 fi 9239 done 9240 IFS=$lt_save_ifs 9241 ;; 9242 esac 9243else 9244 enable_fast_install=yes 9245fi 9246 9247 9248 9249 9250 9251 9252 9253 9254 shared_archive_member_spec= 9255case $host,$enable_shared in 9256power*-*-aix[5-9]*,yes) 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9258$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9259 9260# Check whether --with-aix-soname was given. 9261if test "${with_aix_soname+set}" = set; then : 9262 withval=$with_aix_soname; case $withval in 9263 aix|svr4|both) 9264 ;; 9265 *) 9266 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9267 ;; 9268 esac 9269 lt_cv_with_aix_soname=$with_aix_soname 9270else 9271 if ${lt_cv_with_aix_soname+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 lt_cv_with_aix_soname=aix 9275fi 9276 9277 with_aix_soname=$lt_cv_with_aix_soname 9278fi 9279 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9281$as_echo "$with_aix_soname" >&6; } 9282 if test aix != "$with_aix_soname"; then 9283 # For the AIX way of multilib, we name the shared archive member 9284 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9285 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9286 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9287 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9288 if test 64 = "${OBJECT_MODE-32}"; then 9289 shared_archive_member_spec=shr_64 9290 else 9291 shared_archive_member_spec=shr 9292 fi 9293 fi 9294 ;; 9295*) 9296 with_aix_soname=aix 9297 ;; 9298esac 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309# This can be used to rebuild libtool when needed 9310LIBTOOL_DEPS=$ltmain 9311 9312# Always use our own libtool. 9313LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344test -z "$LN_S" && LN_S="ln -s" 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359if test -n "${ZSH_VERSION+set}"; then 9360 setopt NO_GLOB_SUBST 9361fi 9362 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9364$as_echo_n "checking for objdir... " >&6; } 9365if ${lt_cv_objdir+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 rm -f .libs 2>/dev/null 9369mkdir .libs 2>/dev/null 9370if test -d .libs; then 9371 lt_cv_objdir=.libs 9372else 9373 # MS-DOS does not allow filenames that begin with a dot. 9374 lt_cv_objdir=_libs 9375fi 9376rmdir .libs 2>/dev/null 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9379$as_echo "$lt_cv_objdir" >&6; } 9380objdir=$lt_cv_objdir 9381 9382 9383 9384 9385 9386cat >>confdefs.h <<_ACEOF 9387#define LT_OBJDIR "$lt_cv_objdir/" 9388_ACEOF 9389 9390 9391 9392 9393case $host_os in 9394aix3*) 9395 # AIX sometimes has problems with the GCC collect2 program. For some 9396 # reason, if we set the COLLECT_NAMES environment variable, the problems 9397 # vanish in a puff of smoke. 9398 if test set != "${COLLECT_NAMES+set}"; then 9399 COLLECT_NAMES= 9400 export COLLECT_NAMES 9401 fi 9402 ;; 9403esac 9404 9405# Global variables: 9406ofile=libtool 9407can_build_shared=yes 9408 9409# All known linkers require a '.a' archive for static linking (except MSVC, 9410# which needs '.lib'). 9411libext=a 9412 9413with_gnu_ld=$lt_cv_prog_gnu_ld 9414 9415old_CC=$CC 9416old_CFLAGS=$CFLAGS 9417 9418# Set sane defaults for various variables 9419test -z "$CC" && CC=cc 9420test -z "$LTCC" && LTCC=$CC 9421test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9422test -z "$LD" && LD=ld 9423test -z "$ac_objext" && ac_objext=o 9424 9425func_cc_basename $compiler 9426cc_basename=$func_cc_basename_result 9427 9428 9429# Only perform the check for file, if the check method requires it 9430test -z "$MAGIC_CMD" && MAGIC_CMD=file 9431case $deplibs_check_method in 9432file_magic*) 9433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9436if ${lt_cv_path_MAGIC_CMD+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 case $MAGIC_CMD in 9440[\\/*] | ?:[\\/]*) 9441 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9442 ;; 9443*) 9444 lt_save_MAGIC_CMD=$MAGIC_CMD 9445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9447 for ac_dir in $ac_dummy; do 9448 IFS=$lt_save_ifs 9449 test -z "$ac_dir" && ac_dir=. 9450 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9451 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9452 if test -n "$file_magic_test_file"; then 9453 case $deplibs_check_method in 9454 "file_magic "*) 9455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9458 $EGREP "$file_magic_regex" > /dev/null; then 9459 : 9460 else 9461 cat <<_LT_EOF 1>&2 9462 9463*** Warning: the command libtool uses to detect shared libraries, 9464*** $file_magic_cmd, produces output that libtool cannot recognize. 9465*** The result is that libtool may fail to recognize shared libraries 9466*** as such. This will affect the creation of libtool libraries that 9467*** depend on shared libraries, but programs linked with such libtool 9468*** libraries will work regardless of this problem. Nevertheless, you 9469*** may want to report the problem to your system manager and/or to 9470*** bug-libtool@gnu.org 9471 9472_LT_EOF 9473 fi ;; 9474 esac 9475 fi 9476 break 9477 fi 9478 done 9479 IFS=$lt_save_ifs 9480 MAGIC_CMD=$lt_save_MAGIC_CMD 9481 ;; 9482esac 9483fi 9484 9485MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9486if test -n "$MAGIC_CMD"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9488$as_echo "$MAGIC_CMD" >&6; } 9489else 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9491$as_echo "no" >&6; } 9492fi 9493 9494 9495 9496 9497 9498if test -z "$lt_cv_path_MAGIC_CMD"; then 9499 if test -n "$ac_tool_prefix"; then 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9501$as_echo_n "checking for file... " >&6; } 9502if ${lt_cv_path_MAGIC_CMD+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 case $MAGIC_CMD in 9506[\\/*] | ?:[\\/]*) 9507 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9508 ;; 9509*) 9510 lt_save_MAGIC_CMD=$MAGIC_CMD 9511 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9513 for ac_dir in $ac_dummy; do 9514 IFS=$lt_save_ifs 9515 test -z "$ac_dir" && ac_dir=. 9516 if test -f "$ac_dir/file"; then 9517 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9518 if test -n "$file_magic_test_file"; then 9519 case $deplibs_check_method in 9520 "file_magic "*) 9521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9524 $EGREP "$file_magic_regex" > /dev/null; then 9525 : 9526 else 9527 cat <<_LT_EOF 1>&2 9528 9529*** Warning: the command libtool uses to detect shared libraries, 9530*** $file_magic_cmd, produces output that libtool cannot recognize. 9531*** The result is that libtool may fail to recognize shared libraries 9532*** as such. This will affect the creation of libtool libraries that 9533*** depend on shared libraries, but programs linked with such libtool 9534*** libraries will work regardless of this problem. Nevertheless, you 9535*** may want to report the problem to your system manager and/or to 9536*** bug-libtool@gnu.org 9537 9538_LT_EOF 9539 fi ;; 9540 esac 9541 fi 9542 break 9543 fi 9544 done 9545 IFS=$lt_save_ifs 9546 MAGIC_CMD=$lt_save_MAGIC_CMD 9547 ;; 9548esac 9549fi 9550 9551MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9552if test -n "$MAGIC_CMD"; then 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9554$as_echo "$MAGIC_CMD" >&6; } 9555else 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9557$as_echo "no" >&6; } 9558fi 9559 9560 9561 else 9562 MAGIC_CMD=: 9563 fi 9564fi 9565 9566 fi 9567 ;; 9568esac 9569 9570# Use C for the default configuration in the libtool script 9571 9572lt_save_CC=$CC 9573ac_ext=c 9574ac_cpp='$CPP $CPPFLAGS' 9575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9577ac_compiler_gnu=$ac_cv_c_compiler_gnu 9578 9579 9580# Source file extension for C test sources. 9581ac_ext=c 9582 9583# Object file extension for compiled C test sources. 9584objext=o 9585objext=$objext 9586 9587# Code to be used in simple compile tests 9588lt_simple_compile_test_code="int some_variable = 0;" 9589 9590# Code to be used in simple link tests 9591lt_simple_link_test_code='int main(){return(0);}' 9592 9593 9594 9595 9596 9597 9598 9599# If no C compiler was specified, use CC. 9600LTCC=${LTCC-"$CC"} 9601 9602# If no C compiler flags were specified, use CFLAGS. 9603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9604 9605# Allow CC to be a program name with arguments. 9606compiler=$CC 9607 9608# Save the default compiler, since it gets overwritten when the other 9609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9610compiler_DEFAULT=$CC 9611 9612# save warnings/boilerplate of simple test code 9613ac_outfile=conftest.$ac_objext 9614echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9616_lt_compiler_boilerplate=`cat conftest.err` 9617$RM conftest* 9618 9619ac_outfile=conftest.$ac_objext 9620echo "$lt_simple_link_test_code" >conftest.$ac_ext 9621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9622_lt_linker_boilerplate=`cat conftest.err` 9623$RM -r conftest* 9624 9625 9626## CAVEAT EMPTOR: 9627## There is no encapsulation within the following macros, do not change 9628## the running order or otherwise move them around unless you know exactly 9629## what you are doing... 9630if test -n "$compiler"; then 9631 9632lt_prog_compiler_no_builtin_flag= 9633 9634if test yes = "$GCC"; then 9635 case $cc_basename in 9636 nvcc*) 9637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9638 *) 9639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9640 esac 9641 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9644if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 lt_cv_prog_compiler_rtti_exceptions=no 9648 ac_outfile=conftest.$ac_objext 9649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9650 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9651 # Insert the option either (1) after the last *FLAGS variable, or 9652 # (2) before a word containing "conftest.", or (3) at the end. 9653 # Note that $ac_compile itself does not contain backslashes and begins 9654 # with a dollar sign (not a hyphen), so the echo should work correctly. 9655 # The option is referenced via a variable to avoid confusing sed. 9656 lt_compile=`echo "$ac_compile" | $SED \ 9657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9659 -e 's:$: $lt_compiler_flag:'` 9660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9661 (eval "$lt_compile" 2>conftest.err) 9662 ac_status=$? 9663 cat conftest.err >&5 9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9665 if (exit $ac_status) && test -s "$ac_outfile"; then 9666 # The compiler can only warn and ignore the option if not recognized 9667 # So say no if there are warnings other than the usual output. 9668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9671 lt_cv_prog_compiler_rtti_exceptions=yes 9672 fi 9673 fi 9674 $RM conftest* 9675 9676fi 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9679 9680if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9682else 9683 : 9684fi 9685 9686fi 9687 9688 9689 9690 9691 9692 9693 lt_prog_compiler_wl= 9694lt_prog_compiler_pic= 9695lt_prog_compiler_static= 9696 9697 9698 if test yes = "$GCC"; then 9699 lt_prog_compiler_wl='-Wl,' 9700 lt_prog_compiler_static='-static' 9701 9702 case $host_os in 9703 aix*) 9704 # All AIX code is PIC. 9705 if test ia64 = "$host_cpu"; then 9706 # AIX 5 now supports IA64 processor 9707 lt_prog_compiler_static='-Bstatic' 9708 fi 9709 lt_prog_compiler_pic='-fPIC' 9710 ;; 9711 9712 amigaos*) 9713 case $host_cpu in 9714 powerpc) 9715 # see comment about AmigaOS4 .so support 9716 lt_prog_compiler_pic='-fPIC' 9717 ;; 9718 m68k) 9719 # FIXME: we need at least 68020 code to build shared libraries, but 9720 # adding the '-m68020' flag to GCC prevents building anything better, 9721 # like '-m68040'. 9722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9723 ;; 9724 esac 9725 ;; 9726 9727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9728 # PIC is the default for these OSes. 9729 ;; 9730 9731 mingw* | cygwin* | pw32* | os2* | cegcc*) 9732 # This hack is so that the source file can tell whether it is being 9733 # built for inclusion in a dll (and should export symbols for example). 9734 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9735 # (--disable-auto-import) libraries 9736 lt_prog_compiler_pic='-DDLL_EXPORT' 9737 case $host_os in 9738 os2*) 9739 lt_prog_compiler_static='$wl-static' 9740 ;; 9741 esac 9742 ;; 9743 9744 darwin* | rhapsody*) 9745 # PIC is the default on this platform 9746 # Common symbols not allowed in MH_DYLIB files 9747 lt_prog_compiler_pic='-fno-common' 9748 ;; 9749 9750 haiku*) 9751 # PIC is the default for Haiku. 9752 # The "-static" flag exists, but is broken. 9753 lt_prog_compiler_static= 9754 ;; 9755 9756 hpux*) 9757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9759 # sets the default TLS model and affects inlining. 9760 case $host_cpu in 9761 hppa*64*) 9762 # +Z the default 9763 ;; 9764 *) 9765 lt_prog_compiler_pic='-fPIC' 9766 ;; 9767 esac 9768 ;; 9769 9770 interix[3-9]*) 9771 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9772 # Instead, we relocate shared libraries at runtime. 9773 ;; 9774 9775 msdosdjgpp*) 9776 # Just because we use GCC doesn't mean we suddenly get shared libraries 9777 # on systems that don't support them. 9778 lt_prog_compiler_can_build_shared=no 9779 enable_shared=no 9780 ;; 9781 9782 *nto* | *qnx*) 9783 # QNX uses GNU C++, but need to define -shared option too, otherwise 9784 # it will coredump. 9785 lt_prog_compiler_pic='-fPIC -shared' 9786 ;; 9787 9788 sysv4*MP*) 9789 if test -d /usr/nec; then 9790 lt_prog_compiler_pic=-Kconform_pic 9791 fi 9792 ;; 9793 9794 *) 9795 lt_prog_compiler_pic='-fPIC' 9796 ;; 9797 esac 9798 9799 case $cc_basename in 9800 nvcc*) # Cuda Compiler Driver 2.2 9801 lt_prog_compiler_wl='-Xlinker ' 9802 if test -n "$lt_prog_compiler_pic"; then 9803 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9804 fi 9805 ;; 9806 esac 9807 else 9808 # PORTME Check for flag to pass linker flags through the system compiler. 9809 case $host_os in 9810 aix*) 9811 lt_prog_compiler_wl='-Wl,' 9812 if test ia64 = "$host_cpu"; then 9813 # AIX 5 now supports IA64 processor 9814 lt_prog_compiler_static='-Bstatic' 9815 else 9816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9817 fi 9818 ;; 9819 9820 darwin* | rhapsody*) 9821 # PIC is the default on this platform 9822 # Common symbols not allowed in MH_DYLIB files 9823 lt_prog_compiler_pic='-fno-common' 9824 case $cc_basename in 9825 nagfor*) 9826 # NAG Fortran compiler 9827 lt_prog_compiler_wl='-Wl,-Wl,,' 9828 lt_prog_compiler_pic='-PIC' 9829 lt_prog_compiler_static='-Bstatic' 9830 ;; 9831 esac 9832 ;; 9833 9834 mingw* | cygwin* | pw32* | os2* | cegcc*) 9835 # This hack is so that the source file can tell whether it is being 9836 # built for inclusion in a dll (and should export symbols for example). 9837 lt_prog_compiler_pic='-DDLL_EXPORT' 9838 case $host_os in 9839 os2*) 9840 lt_prog_compiler_static='$wl-static' 9841 ;; 9842 esac 9843 ;; 9844 9845 hpux9* | hpux10* | hpux11*) 9846 lt_prog_compiler_wl='-Wl,' 9847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9848 # not for PA HP-UX. 9849 case $host_cpu in 9850 hppa*64*|ia64*) 9851 # +Z the default 9852 ;; 9853 *) 9854 lt_prog_compiler_pic='+Z' 9855 ;; 9856 esac 9857 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9858 lt_prog_compiler_static='$wl-a ${wl}archive' 9859 ;; 9860 9861 irix5* | irix6* | nonstopux*) 9862 lt_prog_compiler_wl='-Wl,' 9863 # PIC (with -KPIC) is the default. 9864 lt_prog_compiler_static='-non_shared' 9865 ;; 9866 9867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9868 case $cc_basename in 9869 # old Intel for x86_64, which still supported -KPIC. 9870 ecc*) 9871 lt_prog_compiler_wl='-Wl,' 9872 lt_prog_compiler_pic='-KPIC' 9873 lt_prog_compiler_static='-static' 9874 ;; 9875 # flang / f18. f95 an alias for gfortran or flang on Debian 9876 flang* | f18* | f95*) 9877 lt_prog_compiler_wl='-Wl,' 9878 lt_prog_compiler_pic='-fPIC' 9879 lt_prog_compiler_static='-static' 9880 ;; 9881 # icc used to be incompatible with GCC. 9882 # ICC 10 doesn't accept -KPIC any more. 9883 icc* | ifort*) 9884 lt_prog_compiler_wl='-Wl,' 9885 lt_prog_compiler_pic='-fPIC' 9886 lt_prog_compiler_static='-static' 9887 ;; 9888 # Lahey Fortran 8.1. 9889 lf95*) 9890 lt_prog_compiler_wl='-Wl,' 9891 lt_prog_compiler_pic='--shared' 9892 lt_prog_compiler_static='--static' 9893 ;; 9894 nagfor*) 9895 # NAG Fortran compiler 9896 lt_prog_compiler_wl='-Wl,-Wl,,' 9897 lt_prog_compiler_pic='-PIC' 9898 lt_prog_compiler_static='-Bstatic' 9899 ;; 9900 tcc*) 9901 # Fabrice Bellard et al's Tiny C Compiler 9902 lt_prog_compiler_wl='-Wl,' 9903 lt_prog_compiler_pic='-fPIC' 9904 lt_prog_compiler_static='-static' 9905 ;; 9906 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9907 # Portland Group compilers (*not* the Pentium gcc compiler, 9908 # which looks to be a dead project) 9909 lt_prog_compiler_wl='-Wl,' 9910 lt_prog_compiler_pic='-fpic' 9911 lt_prog_compiler_static='-Bstatic' 9912 ;; 9913 ccc*) 9914 lt_prog_compiler_wl='-Wl,' 9915 # All Alpha code is PIC. 9916 lt_prog_compiler_static='-non_shared' 9917 ;; 9918 xl* | bgxl* | bgf* | mpixl*) 9919 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9920 lt_prog_compiler_wl='-Wl,' 9921 lt_prog_compiler_pic='-qpic' 9922 lt_prog_compiler_static='-qstaticlink' 9923 ;; 9924 *) 9925 case `$CC -V 2>&1 | sed 5q` in 9926 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9927 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9928 lt_prog_compiler_pic='-KPIC' 9929 lt_prog_compiler_static='-Bstatic' 9930 lt_prog_compiler_wl='' 9931 ;; 9932 *Sun\ F* | *Sun*Fortran*) 9933 lt_prog_compiler_pic='-KPIC' 9934 lt_prog_compiler_static='-Bstatic' 9935 lt_prog_compiler_wl='-Qoption ld ' 9936 ;; 9937 *Sun\ C*) 9938 # Sun C 5.9 9939 lt_prog_compiler_pic='-KPIC' 9940 lt_prog_compiler_static='-Bstatic' 9941 lt_prog_compiler_wl='-Wl,' 9942 ;; 9943 *Intel*\ [CF]*Compiler*) 9944 lt_prog_compiler_wl='-Wl,' 9945 lt_prog_compiler_pic='-fPIC' 9946 lt_prog_compiler_static='-static' 9947 ;; 9948 *Portland\ Group*) 9949 lt_prog_compiler_wl='-Wl,' 9950 lt_prog_compiler_pic='-fpic' 9951 lt_prog_compiler_static='-Bstatic' 9952 ;; 9953 esac 9954 ;; 9955 esac 9956 ;; 9957 9958 newsos6) 9959 lt_prog_compiler_pic='-KPIC' 9960 lt_prog_compiler_static='-Bstatic' 9961 ;; 9962 9963 *nto* | *qnx*) 9964 # QNX uses GNU C++, but need to define -shared option too, otherwise 9965 # it will coredump. 9966 lt_prog_compiler_pic='-fPIC -shared' 9967 ;; 9968 9969 osf3* | osf4* | osf5*) 9970 lt_prog_compiler_wl='-Wl,' 9971 # All OSF/1 code is PIC. 9972 lt_prog_compiler_static='-non_shared' 9973 ;; 9974 9975 rdos*) 9976 lt_prog_compiler_static='-non_shared' 9977 ;; 9978 9979 solaris*) 9980 lt_prog_compiler_pic='-KPIC' 9981 lt_prog_compiler_static='-Bstatic' 9982 case $cc_basename in 9983 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9984 lt_prog_compiler_wl='-Qoption ld ';; 9985 *) 9986 lt_prog_compiler_wl='-Wl,';; 9987 esac 9988 ;; 9989 9990 sunos4*) 9991 lt_prog_compiler_wl='-Qoption ld ' 9992 lt_prog_compiler_pic='-PIC' 9993 lt_prog_compiler_static='-Bstatic' 9994 ;; 9995 9996 sysv4 | sysv4.2uw2* | sysv4.3*) 9997 lt_prog_compiler_wl='-Wl,' 9998 lt_prog_compiler_pic='-KPIC' 9999 lt_prog_compiler_static='-Bstatic' 10000 ;; 10001 10002 sysv4*MP*) 10003 if test -d /usr/nec; then 10004 lt_prog_compiler_pic='-Kconform_pic' 10005 lt_prog_compiler_static='-Bstatic' 10006 fi 10007 ;; 10008 10009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10010 lt_prog_compiler_wl='-Wl,' 10011 lt_prog_compiler_pic='-KPIC' 10012 lt_prog_compiler_static='-Bstatic' 10013 ;; 10014 10015 unicos*) 10016 lt_prog_compiler_wl='-Wl,' 10017 lt_prog_compiler_can_build_shared=no 10018 ;; 10019 10020 uts4*) 10021 lt_prog_compiler_pic='-pic' 10022 lt_prog_compiler_static='-Bstatic' 10023 ;; 10024 10025 *) 10026 lt_prog_compiler_can_build_shared=no 10027 ;; 10028 esac 10029 fi 10030 10031case $host_os in 10032 # For platforms that do not support PIC, -DPIC is meaningless: 10033 *djgpp*) 10034 lt_prog_compiler_pic= 10035 ;; 10036 *) 10037 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10038 ;; 10039esac 10040 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10042$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10043if ${lt_cv_prog_compiler_pic+:} false; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10047fi 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10049$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10050lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10051 10052# 10053# Check to make sure the PIC flag actually works. 10054# 10055if test -n "$lt_prog_compiler_pic"; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10057$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10058if ${lt_cv_prog_compiler_pic_works+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 lt_cv_prog_compiler_pic_works=no 10062 ac_outfile=conftest.$ac_objext 10063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10064 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10065 # Insert the option either (1) after the last *FLAGS variable, or 10066 # (2) before a word containing "conftest.", or (3) at the end. 10067 # Note that $ac_compile itself does not contain backslashes and begins 10068 # with a dollar sign (not a hyphen), so the echo should work correctly. 10069 # The option is referenced via a variable to avoid confusing sed. 10070 lt_compile=`echo "$ac_compile" | $SED \ 10071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10073 -e 's:$: $lt_compiler_flag:'` 10074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10075 (eval "$lt_compile" 2>conftest.err) 10076 ac_status=$? 10077 cat conftest.err >&5 10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 if (exit $ac_status) && test -s "$ac_outfile"; then 10080 # The compiler can only warn and ignore the option if not recognized 10081 # So say no if there are warnings other than the usual output. 10082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10085 lt_cv_prog_compiler_pic_works=yes 10086 fi 10087 fi 10088 $RM conftest* 10089 10090fi 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10092$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10093 10094if test yes = "$lt_cv_prog_compiler_pic_works"; then 10095 case $lt_prog_compiler_pic in 10096 "" | " "*) ;; 10097 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10098 esac 10099else 10100 lt_prog_compiler_pic= 10101 lt_prog_compiler_can_build_shared=no 10102fi 10103 10104fi 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116# 10117# Check to make sure the static flag actually works. 10118# 10119wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10121$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10122if ${lt_cv_prog_compiler_static_works+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 lt_cv_prog_compiler_static_works=no 10126 save_LDFLAGS=$LDFLAGS 10127 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10128 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10129 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10130 # The linker can only warn and ignore the option if not recognized 10131 # So say no if there are warnings 10132 if test -s conftest.err; then 10133 # Append any errors to the config.log. 10134 cat conftest.err 1>&5 10135 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10137 if diff conftest.exp conftest.er2 >/dev/null; then 10138 lt_cv_prog_compiler_static_works=yes 10139 fi 10140 else 10141 lt_cv_prog_compiler_static_works=yes 10142 fi 10143 fi 10144 $RM -r conftest* 10145 LDFLAGS=$save_LDFLAGS 10146 10147fi 10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10149$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10150 10151if test yes = "$lt_cv_prog_compiler_static_works"; then 10152 : 10153else 10154 lt_prog_compiler_static= 10155fi 10156 10157 10158 10159 10160 10161 10162 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10164$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10165if ${lt_cv_prog_compiler_c_o+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 lt_cv_prog_compiler_c_o=no 10169 $RM -r conftest 2>/dev/null 10170 mkdir conftest 10171 cd conftest 10172 mkdir out 10173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10174 10175 lt_compiler_flag="-o out/conftest2.$ac_objext" 10176 # Insert the option either (1) after the last *FLAGS variable, or 10177 # (2) before a word containing "conftest.", or (3) at the end. 10178 # Note that $ac_compile itself does not contain backslashes and begins 10179 # with a dollar sign (not a hyphen), so the echo should work correctly. 10180 lt_compile=`echo "$ac_compile" | $SED \ 10181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10183 -e 's:$: $lt_compiler_flag:'` 10184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10185 (eval "$lt_compile" 2>out/conftest.err) 10186 ac_status=$? 10187 cat out/conftest.err >&5 10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10189 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10190 then 10191 # The compiler can only warn and ignore the option if not recognized 10192 # So say no if there are warnings 10193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10196 lt_cv_prog_compiler_c_o=yes 10197 fi 10198 fi 10199 chmod u+w . 2>&5 10200 $RM conftest* 10201 # SGI C++ compiler will create directory out/ii_files/ for 10202 # template instantiation 10203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10204 $RM out/* && rmdir out 10205 cd .. 10206 $RM -r conftest 10207 $RM conftest* 10208 10209fi 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10211$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10212 10213 10214 10215 10216 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10219$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10220if ${lt_cv_prog_compiler_c_o+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 lt_cv_prog_compiler_c_o=no 10224 $RM -r conftest 2>/dev/null 10225 mkdir conftest 10226 cd conftest 10227 mkdir out 10228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10229 10230 lt_compiler_flag="-o out/conftest2.$ac_objext" 10231 # Insert the option either (1) after the last *FLAGS variable, or 10232 # (2) before a word containing "conftest.", or (3) at the end. 10233 # Note that $ac_compile itself does not contain backslashes and begins 10234 # with a dollar sign (not a hyphen), so the echo should work correctly. 10235 lt_compile=`echo "$ac_compile" | $SED \ 10236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10238 -e 's:$: $lt_compiler_flag:'` 10239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10240 (eval "$lt_compile" 2>out/conftest.err) 10241 ac_status=$? 10242 cat out/conftest.err >&5 10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10244 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10245 then 10246 # The compiler can only warn and ignore the option if not recognized 10247 # So say no if there are warnings 10248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10251 lt_cv_prog_compiler_c_o=yes 10252 fi 10253 fi 10254 chmod u+w . 2>&5 10255 $RM conftest* 10256 # SGI C++ compiler will create directory out/ii_files/ for 10257 # template instantiation 10258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10259 $RM out/* && rmdir out 10260 cd .. 10261 $RM -r conftest 10262 $RM conftest* 10263 10264fi 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10266$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10267 10268 10269 10270 10271hard_links=nottested 10272if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10273 # do not overwrite the value of need_locks provided by the user 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10275$as_echo_n "checking if we can lock with hard links... " >&6; } 10276 hard_links=yes 10277 $RM conftest* 10278 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10279 touch conftest.a 10280 ln conftest.a conftest.b 2>&5 || hard_links=no 10281 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10283$as_echo "$hard_links" >&6; } 10284 if test no = "$hard_links"; then 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10286$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10287 need_locks=warn 10288 fi 10289else 10290 need_locks=no 10291fi 10292 10293 10294 10295 10296 10297 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10299$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10300 10301 runpath_var= 10302 allow_undefined_flag= 10303 always_export_symbols=no 10304 archive_cmds= 10305 archive_expsym_cmds= 10306 compiler_needs_object=no 10307 enable_shared_with_static_runtimes=no 10308 export_dynamic_flag_spec= 10309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10310 hardcode_automatic=no 10311 hardcode_direct=no 10312 hardcode_direct_absolute=no 10313 hardcode_libdir_flag_spec= 10314 hardcode_libdir_separator= 10315 hardcode_minus_L=no 10316 hardcode_shlibpath_var=unsupported 10317 inherit_rpath=no 10318 link_all_deplibs=unknown 10319 module_cmds= 10320 module_expsym_cmds= 10321 old_archive_from_new_cmds= 10322 old_archive_from_expsyms_cmds= 10323 thread_safe_flag_spec= 10324 whole_archive_flag_spec= 10325 # include_expsyms should be a list of space-separated symbols to be *always* 10326 # included in the symbol list 10327 include_expsyms= 10328 # exclude_expsyms can be an extended regexp of symbols to exclude 10329 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10330 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10331 # as well as any symbol that contains 'd'. 10332 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10334 # platforms (ab)use it in PIC code, but their linkers get confused if 10335 # the symbol is explicitly referenced. Since portable code cannot 10336 # rely on this symbol name, it's probably fine to never include it in 10337 # preloaded symbol tables. 10338 # Exclude shared library initialization/finalization symbols. 10339 extract_expsyms_cmds= 10340 10341 case $host_os in 10342 cygwin* | mingw* | pw32* | cegcc*) 10343 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10344 # When not using gcc, we currently assume that we are using 10345 # Microsoft Visual C++. 10346 if test yes != "$GCC"; then 10347 with_gnu_ld=no 10348 fi 10349 ;; 10350 interix*) 10351 # we just hope/assume this is gcc and not c89 (= MSVC++) 10352 with_gnu_ld=yes 10353 ;; 10354 openbsd* | bitrig*) 10355 with_gnu_ld=no 10356 ;; 10357 linux* | k*bsd*-gnu | gnu*) 10358 link_all_deplibs=no 10359 ;; 10360 esac 10361 10362 ld_shlibs=yes 10363 10364 # On some targets, GNU ld is compatible enough with the native linker 10365 # that we're better off using the native interface for both. 10366 lt_use_gnu_ld_interface=no 10367 if test yes = "$with_gnu_ld"; then 10368 case $host_os in 10369 aix*) 10370 # The AIX port of GNU ld has always aspired to compatibility 10371 # with the native linker. However, as the warning in the GNU ld 10372 # block says, versions before 2.19.5* couldn't really create working 10373 # shared libraries, regardless of the interface used. 10374 case `$LD -v 2>&1` in 10375 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10376 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10377 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10378 *) 10379 lt_use_gnu_ld_interface=yes 10380 ;; 10381 esac 10382 ;; 10383 *) 10384 lt_use_gnu_ld_interface=yes 10385 ;; 10386 esac 10387 fi 10388 10389 if test yes = "$lt_use_gnu_ld_interface"; then 10390 # If archive_cmds runs LD, not CC, wlarc should be empty 10391 wlarc='$wl' 10392 10393 # Set some defaults for GNU ld with shared library support. These 10394 # are reset later if shared libraries are not supported. Putting them 10395 # here allows them to be overridden if necessary. 10396 runpath_var=LD_RUN_PATH 10397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10398 export_dynamic_flag_spec='$wl--export-dynamic' 10399 # ancient GNU ld didn't support --whole-archive et. al. 10400 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10401 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10402 else 10403 whole_archive_flag_spec= 10404 fi 10405 supports_anon_versioning=no 10406 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10407 *GNU\ gold*) supports_anon_versioning=yes ;; 10408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10411 *\ 2.11.*) ;; # other 2.11 versions 10412 *) supports_anon_versioning=yes ;; 10413 esac 10414 10415 # See if GNU ld supports shared libraries. 10416 case $host_os in 10417 aix[3-9]*) 10418 # On AIX/PPC, the GNU linker is very broken 10419 if test ia64 != "$host_cpu"; then 10420 ld_shlibs=no 10421 cat <<_LT_EOF 1>&2 10422 10423*** Warning: the GNU linker, at least up to release 2.19, is reported 10424*** to be unable to reliably create shared libraries on AIX. 10425*** Therefore, libtool is disabling shared libraries support. If you 10426*** really care for shared libraries, you may want to install binutils 10427*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10428*** You will then need to restart the configuration process. 10429 10430_LT_EOF 10431 fi 10432 ;; 10433 10434 amigaos*) 10435 case $host_cpu in 10436 powerpc) 10437 # see comment about AmigaOS4 .so support 10438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10439 archive_expsym_cmds='' 10440 ;; 10441 m68k) 10442 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)' 10443 hardcode_libdir_flag_spec='-L$libdir' 10444 hardcode_minus_L=yes 10445 ;; 10446 esac 10447 ;; 10448 10449 beos*) 10450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10451 allow_undefined_flag=unsupported 10452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10453 # support --undefined. This deserves some investigation. FIXME 10454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10455 else 10456 ld_shlibs=no 10457 fi 10458 ;; 10459 10460 cygwin* | mingw* | pw32* | cegcc*) 10461 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10462 # as there is no search path for DLLs. 10463 hardcode_libdir_flag_spec='-L$libdir' 10464 export_dynamic_flag_spec='$wl--export-all-symbols' 10465 allow_undefined_flag=unsupported 10466 always_export_symbols=no 10467 enable_shared_with_static_runtimes=yes 10468 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' 10469 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10470 10471 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10473 # If the export-symbols file already is a .def file, use it as 10474 # is; otherwise, prepend EXPORTS... 10475 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10476 cp $export_symbols $output_objdir/$soname.def; 10477 else 10478 echo EXPORTS > $output_objdir/$soname.def; 10479 cat $export_symbols >> $output_objdir/$soname.def; 10480 fi~ 10481 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10482 else 10483 ld_shlibs=no 10484 fi 10485 ;; 10486 10487 haiku*) 10488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10489 link_all_deplibs=yes 10490 ;; 10491 10492 os2*) 10493 hardcode_libdir_flag_spec='-L$libdir' 10494 hardcode_minus_L=yes 10495 allow_undefined_flag=unsupported 10496 shrext_cmds=.dll 10497 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10498 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10499 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10500 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10501 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10502 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10503 emximp -o $lib $output_objdir/$libname.def' 10504 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10505 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10506 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10507 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10508 prefix_cmds="$SED"~ 10509 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10510 prefix_cmds="$prefix_cmds -e 1d"; 10511 fi~ 10512 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10513 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10515 emximp -o $lib $output_objdir/$libname.def' 10516 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10517 enable_shared_with_static_runtimes=yes 10518 ;; 10519 10520 interix[3-9]*) 10521 hardcode_direct=no 10522 hardcode_shlibpath_var=no 10523 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10524 export_dynamic_flag_spec='$wl-E' 10525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10526 # Instead, shared libraries are loaded at an image base (0x10000000 by 10527 # default) and relocated if they conflict, which is a slow very memory 10528 # consuming and fragmenting process. To avoid this, we pick a random, 10529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10530 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10532 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' 10533 ;; 10534 10535 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10536 tmp_diet=no 10537 if test linux-dietlibc = "$host_os"; then 10538 case $cc_basename in 10539 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10540 esac 10541 fi 10542 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10543 && test no = "$tmp_diet" 10544 then 10545 tmp_addflag=' $pic_flag' 10546 tmp_sharedflag='-shared' 10547 case $cc_basename,$host_cpu in 10548 pgcc*) # Portland Group C compiler 10549 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' 10550 tmp_addflag=' $pic_flag' 10551 ;; 10552 pgf77* | pgf90* | pgf95* | pgfortran*) 10553 # Portland Group f77 and f90 compilers 10554 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' 10555 tmp_addflag=' $pic_flag -Mnomain' ;; 10556 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10557 tmp_addflag=' -i_dynamic' ;; 10558 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10559 tmp_addflag=' -i_dynamic -nofor_main' ;; 10560 ifc* | ifort*) # Intel Fortran compiler 10561 tmp_addflag=' -nofor_main' ;; 10562 lf95*) # Lahey Fortran 8.1 10563 whole_archive_flag_spec= 10564 tmp_sharedflag='--shared' ;; 10565 nagfor*) # NAGFOR 5.3 10566 tmp_sharedflag='-Wl,-shared' ;; 10567 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10568 tmp_sharedflag='-qmkshrobj' 10569 tmp_addflag= ;; 10570 nvcc*) # Cuda Compiler Driver 2.2 10571 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' 10572 compiler_needs_object=yes 10573 ;; 10574 esac 10575 case `$CC -V 2>&1 | sed 5q` in 10576 *Sun\ C*) # Sun C 5.9 10577 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' 10578 compiler_needs_object=yes 10579 tmp_sharedflag='-G' ;; 10580 *Sun\ F*) # Sun Fortran 8.3 10581 tmp_sharedflag='-G' ;; 10582 esac 10583 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10584 10585 if test yes = "$supports_anon_versioning"; then 10586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10588 echo "local: *; };" >> $output_objdir/$libname.ver~ 10589 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10590 fi 10591 10592 case $cc_basename in 10593 tcc*) 10594 export_dynamic_flag_spec='-rdynamic' 10595 ;; 10596 xlf* | bgf* | bgxlf* | mpixlf*) 10597 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10598 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10599 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10600 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10601 if test yes = "$supports_anon_versioning"; then 10602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10604 echo "local: *; };" >> $output_objdir/$libname.ver~ 10605 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10606 fi 10607 ;; 10608 esac 10609 else 10610 ld_shlibs=no 10611 fi 10612 ;; 10613 10614 netbsd* | netbsdelf*-gnu) 10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10616 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10617 wlarc= 10618 else 10619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10621 fi 10622 ;; 10623 10624 solaris*) 10625 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10626 ld_shlibs=no 10627 cat <<_LT_EOF 1>&2 10628 10629*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10630*** create shared libraries on Solaris systems. Therefore, libtool 10631*** is disabling shared libraries support. We urge you to upgrade GNU 10632*** binutils to release 2.9.1 or newer. Another option is to modify 10633*** your PATH or compiler configuration so that the native linker is 10634*** used, and then restart. 10635 10636_LT_EOF 10637 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10639 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10640 else 10641 ld_shlibs=no 10642 fi 10643 ;; 10644 10645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10646 case `$LD -v 2>&1` in 10647 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10648 ld_shlibs=no 10649 cat <<_LT_EOF 1>&2 10650 10651*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10652*** reliably create shared libraries on SCO systems. Therefore, libtool 10653*** is disabling shared libraries support. We urge you to upgrade GNU 10654*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10655*** your PATH or compiler configuration so that the native linker is 10656*** used, and then restart. 10657 10658_LT_EOF 10659 ;; 10660 *) 10661 # For security reasons, it is highly recommended that you always 10662 # use absolute paths for naming shared libraries, and exclude the 10663 # DT_RUNPATH tag from executables and libraries. But doing so 10664 # requires that you compile everything twice, which is a pain. 10665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10669 else 10670 ld_shlibs=no 10671 fi 10672 ;; 10673 esac 10674 ;; 10675 10676 sunos4*) 10677 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10678 wlarc= 10679 hardcode_direct=yes 10680 hardcode_shlibpath_var=no 10681 ;; 10682 10683 *) 10684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10686 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10687 else 10688 ld_shlibs=no 10689 fi 10690 ;; 10691 esac 10692 10693 if test no = "$ld_shlibs"; then 10694 runpath_var= 10695 hardcode_libdir_flag_spec= 10696 export_dynamic_flag_spec= 10697 whole_archive_flag_spec= 10698 fi 10699 else 10700 # PORTME fill in a description of your system's linker (not GNU ld) 10701 case $host_os in 10702 aix3*) 10703 allow_undefined_flag=unsupported 10704 always_export_symbols=yes 10705 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' 10706 # Note: this linker hardcodes the directories in LIBPATH if there 10707 # are no directories specified by -L. 10708 hardcode_minus_L=yes 10709 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10710 # Neither direct hardcoding nor static linking is supported with a 10711 # broken collect2. 10712 hardcode_direct=unsupported 10713 fi 10714 ;; 10715 10716 aix[4-9]*) 10717 if test ia64 = "$host_cpu"; then 10718 # On IA64, the linker does run time linking by default, so we don't 10719 # have to do anything special. 10720 aix_use_runtimelinking=no 10721 exp_sym_flag='-Bexport' 10722 no_entry_flag= 10723 else 10724 # If we're using GNU nm, then we don't want the "-C" option. 10725 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10726 # Without the "-l" option, or with the "-B" option, AIX nm treats 10727 # weak defined symbols like other global defined symbols, whereas 10728 # GNU nm marks them as "W". 10729 # While the 'weak' keyword is ignored in the Export File, we need 10730 # it in the Import File for the 'aix-soname' feature, so we have 10731 # to replace the "-B" option with "-P" for AIX nm. 10732 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10733 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' 10734 else 10735 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' 10736 fi 10737 aix_use_runtimelinking=no 10738 10739 # Test if we are trying to use run time linking or normal 10740 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10741 # have runtime linking enabled, and use it for executables. 10742 # For shared libraries, we enable/disable runtime linking 10743 # depending on the kind of the shared library created - 10744 # when "with_aix_soname,aix_use_runtimelinking" is: 10745 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10746 # "aix,yes" lib.so shared, rtl:yes, for executables 10747 # lib.a static archive 10748 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10749 # lib.a(lib.so.V) shared, rtl:no, for executables 10750 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10751 # lib.a(lib.so.V) shared, rtl:no 10752 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10753 # lib.a static archive 10754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10755 for ld_flag in $LDFLAGS; do 10756 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10757 aix_use_runtimelinking=yes 10758 break 10759 fi 10760 done 10761 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10762 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10763 # so we don't have lib.a shared libs to link our executables. 10764 # We have to force runtime linking in this case. 10765 aix_use_runtimelinking=yes 10766 LDFLAGS="$LDFLAGS -Wl,-brtl" 10767 fi 10768 ;; 10769 esac 10770 10771 exp_sym_flag='-bexport' 10772 no_entry_flag='-bnoentry' 10773 fi 10774 10775 # When large executables or shared objects are built, AIX ld can 10776 # have problems creating the table of contents. If linking a library 10777 # or program results in "error TOC overflow" add -mminimal-toc to 10778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10780 10781 archive_cmds='' 10782 hardcode_direct=yes 10783 hardcode_direct_absolute=yes 10784 hardcode_libdir_separator=':' 10785 link_all_deplibs=yes 10786 file_list_spec='$wl-f,' 10787 case $with_aix_soname,$aix_use_runtimelinking in 10788 aix,*) ;; # traditional, no import file 10789 svr4,* | *,yes) # use import file 10790 # The Import File defines what to hardcode. 10791 hardcode_direct=no 10792 hardcode_direct_absolute=no 10793 ;; 10794 esac 10795 10796 if test yes = "$GCC"; then 10797 case $host_os in aix4.[012]|aix4.[012].*) 10798 # We only want to do this on AIX 4.2 and lower, the check 10799 # below for broken collect2 doesn't work under 4.3+ 10800 collect2name=`$CC -print-prog-name=collect2` 10801 if test -f "$collect2name" && 10802 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10803 then 10804 # We have reworked collect2 10805 : 10806 else 10807 # We have old collect2 10808 hardcode_direct=unsupported 10809 # It fails to find uninstalled libraries when the uninstalled 10810 # path is not listed in the libpath. Setting hardcode_minus_L 10811 # to unsupported forces relinking 10812 hardcode_minus_L=yes 10813 hardcode_libdir_flag_spec='-L$libdir' 10814 hardcode_libdir_separator= 10815 fi 10816 ;; 10817 esac 10818 shared_flag='-shared' 10819 if test yes = "$aix_use_runtimelinking"; then 10820 shared_flag="$shared_flag "'$wl-G' 10821 fi 10822 # Need to ensure runtime linking is disabled for the traditional 10823 # shared library, or the linker may eventually find shared libraries 10824 # /with/ Import File - we do not want to mix them. 10825 shared_flag_aix='-shared' 10826 shared_flag_svr4='-shared $wl-G' 10827 else 10828 # not using gcc 10829 if test ia64 = "$host_cpu"; then 10830 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10831 # chokes on -Wl,-G. The following line is correct: 10832 shared_flag='-G' 10833 else 10834 if test yes = "$aix_use_runtimelinking"; then 10835 shared_flag='$wl-G' 10836 else 10837 shared_flag='$wl-bM:SRE' 10838 fi 10839 shared_flag_aix='$wl-bM:SRE' 10840 shared_flag_svr4='$wl-G' 10841 fi 10842 fi 10843 10844 export_dynamic_flag_spec='$wl-bexpall' 10845 # It seems that -bexpall does not export symbols beginning with 10846 # underscore (_), so it is better to generate a list of symbols to export. 10847 always_export_symbols=yes 10848 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10849 # Warning - without using the other runtime loading flags (-brtl), 10850 # -berok will link without error, but may produce a broken library. 10851 allow_undefined_flag='-berok' 10852 # Determine the default libpath from the value encoded in an 10853 # empty executable. 10854 if test set = "${lt_cv_aix_libpath+set}"; then 10855 aix_libpath=$lt_cv_aix_libpath 10856else 10857 if ${lt_cv_aix_libpath_+:} false; then : 10858 $as_echo_n "(cached) " >&6 10859else 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862 10863int 10864main () 10865{ 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_link "$LINENO"; then : 10872 10873 lt_aix_libpath_sed=' 10874 /Import File Strings/,/^$/ { 10875 /^0/ { 10876 s/^0 *\([^ ]*\) *$/\1/ 10877 p 10878 } 10879 }' 10880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10881 # Check for a 64-bit object if we didn't find anything. 10882 if test -z "$lt_cv_aix_libpath_"; then 10883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10884 fi 10885fi 10886rm -f core conftest.err conftest.$ac_objext \ 10887 conftest$ac_exeext conftest.$ac_ext 10888 if test -z "$lt_cv_aix_libpath_"; then 10889 lt_cv_aix_libpath_=/usr/lib:/lib 10890 fi 10891 10892fi 10893 10894 aix_libpath=$lt_cv_aix_libpath_ 10895fi 10896 10897 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10898 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 10899 else 10900 if test ia64 = "$host_cpu"; then 10901 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10902 allow_undefined_flag="-z nodefs" 10903 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" 10904 else 10905 # Determine the default libpath from the value encoded in an 10906 # empty executable. 10907 if test set = "${lt_cv_aix_libpath+set}"; then 10908 aix_libpath=$lt_cv_aix_libpath 10909else 10910 if ${lt_cv_aix_libpath_+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912else 10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10914/* end confdefs.h. */ 10915 10916int 10917main () 10918{ 10919 10920 ; 10921 return 0; 10922} 10923_ACEOF 10924if ac_fn_c_try_link "$LINENO"; then : 10925 10926 lt_aix_libpath_sed=' 10927 /Import File Strings/,/^$/ { 10928 /^0/ { 10929 s/^0 *\([^ ]*\) *$/\1/ 10930 p 10931 } 10932 }' 10933 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10934 # Check for a 64-bit object if we didn't find anything. 10935 if test -z "$lt_cv_aix_libpath_"; then 10936 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10937 fi 10938fi 10939rm -f core conftest.err conftest.$ac_objext \ 10940 conftest$ac_exeext conftest.$ac_ext 10941 if test -z "$lt_cv_aix_libpath_"; then 10942 lt_cv_aix_libpath_=/usr/lib:/lib 10943 fi 10944 10945fi 10946 10947 aix_libpath=$lt_cv_aix_libpath_ 10948fi 10949 10950 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10951 # Warning - without using the other run time loading flags, 10952 # -berok will link without error, but may produce a broken library. 10953 no_undefined_flag=' $wl-bernotok' 10954 allow_undefined_flag=' $wl-berok' 10955 if test yes = "$with_gnu_ld"; then 10956 # We only use this code for GNU lds that support --whole-archive. 10957 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10958 else 10959 # Exported symbols can be pulled into shared objects from archives 10960 whole_archive_flag_spec='$convenience' 10961 fi 10962 archive_cmds_need_lc=yes 10963 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10964 # -brtl affects multiple linker settings, -berok does not and is overridden later 10965 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10966 if test svr4 != "$with_aix_soname"; then 10967 # This is similar to how AIX traditionally builds its shared libraries. 10968 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' 10969 fi 10970 if test aix != "$with_aix_soname"; then 10971 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' 10972 else 10973 # used by -dlpreopen to get the symbols 10974 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10975 fi 10976 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10977 fi 10978 fi 10979 ;; 10980 10981 amigaos*) 10982 case $host_cpu in 10983 powerpc) 10984 # see comment about AmigaOS4 .so support 10985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10986 archive_expsym_cmds='' 10987 ;; 10988 m68k) 10989 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)' 10990 hardcode_libdir_flag_spec='-L$libdir' 10991 hardcode_minus_L=yes 10992 ;; 10993 esac 10994 ;; 10995 10996 bsdi[45]*) 10997 export_dynamic_flag_spec=-rdynamic 10998 ;; 10999 11000 cygwin* | mingw* | pw32* | cegcc*) 11001 # When not using gcc, we currently assume that we are using 11002 # Microsoft Visual C++. 11003 # hardcode_libdir_flag_spec is actually meaningless, as there is 11004 # no search path for DLLs. 11005 case $cc_basename in 11006 cl*) 11007 # Native MSVC 11008 hardcode_libdir_flag_spec=' ' 11009 allow_undefined_flag=unsupported 11010 always_export_symbols=yes 11011 file_list_spec='@' 11012 # Tell ltmain to make .lib files, not .a files. 11013 libext=lib 11014 # Tell ltmain to make .dll files, not .so files. 11015 shrext_cmds=.dll 11016 # FIXME: Setting linknames here is a bad hack. 11017 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11018 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11019 cp "$export_symbols" "$output_objdir/$soname.def"; 11020 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11021 else 11022 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11023 fi~ 11024 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11025 linknames=' 11026 # The linker will not automatically build a static lib if we build a DLL. 11027 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11028 enable_shared_with_static_runtimes=yes 11029 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11031 # Don't use ranlib 11032 old_postinstall_cmds='chmod 644 $oldlib' 11033 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11034 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11035 case $lt_outputfile in 11036 *.exe|*.EXE) ;; 11037 *) 11038 lt_outputfile=$lt_outputfile.exe 11039 lt_tool_outputfile=$lt_tool_outputfile.exe 11040 ;; 11041 esac~ 11042 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11043 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11044 $RM "$lt_outputfile.manifest"; 11045 fi' 11046 ;; 11047 *) 11048 # Assume MSVC wrapper 11049 hardcode_libdir_flag_spec=' ' 11050 allow_undefined_flag=unsupported 11051 # Tell ltmain to make .lib files, not .a files. 11052 libext=lib 11053 # Tell ltmain to make .dll files, not .so files. 11054 shrext_cmds=.dll 11055 # FIXME: Setting linknames here is a bad hack. 11056 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11057 # The linker will automatically build a .lib file if we build a DLL. 11058 old_archive_from_new_cmds='true' 11059 # FIXME: Should let the user specify the lib program. 11060 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11061 enable_shared_with_static_runtimes=yes 11062 ;; 11063 esac 11064 ;; 11065 11066 darwin* | rhapsody*) 11067 11068 11069 archive_cmds_need_lc=no 11070 hardcode_direct=no 11071 hardcode_automatic=yes 11072 hardcode_shlibpath_var=unsupported 11073 if test yes = "$lt_cv_ld_force_load"; then 11074 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\"`' 11075 11076 else 11077 whole_archive_flag_spec='' 11078 fi 11079 link_all_deplibs=yes 11080 allow_undefined_flag=$_lt_dar_allow_undefined 11081 case $cc_basename in 11082 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11083 *) _lt_dar_can_shared=$GCC ;; 11084 esac 11085 if test yes = "$_lt_dar_can_shared"; then 11086 output_verbose_link_cmd=func_echo_all 11087 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11088 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11089 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" 11090 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" 11091 11092 else 11093 ld_shlibs=no 11094 fi 11095 11096 ;; 11097 11098 dgux*) 11099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11100 hardcode_libdir_flag_spec='-L$libdir' 11101 hardcode_shlibpath_var=no 11102 ;; 11103 11104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11105 # support. Future versions do this automatically, but an explicit c++rt0.o 11106 # does not break anything, and helps significantly (at the cost of a little 11107 # extra space). 11108 freebsd2.2*) 11109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11110 hardcode_libdir_flag_spec='-R$libdir' 11111 hardcode_direct=yes 11112 hardcode_shlibpath_var=no 11113 ;; 11114 11115 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11116 freebsd2.*) 11117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11118 hardcode_direct=yes 11119 hardcode_minus_L=yes 11120 hardcode_shlibpath_var=no 11121 ;; 11122 11123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11124 freebsd* | dragonfly*) 11125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11126 hardcode_libdir_flag_spec='-R$libdir' 11127 hardcode_direct=yes 11128 hardcode_shlibpath_var=no 11129 ;; 11130 11131 hpux9*) 11132 if test yes = "$GCC"; then 11133 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' 11134 else 11135 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' 11136 fi 11137 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11138 hardcode_libdir_separator=: 11139 hardcode_direct=yes 11140 11141 # hardcode_minus_L: Not really in the search PATH, 11142 # but as the default location of the library. 11143 hardcode_minus_L=yes 11144 export_dynamic_flag_spec='$wl-E' 11145 ;; 11146 11147 hpux10*) 11148 if test yes,no = "$GCC,$with_gnu_ld"; then 11149 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11150 else 11151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11152 fi 11153 if test no = "$with_gnu_ld"; then 11154 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11155 hardcode_libdir_separator=: 11156 hardcode_direct=yes 11157 hardcode_direct_absolute=yes 11158 export_dynamic_flag_spec='$wl-E' 11159 # hardcode_minus_L: Not really in the search PATH, 11160 # but as the default location of the library. 11161 hardcode_minus_L=yes 11162 fi 11163 ;; 11164 11165 hpux11*) 11166 if test yes,no = "$GCC,$with_gnu_ld"; then 11167 case $host_cpu in 11168 hppa*64*) 11169 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11170 ;; 11171 ia64*) 11172 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11173 ;; 11174 *) 11175 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11176 ;; 11177 esac 11178 else 11179 case $host_cpu in 11180 hppa*64*) 11181 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11182 ;; 11183 ia64*) 11184 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11185 ;; 11186 *) 11187 11188 # Older versions of the 11.00 compiler do not understand -b yet 11189 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11191$as_echo_n "checking if $CC understands -b... " >&6; } 11192if ${lt_cv_prog_compiler__b+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194else 11195 lt_cv_prog_compiler__b=no 11196 save_LDFLAGS=$LDFLAGS 11197 LDFLAGS="$LDFLAGS -b" 11198 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11200 # The linker can only warn and ignore the option if not recognized 11201 # So say no if there are warnings 11202 if test -s conftest.err; then 11203 # Append any errors to the config.log. 11204 cat conftest.err 1>&5 11205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11207 if diff conftest.exp conftest.er2 >/dev/null; then 11208 lt_cv_prog_compiler__b=yes 11209 fi 11210 else 11211 lt_cv_prog_compiler__b=yes 11212 fi 11213 fi 11214 $RM -r conftest* 11215 LDFLAGS=$save_LDFLAGS 11216 11217fi 11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11219$as_echo "$lt_cv_prog_compiler__b" >&6; } 11220 11221if test yes = "$lt_cv_prog_compiler__b"; then 11222 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11223else 11224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11225fi 11226 11227 ;; 11228 esac 11229 fi 11230 if test no = "$with_gnu_ld"; then 11231 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11232 hardcode_libdir_separator=: 11233 11234 case $host_cpu in 11235 hppa*64*|ia64*) 11236 hardcode_direct=no 11237 hardcode_shlibpath_var=no 11238 ;; 11239 *) 11240 hardcode_direct=yes 11241 hardcode_direct_absolute=yes 11242 export_dynamic_flag_spec='$wl-E' 11243 11244 # hardcode_minus_L: Not really in the search PATH, 11245 # but as the default location of the library. 11246 hardcode_minus_L=yes 11247 ;; 11248 esac 11249 fi 11250 ;; 11251 11252 irix5* | irix6* | nonstopux*) 11253 if test yes = "$GCC"; then 11254 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' 11255 # Try to use the -exported_symbol ld option, if it does not 11256 # work, assume that -exports_file does not work either and 11257 # implicitly export all symbols. 11258 # This should be the same for all languages, so no per-tag cache variable. 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11260$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11261if ${lt_cv_irix_exported_symbol+:} false; then : 11262 $as_echo_n "(cached) " >&6 11263else 11264 save_LDFLAGS=$LDFLAGS 11265 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11267/* end confdefs.h. */ 11268int foo (void) { return 0; } 11269_ACEOF 11270if ac_fn_c_try_link "$LINENO"; then : 11271 lt_cv_irix_exported_symbol=yes 11272else 11273 lt_cv_irix_exported_symbol=no 11274fi 11275rm -f core conftest.err conftest.$ac_objext \ 11276 conftest$ac_exeext conftest.$ac_ext 11277 LDFLAGS=$save_LDFLAGS 11278fi 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11280$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11281 if test yes = "$lt_cv_irix_exported_symbol"; then 11282 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' 11283 fi 11284 link_all_deplibs=no 11285 else 11286 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' 11287 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' 11288 fi 11289 archive_cmds_need_lc='no' 11290 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11291 hardcode_libdir_separator=: 11292 inherit_rpath=yes 11293 link_all_deplibs=yes 11294 ;; 11295 11296 linux*) 11297 case $cc_basename in 11298 tcc*) 11299 # Fabrice Bellard et al's Tiny C Compiler 11300 ld_shlibs=yes 11301 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11302 ;; 11303 esac 11304 ;; 11305 11306 netbsd* | netbsdelf*-gnu) 11307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11309 else 11310 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11311 fi 11312 hardcode_libdir_flag_spec='-R$libdir' 11313 hardcode_direct=yes 11314 hardcode_shlibpath_var=no 11315 ;; 11316 11317 newsos6) 11318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11319 hardcode_direct=yes 11320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11321 hardcode_libdir_separator=: 11322 hardcode_shlibpath_var=no 11323 ;; 11324 11325 *nto* | *qnx*) 11326 ;; 11327 11328 openbsd* | bitrig*) 11329 if test -f /usr/libexec/ld.so; then 11330 hardcode_direct=yes 11331 hardcode_shlibpath_var=no 11332 hardcode_direct_absolute=yes 11333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11336 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11337 export_dynamic_flag_spec='$wl-E' 11338 else 11339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11340 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11341 fi 11342 else 11343 ld_shlibs=no 11344 fi 11345 ;; 11346 11347 os2*) 11348 hardcode_libdir_flag_spec='-L$libdir' 11349 hardcode_minus_L=yes 11350 allow_undefined_flag=unsupported 11351 shrext_cmds=.dll 11352 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11353 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11354 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11355 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11356 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11357 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11358 emximp -o $lib $output_objdir/$libname.def' 11359 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11360 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11361 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11362 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11363 prefix_cmds="$SED"~ 11364 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11365 prefix_cmds="$prefix_cmds -e 1d"; 11366 fi~ 11367 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11368 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11369 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11370 emximp -o $lib $output_objdir/$libname.def' 11371 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11372 enable_shared_with_static_runtimes=yes 11373 ;; 11374 11375 osf3*) 11376 if test yes = "$GCC"; then 11377 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11378 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' 11379 else 11380 allow_undefined_flag=' -expect_unresolved \*' 11381 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' 11382 fi 11383 archive_cmds_need_lc='no' 11384 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11385 hardcode_libdir_separator=: 11386 ;; 11387 11388 osf4* | osf5*) # as osf3* with the addition of -msym flag 11389 if test yes = "$GCC"; then 11390 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11391 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' 11392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11393 else 11394 allow_undefined_flag=' -expect_unresolved \*' 11395 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' 11396 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~ 11397 $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' 11398 11399 # Both c and cxx compiler support -rpath directly 11400 hardcode_libdir_flag_spec='-rpath $libdir' 11401 fi 11402 archive_cmds_need_lc='no' 11403 hardcode_libdir_separator=: 11404 ;; 11405 11406 solaris*) 11407 no_undefined_flag=' -z defs' 11408 if test yes = "$GCC"; then 11409 wlarc='$wl' 11410 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11412 $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' 11413 else 11414 case `$CC -V 2>&1` in 11415 *"Compilers 5.0"*) 11416 wlarc='' 11417 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11419 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11420 ;; 11421 *) 11422 wlarc='$wl' 11423 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11425 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11426 ;; 11427 esac 11428 fi 11429 hardcode_libdir_flag_spec='-R$libdir' 11430 hardcode_shlibpath_var=no 11431 case $host_os in 11432 solaris2.[0-5] | solaris2.[0-5].*) ;; 11433 *) 11434 # The compiler driver will combine and reorder linker options, 11435 # but understands '-z linker_flag'. GCC discards it without '$wl', 11436 # but is careful enough not to reorder. 11437 # Supported since Solaris 2.6 (maybe 2.5.1?) 11438 if test yes = "$GCC"; then 11439 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11440 else 11441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11442 fi 11443 ;; 11444 esac 11445 link_all_deplibs=yes 11446 ;; 11447 11448 sunos4*) 11449 if test sequent = "$host_vendor"; then 11450 # Use $CC to link under sequent, because it throws in some extra .o 11451 # files that make .init and .fini sections work. 11452 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11453 else 11454 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11455 fi 11456 hardcode_libdir_flag_spec='-L$libdir' 11457 hardcode_direct=yes 11458 hardcode_minus_L=yes 11459 hardcode_shlibpath_var=no 11460 ;; 11461 11462 sysv4) 11463 case $host_vendor in 11464 sni) 11465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11466 hardcode_direct=yes # is this really true??? 11467 ;; 11468 siemens) 11469 ## LD is ld it makes a PLAMLIB 11470 ## CC just makes a GrossModule. 11471 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11472 reload_cmds='$CC -r -o $output$reload_objs' 11473 hardcode_direct=no 11474 ;; 11475 motorola) 11476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11477 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11478 ;; 11479 esac 11480 runpath_var='LD_RUN_PATH' 11481 hardcode_shlibpath_var=no 11482 ;; 11483 11484 sysv4.3*) 11485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11486 hardcode_shlibpath_var=no 11487 export_dynamic_flag_spec='-Bexport' 11488 ;; 11489 11490 sysv4*MP*) 11491 if test -d /usr/nec; then 11492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11493 hardcode_shlibpath_var=no 11494 runpath_var=LD_RUN_PATH 11495 hardcode_runpath_var=yes 11496 ld_shlibs=yes 11497 fi 11498 ;; 11499 11500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11501 no_undefined_flag='$wl-z,text' 11502 archive_cmds_need_lc=no 11503 hardcode_shlibpath_var=no 11504 runpath_var='LD_RUN_PATH' 11505 11506 if test yes = "$GCC"; then 11507 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11508 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11509 else 11510 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11511 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11512 fi 11513 ;; 11514 11515 sysv5* | sco3.2v5* | sco5v6*) 11516 # Note: We CANNOT use -z defs as we might desire, because we do not 11517 # link with -lc, and that would cause any symbols used from libc to 11518 # always be unresolved, which means just about no library would 11519 # ever link correctly. If we're not using GNU ld we use -z text 11520 # though, which does catch some bad symbols but isn't as heavy-handed 11521 # as -z defs. 11522 no_undefined_flag='$wl-z,text' 11523 allow_undefined_flag='$wl-z,nodefs' 11524 archive_cmds_need_lc=no 11525 hardcode_shlibpath_var=no 11526 hardcode_libdir_flag_spec='$wl-R,$libdir' 11527 hardcode_libdir_separator=':' 11528 link_all_deplibs=yes 11529 export_dynamic_flag_spec='$wl-Bexport' 11530 runpath_var='LD_RUN_PATH' 11531 11532 if test yes = "$GCC"; then 11533 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11534 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11535 else 11536 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11537 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11538 fi 11539 ;; 11540 11541 uts4*) 11542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11543 hardcode_libdir_flag_spec='-L$libdir' 11544 hardcode_shlibpath_var=no 11545 ;; 11546 11547 *) 11548 ld_shlibs=no 11549 ;; 11550 esac 11551 11552 if test sni = "$host_vendor"; then 11553 case $host in 11554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11555 export_dynamic_flag_spec='$wl-Blargedynsym' 11556 ;; 11557 esac 11558 fi 11559 fi 11560 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11562$as_echo "$ld_shlibs" >&6; } 11563test no = "$ld_shlibs" && can_build_shared=no 11564 11565with_gnu_ld=$with_gnu_ld 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581# 11582# Do we need to explicitly link libc? 11583# 11584case "x$archive_cmds_need_lc" in 11585x|xyes) 11586 # Assume -lc should be added 11587 archive_cmds_need_lc=yes 11588 11589 if test yes,yes = "$GCC,$enable_shared"; then 11590 case $archive_cmds in 11591 *'~'*) 11592 # FIXME: we may have to deal with multi-command sequences. 11593 ;; 11594 '$CC '*) 11595 # Test whether the compiler implicitly links with -lc since on some 11596 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11597 # to ld, don't add -lc before -lgcc. 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11599$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11600if ${lt_cv_archive_cmds_need_lc+:} false; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 $RM conftest* 11604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11605 11606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11607 (eval $ac_compile) 2>&5 11608 ac_status=$? 11609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11610 test $ac_status = 0; } 2>conftest.err; then 11611 soname=conftest 11612 lib=conftest 11613 libobjs=conftest.$ac_objext 11614 deplibs= 11615 wl=$lt_prog_compiler_wl 11616 pic_flag=$lt_prog_compiler_pic 11617 compiler_flags=-v 11618 linker_flags=-v 11619 verstring= 11620 output_objdir=. 11621 libname=conftest 11622 lt_save_allow_undefined_flag=$allow_undefined_flag 11623 allow_undefined_flag= 11624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11626 ac_status=$? 11627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11628 test $ac_status = 0; } 11629 then 11630 lt_cv_archive_cmds_need_lc=no 11631 else 11632 lt_cv_archive_cmds_need_lc=yes 11633 fi 11634 allow_undefined_flag=$lt_save_allow_undefined_flag 11635 else 11636 cat conftest.err 1>&5 11637 fi 11638 $RM conftest* 11639 11640fi 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11642$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11643 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11644 ;; 11645 esac 11646 fi 11647 ;; 11648esac 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11802$as_echo_n "checking dynamic linker characteristics... " >&6; } 11803 11804if test yes = "$GCC"; then 11805 case $host_os in 11806 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11807 *) lt_awk_arg='/^libraries:/' ;; 11808 esac 11809 case $host_os in 11810 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11811 *) lt_sed_strip_eq='s|=/|/|g' ;; 11812 esac 11813 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11814 case $lt_search_path_spec in 11815 *\;*) 11816 # if the path contains ";" then we assume it to be the separator 11817 # otherwise default to the standard path separator (i.e. ":") - it is 11818 # assumed that no part of a normal pathname contains ";" but that should 11819 # okay in the real world where ";" in dirpaths is itself problematic. 11820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11821 ;; 11822 *) 11823 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11824 ;; 11825 esac 11826 # Ok, now we have the path, separated by spaces, we can step through it 11827 # and add multilib dir if necessary... 11828 lt_tmp_lt_search_path_spec= 11829 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11830 # ...but if some path component already ends with the multilib dir we assume 11831 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11832 case "$lt_multi_os_dir; $lt_search_path_spec " in 11833 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11834 lt_multi_os_dir= 11835 ;; 11836 esac 11837 for lt_sys_path in $lt_search_path_spec; do 11838 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11839 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11840 elif test -n "$lt_multi_os_dir"; then 11841 test -d "$lt_sys_path" && \ 11842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11843 fi 11844 done 11845 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11846BEGIN {RS = " "; FS = "/|\n";} { 11847 lt_foo = ""; 11848 lt_count = 0; 11849 for (lt_i = NF; lt_i > 0; lt_i--) { 11850 if ($lt_i != "" && $lt_i != ".") { 11851 if ($lt_i == "..") { 11852 lt_count++; 11853 } else { 11854 if (lt_count == 0) { 11855 lt_foo = "/" $lt_i lt_foo; 11856 } else { 11857 lt_count--; 11858 } 11859 } 11860 } 11861 } 11862 if (lt_foo != "") { lt_freq[lt_foo]++; } 11863 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11864}'` 11865 # AWK program above erroneously prepends '/' to C:/dos/paths 11866 # for these hosts. 11867 case $host_os in 11868 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11869 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11870 esac 11871 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11872else 11873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11874fi 11875library_names_spec= 11876libname_spec='lib$name' 11877soname_spec= 11878shrext_cmds=.so 11879postinstall_cmds= 11880postuninstall_cmds= 11881finish_cmds= 11882finish_eval= 11883shlibpath_var= 11884shlibpath_overrides_runpath=unknown 11885version_type=none 11886dynamic_linker="$host_os ld.so" 11887sys_lib_dlsearch_path_spec="/lib /usr/lib" 11888need_lib_prefix=unknown 11889hardcode_into_libs=no 11890 11891# when you set need_version to no, make sure it does not cause -set_version 11892# flags to be left without arguments 11893need_version=unknown 11894 11895 11896 11897case $host_os in 11898aix3*) 11899 version_type=linux # correct to gnu/linux during the next big refactor 11900 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11901 shlibpath_var=LIBPATH 11902 11903 # AIX 3 has no versioning support, so we append a major version to the name. 11904 soname_spec='$libname$release$shared_ext$major' 11905 ;; 11906 11907aix[4-9]*) 11908 version_type=linux # correct to gnu/linux during the next big refactor 11909 need_lib_prefix=no 11910 need_version=no 11911 hardcode_into_libs=yes 11912 if test ia64 = "$host_cpu"; then 11913 # AIX 5 supports IA64 11914 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 else 11917 # With GCC up to 2.95.x, collect2 would create an import file 11918 # for dependence libraries. The import file would start with 11919 # the line '#! .'. This would cause the generated library to 11920 # depend on '.', always an invalid library. This was fixed in 11921 # development snapshots of GCC prior to 3.0. 11922 case $host_os in 11923 aix4 | aix4.[01] | aix4.[01].*) 11924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11925 echo ' yes ' 11926 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11927 : 11928 else 11929 can_build_shared=no 11930 fi 11931 ;; 11932 esac 11933 # Using Import Files as archive members, it is possible to support 11934 # filename-based versioning of shared library archives on AIX. While 11935 # this would work for both with and without runtime linking, it will 11936 # prevent static linking of such archives. So we do filename-based 11937 # shared library versioning with .so extension only, which is used 11938 # when both runtime linking and shared linking is enabled. 11939 # Unfortunately, runtime linking may impact performance, so we do 11940 # not want this to be the default eventually. Also, we use the 11941 # versioned .so libs for executables only if there is the -brtl 11942 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11943 # To allow for filename-based versioning support, we need to create 11944 # libNAME.so.V as an archive file, containing: 11945 # *) an Import File, referring to the versioned filename of the 11946 # archive as well as the shared archive member, telling the 11947 # bitwidth (32 or 64) of that shared object, and providing the 11948 # list of exported symbols of that shared object, eventually 11949 # decorated with the 'weak' keyword 11950 # *) the shared object with the F_LOADONLY flag set, to really avoid 11951 # it being seen by the linker. 11952 # At run time we better use the real file rather than another symlink, 11953 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11954 11955 case $with_aix_soname,$aix_use_runtimelinking in 11956 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11957 # soname into executable. Probably we can add versioning support to 11958 # collect2, so additional links can be useful in future. 11959 aix,yes) # traditional libtool 11960 dynamic_linker='AIX unversionable lib.so' 11961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11962 # instead of lib<name>.a to let people know that these are not 11963 # typical AIX shared libraries. 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11965 ;; 11966 aix,no) # traditional AIX only 11967 dynamic_linker='AIX lib.a(lib.so.V)' 11968 # We preserve .a as extension for shared libraries through AIX4.2 11969 # and later when we are not doing run time linking. 11970 library_names_spec='$libname$release.a $libname.a' 11971 soname_spec='$libname$release$shared_ext$major' 11972 ;; 11973 svr4,*) # full svr4 only 11974 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11975 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11976 # We do not specify a path in Import Files, so LIBPATH fires. 11977 shlibpath_overrides_runpath=yes 11978 ;; 11979 *,yes) # both, prefer svr4 11980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11982 # unpreferred sharedlib libNAME.a needs extra handling 11983 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"' 11984 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"' 11985 # We do not specify a path in Import Files, so LIBPATH fires. 11986 shlibpath_overrides_runpath=yes 11987 ;; 11988 *,no) # both, prefer aix 11989 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11990 library_names_spec='$libname$release.a $libname.a' 11991 soname_spec='$libname$release$shared_ext$major' 11992 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11993 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)' 11994 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"' 11995 ;; 11996 esac 11997 shlibpath_var=LIBPATH 11998 fi 11999 ;; 12000 12001amigaos*) 12002 case $host_cpu in 12003 powerpc) 12004 # Since July 2007 AmigaOS4 officially supports .so libraries. 12005 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12007 ;; 12008 m68k) 12009 library_names_spec='$libname.ixlibrary $libname.a' 12010 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12011 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' 12012 ;; 12013 esac 12014 ;; 12015 12016beos*) 12017 library_names_spec='$libname$shared_ext' 12018 dynamic_linker="$host_os ld.so" 12019 shlibpath_var=LIBRARY_PATH 12020 ;; 12021 12022bsdi[45]*) 12023 version_type=linux # correct to gnu/linux during the next big refactor 12024 need_version=no 12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12026 soname_spec='$libname$release$shared_ext$major' 12027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12028 shlibpath_var=LD_LIBRARY_PATH 12029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12031 # the default ld.so.conf also contains /usr/contrib/lib and 12032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12033 # libtool to hard-code these into programs 12034 ;; 12035 12036cygwin* | mingw* | pw32* | cegcc*) 12037 version_type=windows 12038 shrext_cmds=.dll 12039 need_version=no 12040 need_lib_prefix=no 12041 12042 case $GCC,$cc_basename in 12043 yes,*) 12044 # gcc 12045 library_names_spec='$libname.dll.a' 12046 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12047 postinstall_cmds='base_file=`basename \$file`~ 12048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12049 dldir=$destdir/`dirname \$dlpath`~ 12050 test -d \$dldir || mkdir -p \$dldir~ 12051 $install_prog $dir/$dlname \$dldir/$dlname~ 12052 chmod a+x \$dldir/$dlname~ 12053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12055 fi' 12056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12057 dlpath=$dir/\$dldll~ 12058 $RM \$dlpath' 12059 shlibpath_overrides_runpath=yes 12060 12061 case $host_os in 12062 cygwin*) 12063 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12064 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12065 12066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12067 ;; 12068 mingw* | cegcc*) 12069 # MinGW DLLs use traditional 'lib' prefix 12070 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12071 ;; 12072 pw32*) 12073 # pw32 DLLs use 'pw' prefix rather than 'lib' 12074 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12075 ;; 12076 esac 12077 dynamic_linker='Win32 ld.exe' 12078 ;; 12079 12080 *,cl*) 12081 # Native MSVC 12082 libname_spec='$name' 12083 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12084 library_names_spec='$libname.dll.lib' 12085 12086 case $build_os in 12087 mingw*) 12088 sys_lib_search_path_spec= 12089 lt_save_ifs=$IFS 12090 IFS=';' 12091 for lt_path in $LIB 12092 do 12093 IFS=$lt_save_ifs 12094 # Let DOS variable expansion print the short 8.3 style file name. 12095 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12096 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12097 done 12098 IFS=$lt_save_ifs 12099 # Convert to MSYS style. 12100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12101 ;; 12102 cygwin*) 12103 # Convert to unix form, then to dos form, then back to unix form 12104 # but this time dos style (no spaces!) so that the unix form looks 12105 # like /cygdrive/c/PROGRA~1:/cygdr... 12106 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12107 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12108 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12109 ;; 12110 *) 12111 sys_lib_search_path_spec=$LIB 12112 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12113 # It is most probably a Windows format PATH. 12114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12115 else 12116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12117 fi 12118 # FIXME: find the short name or the path components, as spaces are 12119 # common. (e.g. "Program Files" -> "PROGRA~1") 12120 ;; 12121 esac 12122 12123 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12124 postinstall_cmds='base_file=`basename \$file`~ 12125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12126 dldir=$destdir/`dirname \$dlpath`~ 12127 test -d \$dldir || mkdir -p \$dldir~ 12128 $install_prog $dir/$dlname \$dldir/$dlname' 12129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12130 dlpath=$dir/\$dldll~ 12131 $RM \$dlpath' 12132 shlibpath_overrides_runpath=yes 12133 dynamic_linker='Win32 link.exe' 12134 ;; 12135 12136 *) 12137 # Assume MSVC wrapper 12138 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12139 dynamic_linker='Win32 ld.exe' 12140 ;; 12141 esac 12142 # FIXME: first we should search . and the directory the executable is in 12143 shlibpath_var=PATH 12144 ;; 12145 12146darwin* | rhapsody*) 12147 dynamic_linker="$host_os dyld" 12148 version_type=darwin 12149 need_lib_prefix=no 12150 need_version=no 12151 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12152 soname_spec='$libname$release$major$shared_ext' 12153 shlibpath_overrides_runpath=yes 12154 shlibpath_var=DYLD_LIBRARY_PATH 12155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12156 12157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12159 ;; 12160 12161dgux*) 12162 version_type=linux # correct to gnu/linux during the next big refactor 12163 need_lib_prefix=no 12164 need_version=no 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 shlibpath_var=LD_LIBRARY_PATH 12168 ;; 12169 12170freebsd* | dragonfly*) 12171 # DragonFly does not have aout. When/if they implement a new 12172 # versioning mechanism, adjust this. 12173 if test -x /usr/bin/objformat; then 12174 objformat=`/usr/bin/objformat` 12175 else 12176 case $host_os in 12177 freebsd[23].*) objformat=aout ;; 12178 *) objformat=elf ;; 12179 esac 12180 fi 12181 version_type=freebsd-$objformat 12182 case $version_type in 12183 freebsd-elf*) 12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12185 soname_spec='$libname$release$shared_ext$major' 12186 need_version=no 12187 need_lib_prefix=no 12188 ;; 12189 freebsd-*) 12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12191 need_version=yes 12192 ;; 12193 esac 12194 shlibpath_var=LD_LIBRARY_PATH 12195 case $host_os in 12196 freebsd2.*) 12197 shlibpath_overrides_runpath=yes 12198 ;; 12199 freebsd3.[01]* | freebsdelf3.[01]*) 12200 shlibpath_overrides_runpath=yes 12201 hardcode_into_libs=yes 12202 ;; 12203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12205 shlibpath_overrides_runpath=no 12206 hardcode_into_libs=yes 12207 ;; 12208 *) # from 4.6 on, and DragonFly 12209 shlibpath_overrides_runpath=yes 12210 hardcode_into_libs=yes 12211 ;; 12212 esac 12213 ;; 12214 12215haiku*) 12216 version_type=linux # correct to gnu/linux during the next big refactor 12217 need_lib_prefix=no 12218 need_version=no 12219 dynamic_linker="$host_os runtime_loader" 12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12221 soname_spec='$libname$release$shared_ext$major' 12222 shlibpath_var=LIBRARY_PATH 12223 shlibpath_overrides_runpath=no 12224 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12225 hardcode_into_libs=yes 12226 ;; 12227 12228hpux9* | hpux10* | hpux11*) 12229 # Give a soname corresponding to the major version so that dld.sl refuses to 12230 # link against other versions. 12231 version_type=sunos 12232 need_lib_prefix=no 12233 need_version=no 12234 case $host_cpu in 12235 ia64*) 12236 shrext_cmds='.so' 12237 hardcode_into_libs=yes 12238 dynamic_linker="$host_os dld.so" 12239 shlibpath_var=LD_LIBRARY_PATH 12240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12242 soname_spec='$libname$release$shared_ext$major' 12243 if test 32 = "$HPUX_IA64_MODE"; then 12244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12245 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12246 else 12247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12248 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12249 fi 12250 ;; 12251 hppa*64*) 12252 shrext_cmds='.sl' 12253 hardcode_into_libs=yes 12254 dynamic_linker="$host_os dld.sl" 12255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12258 soname_spec='$libname$release$shared_ext$major' 12259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12261 ;; 12262 *) 12263 shrext_cmds='.sl' 12264 dynamic_linker="$host_os dld.sl" 12265 shlibpath_var=SHLIB_PATH 12266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12268 soname_spec='$libname$release$shared_ext$major' 12269 ;; 12270 esac 12271 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12272 postinstall_cmds='chmod 555 $lib' 12273 # or fails outright, so override atomically: 12274 install_override_mode=555 12275 ;; 12276 12277interix[3-9]*) 12278 version_type=linux # correct to gnu/linux during the next big refactor 12279 need_lib_prefix=no 12280 need_version=no 12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12282 soname_spec='$libname$release$shared_ext$major' 12283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12284 shlibpath_var=LD_LIBRARY_PATH 12285 shlibpath_overrides_runpath=no 12286 hardcode_into_libs=yes 12287 ;; 12288 12289irix5* | irix6* | nonstopux*) 12290 case $host_os in 12291 nonstopux*) version_type=nonstopux ;; 12292 *) 12293 if test yes = "$lt_cv_prog_gnu_ld"; then 12294 version_type=linux # correct to gnu/linux during the next big refactor 12295 else 12296 version_type=irix 12297 fi ;; 12298 esac 12299 need_lib_prefix=no 12300 need_version=no 12301 soname_spec='$libname$release$shared_ext$major' 12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12303 case $host_os in 12304 irix5* | nonstopux*) 12305 libsuff= shlibsuff= 12306 ;; 12307 *) 12308 case $LD in # libtool.m4 will add one of these switches to LD 12309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12310 libsuff= shlibsuff= libmagic=32-bit;; 12311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12312 libsuff=32 shlibsuff=N32 libmagic=N32;; 12313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12314 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12315 *) libsuff= shlibsuff= libmagic=never-match;; 12316 esac 12317 ;; 12318 esac 12319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12320 shlibpath_overrides_runpath=no 12321 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12322 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12323 hardcode_into_libs=yes 12324 ;; 12325 12326# No shared lib support for Linux oldld, aout, or coff. 12327linux*oldld* | linux*aout* | linux*coff*) 12328 dynamic_linker=no 12329 ;; 12330 12331linux*android*) 12332 version_type=none # Android doesn't support versioned libraries. 12333 need_lib_prefix=no 12334 need_version=no 12335 library_names_spec='$libname$release$shared_ext' 12336 soname_spec='$libname$release$shared_ext' 12337 finish_cmds= 12338 shlibpath_var=LD_LIBRARY_PATH 12339 shlibpath_overrides_runpath=yes 12340 12341 # This implies no fast_install, which is unacceptable. 12342 # Some rework will be needed to allow for fast_install 12343 # before this can be enabled. 12344 hardcode_into_libs=yes 12345 12346 dynamic_linker='Android linker' 12347 # Don't embed -rpath directories since the linker doesn't support them. 12348 hardcode_libdir_flag_spec='-L$libdir' 12349 ;; 12350 12351# This must be glibc/ELF. 12352linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12353 version_type=linux # correct to gnu/linux during the next big refactor 12354 need_lib_prefix=no 12355 need_version=no 12356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12357 soname_spec='$libname$release$shared_ext$major' 12358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12359 shlibpath_var=LD_LIBRARY_PATH 12360 shlibpath_overrides_runpath=no 12361 12362 # Some binutils ld are patched to set DT_RUNPATH 12363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 lt_cv_shlibpath_overrides_runpath=no 12367 save_LDFLAGS=$LDFLAGS 12368 save_libdir=$libdir 12369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12372/* end confdefs.h. */ 12373 12374int 12375main () 12376{ 12377 12378 ; 12379 return 0; 12380} 12381_ACEOF 12382if ac_fn_c_try_link "$LINENO"; then : 12383 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12384 lt_cv_shlibpath_overrides_runpath=yes 12385fi 12386fi 12387rm -f core conftest.err conftest.$ac_objext \ 12388 conftest$ac_exeext conftest.$ac_ext 12389 LDFLAGS=$save_LDFLAGS 12390 libdir=$save_libdir 12391 12392fi 12393 12394 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12395 12396 # This implies no fast_install, which is unacceptable. 12397 # Some rework will be needed to allow for fast_install 12398 # before this can be enabled. 12399 hardcode_into_libs=yes 12400 12401 # Ideally, we could use ldconfig to report *all* directores which are 12402 # searched for libraries, however this is still not possible. Aside from not 12403 # being certain /sbin/ldconfig is available, command 12404 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12405 # even though it is searched at run-time. Try to do the best guess by 12406 # appending ld.so.conf contents (and includes) to the search path. 12407 if test -f /etc/ld.so.conf; then 12408 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' ' '` 12409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12410 fi 12411 12412 # We used to test for /lib/ld.so.1 and disable shared libraries on 12413 # powerpc, because MkLinux only supported shared libraries with the 12414 # GNU dynamic linker. Since this was broken with cross compilers, 12415 # most powerpc-linux boxes support dynamic linking these days and 12416 # people can always --disable-shared, the test was removed, and we 12417 # assume the GNU/Linux dynamic linker is in use. 12418 dynamic_linker='GNU/Linux ld.so' 12419 ;; 12420 12421netbsdelf*-gnu) 12422 version_type=linux 12423 need_lib_prefix=no 12424 need_version=no 12425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12426 soname_spec='${libname}${release}${shared_ext}$major' 12427 shlibpath_var=LD_LIBRARY_PATH 12428 shlibpath_overrides_runpath=no 12429 hardcode_into_libs=yes 12430 dynamic_linker='NetBSD ld.elf_so' 12431 ;; 12432 12433netbsd*) 12434 version_type=sunos 12435 need_lib_prefix=no 12436 need_version=no 12437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12440 dynamic_linker='NetBSD (a.out) ld.so' 12441 else 12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12443 soname_spec='$libname$release$shared_ext$major' 12444 dynamic_linker='NetBSD ld.elf_so' 12445 fi 12446 shlibpath_var=LD_LIBRARY_PATH 12447 shlibpath_overrides_runpath=yes 12448 hardcode_into_libs=yes 12449 ;; 12450 12451newsos6) 12452 version_type=linux # correct to gnu/linux during the next big refactor 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 shlibpath_var=LD_LIBRARY_PATH 12455 shlibpath_overrides_runpath=yes 12456 ;; 12457 12458*nto* | *qnx*) 12459 version_type=qnx 12460 need_lib_prefix=no 12461 need_version=no 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12463 soname_spec='$libname$release$shared_ext$major' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 shlibpath_overrides_runpath=no 12466 hardcode_into_libs=yes 12467 dynamic_linker='ldqnx.so' 12468 ;; 12469 12470openbsd* | bitrig*) 12471 version_type=sunos 12472 sys_lib_dlsearch_path_spec=/usr/lib 12473 need_lib_prefix=no 12474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12475 need_version=no 12476 else 12477 need_version=yes 12478 fi 12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12481 shlibpath_var=LD_LIBRARY_PATH 12482 shlibpath_overrides_runpath=yes 12483 ;; 12484 12485os2*) 12486 libname_spec='$name' 12487 version_type=windows 12488 shrext_cmds=.dll 12489 need_version=no 12490 need_lib_prefix=no 12491 # OS/2 can only load a DLL with a base name of 8 characters or less. 12492 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12493 v=$($ECHO $release$versuffix | tr -d .-); 12494 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12495 $ECHO $n$v`$shared_ext' 12496 library_names_spec='${libname}_dll.$libext' 12497 dynamic_linker='OS/2 ld.exe' 12498 shlibpath_var=BEGINLIBPATH 12499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12501 postinstall_cmds='base_file=`basename \$file`~ 12502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12503 dldir=$destdir/`dirname \$dlpath`~ 12504 test -d \$dldir || mkdir -p \$dldir~ 12505 $install_prog $dir/$dlname \$dldir/$dlname~ 12506 chmod a+x \$dldir/$dlname~ 12507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12509 fi' 12510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12511 dlpath=$dir/\$dldll~ 12512 $RM \$dlpath' 12513 ;; 12514 12515osf3* | osf4* | osf5*) 12516 version_type=osf 12517 need_lib_prefix=no 12518 need_version=no 12519 soname_spec='$libname$release$shared_ext$major' 12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12524 ;; 12525 12526rdos*) 12527 dynamic_linker=no 12528 ;; 12529 12530solaris*) 12531 version_type=linux # correct to gnu/linux during the next big refactor 12532 need_lib_prefix=no 12533 need_version=no 12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12535 soname_spec='$libname$release$shared_ext$major' 12536 shlibpath_var=LD_LIBRARY_PATH 12537 shlibpath_overrides_runpath=yes 12538 hardcode_into_libs=yes 12539 # ldd complains unless libraries are executable 12540 postinstall_cmds='chmod +x $lib' 12541 ;; 12542 12543sunos4*) 12544 version_type=sunos 12545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12547 shlibpath_var=LD_LIBRARY_PATH 12548 shlibpath_overrides_runpath=yes 12549 if test yes = "$with_gnu_ld"; then 12550 need_lib_prefix=no 12551 fi 12552 need_version=yes 12553 ;; 12554 12555sysv4 | sysv4.3*) 12556 version_type=linux # correct to gnu/linux during the next big refactor 12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12558 soname_spec='$libname$release$shared_ext$major' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 case $host_vendor in 12561 sni) 12562 shlibpath_overrides_runpath=no 12563 need_lib_prefix=no 12564 runpath_var=LD_RUN_PATH 12565 ;; 12566 siemens) 12567 need_lib_prefix=no 12568 ;; 12569 motorola) 12570 need_lib_prefix=no 12571 need_version=no 12572 shlibpath_overrides_runpath=no 12573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12574 ;; 12575 esac 12576 ;; 12577 12578sysv4*MP*) 12579 if test -d /usr/nec; then 12580 version_type=linux # correct to gnu/linux during the next big refactor 12581 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12582 soname_spec='$libname$shared_ext.$major' 12583 shlibpath_var=LD_LIBRARY_PATH 12584 fi 12585 ;; 12586 12587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12588 version_type=sco 12589 need_lib_prefix=no 12590 need_version=no 12591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12592 soname_spec='$libname$release$shared_ext$major' 12593 shlibpath_var=LD_LIBRARY_PATH 12594 shlibpath_overrides_runpath=yes 12595 hardcode_into_libs=yes 12596 if test yes = "$with_gnu_ld"; then 12597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12598 else 12599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12600 case $host_os in 12601 sco3.2v5*) 12602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12603 ;; 12604 esac 12605 fi 12606 sys_lib_dlsearch_path_spec='/usr/lib' 12607 ;; 12608 12609tpf*) 12610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12611 version_type=linux # correct to gnu/linux during the next big refactor 12612 need_lib_prefix=no 12613 need_version=no 12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12615 shlibpath_var=LD_LIBRARY_PATH 12616 shlibpath_overrides_runpath=no 12617 hardcode_into_libs=yes 12618 ;; 12619 12620uts4*) 12621 version_type=linux # correct to gnu/linux during the next big refactor 12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12623 soname_spec='$libname$release$shared_ext$major' 12624 shlibpath_var=LD_LIBRARY_PATH 12625 ;; 12626 12627*) 12628 dynamic_linker=no 12629 ;; 12630esac 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12632$as_echo "$dynamic_linker" >&6; } 12633test no = "$dynamic_linker" && can_build_shared=no 12634 12635variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12636if test yes = "$GCC"; then 12637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12638fi 12639 12640if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12641 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12642fi 12643 12644if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12645 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12646fi 12647 12648# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12649configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12650 12651# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12652func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12653 12654# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12655configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12754$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12755hardcode_action= 12756if test -n "$hardcode_libdir_flag_spec" || 12757 test -n "$runpath_var" || 12758 test yes = "$hardcode_automatic"; then 12759 12760 # We can hardcode non-existent directories. 12761 if test no != "$hardcode_direct" && 12762 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12763 # have to relink, otherwise we might link with an installed library 12764 # when we should be linking with a yet-to-be-installed one 12765 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12766 test no != "$hardcode_minus_L"; then 12767 # Linking always hardcodes the temporary library directory. 12768 hardcode_action=relink 12769 else 12770 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12771 hardcode_action=immediate 12772 fi 12773else 12774 # We cannot hardcode anything, or else we can only hardcode existing 12775 # directories. 12776 hardcode_action=unsupported 12777fi 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12779$as_echo "$hardcode_action" >&6; } 12780 12781if test relink = "$hardcode_action" || 12782 test yes = "$inherit_rpath"; then 12783 # Fast installation is not supported 12784 enable_fast_install=no 12785elif test yes = "$shlibpath_overrides_runpath" || 12786 test no = "$enable_shared"; then 12787 # Fast installation is not necessary 12788 enable_fast_install=needless 12789fi 12790 12791 12792 12793 12794 12795 12796 if test yes != "$enable_dlopen"; then 12797 enable_dlopen=unknown 12798 enable_dlopen_self=unknown 12799 enable_dlopen_self_static=unknown 12800else 12801 lt_cv_dlopen=no 12802 lt_cv_dlopen_libs= 12803 12804 case $host_os in 12805 beos*) 12806 lt_cv_dlopen=load_add_on 12807 lt_cv_dlopen_libs= 12808 lt_cv_dlopen_self=yes 12809 ;; 12810 12811 mingw* | pw32* | cegcc*) 12812 lt_cv_dlopen=LoadLibrary 12813 lt_cv_dlopen_libs= 12814 ;; 12815 12816 cygwin*) 12817 lt_cv_dlopen=dlopen 12818 lt_cv_dlopen_libs= 12819 ;; 12820 12821 darwin*) 12822 # if libdl is installed we need to link against it 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12824$as_echo_n "checking for dlopen in -ldl... " >&6; } 12825if ${ac_cv_lib_dl_dlopen+:} false; then : 12826 $as_echo_n "(cached) " >&6 12827else 12828 ac_check_lib_save_LIBS=$LIBS 12829LIBS="-ldl $LIBS" 12830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12831/* end confdefs.h. */ 12832 12833/* Override any GCC internal prototype to avoid an error. 12834 Use char because int might match the return type of a GCC 12835 builtin and then its argument prototype would still apply. */ 12836#ifdef __cplusplus 12837extern "C" 12838#endif 12839char dlopen (); 12840int 12841main () 12842{ 12843return dlopen (); 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848if ac_fn_c_try_link "$LINENO"; then : 12849 ac_cv_lib_dl_dlopen=yes 12850else 12851 ac_cv_lib_dl_dlopen=no 12852fi 12853rm -f core conftest.err conftest.$ac_objext \ 12854 conftest$ac_exeext conftest.$ac_ext 12855LIBS=$ac_check_lib_save_LIBS 12856fi 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12858$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12859if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12860 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12861else 12862 12863 lt_cv_dlopen=dyld 12864 lt_cv_dlopen_libs= 12865 lt_cv_dlopen_self=yes 12866 12867fi 12868 12869 ;; 12870 12871 tpf*) 12872 # Don't try to run any link tests for TPF. We know it's impossible 12873 # because TPF is a cross-compiler, and we know how we open DSOs. 12874 lt_cv_dlopen=dlopen 12875 lt_cv_dlopen_libs= 12876 lt_cv_dlopen_self=no 12877 ;; 12878 12879 *) 12880 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12881if test "x$ac_cv_func_shl_load" = xyes; then : 12882 lt_cv_dlopen=shl_load 12883else 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12885$as_echo_n "checking for shl_load in -ldld... " >&6; } 12886if ${ac_cv_lib_dld_shl_load+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 ac_check_lib_save_LIBS=$LIBS 12890LIBS="-ldld $LIBS" 12891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12892/* end confdefs.h. */ 12893 12894/* Override any GCC internal prototype to avoid an error. 12895 Use char because int might match the return type of a GCC 12896 builtin and then its argument prototype would still apply. */ 12897#ifdef __cplusplus 12898extern "C" 12899#endif 12900char shl_load (); 12901int 12902main () 12903{ 12904return shl_load (); 12905 ; 12906 return 0; 12907} 12908_ACEOF 12909if ac_fn_c_try_link "$LINENO"; then : 12910 ac_cv_lib_dld_shl_load=yes 12911else 12912 ac_cv_lib_dld_shl_load=no 12913fi 12914rm -f core conftest.err conftest.$ac_objext \ 12915 conftest$ac_exeext conftest.$ac_ext 12916LIBS=$ac_check_lib_save_LIBS 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12919$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12920if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12921 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12922else 12923 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12924if test "x$ac_cv_func_dlopen" = xyes; then : 12925 lt_cv_dlopen=dlopen 12926else 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12928$as_echo_n "checking for dlopen in -ldl... " >&6; } 12929if ${ac_cv_lib_dl_dlopen+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 ac_check_lib_save_LIBS=$LIBS 12933LIBS="-ldl $LIBS" 12934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936 12937/* Override any GCC internal prototype to avoid an error. 12938 Use char because int might match the return type of a GCC 12939 builtin and then its argument prototype would still apply. */ 12940#ifdef __cplusplus 12941extern "C" 12942#endif 12943char dlopen (); 12944int 12945main () 12946{ 12947return dlopen (); 12948 ; 12949 return 0; 12950} 12951_ACEOF 12952if ac_fn_c_try_link "$LINENO"; then : 12953 ac_cv_lib_dl_dlopen=yes 12954else 12955 ac_cv_lib_dl_dlopen=no 12956fi 12957rm -f core conftest.err conftest.$ac_objext \ 12958 conftest$ac_exeext conftest.$ac_ext 12959LIBS=$ac_check_lib_save_LIBS 12960fi 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12962$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12963if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12964 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12965else 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12967$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12968if ${ac_cv_lib_svld_dlopen+:} false; then : 12969 $as_echo_n "(cached) " >&6 12970else 12971 ac_check_lib_save_LIBS=$LIBS 12972LIBS="-lsvld $LIBS" 12973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975 12976/* Override any GCC internal prototype to avoid an error. 12977 Use char because int might match the return type of a GCC 12978 builtin and then its argument prototype would still apply. */ 12979#ifdef __cplusplus 12980extern "C" 12981#endif 12982char dlopen (); 12983int 12984main () 12985{ 12986return dlopen (); 12987 ; 12988 return 0; 12989} 12990_ACEOF 12991if ac_fn_c_try_link "$LINENO"; then : 12992 ac_cv_lib_svld_dlopen=yes 12993else 12994 ac_cv_lib_svld_dlopen=no 12995fi 12996rm -f core conftest.err conftest.$ac_objext \ 12997 conftest$ac_exeext conftest.$ac_ext 12998LIBS=$ac_check_lib_save_LIBS 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13001$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13002if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13003 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13004else 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13006$as_echo_n "checking for dld_link in -ldld... " >&6; } 13007if ${ac_cv_lib_dld_dld_link+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 ac_check_lib_save_LIBS=$LIBS 13011LIBS="-ldld $LIBS" 13012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13013/* end confdefs.h. */ 13014 13015/* Override any GCC internal prototype to avoid an error. 13016 Use char because int might match the return type of a GCC 13017 builtin and then its argument prototype would still apply. */ 13018#ifdef __cplusplus 13019extern "C" 13020#endif 13021char dld_link (); 13022int 13023main () 13024{ 13025return dld_link (); 13026 ; 13027 return 0; 13028} 13029_ACEOF 13030if ac_fn_c_try_link "$LINENO"; then : 13031 ac_cv_lib_dld_dld_link=yes 13032else 13033 ac_cv_lib_dld_dld_link=no 13034fi 13035rm -f core conftest.err conftest.$ac_objext \ 13036 conftest$ac_exeext conftest.$ac_ext 13037LIBS=$ac_check_lib_save_LIBS 13038fi 13039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13040$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13041if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13042 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13043fi 13044 13045 13046fi 13047 13048 13049fi 13050 13051 13052fi 13053 13054 13055fi 13056 13057 13058fi 13059 13060 ;; 13061 esac 13062 13063 if test no = "$lt_cv_dlopen"; then 13064 enable_dlopen=no 13065 else 13066 enable_dlopen=yes 13067 fi 13068 13069 case $lt_cv_dlopen in 13070 dlopen) 13071 save_CPPFLAGS=$CPPFLAGS 13072 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13073 13074 save_LDFLAGS=$LDFLAGS 13075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13076 13077 save_LIBS=$LIBS 13078 LIBS="$lt_cv_dlopen_libs $LIBS" 13079 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13081$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13082if ${lt_cv_dlopen_self+:} false; then : 13083 $as_echo_n "(cached) " >&6 13084else 13085 if test yes = "$cross_compiling"; then : 13086 lt_cv_dlopen_self=cross 13087else 13088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13089 lt_status=$lt_dlunknown 13090 cat > conftest.$ac_ext <<_LT_EOF 13091#line $LINENO "configure" 13092#include "confdefs.h" 13093 13094#if HAVE_DLFCN_H 13095#include <dlfcn.h> 13096#endif 13097 13098#include <stdio.h> 13099 13100#ifdef RTLD_GLOBAL 13101# define LT_DLGLOBAL RTLD_GLOBAL 13102#else 13103# ifdef DL_GLOBAL 13104# define LT_DLGLOBAL DL_GLOBAL 13105# else 13106# define LT_DLGLOBAL 0 13107# endif 13108#endif 13109 13110/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13111 find out it does not work in some platform. */ 13112#ifndef LT_DLLAZY_OR_NOW 13113# ifdef RTLD_LAZY 13114# define LT_DLLAZY_OR_NOW RTLD_LAZY 13115# else 13116# ifdef DL_LAZY 13117# define LT_DLLAZY_OR_NOW DL_LAZY 13118# else 13119# ifdef RTLD_NOW 13120# define LT_DLLAZY_OR_NOW RTLD_NOW 13121# else 13122# ifdef DL_NOW 13123# define LT_DLLAZY_OR_NOW DL_NOW 13124# else 13125# define LT_DLLAZY_OR_NOW 0 13126# endif 13127# endif 13128# endif 13129# endif 13130#endif 13131 13132/* When -fvisibility=hidden is used, assume the code has been annotated 13133 correspondingly for the symbols needed. */ 13134#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13135int fnord () __attribute__((visibility("default"))); 13136#endif 13137 13138int fnord () { return 42; } 13139int main () 13140{ 13141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13142 int status = $lt_dlunknown; 13143 13144 if (self) 13145 { 13146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13147 else 13148 { 13149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13150 else puts (dlerror ()); 13151 } 13152 /* dlclose (self); */ 13153 } 13154 else 13155 puts (dlerror ()); 13156 13157 return status; 13158} 13159_LT_EOF 13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13161 (eval $ac_link) 2>&5 13162 ac_status=$? 13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13164 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13165 (./conftest; exit; ) >&5 2>/dev/null 13166 lt_status=$? 13167 case x$lt_status in 13168 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13169 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13170 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13171 esac 13172 else : 13173 # compilation failed 13174 lt_cv_dlopen_self=no 13175 fi 13176fi 13177rm -fr conftest* 13178 13179 13180fi 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13182$as_echo "$lt_cv_dlopen_self" >&6; } 13183 13184 if test yes = "$lt_cv_dlopen_self"; then 13185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13187$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13188if ${lt_cv_dlopen_self_static+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 if test yes = "$cross_compiling"; then : 13192 lt_cv_dlopen_self_static=cross 13193else 13194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13195 lt_status=$lt_dlunknown 13196 cat > conftest.$ac_ext <<_LT_EOF 13197#line $LINENO "configure" 13198#include "confdefs.h" 13199 13200#if HAVE_DLFCN_H 13201#include <dlfcn.h> 13202#endif 13203 13204#include <stdio.h> 13205 13206#ifdef RTLD_GLOBAL 13207# define LT_DLGLOBAL RTLD_GLOBAL 13208#else 13209# ifdef DL_GLOBAL 13210# define LT_DLGLOBAL DL_GLOBAL 13211# else 13212# define LT_DLGLOBAL 0 13213# endif 13214#endif 13215 13216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13217 find out it does not work in some platform. */ 13218#ifndef LT_DLLAZY_OR_NOW 13219# ifdef RTLD_LAZY 13220# define LT_DLLAZY_OR_NOW RTLD_LAZY 13221# else 13222# ifdef DL_LAZY 13223# define LT_DLLAZY_OR_NOW DL_LAZY 13224# else 13225# ifdef RTLD_NOW 13226# define LT_DLLAZY_OR_NOW RTLD_NOW 13227# else 13228# ifdef DL_NOW 13229# define LT_DLLAZY_OR_NOW DL_NOW 13230# else 13231# define LT_DLLAZY_OR_NOW 0 13232# endif 13233# endif 13234# endif 13235# endif 13236#endif 13237 13238/* When -fvisibility=hidden is used, assume the code has been annotated 13239 correspondingly for the symbols needed. */ 13240#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13241int fnord () __attribute__((visibility("default"))); 13242#endif 13243 13244int fnord () { return 42; } 13245int main () 13246{ 13247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13248 int status = $lt_dlunknown; 13249 13250 if (self) 13251 { 13252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13253 else 13254 { 13255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13256 else puts (dlerror ()); 13257 } 13258 /* dlclose (self); */ 13259 } 13260 else 13261 puts (dlerror ()); 13262 13263 return status; 13264} 13265_LT_EOF 13266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13267 (eval $ac_link) 2>&5 13268 ac_status=$? 13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13270 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13271 (./conftest; exit; ) >&5 2>/dev/null 13272 lt_status=$? 13273 case x$lt_status in 13274 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13275 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13276 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13277 esac 13278 else : 13279 # compilation failed 13280 lt_cv_dlopen_self_static=no 13281 fi 13282fi 13283rm -fr conftest* 13284 13285 13286fi 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13288$as_echo "$lt_cv_dlopen_self_static" >&6; } 13289 fi 13290 13291 CPPFLAGS=$save_CPPFLAGS 13292 LDFLAGS=$save_LDFLAGS 13293 LIBS=$save_LIBS 13294 ;; 13295 esac 13296 13297 case $lt_cv_dlopen_self in 13298 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13299 *) enable_dlopen_self=unknown ;; 13300 esac 13301 13302 case $lt_cv_dlopen_self_static in 13303 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13304 *) enable_dlopen_self_static=unknown ;; 13305 esac 13306fi 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324striplib= 13325old_striplib= 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13327$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13328if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13329 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13330 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13332$as_echo "yes" >&6; } 13333else 13334# FIXME - insert some real tests, host_os isn't really good enough 13335 case $host_os in 13336 darwin*) 13337 if test -n "$STRIP"; then 13338 striplib="$STRIP -x" 13339 old_striplib="$STRIP -S" 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13341$as_echo "yes" >&6; } 13342 else 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13344$as_echo "no" >&6; } 13345 fi 13346 ;; 13347 *) 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13349$as_echo "no" >&6; } 13350 ;; 13351 esac 13352fi 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 # Report what library types will actually be built 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13367$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13369$as_echo "$can_build_shared" >&6; } 13370 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13372$as_echo_n "checking whether to build shared libraries... " >&6; } 13373 test no = "$can_build_shared" && enable_shared=no 13374 13375 # On AIX, shared libraries and static libraries use the same namespace, and 13376 # are all built from PIC. 13377 case $host_os in 13378 aix3*) 13379 test yes = "$enable_shared" && enable_static=no 13380 if test -n "$RANLIB"; then 13381 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13382 postinstall_cmds='$RANLIB $lib' 13383 fi 13384 ;; 13385 13386 aix[4-9]*) 13387 if test ia64 != "$host_cpu"; then 13388 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13389 yes,aix,yes) ;; # shared object as lib.so file only 13390 yes,svr4,*) ;; # shared object as lib.so archive member only 13391 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13392 esac 13393 fi 13394 ;; 13395 esac 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13397$as_echo "$enable_shared" >&6; } 13398 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13400$as_echo_n "checking whether to build static libraries... " >&6; } 13401 # Make sure either enable_shared or enable_static is yes. 13402 test yes = "$enable_shared" || enable_static=yes 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13404$as_echo "$enable_static" >&6; } 13405 13406 13407 13408 13409fi 13410ac_ext=c 13411ac_cpp='$CPP $CPPFLAGS' 13412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13414ac_compiler_gnu=$ac_cv_c_compiler_gnu 13415 13416CC=$lt_save_CC 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 ac_config_commands="$ac_config_commands libtool" 13433 13434 13435 13436 13437# Only expand once: 13438 13439 13440ac_ext=cpp 13441ac_cpp='$CXXCPP $CPPFLAGS' 13442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13445if test -z "$CXX"; then 13446 if test -n "$CCC"; then 13447 CXX=$CCC 13448 else 13449 if test -n "$ac_tool_prefix"; then 13450 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13451 do 13452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13455$as_echo_n "checking for $ac_word... " >&6; } 13456if ${ac_cv_prog_CXX+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 if test -n "$CXX"; then 13460 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13461else 13462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13463for as_dir in $PATH 13464do 13465 IFS=$as_save_IFS 13466 test -z "$as_dir" && as_dir=. 13467 for ac_exec_ext in '' $ac_executable_extensions; do 13468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13469 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13471 break 2 13472 fi 13473done 13474 done 13475IFS=$as_save_IFS 13476 13477fi 13478fi 13479CXX=$ac_cv_prog_CXX 13480if test -n "$CXX"; then 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13482$as_echo "$CXX" >&6; } 13483else 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13485$as_echo "no" >&6; } 13486fi 13487 13488 13489 test -n "$CXX" && break 13490 done 13491fi 13492if test -z "$CXX"; then 13493 ac_ct_CXX=$CXX 13494 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13495do 13496 # Extract the first word of "$ac_prog", so it can be a program name with args. 13497set dummy $ac_prog; ac_word=$2 13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13499$as_echo_n "checking for $ac_word... " >&6; } 13500if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 if test -n "$ac_ct_CXX"; then 13504 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13505else 13506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13507for as_dir in $PATH 13508do 13509 IFS=$as_save_IFS 13510 test -z "$as_dir" && as_dir=. 13511 for ac_exec_ext in '' $ac_executable_extensions; do 13512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13513 ac_cv_prog_ac_ct_CXX="$ac_prog" 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13515 break 2 13516 fi 13517done 13518 done 13519IFS=$as_save_IFS 13520 13521fi 13522fi 13523ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13524if test -n "$ac_ct_CXX"; then 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13526$as_echo "$ac_ct_CXX" >&6; } 13527else 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13529$as_echo "no" >&6; } 13530fi 13531 13532 13533 test -n "$ac_ct_CXX" && break 13534done 13535 13536 if test "x$ac_ct_CXX" = x; then 13537 CXX="g++" 13538 else 13539 case $cross_compiling:$ac_tool_warned in 13540yes:) 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13543ac_tool_warned=yes ;; 13544esac 13545 CXX=$ac_ct_CXX 13546 fi 13547fi 13548 13549 fi 13550fi 13551# Provide some information about the compiler. 13552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13553set X $ac_compile 13554ac_compiler=$2 13555for ac_option in --version -v -V -qversion; do 13556 { { ac_try="$ac_compiler $ac_option >&5" 13557case "(($ac_try" in 13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13559 *) ac_try_echo=$ac_try;; 13560esac 13561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13562$as_echo "$ac_try_echo"; } >&5 13563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13564 ac_status=$? 13565 if test -s conftest.err; then 13566 sed '10a\ 13567... rest of stderr output deleted ... 13568 10q' conftest.err >conftest.er1 13569 cat conftest.er1 >&5 13570 fi 13571 rm -f conftest.er1 conftest.err 13572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13573 test $ac_status = 0; } 13574done 13575 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13577$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13578if ${ac_cv_cxx_compiler_gnu+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582/* end confdefs.h. */ 13583 13584int 13585main () 13586{ 13587#ifndef __GNUC__ 13588 choke me 13589#endif 13590 13591 ; 13592 return 0; 13593} 13594_ACEOF 13595if ac_fn_cxx_try_compile "$LINENO"; then : 13596 ac_compiler_gnu=yes 13597else 13598 ac_compiler_gnu=no 13599fi 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13601ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13602 13603fi 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13605$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13606if test $ac_compiler_gnu = yes; then 13607 GXX=yes 13608else 13609 GXX= 13610fi 13611ac_test_CXXFLAGS=${CXXFLAGS+set} 13612ac_save_CXXFLAGS=$CXXFLAGS 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13614$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13615if ${ac_cv_prog_cxx_g+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617else 13618 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13619 ac_cxx_werror_flag=yes 13620 ac_cv_prog_cxx_g=no 13621 CXXFLAGS="-g" 13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13623/* end confdefs.h. */ 13624 13625int 13626main () 13627{ 13628 13629 ; 13630 return 0; 13631} 13632_ACEOF 13633if ac_fn_cxx_try_compile "$LINENO"; then : 13634 ac_cv_prog_cxx_g=yes 13635else 13636 CXXFLAGS="" 13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13638/* end confdefs.h. */ 13639 13640int 13641main () 13642{ 13643 13644 ; 13645 return 0; 13646} 13647_ACEOF 13648if ac_fn_cxx_try_compile "$LINENO"; then : 13649 13650else 13651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13652 CXXFLAGS="-g" 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655 13656int 13657main () 13658{ 13659 13660 ; 13661 return 0; 13662} 13663_ACEOF 13664if ac_fn_cxx_try_compile "$LINENO"; then : 13665 ac_cv_prog_cxx_g=yes 13666fi 13667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13668fi 13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13672 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13673fi 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13675$as_echo "$ac_cv_prog_cxx_g" >&6; } 13676if test "$ac_test_CXXFLAGS" = set; then 13677 CXXFLAGS=$ac_save_CXXFLAGS 13678elif test $ac_cv_prog_cxx_g = yes; then 13679 if test "$GXX" = yes; then 13680 CXXFLAGS="-g -O2" 13681 else 13682 CXXFLAGS="-g" 13683 fi 13684else 13685 if test "$GXX" = yes; then 13686 CXXFLAGS="-O2" 13687 else 13688 CXXFLAGS= 13689 fi 13690fi 13691ac_ext=c 13692ac_cpp='$CPP $CPPFLAGS' 13693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13695ac_compiler_gnu=$ac_cv_c_compiler_gnu 13696 13697depcc="$CXX" am_compiler_list= 13698 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13700$as_echo_n "checking dependency style of $depcc... " >&6; } 13701if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13702 $as_echo_n "(cached) " >&6 13703else 13704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13705 # We make a subdir and do the tests there. Otherwise we can end up 13706 # making bogus files that we don't know about and never remove. For 13707 # instance it was reported that on HP-UX the gcc test will end up 13708 # making a dummy file named 'D' -- because '-MD' means "put the output 13709 # in D". 13710 rm -rf conftest.dir 13711 mkdir conftest.dir 13712 # Copy depcomp to subdir because otherwise we won't find it if we're 13713 # using a relative directory. 13714 cp "$am_depcomp" conftest.dir 13715 cd conftest.dir 13716 # We will build objects and dependencies in a subdirectory because 13717 # it helps to detect inapplicable dependency modes. For instance 13718 # both Tru64's cc and ICC support -MD to output dependencies as a 13719 # side effect of compilation, but ICC will put the dependencies in 13720 # the current directory while Tru64 will put them in the object 13721 # directory. 13722 mkdir sub 13723 13724 am_cv_CXX_dependencies_compiler_type=none 13725 if test "$am_compiler_list" = ""; then 13726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13727 fi 13728 am__universal=false 13729 case " $depcc " in #( 13730 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13731 esac 13732 13733 for depmode in $am_compiler_list; do 13734 # Setup a source with many dependencies, because some compilers 13735 # like to wrap large dependency lists on column 80 (with \), and 13736 # we should not choose a depcomp mode which is confused by this. 13737 # 13738 # We need to recreate these files for each test, as the compiler may 13739 # overwrite some of them when testing with obscure command lines. 13740 # This happens at least with the AIX C compiler. 13741 : > sub/conftest.c 13742 for i in 1 2 3 4 5 6; do 13743 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13744 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13745 # Solaris 10 /bin/sh. 13746 echo '/* dummy */' > sub/conftst$i.h 13747 done 13748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13749 13750 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13751 # mode. It turns out that the SunPro C++ compiler does not properly 13752 # handle '-M -o', and we need to detect this. Also, some Intel 13753 # versions had trouble with output in subdirs. 13754 am__obj=sub/conftest.${OBJEXT-o} 13755 am__minus_obj="-o $am__obj" 13756 case $depmode in 13757 gcc) 13758 # This depmode causes a compiler race in universal mode. 13759 test "$am__universal" = false || continue 13760 ;; 13761 nosideeffect) 13762 # After this tag, mechanisms are not by side-effect, so they'll 13763 # only be used when explicitly requested. 13764 if test "x$enable_dependency_tracking" = xyes; then 13765 continue 13766 else 13767 break 13768 fi 13769 ;; 13770 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13771 # This compiler won't grok '-c -o', but also, the minuso test has 13772 # not run yet. These depmodes are late enough in the game, and 13773 # so weak that their functioning should not be impacted. 13774 am__obj=conftest.${OBJEXT-o} 13775 am__minus_obj= 13776 ;; 13777 none) break ;; 13778 esac 13779 if depmode=$depmode \ 13780 source=sub/conftest.c object=$am__obj \ 13781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13783 >/dev/null 2>conftest.err && 13784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13788 # icc doesn't choke on unknown options, it will just issue warnings 13789 # or remarks (even with -Werror). So we grep stderr for any message 13790 # that says an option was ignored or not supported. 13791 # When given -MP, icc 7.0 and 7.1 complain thusly: 13792 # icc: Command line warning: ignoring option '-M'; no argument required 13793 # The diagnosis changed in icc 8.0: 13794 # icc: Command line remark: option '-MP' not supported 13795 if (grep 'ignoring option' conftest.err || 13796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13797 am_cv_CXX_dependencies_compiler_type=$depmode 13798 break 13799 fi 13800 fi 13801 done 13802 13803 cd .. 13804 rm -rf conftest.dir 13805else 13806 am_cv_CXX_dependencies_compiler_type=none 13807fi 13808 13809fi 13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13811$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13812CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13813 13814 if 13815 test "x$enable_dependency_tracking" != xno \ 13816 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13817 am__fastdepCXX_TRUE= 13818 am__fastdepCXX_FALSE='#' 13819else 13820 am__fastdepCXX_TRUE='#' 13821 am__fastdepCXX_FALSE= 13822fi 13823 13824 13825 13826 13827 13828func_stripname_cnf () 13829{ 13830 case $2 in 13831 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13832 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13833 esac 13834} # func_stripname_cnf 13835 13836 if test -n "$CXX" && ( test no != "$CXX" && 13837 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13838 (test g++ != "$CXX"))); then 13839 ac_ext=cpp 13840ac_cpp='$CXXCPP $CPPFLAGS' 13841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13845$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13846if test -z "$CXXCPP"; then 13847 if ${ac_cv_prog_CXXCPP+:} false; then : 13848 $as_echo_n "(cached) " >&6 13849else 13850 # Double quotes because CXXCPP needs to be expanded 13851 for CXXCPP in "$CXX -E" "/lib/cpp" 13852 do 13853 ac_preproc_ok=false 13854for ac_cxx_preproc_warn_flag in '' yes 13855do 13856 # Use a header file that comes with gcc, so configuring glibc 13857 # with a fresh cross-compiler works. 13858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13859 # <limits.h> exists even on freestanding compilers. 13860 # On the NeXT, cc -E runs the code through the compiler's parser, 13861 # not just through cpp. "Syntax error" is here to catch this case. 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864#ifdef __STDC__ 13865# include <limits.h> 13866#else 13867# include <assert.h> 13868#endif 13869 Syntax error 13870_ACEOF 13871if ac_fn_cxx_try_cpp "$LINENO"; then : 13872 13873else 13874 # Broken: fails on valid input. 13875continue 13876fi 13877rm -f conftest.err conftest.i conftest.$ac_ext 13878 13879 # OK, works on sane cases. Now check whether nonexistent headers 13880 # can be detected and how. 13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13882/* end confdefs.h. */ 13883#include <ac_nonexistent.h> 13884_ACEOF 13885if ac_fn_cxx_try_cpp "$LINENO"; then : 13886 # Broken: success on invalid input. 13887continue 13888else 13889 # Passes both tests. 13890ac_preproc_ok=: 13891break 13892fi 13893rm -f conftest.err conftest.i conftest.$ac_ext 13894 13895done 13896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13897rm -f conftest.i conftest.err conftest.$ac_ext 13898if $ac_preproc_ok; then : 13899 break 13900fi 13901 13902 done 13903 ac_cv_prog_CXXCPP=$CXXCPP 13904 13905fi 13906 CXXCPP=$ac_cv_prog_CXXCPP 13907else 13908 ac_cv_prog_CXXCPP=$CXXCPP 13909fi 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13911$as_echo "$CXXCPP" >&6; } 13912ac_preproc_ok=false 13913for ac_cxx_preproc_warn_flag in '' yes 13914do 13915 # Use a header file that comes with gcc, so configuring glibc 13916 # with a fresh cross-compiler works. 13917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13918 # <limits.h> exists even on freestanding compilers. 13919 # On the NeXT, cc -E runs the code through the compiler's parser, 13920 # not just through cpp. "Syntax error" is here to catch this case. 13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922/* end confdefs.h. */ 13923#ifdef __STDC__ 13924# include <limits.h> 13925#else 13926# include <assert.h> 13927#endif 13928 Syntax error 13929_ACEOF 13930if ac_fn_cxx_try_cpp "$LINENO"; then : 13931 13932else 13933 # Broken: fails on valid input. 13934continue 13935fi 13936rm -f conftest.err conftest.i conftest.$ac_ext 13937 13938 # OK, works on sane cases. Now check whether nonexistent headers 13939 # can be detected and how. 13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13941/* end confdefs.h. */ 13942#include <ac_nonexistent.h> 13943_ACEOF 13944if ac_fn_cxx_try_cpp "$LINENO"; then : 13945 # Broken: success on invalid input. 13946continue 13947else 13948 # Passes both tests. 13949ac_preproc_ok=: 13950break 13951fi 13952rm -f conftest.err conftest.i conftest.$ac_ext 13953 13954done 13955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13956rm -f conftest.i conftest.err conftest.$ac_ext 13957if $ac_preproc_ok; then : 13958 13959else 13960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13962as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13963See \`config.log' for more details" "$LINENO" 5; } 13964fi 13965 13966ac_ext=c 13967ac_cpp='$CPP $CPPFLAGS' 13968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13970ac_compiler_gnu=$ac_cv_c_compiler_gnu 13971 13972else 13973 _lt_caught_CXX_error=yes 13974fi 13975 13976ac_ext=cpp 13977ac_cpp='$CXXCPP $CPPFLAGS' 13978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13981 13982archive_cmds_need_lc_CXX=no 13983allow_undefined_flag_CXX= 13984always_export_symbols_CXX=no 13985archive_expsym_cmds_CXX= 13986compiler_needs_object_CXX=no 13987export_dynamic_flag_spec_CXX= 13988hardcode_direct_CXX=no 13989hardcode_direct_absolute_CXX=no 13990hardcode_libdir_flag_spec_CXX= 13991hardcode_libdir_separator_CXX= 13992hardcode_minus_L_CXX=no 13993hardcode_shlibpath_var_CXX=unsupported 13994hardcode_automatic_CXX=no 13995inherit_rpath_CXX=no 13996module_cmds_CXX= 13997module_expsym_cmds_CXX= 13998link_all_deplibs_CXX=unknown 13999old_archive_cmds_CXX=$old_archive_cmds 14000reload_flag_CXX=$reload_flag 14001reload_cmds_CXX=$reload_cmds 14002no_undefined_flag_CXX= 14003whole_archive_flag_spec_CXX= 14004enable_shared_with_static_runtimes_CXX=no 14005 14006# Source file extension for C++ test sources. 14007ac_ext=cpp 14008 14009# Object file extension for compiled C++ test sources. 14010objext=o 14011objext_CXX=$objext 14012 14013# No sense in running all these tests if we already determined that 14014# the CXX compiler isn't working. Some variables (like enable_shared) 14015# are currently assumed to apply to all compilers on this platform, 14016# and will be corrupted by setting them based on a non-working compiler. 14017if test yes != "$_lt_caught_CXX_error"; then 14018 # Code to be used in simple compile tests 14019 lt_simple_compile_test_code="int some_variable = 0;" 14020 14021 # Code to be used in simple link tests 14022 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14023 14024 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14025 14026 14027 14028 14029 14030 14031# If no C compiler was specified, use CC. 14032LTCC=${LTCC-"$CC"} 14033 14034# If no C compiler flags were specified, use CFLAGS. 14035LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14036 14037# Allow CC to be a program name with arguments. 14038compiler=$CC 14039 14040 14041 # save warnings/boilerplate of simple test code 14042 ac_outfile=conftest.$ac_objext 14043echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14045_lt_compiler_boilerplate=`cat conftest.err` 14046$RM conftest* 14047 14048 ac_outfile=conftest.$ac_objext 14049echo "$lt_simple_link_test_code" >conftest.$ac_ext 14050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14051_lt_linker_boilerplate=`cat conftest.err` 14052$RM -r conftest* 14053 14054 14055 # Allow CC to be a program name with arguments. 14056 lt_save_CC=$CC 14057 lt_save_CFLAGS=$CFLAGS 14058 lt_save_LD=$LD 14059 lt_save_GCC=$GCC 14060 GCC=$GXX 14061 lt_save_with_gnu_ld=$with_gnu_ld 14062 lt_save_path_LD=$lt_cv_path_LD 14063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14065 else 14066 $as_unset lt_cv_prog_gnu_ld 14067 fi 14068 if test -n "${lt_cv_path_LDCXX+set}"; then 14069 lt_cv_path_LD=$lt_cv_path_LDCXX 14070 else 14071 $as_unset lt_cv_path_LD 14072 fi 14073 test -z "${LDCXX+set}" || LD=$LDCXX 14074 CC=${CXX-"c++"} 14075 CFLAGS=$CXXFLAGS 14076 compiler=$CC 14077 compiler_CXX=$CC 14078 func_cc_basename $compiler 14079cc_basename=$func_cc_basename_result 14080 14081 14082 if test -n "$compiler"; then 14083 # We don't want -fno-exception when compiling C++ code, so set the 14084 # no_builtin_flag separately 14085 if test yes = "$GXX"; then 14086 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14087 else 14088 lt_prog_compiler_no_builtin_flag_CXX= 14089 fi 14090 14091 if test yes = "$GXX"; then 14092 # Set up default GNU C++ configuration 14093 14094 14095 14096# Check whether --with-gnu-ld was given. 14097if test "${with_gnu_ld+set}" = set; then : 14098 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14099else 14100 with_gnu_ld=no 14101fi 14102 14103ac_prog=ld 14104if test yes = "$GCC"; then 14105 # Check if gcc -print-prog-name=ld gives a path. 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14107$as_echo_n "checking for ld used by $CC... " >&6; } 14108 case $host in 14109 *-*-mingw*) 14110 # gcc leaves a trailing carriage return, which upsets mingw 14111 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14112 *) 14113 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14114 esac 14115 case $ac_prog in 14116 # Accept absolute paths. 14117 [\\/]* | ?:[\\/]*) 14118 re_direlt='/[^/][^/]*/\.\./' 14119 # Canonicalize the pathname of ld 14120 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14121 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14122 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14123 done 14124 test -z "$LD" && LD=$ac_prog 14125 ;; 14126 "") 14127 # If it fails, then pretend we aren't using GCC. 14128 ac_prog=ld 14129 ;; 14130 *) 14131 # If it is relative, then search for the first ld in PATH. 14132 with_gnu_ld=unknown 14133 ;; 14134 esac 14135elif test yes = "$with_gnu_ld"; then 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14137$as_echo_n "checking for GNU ld... " >&6; } 14138else 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14140$as_echo_n "checking for non-GNU ld... " >&6; } 14141fi 14142if ${lt_cv_path_LD+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 if test -z "$LD"; then 14146 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14147 for ac_dir in $PATH; do 14148 IFS=$lt_save_ifs 14149 test -z "$ac_dir" && ac_dir=. 14150 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14151 lt_cv_path_LD=$ac_dir/$ac_prog 14152 # Check to see if the program is GNU ld. I'd rather use --version, 14153 # but apparently some variants of GNU ld only accept -v. 14154 # Break only if it was the GNU/non-GNU ld that we prefer. 14155 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14156 *GNU* | *'with BFD'*) 14157 test no != "$with_gnu_ld" && break 14158 ;; 14159 *) 14160 test yes != "$with_gnu_ld" && break 14161 ;; 14162 esac 14163 fi 14164 done 14165 IFS=$lt_save_ifs 14166else 14167 lt_cv_path_LD=$LD # Let the user override the test with a path. 14168fi 14169fi 14170 14171LD=$lt_cv_path_LD 14172if test -n "$LD"; then 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14174$as_echo "$LD" >&6; } 14175else 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14177$as_echo "no" >&6; } 14178fi 14179test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14181$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14182if ${lt_cv_prog_gnu_ld+:} false; then : 14183 $as_echo_n "(cached) " >&6 14184else 14185 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14186case `$LD -v 2>&1 </dev/null` in 14187*GNU* | *'with BFD'*) 14188 lt_cv_prog_gnu_ld=yes 14189 ;; 14190*) 14191 lt_cv_prog_gnu_ld=no 14192 ;; 14193esac 14194fi 14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14196$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14197with_gnu_ld=$lt_cv_prog_gnu_ld 14198 14199 14200 14201 14202 14203 14204 14205 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14206 # archiving commands below assume that GNU ld is being used. 14207 if test yes = "$with_gnu_ld"; then 14208 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14209 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' 14210 14211 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14212 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14213 14214 # If archive_cmds runs LD, not CC, wlarc should be empty 14215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14216 # investigate it a little bit more. (MM) 14217 wlarc='$wl' 14218 14219 # ancient GNU ld didn't support --whole-archive et. al. 14220 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14221 $GREP 'no-whole-archive' > /dev/null; then 14222 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14223 else 14224 whole_archive_flag_spec_CXX= 14225 fi 14226 else 14227 with_gnu_ld=no 14228 wlarc= 14229 14230 # A generic and very simple default shared library creation 14231 # command for GNU C++ for the case where it uses the native 14232 # linker, instead of GNU ld. If possible, this setting should 14233 # overridden to take advantage of the native linker features on 14234 # the platform it is being used on. 14235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14236 fi 14237 14238 # Commands to make compiler produce verbose output that lists 14239 # what "hidden" libraries, object files and flags are used when 14240 # linking a shared library. 14241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14242 14243 else 14244 GXX=no 14245 with_gnu_ld=no 14246 wlarc= 14247 fi 14248 14249 # PORTME: fill in a description of your system's C++ link characteristics 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14252 ld_shlibs_CXX=yes 14253 case $host_os in 14254 aix3*) 14255 # FIXME: insert proper C++ library support 14256 ld_shlibs_CXX=no 14257 ;; 14258 aix[4-9]*) 14259 if test ia64 = "$host_cpu"; then 14260 # On IA64, the linker does run time linking by default, so we don't 14261 # have to do anything special. 14262 aix_use_runtimelinking=no 14263 exp_sym_flag='-Bexport' 14264 no_entry_flag= 14265 else 14266 aix_use_runtimelinking=no 14267 14268 # Test if we are trying to use run time linking or normal 14269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14270 # have runtime linking enabled, and use it for executables. 14271 # For shared libraries, we enable/disable runtime linking 14272 # depending on the kind of the shared library created - 14273 # when "with_aix_soname,aix_use_runtimelinking" is: 14274 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14275 # "aix,yes" lib.so shared, rtl:yes, for executables 14276 # lib.a static archive 14277 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14278 # lib.a(lib.so.V) shared, rtl:no, for executables 14279 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14280 # lib.a(lib.so.V) shared, rtl:no 14281 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14282 # lib.a static archive 14283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14284 for ld_flag in $LDFLAGS; do 14285 case $ld_flag in 14286 *-brtl*) 14287 aix_use_runtimelinking=yes 14288 break 14289 ;; 14290 esac 14291 done 14292 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14293 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14294 # so we don't have lib.a shared libs to link our executables. 14295 # We have to force runtime linking in this case. 14296 aix_use_runtimelinking=yes 14297 LDFLAGS="$LDFLAGS -Wl,-brtl" 14298 fi 14299 ;; 14300 esac 14301 14302 exp_sym_flag='-bexport' 14303 no_entry_flag='-bnoentry' 14304 fi 14305 14306 # When large executables or shared objects are built, AIX ld can 14307 # have problems creating the table of contents. If linking a library 14308 # or program results in "error TOC overflow" add -mminimal-toc to 14309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14311 14312 archive_cmds_CXX='' 14313 hardcode_direct_CXX=yes 14314 hardcode_direct_absolute_CXX=yes 14315 hardcode_libdir_separator_CXX=':' 14316 link_all_deplibs_CXX=yes 14317 file_list_spec_CXX='$wl-f,' 14318 case $with_aix_soname,$aix_use_runtimelinking in 14319 aix,*) ;; # no import file 14320 svr4,* | *,yes) # use import file 14321 # The Import File defines what to hardcode. 14322 hardcode_direct_CXX=no 14323 hardcode_direct_absolute_CXX=no 14324 ;; 14325 esac 14326 14327 if test yes = "$GXX"; then 14328 case $host_os in aix4.[012]|aix4.[012].*) 14329 # We only want to do this on AIX 4.2 and lower, the check 14330 # below for broken collect2 doesn't work under 4.3+ 14331 collect2name=`$CC -print-prog-name=collect2` 14332 if test -f "$collect2name" && 14333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14334 then 14335 # We have reworked collect2 14336 : 14337 else 14338 # We have old collect2 14339 hardcode_direct_CXX=unsupported 14340 # It fails to find uninstalled libraries when the uninstalled 14341 # path is not listed in the libpath. Setting hardcode_minus_L 14342 # to unsupported forces relinking 14343 hardcode_minus_L_CXX=yes 14344 hardcode_libdir_flag_spec_CXX='-L$libdir' 14345 hardcode_libdir_separator_CXX= 14346 fi 14347 esac 14348 shared_flag='-shared' 14349 if test yes = "$aix_use_runtimelinking"; then 14350 shared_flag=$shared_flag' $wl-G' 14351 fi 14352 # Need to ensure runtime linking is disabled for the traditional 14353 # shared library, or the linker may eventually find shared libraries 14354 # /with/ Import File - we do not want to mix them. 14355 shared_flag_aix='-shared' 14356 shared_flag_svr4='-shared $wl-G' 14357 else 14358 # not using gcc 14359 if test ia64 = "$host_cpu"; then 14360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14361 # chokes on -Wl,-G. The following line is correct: 14362 shared_flag='-G' 14363 else 14364 if test yes = "$aix_use_runtimelinking"; then 14365 shared_flag='$wl-G' 14366 else 14367 shared_flag='$wl-bM:SRE' 14368 fi 14369 shared_flag_aix='$wl-bM:SRE' 14370 shared_flag_svr4='$wl-G' 14371 fi 14372 fi 14373 14374 export_dynamic_flag_spec_CXX='$wl-bexpall' 14375 # It seems that -bexpall does not export symbols beginning with 14376 # underscore (_), so it is better to generate a list of symbols to 14377 # export. 14378 always_export_symbols_CXX=yes 14379 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14380 # Warning - without using the other runtime loading flags (-brtl), 14381 # -berok will link without error, but may produce a broken library. 14382 # The "-G" linker flag allows undefined symbols. 14383 no_undefined_flag_CXX='-bernotok' 14384 # Determine the default libpath from the value encoded in an empty 14385 # executable. 14386 if test set = "${lt_cv_aix_libpath+set}"; then 14387 aix_libpath=$lt_cv_aix_libpath 14388else 14389 if ${lt_cv_aix_libpath__CXX+:} false; then : 14390 $as_echo_n "(cached) " >&6 14391else 14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14393/* end confdefs.h. */ 14394 14395int 14396main () 14397{ 14398 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403if ac_fn_cxx_try_link "$LINENO"; then : 14404 14405 lt_aix_libpath_sed=' 14406 /Import File Strings/,/^$/ { 14407 /^0/ { 14408 s/^0 *\([^ ]*\) *$/\1/ 14409 p 14410 } 14411 }' 14412 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14413 # Check for a 64-bit object if we didn't find anything. 14414 if test -z "$lt_cv_aix_libpath__CXX"; then 14415 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14416 fi 14417fi 14418rm -f core conftest.err conftest.$ac_objext \ 14419 conftest$ac_exeext conftest.$ac_ext 14420 if test -z "$lt_cv_aix_libpath__CXX"; then 14421 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14422 fi 14423 14424fi 14425 14426 aix_libpath=$lt_cv_aix_libpath__CXX 14427fi 14428 14429 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14430 14431 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 14432 else 14433 if test ia64 = "$host_cpu"; then 14434 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14435 allow_undefined_flag_CXX="-z nodefs" 14436 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" 14437 else 14438 # Determine the default libpath from the value encoded in an 14439 # empty executable. 14440 if test set = "${lt_cv_aix_libpath+set}"; then 14441 aix_libpath=$lt_cv_aix_libpath 14442else 14443 if ${lt_cv_aix_libpath__CXX+:} false; then : 14444 $as_echo_n "(cached) " >&6 14445else 14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14447/* end confdefs.h. */ 14448 14449int 14450main () 14451{ 14452 14453 ; 14454 return 0; 14455} 14456_ACEOF 14457if ac_fn_cxx_try_link "$LINENO"; then : 14458 14459 lt_aix_libpath_sed=' 14460 /Import File Strings/,/^$/ { 14461 /^0/ { 14462 s/^0 *\([^ ]*\) *$/\1/ 14463 p 14464 } 14465 }' 14466 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14467 # Check for a 64-bit object if we didn't find anything. 14468 if test -z "$lt_cv_aix_libpath__CXX"; then 14469 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14470 fi 14471fi 14472rm -f core conftest.err conftest.$ac_objext \ 14473 conftest$ac_exeext conftest.$ac_ext 14474 if test -z "$lt_cv_aix_libpath__CXX"; then 14475 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14476 fi 14477 14478fi 14479 14480 aix_libpath=$lt_cv_aix_libpath__CXX 14481fi 14482 14483 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14484 # Warning - without using the other run time loading flags, 14485 # -berok will link without error, but may produce a broken library. 14486 no_undefined_flag_CXX=' $wl-bernotok' 14487 allow_undefined_flag_CXX=' $wl-berok' 14488 if test yes = "$with_gnu_ld"; then 14489 # We only use this code for GNU lds that support --whole-archive. 14490 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14491 else 14492 # Exported symbols can be pulled into shared objects from archives 14493 whole_archive_flag_spec_CXX='$convenience' 14494 fi 14495 archive_cmds_need_lc_CXX=yes 14496 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14497 # -brtl affects multiple linker settings, -berok does not and is overridden later 14498 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14499 if test svr4 != "$with_aix_soname"; then 14500 # This is similar to how AIX traditionally builds its shared 14501 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14502 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' 14503 fi 14504 if test aix != "$with_aix_soname"; then 14505 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' 14506 else 14507 # used by -dlpreopen to get the symbols 14508 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14509 fi 14510 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14511 fi 14512 fi 14513 ;; 14514 14515 beos*) 14516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14517 allow_undefined_flag_CXX=unsupported 14518 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14519 # support --undefined. This deserves some investigation. FIXME 14520 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14521 else 14522 ld_shlibs_CXX=no 14523 fi 14524 ;; 14525 14526 chorus*) 14527 case $cc_basename in 14528 *) 14529 # FIXME: insert proper C++ library support 14530 ld_shlibs_CXX=no 14531 ;; 14532 esac 14533 ;; 14534 14535 cygwin* | mingw* | pw32* | cegcc*) 14536 case $GXX,$cc_basename in 14537 ,cl* | no,cl*) 14538 # Native MSVC 14539 # hardcode_libdir_flag_spec is actually meaningless, as there is 14540 # no search path for DLLs. 14541 hardcode_libdir_flag_spec_CXX=' ' 14542 allow_undefined_flag_CXX=unsupported 14543 always_export_symbols_CXX=yes 14544 file_list_spec_CXX='@' 14545 # Tell ltmain to make .lib files, not .a files. 14546 libext=lib 14547 # Tell ltmain to make .dll files, not .so files. 14548 shrext_cmds=.dll 14549 # FIXME: Setting linknames here is a bad hack. 14550 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14551 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14552 cp "$export_symbols" "$output_objdir/$soname.def"; 14553 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14554 else 14555 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14556 fi~ 14557 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14558 linknames=' 14559 # The linker will not automatically build a static lib if we build a DLL. 14560 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14561 enable_shared_with_static_runtimes_CXX=yes 14562 # Don't use ranlib 14563 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14564 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14565 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14566 case $lt_outputfile in 14567 *.exe|*.EXE) ;; 14568 *) 14569 lt_outputfile=$lt_outputfile.exe 14570 lt_tool_outputfile=$lt_tool_outputfile.exe 14571 ;; 14572 esac~ 14573 func_to_tool_file "$lt_outputfile"~ 14574 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14575 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14576 $RM "$lt_outputfile.manifest"; 14577 fi' 14578 ;; 14579 *) 14580 # g++ 14581 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14582 # as there is no search path for DLLs. 14583 hardcode_libdir_flag_spec_CXX='-L$libdir' 14584 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14585 allow_undefined_flag_CXX=unsupported 14586 always_export_symbols_CXX=no 14587 enable_shared_with_static_runtimes_CXX=yes 14588 14589 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14590 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' 14591 # If the export-symbols file already is a .def file, use it as 14592 # is; otherwise, prepend EXPORTS... 14593 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14594 cp $export_symbols $output_objdir/$soname.def; 14595 else 14596 echo EXPORTS > $output_objdir/$soname.def; 14597 cat $export_symbols >> $output_objdir/$soname.def; 14598 fi~ 14599 $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' 14600 else 14601 ld_shlibs_CXX=no 14602 fi 14603 ;; 14604 esac 14605 ;; 14606 darwin* | rhapsody*) 14607 14608 14609 archive_cmds_need_lc_CXX=no 14610 hardcode_direct_CXX=no 14611 hardcode_automatic_CXX=yes 14612 hardcode_shlibpath_var_CXX=unsupported 14613 if test yes = "$lt_cv_ld_force_load"; then 14614 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\"`' 14615 14616 else 14617 whole_archive_flag_spec_CXX='' 14618 fi 14619 link_all_deplibs_CXX=yes 14620 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14621 case $cc_basename in 14622 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14623 *) _lt_dar_can_shared=$GCC ;; 14624 esac 14625 if test yes = "$_lt_dar_can_shared"; then 14626 output_verbose_link_cmd=func_echo_all 14627 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" 14628 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14629 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" 14630 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" 14631 if test yes != "$lt_cv_apple_cc_single_mod"; then 14632 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" 14633 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" 14634 fi 14635 14636 else 14637 ld_shlibs_CXX=no 14638 fi 14639 14640 ;; 14641 14642 os2*) 14643 hardcode_libdir_flag_spec_CXX='-L$libdir' 14644 hardcode_minus_L_CXX=yes 14645 allow_undefined_flag_CXX=unsupported 14646 shrext_cmds=.dll 14647 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14650 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14653 emximp -o $lib $output_objdir/$libname.def' 14654 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14657 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14658 prefix_cmds="$SED"~ 14659 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14660 prefix_cmds="$prefix_cmds -e 1d"; 14661 fi~ 14662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14665 emximp -o $lib $output_objdir/$libname.def' 14666 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14667 enable_shared_with_static_runtimes_CXX=yes 14668 ;; 14669 14670 dgux*) 14671 case $cc_basename in 14672 ec++*) 14673 # FIXME: insert proper C++ library support 14674 ld_shlibs_CXX=no 14675 ;; 14676 ghcx*) 14677 # Green Hills C++ Compiler 14678 # FIXME: insert proper C++ library support 14679 ld_shlibs_CXX=no 14680 ;; 14681 *) 14682 # FIXME: insert proper C++ library support 14683 ld_shlibs_CXX=no 14684 ;; 14685 esac 14686 ;; 14687 14688 freebsd2.*) 14689 # C++ shared libraries reported to be fairly broken before 14690 # switch to ELF 14691 ld_shlibs_CXX=no 14692 ;; 14693 14694 freebsd-elf*) 14695 archive_cmds_need_lc_CXX=no 14696 ;; 14697 14698 freebsd* | dragonfly*) 14699 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14700 # conventions 14701 ld_shlibs_CXX=yes 14702 ;; 14703 14704 haiku*) 14705 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14706 link_all_deplibs_CXX=yes 14707 ;; 14708 14709 hpux9*) 14710 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14711 hardcode_libdir_separator_CXX=: 14712 export_dynamic_flag_spec_CXX='$wl-E' 14713 hardcode_direct_CXX=yes 14714 hardcode_minus_L_CXX=yes # Not in the search PATH, 14715 # but as the default 14716 # location of the library. 14717 14718 case $cc_basename in 14719 CC*) 14720 # FIXME: insert proper C++ library support 14721 ld_shlibs_CXX=no 14722 ;; 14723 aCC*) 14724 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' 14725 # Commands to make compiler produce verbose output that lists 14726 # what "hidden" libraries, object files and flags are used when 14727 # linking a shared library. 14728 # 14729 # There doesn't appear to be a way to prevent this compiler from 14730 # explicitly linking system object files so we need to strip them 14731 # from the output so that they don't get included in the library 14732 # dependencies. 14733 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"' 14734 ;; 14735 *) 14736 if test yes = "$GXX"; then 14737 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' 14738 else 14739 # FIXME: insert proper C++ library support 14740 ld_shlibs_CXX=no 14741 fi 14742 ;; 14743 esac 14744 ;; 14745 14746 hpux10*|hpux11*) 14747 if test no = "$with_gnu_ld"; then 14748 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14749 hardcode_libdir_separator_CXX=: 14750 14751 case $host_cpu in 14752 hppa*64*|ia64*) 14753 ;; 14754 *) 14755 export_dynamic_flag_spec_CXX='$wl-E' 14756 ;; 14757 esac 14758 fi 14759 case $host_cpu in 14760 hppa*64*|ia64*) 14761 hardcode_direct_CXX=no 14762 hardcode_shlibpath_var_CXX=no 14763 ;; 14764 *) 14765 hardcode_direct_CXX=yes 14766 hardcode_direct_absolute_CXX=yes 14767 hardcode_minus_L_CXX=yes # Not in the search PATH, 14768 # but as the default 14769 # location of the library. 14770 ;; 14771 esac 14772 14773 case $cc_basename in 14774 CC*) 14775 # FIXME: insert proper C++ library support 14776 ld_shlibs_CXX=no 14777 ;; 14778 aCC*) 14779 case $host_cpu in 14780 hppa*64*) 14781 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14782 ;; 14783 ia64*) 14784 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14785 ;; 14786 *) 14787 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14788 ;; 14789 esac 14790 # Commands to make compiler produce verbose output that lists 14791 # what "hidden" libraries, object files and flags are used when 14792 # linking a shared library. 14793 # 14794 # There doesn't appear to be a way to prevent this compiler from 14795 # explicitly linking system object files so we need to strip them 14796 # from the output so that they don't get included in the library 14797 # dependencies. 14798 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"' 14799 ;; 14800 *) 14801 if test yes = "$GXX"; then 14802 if test no = "$with_gnu_ld"; then 14803 case $host_cpu in 14804 hppa*64*) 14805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14806 ;; 14807 ia64*) 14808 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14809 ;; 14810 *) 14811 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' 14812 ;; 14813 esac 14814 fi 14815 else 14816 # FIXME: insert proper C++ library support 14817 ld_shlibs_CXX=no 14818 fi 14819 ;; 14820 esac 14821 ;; 14822 14823 interix[3-9]*) 14824 hardcode_direct_CXX=no 14825 hardcode_shlibpath_var_CXX=no 14826 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14827 export_dynamic_flag_spec_CXX='$wl-E' 14828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14829 # Instead, shared libraries are loaded at an image base (0x10000000 by 14830 # default) and relocated if they conflict, which is a slow very memory 14831 # consuming and fragmenting process. To avoid this, we pick a random, 14832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14833 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14834 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' 14835 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' 14836 ;; 14837 irix5* | irix6*) 14838 case $cc_basename in 14839 CC*) 14840 # SGI C++ 14841 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' 14842 14843 # Archives containing C++ object files must be created using 14844 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14845 # necessary to make sure instantiated templates are included 14846 # in the archive. 14847 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14848 ;; 14849 *) 14850 if test yes = "$GXX"; then 14851 if test no = "$with_gnu_ld"; then 14852 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' 14853 else 14854 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' 14855 fi 14856 fi 14857 link_all_deplibs_CXX=yes 14858 ;; 14859 esac 14860 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14861 hardcode_libdir_separator_CXX=: 14862 inherit_rpath_CXX=yes 14863 ;; 14864 14865 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14866 case $cc_basename in 14867 KCC*) 14868 # Kuck and Associates, Inc. (KAI) C++ Compiler 14869 14870 # KCC will only create a shared library if the output file 14871 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14872 # to its proper name (with version) after linking. 14873 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' 14874 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' 14875 # Commands to make compiler produce verbose output that lists 14876 # what "hidden" libraries, object files and flags are used when 14877 # linking a shared library. 14878 # 14879 # There doesn't appear to be a way to prevent this compiler from 14880 # explicitly linking system object files so we need to strip them 14881 # from the output so that they don't get included in the library 14882 # dependencies. 14883 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"' 14884 14885 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14886 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14887 14888 # Archives containing C++ object files must be created using 14889 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14890 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14891 ;; 14892 icpc* | ecpc* ) 14893 # Intel C++ 14894 with_gnu_ld=yes 14895 # version 8.0 and above of icpc choke on multiply defined symbols 14896 # if we add $predep_objects and $postdep_objects, however 7.1 and 14897 # earlier do not add the objects themselves. 14898 case `$CC -V 2>&1` in 14899 *"Version 7."*) 14900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14901 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' 14902 ;; 14903 *) # Version 8.0 or newer 14904 tmp_idyn= 14905 case $host_cpu in 14906 ia64*) tmp_idyn=' -i_dynamic';; 14907 esac 14908 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14909 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' 14910 ;; 14911 esac 14912 archive_cmds_need_lc_CXX=no 14913 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14914 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14915 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14916 ;; 14917 pgCC* | pgcpp*) 14918 # Portland Group C++ compiler 14919 case `$CC -V` in 14920 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14921 prelink_cmds_CXX='tpldir=Template.dir~ 14922 rm -rf $tpldir~ 14923 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14924 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14925 old_archive_cmds_CXX='tpldir=Template.dir~ 14926 rm -rf $tpldir~ 14927 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14928 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14929 $RANLIB $oldlib' 14930 archive_cmds_CXX='tpldir=Template.dir~ 14931 rm -rf $tpldir~ 14932 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14933 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14934 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14935 rm -rf $tpldir~ 14936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14937 $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' 14938 ;; 14939 *) # Version 6 and above use weak symbols 14940 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14941 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' 14942 ;; 14943 esac 14944 14945 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14946 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14947 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' 14948 ;; 14949 cxx*) 14950 # Compaq C++ 14951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14952 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' 14953 14954 runpath_var=LD_RUN_PATH 14955 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14956 hardcode_libdir_separator_CXX=: 14957 14958 # Commands to make compiler produce verbose output that lists 14959 # what "hidden" libraries, object files and flags are used when 14960 # linking a shared library. 14961 # 14962 # There doesn't appear to be a way to prevent this compiler from 14963 # explicitly linking system object files so we need to strip them 14964 # from the output so that they don't get included in the library 14965 # dependencies. 14966 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' 14967 ;; 14968 xl* | mpixl* | bgxl*) 14969 # IBM XL 8.0 on PPC, with GNU ld 14970 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14971 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14972 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14973 if test yes = "$supports_anon_versioning"; then 14974 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14976 echo "local: *; };" >> $output_objdir/$libname.ver~ 14977 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14978 fi 14979 ;; 14980 *) 14981 case `$CC -V 2>&1 | sed 5q` in 14982 *Sun\ C*) 14983 # Sun C++ 5.9 14984 no_undefined_flag_CXX=' -zdefs' 14985 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14986 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' 14987 hardcode_libdir_flag_spec_CXX='-R$libdir' 14988 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' 14989 compiler_needs_object_CXX=yes 14990 14991 # Not sure whether something based on 14992 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14993 # would be better. 14994 output_verbose_link_cmd='func_echo_all' 14995 14996 # Archives containing C++ object files must be created using 14997 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14998 # necessary to make sure instantiated templates are included 14999 # in the archive. 15000 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15001 ;; 15002 esac 15003 ;; 15004 esac 15005 ;; 15006 15007 lynxos*) 15008 # FIXME: insert proper C++ library support 15009 ld_shlibs_CXX=no 15010 ;; 15011 15012 m88k*) 15013 # FIXME: insert proper C++ library support 15014 ld_shlibs_CXX=no 15015 ;; 15016 15017 mvs*) 15018 case $cc_basename in 15019 cxx*) 15020 # FIXME: insert proper C++ library support 15021 ld_shlibs_CXX=no 15022 ;; 15023 *) 15024 # FIXME: insert proper C++ library support 15025 ld_shlibs_CXX=no 15026 ;; 15027 esac 15028 ;; 15029 15030 netbsd*) 15031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15032 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15033 wlarc= 15034 hardcode_libdir_flag_spec_CXX='-R$libdir' 15035 hardcode_direct_CXX=yes 15036 hardcode_shlibpath_var_CXX=no 15037 fi 15038 # Workaround some broken pre-1.5 toolchains 15039 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15040 ;; 15041 15042 *nto* | *qnx*) 15043 ld_shlibs_CXX=yes 15044 ;; 15045 15046 openbsd* | bitrig*) 15047 if test -f /usr/libexec/ld.so; then 15048 hardcode_direct_CXX=yes 15049 hardcode_shlibpath_var_CXX=no 15050 hardcode_direct_absolute_CXX=yes 15051 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15052 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15054 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15055 export_dynamic_flag_spec_CXX='$wl-E' 15056 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15057 fi 15058 output_verbose_link_cmd=func_echo_all 15059 else 15060 ld_shlibs_CXX=no 15061 fi 15062 ;; 15063 15064 osf3* | osf4* | osf5*) 15065 case $cc_basename in 15066 KCC*) 15067 # Kuck and Associates, Inc. (KAI) C++ Compiler 15068 15069 # KCC will only create a shared library if the output file 15070 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15071 # to its proper name (with version) after linking. 15072 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' 15073 15074 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15075 hardcode_libdir_separator_CXX=: 15076 15077 # Archives containing C++ object files must be created using 15078 # the KAI C++ compiler. 15079 case $host in 15080 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15081 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15082 esac 15083 ;; 15084 RCC*) 15085 # Rational C++ 2.4.1 15086 # FIXME: insert proper C++ library support 15087 ld_shlibs_CXX=no 15088 ;; 15089 cxx*) 15090 case $host in 15091 osf3*) 15092 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15093 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' 15094 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15095 ;; 15096 *) 15097 allow_undefined_flag_CXX=' -expect_unresolved \*' 15098 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' 15099 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15100 echo "-hidden">> $lib.exp~ 15101 $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~ 15102 $RM $lib.exp' 15103 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15104 ;; 15105 esac 15106 15107 hardcode_libdir_separator_CXX=: 15108 15109 # Commands to make compiler produce verbose output that lists 15110 # what "hidden" libraries, object files and flags are used when 15111 # linking a shared library. 15112 # 15113 # There doesn't appear to be a way to prevent this compiler from 15114 # explicitly linking system object files so we need to strip them 15115 # from the output so that they don't get included in the library 15116 # dependencies. 15117 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"' 15118 ;; 15119 *) 15120 if test yes,no = "$GXX,$with_gnu_ld"; then 15121 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15122 case $host in 15123 osf3*) 15124 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' 15125 ;; 15126 *) 15127 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' 15128 ;; 15129 esac 15130 15131 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15132 hardcode_libdir_separator_CXX=: 15133 15134 # Commands to make compiler produce verbose output that lists 15135 # what "hidden" libraries, object files and flags are used when 15136 # linking a shared library. 15137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15138 15139 else 15140 # FIXME: insert proper C++ library support 15141 ld_shlibs_CXX=no 15142 fi 15143 ;; 15144 esac 15145 ;; 15146 15147 psos*) 15148 # FIXME: insert proper C++ library support 15149 ld_shlibs_CXX=no 15150 ;; 15151 15152 sunos4*) 15153 case $cc_basename in 15154 CC*) 15155 # Sun C++ 4.x 15156 # FIXME: insert proper C++ library support 15157 ld_shlibs_CXX=no 15158 ;; 15159 lcc*) 15160 # Lucid 15161 # FIXME: insert proper C++ library support 15162 ld_shlibs_CXX=no 15163 ;; 15164 *) 15165 # FIXME: insert proper C++ library support 15166 ld_shlibs_CXX=no 15167 ;; 15168 esac 15169 ;; 15170 15171 solaris*) 15172 case $cc_basename in 15173 CC* | sunCC*) 15174 # Sun C++ 4.2, 5.x and Centerline C++ 15175 archive_cmds_need_lc_CXX=yes 15176 no_undefined_flag_CXX=' -zdefs' 15177 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15178 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15179 $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' 15180 15181 hardcode_libdir_flag_spec_CXX='-R$libdir' 15182 hardcode_shlibpath_var_CXX=no 15183 case $host_os in 15184 solaris2.[0-5] | solaris2.[0-5].*) ;; 15185 *) 15186 # The compiler driver will combine and reorder linker options, 15187 # but understands '-z linker_flag'. 15188 # Supported since Solaris 2.6 (maybe 2.5.1?) 15189 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15190 ;; 15191 esac 15192 link_all_deplibs_CXX=yes 15193 15194 output_verbose_link_cmd='func_echo_all' 15195 15196 # Archives containing C++ object files must be created using 15197 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15198 # necessary to make sure instantiated templates are included 15199 # in the archive. 15200 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15201 ;; 15202 gcx*) 15203 # Green Hills C++ Compiler 15204 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15205 15206 # The C++ compiler must be used to create the archive. 15207 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15208 ;; 15209 *) 15210 # GNU C++ compiler with Solaris linker 15211 if test yes,no = "$GXX,$with_gnu_ld"; then 15212 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15213 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15214 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15216 $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' 15217 15218 # Commands to make compiler produce verbose output that lists 15219 # what "hidden" libraries, object files and flags are used when 15220 # linking a shared library. 15221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15222 else 15223 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15224 # platform. 15225 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15226 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15227 $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' 15228 15229 # Commands to make compiler produce verbose output that lists 15230 # what "hidden" libraries, object files and flags are used when 15231 # linking a shared library. 15232 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15233 fi 15234 15235 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15236 case $host_os in 15237 solaris2.[0-5] | solaris2.[0-5].*) ;; 15238 *) 15239 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15240 ;; 15241 esac 15242 fi 15243 ;; 15244 esac 15245 ;; 15246 15247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15248 no_undefined_flag_CXX='$wl-z,text' 15249 archive_cmds_need_lc_CXX=no 15250 hardcode_shlibpath_var_CXX=no 15251 runpath_var='LD_RUN_PATH' 15252 15253 case $cc_basename in 15254 CC*) 15255 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15256 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15257 ;; 15258 *) 15259 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15260 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15261 ;; 15262 esac 15263 ;; 15264 15265 sysv5* | sco3.2v5* | sco5v6*) 15266 # Note: We CANNOT use -z defs as we might desire, because we do not 15267 # link with -lc, and that would cause any symbols used from libc to 15268 # always be unresolved, which means just about no library would 15269 # ever link correctly. If we're not using GNU ld we use -z text 15270 # though, which does catch some bad symbols but isn't as heavy-handed 15271 # as -z defs. 15272 no_undefined_flag_CXX='$wl-z,text' 15273 allow_undefined_flag_CXX='$wl-z,nodefs' 15274 archive_cmds_need_lc_CXX=no 15275 hardcode_shlibpath_var_CXX=no 15276 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15277 hardcode_libdir_separator_CXX=':' 15278 link_all_deplibs_CXX=yes 15279 export_dynamic_flag_spec_CXX='$wl-Bexport' 15280 runpath_var='LD_RUN_PATH' 15281 15282 case $cc_basename in 15283 CC*) 15284 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15285 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15286 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15287 '"$old_archive_cmds_CXX" 15288 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15289 '"$reload_cmds_CXX" 15290 ;; 15291 *) 15292 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15293 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15294 ;; 15295 esac 15296 ;; 15297 15298 tandem*) 15299 case $cc_basename in 15300 NCC*) 15301 # NonStop-UX NCC 3.20 15302 # FIXME: insert proper C++ library support 15303 ld_shlibs_CXX=no 15304 ;; 15305 *) 15306 # FIXME: insert proper C++ library support 15307 ld_shlibs_CXX=no 15308 ;; 15309 esac 15310 ;; 15311 15312 vxworks*) 15313 # FIXME: insert proper C++ library support 15314 ld_shlibs_CXX=no 15315 ;; 15316 15317 *) 15318 # FIXME: insert proper C++ library support 15319 ld_shlibs_CXX=no 15320 ;; 15321 esac 15322 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15324$as_echo "$ld_shlibs_CXX" >&6; } 15325 test no = "$ld_shlibs_CXX" && can_build_shared=no 15326 15327 GCC_CXX=$GXX 15328 LD_CXX=$LD 15329 15330 ## CAVEAT EMPTOR: 15331 ## There is no encapsulation within the following macros, do not change 15332 ## the running order or otherwise move them around unless you know exactly 15333 ## what you are doing... 15334 # Dependencies to place before and after the object being linked: 15335predep_objects_CXX= 15336postdep_objects_CXX= 15337predeps_CXX= 15338postdeps_CXX= 15339compiler_lib_search_path_CXX= 15340 15341cat > conftest.$ac_ext <<_LT_EOF 15342class Foo 15343{ 15344public: 15345 Foo (void) { a = 0; } 15346private: 15347 int a; 15348}; 15349_LT_EOF 15350 15351 15352_lt_libdeps_save_CFLAGS=$CFLAGS 15353case "$CC $CFLAGS " in #( 15354*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15355*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15356*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15357esac 15358 15359if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15360 (eval $ac_compile) 2>&5 15361 ac_status=$? 15362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15363 test $ac_status = 0; }; then 15364 # Parse the compiler output and extract the necessary 15365 # objects, libraries and library flags. 15366 15367 # Sentinel used to keep track of whether or not we are before 15368 # the conftest object file. 15369 pre_test_object_deps_done=no 15370 15371 for p in `eval "$output_verbose_link_cmd"`; do 15372 case $prev$p in 15373 15374 -L* | -R* | -l*) 15375 # Some compilers place space between "-{L,R}" and the path. 15376 # Remove the space. 15377 if test x-L = "$p" || 15378 test x-R = "$p"; then 15379 prev=$p 15380 continue 15381 fi 15382 15383 # Expand the sysroot to ease extracting the directories later. 15384 if test -z "$prev"; then 15385 case $p in 15386 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15387 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15388 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15389 esac 15390 fi 15391 case $p in 15392 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15393 esac 15394 if test no = "$pre_test_object_deps_done"; then 15395 case $prev in 15396 -L | -R) 15397 # Internal compiler library paths should come after those 15398 # provided the user. The postdeps already come after the 15399 # user supplied libs so there is no need to process them. 15400 if test -z "$compiler_lib_search_path_CXX"; then 15401 compiler_lib_search_path_CXX=$prev$p 15402 else 15403 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15404 fi 15405 ;; 15406 # The "-l" case would never come before the object being 15407 # linked, so don't bother handling this case. 15408 esac 15409 else 15410 if test -z "$postdeps_CXX"; then 15411 postdeps_CXX=$prev$p 15412 else 15413 postdeps_CXX="${postdeps_CXX} $prev$p" 15414 fi 15415 fi 15416 prev= 15417 ;; 15418 15419 *.lto.$objext) ;; # Ignore GCC LTO objects 15420 *.$objext) 15421 # This assumes that the test object file only shows up 15422 # once in the compiler output. 15423 if test "$p" = "conftest.$objext"; then 15424 pre_test_object_deps_done=yes 15425 continue 15426 fi 15427 15428 if test no = "$pre_test_object_deps_done"; then 15429 if test -z "$predep_objects_CXX"; then 15430 predep_objects_CXX=$p 15431 else 15432 predep_objects_CXX="$predep_objects_CXX $p" 15433 fi 15434 else 15435 if test -z "$postdep_objects_CXX"; then 15436 postdep_objects_CXX=$p 15437 else 15438 postdep_objects_CXX="$postdep_objects_CXX $p" 15439 fi 15440 fi 15441 ;; 15442 15443 *) ;; # Ignore the rest. 15444 15445 esac 15446 done 15447 15448 # Clean up. 15449 rm -f a.out a.exe 15450else 15451 echo "libtool.m4: error: problem compiling CXX test program" 15452fi 15453 15454$RM -f confest.$objext 15455CFLAGS=$_lt_libdeps_save_CFLAGS 15456 15457# PORTME: override above test on systems where it is broken 15458case $host_os in 15459interix[3-9]*) 15460 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15461 # hack all around it, let's just trust "g++" to DTRT. 15462 predep_objects_CXX= 15463 postdep_objects_CXX= 15464 postdeps_CXX= 15465 ;; 15466esac 15467 15468 15469case " $postdeps_CXX " in 15470*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15471esac 15472 compiler_lib_search_dirs_CXX= 15473if test -n "${compiler_lib_search_path_CXX}"; then 15474 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15475fi 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 lt_prog_compiler_wl_CXX= 15508lt_prog_compiler_pic_CXX= 15509lt_prog_compiler_static_CXX= 15510 15511 15512 # C++ specific cases for pic, static, wl, etc. 15513 if test yes = "$GXX"; then 15514 lt_prog_compiler_wl_CXX='-Wl,' 15515 lt_prog_compiler_static_CXX='-static' 15516 15517 case $host_os in 15518 aix*) 15519 # All AIX code is PIC. 15520 if test ia64 = "$host_cpu"; then 15521 # AIX 5 now supports IA64 processor 15522 lt_prog_compiler_static_CXX='-Bstatic' 15523 fi 15524 lt_prog_compiler_pic_CXX='-fPIC' 15525 ;; 15526 15527 amigaos*) 15528 case $host_cpu in 15529 powerpc) 15530 # see comment about AmigaOS4 .so support 15531 lt_prog_compiler_pic_CXX='-fPIC' 15532 ;; 15533 m68k) 15534 # FIXME: we need at least 68020 code to build shared libraries, but 15535 # adding the '-m68020' flag to GCC prevents building anything better, 15536 # like '-m68040'. 15537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15538 ;; 15539 esac 15540 ;; 15541 15542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15543 # PIC is the default for these OSes. 15544 ;; 15545 mingw* | cygwin* | os2* | pw32* | cegcc*) 15546 # This hack is so that the source file can tell whether it is being 15547 # built for inclusion in a dll (and should export symbols for example). 15548 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15549 # (--disable-auto-import) libraries 15550 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15551 case $host_os in 15552 os2*) 15553 lt_prog_compiler_static_CXX='$wl-static' 15554 ;; 15555 esac 15556 ;; 15557 darwin* | rhapsody*) 15558 # PIC is the default on this platform 15559 # Common symbols not allowed in MH_DYLIB files 15560 lt_prog_compiler_pic_CXX='-fno-common' 15561 ;; 15562 *djgpp*) 15563 # DJGPP does not support shared libraries at all 15564 lt_prog_compiler_pic_CXX= 15565 ;; 15566 haiku*) 15567 # PIC is the default for Haiku. 15568 # The "-static" flag exists, but is broken. 15569 lt_prog_compiler_static_CXX= 15570 ;; 15571 interix[3-9]*) 15572 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15573 # Instead, we relocate shared libraries at runtime. 15574 ;; 15575 sysv4*MP*) 15576 if test -d /usr/nec; then 15577 lt_prog_compiler_pic_CXX=-Kconform_pic 15578 fi 15579 ;; 15580 hpux*) 15581 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15582 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15583 # sets the default TLS model and affects inlining. 15584 case $host_cpu in 15585 hppa*64*) 15586 ;; 15587 *) 15588 lt_prog_compiler_pic_CXX='-fPIC' 15589 ;; 15590 esac 15591 ;; 15592 *qnx* | *nto*) 15593 # QNX uses GNU C++, but need to define -shared option too, otherwise 15594 # it will coredump. 15595 lt_prog_compiler_pic_CXX='-fPIC -shared' 15596 ;; 15597 *) 15598 lt_prog_compiler_pic_CXX='-fPIC' 15599 ;; 15600 esac 15601 else 15602 case $host_os in 15603 aix[4-9]*) 15604 # All AIX code is PIC. 15605 if test ia64 = "$host_cpu"; then 15606 # AIX 5 now supports IA64 processor 15607 lt_prog_compiler_static_CXX='-Bstatic' 15608 else 15609 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15610 fi 15611 ;; 15612 chorus*) 15613 case $cc_basename in 15614 cxch68*) 15615 # Green Hills C++ Compiler 15616 # _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" 15617 ;; 15618 esac 15619 ;; 15620 mingw* | cygwin* | os2* | pw32* | cegcc*) 15621 # This hack is so that the source file can tell whether it is being 15622 # built for inclusion in a dll (and should export symbols for example). 15623 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15624 ;; 15625 dgux*) 15626 case $cc_basename in 15627 ec++*) 15628 lt_prog_compiler_pic_CXX='-KPIC' 15629 ;; 15630 ghcx*) 15631 # Green Hills C++ Compiler 15632 lt_prog_compiler_pic_CXX='-pic' 15633 ;; 15634 *) 15635 ;; 15636 esac 15637 ;; 15638 freebsd* | dragonfly*) 15639 # FreeBSD uses GNU C++ 15640 ;; 15641 hpux9* | hpux10* | hpux11*) 15642 case $cc_basename in 15643 CC*) 15644 lt_prog_compiler_wl_CXX='-Wl,' 15645 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15646 if test ia64 != "$host_cpu"; then 15647 lt_prog_compiler_pic_CXX='+Z' 15648 fi 15649 ;; 15650 aCC*) 15651 lt_prog_compiler_wl_CXX='-Wl,' 15652 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15653 case $host_cpu in 15654 hppa*64*|ia64*) 15655 # +Z the default 15656 ;; 15657 *) 15658 lt_prog_compiler_pic_CXX='+Z' 15659 ;; 15660 esac 15661 ;; 15662 *) 15663 ;; 15664 esac 15665 ;; 15666 interix*) 15667 # This is c89, which is MS Visual C++ (no shared libs) 15668 # Anyone wants to do a port? 15669 ;; 15670 irix5* | irix6* | nonstopux*) 15671 case $cc_basename in 15672 CC*) 15673 lt_prog_compiler_wl_CXX='-Wl,' 15674 lt_prog_compiler_static_CXX='-non_shared' 15675 # CC pic flag -KPIC is the default. 15676 ;; 15677 *) 15678 ;; 15679 esac 15680 ;; 15681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15682 case $cc_basename in 15683 KCC*) 15684 # KAI C++ Compiler 15685 lt_prog_compiler_wl_CXX='--backend -Wl,' 15686 lt_prog_compiler_pic_CXX='-fPIC' 15687 ;; 15688 ecpc* ) 15689 # old Intel C++ for x86_64, which still supported -KPIC. 15690 lt_prog_compiler_wl_CXX='-Wl,' 15691 lt_prog_compiler_pic_CXX='-KPIC' 15692 lt_prog_compiler_static_CXX='-static' 15693 ;; 15694 icpc* ) 15695 # Intel C++, used to be incompatible with GCC. 15696 # ICC 10 doesn't accept -KPIC any more. 15697 lt_prog_compiler_wl_CXX='-Wl,' 15698 lt_prog_compiler_pic_CXX='-fPIC' 15699 lt_prog_compiler_static_CXX='-static' 15700 ;; 15701 pgCC* | pgcpp*) 15702 # Portland Group C++ compiler 15703 lt_prog_compiler_wl_CXX='-Wl,' 15704 lt_prog_compiler_pic_CXX='-fpic' 15705 lt_prog_compiler_static_CXX='-Bstatic' 15706 ;; 15707 cxx*) 15708 # Compaq C++ 15709 # Make sure the PIC flag is empty. It appears that all Alpha 15710 # Linux and Compaq Tru64 Unix objects are PIC. 15711 lt_prog_compiler_pic_CXX= 15712 lt_prog_compiler_static_CXX='-non_shared' 15713 ;; 15714 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15715 # IBM XL 8.0, 9.0 on PPC and BlueGene 15716 lt_prog_compiler_wl_CXX='-Wl,' 15717 lt_prog_compiler_pic_CXX='-qpic' 15718 lt_prog_compiler_static_CXX='-qstaticlink' 15719 ;; 15720 *) 15721 case `$CC -V 2>&1 | sed 5q` in 15722 *Sun\ C*) 15723 # Sun C++ 5.9 15724 lt_prog_compiler_pic_CXX='-KPIC' 15725 lt_prog_compiler_static_CXX='-Bstatic' 15726 lt_prog_compiler_wl_CXX='-Qoption ld ' 15727 ;; 15728 esac 15729 ;; 15730 esac 15731 ;; 15732 lynxos*) 15733 ;; 15734 m88k*) 15735 ;; 15736 mvs*) 15737 case $cc_basename in 15738 cxx*) 15739 lt_prog_compiler_pic_CXX='-W c,exportall' 15740 ;; 15741 *) 15742 ;; 15743 esac 15744 ;; 15745 netbsd* | netbsdelf*-gnu) 15746 ;; 15747 *qnx* | *nto*) 15748 # QNX uses GNU C++, but need to define -shared option too, otherwise 15749 # it will coredump. 15750 lt_prog_compiler_pic_CXX='-fPIC -shared' 15751 ;; 15752 osf3* | osf4* | osf5*) 15753 case $cc_basename in 15754 KCC*) 15755 lt_prog_compiler_wl_CXX='--backend -Wl,' 15756 ;; 15757 RCC*) 15758 # Rational C++ 2.4.1 15759 lt_prog_compiler_pic_CXX='-pic' 15760 ;; 15761 cxx*) 15762 # Digital/Compaq C++ 15763 lt_prog_compiler_wl_CXX='-Wl,' 15764 # Make sure the PIC flag is empty. It appears that all Alpha 15765 # Linux and Compaq Tru64 Unix objects are PIC. 15766 lt_prog_compiler_pic_CXX= 15767 lt_prog_compiler_static_CXX='-non_shared' 15768 ;; 15769 *) 15770 ;; 15771 esac 15772 ;; 15773 psos*) 15774 ;; 15775 solaris*) 15776 case $cc_basename in 15777 CC* | sunCC*) 15778 # Sun C++ 4.2, 5.x and Centerline C++ 15779 lt_prog_compiler_pic_CXX='-KPIC' 15780 lt_prog_compiler_static_CXX='-Bstatic' 15781 lt_prog_compiler_wl_CXX='-Qoption ld ' 15782 ;; 15783 gcx*) 15784 # Green Hills C++ Compiler 15785 lt_prog_compiler_pic_CXX='-PIC' 15786 ;; 15787 *) 15788 ;; 15789 esac 15790 ;; 15791 sunos4*) 15792 case $cc_basename in 15793 CC*) 15794 # Sun C++ 4.x 15795 lt_prog_compiler_pic_CXX='-pic' 15796 lt_prog_compiler_static_CXX='-Bstatic' 15797 ;; 15798 lcc*) 15799 # Lucid 15800 lt_prog_compiler_pic_CXX='-pic' 15801 ;; 15802 *) 15803 ;; 15804 esac 15805 ;; 15806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15807 case $cc_basename in 15808 CC*) 15809 lt_prog_compiler_wl_CXX='-Wl,' 15810 lt_prog_compiler_pic_CXX='-KPIC' 15811 lt_prog_compiler_static_CXX='-Bstatic' 15812 ;; 15813 esac 15814 ;; 15815 tandem*) 15816 case $cc_basename in 15817 NCC*) 15818 # NonStop-UX NCC 3.20 15819 lt_prog_compiler_pic_CXX='-KPIC' 15820 ;; 15821 *) 15822 ;; 15823 esac 15824 ;; 15825 vxworks*) 15826 ;; 15827 *) 15828 lt_prog_compiler_can_build_shared_CXX=no 15829 ;; 15830 esac 15831 fi 15832 15833case $host_os in 15834 # For platforms that do not support PIC, -DPIC is meaningless: 15835 *djgpp*) 15836 lt_prog_compiler_pic_CXX= 15837 ;; 15838 *) 15839 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15840 ;; 15841esac 15842 15843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15844$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15845if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15846 $as_echo_n "(cached) " >&6 15847else 15848 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15849fi 15850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15851$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15852lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15853 15854# 15855# Check to make sure the PIC flag actually works. 15856# 15857if test -n "$lt_prog_compiler_pic_CXX"; then 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15859$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15860if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15861 $as_echo_n "(cached) " >&6 15862else 15863 lt_cv_prog_compiler_pic_works_CXX=no 15864 ac_outfile=conftest.$ac_objext 15865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15867 # Insert the option either (1) after the last *FLAGS variable, or 15868 # (2) before a word containing "conftest.", or (3) at the end. 15869 # Note that $ac_compile itself does not contain backslashes and begins 15870 # with a dollar sign (not a hyphen), so the echo should work correctly. 15871 # The option is referenced via a variable to avoid confusing sed. 15872 lt_compile=`echo "$ac_compile" | $SED \ 15873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15875 -e 's:$: $lt_compiler_flag:'` 15876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15877 (eval "$lt_compile" 2>conftest.err) 15878 ac_status=$? 15879 cat conftest.err >&5 15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15881 if (exit $ac_status) && test -s "$ac_outfile"; then 15882 # The compiler can only warn and ignore the option if not recognized 15883 # So say no if there are warnings other than the usual output. 15884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15887 lt_cv_prog_compiler_pic_works_CXX=yes 15888 fi 15889 fi 15890 $RM conftest* 15891 15892fi 15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15894$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15895 15896if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15897 case $lt_prog_compiler_pic_CXX in 15898 "" | " "*) ;; 15899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15900 esac 15901else 15902 lt_prog_compiler_pic_CXX= 15903 lt_prog_compiler_can_build_shared_CXX=no 15904fi 15905 15906fi 15907 15908 15909 15910 15911 15912# 15913# Check to make sure the static flag actually works. 15914# 15915wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15917$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15918if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920else 15921 lt_cv_prog_compiler_static_works_CXX=no 15922 save_LDFLAGS=$LDFLAGS 15923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15924 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15926 # The linker can only warn and ignore the option if not recognized 15927 # So say no if there are warnings 15928 if test -s conftest.err; then 15929 # Append any errors to the config.log. 15930 cat conftest.err 1>&5 15931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15933 if diff conftest.exp conftest.er2 >/dev/null; then 15934 lt_cv_prog_compiler_static_works_CXX=yes 15935 fi 15936 else 15937 lt_cv_prog_compiler_static_works_CXX=yes 15938 fi 15939 fi 15940 $RM -r conftest* 15941 LDFLAGS=$save_LDFLAGS 15942 15943fi 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15945$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15946 15947if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15948 : 15949else 15950 lt_prog_compiler_static_CXX= 15951fi 15952 15953 15954 15955 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15958if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 lt_cv_prog_compiler_c_o_CXX=no 15962 $RM -r conftest 2>/dev/null 15963 mkdir conftest 15964 cd conftest 15965 mkdir out 15966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15967 15968 lt_compiler_flag="-o out/conftest2.$ac_objext" 15969 # Insert the option either (1) after the last *FLAGS variable, or 15970 # (2) before a word containing "conftest.", or (3) at the end. 15971 # Note that $ac_compile itself does not contain backslashes and begins 15972 # with a dollar sign (not a hyphen), so the echo should work correctly. 15973 lt_compile=`echo "$ac_compile" | $SED \ 15974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15976 -e 's:$: $lt_compiler_flag:'` 15977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15978 (eval "$lt_compile" 2>out/conftest.err) 15979 ac_status=$? 15980 cat out/conftest.err >&5 15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15982 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15983 then 15984 # The compiler can only warn and ignore the option if not recognized 15985 # So say no if there are warnings 15986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15989 lt_cv_prog_compiler_c_o_CXX=yes 15990 fi 15991 fi 15992 chmod u+w . 2>&5 15993 $RM conftest* 15994 # SGI C++ compiler will create directory out/ii_files/ for 15995 # template instantiation 15996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15997 $RM out/* && rmdir out 15998 cd .. 15999 $RM -r conftest 16000 $RM conftest* 16001 16002fi 16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16004$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16005 16006 16007 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16009$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16010if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16011 $as_echo_n "(cached) " >&6 16012else 16013 lt_cv_prog_compiler_c_o_CXX=no 16014 $RM -r conftest 2>/dev/null 16015 mkdir conftest 16016 cd conftest 16017 mkdir out 16018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16019 16020 lt_compiler_flag="-o out/conftest2.$ac_objext" 16021 # Insert the option either (1) after the last *FLAGS variable, or 16022 # (2) before a word containing "conftest.", or (3) at the end. 16023 # Note that $ac_compile itself does not contain backslashes and begins 16024 # with a dollar sign (not a hyphen), so the echo should work correctly. 16025 lt_compile=`echo "$ac_compile" | $SED \ 16026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16028 -e 's:$: $lt_compiler_flag:'` 16029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16030 (eval "$lt_compile" 2>out/conftest.err) 16031 ac_status=$? 16032 cat out/conftest.err >&5 16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16034 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16035 then 16036 # The compiler can only warn and ignore the option if not recognized 16037 # So say no if there are warnings 16038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16041 lt_cv_prog_compiler_c_o_CXX=yes 16042 fi 16043 fi 16044 chmod u+w . 2>&5 16045 $RM conftest* 16046 # SGI C++ compiler will create directory out/ii_files/ for 16047 # template instantiation 16048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16049 $RM out/* && rmdir out 16050 cd .. 16051 $RM -r conftest 16052 $RM conftest* 16053 16054fi 16055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16056$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16057 16058 16059 16060 16061hard_links=nottested 16062if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16063 # do not overwrite the value of need_locks provided by the user 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16065$as_echo_n "checking if we can lock with hard links... " >&6; } 16066 hard_links=yes 16067 $RM conftest* 16068 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16069 touch conftest.a 16070 ln conftest.a conftest.b 2>&5 || hard_links=no 16071 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16073$as_echo "$hard_links" >&6; } 16074 if test no = "$hard_links"; then 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16076$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16077 need_locks=warn 16078 fi 16079else 16080 need_locks=no 16081fi 16082 16083 16084 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16086$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16087 16088 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16089 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16090 case $host_os in 16091 aix[4-9]*) 16092 # If we're using GNU nm, then we don't want the "-C" option. 16093 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16094 # Without the "-l" option, or with the "-B" option, AIX nm treats 16095 # weak defined symbols like other global defined symbols, whereas 16096 # GNU nm marks them as "W". 16097 # While the 'weak' keyword is ignored in the Export File, we need 16098 # it in the Import File for the 'aix-soname' feature, so we have 16099 # to replace the "-B" option with "-P" for AIX nm. 16100 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16101 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' 16102 else 16103 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' 16104 fi 16105 ;; 16106 pw32*) 16107 export_symbols_cmds_CXX=$ltdll_cmds 16108 ;; 16109 cygwin* | mingw* | cegcc*) 16110 case $cc_basename in 16111 cl*) 16112 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16113 ;; 16114 *) 16115 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' 16116 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16117 ;; 16118 esac 16119 ;; 16120 linux* | k*bsd*-gnu | gnu*) 16121 link_all_deplibs_CXX=no 16122 ;; 16123 *) 16124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16125 ;; 16126 esac 16127 16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16129$as_echo "$ld_shlibs_CXX" >&6; } 16130test no = "$ld_shlibs_CXX" && can_build_shared=no 16131 16132with_gnu_ld_CXX=$with_gnu_ld 16133 16134 16135 16136 16137 16138 16139# 16140# Do we need to explicitly link libc? 16141# 16142case "x$archive_cmds_need_lc_CXX" in 16143x|xyes) 16144 # Assume -lc should be added 16145 archive_cmds_need_lc_CXX=yes 16146 16147 if test yes,yes = "$GCC,$enable_shared"; then 16148 case $archive_cmds_CXX in 16149 *'~'*) 16150 # FIXME: we may have to deal with multi-command sequences. 16151 ;; 16152 '$CC '*) 16153 # Test whether the compiler implicitly links with -lc since on some 16154 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16155 # to ld, don't add -lc before -lgcc. 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16157$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16158if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16159 $as_echo_n "(cached) " >&6 16160else 16161 $RM conftest* 16162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16163 16164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16165 (eval $ac_compile) 2>&5 16166 ac_status=$? 16167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16168 test $ac_status = 0; } 2>conftest.err; then 16169 soname=conftest 16170 lib=conftest 16171 libobjs=conftest.$ac_objext 16172 deplibs= 16173 wl=$lt_prog_compiler_wl_CXX 16174 pic_flag=$lt_prog_compiler_pic_CXX 16175 compiler_flags=-v 16176 linker_flags=-v 16177 verstring= 16178 output_objdir=. 16179 libname=conftest 16180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16181 allow_undefined_flag_CXX= 16182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16183 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16184 ac_status=$? 16185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16186 test $ac_status = 0; } 16187 then 16188 lt_cv_archive_cmds_need_lc_CXX=no 16189 else 16190 lt_cv_archive_cmds_need_lc_CXX=yes 16191 fi 16192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16193 else 16194 cat conftest.err 1>&5 16195 fi 16196 $RM conftest* 16197 16198fi 16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16200$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16201 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16202 ;; 16203 esac 16204 fi 16205 ;; 16206esac 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16270$as_echo_n "checking dynamic linker characteristics... " >&6; } 16271 16272library_names_spec= 16273libname_spec='lib$name' 16274soname_spec= 16275shrext_cmds=.so 16276postinstall_cmds= 16277postuninstall_cmds= 16278finish_cmds= 16279finish_eval= 16280shlibpath_var= 16281shlibpath_overrides_runpath=unknown 16282version_type=none 16283dynamic_linker="$host_os ld.so" 16284sys_lib_dlsearch_path_spec="/lib /usr/lib" 16285need_lib_prefix=unknown 16286hardcode_into_libs=no 16287 16288# when you set need_version to no, make sure it does not cause -set_version 16289# flags to be left without arguments 16290need_version=unknown 16291 16292 16293 16294case $host_os in 16295aix3*) 16296 version_type=linux # correct to gnu/linux during the next big refactor 16297 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16298 shlibpath_var=LIBPATH 16299 16300 # AIX 3 has no versioning support, so we append a major version to the name. 16301 soname_spec='$libname$release$shared_ext$major' 16302 ;; 16303 16304aix[4-9]*) 16305 version_type=linux # correct to gnu/linux during the next big refactor 16306 need_lib_prefix=no 16307 need_version=no 16308 hardcode_into_libs=yes 16309 if test ia64 = "$host_cpu"; then 16310 # AIX 5 supports IA64 16311 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16312 shlibpath_var=LD_LIBRARY_PATH 16313 else 16314 # With GCC up to 2.95.x, collect2 would create an import file 16315 # for dependence libraries. The import file would start with 16316 # the line '#! .'. This would cause the generated library to 16317 # depend on '.', always an invalid library. This was fixed in 16318 # development snapshots of GCC prior to 3.0. 16319 case $host_os in 16320 aix4 | aix4.[01] | aix4.[01].*) 16321 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16322 echo ' yes ' 16323 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16324 : 16325 else 16326 can_build_shared=no 16327 fi 16328 ;; 16329 esac 16330 # Using Import Files as archive members, it is possible to support 16331 # filename-based versioning of shared library archives on AIX. While 16332 # this would work for both with and without runtime linking, it will 16333 # prevent static linking of such archives. So we do filename-based 16334 # shared library versioning with .so extension only, which is used 16335 # when both runtime linking and shared linking is enabled. 16336 # Unfortunately, runtime linking may impact performance, so we do 16337 # not want this to be the default eventually. Also, we use the 16338 # versioned .so libs for executables only if there is the -brtl 16339 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16340 # To allow for filename-based versioning support, we need to create 16341 # libNAME.so.V as an archive file, containing: 16342 # *) an Import File, referring to the versioned filename of the 16343 # archive as well as the shared archive member, telling the 16344 # bitwidth (32 or 64) of that shared object, and providing the 16345 # list of exported symbols of that shared object, eventually 16346 # decorated with the 'weak' keyword 16347 # *) the shared object with the F_LOADONLY flag set, to really avoid 16348 # it being seen by the linker. 16349 # At run time we better use the real file rather than another symlink, 16350 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16351 16352 case $with_aix_soname,$aix_use_runtimelinking in 16353 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16354 # soname into executable. Probably we can add versioning support to 16355 # collect2, so additional links can be useful in future. 16356 aix,yes) # traditional libtool 16357 dynamic_linker='AIX unversionable lib.so' 16358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16359 # instead of lib<name>.a to let people know that these are not 16360 # typical AIX shared libraries. 16361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16362 ;; 16363 aix,no) # traditional AIX only 16364 dynamic_linker='AIX lib.a(lib.so.V)' 16365 # We preserve .a as extension for shared libraries through AIX4.2 16366 # and later when we are not doing run time linking. 16367 library_names_spec='$libname$release.a $libname.a' 16368 soname_spec='$libname$release$shared_ext$major' 16369 ;; 16370 svr4,*) # full svr4 only 16371 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16372 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16373 # We do not specify a path in Import Files, so LIBPATH fires. 16374 shlibpath_overrides_runpath=yes 16375 ;; 16376 *,yes) # both, prefer svr4 16377 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16378 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16379 # unpreferred sharedlib libNAME.a needs extra handling 16380 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"' 16381 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"' 16382 # We do not specify a path in Import Files, so LIBPATH fires. 16383 shlibpath_overrides_runpath=yes 16384 ;; 16385 *,no) # both, prefer aix 16386 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16387 library_names_spec='$libname$release.a $libname.a' 16388 soname_spec='$libname$release$shared_ext$major' 16389 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16390 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)' 16391 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"' 16392 ;; 16393 esac 16394 shlibpath_var=LIBPATH 16395 fi 16396 ;; 16397 16398amigaos*) 16399 case $host_cpu in 16400 powerpc) 16401 # Since July 2007 AmigaOS4 officially supports .so libraries. 16402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16404 ;; 16405 m68k) 16406 library_names_spec='$libname.ixlibrary $libname.a' 16407 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16408 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' 16409 ;; 16410 esac 16411 ;; 16412 16413beos*) 16414 library_names_spec='$libname$shared_ext' 16415 dynamic_linker="$host_os ld.so" 16416 shlibpath_var=LIBRARY_PATH 16417 ;; 16418 16419bsdi[45]*) 16420 version_type=linux # correct to gnu/linux during the next big refactor 16421 need_version=no 16422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16423 soname_spec='$libname$release$shared_ext$major' 16424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16425 shlibpath_var=LD_LIBRARY_PATH 16426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16428 # the default ld.so.conf also contains /usr/contrib/lib and 16429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16430 # libtool to hard-code these into programs 16431 ;; 16432 16433cygwin* | mingw* | pw32* | cegcc*) 16434 version_type=windows 16435 shrext_cmds=.dll 16436 need_version=no 16437 need_lib_prefix=no 16438 16439 case $GCC,$cc_basename in 16440 yes,*) 16441 # gcc 16442 library_names_spec='$libname.dll.a' 16443 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16444 postinstall_cmds='base_file=`basename \$file`~ 16445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16446 dldir=$destdir/`dirname \$dlpath`~ 16447 test -d \$dldir || mkdir -p \$dldir~ 16448 $install_prog $dir/$dlname \$dldir/$dlname~ 16449 chmod a+x \$dldir/$dlname~ 16450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16452 fi' 16453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16454 dlpath=$dir/\$dldll~ 16455 $RM \$dlpath' 16456 shlibpath_overrides_runpath=yes 16457 16458 case $host_os in 16459 cygwin*) 16460 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16461 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16462 16463 ;; 16464 mingw* | cegcc*) 16465 # MinGW DLLs use traditional 'lib' prefix 16466 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16467 ;; 16468 pw32*) 16469 # pw32 DLLs use 'pw' prefix rather than 'lib' 16470 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16471 ;; 16472 esac 16473 dynamic_linker='Win32 ld.exe' 16474 ;; 16475 16476 *,cl*) 16477 # Native MSVC 16478 libname_spec='$name' 16479 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16480 library_names_spec='$libname.dll.lib' 16481 16482 case $build_os in 16483 mingw*) 16484 sys_lib_search_path_spec= 16485 lt_save_ifs=$IFS 16486 IFS=';' 16487 for lt_path in $LIB 16488 do 16489 IFS=$lt_save_ifs 16490 # Let DOS variable expansion print the short 8.3 style file name. 16491 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16492 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16493 done 16494 IFS=$lt_save_ifs 16495 # Convert to MSYS style. 16496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16497 ;; 16498 cygwin*) 16499 # Convert to unix form, then to dos form, then back to unix form 16500 # but this time dos style (no spaces!) so that the unix form looks 16501 # like /cygdrive/c/PROGRA~1:/cygdr... 16502 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16503 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16504 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16505 ;; 16506 *) 16507 sys_lib_search_path_spec=$LIB 16508 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16509 # It is most probably a Windows format PATH. 16510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16511 else 16512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16513 fi 16514 # FIXME: find the short name or the path components, as spaces are 16515 # common. (e.g. "Program Files" -> "PROGRA~1") 16516 ;; 16517 esac 16518 16519 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16520 postinstall_cmds='base_file=`basename \$file`~ 16521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16522 dldir=$destdir/`dirname \$dlpath`~ 16523 test -d \$dldir || mkdir -p \$dldir~ 16524 $install_prog $dir/$dlname \$dldir/$dlname' 16525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16526 dlpath=$dir/\$dldll~ 16527 $RM \$dlpath' 16528 shlibpath_overrides_runpath=yes 16529 dynamic_linker='Win32 link.exe' 16530 ;; 16531 16532 *) 16533 # Assume MSVC wrapper 16534 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16535 dynamic_linker='Win32 ld.exe' 16536 ;; 16537 esac 16538 # FIXME: first we should search . and the directory the executable is in 16539 shlibpath_var=PATH 16540 ;; 16541 16542darwin* | rhapsody*) 16543 dynamic_linker="$host_os dyld" 16544 version_type=darwin 16545 need_lib_prefix=no 16546 need_version=no 16547 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16548 soname_spec='$libname$release$major$shared_ext' 16549 shlibpath_overrides_runpath=yes 16550 shlibpath_var=DYLD_LIBRARY_PATH 16551 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16552 16553 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16554 ;; 16555 16556dgux*) 16557 version_type=linux # correct to gnu/linux during the next big refactor 16558 need_lib_prefix=no 16559 need_version=no 16560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16561 soname_spec='$libname$release$shared_ext$major' 16562 shlibpath_var=LD_LIBRARY_PATH 16563 ;; 16564 16565freebsd* | dragonfly*) 16566 # DragonFly does not have aout. When/if they implement a new 16567 # versioning mechanism, adjust this. 16568 if test -x /usr/bin/objformat; then 16569 objformat=`/usr/bin/objformat` 16570 else 16571 case $host_os in 16572 freebsd[23].*) objformat=aout ;; 16573 *) objformat=elf ;; 16574 esac 16575 fi 16576 version_type=freebsd-$objformat 16577 case $version_type in 16578 freebsd-elf*) 16579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16580 soname_spec='$libname$release$shared_ext$major' 16581 need_version=no 16582 need_lib_prefix=no 16583 ;; 16584 freebsd-*) 16585 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16586 need_version=yes 16587 ;; 16588 esac 16589 shlibpath_var=LD_LIBRARY_PATH 16590 case $host_os in 16591 freebsd2.*) 16592 shlibpath_overrides_runpath=yes 16593 ;; 16594 freebsd3.[01]* | freebsdelf3.[01]*) 16595 shlibpath_overrides_runpath=yes 16596 hardcode_into_libs=yes 16597 ;; 16598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16600 shlibpath_overrides_runpath=no 16601 hardcode_into_libs=yes 16602 ;; 16603 *) # from 4.6 on, and DragonFly 16604 shlibpath_overrides_runpath=yes 16605 hardcode_into_libs=yes 16606 ;; 16607 esac 16608 ;; 16609 16610haiku*) 16611 version_type=linux # correct to gnu/linux during the next big refactor 16612 need_lib_prefix=no 16613 need_version=no 16614 dynamic_linker="$host_os runtime_loader" 16615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16616 soname_spec='$libname$release$shared_ext$major' 16617 shlibpath_var=LIBRARY_PATH 16618 shlibpath_overrides_runpath=no 16619 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16620 hardcode_into_libs=yes 16621 ;; 16622 16623hpux9* | hpux10* | hpux11*) 16624 # Give a soname corresponding to the major version so that dld.sl refuses to 16625 # link against other versions. 16626 version_type=sunos 16627 need_lib_prefix=no 16628 need_version=no 16629 case $host_cpu in 16630 ia64*) 16631 shrext_cmds='.so' 16632 hardcode_into_libs=yes 16633 dynamic_linker="$host_os dld.so" 16634 shlibpath_var=LD_LIBRARY_PATH 16635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16637 soname_spec='$libname$release$shared_ext$major' 16638 if test 32 = "$HPUX_IA64_MODE"; then 16639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16640 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16641 else 16642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16643 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16644 fi 16645 ;; 16646 hppa*64*) 16647 shrext_cmds='.sl' 16648 hardcode_into_libs=yes 16649 dynamic_linker="$host_os dld.sl" 16650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16653 soname_spec='$libname$release$shared_ext$major' 16654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16656 ;; 16657 *) 16658 shrext_cmds='.sl' 16659 dynamic_linker="$host_os dld.sl" 16660 shlibpath_var=SHLIB_PATH 16661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16663 soname_spec='$libname$release$shared_ext$major' 16664 ;; 16665 esac 16666 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16667 postinstall_cmds='chmod 555 $lib' 16668 # or fails outright, so override atomically: 16669 install_override_mode=555 16670 ;; 16671 16672interix[3-9]*) 16673 version_type=linux # correct to gnu/linux during the next big refactor 16674 need_lib_prefix=no 16675 need_version=no 16676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16677 soname_spec='$libname$release$shared_ext$major' 16678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16679 shlibpath_var=LD_LIBRARY_PATH 16680 shlibpath_overrides_runpath=no 16681 hardcode_into_libs=yes 16682 ;; 16683 16684irix5* | irix6* | nonstopux*) 16685 case $host_os in 16686 nonstopux*) version_type=nonstopux ;; 16687 *) 16688 if test yes = "$lt_cv_prog_gnu_ld"; then 16689 version_type=linux # correct to gnu/linux during the next big refactor 16690 else 16691 version_type=irix 16692 fi ;; 16693 esac 16694 need_lib_prefix=no 16695 need_version=no 16696 soname_spec='$libname$release$shared_ext$major' 16697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16698 case $host_os in 16699 irix5* | nonstopux*) 16700 libsuff= shlibsuff= 16701 ;; 16702 *) 16703 case $LD in # libtool.m4 will add one of these switches to LD 16704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16705 libsuff= shlibsuff= libmagic=32-bit;; 16706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16707 libsuff=32 shlibsuff=N32 libmagic=N32;; 16708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16709 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16710 *) libsuff= shlibsuff= libmagic=never-match;; 16711 esac 16712 ;; 16713 esac 16714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16715 shlibpath_overrides_runpath=no 16716 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16717 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16718 hardcode_into_libs=yes 16719 ;; 16720 16721# No shared lib support for Linux oldld, aout, or coff. 16722linux*oldld* | linux*aout* | linux*coff*) 16723 dynamic_linker=no 16724 ;; 16725 16726linux*android*) 16727 version_type=none # Android doesn't support versioned libraries. 16728 need_lib_prefix=no 16729 need_version=no 16730 library_names_spec='$libname$release$shared_ext' 16731 soname_spec='$libname$release$shared_ext' 16732 finish_cmds= 16733 shlibpath_var=LD_LIBRARY_PATH 16734 shlibpath_overrides_runpath=yes 16735 16736 # This implies no fast_install, which is unacceptable. 16737 # Some rework will be needed to allow for fast_install 16738 # before this can be enabled. 16739 hardcode_into_libs=yes 16740 16741 dynamic_linker='Android linker' 16742 # Don't embed -rpath directories since the linker doesn't support them. 16743 hardcode_libdir_flag_spec_CXX='-L$libdir' 16744 ;; 16745 16746# This must be glibc/ELF. 16747linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16748 version_type=linux # correct to gnu/linux during the next big refactor 16749 need_lib_prefix=no 16750 need_version=no 16751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16752 soname_spec='$libname$release$shared_ext$major' 16753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16754 shlibpath_var=LD_LIBRARY_PATH 16755 shlibpath_overrides_runpath=no 16756 16757 # Some binutils ld are patched to set DT_RUNPATH 16758 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760else 16761 lt_cv_shlibpath_overrides_runpath=no 16762 save_LDFLAGS=$LDFLAGS 16763 save_libdir=$libdir 16764 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16765 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16767/* end confdefs.h. */ 16768 16769int 16770main () 16771{ 16772 16773 ; 16774 return 0; 16775} 16776_ACEOF 16777if ac_fn_cxx_try_link "$LINENO"; then : 16778 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16779 lt_cv_shlibpath_overrides_runpath=yes 16780fi 16781fi 16782rm -f core conftest.err conftest.$ac_objext \ 16783 conftest$ac_exeext conftest.$ac_ext 16784 LDFLAGS=$save_LDFLAGS 16785 libdir=$save_libdir 16786 16787fi 16788 16789 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16790 16791 # This implies no fast_install, which is unacceptable. 16792 # Some rework will be needed to allow for fast_install 16793 # before this can be enabled. 16794 hardcode_into_libs=yes 16795 16796 # Ideally, we could use ldconfig to report *all* directores which are 16797 # searched for libraries, however this is still not possible. Aside from not 16798 # being certain /sbin/ldconfig is available, command 16799 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16800 # even though it is searched at run-time. Try to do the best guess by 16801 # appending ld.so.conf contents (and includes) to the search path. 16802 if test -f /etc/ld.so.conf; then 16803 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' ' '` 16804 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16805 fi 16806 16807 # We used to test for /lib/ld.so.1 and disable shared libraries on 16808 # powerpc, because MkLinux only supported shared libraries with the 16809 # GNU dynamic linker. Since this was broken with cross compilers, 16810 # most powerpc-linux boxes support dynamic linking these days and 16811 # people can always --disable-shared, the test was removed, and we 16812 # assume the GNU/Linux dynamic linker is in use. 16813 dynamic_linker='GNU/Linux ld.so' 16814 ;; 16815 16816netbsdelf*-gnu) 16817 version_type=linux 16818 need_lib_prefix=no 16819 need_version=no 16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16821 soname_spec='${libname}${release}${shared_ext}$major' 16822 shlibpath_var=LD_LIBRARY_PATH 16823 shlibpath_overrides_runpath=no 16824 hardcode_into_libs=yes 16825 dynamic_linker='NetBSD ld.elf_so' 16826 ;; 16827 16828netbsd*) 16829 version_type=sunos 16830 need_lib_prefix=no 16831 need_version=no 16832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16833 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16835 dynamic_linker='NetBSD (a.out) ld.so' 16836 else 16837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16838 soname_spec='$libname$release$shared_ext$major' 16839 dynamic_linker='NetBSD ld.elf_so' 16840 fi 16841 shlibpath_var=LD_LIBRARY_PATH 16842 shlibpath_overrides_runpath=yes 16843 hardcode_into_libs=yes 16844 ;; 16845 16846newsos6) 16847 version_type=linux # correct to gnu/linux during the next big refactor 16848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16849 shlibpath_var=LD_LIBRARY_PATH 16850 shlibpath_overrides_runpath=yes 16851 ;; 16852 16853*nto* | *qnx*) 16854 version_type=qnx 16855 need_lib_prefix=no 16856 need_version=no 16857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16858 soname_spec='$libname$release$shared_ext$major' 16859 shlibpath_var=LD_LIBRARY_PATH 16860 shlibpath_overrides_runpath=no 16861 hardcode_into_libs=yes 16862 dynamic_linker='ldqnx.so' 16863 ;; 16864 16865openbsd* | bitrig*) 16866 version_type=sunos 16867 sys_lib_dlsearch_path_spec=/usr/lib 16868 need_lib_prefix=no 16869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16870 need_version=no 16871 else 16872 need_version=yes 16873 fi 16874 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16876 shlibpath_var=LD_LIBRARY_PATH 16877 shlibpath_overrides_runpath=yes 16878 ;; 16879 16880os2*) 16881 libname_spec='$name' 16882 version_type=windows 16883 shrext_cmds=.dll 16884 need_version=no 16885 need_lib_prefix=no 16886 # OS/2 can only load a DLL with a base name of 8 characters or less. 16887 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16888 v=$($ECHO $release$versuffix | tr -d .-); 16889 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16890 $ECHO $n$v`$shared_ext' 16891 library_names_spec='${libname}_dll.$libext' 16892 dynamic_linker='OS/2 ld.exe' 16893 shlibpath_var=BEGINLIBPATH 16894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16896 postinstall_cmds='base_file=`basename \$file`~ 16897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16898 dldir=$destdir/`dirname \$dlpath`~ 16899 test -d \$dldir || mkdir -p \$dldir~ 16900 $install_prog $dir/$dlname \$dldir/$dlname~ 16901 chmod a+x \$dldir/$dlname~ 16902 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16903 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16904 fi' 16905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16906 dlpath=$dir/\$dldll~ 16907 $RM \$dlpath' 16908 ;; 16909 16910osf3* | osf4* | osf5*) 16911 version_type=osf 16912 need_lib_prefix=no 16913 need_version=no 16914 soname_spec='$libname$release$shared_ext$major' 16915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16916 shlibpath_var=LD_LIBRARY_PATH 16917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16919 ;; 16920 16921rdos*) 16922 dynamic_linker=no 16923 ;; 16924 16925solaris*) 16926 version_type=linux # correct to gnu/linux during the next big refactor 16927 need_lib_prefix=no 16928 need_version=no 16929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16930 soname_spec='$libname$release$shared_ext$major' 16931 shlibpath_var=LD_LIBRARY_PATH 16932 shlibpath_overrides_runpath=yes 16933 hardcode_into_libs=yes 16934 # ldd complains unless libraries are executable 16935 postinstall_cmds='chmod +x $lib' 16936 ;; 16937 16938sunos4*) 16939 version_type=sunos 16940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16942 shlibpath_var=LD_LIBRARY_PATH 16943 shlibpath_overrides_runpath=yes 16944 if test yes = "$with_gnu_ld"; then 16945 need_lib_prefix=no 16946 fi 16947 need_version=yes 16948 ;; 16949 16950sysv4 | sysv4.3*) 16951 version_type=linux # correct to gnu/linux during the next big refactor 16952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16953 soname_spec='$libname$release$shared_ext$major' 16954 shlibpath_var=LD_LIBRARY_PATH 16955 case $host_vendor in 16956 sni) 16957 shlibpath_overrides_runpath=no 16958 need_lib_prefix=no 16959 runpath_var=LD_RUN_PATH 16960 ;; 16961 siemens) 16962 need_lib_prefix=no 16963 ;; 16964 motorola) 16965 need_lib_prefix=no 16966 need_version=no 16967 shlibpath_overrides_runpath=no 16968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16969 ;; 16970 esac 16971 ;; 16972 16973sysv4*MP*) 16974 if test -d /usr/nec; then 16975 version_type=linux # correct to gnu/linux during the next big refactor 16976 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16977 soname_spec='$libname$shared_ext.$major' 16978 shlibpath_var=LD_LIBRARY_PATH 16979 fi 16980 ;; 16981 16982sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16983 version_type=sco 16984 need_lib_prefix=no 16985 need_version=no 16986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16987 soname_spec='$libname$release$shared_ext$major' 16988 shlibpath_var=LD_LIBRARY_PATH 16989 shlibpath_overrides_runpath=yes 16990 hardcode_into_libs=yes 16991 if test yes = "$with_gnu_ld"; then 16992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16993 else 16994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16995 case $host_os in 16996 sco3.2v5*) 16997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16998 ;; 16999 esac 17000 fi 17001 sys_lib_dlsearch_path_spec='/usr/lib' 17002 ;; 17003 17004tpf*) 17005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17006 version_type=linux # correct to gnu/linux during the next big refactor 17007 need_lib_prefix=no 17008 need_version=no 17009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17010 shlibpath_var=LD_LIBRARY_PATH 17011 shlibpath_overrides_runpath=no 17012 hardcode_into_libs=yes 17013 ;; 17014 17015uts4*) 17016 version_type=linux # correct to gnu/linux during the next big refactor 17017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17018 soname_spec='$libname$release$shared_ext$major' 17019 shlibpath_var=LD_LIBRARY_PATH 17020 ;; 17021 17022*) 17023 dynamic_linker=no 17024 ;; 17025esac 17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17027$as_echo "$dynamic_linker" >&6; } 17028test no = "$dynamic_linker" && can_build_shared=no 17029 17030variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17031if test yes = "$GCC"; then 17032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17033fi 17034 17035if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17036 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17037fi 17038 17039if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17040 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17041fi 17042 17043# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17044configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17045 17046# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17047func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17048 17049# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17050configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17092$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17093hardcode_action_CXX= 17094if test -n "$hardcode_libdir_flag_spec_CXX" || 17095 test -n "$runpath_var_CXX" || 17096 test yes = "$hardcode_automatic_CXX"; then 17097 17098 # We can hardcode non-existent directories. 17099 if test no != "$hardcode_direct_CXX" && 17100 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17101 # have to relink, otherwise we might link with an installed library 17102 # when we should be linking with a yet-to-be-installed one 17103 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17104 test no != "$hardcode_minus_L_CXX"; then 17105 # Linking always hardcodes the temporary library directory. 17106 hardcode_action_CXX=relink 17107 else 17108 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17109 hardcode_action_CXX=immediate 17110 fi 17111else 17112 # We cannot hardcode anything, or else we can only hardcode existing 17113 # directories. 17114 hardcode_action_CXX=unsupported 17115fi 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17117$as_echo "$hardcode_action_CXX" >&6; } 17118 17119if test relink = "$hardcode_action_CXX" || 17120 test yes = "$inherit_rpath_CXX"; then 17121 # Fast installation is not supported 17122 enable_fast_install=no 17123elif test yes = "$shlibpath_overrides_runpath" || 17124 test no = "$enable_shared"; then 17125 # Fast installation is not necessary 17126 enable_fast_install=needless 17127fi 17128 17129 17130 17131 17132 17133 17134 17135 fi # test -n "$compiler" 17136 17137 CC=$lt_save_CC 17138 CFLAGS=$lt_save_CFLAGS 17139 LDCXX=$LD 17140 LD=$lt_save_LD 17141 GCC=$lt_save_GCC 17142 with_gnu_ld=$lt_save_with_gnu_ld 17143 lt_cv_path_LDCXX=$lt_cv_path_LD 17144 lt_cv_path_LD=$lt_save_path_LD 17145 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17146 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17147fi # test yes != "$_lt_caught_CXX_error" 17148 17149ac_ext=c 17150ac_cpp='$CPP $CPPFLAGS' 17151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17153ac_compiler_gnu=$ac_cv_c_compiler_gnu 17154 17155 17156 17157# Enable support for silent build rules 17158# Check whether --enable-silent-rules was given. 17159if test "${enable_silent_rules+set}" = set; then : 17160 enableval=$enable_silent_rules; 17161fi 17162 17163case $enable_silent_rules in # ((( 17164 yes) AM_DEFAULT_VERBOSITY=0;; 17165 no) AM_DEFAULT_VERBOSITY=1;; 17166 *) AM_DEFAULT_VERBOSITY=1;; 17167esac 17168am_make=${MAKE-make} 17169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17170$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17171if ${am_cv_make_support_nested_variables+:} false; then : 17172 $as_echo_n "(cached) " >&6 17173else 17174 if $as_echo 'TRUE=$(BAR$(V)) 17175BAR0=false 17176BAR1=true 17177V=1 17178am__doit: 17179 @$(TRUE) 17180.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17181 am_cv_make_support_nested_variables=yes 17182else 17183 am_cv_make_support_nested_variables=no 17184fi 17185fi 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17187$as_echo "$am_cv_make_support_nested_variables" >&6; } 17188if test $am_cv_make_support_nested_variables = yes; then 17189 AM_V='$(V)' 17190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17191else 17192 AM_V=$AM_DEFAULT_VERBOSITY 17193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17194fi 17195AM_BACKSLASH='\' 17196 17197 17198tiff_libs_private= 17199 17200 17201case "${host_os}" in 17202 cygwin* | mingw32* | beos* | darwin*) 17203 ;; 17204 *) 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 17206$as_echo_n "checking for sin in -lm... " >&6; } 17207if ${ac_cv_lib_m_sin+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 ac_check_lib_save_LIBS=$LIBS 17211LIBS="-lm $LIBS" 17212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17213/* end confdefs.h. */ 17214 17215/* Override any GCC internal prototype to avoid an error. 17216 Use char because int might match the return type of a GCC 17217 builtin and then its argument prototype would still apply. */ 17218#ifdef __cplusplus 17219extern "C" 17220#endif 17221char sin (); 17222int 17223main () 17224{ 17225return sin (); 17226 ; 17227 return 0; 17228} 17229_ACEOF 17230if ac_fn_c_try_link "$LINENO"; then : 17231 ac_cv_lib_m_sin=yes 17232else 17233 ac_cv_lib_m_sin=no 17234fi 17235rm -f core conftest.err conftest.$ac_objext \ 17236 conftest$ac_exeext conftest.$ac_ext 17237LIBS=$ac_check_lib_save_LIBS 17238fi 17239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 17240$as_echo "$ac_cv_lib_m_sin" >&6; } 17241if test "x$ac_cv_lib_m_sin" = xyes; then : 17242 libm_lib=yes 17243else 17244 libm_lib=no 17245fi 17246 17247 if test "x$libm_lib" = "xyes" ; then 17248 LIBS="-lm $LIBS" 17249 tiff_libs_private="-lm ${tiff_libs_private}" 17250 fi 17251 ;; 17252esac 17253 17254for ac_header in assert.h fcntl.h io.h search.h unistd.h 17255do : 17256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17257ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17258if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17259 cat >>confdefs.h <<_ACEOF 17260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17261_ACEOF 17262 17263fi 17264 17265done 17266 17267 17268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17269$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17270if ${ac_cv_c_const+:} false; then : 17271 $as_echo_n "(cached) " >&6 17272else 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275 17276int 17277main () 17278{ 17279 17280#ifndef __cplusplus 17281 /* Ultrix mips cc rejects this sort of thing. */ 17282 typedef int charset[2]; 17283 const charset cs = { 0, 0 }; 17284 /* SunOS 4.1.1 cc rejects this. */ 17285 char const *const *pcpcc; 17286 char **ppc; 17287 /* NEC SVR4.0.2 mips cc rejects this. */ 17288 struct point {int x, y;}; 17289 static struct point const zero = {0,0}; 17290 /* AIX XL C 1.02.0.0 rejects this. 17291 It does not let you subtract one const X* pointer from another in 17292 an arm of an if-expression whose if-part is not a constant 17293 expression */ 17294 const char *g = "string"; 17295 pcpcc = &g + (g ? g-g : 0); 17296 /* HPUX 7.0 cc rejects these. */ 17297 ++pcpcc; 17298 ppc = (char**) pcpcc; 17299 pcpcc = (char const *const *) ppc; 17300 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17301 char tx; 17302 char *t = &tx; 17303 char const *s = 0 ? (char *) 0 : (char const *) 0; 17304 17305 *t++ = 0; 17306 if (s) return 0; 17307 } 17308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17309 int x[] = {25, 17}; 17310 const int *foo = &x[0]; 17311 ++foo; 17312 } 17313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17314 typedef const int *iptr; 17315 iptr p = 0; 17316 ++p; 17317 } 17318 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17320 struct s { int j; const int *ap[3]; } bx; 17321 struct s *b = &bx; b->j = 5; 17322 } 17323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17324 const int foo = 10; 17325 if (!foo) return 0; 17326 } 17327 return !cs[0] && !zero.x; 17328#endif 17329 17330 ; 17331 return 0; 17332} 17333_ACEOF 17334if ac_fn_c_try_compile "$LINENO"; then : 17335 ac_cv_c_const=yes 17336else 17337 ac_cv_c_const=no 17338fi 17339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17340fi 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17342$as_echo "$ac_cv_c_const" >&6; } 17343if test $ac_cv_c_const = no; then 17344 17345$as_echo "#define const /**/" >>confdefs.h 17346 17347fi 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17350$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17351if ${ac_cv_c_bigendian+:} false; then : 17352 $as_echo_n "(cached) " >&6 17353else 17354 ac_cv_c_bigendian=unknown 17355 # See if we're dealing with a universal compiler. 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358#ifndef __APPLE_CC__ 17359 not a universal capable compiler 17360 #endif 17361 typedef int dummy; 17362 17363_ACEOF 17364if ac_fn_c_try_compile "$LINENO"; then : 17365 17366 # Check for potential -arch flags. It is not universal unless 17367 # there are at least two -arch flags with different values. 17368 ac_arch= 17369 ac_prev= 17370 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17371 if test -n "$ac_prev"; then 17372 case $ac_word in 17373 i?86 | x86_64 | ppc | ppc64) 17374 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17375 ac_arch=$ac_word 17376 else 17377 ac_cv_c_bigendian=universal 17378 break 17379 fi 17380 ;; 17381 esac 17382 ac_prev= 17383 elif test "x$ac_word" = "x-arch"; then 17384 ac_prev=arch 17385 fi 17386 done 17387fi 17388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17389 if test $ac_cv_c_bigendian = unknown; then 17390 # See if sys/param.h defines the BYTE_ORDER macro. 17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17392/* end confdefs.h. */ 17393#include <sys/types.h> 17394 #include <sys/param.h> 17395 17396int 17397main () 17398{ 17399#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17400 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17401 && LITTLE_ENDIAN) 17402 bogus endian macros 17403 #endif 17404 17405 ; 17406 return 0; 17407} 17408_ACEOF 17409if ac_fn_c_try_compile "$LINENO"; then : 17410 # It does; now see whether it defined to BIG_ENDIAN or not. 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413#include <sys/types.h> 17414 #include <sys/param.h> 17415 17416int 17417main () 17418{ 17419#if BYTE_ORDER != BIG_ENDIAN 17420 not big endian 17421 #endif 17422 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427if ac_fn_c_try_compile "$LINENO"; then : 17428 ac_cv_c_bigendian=yes 17429else 17430 ac_cv_c_bigendian=no 17431fi 17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17433fi 17434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17435 fi 17436 if test $ac_cv_c_bigendian = unknown; then 17437 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440#include <limits.h> 17441 17442int 17443main () 17444{ 17445#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17446 bogus endian macros 17447 #endif 17448 17449 ; 17450 return 0; 17451} 17452_ACEOF 17453if ac_fn_c_try_compile "$LINENO"; then : 17454 # It does; now see whether it defined to _BIG_ENDIAN or not. 17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17456/* end confdefs.h. */ 17457#include <limits.h> 17458 17459int 17460main () 17461{ 17462#ifndef _BIG_ENDIAN 17463 not big endian 17464 #endif 17465 17466 ; 17467 return 0; 17468} 17469_ACEOF 17470if ac_fn_c_try_compile "$LINENO"; then : 17471 ac_cv_c_bigendian=yes 17472else 17473 ac_cv_c_bigendian=no 17474fi 17475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17476fi 17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17478 fi 17479 if test $ac_cv_c_bigendian = unknown; then 17480 # Compile a test program. 17481 if test "$cross_compiling" = yes; then : 17482 # Try to guess by grepping values from an object file. 17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17484/* end confdefs.h. */ 17485short int ascii_mm[] = 17486 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17487 short int ascii_ii[] = 17488 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17489 int use_ascii (int i) { 17490 return ascii_mm[i] + ascii_ii[i]; 17491 } 17492 short int ebcdic_ii[] = 17493 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17494 short int ebcdic_mm[] = 17495 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17496 int use_ebcdic (int i) { 17497 return ebcdic_mm[i] + ebcdic_ii[i]; 17498 } 17499 extern int foo; 17500 17501int 17502main () 17503{ 17504return use_ascii (foo) == use_ebcdic (foo); 17505 ; 17506 return 0; 17507} 17508_ACEOF 17509if ac_fn_c_try_compile "$LINENO"; then : 17510 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17511 ac_cv_c_bigendian=yes 17512 fi 17513 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17514 if test "$ac_cv_c_bigendian" = unknown; then 17515 ac_cv_c_bigendian=no 17516 else 17517 # finding both strings is unlikely to happen, but who knows? 17518 ac_cv_c_bigendian=unknown 17519 fi 17520 fi 17521fi 17522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17523else 17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17525/* end confdefs.h. */ 17526$ac_includes_default 17527int 17528main () 17529{ 17530 17531 /* Are we little or big endian? From Harbison&Steele. */ 17532 union 17533 { 17534 long int l; 17535 char c[sizeof (long int)]; 17536 } u; 17537 u.l = 1; 17538 return u.c[sizeof (long int) - 1] == 1; 17539 17540 ; 17541 return 0; 17542} 17543_ACEOF 17544if ac_fn_c_try_run "$LINENO"; then : 17545 ac_cv_c_bigendian=no 17546else 17547 ac_cv_c_bigendian=yes 17548fi 17549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17550 conftest.$ac_objext conftest.beam conftest.$ac_ext 17551fi 17552 17553 fi 17554fi 17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17556$as_echo "$ac_cv_c_bigendian" >&6; } 17557 case $ac_cv_c_bigendian in #( 17558 yes) 17559 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17560;; #( 17561 no) 17562 ;; #( 17563 universal) 17564 17565$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17566 17567 ;; #( 17568 *) 17569 as_fn_error $? "unknown endianness 17570 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17571 esac 17572 17573ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17574if test "x$ac_cv_type_off_t" = xyes; then : 17575 17576else 17577 17578cat >>confdefs.h <<_ACEOF 17579#define off_t long int 17580_ACEOF 17581 17582fi 17583 17584ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17585if test "x$ac_cv_type_size_t" = xyes; then : 17586 17587else 17588 17589cat >>confdefs.h <<_ACEOF 17590#define size_t unsigned int 17591_ACEOF 17592 17593fi 17594 17595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17596$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17597if ${ac_cv_header_time+:} false; then : 17598 $as_echo_n "(cached) " >&6 17599else 17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17601/* end confdefs.h. */ 17602#include <sys/types.h> 17603#include <sys/time.h> 17604#include <time.h> 17605 17606int 17607main () 17608{ 17609if ((struct tm *) 0) 17610return 0; 17611 ; 17612 return 0; 17613} 17614_ACEOF 17615if ac_fn_c_try_compile "$LINENO"; then : 17616 ac_cv_header_time=yes 17617else 17618 ac_cv_header_time=no 17619fi 17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17621fi 17622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17623$as_echo "$ac_cv_header_time" >&6; } 17624if test $ac_cv_header_time = yes; then 17625 17626$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17627 17628fi 17629 17630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17631$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17632if ${ac_cv_struct_tm+:} false; then : 17633 $as_echo_n "(cached) " >&6 17634else 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637#include <sys/types.h> 17638#include <time.h> 17639 17640int 17641main () 17642{ 17643struct tm tm; 17644 int *p = &tm.tm_sec; 17645 return !p; 17646 ; 17647 return 0; 17648} 17649_ACEOF 17650if ac_fn_c_try_compile "$LINENO"; then : 17651 ac_cv_struct_tm=time.h 17652else 17653 ac_cv_struct_tm=sys/time.h 17654fi 17655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17656fi 17657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17658$as_echo "$ac_cv_struct_tm" >&6; } 17659if test $ac_cv_struct_tm = sys/time.h; then 17660 17661$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17662 17663fi 17664 17665 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17667$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17668if ${ac_cv_sys_largefile_source+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 while :; do 17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17673/* end confdefs.h. */ 17674#include <sys/types.h> /* for off_t */ 17675 #include <stdio.h> 17676int 17677main () 17678{ 17679int (*fp) (FILE *, off_t, int) = fseeko; 17680 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17681 ; 17682 return 0; 17683} 17684_ACEOF 17685if ac_fn_c_try_link "$LINENO"; then : 17686 ac_cv_sys_largefile_source=no; break 17687fi 17688rm -f core conftest.err conftest.$ac_objext \ 17689 conftest$ac_exeext conftest.$ac_ext 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692#define _LARGEFILE_SOURCE 1 17693#include <sys/types.h> /* for off_t */ 17694 #include <stdio.h> 17695int 17696main () 17697{ 17698int (*fp) (FILE *, off_t, int) = fseeko; 17699 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17700 ; 17701 return 0; 17702} 17703_ACEOF 17704if ac_fn_c_try_link "$LINENO"; then : 17705 ac_cv_sys_largefile_source=1; break 17706fi 17707rm -f core conftest.err conftest.$ac_objext \ 17708 conftest$ac_exeext conftest.$ac_ext 17709 ac_cv_sys_largefile_source=unknown 17710 break 17711done 17712fi 17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17714$as_echo "$ac_cv_sys_largefile_source" >&6; } 17715case $ac_cv_sys_largefile_source in #( 17716 no | unknown) ;; 17717 *) 17718cat >>confdefs.h <<_ACEOF 17719#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 17720_ACEOF 17721;; 17722esac 17723rm -rf conftest* 17724 17725# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17726# in glibc 2.1.3, but that breaks too many other things. 17727# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17728if test $ac_cv_sys_largefile_source != unknown; then 17729 17730$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 17731 17732fi 17733 17734 17735ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" 17736if test "x$ac_cv_have_decl_optarg" = xyes; then : 17737 ac_have_decl=1 17738else 17739 ac_have_decl=0 17740fi 17741 17742cat >>confdefs.h <<_ACEOF 17743#define HAVE_DECL_OPTARG $ac_have_decl 17744_ACEOF 17745 17746 17747 17748# Disable deprecated features to ensure clean build 17749CPPFLAGS="-DTIFF_DISABLE_DEPRECATED $CPPFLAGS" 17750 17751 17752# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T. Result is 17753# available in ac_cv_sizeof_size_t 17754# The cast to long int works around a bug in the HP C Compiler 17755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17757# This bug is HP SR number 8606223364. 17758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 17759$as_echo_n "checking size of size_t... " >&6; } 17760if ${ac_cv_sizeof_size_t+:} false; then : 17761 $as_echo_n "(cached) " >&6 17762else 17763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 17764 17765else 17766 if test "$ac_cv_type_size_t" = yes; then 17767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17769as_fn_error 77 "cannot compute sizeof (size_t) 17770See \`config.log' for more details" "$LINENO" 5; } 17771 else 17772 ac_cv_sizeof_size_t=0 17773 fi 17774fi 17775 17776fi 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 17778$as_echo "$ac_cv_sizeof_size_t" >&6; } 17779 17780 17781 17782cat >>confdefs.h <<_ACEOF 17783#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 17784_ACEOF 17785 17786 17787 17788 17789# C99 fixed-size integer types 17790INT8_T='int8_t' 17791UINT8_T='uint8_t' 17792 17793INT16_T='int16_t' 17794UINT16_T='uint16_t' 17795 17796INT32_T='int32_t' 17797UINT32_T='uint32_t' 17798 17799INT64_T='int64_t' 17800UINT64_T='uint64_t' 17801 17802if test $ac_cv_sizeof_size_t -eq 4 17803then 17804 SSIZE_T='int32_t' 17805elif test $ac_cv_sizeof_size_t -eq 8 17806then 17807 SSIZE_T='int64_t' 17808else 17809 as_fn_error $? "Unsupported size_t size ${ac_cv_sizeof_size_t}; please add support" "$LINENO" 5 17810fi 17811 17812 17813# Determine TIFF equivalent of ssize_t 17814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 17815$as_echo_n "checking for signed size type... " >&6; } 17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17817$as_echo "$SSIZE_T" >&6; } 17818 17819cat >>confdefs.h <<_ACEOF 17820#define TIFF_SSIZE_T $SSIZE_T 17821_ACEOF 17822 17823 17824for ac_func in mmap setmode 17825do : 17826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17827ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17828if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17829 cat >>confdefs.h <<_ACEOF 17830#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17831_ACEOF 17832 17833fi 17834done 17835 17836 17837ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17838if test "x$ac_cv_func_getopt" = xyes; then : 17839 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17840 17841else 17842 case " $LIBOBJS " in 17843 *" getopt.$ac_objext "* ) ;; 17844 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17845 ;; 17846esac 17847 17848fi 17849 17850 17851 17852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17853$as_echo_n "checking native cpu bit order... " >&6; } 17854case "$host_cpu" in 17855 i*86*|x86_64*) 17856 HOST_FILLORDER=FILLORDER_LSB2MSB 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17858$as_echo "lsb2msb" >&6; } 17859 ;; 17860 *) 17861 HOST_FILLORDER=FILLORDER_MSB2LSB 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17863$as_echo "msb2lsb" >&6; } 17864 ;; 17865esac 17866 17867cat >>confdefs.h <<_ACEOF 17868#define HOST_FILLORDER $HOST_FILLORDER 17869_ACEOF 17870 17871 17872if test "$ac_cv_c_bigendian" = yes ; then 17873 HOST_BIGENDIAN=1 17874else 17875 HOST_BIGENDIAN=0 17876fi 17877 17878cat >>confdefs.h <<_ACEOF 17879#define HOST_BIGENDIAN $HOST_BIGENDIAN 17880_ACEOF 17881 17882 17883#_POSIX_C_SOURCE=2 17884#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17885 17886HAVE_IEEEFP=1 17887 17888cat >>confdefs.h <<_ACEOF 17889#define HAVE_IEEEFP $HAVE_IEEEFP 17890_ACEOF 17891 17892 17893 17894# Check whether --enable-rpath was given. 17895if test "${enable_rpath+set}" = set; then : 17896 enableval=$enable_rpath; HAVE_RPATH=$enableval 17897else 17898 HAVE_RPATH=no 17899fi 17900 17901 if test "$HAVE_RPATH" = "yes"; then 17902 HAVE_RPATH_TRUE= 17903 HAVE_RPATH_FALSE='#' 17904else 17905 HAVE_RPATH_TRUE='#' 17906 HAVE_RPATH_FALSE= 17907fi 17908 17909 17910 17911# Check whether --enable-largefile was given. 17912if test "${enable_largefile+set}" = set; then : 17913 enableval=$enable_largefile; 17914fi 17915 17916if test "$enable_largefile" != no; then 17917 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17919$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17920if ${ac_cv_sys_largefile_CC+:} false; then : 17921 $as_echo_n "(cached) " >&6 17922else 17923 ac_cv_sys_largefile_CC=no 17924 if test "$GCC" != yes; then 17925 ac_save_CC=$CC 17926 while :; do 17927 # IRIX 6.2 and later do not support large files by default, 17928 # so use the C compiler's -n32 option if that helps. 17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17930/* end confdefs.h. */ 17931#include <sys/types.h> 17932 /* Check that off_t can represent 2**63 - 1 correctly. 17933 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17934 since some C++ compilers masquerading as C compilers 17935 incorrectly reject 9223372036854775807. */ 17936#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17938 && LARGE_OFF_T % 2147483647 == 1) 17939 ? 1 : -1]; 17940int 17941main () 17942{ 17943 17944 ; 17945 return 0; 17946} 17947_ACEOF 17948 if ac_fn_c_try_compile "$LINENO"; then : 17949 break 17950fi 17951rm -f core conftest.err conftest.$ac_objext 17952 CC="$CC -n32" 17953 if ac_fn_c_try_compile "$LINENO"; then : 17954 ac_cv_sys_largefile_CC=' -n32'; break 17955fi 17956rm -f core conftest.err conftest.$ac_objext 17957 break 17958 done 17959 CC=$ac_save_CC 17960 rm -f conftest.$ac_ext 17961 fi 17962fi 17963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17964$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17965 if test "$ac_cv_sys_largefile_CC" != no; then 17966 CC=$CC$ac_cv_sys_largefile_CC 17967 fi 17968 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17970$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17971if ${ac_cv_sys_file_offset_bits+:} false; then : 17972 $as_echo_n "(cached) " >&6 17973else 17974 while :; do 17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17976/* end confdefs.h. */ 17977#include <sys/types.h> 17978 /* Check that off_t can represent 2**63 - 1 correctly. 17979 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17980 since some C++ compilers masquerading as C compilers 17981 incorrectly reject 9223372036854775807. */ 17982#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17984 && LARGE_OFF_T % 2147483647 == 1) 17985 ? 1 : -1]; 17986int 17987main () 17988{ 17989 17990 ; 17991 return 0; 17992} 17993_ACEOF 17994if ac_fn_c_try_compile "$LINENO"; then : 17995 ac_cv_sys_file_offset_bits=no; break 17996fi 17997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17999/* end confdefs.h. */ 18000#define _FILE_OFFSET_BITS 64 18001#include <sys/types.h> 18002 /* Check that off_t can represent 2**63 - 1 correctly. 18003 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18004 since some C++ compilers masquerading as C compilers 18005 incorrectly reject 9223372036854775807. */ 18006#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18008 && LARGE_OFF_T % 2147483647 == 1) 18009 ? 1 : -1]; 18010int 18011main () 18012{ 18013 18014 ; 18015 return 0; 18016} 18017_ACEOF 18018if ac_fn_c_try_compile "$LINENO"; then : 18019 ac_cv_sys_file_offset_bits=64; break 18020fi 18021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18022 ac_cv_sys_file_offset_bits=unknown 18023 break 18024done 18025fi 18026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18027$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18028case $ac_cv_sys_file_offset_bits in #( 18029 no | unknown) ;; 18030 *) 18031cat >>confdefs.h <<_ACEOF 18032#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18033_ACEOF 18034;; 18035esac 18036rm -rf conftest* 18037 if test $ac_cv_sys_file_offset_bits = unknown; then 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18039$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18040if ${ac_cv_sys_large_files+:} false; then : 18041 $as_echo_n "(cached) " >&6 18042else 18043 while :; do 18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046#include <sys/types.h> 18047 /* Check that off_t can represent 2**63 - 1 correctly. 18048 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18049 since some C++ compilers masquerading as C compilers 18050 incorrectly reject 9223372036854775807. */ 18051#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18053 && LARGE_OFF_T % 2147483647 == 1) 18054 ? 1 : -1]; 18055int 18056main () 18057{ 18058 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063if ac_fn_c_try_compile "$LINENO"; then : 18064 ac_cv_sys_large_files=no; break 18065fi 18066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18068/* end confdefs.h. */ 18069#define _LARGE_FILES 1 18070#include <sys/types.h> 18071 /* Check that off_t can represent 2**63 - 1 correctly. 18072 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18073 since some C++ compilers masquerading as C compilers 18074 incorrectly reject 9223372036854775807. */ 18075#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18077 && LARGE_OFF_T % 2147483647 == 1) 18078 ? 1 : -1]; 18079int 18080main () 18081{ 18082 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087if ac_fn_c_try_compile "$LINENO"; then : 18088 ac_cv_sys_large_files=1; break 18089fi 18090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18091 ac_cv_sys_large_files=unknown 18092 break 18093done 18094fi 18095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18096$as_echo "$ac_cv_sys_large_files" >&6; } 18097case $ac_cv_sys_large_files in #( 18098 no | unknown) ;; 18099 *) 18100cat >>confdefs.h <<_ACEOF 18101#define _LARGE_FILES $ac_cv_sys_large_files 18102_ACEOF 18103;; 18104esac 18105rm -rf conftest* 18106 fi 18107 18108 18109fi 18110 18111 18112 18113LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 18114 18115 18116# Check whether --with-docdir was given. 18117if test "${with_docdir+set}" = set; then : 18118 withval=$with_docdir; 18119fi 18120 18121if test "x$with_docdir" != "x" ; then 18122 LIBTIFF_DOCDIR=$with_docdir 18123fi 18124 18125 18126 18127 18128 18129 18130# Check whether --enable-ccitt was given. 18131if test "${enable_ccitt+set}" = set; then : 18132 enableval=$enable_ccitt; HAVE_CCITT=$enableval 18133else 18134 HAVE_CCITT=yes 18135fi 18136 18137 18138if test "$HAVE_CCITT" = "yes" ; then 18139 18140$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 18141 18142fi 18143 18144# Check whether --enable-packbits was given. 18145if test "${enable_packbits+set}" = set; then : 18146 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 18147else 18148 HAVE_PACKBITS=yes 18149fi 18150 18151 18152if test "$HAVE_PACKBITS" = "yes" ; then 18153 18154$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 18155 18156fi 18157 18158# Check whether --enable-lzw was given. 18159if test "${enable_lzw+set}" = set; then : 18160 enableval=$enable_lzw; HAVE_LZW=$enableval 18161else 18162 HAVE_LZW=yes 18163fi 18164 18165 18166if test "$HAVE_LZW" = "yes" ; then 18167 18168$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 18169 18170fi 18171 18172# Check whether --enable-thunder was given. 18173if test "${enable_thunder+set}" = set; then : 18174 enableval=$enable_thunder; HAVE_THUNDER=$enableval 18175else 18176 HAVE_THUNDER=yes 18177fi 18178 18179 18180if test "$HAVE_THUNDER" = "yes" ; then 18181 18182$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 18183 18184fi 18185 18186HAVE_NEXT=yes 18187 18188# Check whether --enable-next was given. 18189if test "${enable_next+set}" = set; then : 18190 enableval=$enable_next; HAVE_NEXT=$enableval 18191else 18192 HAVE_NEXT=yes 18193fi 18194 18195 18196if test "$HAVE_NEXT" = "yes" ; then 18197 18198$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 18199 18200fi 18201 18202# Check whether --enable-logluv was given. 18203if test "${enable_logluv+set}" = set; then : 18204 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 18205else 18206 HAVE_LOGLUV=yes 18207fi 18208 18209 18210if test "$HAVE_LOGLUV" = "yes" ; then 18211 18212$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 18213 18214fi 18215 18216 18217# Check whether --enable-mdi was given. 18218if test "${enable_mdi+set}" = set; then : 18219 enableval=$enable_mdi; HAVE_MDI=$enableval 18220else 18221 HAVE_MDI=yes 18222fi 18223 18224 18225if test "$HAVE_MDI" = "yes" ; then 18226 18227$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 18228 18229fi 18230 18231 18232HAVE_ZLIB=no 18233 18234# Check whether --enable-zlib was given. 18235if test "${enable_zlib+set}" = set; then : 18236 enableval=$enable_zlib; 18237fi 18238 18239 18240# Check whether --with-zlib-include-dir was given. 18241if test "${with_zlib_include_dir+set}" = set; then : 18242 withval=$with_zlib_include_dir; 18243fi 18244 18245 18246# Check whether --with-zlib-lib-dir was given. 18247if test "${with_zlib_lib_dir+set}" = set; then : 18248 withval=$with_zlib_lib_dir; 18249fi 18250 18251 18252if test "x$enable_zlib" != "xno" ; then 18253 18254 if test "x$with_zlib_lib_dir" != "x" ; then 18255 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 18256 fi 18257 18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18259$as_echo_n "checking for inflateEnd in -lz... " >&6; } 18260if ${ac_cv_lib_z_inflateEnd+:} false; then : 18261 $as_echo_n "(cached) " >&6 18262else 18263 ac_check_lib_save_LIBS=$LIBS 18264LIBS="-lz $LIBS" 18265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18266/* end confdefs.h. */ 18267 18268/* Override any GCC internal prototype to avoid an error. 18269 Use char because int might match the return type of a GCC 18270 builtin and then its argument prototype would still apply. */ 18271#ifdef __cplusplus 18272extern "C" 18273#endif 18274char inflateEnd (); 18275int 18276main () 18277{ 18278return inflateEnd (); 18279 ; 18280 return 0; 18281} 18282_ACEOF 18283if ac_fn_c_try_link "$LINENO"; then : 18284 ac_cv_lib_z_inflateEnd=yes 18285else 18286 ac_cv_lib_z_inflateEnd=no 18287fi 18288rm -f core conftest.err conftest.$ac_objext \ 18289 conftest$ac_exeext conftest.$ac_ext 18290LIBS=$ac_check_lib_save_LIBS 18291fi 18292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18293$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18294if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18295 zlib_lib=yes 18296else 18297 zlib_lib=no 18298fi 18299 18300 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 18301 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 18302 fi 18303 18304 if test "x$with_zlib_include_dir" != "x" ; then 18305 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 18306 fi 18307 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18308if test "x$ac_cv_header_zlib_h" = xyes; then : 18309 zlib_h=yes 18310else 18311 zlib_h=no 18312fi 18313 18314 18315 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 18316 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 18317 fi 18318 18319 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 18320 HAVE_ZLIB=yes 18321 fi 18322 18323fi 18324 18325if test "$HAVE_ZLIB" = "yes" ; then 18326 18327$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 18328 18329 LIBS="-lz $LIBS" 18330 tiff_libs_private="-lz ${tiff_libs_private}" 18331 18332 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 18333 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 18334 fi 18335 18336fi 18337 18338 18339HAVE_LIBDEFLATE=no 18340 18341# Check whether --enable-libdeflate was given. 18342if test "${enable_libdeflate+set}" = set; then : 18343 enableval=$enable_libdeflate; 18344fi 18345 18346 18347# Check whether --with-libdeflate-include-dir was given. 18348if test "${with_libdeflate_include_dir+set}" = set; then : 18349 withval=$with_libdeflate_include_dir; 18350fi 18351 18352 18353# Check whether --with-libdeflate-lib-dir was given. 18354if test "${with_libdeflate_lib_dir+set}" = set; then : 18355 withval=$with_libdeflate_lib_dir; 18356fi 18357 18358 18359if test "x$enable_libdeflate" != "xno" ; then 18360 18361 if test "x$with_libdeflate_lib_dir" != "x" ; then 18362 LDFLAGS="-L$with_libdeflate_lib_dir $LDFLAGS" 18363 fi 18364 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdeflate_zlib_decompress in -ldeflate" >&5 18366$as_echo_n "checking for libdeflate_zlib_decompress in -ldeflate... " >&6; } 18367if ${ac_cv_lib_deflate_libdeflate_zlib_decompress+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369else 18370 ac_check_lib_save_LIBS=$LIBS 18371LIBS="-ldeflate $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 libdeflate_zlib_decompress (); 18382int 18383main () 18384{ 18385return libdeflate_zlib_decompress (); 18386 ; 18387 return 0; 18388} 18389_ACEOF 18390if ac_fn_c_try_link "$LINENO"; then : 18391 ac_cv_lib_deflate_libdeflate_zlib_decompress=yes 18392else 18393 ac_cv_lib_deflate_libdeflate_zlib_decompress=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_deflate_libdeflate_zlib_decompress" >&5 18400$as_echo "$ac_cv_lib_deflate_libdeflate_zlib_decompress" >&6; } 18401if test "x$ac_cv_lib_deflate_libdeflate_zlib_decompress" = xyes; then : 18402 libdeflate_lib=yes 18403else 18404 libdeflate_lib=no 18405fi 18406 18407 if test "$libdeflate_lib" = "no" -a "x$with_libdeflate_lib_dir" != "x"; then 18408 as_fn_error $? "libdeflate library not found at $with_libdeflate_lib_dir" "$LINENO" 5 18409 fi 18410 18411 if test "x$with_libdeflate_include_dir" != "x" ; then 18412 CPPFLAGS="-I$with_libdeflate_include_dir $CPPFLAGS" 18413 fi 18414 ac_fn_c_check_header_mongrel "$LINENO" "libdeflate.h" "ac_cv_header_libdeflate_h" "$ac_includes_default" 18415if test "x$ac_cv_header_libdeflate_h" = xyes; then : 18416 libdeflate_h=yes 18417else 18418 libdeflate_h=no 18419fi 18420 18421 18422 if test "$libdeflate_h" = "no" -a "x$with_libdeflate_include_dir" != "x" ; then 18423 as_fn_error $? "libdeflate headers not found at $with_libdeflate_include_dir" "$LINENO" 5 18424 fi 18425 18426 if test "$libdeflate_lib" = "yes" -a "$libdeflate_h" = "yes" ; then 18427 HAVE_LIBDEFLATE=yes 18428 fi 18429 18430fi 18431 18432if test "$HAVE_LIBDEFLATE" = "yes" -a "$HAVE_ZLIB" = "no" ; then 18433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdeflate available but zlib is not. libdeflate cannot be used" >&5 18434$as_echo "$as_me: WARNING: libdeflate available but zlib is not. libdeflate cannot be used" >&2;} 18435 HAVE_LIBDEFLATE=no 18436fi 18437 18438if test "$HAVE_LIBDEFLATE" = "yes" ; then 18439 18440$as_echo "#define LIBDEFLATE_SUPPORT 1" >>confdefs.h 18441 18442 LIBS="-ldeflate $LIBS" 18443 tiff_libs_private="-ldeflate ${tiff_libs_private}" 18444 18445 if test "$HAVE_RPATH" = "yes" -a "x$with_libdeflate_lib_dir" != "x" ; then 18446 LIBDIR="-R $with_libdeflate_lib_dir $LIBDIR" 18447 fi 18448 18449fi 18450 18451 18452# Check whether --enable-pixarlog was given. 18453if test "${enable_pixarlog+set}" = set; then : 18454 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 18455else 18456 HAVE_PIXARLOG=yes 18457fi 18458 18459 18460if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 18461 18462$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 18463 18464else 18465 HAVE_PIXARLOG=no 18466fi 18467 18468 18469HAVE_JPEG=no 18470 18471# Check whether --enable-jpeg was given. 18472if test "${enable_jpeg+set}" = set; then : 18473 enableval=$enable_jpeg; 18474fi 18475 18476 18477# Check whether --with-jpeg-include-dir was given. 18478if test "${with_jpeg_include_dir+set}" = set; then : 18479 withval=$with_jpeg_include_dir; 18480fi 18481 18482 18483# Check whether --with-jpeg-lib-dir was given. 18484if test "${with_jpeg_lib_dir+set}" = set; then : 18485 withval=$with_jpeg_lib_dir; 18486fi 18487 18488 18489if test "x$enable_jpeg" != "xno" ; then 18490 18491 if test "x$with_jpeg_lib_dir" != "x" ; then 18492 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 18493 18494 fi 18495 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 18497$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 18498if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 18499 $as_echo_n "(cached) " >&6 18500else 18501 ac_check_lib_save_LIBS=$LIBS 18502LIBS="-ljpeg $LIBS" 18503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18504/* end confdefs.h. */ 18505 18506/* Override any GCC internal prototype to avoid an error. 18507 Use char because int might match the return type of a GCC 18508 builtin and then its argument prototype would still apply. */ 18509#ifdef __cplusplus 18510extern "C" 18511#endif 18512char jpeg_read_scanlines (); 18513int 18514main () 18515{ 18516return jpeg_read_scanlines (); 18517 ; 18518 return 0; 18519} 18520_ACEOF 18521if ac_fn_c_try_link "$LINENO"; then : 18522 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18523else 18524 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18525fi 18526rm -f core conftest.err conftest.$ac_objext \ 18527 conftest$ac_exeext conftest.$ac_ext 18528LIBS=$ac_check_lib_save_LIBS 18529fi 18530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18531$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18532if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18533 jpeg_lib=yes 18534else 18535 jpeg_lib=no 18536fi 18537 18538 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18539 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18540 fi 18541 18542 if test "x$with_jpeg_include_dir" != "x" ; then 18543 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18544 fi 18545 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18546if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18547 jpeg_h=yes 18548else 18549 jpeg_h=no 18550fi 18551 18552 18553 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18554 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18555 fi 18556 18557 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18558 HAVE_JPEG=yes 18559 fi 18560 18561fi 18562 18563if test "$HAVE_JPEG" = "yes" ; then 18564 18565$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18566 18567 LIBS="-ljpeg $LIBS" 18568 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18569 18570 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18571 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18572 fi 18573 18574fi 18575 18576 if test "$HAVE_JPEG" = 'yes'; then 18577 HAVE_JPEG_TRUE= 18578 HAVE_JPEG_FALSE='#' 18579else 18580 HAVE_JPEG_TRUE='#' 18581 HAVE_JPEG_FALSE= 18582fi 18583 18584 18585 18586# Check whether --enable-old-jpeg was given. 18587if test "${enable_old_jpeg+set}" = set; then : 18588 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18589else 18590 HAVE_OJPEG=yes 18591fi 18592 18593 18594if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18595 18596$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18597 18598else 18599 HAVE_OJPEG=no 18600fi 18601 18602 18603HAVE_JBIG=no 18604 18605# Check whether --enable-jbig was given. 18606if test "${enable_jbig+set}" = set; then : 18607 enableval=$enable_jbig; 18608fi 18609 18610 18611# Check whether --with-jbig-include-dir was given. 18612if test "${with_jbig_include_dir+set}" = set; then : 18613 withval=$with_jbig_include_dir; 18614fi 18615 18616 18617# Check whether --with-jbig-lib-dir was given. 18618if test "${with_jbig_lib_dir+set}" = set; then : 18619 withval=$with_jbig_lib_dir; 18620fi 18621 18622 18623if test "x$enable_jbig" != "xno" ; then 18624 18625 if test "x$with_jbig_lib_dir" != "x" ; then 18626 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18627 18628 fi 18629 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18631$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18632if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18633 $as_echo_n "(cached) " >&6 18634else 18635 ac_check_lib_save_LIBS=$LIBS 18636LIBS="-ljbig $LIBS" 18637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18638/* end confdefs.h. */ 18639 18640/* Override any GCC internal prototype to avoid an error. 18641 Use char because int might match the return type of a GCC 18642 builtin and then its argument prototype would still apply. */ 18643#ifdef __cplusplus 18644extern "C" 18645#endif 18646char jbg_dec_init (); 18647int 18648main () 18649{ 18650return jbg_dec_init (); 18651 ; 18652 return 0; 18653} 18654_ACEOF 18655if ac_fn_c_try_link "$LINENO"; then : 18656 ac_cv_lib_jbig_jbg_dec_init=yes 18657else 18658 ac_cv_lib_jbig_jbg_dec_init=no 18659fi 18660rm -f core conftest.err conftest.$ac_objext \ 18661 conftest$ac_exeext conftest.$ac_ext 18662LIBS=$ac_check_lib_save_LIBS 18663fi 18664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18665$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18666if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18667 jbig_lib=yes 18668else 18669 jbig_lib=no 18670fi 18671 18672 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18673 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18674 fi 18675 18676 if test "x$with_jbig_include_dir" != "x" ; then 18677 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18678 fi 18679 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18680if test "x$ac_cv_header_jbig_h" = xyes; then : 18681 jbig_h=yes 18682else 18683 jbig_h=no 18684fi 18685 18686 18687 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18688 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18689 fi 18690 18691 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18692 HAVE_JBIG=yes 18693 fi 18694 18695fi 18696 18697if test "$HAVE_JBIG" = "yes" ; then 18698 18699$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 18700 18701 LIBS="-ljbig $LIBS" 18702 tiff_libs_private="-ljbig ${tiff_libs_private}" 18703 18704 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 18705 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 18706 fi 18707 18708 # Older versions of jbigkit lack jbg_newlen 18709 for ac_func in jbg_newlen 18710do : 18711 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 18712if test "x$ac_cv_func_jbg_newlen" = xyes; then : 18713 cat >>confdefs.h <<_ACEOF 18714#define HAVE_JBG_NEWLEN 1 18715_ACEOF 18716 18717fi 18718done 18719 18720 18721fi 18722 18723 if test "$HAVE_JBIG" = 'yes'; then 18724 HAVE_JBIG_TRUE= 18725 HAVE_JBIG_FALSE='#' 18726else 18727 HAVE_JBIG_TRUE='#' 18728 HAVE_JBIG_FALSE= 18729fi 18730 18731 18732 18733HAVE_LERC=no 18734 18735# Check whether --enable-lerc was given. 18736if test "${enable_lerc+set}" = set; then : 18737 enableval=$enable_lerc; 18738fi 18739 18740 18741# Check whether --with-lerc-include-dir was given. 18742if test "${with_lerc_include_dir+set}" = set; then : 18743 withval=$with_lerc_include_dir; 18744fi 18745 18746 18747# Check whether --with-lerc-lib-dir was given. 18748if test "${with_lerc_lib_dir+set}" = set; then : 18749 withval=$with_lerc_lib_dir; 18750fi 18751 18752 18753if test "x$enable_lerc" != "xno" ; then 18754 18755 if test "x$with_lerc_lib_dir" != "x" ; then 18756 LDFLAGS="-L$with_lerc_lib_dir $LDFLAGS" 18757 fi 18758 18759 lerc_lib_name="LercLib" 18760 as_ac_Lib=`$as_echo "ac_cv_lib_"$lerc_lib_name"''_lerc_decode" | $as_tr_sh` 18761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lerc_decode in -l\"$lerc_lib_name\"" >&5 18762$as_echo_n "checking for lerc_decode in -l\"$lerc_lib_name\"... " >&6; } 18763if eval \${$as_ac_Lib+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765else 18766 ac_check_lib_save_LIBS=$LIBS 18767LIBS="-l"$lerc_lib_name" $LIBS" 18768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18769/* end confdefs.h. */ 18770 18771/* Override any GCC internal prototype to avoid an error. 18772 Use char because int might match the return type of a GCC 18773 builtin and then its argument prototype would still apply. */ 18774#ifdef __cplusplus 18775extern "C" 18776#endif 18777char lerc_decode (); 18778int 18779main () 18780{ 18781return lerc_decode (); 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786if ac_fn_c_try_link "$LINENO"; then : 18787 eval "$as_ac_Lib=yes" 18788else 18789 eval "$as_ac_Lib=no" 18790fi 18791rm -f core conftest.err conftest.$ac_objext \ 18792 conftest$ac_exeext conftest.$ac_ext 18793LIBS=$ac_check_lib_save_LIBS 18794fi 18795eval ac_res=\$$as_ac_Lib 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18797$as_echo "$ac_res" >&6; } 18798if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18799 lerc_lib=yes 18800else 18801 lerc_lib=no 18802fi 18803 18804 if test "$lerc_lib" = "no" ; then 18805 lerc_lib_name="Lerc" 18806 as_ac_Lib=`$as_echo "ac_cv_lib_"$lerc_lib_name"''_lerc_decode" | $as_tr_sh` 18807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lerc_decode in -l\"$lerc_lib_name\"" >&5 18808$as_echo_n "checking for lerc_decode in -l\"$lerc_lib_name\"... " >&6; } 18809if eval \${$as_ac_Lib+:} false; then : 18810 $as_echo_n "(cached) " >&6 18811else 18812 ac_check_lib_save_LIBS=$LIBS 18813LIBS="-l"$lerc_lib_name" $LIBS" 18814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18815/* end confdefs.h. */ 18816 18817/* Override any GCC internal prototype to avoid an error. 18818 Use char because int might match the return type of a GCC 18819 builtin and then its argument prototype would still apply. */ 18820#ifdef __cplusplus 18821extern "C" 18822#endif 18823char lerc_decode (); 18824int 18825main () 18826{ 18827return lerc_decode (); 18828 ; 18829 return 0; 18830} 18831_ACEOF 18832if ac_fn_c_try_link "$LINENO"; then : 18833 eval "$as_ac_Lib=yes" 18834else 18835 eval "$as_ac_Lib=no" 18836fi 18837rm -f core conftest.err conftest.$ac_objext \ 18838 conftest$ac_exeext conftest.$ac_ext 18839LIBS=$ac_check_lib_save_LIBS 18840fi 18841eval ac_res=\$$as_ac_Lib 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18843$as_echo "$ac_res" >&6; } 18844if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18845 lerc_lib=yes 18846else 18847 lerc_lib=no 18848fi 18849 18850 fi 18851 if test "$lerc_lib" = "no" -a "x$with_lerc_lib_dir" != "x"; then 18852 as_fn_error $? "lerc library not found at $with_lerc_lib_dir" "$LINENO" 5 18853 fi 18854 18855 if test "x$with_lerc_include_dir" != "x" ; then 18856 CPPFLAGS="-I$with_lerc_include_dir $CPPFLAGS" 18857 fi 18858 ac_fn_c_check_header_mongrel "$LINENO" "Lerc_c_api.h" "ac_cv_header_Lerc_c_api_h" "$ac_includes_default" 18859if test "x$ac_cv_header_Lerc_c_api_h" = xyes; then : 18860 lerc_c_api_h=yes 18861else 18862 lerc_c_api_h=no 18863fi 18864 18865 18866 if test "$lerc_c_api_h" = "no" -a "x$with_lerc_include_dir" != "x" ; then 18867 as_fn_error $? "Liblerc headers not found at $with_lerc_include_dir" "$LINENO" 5 18868 fi 18869 18870 if test "$lerc_lib" = "yes" -a "$lerc_c_api_h" = "yes" ; then 18871 HAVE_LERC=yes 18872 fi 18873 18874fi 18875 18876if test "$HAVE_LERC" = "yes" ; then 18877 18878$as_echo "#define LERC_SUPPORT 1" >>confdefs.h 18879 18880 LIBS="-l${lerc_lib_name} $LIBS" 18881 tiff_libs_private="-l${lerc_lib_name} ${tiff_libs_private}" 18882 18883 if test "$HAVE_RPATH" = "yes" -a "x$with_lerc_lib_dir" != "x" ; then 18884 LIBDIR="-R $with_lerc_lib_dir $LIBDIR" 18885 fi 18886 18887fi 18888 18889 if test "$HAVE_LERC" = 'yes'; then 18890 HAVE_LERC_TRUE= 18891 HAVE_LERC_FALSE='#' 18892else 18893 HAVE_LERC_TRUE='#' 18894 HAVE_LERC_FALSE= 18895fi 18896 18897 18898 18899HAVE_LZMA=no 18900 18901# Check whether --enable-lzma was given. 18902if test "${enable_lzma+set}" = set; then : 18903 enableval=$enable_lzma; 18904fi 18905 18906 18907# Check whether --with-lzma-include-dir was given. 18908if test "${with_lzma_include_dir+set}" = set; then : 18909 withval=$with_lzma_include_dir; 18910fi 18911 18912 18913# Check whether --with-lzma-lib-dir was given. 18914if test "${with_lzma_lib_dir+set}" = set; then : 18915 withval=$with_lzma_lib_dir; 18916fi 18917 18918 18919if test "x$enable_lzma" != "xno" ; then 18920 18921 if test "x$with_lzma_lib_dir" != "x" ; then 18922 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 18923 fi 18924 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 18926$as_echo_n "checking for lzma_code in -llzma... " >&6; } 18927if ${ac_cv_lib_lzma_lzma_code+:} false; then : 18928 $as_echo_n "(cached) " >&6 18929else 18930 ac_check_lib_save_LIBS=$LIBS 18931LIBS="-llzma $LIBS" 18932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18933/* end confdefs.h. */ 18934 18935/* Override any GCC internal prototype to avoid an error. 18936 Use char because int might match the return type of a GCC 18937 builtin and then its argument prototype would still apply. */ 18938#ifdef __cplusplus 18939extern "C" 18940#endif 18941char lzma_code (); 18942int 18943main () 18944{ 18945return lzma_code (); 18946 ; 18947 return 0; 18948} 18949_ACEOF 18950if ac_fn_c_try_link "$LINENO"; then : 18951 ac_cv_lib_lzma_lzma_code=yes 18952else 18953 ac_cv_lib_lzma_lzma_code=no 18954fi 18955rm -f core conftest.err conftest.$ac_objext \ 18956 conftest$ac_exeext conftest.$ac_ext 18957LIBS=$ac_check_lib_save_LIBS 18958fi 18959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 18960$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 18961if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 18962 lzma_lib=yes 18963else 18964 lzma_lib=no 18965fi 18966 18967 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 18968 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 18969 fi 18970 18971 if test "x$with_lzma_include_dir" != "x" ; then 18972 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 18973 fi 18974 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18975if test "x$ac_cv_header_lzma_h" = xyes; then : 18976 lzma_h=yes 18977else 18978 lzma_h=no 18979fi 18980 18981 18982 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18983 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18984 fi 18985 18986 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18987 HAVE_LZMA=yes 18988 fi 18989 18990fi 18991 18992if test "$HAVE_LZMA" = "yes" ; then 18993 18994$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18995 18996 LIBS="-llzma $LIBS" 18997 tiff_libs_private="-llzma ${tiff_libs_private}" 18998 18999 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 19000 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 19001 fi 19002 19003fi 19004 19005 if test "$HAVE_LZMA" = 'yes'; then 19006 HAVE_LZMA_TRUE= 19007 HAVE_LZMA_FALSE='#' 19008else 19009 HAVE_LZMA_TRUE='#' 19010 HAVE_LZMA_FALSE= 19011fi 19012 19013 19014 19015HAVE_ZSTD=no 19016 19017# Check whether --enable-zstd was given. 19018if test "${enable_zstd+set}" = set; then : 19019 enableval=$enable_zstd; 19020fi 19021 19022 19023# Check whether --with-zstd-include-dir was given. 19024if test "${with_zstd_include_dir+set}" = set; then : 19025 withval=$with_zstd_include_dir; 19026fi 19027 19028 19029# Check whether --with-zstd-lib-dir was given. 19030if test "${with_zstd_lib_dir+set}" = set; then : 19031 withval=$with_zstd_lib_dir; 19032fi 19033 19034 19035if test "x$enable_zstd" != "xno" ; then 19036 19037 if test "x$with_zstd_lib_dir" != "x" ; then 19038 LDFLAGS="-L$with_zstd_lib_dir $LDFLAGS" 19039 fi 19040 19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5 19042$as_echo_n "checking for ZSTD_decompressStream in -lzstd... " >&6; } 19043if ${ac_cv_lib_zstd_ZSTD_decompressStream+:} false; then : 19044 $as_echo_n "(cached) " >&6 19045else 19046 ac_check_lib_save_LIBS=$LIBS 19047LIBS="-lzstd $LIBS" 19048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19049/* end confdefs.h. */ 19050 19051/* Override any GCC internal prototype to avoid an error. 19052 Use char because int might match the return type of a GCC 19053 builtin and then its argument prototype would still apply. */ 19054#ifdef __cplusplus 19055extern "C" 19056#endif 19057char ZSTD_decompressStream (); 19058int 19059main () 19060{ 19061return ZSTD_decompressStream (); 19062 ; 19063 return 0; 19064} 19065_ACEOF 19066if ac_fn_c_try_link "$LINENO"; then : 19067 ac_cv_lib_zstd_ZSTD_decompressStream=yes 19068else 19069 ac_cv_lib_zstd_ZSTD_decompressStream=no 19070fi 19071rm -f core conftest.err conftest.$ac_objext \ 19072 conftest$ac_exeext conftest.$ac_ext 19073LIBS=$ac_check_lib_save_LIBS 19074fi 19075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5 19076$as_echo "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; } 19077if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes; then : 19078 zstd_lib=yes 19079else 19080 zstd_lib=no 19081fi 19082 19083 if test "$zstd_lib" = "no" -a "x$with_zstd_lib_dir" != "x"; then 19084 as_fn_error $? "zstd library not found at $with_zstd_lib_dir" "$LINENO" 5 19085 fi 19086 19087 if test "x$with_zstd_include_dir" != "x" ; then 19088 CPPFLAGS="-I$with_zstd_include_dir $CPPFLAGS" 19089 fi 19090 ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 19091if test "x$ac_cv_header_zstd_h" = xyes; then : 19092 zstd_h=yes 19093else 19094 zstd_h=no 19095fi 19096 19097 19098 if test "$zstd_h" = "no" -a "x$with_zstd_include_dir" != "x" ; then 19099 as_fn_error $? "Libzstd headers not found at $with_zstd_include_dir" "$LINENO" 5 19100 fi 19101 19102 if test "$zstd_lib" = "yes" -a "$zstd_h" = "yes" ; then 19103 HAVE_ZSTD=yes 19104 fi 19105 19106fi 19107 19108if test "$HAVE_ZSTD" = "yes" ; then 19109 19110$as_echo "#define ZSTD_SUPPORT 1" >>confdefs.h 19111 19112 LIBS="-lzstd $LIBS" 19113 tiff_libs_private="-lzstd ${tiff_libs_private}" 19114 19115 if test "$HAVE_RPATH" = "yes" -a "x$with_zstd_lib_dir" != "x" ; then 19116 LIBDIR="-R $with_zstd_lib_dir $LIBDIR" 19117 fi 19118 19119fi 19120 19121 if test "$HAVE_ZSTD" = 'yes'; then 19122 HAVE_ZSTD_TRUE= 19123 HAVE_ZSTD_FALSE='#' 19124else 19125 HAVE_ZSTD_TRUE='#' 19126 HAVE_ZSTD_FALSE= 19127fi 19128 19129 19130 19131HAVE_WEBP=no 19132 19133# Check whether --enable-webp was given. 19134if test "${enable_webp+set}" = set; then : 19135 enableval=$enable_webp; 19136fi 19137 19138 19139# Check whether --with-webp-include-dir was given. 19140if test "${with_webp_include_dir+set}" = set; then : 19141 withval=$with_webp_include_dir; 19142fi 19143 19144 19145# Check whether --with-webp-lib-dir was given. 19146if test "${with_webp_lib_dir+set}" = set; then : 19147 withval=$with_webp_lib_dir; 19148fi 19149 19150 19151if test "x$enable_webp" != "xno" ; then 19152 19153 if test "x$with_webp_lib_dir" != "x" ; then 19154 LDFLAGS="-L$with_webp_lib_dir $LDFLAGS" 19155 fi 19156 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecode in -lwebp" >&5 19158$as_echo_n "checking for WebPDecode in -lwebp... " >&6; } 19159if ${ac_cv_lib_webp_WebPDecode+:} false; then : 19160 $as_echo_n "(cached) " >&6 19161else 19162 ac_check_lib_save_LIBS=$LIBS 19163LIBS="-lwebp $LIBS" 19164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19165/* end confdefs.h. */ 19166 19167/* Override any GCC internal prototype to avoid an error. 19168 Use char because int might match the return type of a GCC 19169 builtin and then its argument prototype would still apply. */ 19170#ifdef __cplusplus 19171extern "C" 19172#endif 19173char WebPDecode (); 19174int 19175main () 19176{ 19177return WebPDecode (); 19178 ; 19179 return 0; 19180} 19181_ACEOF 19182if ac_fn_c_try_link "$LINENO"; then : 19183 ac_cv_lib_webp_WebPDecode=yes 19184else 19185 ac_cv_lib_webp_WebPDecode=no 19186fi 19187rm -f core conftest.err conftest.$ac_objext \ 19188 conftest$ac_exeext conftest.$ac_ext 19189LIBS=$ac_check_lib_save_LIBS 19190fi 19191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecode" >&5 19192$as_echo "$ac_cv_lib_webp_WebPDecode" >&6; } 19193if test "x$ac_cv_lib_webp_WebPDecode" = xyes; then : 19194 webp_lib=yes 19195else 19196 webp_lib=no 19197fi 19198 19199 if test "$webp_lib" = "no" -a "x$with_webp_lib_dir" != "x"; then 19200 as_fn_error $? "webp library not found at $with_webp_lib_dir" "$LINENO" 5 19201 fi 19202 19203 if test "x$with_webp_include_dir" != "x" ; then 19204 CPPFLAGS="-I$with_webp_include_dir $CPPFLAGS" 19205 fi 19206 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 19207if test "x$ac_cv_header_webp_decode_h" = xyes; then : 19208 webp_h=yes 19209else 19210 webp_h=no 19211fi 19212 19213 19214 if test "$webp_h" = "no" -a "x$with_webp_include_dir" != "x" ; then 19215 as_fn_error $? "Libwebp headers not found at $with_webp_include_dir" "$LINENO" 5 19216 fi 19217 19218 if test "$webp_lib" = "yes" -a "$webp_h" = "yes" ; then 19219 HAVE_WEBP=yes 19220 fi 19221 19222fi 19223 19224if test "$HAVE_WEBP" = "yes" ; then 19225 19226$as_echo "#define WEBP_SUPPORT 1" >>confdefs.h 19227 19228 LIBS="-lwebp $LIBS" 19229 tiff_libs_private="-lwebp ${tiff_libs_private}" 19230 19231 if test "$HAVE_RPATH" = "yes" -a "x$with_webp_lib_dir" != "x" ; then 19232 LIBDIR="-R $with_webp_lib_dir $LIBDIR" 19233 fi 19234 19235fi 19236 19237 if test "$HAVE_WEBP" = 'yes'; then 19238 HAVE_WEBP_TRUE= 19239 HAVE_WEBP_FALSE='#' 19240else 19241 HAVE_WEBP_TRUE='#' 19242 HAVE_WEBP_FALSE= 19243fi 19244 19245 19246 19247HAVE_JPEG12=no 19248 19249# Check whether --enable-jpeg12 was given. 19250if test "${enable_jpeg12+set}" = set; then : 19251 enableval=$enable_jpeg12; 19252fi 19253 19254 19255# Check whether --with-jpeg12-include-dir was given. 19256if test "${with_jpeg12_include_dir+set}" = set; then : 19257 withval=$with_jpeg12_include_dir; 19258fi 19259 19260 19261# Check whether --with-jpeg12-lib was given. 19262if test "${with_jpeg12_lib+set}" = set; then : 19263 withval=$with_jpeg12_lib; 19264fi 19265 19266 19267if test "x$enable_jpeg12" = "xyes" ; then 19268 19269 if test "x$with_jpeg12_lib" != "x" ; then 19270 LIBS="$with_jpeg12_lib $LIBS" 19271 fi 19272 19273 HAVE_JPEG12=yes 19274 19275 19276$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 19277 19278 if test "x$with_jpeg12_include_dir" != "x" ; then 19279 19280cat >>confdefs.h <<_ACEOF 19281#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 19282_ACEOF 19283 19284 fi 19285fi 19286 19287 19288 19289# Check whether --enable-cxx was given. 19290if test "${enable_cxx+set}" = set; then : 19291 enableval=$enable_cxx; HAVE_CXX=$enableval 19292else 19293 HAVE_CXX=yes 19294fi 19295 19296 19297if test "$HAVE_CXX" = "yes" ; then 19298 19299$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 19300 19301else 19302 HAVE_CXX=no 19303fi 19304 19305 if test "$HAVE_CXX" = "yes"; then 19306 HAVE_CXX_TRUE= 19307 HAVE_CXX_FALSE='#' 19308else 19309 HAVE_CXX_TRUE='#' 19310 HAVE_CXX_FALSE= 19311fi 19312 19313 19314 19315HAVE_OPENGL=no 19316 19317 19318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19319$as_echo_n "checking for X... " >&6; } 19320 19321 19322# Check whether --with-x was given. 19323if test "${with_x+set}" = set; then : 19324 withval=$with_x; 19325fi 19326 19327# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19328if test "x$with_x" = xno; then 19329 # The user explicitly disabled X. 19330 have_x=disabled 19331else 19332 case $x_includes,$x_libraries in #( 19333 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19334 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19335 $as_echo_n "(cached) " >&6 19336else 19337 # One or both of the vars are not set, and there is no cached value. 19338ac_x_includes=no ac_x_libraries=no 19339rm -f -r conftest.dir 19340if mkdir conftest.dir; then 19341 cd conftest.dir 19342 cat >Imakefile <<'_ACEOF' 19343incroot: 19344 @echo incroot='${INCROOT}' 19345usrlibdir: 19346 @echo usrlibdir='${USRLIBDIR}' 19347libdir: 19348 @echo libdir='${LIBDIR}' 19349_ACEOF 19350 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19352 for ac_var in incroot usrlibdir libdir; do 19353 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19354 done 19355 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19356 for ac_extension in a so sl dylib la dll; do 19357 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19358 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19359 ac_im_usrlibdir=$ac_im_libdir; break 19360 fi 19361 done 19362 # Screen out bogus values from the imake configuration. They are 19363 # bogus both because they are the default anyway, and because 19364 # using them would break gcc on systems where it needs fixed includes. 19365 case $ac_im_incroot in 19366 /usr/include) ac_x_includes= ;; 19367 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19368 esac 19369 case $ac_im_usrlibdir in 19370 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19371 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19372 esac 19373 fi 19374 cd .. 19375 rm -f -r conftest.dir 19376fi 19377 19378# Standard set of common directories for X headers. 19379# Check X11 before X11Rn because it is often a symlink to the current release. 19380ac_x_header_dirs=' 19381/usr/X11/include 19382/usr/X11R7/include 19383/usr/X11R6/include 19384/usr/X11R5/include 19385/usr/X11R4/include 19386 19387/usr/include/X11 19388/usr/include/X11R7 19389/usr/include/X11R6 19390/usr/include/X11R5 19391/usr/include/X11R4 19392 19393/usr/local/X11/include 19394/usr/local/X11R7/include 19395/usr/local/X11R6/include 19396/usr/local/X11R5/include 19397/usr/local/X11R4/include 19398 19399/usr/local/include/X11 19400/usr/local/include/X11R7 19401/usr/local/include/X11R6 19402/usr/local/include/X11R5 19403/usr/local/include/X11R4 19404 19405/usr/X386/include 19406/usr/x386/include 19407/usr/XFree86/include/X11 19408 19409/usr/include 19410/usr/local/include 19411/usr/unsupported/include 19412/usr/athena/include 19413/usr/local/x11r5/include 19414/usr/lpp/Xamples/include 19415 19416/usr/openwin/include 19417/usr/openwin/share/include' 19418 19419if test "$ac_x_includes" = no; then 19420 # Guess where to find include files, by looking for Xlib.h. 19421 # First, try using that file with no special directory specified. 19422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19423/* end confdefs.h. */ 19424#include <X11/Xlib.h> 19425_ACEOF 19426if ac_fn_c_try_cpp "$LINENO"; then : 19427 # We can compile using X headers with no special include directory. 19428ac_x_includes= 19429else 19430 for ac_dir in $ac_x_header_dirs; do 19431 if test -r "$ac_dir/X11/Xlib.h"; then 19432 ac_x_includes=$ac_dir 19433 break 19434 fi 19435done 19436fi 19437rm -f conftest.err conftest.i conftest.$ac_ext 19438fi # $ac_x_includes = no 19439 19440if test "$ac_x_libraries" = no; then 19441 # Check for the libraries. 19442 # See if we find them without any special options. 19443 # Don't add to $LIBS permanently. 19444 ac_save_LIBS=$LIBS 19445 LIBS="-lX11 $LIBS" 19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19447/* end confdefs.h. */ 19448#include <X11/Xlib.h> 19449int 19450main () 19451{ 19452XrmInitialize () 19453 ; 19454 return 0; 19455} 19456_ACEOF 19457if ac_fn_c_try_link "$LINENO"; then : 19458 LIBS=$ac_save_LIBS 19459# We can link X programs with no special library path. 19460ac_x_libraries= 19461else 19462 LIBS=$ac_save_LIBS 19463for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19464do 19465 # Don't even attempt the hair of trying to link an X program! 19466 for ac_extension in a so sl dylib la dll; do 19467 if test -r "$ac_dir/libX11.$ac_extension"; then 19468 ac_x_libraries=$ac_dir 19469 break 2 19470 fi 19471 done 19472done 19473fi 19474rm -f core conftest.err conftest.$ac_objext \ 19475 conftest$ac_exeext conftest.$ac_ext 19476fi # $ac_x_libraries = no 19477 19478case $ac_x_includes,$ac_x_libraries in #( 19479 no,* | *,no | *\'*) 19480 # Didn't find X, or a directory has "'" in its name. 19481 ac_cv_have_x="have_x=no";; #( 19482 *) 19483 # Record where we found X for the cache. 19484 ac_cv_have_x="have_x=yes\ 19485 ac_x_includes='$ac_x_includes'\ 19486 ac_x_libraries='$ac_x_libraries'" 19487esac 19488fi 19489;; #( 19490 *) have_x=yes;; 19491 esac 19492 eval "$ac_cv_have_x" 19493fi # $with_x != no 19494 19495if test "$have_x" != yes; then 19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19497$as_echo "$have_x" >&6; } 19498 no_x=yes 19499else 19500 # If each of the values was on the command line, it overrides each guess. 19501 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19502 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19503 # Update the cache value to reflect the command line values. 19504 ac_cv_have_x="have_x=yes\ 19505 ac_x_includes='$x_includes'\ 19506 ac_x_libraries='$x_libraries'" 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19508$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19509fi 19510 19511if test "$no_x" = yes; then 19512 # Not all programs may use this symbol, but it does not hurt to define it. 19513 19514$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19515 19516 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19517else 19518 if test -n "$x_includes"; then 19519 X_CFLAGS="$X_CFLAGS -I$x_includes" 19520 fi 19521 19522 # It would also be nice to do this for all -L options, not just this one. 19523 if test -n "$x_libraries"; then 19524 X_LIBS="$X_LIBS -L$x_libraries" 19525 # For Solaris; some versions of Sun CC require a space after -R and 19526 # others require no space. Words are not sufficient . . . . 19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19528$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19529 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19530 ac_xsave_c_werror_flag=$ac_c_werror_flag 19531 ac_c_werror_flag=yes 19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19533/* end confdefs.h. */ 19534 19535int 19536main () 19537{ 19538 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543if ac_fn_c_try_link "$LINENO"; then : 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19545$as_echo "no" >&6; } 19546 X_LIBS="$X_LIBS -R$x_libraries" 19547else 19548 LIBS="$ac_xsave_LIBS -R $x_libraries" 19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19550/* end confdefs.h. */ 19551 19552int 19553main () 19554{ 19555 19556 ; 19557 return 0; 19558} 19559_ACEOF 19560if ac_fn_c_try_link "$LINENO"; then : 19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19562$as_echo "yes" >&6; } 19563 X_LIBS="$X_LIBS -R $x_libraries" 19564else 19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19566$as_echo "neither works" >&6; } 19567fi 19568rm -f core conftest.err conftest.$ac_objext \ 19569 conftest$ac_exeext conftest.$ac_ext 19570fi 19571rm -f core conftest.err conftest.$ac_objext \ 19572 conftest$ac_exeext conftest.$ac_ext 19573 ac_c_werror_flag=$ac_xsave_c_werror_flag 19574 LIBS=$ac_xsave_LIBS 19575 fi 19576 19577 # Check for system-dependent libraries X programs must link with. 19578 # Do this before checking for the system-independent R6 libraries 19579 # (-lICE), since we may need -lsocket or whatever for X linking. 19580 19581 if test "$ISC" = yes; then 19582 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19583 else 19584 # Martyn Johnson says this is needed for Ultrix, if the X 19585 # libraries were built with DECnet support. And Karl Berry says 19586 # the Alpha needs dnet_stub (dnet does not exist). 19587 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19589/* end confdefs.h. */ 19590 19591/* Override any GCC internal prototype to avoid an error. 19592 Use char because int might match the return type of a GCC 19593 builtin and then its argument prototype would still apply. */ 19594#ifdef __cplusplus 19595extern "C" 19596#endif 19597char XOpenDisplay (); 19598int 19599main () 19600{ 19601return XOpenDisplay (); 19602 ; 19603 return 0; 19604} 19605_ACEOF 19606if ac_fn_c_try_link "$LINENO"; then : 19607 19608else 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19610$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19611if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19612 $as_echo_n "(cached) " >&6 19613else 19614 ac_check_lib_save_LIBS=$LIBS 19615LIBS="-ldnet $LIBS" 19616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19617/* end confdefs.h. */ 19618 19619/* Override any GCC internal prototype to avoid an error. 19620 Use char because int might match the return type of a GCC 19621 builtin and then its argument prototype would still apply. */ 19622#ifdef __cplusplus 19623extern "C" 19624#endif 19625char dnet_ntoa (); 19626int 19627main () 19628{ 19629return dnet_ntoa (); 19630 ; 19631 return 0; 19632} 19633_ACEOF 19634if ac_fn_c_try_link "$LINENO"; then : 19635 ac_cv_lib_dnet_dnet_ntoa=yes 19636else 19637 ac_cv_lib_dnet_dnet_ntoa=no 19638fi 19639rm -f core conftest.err conftest.$ac_objext \ 19640 conftest$ac_exeext conftest.$ac_ext 19641LIBS=$ac_check_lib_save_LIBS 19642fi 19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19644$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19645if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19647fi 19648 19649 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19651$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19652if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19653 $as_echo_n "(cached) " >&6 19654else 19655 ac_check_lib_save_LIBS=$LIBS 19656LIBS="-ldnet_stub $LIBS" 19657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19658/* end confdefs.h. */ 19659 19660/* Override any GCC internal prototype to avoid an error. 19661 Use char because int might match the return type of a GCC 19662 builtin and then its argument prototype would still apply. */ 19663#ifdef __cplusplus 19664extern "C" 19665#endif 19666char dnet_ntoa (); 19667int 19668main () 19669{ 19670return dnet_ntoa (); 19671 ; 19672 return 0; 19673} 19674_ACEOF 19675if ac_fn_c_try_link "$LINENO"; then : 19676 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19677else 19678 ac_cv_lib_dnet_stub_dnet_ntoa=no 19679fi 19680rm -f core conftest.err conftest.$ac_objext \ 19681 conftest$ac_exeext conftest.$ac_ext 19682LIBS=$ac_check_lib_save_LIBS 19683fi 19684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19685$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19686if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19688fi 19689 19690 fi 19691fi 19692rm -f core conftest.err conftest.$ac_objext \ 19693 conftest$ac_exeext conftest.$ac_ext 19694 LIBS="$ac_xsave_LIBS" 19695 19696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 19697 # to get the SysV transport functions. 19698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19699 # needs -lnsl. 19700 # The nsl library prevents programs from opening the X display 19701 # on Irix 5.2, according to T.E. Dickey. 19702 # The functions gethostbyname, getservbyname, and inet_addr are 19703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19704 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19705if test "x$ac_cv_func_gethostbyname" = xyes; then : 19706 19707fi 19708 19709 if test $ac_cv_func_gethostbyname = no; then 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19711$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19712if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19713 $as_echo_n "(cached) " >&6 19714else 19715 ac_check_lib_save_LIBS=$LIBS 19716LIBS="-lnsl $LIBS" 19717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19718/* end confdefs.h. */ 19719 19720/* Override any GCC internal prototype to avoid an error. 19721 Use char because int might match the return type of a GCC 19722 builtin and then its argument prototype would still apply. */ 19723#ifdef __cplusplus 19724extern "C" 19725#endif 19726char gethostbyname (); 19727int 19728main () 19729{ 19730return gethostbyname (); 19731 ; 19732 return 0; 19733} 19734_ACEOF 19735if ac_fn_c_try_link "$LINENO"; then : 19736 ac_cv_lib_nsl_gethostbyname=yes 19737else 19738 ac_cv_lib_nsl_gethostbyname=no 19739fi 19740rm -f core conftest.err conftest.$ac_objext \ 19741 conftest$ac_exeext conftest.$ac_ext 19742LIBS=$ac_check_lib_save_LIBS 19743fi 19744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19745$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19746if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19748fi 19749 19750 if test $ac_cv_lib_nsl_gethostbyname = no; then 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19752$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19753if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19754 $as_echo_n "(cached) " >&6 19755else 19756 ac_check_lib_save_LIBS=$LIBS 19757LIBS="-lbsd $LIBS" 19758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19759/* end confdefs.h. */ 19760 19761/* Override any GCC internal prototype to avoid an error. 19762 Use char because int might match the return type of a GCC 19763 builtin and then its argument prototype would still apply. */ 19764#ifdef __cplusplus 19765extern "C" 19766#endif 19767char gethostbyname (); 19768int 19769main () 19770{ 19771return gethostbyname (); 19772 ; 19773 return 0; 19774} 19775_ACEOF 19776if ac_fn_c_try_link "$LINENO"; then : 19777 ac_cv_lib_bsd_gethostbyname=yes 19778else 19779 ac_cv_lib_bsd_gethostbyname=no 19780fi 19781rm -f core conftest.err conftest.$ac_objext \ 19782 conftest$ac_exeext conftest.$ac_ext 19783LIBS=$ac_check_lib_save_LIBS 19784fi 19785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19786$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19787if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19789fi 19790 19791 fi 19792 fi 19793 19794 # lieder@skyler.mavd.honeywell.com says without -lsocket, 19795 # socket/setsockopt and other routines are undefined under SCO ODT 19796 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19797 # on later versions), says Simon Leinen: it contains gethostby* 19798 # variants that don't use the name server (or something). -lsocket 19799 # must be given before -lnsl if both are needed. We assume that 19800 # if connect needs -lnsl, so does gethostbyname. 19801 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19802if test "x$ac_cv_func_connect" = xyes; then : 19803 19804fi 19805 19806 if test $ac_cv_func_connect = no; then 19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19808$as_echo_n "checking for connect in -lsocket... " >&6; } 19809if ${ac_cv_lib_socket_connect+:} false; then : 19810 $as_echo_n "(cached) " >&6 19811else 19812 ac_check_lib_save_LIBS=$LIBS 19813LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19815/* end confdefs.h. */ 19816 19817/* Override any GCC internal prototype to avoid an error. 19818 Use char because int might match the return type of a GCC 19819 builtin and then its argument prototype would still apply. */ 19820#ifdef __cplusplus 19821extern "C" 19822#endif 19823char connect (); 19824int 19825main () 19826{ 19827return connect (); 19828 ; 19829 return 0; 19830} 19831_ACEOF 19832if ac_fn_c_try_link "$LINENO"; then : 19833 ac_cv_lib_socket_connect=yes 19834else 19835 ac_cv_lib_socket_connect=no 19836fi 19837rm -f core conftest.err conftest.$ac_objext \ 19838 conftest$ac_exeext conftest.$ac_ext 19839LIBS=$ac_check_lib_save_LIBS 19840fi 19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19842$as_echo "$ac_cv_lib_socket_connect" >&6; } 19843if test "x$ac_cv_lib_socket_connect" = xyes; then : 19844 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19845fi 19846 19847 fi 19848 19849 # Guillermo Gomez says -lposix is necessary on A/UX. 19850 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19851if test "x$ac_cv_func_remove" = xyes; then : 19852 19853fi 19854 19855 if test $ac_cv_func_remove = no; then 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19857$as_echo_n "checking for remove in -lposix... " >&6; } 19858if ${ac_cv_lib_posix_remove+:} false; then : 19859 $as_echo_n "(cached) " >&6 19860else 19861 ac_check_lib_save_LIBS=$LIBS 19862LIBS="-lposix $LIBS" 19863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19864/* end confdefs.h. */ 19865 19866/* Override any GCC internal prototype to avoid an error. 19867 Use char because int might match the return type of a GCC 19868 builtin and then its argument prototype would still apply. */ 19869#ifdef __cplusplus 19870extern "C" 19871#endif 19872char remove (); 19873int 19874main () 19875{ 19876return remove (); 19877 ; 19878 return 0; 19879} 19880_ACEOF 19881if ac_fn_c_try_link "$LINENO"; then : 19882 ac_cv_lib_posix_remove=yes 19883else 19884 ac_cv_lib_posix_remove=no 19885fi 19886rm -f core conftest.err conftest.$ac_objext \ 19887 conftest$ac_exeext conftest.$ac_ext 19888LIBS=$ac_check_lib_save_LIBS 19889fi 19890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19891$as_echo "$ac_cv_lib_posix_remove" >&6; } 19892if test "x$ac_cv_lib_posix_remove" = xyes; then : 19893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19894fi 19895 19896 fi 19897 19898 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19899 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19900if test "x$ac_cv_func_shmat" = xyes; then : 19901 19902fi 19903 19904 if test $ac_cv_func_shmat = no; then 19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19906$as_echo_n "checking for shmat in -lipc... " >&6; } 19907if ${ac_cv_lib_ipc_shmat+:} false; then : 19908 $as_echo_n "(cached) " >&6 19909else 19910 ac_check_lib_save_LIBS=$LIBS 19911LIBS="-lipc $LIBS" 19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914 19915/* Override any GCC internal prototype to avoid an error. 19916 Use char because int might match the return type of a GCC 19917 builtin and then its argument prototype would still apply. */ 19918#ifdef __cplusplus 19919extern "C" 19920#endif 19921char shmat (); 19922int 19923main () 19924{ 19925return shmat (); 19926 ; 19927 return 0; 19928} 19929_ACEOF 19930if ac_fn_c_try_link "$LINENO"; then : 19931 ac_cv_lib_ipc_shmat=yes 19932else 19933 ac_cv_lib_ipc_shmat=no 19934fi 19935rm -f core conftest.err conftest.$ac_objext \ 19936 conftest$ac_exeext conftest.$ac_ext 19937LIBS=$ac_check_lib_save_LIBS 19938fi 19939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19940$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19941if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19943fi 19944 19945 fi 19946 fi 19947 19948 # Check for libraries that X11R6 Xt/Xaw programs need. 19949 ac_save_LDFLAGS=$LDFLAGS 19950 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19951 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19952 # check for ICE first), but we must link in the order -lSM -lICE or 19953 # we get undefined symbols. So assume we have SM if we have ICE. 19954 # These have to be linked with before -lX11, unlike the other 19955 # libraries we check for below, so use a different variable. 19956 # John Interrante, Karl Berry 19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19958$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19959if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19960 $as_echo_n "(cached) " >&6 19961else 19962 ac_check_lib_save_LIBS=$LIBS 19963LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19965/* end confdefs.h. */ 19966 19967/* Override any GCC internal prototype to avoid an error. 19968 Use char because int might match the return type of a GCC 19969 builtin and then its argument prototype would still apply. */ 19970#ifdef __cplusplus 19971extern "C" 19972#endif 19973char IceConnectionNumber (); 19974int 19975main () 19976{ 19977return IceConnectionNumber (); 19978 ; 19979 return 0; 19980} 19981_ACEOF 19982if ac_fn_c_try_link "$LINENO"; then : 19983 ac_cv_lib_ICE_IceConnectionNumber=yes 19984else 19985 ac_cv_lib_ICE_IceConnectionNumber=no 19986fi 19987rm -f core conftest.err conftest.$ac_objext \ 19988 conftest$ac_exeext conftest.$ac_ext 19989LIBS=$ac_check_lib_save_LIBS 19990fi 19991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19992$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19993if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19994 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19995fi 19996 19997 LDFLAGS=$ac_save_LDFLAGS 19998 19999fi 20000 20001 20002 20003 20004 20005ac_ext=c 20006ac_cpp='$CPP $CPPFLAGS' 20007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20009ac_compiler_gnu=$ac_cv_c_compiler_gnu 20010 20011ax_pthread_ok=no 20012 20013 20014if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 20015 save_CFLAGS="$CFLAGS" 20016 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20017 save_LIBS="$LIBS" 20018 LIBS="$PTHREAD_LIBS $LIBS" 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 20020$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20022/* end confdefs.h. */ 20023 20024/* Override any GCC internal prototype to avoid an error. 20025 Use char because int might match the return type of a GCC 20026 builtin and then its argument prototype would still apply. */ 20027#ifdef __cplusplus 20028extern "C" 20029#endif 20030char pthread_join (); 20031int 20032main () 20033{ 20034return pthread_join (); 20035 ; 20036 return 0; 20037} 20038_ACEOF 20039if ac_fn_c_try_link "$LINENO"; then : 20040 ax_pthread_ok=yes 20041fi 20042rm -f core conftest.err conftest.$ac_objext \ 20043 conftest$ac_exeext conftest.$ac_ext 20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20045$as_echo "$ax_pthread_ok" >&6; } 20046 if test x"$ax_pthread_ok" = xno; then 20047 PTHREAD_LIBS="" 20048 PTHREAD_CFLAGS="" 20049 fi 20050 LIBS="$save_LIBS" 20051 CFLAGS="$save_CFLAGS" 20052fi 20053 20054 20055 20056ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 20057 20058 20059 20060case "${host_cpu}-${host_os}" in 20061 *solaris*) 20062 20063 20064 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 20065 ;; 20066 20067 *-darwin*) 20068 ax_pthread_flags="-pthread $ax_pthread_flags" 20069 ;; 20070esac 20071 20072if test x"$ax_pthread_ok" = xno; then 20073for flag in $ax_pthread_flags; do 20074 20075 case $flag in 20076 none) 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 20078$as_echo_n "checking whether pthreads work without any flags... " >&6; } 20079 ;; 20080 20081 -*) 20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 20083$as_echo_n "checking whether pthreads work with $flag... " >&6; } 20084 PTHREAD_CFLAGS="$flag" 20085 ;; 20086 20087 pthread-config) 20088 # Extract the first word of "pthread-config", so it can be a program name with args. 20089set dummy pthread-config; ac_word=$2 20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20091$as_echo_n "checking for $ac_word... " >&6; } 20092if ${ac_cv_prog_ax_pthread_config+:} false; then : 20093 $as_echo_n "(cached) " >&6 20094else 20095 if test -n "$ax_pthread_config"; then 20096 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 20097else 20098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20099for as_dir in $PATH 20100do 20101 IFS=$as_save_IFS 20102 test -z "$as_dir" && as_dir=. 20103 for ac_exec_ext in '' $ac_executable_extensions; do 20104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20105 ac_cv_prog_ax_pthread_config="yes" 20106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20107 break 2 20108 fi 20109done 20110 done 20111IFS=$as_save_IFS 20112 20113 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 20114fi 20115fi 20116ax_pthread_config=$ac_cv_prog_ax_pthread_config 20117if test -n "$ax_pthread_config"; then 20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 20119$as_echo "$ax_pthread_config" >&6; } 20120else 20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20122$as_echo "no" >&6; } 20123fi 20124 20125 20126 if test x"$ax_pthread_config" = xno; then continue; fi 20127 PTHREAD_CFLAGS="`pthread-config --cflags`" 20128 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 20129 ;; 20130 20131 *) 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 20133$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 20134 PTHREAD_LIBS="-l$flag" 20135 ;; 20136 esac 20137 20138 save_LIBS="$LIBS" 20139 save_CFLAGS="$CFLAGS" 20140 LIBS="$PTHREAD_LIBS $LIBS" 20141 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20142 20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20144/* end confdefs.h. */ 20145#include <pthread.h> 20146 static void routine(void* a) {a=0;} 20147 static void* start_routine(void* a) {return a;} 20148int 20149main () 20150{ 20151pthread_t th; pthread_attr_t attr; 20152 pthread_create(&th,0,start_routine,0); 20153 pthread_join(th, 0); 20154 pthread_attr_init(&attr); 20155 pthread_cleanup_push(routine, 0); 20156 pthread_cleanup_pop(0); 20157 ; 20158 return 0; 20159} 20160_ACEOF 20161if ac_fn_c_try_link "$LINENO"; then : 20162 ax_pthread_ok=yes 20163fi 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext conftest.$ac_ext 20166 20167 LIBS="$save_LIBS" 20168 CFLAGS="$save_CFLAGS" 20169 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20171$as_echo "$ax_pthread_ok" >&6; } 20172 if test "x$ax_pthread_ok" = xyes; then 20173 break; 20174 fi 20175 20176 PTHREAD_LIBS="" 20177 PTHREAD_CFLAGS="" 20178done 20179fi 20180 20181if test "x$ax_pthread_ok" = xyes; then 20182 save_LIBS="$LIBS" 20183 LIBS="$PTHREAD_LIBS $LIBS" 20184 save_CFLAGS="$CFLAGS" 20185 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20186 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 20188$as_echo_n "checking for joinable pthread attribute... " >&6; } 20189 attr_name=unknown 20190 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20192/* end confdefs.h. */ 20193#include <pthread.h> 20194int 20195main () 20196{ 20197int attr=$attr; return attr; 20198 ; 20199 return 0; 20200} 20201_ACEOF 20202if ac_fn_c_try_link "$LINENO"; then : 20203 attr_name=$attr; break 20204fi 20205rm -f core conftest.err conftest.$ac_objext \ 20206 conftest$ac_exeext conftest.$ac_ext 20207 done 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 20209$as_echo "$attr_name" >&6; } 20210 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 20211 20212cat >>confdefs.h <<_ACEOF 20213#define PTHREAD_CREATE_JOINABLE $attr_name 20214_ACEOF 20215 20216 fi 20217 20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 20219$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 20220 flag=no 20221 case "${host_cpu}-${host_os}" in 20222 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 20223 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 20224 esac 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 20226$as_echo "${flag}" >&6; } 20227 if test "x$flag" != xno; then 20228 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 20229 fi 20230 20231 LIBS="$save_LIBS" 20232 CFLAGS="$save_CFLAGS" 20233 20234 if test x"$GCC" != xyes; then 20235 for ac_prog in xlc_r cc_r 20236do 20237 # Extract the first word of "$ac_prog", so it can be a program name with args. 20238set dummy $ac_prog; ac_word=$2 20239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20240$as_echo_n "checking for $ac_word... " >&6; } 20241if ${ac_cv_prog_PTHREAD_CC+:} false; then : 20242 $as_echo_n "(cached) " >&6 20243else 20244 if test -n "$PTHREAD_CC"; then 20245 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 20246else 20247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20248for as_dir in $PATH 20249do 20250 IFS=$as_save_IFS 20251 test -z "$as_dir" && as_dir=. 20252 for ac_exec_ext in '' $ac_executable_extensions; do 20253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20254 ac_cv_prog_PTHREAD_CC="$ac_prog" 20255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20256 break 2 20257 fi 20258done 20259 done 20260IFS=$as_save_IFS 20261 20262fi 20263fi 20264PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 20265if test -n "$PTHREAD_CC"; then 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 20267$as_echo "$PTHREAD_CC" >&6; } 20268else 20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20270$as_echo "no" >&6; } 20271fi 20272 20273 20274 test -n "$PTHREAD_CC" && break 20275done 20276test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 20277 20278 else 20279 PTHREAD_CC=$CC 20280 fi 20281else 20282 PTHREAD_CC="$CC" 20283fi 20284 20285 20286 20287 20288 20289if test x"$ax_pthread_ok" = xyes; then 20290 20291$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 20292 20293 : 20294else 20295 ax_pthread_ok=no 20296 20297fi 20298ac_ext=c 20299ac_cpp='$CPP $CPPFLAGS' 20300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20302ac_compiler_gnu=$ac_cv_c_compiler_gnu 20303 20304 20305 20306 20307ac_ext=c 20308ac_cpp='$CPP $CPPFLAGS' 20309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20311ac_compiler_gnu=$ac_cv_c_compiler_gnu 20312 20313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 20314$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 20315if ${ax_cv_c_compiler_ms+:} false; then : 20316 $as_echo_n "(cached) " >&6 20317else 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319/* end confdefs.h. */ 20320 20321int 20322main () 20323{ 20324#ifndef _MSC_VER 20325 choke me 20326#endif 20327 20328 ; 20329 return 0; 20330} 20331_ACEOF 20332if ac_fn_c_try_compile "$LINENO"; then : 20333 ax_compiler_ms=yes 20334else 20335 ax_compiler_ms=no 20336fi 20337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20338ax_cv_c_compiler_ms=$ax_compiler_ms 20339 20340fi 20341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 20342$as_echo "$ax_cv_c_compiler_ms" >&6; } 20343if test X$ax_compiler_ms = Xno; then : 20344 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 20345fi 20346 20347if test "X$no_x" != "Xyes"; then : 20348 if test -n "$x_includes"; then : 20349 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 20350fi 20351 if test -n "$x_libraries"; then : 20352 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 20353fi 20354fi 20355 20356ax_save_CPPFLAGS="${CPPFLAGS}" 20357CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20358for ac_header in GL/gl.h OpenGL/gl.h 20359do : 20360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20363 cat >>confdefs.h <<_ACEOF 20364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20365_ACEOF 20366 20367fi 20368 20369done 20370 20371CPPFLAGS="${ax_save_CPPFLAGS}" 20372 20373for ac_header in windows.h 20374do : 20375 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 20376if test "x$ac_cv_header_windows_h" = xyes; then : 20377 cat >>confdefs.h <<_ACEOF 20378#define HAVE_WINDOWS_H 1 20379_ACEOF 20380 20381fi 20382 20383done 20384 20385 20386 20387 20388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 20389$as_echo_n "checking for OpenGL library... " >&6; } 20390if ${ax_cv_check_gl_libgl+:} false; then : 20391 $as_echo_n "(cached) " >&6 20392else 20393 ax_cv_check_gl_libgl="no" 20394case $host_cpu in 20395 x86_64) ax_check_gl_libdir=lib64 ;; 20396 *) ax_check_gl_libdir=lib ;; 20397esac 20398ax_save_CPPFLAGS="${CPPFLAGS}" 20399CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20400ax_save_LIBS="${LIBS}" 20401LIBS="" 20402ax_check_libs="-lopengl32 -lGL" 20403for ax_lib in ${ax_check_libs}; do 20404 if test X$ax_compiler_ms = Xyes; then : 20405 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20406else 20407 ax_try_lib="${ax_lib}" 20408fi 20409 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20411/* end confdefs.h. */ 20412 20413# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20414# include <windows.h> 20415# endif 20416# ifdef HAVE_GL_GL_H 20417# include <GL/gl.h> 20418# elif defined(HAVE_OPENGL_GL_H) 20419# include <OpenGL/gl.h> 20420# else 20421# error no gl.h 20422# endif 20423int 20424main () 20425{ 20426glBegin(0) 20427 ; 20428 return 0; 20429} 20430_ACEOF 20431if ac_fn_c_try_link "$LINENO"; then : 20432 ax_cv_check_gl_libgl="${ax_try_lib}"; break 20433else 20434 ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" 20435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436/* end confdefs.h. */ 20437 20438# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20439# include <windows.h> 20440# endif 20441# ifdef HAVE_GL_GL_H 20442# include <GL/gl.h> 20443# elif defined(HAVE_OPENGL_GL_H) 20444# include <OpenGL/gl.h> 20445# else 20446# error no gl.h 20447# endif 20448int 20449main () 20450{ 20451glBegin(0) 20452 ; 20453 return 0; 20454} 20455_ACEOF 20456if ac_fn_c_try_link "$LINENO"; then : 20457 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 20458else 20459 ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" 20460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20461/* end confdefs.h. */ 20462 20463# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20464# include <windows.h> 20465# endif 20466# ifdef HAVE_GL_GL_H 20467# include <GL/gl.h> 20468# elif defined(HAVE_OPENGL_GL_H) 20469# include <OpenGL/gl.h> 20470# else 20471# error no gl.h 20472# endif 20473int 20474main () 20475{ 20476glBegin(0) 20477 ; 20478 return 0; 20479} 20480_ACEOF 20481if ac_fn_c_try_link "$LINENO"; then : 20482 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 20483fi 20484rm -f core conftest.err conftest.$ac_objext \ 20485 conftest$ac_exeext conftest.$ac_ext 20486fi 20487rm -f core conftest.err conftest.$ac_objext \ 20488 conftest$ac_exeext conftest.$ac_ext 20489fi 20490rm -f core conftest.err conftest.$ac_objext \ 20491 conftest$ac_exeext conftest.$ac_ext 20492done 20493 20494if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 20495 LIBS='-framework OpenGL' 20496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20497/* end confdefs.h. */ 20498 20499# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20500# include <windows.h> 20501# endif 20502# ifdef HAVE_GL_GL_H 20503# include <GL/gl.h> 20504# elif defined(HAVE_OPENGL_GL_H) 20505# include <OpenGL/gl.h> 20506# else 20507# error no gl.h 20508# endif 20509int 20510main () 20511{ 20512glBegin(0) 20513 ; 20514 return 0; 20515} 20516_ACEOF 20517if ac_fn_c_try_link "$LINENO"; then : 20518 ax_cv_check_gl_libgl="$LIBS" 20519fi 20520rm -f core conftest.err conftest.$ac_objext \ 20521 conftest$ac_exeext conftest.$ac_ext 20522fi 20523 20524LIBS=${ax_save_LIBS} 20525CPPFLAGS=${ax_save_CPPFLAGS} 20526fi 20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 20528$as_echo "$ax_cv_check_gl_libgl" >&6; } 20529 20530if test "X$ax_cv_check_gl_libgl" = Xno; then : 20531 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 20532else 20533 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 20534fi 20535ac_ext=c 20536ac_cpp='$CPP $CPPFLAGS' 20537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20539ac_compiler_gnu=$ac_cv_c_compiler_gnu 20540 20541 20542 20543 20544 20545 20546GLU_CFLAGS="${GL_CFLAGS}" 20547 20548ax_save_CPPFLAGS="${CPPFLAGS}" 20549CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20550for ac_header in GL/glu.h OpenGL/glu.h 20551do : 20552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20555 cat >>confdefs.h <<_ACEOF 20556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20557_ACEOF 20558 20559fi 20560 20561done 20562 20563CPPFLAGS="${ax_save_CPPFLAGS}" 20564 20565 20566 20567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 20568$as_echo_n "checking for OpenGL Utility library... " >&6; } 20569if ${ax_cv_check_glu_libglu+:} false; then : 20570 $as_echo_n "(cached) " >&6 20571else 20572 ax_cv_check_glu_libglu="no" 20573ax_save_CPPFLAGS="${CPPFLAGS}" 20574CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20575ax_save_LIBS="${LIBS}" 20576 20577LIBS="${GL_LIBS} ${ax_save_LIBS}" 20578ac_ext=cpp 20579ac_cpp='$CXXCPP $CPPFLAGS' 20580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20583 20584if test X$ax_compiler_ms = Xyes; then : 20585 ac_ext=c 20586ac_cpp='$CPP $CPPFLAGS' 20587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20589ac_compiler_gnu=$ac_cv_c_compiler_gnu 20590 20591fi 20592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20593/* end confdefs.h. */ 20594 20595# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20596# include <windows.h> 20597# endif 20598# ifdef HAVE_GL_GLU_H 20599# include <GL/glu.h> 20600# elif defined(HAVE_OPENGL_GLU_H) 20601# include <OpenGL/glu.h> 20602# else 20603# error no glu.h 20604# endif 20605int 20606main () 20607{ 20608gluBeginCurve(0) 20609 ; 20610 return 0; 20611} 20612_ACEOF 20613if ac_fn_c_try_link "$LINENO"; then : 20614 ax_cv_check_glu_libglu=yes 20615else 20616 LIBS="" 20617ax_check_libs="-lglu32 -lGLU" 20618for ax_lib in ${ax_check_libs}; do 20619 if test X$ax_compiler_ms = Xyes; then : 20620 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20621else 20622 ax_try_lib="${ax_lib}" 20623fi 20624 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20626/* end confdefs.h. */ 20627 20628# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20629# include <windows.h> 20630# endif 20631# ifdef HAVE_GL_GLU_H 20632# include <GL/glu.h> 20633# elif defined(HAVE_OPENGL_GLU_H) 20634# include <OpenGL/glu.h> 20635# else 20636# error no glu.h 20637# endif 20638int 20639main () 20640{ 20641gluBeginCurve(0) 20642 ; 20643 return 0; 20644} 20645_ACEOF 20646if ac_fn_c_try_link "$LINENO"; then : 20647 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20648fi 20649rm -f core conftest.err conftest.$ac_objext \ 20650 conftest$ac_exeext conftest.$ac_ext 20651done 20652 20653fi 20654rm -f core conftest.err conftest.$ac_objext \ 20655 conftest$ac_exeext conftest.$ac_ext 20656if test X$ax_compiler_ms = Xyes; then : 20657 ac_ext=cpp 20658ac_cpp='$CXXCPP $CPPFLAGS' 20659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20662 20663fi 20664ac_ext=c 20665ac_cpp='$CPP $CPPFLAGS' 20666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20668ac_compiler_gnu=$ac_cv_c_compiler_gnu 20669 20670 20671LIBS=${ax_save_LIBS} 20672CPPFLAGS=${ax_save_CPPFLAGS} 20673fi 20674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 20675$as_echo "$ax_cv_check_glu_libglu" >&6; } 20676if test "X$ax_cv_check_glu_libglu" = Xno; then : 20677 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 20678else 20679 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 20680 GLU_LIBS="$GL_LIBS" 20681else 20682 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 20683fi 20684fi 20685 20686 20687 20688if test "X$ax_cv_check_glu_libglu" != Xno; then : 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 20690$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 20691if ${ax_cv_varargs_glu_tesscb+:} false; then : 20692 $as_echo_n "(cached) " >&6 20693else 20694 ax_cv_varargs_glu_tesscb=no 20695ax_save_CFLAGS="$CFLAGS" 20696CFLAGS="$GL_CFLAGS $CFLAGS" 20697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20698/* end confdefs.h. */ 20699 20700# ifdef HAVE_GL_GLU_H 20701# include <GL/glu.h> 20702# else 20703# include <OpenGL/glu.h> 20704# endif 20705int 20706main () 20707{ 20708GLvoid (*func)(...); gluTessCallback(0, 0, func) 20709 ; 20710 return 0; 20711} 20712_ACEOF 20713if ac_fn_c_try_compile "$LINENO"; then : 20714 ax_cv_varargs_glu_tesscb=yes 20715fi 20716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20717CFLAGS="$ax_save_CFLAGS" 20718fi 20719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 20720$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 20721if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 20722 20723$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 20724 20725fi 20726fi 20727 20728 20729 20730ax_save_CPPFLAGS="${CPPFLAGS}" 20731CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 20732for ac_header in GL/glut.h GLUT/glut.h 20733do : 20734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20735ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20737 cat >>confdefs.h <<_ACEOF 20738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20739_ACEOF 20740 20741fi 20742 20743done 20744 20745CPPFLAGS="${ax_save_CPPFLAGS}" 20746 20747GLUT_CFLAGS=${GLU_CFLAGS} 20748GLUT_LIBS=${GLU_LIBS} 20749 20750 20751 20752if test X$no_x != Xyes; then : 20753 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 20754fi 20755 20756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 20757$as_echo_n "checking for GLUT library... " >&6; } 20758if ${ax_cv_check_glut_libglut+:} false; then : 20759 $as_echo_n "(cached) " >&6 20760else 20761 ax_cv_check_glut_libglut="no" 20762ac_ext=c 20763ac_cpp='$CPP $CPPFLAGS' 20764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20766ac_compiler_gnu=$ac_cv_c_compiler_gnu 20767 20768ax_save_CPPFLAGS="${CPPFLAGS}" 20769CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 20770ax_save_LIBS="${LIBS}" 20771LIBS="" 20772ax_check_libs="-lglut32 -lglut" 20773for ax_lib in ${ax_check_libs}; do 20774 if test X$ax_compiler_ms = Xyes; then : 20775 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20776else 20777 ax_try_lib="${ax_lib}" 20778fi 20779 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 20780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20781/* end confdefs.h. */ 20782 20783# if HAVE_WINDOWS_H && defined(_WIN32) 20784# include <windows.h> 20785# endif 20786# ifdef HAVE_GL_GLUT_H 20787# include <GL/glut.h> 20788# elif defined(HAVE_GLUT_GLUT_H) 20789# include <GLUT/glut.h> 20790# else 20791# error no glut.h 20792# endif 20793int 20794main () 20795{ 20796glutMainLoop() 20797 ; 20798 return 0; 20799} 20800_ACEOF 20801if ac_fn_c_try_link "$LINENO"; then : 20802 ax_cv_check_glut_libglut="${ax_try_lib}"; break 20803fi 20804rm -f core conftest.err conftest.$ac_objext \ 20805 conftest$ac_exeext conftest.$ac_ext 20806done 20807 20808if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 20809 LIBS='-framework GLUT' 20810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20811/* end confdefs.h. */ 20812 20813# if HAVE_WINDOWS_H && defined(_WIN32) 20814# include <windows.h> 20815# endif 20816# ifdef HAVE_GL_GLUT_H 20817# include <GL/glut.h> 20818# elif defined(HAVE_GLUT_GLUT_H) 20819# include <GLUT/glut.h> 20820# else 20821# error no glut.h 20822# endif 20823int 20824main () 20825{ 20826glutMainLoop() 20827 ; 20828 return 0; 20829} 20830_ACEOF 20831if ac_fn_c_try_link "$LINENO"; then : 20832 ax_cv_check_glut_libglut="$LIBS" 20833fi 20834rm -f core conftest.err conftest.$ac_objext \ 20835 conftest$ac_exeext conftest.$ac_ext 20836fi 20837 20838CPPFLAGS="${ax_save_CPPFLAGS}" 20839LIBS="${ax_save_LIBS}" 20840ac_ext=c 20841ac_cpp='$CPP $CPPFLAGS' 20842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20844ac_compiler_gnu=$ac_cv_c_compiler_gnu 20845 20846fi 20847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 20848$as_echo "$ax_cv_check_glut_libglut" >&6; } 20849 20850if test "X$ax_cv_check_glut_libglut" = Xno; then : 20851 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 20852else 20853 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 20854fi 20855 20856 20857 20858 20859 20860if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 20861 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 20862 HAVE_OPENGL=yes 20863fi 20864 20865 if test "$HAVE_OPENGL" = "yes"; then 20866 HAVE_OPENGL_TRUE= 20867 HAVE_OPENGL_FALSE='#' 20868else 20869 HAVE_OPENGL_TRUE='#' 20870 HAVE_OPENGL_FALSE= 20871fi 20872 20873 20874 20875# Check whether --enable-win32-io was given. 20876if test "${enable_win32_io+set}" = set; then : 20877 enableval=$enable_win32_io; 20878fi 20879 20880 20881win32_io_ok=no 20882case "${host_os}" in 20883 cygwin*) 20884 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then 20885 win32_io_ok=yes 20886 fi 20887 ;; 20888 *) 20889 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then 20890 win32_io_ok=yes 20891 fi 20892 ;; 20893esac 20894 20895if test "$win32_io_ok" = "yes" ; then 20896 20897$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 20898 20899fi 20900 20901 if test "$win32_io_ok" = yes; then 20902 WIN32_IO_TRUE= 20903 WIN32_IO_FALSE='#' 20904else 20905 WIN32_IO_TRUE='#' 20906 WIN32_IO_FALSE= 20907fi 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917# Check whether --enable-strip-chopping was given. 20918if test "${enable_strip_chopping+set}" = set; then : 20919 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 20920else 20921 HAVE_STRIPCHOP=yes 20922fi 20923 20924 20925# Check whether --with-default-strip-size was given. 20926if test "${with_default_strip_size+set}" = set; then : 20927 withval=$with_default_strip_size; 20928fi 20929 20930 20931if test "$HAVE_STRIPCHOP" = "yes" \ 20932 -a "x$with_default_strip_size" != "xno"; then 20933 20934$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 20935 20936 20937 if test "x$with_default_strip_size" = "x" \ 20938 -o "x$with_default_strip_size" = "xyes"; then 20939 with_default_strip_size="8192" 20940 fi 20941 20942 20943cat >>confdefs.h <<_ACEOF 20944#define STRIP_SIZE_DEFAULT $with_default_strip_size 20945_ACEOF 20946 20947 20948fi 20949 20950 20951# Check whether --enable-defer-strile-load was given. 20952if test "${enable_defer_strile_load+set}" = set; then : 20953 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20954else 20955 HAVE_DEFER_STRILE_LOAD=no 20956fi 20957 20958 20959if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20960 20961$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20962 20963 20964fi 20965 20966 20967# Check whether --enable-chunky-strip-read was given. 20968if test "${enable_chunky_strip_read+set}" = set; then : 20969 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20970else 20971 HAVE_CHUNKY_STRIP_READ=no 20972fi 20973 20974 20975if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20976 20977$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20978 20979 20980fi 20981 20982 20983$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20984 20985 20986 20987# Check whether --enable-extrasample-as-alpha was given. 20988if test "${enable_extrasample_as_alpha+set}" = set; then : 20989 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20990else 20991 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20992fi 20993 20994 20995if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20996 20997$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20998 20999fi 21000 21001 21002# Check whether --enable-check-ycbcr-subsampling was given. 21003if test "${enable_check_ycbcr_subsampling+set}" = set; then : 21004 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 21005else 21006 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 21007fi 21008 21009 21010if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 21011 21012$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 21013 21014fi 21015 21016 21017 21018 21019ac_config_headers="$ac_config_headers config.h libtiff/tif_config.h libtiff/tiffconf.h port/libport_config.h" 21020 21021 21022ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff-4.pc libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile" 21023 21024cat >confcache <<\_ACEOF 21025# This file is a shell script that caches the results of configure 21026# tests run on this system so they can be shared between configure 21027# scripts and configure runs, see configure's option --config-cache. 21028# It is not useful on other systems. If it contains results you don't 21029# want to keep, you may remove or edit it. 21030# 21031# config.status only pays attention to the cache file if you give it 21032# the --recheck option to rerun configure. 21033# 21034# `ac_cv_env_foo' variables (set or unset) will be overridden when 21035# loading this file, other *unset* `ac_cv_foo' will be assigned the 21036# following values. 21037 21038_ACEOF 21039 21040# The following way of writing the cache mishandles newlines in values, 21041# but we know of no workaround that is simple, portable, and efficient. 21042# So, we kill variables containing newlines. 21043# Ultrix sh set writes to stderr and can't be redirected directly, 21044# and sets the high bit in the cache file unless we assign to the vars. 21045( 21046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21047 eval ac_val=\$$ac_var 21048 case $ac_val in #( 21049 *${as_nl}*) 21050 case $ac_var in #( 21051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21053 esac 21054 case $ac_var in #( 21055 _ | IFS | as_nl) ;; #( 21056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21057 *) { eval $ac_var=; unset $ac_var;} ;; 21058 esac ;; 21059 esac 21060 done 21061 21062 (set) 2>&1 | 21063 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21064 *${as_nl}ac_space=\ *) 21065 # `set' does not quote correctly, so add quotes: double-quote 21066 # substitution turns \\\\ into \\, and sed turns \\ into \. 21067 sed -n \ 21068 "s/'/'\\\\''/g; 21069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21070 ;; #( 21071 *) 21072 # `set' quotes correctly as required by POSIX, so do not add quotes. 21073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21074 ;; 21075 esac | 21076 sort 21077) | 21078 sed ' 21079 /^ac_cv_env_/b end 21080 t clear 21081 :clear 21082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21083 t end 21084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21085 :end' >>confcache 21086if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21087 if test -w "$cache_file"; then 21088 if test "x$cache_file" != "x/dev/null"; then 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21090$as_echo "$as_me: updating cache $cache_file" >&6;} 21091 if test ! -f "$cache_file" || test -h "$cache_file"; then 21092 cat confcache >"$cache_file" 21093 else 21094 case $cache_file in #( 21095 */* | ?:*) 21096 mv -f confcache "$cache_file"$$ && 21097 mv -f "$cache_file"$$ "$cache_file" ;; #( 21098 *) 21099 mv -f confcache "$cache_file" ;; 21100 esac 21101 fi 21102 fi 21103 else 21104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21105$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21106 fi 21107fi 21108rm -f confcache 21109 21110test "x$prefix" = xNONE && prefix=$ac_default_prefix 21111# Let make expand exec_prefix. 21112test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21113 21114DEFS=-DHAVE_CONFIG_H 21115 21116ac_libobjs= 21117ac_ltlibobjs= 21118U= 21119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21120 # 1. Remove the extension, and $U if already installed. 21121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21122 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21124 # will be set to the directory where LIBOBJS objects are built. 21125 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21126 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21127done 21128LIBOBJS=$ac_libobjs 21129 21130LTLIBOBJS=$ac_ltlibobjs 21131 21132 21133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21134$as_echo_n "checking that generated files are newer than configure... " >&6; } 21135 if test -n "$am_sleep_pid"; then 21136 # Hide warnings about reused PIDs. 21137 wait $am_sleep_pid 2>/dev/null 21138 fi 21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21140$as_echo "done" >&6; } 21141 if test -n "$EXEEXT"; then 21142 am__EXEEXT_TRUE= 21143 am__EXEEXT_FALSE='#' 21144else 21145 am__EXEEXT_TRUE='#' 21146 am__EXEEXT_FALSE= 21147fi 21148 21149if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21150 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 21151Usually this means the macro was only invoked conditionally." "$LINENO" 5 21152fi 21153if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21154 as_fn_error $? "conditional \"AMDEP\" was never defined. 21155Usually this means the macro was only invoked conditionally." "$LINENO" 5 21156fi 21157if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21158 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21159Usually this means the macro was only invoked conditionally." "$LINENO" 5 21160fi 21161if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 21162 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 21163Usually this means the macro was only invoked conditionally." "$LINENO" 5 21164fi 21165if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21167Usually this means the macro was only invoked conditionally." "$LINENO" 5 21168fi 21169 21170if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 21171 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 21172Usually this means the macro was only invoked conditionally." "$LINENO" 5 21173fi 21174if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then 21175 as_fn_error $? "conditional \"HAVE_JPEG\" was never defined. 21176Usually this means the macro was only invoked conditionally." "$LINENO" 5 21177fi 21178if test -z "${HAVE_JBIG_TRUE}" && test -z "${HAVE_JBIG_FALSE}"; then 21179 as_fn_error $? "conditional \"HAVE_JBIG\" was never defined. 21180Usually this means the macro was only invoked conditionally." "$LINENO" 5 21181fi 21182if test -z "${HAVE_LERC_TRUE}" && test -z "${HAVE_LERC_FALSE}"; then 21183 as_fn_error $? "conditional \"HAVE_LERC\" was never defined. 21184Usually this means the macro was only invoked conditionally." "$LINENO" 5 21185fi 21186if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then 21187 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined. 21188Usually this means the macro was only invoked conditionally." "$LINENO" 5 21189fi 21190if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then 21191 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined. 21192Usually this means the macro was only invoked conditionally." "$LINENO" 5 21193fi 21194if test -z "${HAVE_WEBP_TRUE}" && test -z "${HAVE_WEBP_FALSE}"; then 21195 as_fn_error $? "conditional \"HAVE_WEBP\" was never defined. 21196Usually this means the macro was only invoked conditionally." "$LINENO" 5 21197fi 21198if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 21199 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 21200Usually this means the macro was only invoked conditionally." "$LINENO" 5 21201fi 21202if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 21203 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 21204Usually this means the macro was only invoked conditionally." "$LINENO" 5 21205fi 21206if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 21207 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 21208Usually this means the macro was only invoked conditionally." "$LINENO" 5 21209fi 21210 21211: "${CONFIG_STATUS=./config.status}" 21212ac_write_fail=0 21213ac_clean_files_save=$ac_clean_files 21214ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21215{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21216$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21217as_write_fail=0 21218cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21219#! $SHELL 21220# Generated by $as_me. 21221# Run this file to recreate the current configuration. 21222# Compiler output produced by configure, useful for debugging 21223# configure, is in config.log if it exists. 21224 21225debug=false 21226ac_cs_recheck=false 21227ac_cs_silent=false 21228 21229SHELL=\${CONFIG_SHELL-$SHELL} 21230export SHELL 21231_ASEOF 21232cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21233## -------------------- ## 21234## M4sh Initialization. ## 21235## -------------------- ## 21236 21237# Be more Bourne compatible 21238DUALCASE=1; export DUALCASE # for MKS sh 21239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21240 emulate sh 21241 NULLCMD=: 21242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21243 # is contrary to our usage. Disable this feature. 21244 alias -g '${1+"$@"}'='"$@"' 21245 setopt NO_GLOB_SUBST 21246else 21247 case `(set -o) 2>/dev/null` in #( 21248 *posix*) : 21249 set -o posix ;; #( 21250 *) : 21251 ;; 21252esac 21253fi 21254 21255 21256as_nl=' 21257' 21258export as_nl 21259# Printing a long string crashes Solaris 7 /usr/bin/printf. 21260as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21263# Prefer a ksh shell builtin over an external printf program on Solaris, 21264# but without wasting forks for bash or zsh. 21265if test -z "$BASH_VERSION$ZSH_VERSION" \ 21266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21267 as_echo='print -r --' 21268 as_echo_n='print -rn --' 21269elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21270 as_echo='printf %s\n' 21271 as_echo_n='printf %s' 21272else 21273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21275 as_echo_n='/usr/ucb/echo -n' 21276 else 21277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21278 as_echo_n_body='eval 21279 arg=$1; 21280 case $arg in #( 21281 *"$as_nl"*) 21282 expr "X$arg" : "X\\(.*\\)$as_nl"; 21283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21284 esac; 21285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21286 ' 21287 export as_echo_n_body 21288 as_echo_n='sh -c $as_echo_n_body as_echo' 21289 fi 21290 export as_echo_body 21291 as_echo='sh -c $as_echo_body as_echo' 21292fi 21293 21294# The user is always right. 21295if test "${PATH_SEPARATOR+set}" != set; then 21296 PATH_SEPARATOR=: 21297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21299 PATH_SEPARATOR=';' 21300 } 21301fi 21302 21303 21304# IFS 21305# We need space, tab and new line, in precisely that order. Quoting is 21306# there to prevent editors from complaining about space-tab. 21307# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21308# splitting by setting IFS to empty value.) 21309IFS=" "" $as_nl" 21310 21311# Find who we are. Look in the path if we contain no directory separator. 21312as_myself= 21313case $0 in #(( 21314 *[\\/]* ) as_myself=$0 ;; 21315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21316for as_dir in $PATH 21317do 21318 IFS=$as_save_IFS 21319 test -z "$as_dir" && as_dir=. 21320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21321 done 21322IFS=$as_save_IFS 21323 21324 ;; 21325esac 21326# We did not find ourselves, most probably we were run as `sh COMMAND' 21327# in which case we are not to be found in the path. 21328if test "x$as_myself" = x; then 21329 as_myself=$0 21330fi 21331if test ! -f "$as_myself"; then 21332 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21333 exit 1 21334fi 21335 21336# Unset variables that we do not need and which cause bugs (e.g. in 21337# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21338# suppresses any "Segmentation fault" message there. '((' could 21339# trigger a bug in pdksh 5.2.14. 21340for as_var in BASH_ENV ENV MAIL MAILPATH 21341do eval test x\${$as_var+set} = xset \ 21342 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21343done 21344PS1='$ ' 21345PS2='> ' 21346PS4='+ ' 21347 21348# NLS nuisances. 21349LC_ALL=C 21350export LC_ALL 21351LANGUAGE=C 21352export LANGUAGE 21353 21354# CDPATH. 21355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21356 21357 21358# as_fn_error STATUS ERROR [LINENO LOG_FD] 21359# ---------------------------------------- 21360# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21361# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21362# script with STATUS, using 1 if that was 0. 21363as_fn_error () 21364{ 21365 as_status=$1; test $as_status -eq 0 && as_status=1 21366 if test "$4"; then 21367 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21369 fi 21370 $as_echo "$as_me: error: $2" >&2 21371 as_fn_exit $as_status 21372} # as_fn_error 21373 21374 21375# as_fn_set_status STATUS 21376# ----------------------- 21377# Set $? to STATUS, without forking. 21378as_fn_set_status () 21379{ 21380 return $1 21381} # as_fn_set_status 21382 21383# as_fn_exit STATUS 21384# ----------------- 21385# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21386as_fn_exit () 21387{ 21388 set +e 21389 as_fn_set_status $1 21390 exit $1 21391} # as_fn_exit 21392 21393# as_fn_unset VAR 21394# --------------- 21395# Portably unset VAR. 21396as_fn_unset () 21397{ 21398 { eval $1=; unset $1;} 21399} 21400as_unset=as_fn_unset 21401# as_fn_append VAR VALUE 21402# ---------------------- 21403# Append the text in VALUE to the end of the definition contained in VAR. Take 21404# advantage of any shell optimizations that allow amortized linear growth over 21405# repeated appends, instead of the typical quadratic growth present in naive 21406# implementations. 21407if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21408 eval 'as_fn_append () 21409 { 21410 eval $1+=\$2 21411 }' 21412else 21413 as_fn_append () 21414 { 21415 eval $1=\$$1\$2 21416 } 21417fi # as_fn_append 21418 21419# as_fn_arith ARG... 21420# ------------------ 21421# Perform arithmetic evaluation on the ARGs, and store the result in the 21422# global $as_val. Take advantage of shells that can avoid forks. The arguments 21423# must be portable across $(()) and expr. 21424if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21425 eval 'as_fn_arith () 21426 { 21427 as_val=$(( $* )) 21428 }' 21429else 21430 as_fn_arith () 21431 { 21432 as_val=`expr "$@" || test $? -eq 1` 21433 } 21434fi # as_fn_arith 21435 21436 21437if expr a : '\(a\)' >/dev/null 2>&1 && 21438 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21439 as_expr=expr 21440else 21441 as_expr=false 21442fi 21443 21444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21445 as_basename=basename 21446else 21447 as_basename=false 21448fi 21449 21450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21451 as_dirname=dirname 21452else 21453 as_dirname=false 21454fi 21455 21456as_me=`$as_basename -- "$0" || 21457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21458 X"$0" : 'X\(//\)$' \| \ 21459 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21460$as_echo X/"$0" | 21461 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21462 s//\1/ 21463 q 21464 } 21465 /^X\/\(\/\/\)$/{ 21466 s//\1/ 21467 q 21468 } 21469 /^X\/\(\/\).*/{ 21470 s//\1/ 21471 q 21472 } 21473 s/.*/./; q'` 21474 21475# Avoid depending upon Character Ranges. 21476as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21478as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21479as_cr_digits='0123456789' 21480as_cr_alnum=$as_cr_Letters$as_cr_digits 21481 21482ECHO_C= ECHO_N= ECHO_T= 21483case `echo -n x` in #((((( 21484-n*) 21485 case `echo 'xy\c'` in 21486 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21487 xy) ECHO_C='\c';; 21488 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21489 ECHO_T=' ';; 21490 esac;; 21491*) 21492 ECHO_N='-n';; 21493esac 21494 21495rm -f conf$$ conf$$.exe conf$$.file 21496if test -d conf$$.dir; then 21497 rm -f conf$$.dir/conf$$.file 21498else 21499 rm -f conf$$.dir 21500 mkdir conf$$.dir 2>/dev/null 21501fi 21502if (echo >conf$$.file) 2>/dev/null; then 21503 if ln -s conf$$.file conf$$ 2>/dev/null; then 21504 as_ln_s='ln -s' 21505 # ... but there are two gotchas: 21506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21508 # In both cases, we have to default to `cp -pR'. 21509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21510 as_ln_s='cp -pR' 21511 elif ln conf$$.file conf$$ 2>/dev/null; then 21512 as_ln_s=ln 21513 else 21514 as_ln_s='cp -pR' 21515 fi 21516else 21517 as_ln_s='cp -pR' 21518fi 21519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21520rmdir conf$$.dir 2>/dev/null 21521 21522 21523# as_fn_mkdir_p 21524# ------------- 21525# Create "$as_dir" as a directory, including parents if necessary. 21526as_fn_mkdir_p () 21527{ 21528 21529 case $as_dir in #( 21530 -*) as_dir=./$as_dir;; 21531 esac 21532 test -d "$as_dir" || eval $as_mkdir_p || { 21533 as_dirs= 21534 while :; do 21535 case $as_dir in #( 21536 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21537 *) as_qdir=$as_dir;; 21538 esac 21539 as_dirs="'$as_qdir' $as_dirs" 21540 as_dir=`$as_dirname -- "$as_dir" || 21541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21542 X"$as_dir" : 'X\(//\)[^/]' \| \ 21543 X"$as_dir" : 'X\(//\)$' \| \ 21544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21545$as_echo X"$as_dir" | 21546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21547 s//\1/ 21548 q 21549 } 21550 /^X\(\/\/\)[^/].*/{ 21551 s//\1/ 21552 q 21553 } 21554 /^X\(\/\/\)$/{ 21555 s//\1/ 21556 q 21557 } 21558 /^X\(\/\).*/{ 21559 s//\1/ 21560 q 21561 } 21562 s/.*/./; q'` 21563 test -d "$as_dir" && break 21564 done 21565 test -z "$as_dirs" || eval "mkdir $as_dirs" 21566 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21567 21568 21569} # as_fn_mkdir_p 21570if mkdir -p . 2>/dev/null; then 21571 as_mkdir_p='mkdir -p "$as_dir"' 21572else 21573 test -d ./-p && rmdir ./-p 21574 as_mkdir_p=false 21575fi 21576 21577 21578# as_fn_executable_p FILE 21579# ----------------------- 21580# Test if FILE is an executable regular file. 21581as_fn_executable_p () 21582{ 21583 test -f "$1" && test -x "$1" 21584} # as_fn_executable_p 21585as_test_x='test -x' 21586as_executable_p=as_fn_executable_p 21587 21588# Sed expression to map a string onto a valid CPP name. 21589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21590 21591# Sed expression to map a string onto a valid variable name. 21592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21593 21594 21595exec 6>&1 21596## ----------------------------------- ## 21597## Main body of $CONFIG_STATUS script. ## 21598## ----------------------------------- ## 21599_ASEOF 21600test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21601 21602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21603# Save the log message, to keep $0 and so on meaningful, and to 21604# report actual input values of CONFIG_FILES etc. instead of their 21605# values after options handling. 21606ac_log=" 21607This file was extended by LibTIFF Software $as_me 4.3.0, which was 21608generated by GNU Autoconf 2.69. Invocation command line was 21609 21610 CONFIG_FILES = $CONFIG_FILES 21611 CONFIG_HEADERS = $CONFIG_HEADERS 21612 CONFIG_LINKS = $CONFIG_LINKS 21613 CONFIG_COMMANDS = $CONFIG_COMMANDS 21614 $ $0 $@ 21615 21616on `(hostname || uname -n) 2>/dev/null | sed 1q` 21617" 21618 21619_ACEOF 21620 21621case $ac_config_files in *" 21622"*) set x $ac_config_files; shift; ac_config_files=$*;; 21623esac 21624 21625case $ac_config_headers in *" 21626"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21627esac 21628 21629 21630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21631# Files that config.status was made for. 21632config_files="$ac_config_files" 21633config_headers="$ac_config_headers" 21634config_commands="$ac_config_commands" 21635 21636_ACEOF 21637 21638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21639ac_cs_usage="\ 21640\`$as_me' instantiates files and other configuration actions 21641from templates according to the current configuration. Unless the files 21642and actions are specified as TAGs, all are instantiated by default. 21643 21644Usage: $0 [OPTION]... [TAG]... 21645 21646 -h, --help print this help, then exit 21647 -V, --version print version number and configuration settings, then exit 21648 --config print configuration, then exit 21649 -q, --quiet, --silent 21650 do not print progress messages 21651 -d, --debug don't remove temporary files 21652 --recheck update $as_me by reconfiguring in the same conditions 21653 --file=FILE[:TEMPLATE] 21654 instantiate the configuration file FILE 21655 --header=FILE[:TEMPLATE] 21656 instantiate the configuration header FILE 21657 21658Configuration files: 21659$config_files 21660 21661Configuration headers: 21662$config_headers 21663 21664Configuration commands: 21665$config_commands 21666 21667Report bugs to <tiff@lists.maptools.org>." 21668 21669_ACEOF 21670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21671ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21672ac_cs_version="\\ 21673LibTIFF Software config.status 4.3.0 21674configured by $0, generated by GNU Autoconf 2.69, 21675 with options \\"\$ac_cs_config\\" 21676 21677Copyright (C) 2012 Free Software Foundation, Inc. 21678This config.status script is free software; the Free Software Foundation 21679gives unlimited permission to copy, distribute and modify it." 21680 21681ac_pwd='$ac_pwd' 21682srcdir='$srcdir' 21683INSTALL='$INSTALL' 21684MKDIR_P='$MKDIR_P' 21685AWK='$AWK' 21686test -n "\$AWK" || AWK=awk 21687_ACEOF 21688 21689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21690# The default lists apply if the user does not specify any file. 21691ac_need_defaults=: 21692while test $# != 0 21693do 21694 case $1 in 21695 --*=?*) 21696 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21698 ac_shift=: 21699 ;; 21700 --*=) 21701 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21702 ac_optarg= 21703 ac_shift=: 21704 ;; 21705 *) 21706 ac_option=$1 21707 ac_optarg=$2 21708 ac_shift=shift 21709 ;; 21710 esac 21711 21712 case $ac_option in 21713 # Handling of the options. 21714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21715 ac_cs_recheck=: ;; 21716 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21717 $as_echo "$ac_cs_version"; exit ;; 21718 --config | --confi | --conf | --con | --co | --c ) 21719 $as_echo "$ac_cs_config"; exit ;; 21720 --debug | --debu | --deb | --de | --d | -d ) 21721 debug=: ;; 21722 --file | --fil | --fi | --f ) 21723 $ac_shift 21724 case $ac_optarg in 21725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21726 '') as_fn_error $? "missing file argument" ;; 21727 esac 21728 as_fn_append CONFIG_FILES " '$ac_optarg'" 21729 ac_need_defaults=false;; 21730 --header | --heade | --head | --hea ) 21731 $ac_shift 21732 case $ac_optarg in 21733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21734 esac 21735 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21736 ac_need_defaults=false;; 21737 --he | --h) 21738 # Conflict between --help and --header 21739 as_fn_error $? "ambiguous option: \`$1' 21740Try \`$0 --help' for more information.";; 21741 --help | --hel | -h ) 21742 $as_echo "$ac_cs_usage"; exit ;; 21743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21744 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21745 ac_cs_silent=: ;; 21746 21747 # This is an error. 21748 -*) as_fn_error $? "unrecognized option: \`$1' 21749Try \`$0 --help' for more information." ;; 21750 21751 *) as_fn_append ac_config_targets " $1" 21752 ac_need_defaults=false ;; 21753 21754 esac 21755 shift 21756done 21757 21758ac_configure_extra_args= 21759 21760if $ac_cs_silent; then 21761 exec 6>/dev/null 21762 ac_configure_extra_args="$ac_configure_extra_args --silent" 21763fi 21764 21765_ACEOF 21766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21767if \$ac_cs_recheck; then 21768 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21769 shift 21770 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21771 CONFIG_SHELL='$SHELL' 21772 export CONFIG_SHELL 21773 exec "\$@" 21774fi 21775 21776_ACEOF 21777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21778exec 5>>config.log 21779{ 21780 echo 21781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21782## Running $as_me. ## 21783_ASBOX 21784 $as_echo "$ac_log" 21785} >&5 21786 21787_ACEOF 21788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21789# 21790# INIT-COMMANDS 21791# 21792AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21793 21794 21795# The HP-UX ksh and POSIX shell print the target directory to stdout 21796# if CDPATH is set. 21797(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21798 21799sed_quote_subst='$sed_quote_subst' 21800double_quote_subst='$double_quote_subst' 21801delay_variable_subst='$delay_variable_subst' 21802macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21803macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21804AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21805DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21806OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21807enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21808enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21809pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21810enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21811shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21812SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21813ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21814PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21821SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21822Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21823GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21824EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21825FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21826LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21827NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21828LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21829max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21830ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21831exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21832lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21833lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21834lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21835lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21836lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21837reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21838reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21839deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21840file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21841file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21842want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21843sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21844AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21845AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21846archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21847STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21848RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21849old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21850old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21851old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21852lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21853CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21854CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21855compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21856GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21857lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21858lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21859lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21860lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21861lt_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"`' 21862lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21863nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21864lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21865lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21866objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21867MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21868lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21869lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21870lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21871lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21872lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21873need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21874MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21875DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21876NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21877LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21878OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21879OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21880libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21881shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21882extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21883archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21884enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21885export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21886whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21887compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21888old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21889old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21890archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21891archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21892module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21893module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21894with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21895allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21896no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21897hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21898hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21899hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21900hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21901hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21902hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21903hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21904inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21905link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21906always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21907export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21908exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21909include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21910prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21911postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21912file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21913variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21914need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21915need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21916version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21917runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21918shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21919shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21920libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21921library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21922soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21923install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21924postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21925postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21926finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21927finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21928hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21929sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21930configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21931configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21932hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21933enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21934enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21935enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21936old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21937striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21938compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21939predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21940postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21941predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21942postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21943compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21944LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21945reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21946reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21947old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21948compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21949GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21950lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21951lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21952lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21953lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21954lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21955archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21956enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21957export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21958whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21959compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21960old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21961old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21962archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21963archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21964module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21965module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21966with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21967allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21968no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21969hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21970hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21971hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21972hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21973hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21974hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21975hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21976inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21977link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21978always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21979export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21980exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21981include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21982prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21983postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21984file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21985hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21986compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21987predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21988postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21989predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21990postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21991compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21992 21993LTCC='$LTCC' 21994LTCFLAGS='$LTCFLAGS' 21995compiler='$compiler_DEFAULT' 21996 21997# A function that is used when there is no print builtin or printf. 21998func_fallback_echo () 21999{ 22000 eval 'cat <<_LTECHO_EOF 22001\$1 22002_LTECHO_EOF' 22003} 22004 22005# Quote evaled strings. 22006for var in AS \ 22007DLLTOOL \ 22008OBJDUMP \ 22009SHELL \ 22010ECHO \ 22011PATH_SEPARATOR \ 22012SED \ 22013GREP \ 22014EGREP \ 22015FGREP \ 22016LD \ 22017NM \ 22018LN_S \ 22019lt_SP2NL \ 22020lt_NL2SP \ 22021reload_flag \ 22022deplibs_check_method \ 22023file_magic_cmd \ 22024file_magic_glob \ 22025want_nocaseglob \ 22026sharedlib_from_linklib_cmd \ 22027AR \ 22028AR_FLAGS \ 22029archiver_list_spec \ 22030STRIP \ 22031RANLIB \ 22032CC \ 22033CFLAGS \ 22034compiler \ 22035lt_cv_sys_global_symbol_pipe \ 22036lt_cv_sys_global_symbol_to_cdecl \ 22037lt_cv_sys_global_symbol_to_import \ 22038lt_cv_sys_global_symbol_to_c_name_address \ 22039lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22040lt_cv_nm_interface \ 22041nm_file_list_spec \ 22042lt_cv_truncate_bin \ 22043lt_prog_compiler_no_builtin_flag \ 22044lt_prog_compiler_pic \ 22045lt_prog_compiler_wl \ 22046lt_prog_compiler_static \ 22047lt_cv_prog_compiler_c_o \ 22048need_locks \ 22049MANIFEST_TOOL \ 22050DSYMUTIL \ 22051NMEDIT \ 22052LIPO \ 22053OTOOL \ 22054OTOOL64 \ 22055shrext_cmds \ 22056export_dynamic_flag_spec \ 22057whole_archive_flag_spec \ 22058compiler_needs_object \ 22059with_gnu_ld \ 22060allow_undefined_flag \ 22061no_undefined_flag \ 22062hardcode_libdir_flag_spec \ 22063hardcode_libdir_separator \ 22064exclude_expsyms \ 22065include_expsyms \ 22066file_list_spec \ 22067variables_saved_for_relink \ 22068libname_spec \ 22069library_names_spec \ 22070soname_spec \ 22071install_override_mode \ 22072finish_eval \ 22073old_striplib \ 22074striplib \ 22075compiler_lib_search_dirs \ 22076predep_objects \ 22077postdep_objects \ 22078predeps \ 22079postdeps \ 22080compiler_lib_search_path \ 22081LD_CXX \ 22082reload_flag_CXX \ 22083compiler_CXX \ 22084lt_prog_compiler_no_builtin_flag_CXX \ 22085lt_prog_compiler_pic_CXX \ 22086lt_prog_compiler_wl_CXX \ 22087lt_prog_compiler_static_CXX \ 22088lt_cv_prog_compiler_c_o_CXX \ 22089export_dynamic_flag_spec_CXX \ 22090whole_archive_flag_spec_CXX \ 22091compiler_needs_object_CXX \ 22092with_gnu_ld_CXX \ 22093allow_undefined_flag_CXX \ 22094no_undefined_flag_CXX \ 22095hardcode_libdir_flag_spec_CXX \ 22096hardcode_libdir_separator_CXX \ 22097exclude_expsyms_CXX \ 22098include_expsyms_CXX \ 22099file_list_spec_CXX \ 22100compiler_lib_search_dirs_CXX \ 22101predep_objects_CXX \ 22102postdep_objects_CXX \ 22103predeps_CXX \ 22104postdeps_CXX \ 22105compiler_lib_search_path_CXX; do 22106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22107 *[\\\\\\\`\\"\\\$]*) 22108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22109 ;; 22110 *) 22111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22112 ;; 22113 esac 22114done 22115 22116# Double-quote double-evaled strings. 22117for var in reload_cmds \ 22118old_postinstall_cmds \ 22119old_postuninstall_cmds \ 22120old_archive_cmds \ 22121extract_expsyms_cmds \ 22122old_archive_from_new_cmds \ 22123old_archive_from_expsyms_cmds \ 22124archive_cmds \ 22125archive_expsym_cmds \ 22126module_cmds \ 22127module_expsym_cmds \ 22128export_symbols_cmds \ 22129prelink_cmds \ 22130postlink_cmds \ 22131postinstall_cmds \ 22132postuninstall_cmds \ 22133finish_cmds \ 22134sys_lib_search_path_spec \ 22135configure_time_dlsearch_path \ 22136configure_time_lt_sys_library_path \ 22137reload_cmds_CXX \ 22138old_archive_cmds_CXX \ 22139old_archive_from_new_cmds_CXX \ 22140old_archive_from_expsyms_cmds_CXX \ 22141archive_cmds_CXX \ 22142archive_expsym_cmds_CXX \ 22143module_cmds_CXX \ 22144module_expsym_cmds_CXX \ 22145export_symbols_cmds_CXX \ 22146prelink_cmds_CXX \ 22147postlink_cmds_CXX; do 22148 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22149 *[\\\\\\\`\\"\\\$]*) 22150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22151 ;; 22152 *) 22153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22154 ;; 22155 esac 22156done 22157 22158ac_aux_dir='$ac_aux_dir' 22159 22160# See if we are running on zsh, and set the options that allow our 22161# commands through without removal of \ escapes INIT. 22162if test -n "\${ZSH_VERSION+set}"; then 22163 setopt NO_GLOB_SUBST 22164fi 22165 22166 22167 PACKAGE='$PACKAGE' 22168 VERSION='$VERSION' 22169 RM='$RM' 22170 ofile='$ofile' 22171 22172 22173 22174 22175 22176 22177_ACEOF 22178 22179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22180 22181# Handling of arguments. 22182for ac_config_target in $ac_config_targets 22183do 22184 case $ac_config_target in 22185 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22186 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22187 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22188 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 22189 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 22190 "port/libport_config.h") CONFIG_HEADERS="$CONFIG_HEADERS port/libport_config.h" ;; 22191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22192 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 22193 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 22194 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 22195 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 22196 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 22197 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 22198 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 22199 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 22200 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 22201 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 22202 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 22203 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 22204 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 22205 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 22206 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 22207 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 22208 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 22209 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22210 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 22211 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22212 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22213 22214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22215 esac 22216done 22217 22218 22219# If the user did not use the arguments to specify the items to instantiate, 22220# then the envvar interface is used. Set only those that are not. 22221# We use the long form for the default assignment because of an extremely 22222# bizarre bug on SunOS 4.1.3. 22223if $ac_need_defaults; then 22224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22227fi 22228 22229# Have a temporary directory for convenience. Make it in the build tree 22230# simply because there is no reason against having it here, and in addition, 22231# creating and moving files from /tmp can sometimes cause problems. 22232# Hook for its removal unless debugging. 22233# Note that there is a small window in which the directory will not be cleaned: 22234# after its creation but before its name has been assigned to `$tmp'. 22235$debug || 22236{ 22237 tmp= ac_tmp= 22238 trap 'exit_status=$? 22239 : "${ac_tmp:=$tmp}" 22240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22241' 0 22242 trap 'as_fn_exit 1' 1 2 13 15 22243} 22244# Create a (secure) tmp directory for tmp files. 22245 22246{ 22247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22248 test -d "$tmp" 22249} || 22250{ 22251 tmp=./conf$$-$RANDOM 22252 (umask 077 && mkdir "$tmp") 22253} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22254ac_tmp=$tmp 22255 22256# Set up the scripts for CONFIG_FILES section. 22257# No need to generate them if there are no CONFIG_FILES. 22258# This happens for instance with `./config.status config.h'. 22259if test -n "$CONFIG_FILES"; then 22260 22261 22262ac_cr=`echo X | tr X '\015'` 22263# On cygwin, bash can eat \r inside `` if the user requested igncr. 22264# But we know of no other shell where ac_cr would be empty at this 22265# point, so we can use a bashism as a fallback. 22266if test "x$ac_cr" = x; then 22267 eval ac_cr=\$\'\\r\' 22268fi 22269ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22270if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22271 ac_cs_awk_cr='\\r' 22272else 22273 ac_cs_awk_cr=$ac_cr 22274fi 22275 22276echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22277_ACEOF 22278 22279 22280{ 22281 echo "cat >conf$$subs.awk <<_ACEOF" && 22282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22283 echo "_ACEOF" 22284} >conf$$subs.sh || 22285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22286ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22287ac_delim='%!_!# ' 22288for ac_last_try in false false false false false :; do 22289 . ./conf$$subs.sh || 22290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22291 22292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22293 if test $ac_delim_n = $ac_delim_num; then 22294 break 22295 elif $ac_last_try; then 22296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22297 else 22298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22299 fi 22300done 22301rm -f conf$$subs.sh 22302 22303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22304cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22305_ACEOF 22306sed -n ' 22307h 22308s/^/S["/; s/!.*/"]=/ 22309p 22310g 22311s/^[^!]*!// 22312:repl 22313t repl 22314s/'"$ac_delim"'$// 22315t delim 22316:nl 22317h 22318s/\(.\{148\}\)..*/\1/ 22319t more1 22320s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22321p 22322n 22323b repl 22324:more1 22325s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22326p 22327g 22328s/.\{148\}// 22329t nl 22330:delim 22331h 22332s/\(.\{148\}\)..*/\1/ 22333t more2 22334s/["\\]/\\&/g; s/^/"/; s/$/"/ 22335p 22336b 22337:more2 22338s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22339p 22340g 22341s/.\{148\}// 22342t delim 22343' <conf$$subs.awk | sed ' 22344/^[^""]/{ 22345 N 22346 s/\n// 22347} 22348' >>$CONFIG_STATUS || ac_write_fail=1 22349rm -f conf$$subs.awk 22350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22351_ACAWK 22352cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22353 for (key in S) S_is_set[key] = 1 22354 FS = "" 22355 22356} 22357{ 22358 line = $ 0 22359 nfields = split(line, field, "@") 22360 substed = 0 22361 len = length(field[1]) 22362 for (i = 2; i < nfields; i++) { 22363 key = field[i] 22364 keylen = length(key) 22365 if (S_is_set[key]) { 22366 value = S[key] 22367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22368 len += length(value) + length(field[++i]) 22369 substed = 1 22370 } else 22371 len += 1 + keylen 22372 } 22373 22374 print line 22375} 22376 22377_ACAWK 22378_ACEOF 22379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22380if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22382else 22383 cat 22384fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22386_ACEOF 22387 22388# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22389# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22390# trailing colons and then remove the whole line if VPATH becomes empty 22391# (actually we leave an empty line to preserve line numbers). 22392if test "x$srcdir" = x.; then 22393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22394h 22395s/// 22396s/^/:/ 22397s/[ ]*$/:/ 22398s/:\$(srcdir):/:/g 22399s/:\${srcdir}:/:/g 22400s/:@srcdir@:/:/g 22401s/^:*// 22402s/:*$// 22403x 22404s/\(=[ ]*\).*/\1/ 22405G 22406s/\n// 22407s/^[^=]*=[ ]*$// 22408}' 22409fi 22410 22411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22412fi # test -n "$CONFIG_FILES" 22413 22414# Set up the scripts for CONFIG_HEADERS section. 22415# No need to generate them if there are no CONFIG_HEADERS. 22416# This happens for instance with `./config.status Makefile'. 22417if test -n "$CONFIG_HEADERS"; then 22418cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22419BEGIN { 22420_ACEOF 22421 22422# Transform confdefs.h into an awk script `defines.awk', embedded as 22423# here-document in config.status, that substitutes the proper values into 22424# config.h.in to produce config.h. 22425 22426# Create a delimiter string that does not exist in confdefs.h, to ease 22427# handling of long lines. 22428ac_delim='%!_!# ' 22429for ac_last_try in false false :; do 22430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22431 if test -z "$ac_tt"; then 22432 break 22433 elif $ac_last_try; then 22434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22435 else 22436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22437 fi 22438done 22439 22440# For the awk script, D is an array of macro values keyed by name, 22441# likewise P contains macro parameters if any. Preserve backslash 22442# newline sequences. 22443 22444ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22445sed -n ' 22446s/.\{148\}/&'"$ac_delim"'/g 22447t rset 22448:rset 22449s/^[ ]*#[ ]*define[ ][ ]*/ / 22450t def 22451d 22452:def 22453s/\\$// 22454t bsnl 22455s/["\\]/\\&/g 22456s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22457D["\1"]=" \3"/p 22458s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22459d 22460:bsnl 22461s/["\\]/\\&/g 22462s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22463D["\1"]=" \3\\\\\\n"\\/p 22464t cont 22465s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22466t cont 22467d 22468:cont 22469n 22470s/.\{148\}/&'"$ac_delim"'/g 22471t clear 22472:clear 22473s/\\$// 22474t bsnlc 22475s/["\\]/\\&/g; s/^/"/; s/$/"/p 22476d 22477:bsnlc 22478s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22479b cont 22480' <confdefs.h | sed ' 22481s/'"$ac_delim"'/"\\\ 22482"/g' >>$CONFIG_STATUS || ac_write_fail=1 22483 22484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22485 for (key in D) D_is_set[key] = 1 22486 FS = "" 22487} 22488/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22489 line = \$ 0 22490 split(line, arg, " ") 22491 if (arg[1] == "#") { 22492 defundef = arg[2] 22493 mac1 = arg[3] 22494 } else { 22495 defundef = substr(arg[1], 2) 22496 mac1 = arg[2] 22497 } 22498 split(mac1, mac2, "(") #) 22499 macro = mac2[1] 22500 prefix = substr(line, 1, index(line, defundef) - 1) 22501 if (D_is_set[macro]) { 22502 # Preserve the white space surrounding the "#". 22503 print prefix "define", macro P[macro] D[macro] 22504 next 22505 } else { 22506 # Replace #undef with comments. This is necessary, for example, 22507 # in the case of _POSIX_SOURCE, which is predefined and required 22508 # on some systems where configure will not decide to define it. 22509 if (defundef == "undef") { 22510 print "/*", prefix defundef, macro, "*/" 22511 next 22512 } 22513 } 22514} 22515{ print } 22516_ACAWK 22517_ACEOF 22518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22520fi # test -n "$CONFIG_HEADERS" 22521 22522 22523eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22524shift 22525for ac_tag 22526do 22527 case $ac_tag in 22528 :[FHLC]) ac_mode=$ac_tag; continue;; 22529 esac 22530 case $ac_mode$ac_tag in 22531 :[FHL]*:*);; 22532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22533 :[FH]-) ac_tag=-:-;; 22534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22535 esac 22536 ac_save_IFS=$IFS 22537 IFS=: 22538 set x $ac_tag 22539 IFS=$ac_save_IFS 22540 shift 22541 ac_file=$1 22542 shift 22543 22544 case $ac_mode in 22545 :L) ac_source=$1;; 22546 :[FH]) 22547 ac_file_inputs= 22548 for ac_f 22549 do 22550 case $ac_f in 22551 -) ac_f="$ac_tmp/stdin";; 22552 *) # Look for the file first in the build tree, then in the source tree 22553 # (if the path is not absolute). The absolute path cannot be DOS-style, 22554 # because $ac_f cannot contain `:'. 22555 test -f "$ac_f" || 22556 case $ac_f in 22557 [\\/$]*) false;; 22558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22559 esac || 22560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22561 esac 22562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22563 as_fn_append ac_file_inputs " '$ac_f'" 22564 done 22565 22566 # Let's still pretend it is `configure' which instantiates (i.e., don't 22567 # use $as_me), people would be surprised to read: 22568 # /* config.h. Generated by config.status. */ 22569 configure_input='Generated from '` 22570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22571 `' by configure.' 22572 if test x"$ac_file" != x-; then 22573 configure_input="$ac_file. $configure_input" 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22575$as_echo "$as_me: creating $ac_file" >&6;} 22576 fi 22577 # Neutralize special characters interpreted by sed in replacement strings. 22578 case $configure_input in #( 22579 *\&* | *\|* | *\\* ) 22580 ac_sed_conf_input=`$as_echo "$configure_input" | 22581 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22582 *) ac_sed_conf_input=$configure_input;; 22583 esac 22584 22585 case $ac_tag in 22586 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22588 esac 22589 ;; 22590 esac 22591 22592 ac_dir=`$as_dirname -- "$ac_file" || 22593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22594 X"$ac_file" : 'X\(//\)[^/]' \| \ 22595 X"$ac_file" : 'X\(//\)$' \| \ 22596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22597$as_echo X"$ac_file" | 22598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22599 s//\1/ 22600 q 22601 } 22602 /^X\(\/\/\)[^/].*/{ 22603 s//\1/ 22604 q 22605 } 22606 /^X\(\/\/\)$/{ 22607 s//\1/ 22608 q 22609 } 22610 /^X\(\/\).*/{ 22611 s//\1/ 22612 q 22613 } 22614 s/.*/./; q'` 22615 as_dir="$ac_dir"; as_fn_mkdir_p 22616 ac_builddir=. 22617 22618case "$ac_dir" in 22619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22620*) 22621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22622 # A ".." for each directory in $ac_dir_suffix. 22623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22624 case $ac_top_builddir_sub in 22625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22627 esac ;; 22628esac 22629ac_abs_top_builddir=$ac_pwd 22630ac_abs_builddir=$ac_pwd$ac_dir_suffix 22631# for backward compatibility: 22632ac_top_builddir=$ac_top_build_prefix 22633 22634case $srcdir in 22635 .) # We are building in place. 22636 ac_srcdir=. 22637 ac_top_srcdir=$ac_top_builddir_sub 22638 ac_abs_top_srcdir=$ac_pwd ;; 22639 [\\/]* | ?:[\\/]* ) # Absolute name. 22640 ac_srcdir=$srcdir$ac_dir_suffix; 22641 ac_top_srcdir=$srcdir 22642 ac_abs_top_srcdir=$srcdir ;; 22643 *) # Relative name. 22644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22645 ac_top_srcdir=$ac_top_build_prefix$srcdir 22646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22647esac 22648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22649 22650 22651 case $ac_mode in 22652 :F) 22653 # 22654 # CONFIG_FILE 22655 # 22656 22657 case $INSTALL in 22658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22660 esac 22661 ac_MKDIR_P=$MKDIR_P 22662 case $MKDIR_P in 22663 [\\/$]* | ?:[\\/]* ) ;; 22664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22665 esac 22666_ACEOF 22667 22668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22669# If the template does not know about datarootdir, expand it. 22670# FIXME: This hack should be removed a few years after 2.60. 22671ac_datarootdir_hack=; ac_datarootdir_seen= 22672ac_sed_dataroot=' 22673/datarootdir/ { 22674 p 22675 q 22676} 22677/@datadir@/p 22678/@docdir@/p 22679/@infodir@/p 22680/@localedir@/p 22681/@mandir@/p' 22682case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22683*datarootdir*) ac_datarootdir_seen=yes;; 22684*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22686$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22687_ACEOF 22688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22689 ac_datarootdir_hack=' 22690 s&@datadir@&$datadir&g 22691 s&@docdir@&$docdir&g 22692 s&@infodir@&$infodir&g 22693 s&@localedir@&$localedir&g 22694 s&@mandir@&$mandir&g 22695 s&\\\${datarootdir}&$datarootdir&g' ;; 22696esac 22697_ACEOF 22698 22699# Neutralize VPATH when `$srcdir' = `.'. 22700# Shell code in configure.ac might set extrasub. 22701# FIXME: do we really want to maintain this feature? 22702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22703ac_sed_extra="$ac_vpsub 22704$extrasub 22705_ACEOF 22706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22707:t 22708/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22709s|@configure_input@|$ac_sed_conf_input|;t t 22710s&@top_builddir@&$ac_top_builddir_sub&;t t 22711s&@top_build_prefix@&$ac_top_build_prefix&;t t 22712s&@srcdir@&$ac_srcdir&;t t 22713s&@abs_srcdir@&$ac_abs_srcdir&;t t 22714s&@top_srcdir@&$ac_top_srcdir&;t t 22715s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22716s&@builddir@&$ac_builddir&;t t 22717s&@abs_builddir@&$ac_abs_builddir&;t t 22718s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22719s&@INSTALL@&$ac_INSTALL&;t t 22720s&@MKDIR_P@&$ac_MKDIR_P&;t t 22721$ac_datarootdir_hack 22722" 22723eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22725 22726test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22729 "$ac_tmp/out"`; test -z "$ac_out"; } && 22730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22731which seems to be undefined. Please make sure it is defined" >&5 22732$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22733which seems to be undefined. Please make sure it is defined" >&2;} 22734 22735 rm -f "$ac_tmp/stdin" 22736 case $ac_file in 22737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22739 esac \ 22740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22741 ;; 22742 :H) 22743 # 22744 # CONFIG_HEADER 22745 # 22746 if test x"$ac_file" != x-; then 22747 { 22748 $as_echo "/* $configure_input */" \ 22749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22750 } >"$ac_tmp/config.h" \ 22751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22754$as_echo "$as_me: $ac_file is unchanged" >&6;} 22755 else 22756 rm -f "$ac_file" 22757 mv "$ac_tmp/config.h" "$ac_file" \ 22758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22759 fi 22760 else 22761 $as_echo "/* $configure_input */" \ 22762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22763 || as_fn_error $? "could not create -" "$LINENO" 5 22764 fi 22765# Compute "$ac_file"'s index in $config_headers. 22766_am_arg="$ac_file" 22767_am_stamp_count=1 22768for _am_header in $config_headers :; do 22769 case $_am_header in 22770 $_am_arg | $_am_arg:* ) 22771 break ;; 22772 * ) 22773 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22774 esac 22775done 22776echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22777$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22778 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22779 X"$_am_arg" : 'X\(//\)$' \| \ 22780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22781$as_echo X"$_am_arg" | 22782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22783 s//\1/ 22784 q 22785 } 22786 /^X\(\/\/\)[^/].*/{ 22787 s//\1/ 22788 q 22789 } 22790 /^X\(\/\/\)$/{ 22791 s//\1/ 22792 q 22793 } 22794 /^X\(\/\).*/{ 22795 s//\1/ 22796 q 22797 } 22798 s/.*/./; q'`/stamp-h$_am_stamp_count 22799 ;; 22800 22801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22802$as_echo "$as_me: executing $ac_file commands" >&6;} 22803 ;; 22804 esac 22805 22806 22807 case $ac_file$ac_mode in 22808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22809 # Older Autoconf quotes --file arguments for eval, but not when files 22810 # are listed without --file. Let's play safe and only enable the eval 22811 # if we detect the quoting. 22812 # TODO: see whether this extra hack can be removed once we start 22813 # requiring Autoconf 2.70 or later. 22814 case $CONFIG_FILES in #( 22815 *\'*) : 22816 eval set x "$CONFIG_FILES" ;; #( 22817 *) : 22818 set x $CONFIG_FILES ;; #( 22819 *) : 22820 ;; 22821esac 22822 shift 22823 # Used to flag and report bootstrapping failures. 22824 am_rc=0 22825 for am_mf 22826 do 22827 # Strip MF so we end up with the name of the file. 22828 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22829 # Check whether this is an Automake generated Makefile which includes 22830 # dependency-tracking related rules and includes. 22831 # Grep'ing the whole file directly is not great: AIX grep has a line 22832 # limit of 2048, but all sed's we know have understand at least 4000. 22833 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22834 || continue 22835 am_dirpart=`$as_dirname -- "$am_mf" || 22836$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22837 X"$am_mf" : 'X\(//\)[^/]' \| \ 22838 X"$am_mf" : 'X\(//\)$' \| \ 22839 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22840$as_echo X"$am_mf" | 22841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22842 s//\1/ 22843 q 22844 } 22845 /^X\(\/\/\)[^/].*/{ 22846 s//\1/ 22847 q 22848 } 22849 /^X\(\/\/\)$/{ 22850 s//\1/ 22851 q 22852 } 22853 /^X\(\/\).*/{ 22854 s//\1/ 22855 q 22856 } 22857 s/.*/./; q'` 22858 am_filepart=`$as_basename -- "$am_mf" || 22859$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22860 X"$am_mf" : 'X\(//\)$' \| \ 22861 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22862$as_echo X/"$am_mf" | 22863 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22864 s//\1/ 22865 q 22866 } 22867 /^X\/\(\/\/\)$/{ 22868 s//\1/ 22869 q 22870 } 22871 /^X\/\(\/\).*/{ 22872 s//\1/ 22873 q 22874 } 22875 s/.*/./; q'` 22876 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22877 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22878 | $MAKE -f - am--depfiles" >&5 22879 (cd "$am_dirpart" \ 22880 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22881 | $MAKE -f - am--depfiles) >&5 2>&5 22882 ac_status=$? 22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22884 (exit $ac_status); } || am_rc=$? 22885 done 22886 if test $am_rc -ne 0; then 22887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22889as_fn_error $? "Something went wrong bootstrapping makefile fragments 22890 for automatic dependency tracking. Try re-running configure with the 22891 '--disable-dependency-tracking' option to at least be able to build 22892 the package (albeit without support for automatic dependency tracking). 22893See \`config.log' for more details" "$LINENO" 5; } 22894 fi 22895 { am_dirpart=; unset am_dirpart;} 22896 { am_filepart=; unset am_filepart;} 22897 { am_mf=; unset am_mf;} 22898 { am_rc=; unset am_rc;} 22899 rm -f conftest-deps.mk 22900} 22901 ;; 22902 "libtool":C) 22903 22904 # See if we are running on zsh, and set the options that allow our 22905 # commands through without removal of \ escapes. 22906 if test -n "${ZSH_VERSION+set}"; then 22907 setopt NO_GLOB_SUBST 22908 fi 22909 22910 cfgfile=${ofile}T 22911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22912 $RM "$cfgfile" 22913 22914 cat <<_LT_EOF >> "$cfgfile" 22915#! $SHELL 22916# Generated automatically by $as_me ($PACKAGE) $VERSION 22917# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22918 22919# Provide generalized library-building support services. 22920# Written by Gordon Matzigkeit, 1996 22921 22922# Copyright (C) 2014 Free Software Foundation, Inc. 22923# This is free software; see the source for copying conditions. There is NO 22924# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22925 22926# GNU Libtool is free software; you can redistribute it and/or modify 22927# it under the terms of the GNU General Public License as published by 22928# the Free Software Foundation; either version 2 of of the License, or 22929# (at your option) any later version. 22930# 22931# As a special exception to the GNU General Public License, if you 22932# distribute this file as part of a program or library that is built 22933# using GNU Libtool, you may include this file under the same 22934# distribution terms that you use for the rest of that program. 22935# 22936# GNU Libtool is distributed in the hope that it will be useful, but 22937# WITHOUT ANY WARRANTY; without even the implied warranty of 22938# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22939# GNU General Public License for more details. 22940# 22941# You should have received a copy of the GNU General Public License 22942# along with this program. If not, see <http://www.gnu.org/licenses/>. 22943 22944 22945# The names of the tagged configurations supported by this script. 22946available_tags='CXX ' 22947 22948# Configured defaults for sys_lib_dlsearch_path munging. 22949: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22950 22951# ### BEGIN LIBTOOL CONFIG 22952 22953# Which release of libtool.m4 was used? 22954macro_version=$macro_version 22955macro_revision=$macro_revision 22956 22957# Assembler program. 22958AS=$lt_AS 22959 22960# DLL creation program. 22961DLLTOOL=$lt_DLLTOOL 22962 22963# Object dumper program. 22964OBJDUMP=$lt_OBJDUMP 22965 22966# Whether or not to build shared libraries. 22967build_libtool_libs=$enable_shared 22968 22969# Whether or not to build static libraries. 22970build_old_libs=$enable_static 22971 22972# What type of objects to build. 22973pic_mode=$pic_mode 22974 22975# Whether or not to optimize for fast installation. 22976fast_install=$enable_fast_install 22977 22978# Shared archive member basename,for filename based shared library versioning on AIX. 22979shared_archive_member_spec=$shared_archive_member_spec 22980 22981# Shell to use when invoking shell scripts. 22982SHELL=$lt_SHELL 22983 22984# An echo program that protects backslashes. 22985ECHO=$lt_ECHO 22986 22987# The PATH separator for the build system. 22988PATH_SEPARATOR=$lt_PATH_SEPARATOR 22989 22990# The host system. 22991host_alias=$host_alias 22992host=$host 22993host_os=$host_os 22994 22995# The build system. 22996build_alias=$build_alias 22997build=$build 22998build_os=$build_os 22999 23000# A sed program that does not truncate output. 23001SED=$lt_SED 23002 23003# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23004Xsed="\$SED -e 1s/^X//" 23005 23006# A grep program that handles long lines. 23007GREP=$lt_GREP 23008 23009# An ERE matcher. 23010EGREP=$lt_EGREP 23011 23012# A literal string matcher. 23013FGREP=$lt_FGREP 23014 23015# A BSD- or MS-compatible name lister. 23016NM=$lt_NM 23017 23018# Whether we need soft or hard links. 23019LN_S=$lt_LN_S 23020 23021# What is the maximum length of a command? 23022max_cmd_len=$max_cmd_len 23023 23024# Object file suffix (normally "o"). 23025objext=$ac_objext 23026 23027# Executable file suffix (normally ""). 23028exeext=$exeext 23029 23030# whether the shell understands "unset". 23031lt_unset=$lt_unset 23032 23033# turn spaces into newlines. 23034SP2NL=$lt_lt_SP2NL 23035 23036# turn newlines into spaces. 23037NL2SP=$lt_lt_NL2SP 23038 23039# convert \$build file names to \$host format. 23040to_host_file_cmd=$lt_cv_to_host_file_cmd 23041 23042# convert \$build files to toolchain format. 23043to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23044 23045# Method to check whether dependent libraries are shared objects. 23046deplibs_check_method=$lt_deplibs_check_method 23047 23048# Command to use when deplibs_check_method = "file_magic". 23049file_magic_cmd=$lt_file_magic_cmd 23050 23051# How to find potential files when deplibs_check_method = "file_magic". 23052file_magic_glob=$lt_file_magic_glob 23053 23054# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23055want_nocaseglob=$lt_want_nocaseglob 23056 23057# Command to associate shared and link libraries. 23058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23059 23060# The archiver. 23061AR=$lt_AR 23062 23063# Flags to create an archive. 23064AR_FLAGS=$lt_AR_FLAGS 23065 23066# How to feed a file listing to the archiver. 23067archiver_list_spec=$lt_archiver_list_spec 23068 23069# A symbol stripping program. 23070STRIP=$lt_STRIP 23071 23072# Commands used to install an old-style archive. 23073RANLIB=$lt_RANLIB 23074old_postinstall_cmds=$lt_old_postinstall_cmds 23075old_postuninstall_cmds=$lt_old_postuninstall_cmds 23076 23077# Whether to use a lock for old archive extraction. 23078lock_old_archive_extraction=$lock_old_archive_extraction 23079 23080# A C compiler. 23081LTCC=$lt_CC 23082 23083# LTCC compiler flags. 23084LTCFLAGS=$lt_CFLAGS 23085 23086# Take the output of nm and produce a listing of raw symbols and C names. 23087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23088 23089# Transform the output of nm in a proper C declaration. 23090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23091 23092# Transform the output of nm into a list of symbols to manually relocate. 23093global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23094 23095# Transform the output of nm in a C name address pair. 23096global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23097 23098# Transform the output of nm in a C name address pair when lib prefix is needed. 23099global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23100 23101# The name lister interface. 23102nm_interface=$lt_lt_cv_nm_interface 23103 23104# Specify filename containing input files for \$NM. 23105nm_file_list_spec=$lt_nm_file_list_spec 23106 23107# The root where to search for dependent libraries,and where our libraries should be installed. 23108lt_sysroot=$lt_sysroot 23109 23110# Command to truncate a binary pipe. 23111lt_truncate_bin=$lt_lt_cv_truncate_bin 23112 23113# The name of the directory that contains temporary libtool files. 23114objdir=$objdir 23115 23116# Used to examine libraries when file_magic_cmd begins with "file". 23117MAGIC_CMD=$MAGIC_CMD 23118 23119# Must we lock files when doing compilation? 23120need_locks=$lt_need_locks 23121 23122# Manifest tool. 23123MANIFEST_TOOL=$lt_MANIFEST_TOOL 23124 23125# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23126DSYMUTIL=$lt_DSYMUTIL 23127 23128# Tool to change global to local symbols on Mac OS X. 23129NMEDIT=$lt_NMEDIT 23130 23131# Tool to manipulate fat objects and archives on Mac OS X. 23132LIPO=$lt_LIPO 23133 23134# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23135OTOOL=$lt_OTOOL 23136 23137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23138OTOOL64=$lt_OTOOL64 23139 23140# Old archive suffix (normally "a"). 23141libext=$libext 23142 23143# Shared library suffix (normally ".so"). 23144shrext_cmds=$lt_shrext_cmds 23145 23146# The commands to extract the exported symbol list from a shared archive. 23147extract_expsyms_cmds=$lt_extract_expsyms_cmds 23148 23149# Variables whose values should be saved in libtool wrapper scripts and 23150# restored at link time. 23151variables_saved_for_relink=$lt_variables_saved_for_relink 23152 23153# Do we need the "lib" prefix for modules? 23154need_lib_prefix=$need_lib_prefix 23155 23156# Do we need a version for libraries? 23157need_version=$need_version 23158 23159# Library versioning type. 23160version_type=$version_type 23161 23162# Shared library runtime path variable. 23163runpath_var=$runpath_var 23164 23165# Shared library path variable. 23166shlibpath_var=$shlibpath_var 23167 23168# Is shlibpath searched before the hard-coded library search path? 23169shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23170 23171# Format of library name prefix. 23172libname_spec=$lt_libname_spec 23173 23174# List of archive names. First name is the real one, the rest are links. 23175# The last name is the one that the linker finds with -lNAME 23176library_names_spec=$lt_library_names_spec 23177 23178# The coded name of the library, if different from the real name. 23179soname_spec=$lt_soname_spec 23180 23181# Permission mode override for installation of shared libraries. 23182install_override_mode=$lt_install_override_mode 23183 23184# Command to use after installation of a shared archive. 23185postinstall_cmds=$lt_postinstall_cmds 23186 23187# Command to use after uninstallation of a shared archive. 23188postuninstall_cmds=$lt_postuninstall_cmds 23189 23190# Commands used to finish a libtool library installation in a directory. 23191finish_cmds=$lt_finish_cmds 23192 23193# As "finish_cmds", except a single script fragment to be evaled but 23194# not shown. 23195finish_eval=$lt_finish_eval 23196 23197# Whether we should hardcode library paths into libraries. 23198hardcode_into_libs=$hardcode_into_libs 23199 23200# Compile-time system search path for libraries. 23201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23202 23203# Detected run-time system search path for libraries. 23204sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23205 23206# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23207configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23208 23209# Whether dlopen is supported. 23210dlopen_support=$enable_dlopen 23211 23212# Whether dlopen of programs is supported. 23213dlopen_self=$enable_dlopen_self 23214 23215# Whether dlopen of statically linked programs is supported. 23216dlopen_self_static=$enable_dlopen_self_static 23217 23218# Commands to strip libraries. 23219old_striplib=$lt_old_striplib 23220striplib=$lt_striplib 23221 23222 23223# The linker used to build libraries. 23224LD=$lt_LD 23225 23226# How to create reloadable object files. 23227reload_flag=$lt_reload_flag 23228reload_cmds=$lt_reload_cmds 23229 23230# Commands used to build an old-style archive. 23231old_archive_cmds=$lt_old_archive_cmds 23232 23233# A language specific compiler. 23234CC=$lt_compiler 23235 23236# Is the compiler the GNU compiler? 23237with_gcc=$GCC 23238 23239# Compiler flag to turn off builtin functions. 23240no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23241 23242# Additional compiler flags for building library objects. 23243pic_flag=$lt_lt_prog_compiler_pic 23244 23245# How to pass a linker flag through the compiler. 23246wl=$lt_lt_prog_compiler_wl 23247 23248# Compiler flag to prevent dynamic linking. 23249link_static_flag=$lt_lt_prog_compiler_static 23250 23251# Does compiler simultaneously support -c and -o options? 23252compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23253 23254# Whether or not to add -lc for building shared libraries. 23255build_libtool_need_lc=$archive_cmds_need_lc 23256 23257# Whether or not to disallow shared libs when runtime libs are static. 23258allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23259 23260# Compiler flag to allow reflexive dlopens. 23261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23262 23263# Compiler flag to generate shared objects directly from archives. 23264whole_archive_flag_spec=$lt_whole_archive_flag_spec 23265 23266# Whether the compiler copes with passing no objects directly. 23267compiler_needs_object=$lt_compiler_needs_object 23268 23269# Create an old-style archive from a shared archive. 23270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23271 23272# Create a temporary old-style archive to link instead of a shared archive. 23273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23274 23275# Commands used to build a shared archive. 23276archive_cmds=$lt_archive_cmds 23277archive_expsym_cmds=$lt_archive_expsym_cmds 23278 23279# Commands used to build a loadable module if different from building 23280# a shared archive. 23281module_cmds=$lt_module_cmds 23282module_expsym_cmds=$lt_module_expsym_cmds 23283 23284# Whether we are building with GNU ld or not. 23285with_gnu_ld=$lt_with_gnu_ld 23286 23287# Flag that allows shared libraries with undefined symbols to be built. 23288allow_undefined_flag=$lt_allow_undefined_flag 23289 23290# Flag that enforces no undefined symbols. 23291no_undefined_flag=$lt_no_undefined_flag 23292 23293# Flag to hardcode \$libdir into a binary during linking. 23294# This must work even if \$libdir does not exist 23295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23296 23297# Whether we need a single "-rpath" flag with a separated argument. 23298hardcode_libdir_separator=$lt_hardcode_libdir_separator 23299 23300# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23301# DIR into the resulting binary. 23302hardcode_direct=$hardcode_direct 23303 23304# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23305# DIR into the resulting binary and the resulting library dependency is 23306# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23307# library is relocated. 23308hardcode_direct_absolute=$hardcode_direct_absolute 23309 23310# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23311# into the resulting binary. 23312hardcode_minus_L=$hardcode_minus_L 23313 23314# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23315# into the resulting binary. 23316hardcode_shlibpath_var=$hardcode_shlibpath_var 23317 23318# Set to "yes" if building a shared library automatically hardcodes DIR 23319# into the library and all subsequent libraries and executables linked 23320# against it. 23321hardcode_automatic=$hardcode_automatic 23322 23323# Set to yes if linker adds runtime paths of dependent libraries 23324# to runtime path list. 23325inherit_rpath=$inherit_rpath 23326 23327# Whether libtool must link a program against all its dependency libraries. 23328link_all_deplibs=$link_all_deplibs 23329 23330# Set to "yes" if exported symbols are required. 23331always_export_symbols=$always_export_symbols 23332 23333# The commands to list exported symbols. 23334export_symbols_cmds=$lt_export_symbols_cmds 23335 23336# Symbols that should not be listed in the preloaded symbols. 23337exclude_expsyms=$lt_exclude_expsyms 23338 23339# Symbols that must always be exported. 23340include_expsyms=$lt_include_expsyms 23341 23342# Commands necessary for linking programs (against libraries) with templates. 23343prelink_cmds=$lt_prelink_cmds 23344 23345# Commands necessary for finishing linking programs. 23346postlink_cmds=$lt_postlink_cmds 23347 23348# Specify filename containing input files. 23349file_list_spec=$lt_file_list_spec 23350 23351# How to hardcode a shared library path into an executable. 23352hardcode_action=$hardcode_action 23353 23354# The directories searched by this compiler when creating a shared library. 23355compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23356 23357# Dependencies to place before and after the objects being linked to 23358# create a shared library. 23359predep_objects=$lt_predep_objects 23360postdep_objects=$lt_postdep_objects 23361predeps=$lt_predeps 23362postdeps=$lt_postdeps 23363 23364# The library search path used internally by the compiler when linking 23365# a shared library. 23366compiler_lib_search_path=$lt_compiler_lib_search_path 23367 23368# ### END LIBTOOL CONFIG 23369 23370_LT_EOF 23371 23372 cat <<'_LT_EOF' >> "$cfgfile" 23373 23374# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23375 23376# func_munge_path_list VARIABLE PATH 23377# ----------------------------------- 23378# VARIABLE is name of variable containing _space_ separated list of 23379# directories to be munged by the contents of PATH, which is string 23380# having a format: 23381# "DIR[:DIR]:" 23382# string "DIR[ DIR]" will be prepended to VARIABLE 23383# ":DIR[:DIR]" 23384# string "DIR[ DIR]" will be appended to VARIABLE 23385# "DIRP[:DIRP]::[DIRA:]DIRA" 23386# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23387# "DIRA[ DIRA]" will be appended to VARIABLE 23388# "DIR[:DIR]" 23389# VARIABLE will be replaced by "DIR[ DIR]" 23390func_munge_path_list () 23391{ 23392 case x$2 in 23393 x) 23394 ;; 23395 *:) 23396 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23397 ;; 23398 x:*) 23399 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23400 ;; 23401 *::*) 23402 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23403 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23404 ;; 23405 *) 23406 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23407 ;; 23408 esac 23409} 23410 23411 23412# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23413func_cc_basename () 23414{ 23415 for cc_temp in $*""; do 23416 case $cc_temp in 23417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23419 \-*) ;; 23420 *) break;; 23421 esac 23422 done 23423 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23424} 23425 23426 23427# ### END FUNCTIONS SHARED WITH CONFIGURE 23428 23429_LT_EOF 23430 23431 case $host_os in 23432 aix3*) 23433 cat <<\_LT_EOF >> "$cfgfile" 23434# AIX sometimes has problems with the GCC collect2 program. For some 23435# reason, if we set the COLLECT_NAMES environment variable, the problems 23436# vanish in a puff of smoke. 23437if test set != "${COLLECT_NAMES+set}"; then 23438 COLLECT_NAMES= 23439 export COLLECT_NAMES 23440fi 23441_LT_EOF 23442 ;; 23443 esac 23444 23445 23446ltmain=$ac_aux_dir/ltmain.sh 23447 23448 23449 # We use sed instead of cat because bash on DJGPP gets confused if 23450 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23451 # text mode, it properly converts lines to CR/LF. This bash problem 23452 # is reportedly fixed, but why not run on old versions too? 23453 sed '$q' "$ltmain" >> "$cfgfile" \ 23454 || (rm -f "$cfgfile"; exit 1) 23455 23456 mv -f "$cfgfile" "$ofile" || 23457 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23458 chmod +x "$ofile" 23459 23460 23461 cat <<_LT_EOF >> "$ofile" 23462 23463# ### BEGIN LIBTOOL TAG CONFIG: CXX 23464 23465# The linker used to build libraries. 23466LD=$lt_LD_CXX 23467 23468# How to create reloadable object files. 23469reload_flag=$lt_reload_flag_CXX 23470reload_cmds=$lt_reload_cmds_CXX 23471 23472# Commands used to build an old-style archive. 23473old_archive_cmds=$lt_old_archive_cmds_CXX 23474 23475# A language specific compiler. 23476CC=$lt_compiler_CXX 23477 23478# Is the compiler the GNU compiler? 23479with_gcc=$GCC_CXX 23480 23481# Compiler flag to turn off builtin functions. 23482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23483 23484# Additional compiler flags for building library objects. 23485pic_flag=$lt_lt_prog_compiler_pic_CXX 23486 23487# How to pass a linker flag through the compiler. 23488wl=$lt_lt_prog_compiler_wl_CXX 23489 23490# Compiler flag to prevent dynamic linking. 23491link_static_flag=$lt_lt_prog_compiler_static_CXX 23492 23493# Does compiler simultaneously support -c and -o options? 23494compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23495 23496# Whether or not to add -lc for building shared libraries. 23497build_libtool_need_lc=$archive_cmds_need_lc_CXX 23498 23499# Whether or not to disallow shared libs when runtime libs are static. 23500allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23501 23502# Compiler flag to allow reflexive dlopens. 23503export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23504 23505# Compiler flag to generate shared objects directly from archives. 23506whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23507 23508# Whether the compiler copes with passing no objects directly. 23509compiler_needs_object=$lt_compiler_needs_object_CXX 23510 23511# Create an old-style archive from a shared archive. 23512old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23513 23514# Create a temporary old-style archive to link instead of a shared archive. 23515old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23516 23517# Commands used to build a shared archive. 23518archive_cmds=$lt_archive_cmds_CXX 23519archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23520 23521# Commands used to build a loadable module if different from building 23522# a shared archive. 23523module_cmds=$lt_module_cmds_CXX 23524module_expsym_cmds=$lt_module_expsym_cmds_CXX 23525 23526# Whether we are building with GNU ld or not. 23527with_gnu_ld=$lt_with_gnu_ld_CXX 23528 23529# Flag that allows shared libraries with undefined symbols to be built. 23530allow_undefined_flag=$lt_allow_undefined_flag_CXX 23531 23532# Flag that enforces no undefined symbols. 23533no_undefined_flag=$lt_no_undefined_flag_CXX 23534 23535# Flag to hardcode \$libdir into a binary during linking. 23536# This must work even if \$libdir does not exist 23537hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23538 23539# Whether we need a single "-rpath" flag with a separated argument. 23540hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23541 23542# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23543# DIR into the resulting binary. 23544hardcode_direct=$hardcode_direct_CXX 23545 23546# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23547# DIR into the resulting binary and the resulting library dependency is 23548# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23549# library is relocated. 23550hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23551 23552# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23553# into the resulting binary. 23554hardcode_minus_L=$hardcode_minus_L_CXX 23555 23556# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23557# into the resulting binary. 23558hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23559 23560# Set to "yes" if building a shared library automatically hardcodes DIR 23561# into the library and all subsequent libraries and executables linked 23562# against it. 23563hardcode_automatic=$hardcode_automatic_CXX 23564 23565# Set to yes if linker adds runtime paths of dependent libraries 23566# to runtime path list. 23567inherit_rpath=$inherit_rpath_CXX 23568 23569# Whether libtool must link a program against all its dependency libraries. 23570link_all_deplibs=$link_all_deplibs_CXX 23571 23572# Set to "yes" if exported symbols are required. 23573always_export_symbols=$always_export_symbols_CXX 23574 23575# The commands to list exported symbols. 23576export_symbols_cmds=$lt_export_symbols_cmds_CXX 23577 23578# Symbols that should not be listed in the preloaded symbols. 23579exclude_expsyms=$lt_exclude_expsyms_CXX 23580 23581# Symbols that must always be exported. 23582include_expsyms=$lt_include_expsyms_CXX 23583 23584# Commands necessary for linking programs (against libraries) with templates. 23585prelink_cmds=$lt_prelink_cmds_CXX 23586 23587# Commands necessary for finishing linking programs. 23588postlink_cmds=$lt_postlink_cmds_CXX 23589 23590# Specify filename containing input files. 23591file_list_spec=$lt_file_list_spec_CXX 23592 23593# How to hardcode a shared library path into an executable. 23594hardcode_action=$hardcode_action_CXX 23595 23596# The directories searched by this compiler when creating a shared library. 23597compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23598 23599# Dependencies to place before and after the objects being linked to 23600# create a shared library. 23601predep_objects=$lt_predep_objects_CXX 23602postdep_objects=$lt_postdep_objects_CXX 23603predeps=$lt_predeps_CXX 23604postdeps=$lt_postdeps_CXX 23605 23606# The library search path used internally by the compiler when linking 23607# a shared library. 23608compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23609 23610# ### END LIBTOOL TAG CONFIG: CXX 23611_LT_EOF 23612 23613 ;; 23614 23615 esac 23616done # for ac_tag 23617 23618 23619as_fn_exit 0 23620_ACEOF 23621ac_clean_files=$ac_clean_files_save 23622 23623test $ac_write_fail = 0 || 23624 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23625 23626 23627# configure is writing to config.log, and then calls config.status. 23628# config.status does its own redirection, appending to config.log. 23629# Unfortunately, on DOS this fails, as config.log is still kept open 23630# by configure, so config.status won't be able to write to it; its 23631# output is simply discarded. So we exec the FD to /dev/null, 23632# effectively closing config.log, so it can be properly (re)opened and 23633# appended to by config.status. When coming back to configure, we 23634# need to make the FD available again. 23635if test "$no_create" != yes; then 23636 ac_cs_success=: 23637 ac_config_status_args= 23638 test "$silent" = yes && 23639 ac_config_status_args="$ac_config_status_args --quiet" 23640 exec 5>/dev/null 23641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23642 exec 5>>config.log 23643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23644 # would make configure fail if this is the last instruction. 23645 $ac_cs_success || as_fn_exit 1 23646fi 23647if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23649$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23650fi 23651 23652 23653 23654echo "" 23655echo "Libtiff is now configured for ${host}" 23656echo "" 23657echo " Installation directory: ${prefix}" 23658echo " Documentation directory: ${LIBTIFF_DOCDIR}" 23659echo " C compiler: ${CC} ${CFLAGS}" 23660echo " C++ compiler: ${CXX} ${CXXFLAGS}" 23661echo " Enable runtime linker paths: ${HAVE_RPATH}" 23662echo " Enable linker symbol versioning: ${have_ld_version_script}" 23663echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 23664echo " Use Win32 IO: ${win32_io_ok}" 23665echo "" 23666echo " Support for internal codecs:" 23667echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 23668echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 23669echo " LZW algorithm: ${HAVE_LZW}" 23670echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 23671echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 23672echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 23673echo "" 23674echo " Support for external codecs:" 23675echo " ZLIB support: ${HAVE_ZLIB}" 23676echo " libdeflate support: ${HAVE_LIBDEFLATE}" 23677echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 23678echo " JPEG support: ${HAVE_JPEG}" 23679echo " Old JPEG support: ${HAVE_OJPEG}" 23680echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 23681echo " ISO JBIG support: ${HAVE_JBIG}" 23682echo " LERC support: ${HAVE_LERC}" 23683echo " LZMA2 support: ${HAVE_LZMA}" 23684echo " ZSTD support: ${HAVE_ZSTD}" 23685echo " WEBP support: ${HAVE_WEBP}" 23686echo "" 23687echo " C++ support: ${HAVE_CXX}" 23688echo "" 23689echo " OpenGL support: ${HAVE_OPENGL}" 23690echo "" 23691 23692