1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.4beta. 4# 5# Report bugs to <[email protected]>. 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 [email protected] and 278$0: [email protected] 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.0.4beta' 594PACKAGE_STRING='LibTIFF Software 4.0.4beta' 595PACKAGE_BUGREPORT='[email protected]' 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 659LIBTIFF_DOCDIR 660HAVE_RPATH_FALSE 661HAVE_RPATH_TRUE 662LIBOBJS 663tiff_libs_private 664CXXCPP 665am__fastdepCXX_FALSE 666am__fastdepCXX_TRUE 667CXXDEPMODE 668ac_ct_CXX 669CXXFLAGS 670CXX 671CPP 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681NM 682ac_ct_DUMPBIN 683DUMPBIN 684LD 685FGREP 686EGREP 687GREP 688SED 689LIBTOOL 690OBJDUMP 691DLLTOOL 692AS 693HAVE_LD_VERSION_SCRIPT_FALSE 694HAVE_LD_VERSION_SCRIPT_TRUE 695LN_S 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713LIBTIFF_RELEASE_DATE 714LIBTIFF_VERSION_INFO 715LIBTIFF_VERSION 716LIBTIFF_ALPHA_VERSION 717LIBTIFF_MICRO_VERSION 718LIBTIFF_MINOR_VERSION 719LIBTIFF_MAJOR_VERSION 720MAINT 721MAINTAINER_MODE_FALSE 722MAINTAINER_MODE_TRUE 723AM_BACKSLASH 724AM_DEFAULT_VERBOSITY 725AM_DEFAULT_V 726AM_V 727am__untar 728am__tar 729AMTAR 730am__leading_dot 731SET_MAKE 732AWK 733mkdir_p 734MKDIR_P 735INSTALL_STRIP_PROGRAM 736STRIP 737install_sh 738MAKEINFO 739AUTOHEADER 740AUTOMAKE 741AUTOCONF 742ACLOCAL 743VERSION 744PACKAGE 745CYGPATH_W 746am__isrc 747INSTALL_DATA 748INSTALL_SCRIPT 749INSTALL_PROGRAM 750host_os 751host_vendor 752host_cpu 753host 754build_os 755build_vendor 756build_cpu 757build 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_maintainer_mode 801enable_dependency_tracking 802enable_ld_version_script 803enable_shared 804enable_static 805with_pic 806enable_fast_install 807with_aix_soname 808with_gnu_ld 809with_sysroot 810enable_libtool_lock 811enable_rpath 812enable_largefile 813with_docdir 814enable_ccitt 815enable_packbits 816enable_lzw 817enable_thunder 818enable_next 819enable_logluv 820enable_mdi 821enable_zlib 822with_zlib_include_dir 823with_zlib_lib_dir 824enable_pixarlog 825enable_jpeg 826with_jpeg_include_dir 827with_jpeg_lib_dir 828enable_old_jpeg 829enable_jbig 830with_jbig_include_dir 831with_jbig_lib_dir 832enable_lzma 833with_lzma_include_dir 834with_lzma_lib_dir 835enable_jpeg12 836with_jpeg12_include_dir 837with_jpeg12_lib 838enable_cxx 839with_x 840enable_win32_io 841enable_strip_chopping 842with_default_strip_size 843enable_defer_strile_load 844enable_chunky_strip_read 845enable_extrasample_as_alpha 846enable_check_ycbcr_subsampling 847' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856CPP 857CXX 858CXXFLAGS 859CCC 860CXXCPP 861XMKMF' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures LibTIFF Software 4.0.4beta to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464X features: 1465 --x-includes=DIR X include files are in DIR 1466 --x-libraries=DIR X library files are in DIR 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of LibTIFF Software 4.0.4beta:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-option-checking ignore unrecognized --enable/--with options 1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-maintainer-mode 1487 enable make rules and dependencies not useful (and 1488 sometimes confusing) to the casual installer 1489 --enable-dependency-tracking 1490 do not reject slow dependency extractors 1491 --disable-dependency-tracking 1492 speeds up one-time build 1493 --enable-ld-version-script 1494 enable linker version script (default is disabled) 1495 --enable-shared[=PKGS] build shared libraries [default=yes] 1496 --enable-static[=PKGS] build static libraries [default=yes] 1497 --enable-fast-install[=PKGS] 1498 optimize for fast installation [default=yes] 1499 --disable-libtool-lock avoid locking (might break parallel builds) 1500 --enable-rpath Enable runtime linker paths (-R libtool option) 1501 --disable-largefile omit support for large files 1502 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1503 --disable-packbits disable support for Macintosh PackBits algorithm 1504 --disable-lzw disable support for LZW algorithm 1505 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1506 --disable-next disable support for NeXT 2-bit RLE algorithm 1507 --disable-logluv disable support for LogLuv high dynamic range 1508 encoding 1509 --disable-mdi disable support for Microsoft Document Imaging 1510 --disable-zlib disable Zlib usage (required for Deflate 1511 compression, enabled by default) 1512 --disable-pixarlog disable support for Pixar log-format algorithm 1513 (requires Zlib) 1514 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1515 compression, enabled by default) 1516 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1517 enabled by default) 1518 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1519 compression, enabled by default) 1520 --disable-lzma disable liblzma usage (required for LZMA2 1521 compression, enabled by default) 1522 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1523 --enable-cxx enable C++ stream API building (requires C++ 1524 compiler) 1525 --disable-win32-io disable Win32 I/O (Windows only, enabled by default 1526 except for Cygwin) 1527 --disable-strip-chopping 1528 disable support for strip chopping (whether or not 1529 to convert single-strip uncompressed images to 1530 mutiple strips of specified size to reduce memory 1531 usage) 1532 --enable-defer-strile-load 1533 enable deferred strip/tile offset/size loading 1534 (experimental) 1535 --enable-chunky-strip-read 1536 enable reading large strips in chunks for 1537 TIFFReadScanline() (experimental) 1538 --disable-extrasample-as-alpha 1539 the RGBA interface will treat a fourth sample with 1540 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1541 packages produce RGBA files but don't mark the alpha 1542 properly 1543 --disable-check-ycbcr-subsampling 1544 disable picking up YCbCr subsampling info from the 1545 JPEG data stream to support files lacking the tag 1546 1547Optional Packages: 1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1551 both] 1552 --with-aix-soname=aix|svr4|both 1553 shared library versioning (aka "SONAME") variant to 1554 provide on AIX, [default=aix]. 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1557 compiler's sysroot if not specified). 1558 --with-docdir=DIR directory where documentation should be installed 1559 --with-zlib-include-dir=DIR 1560 location of Zlib headers 1561 --with-zlib-lib-dir=DIR location of Zlib library binary 1562 --with-jpeg-include-dir=DIR 1563 location of IJG JPEG library headers 1564 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1565 --with-jbig-include-dir=DIR 1566 location of JBIG-KIT headers 1567 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1568 --with-lzma-include-dir=DIR 1569 location of liblzma headers 1570 --with-lzma-lib-dir=DIR location of liblzma library binary 1571 --with-jpeg12-include-dir=DIR 1572 location of libjpeg 12bit headers 1573 --with-jpeg12-lib=LIBRARY 1574 path to libjpeg 12bit library 1575 --with-x use the X Window System 1576 --with-default-strip-size=SIZE 1577 default size of the strip in bytes (when strip 1578 chopping enabled) [[default=8192]] 1579 1580Some influential environment variables: 1581 CC C compiler command 1582 CFLAGS C compiler flags 1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1584 nonstandard directory <lib dir> 1585 LIBS libraries to pass to the linker, e.g. -l<library> 1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1587 you have headers in a nonstandard directory <include dir> 1588 CPP C preprocessor 1589 CXX C++ compiler command 1590 CXXFLAGS C++ compiler flags 1591 CXXCPP C++ preprocessor 1592 XMKMF Path to xmkmf, Makefile generator for X Window System 1593 1594Use these variables to override the choices made by `configure' or to help 1595it to find libraries and programs with nonstandard names/locations. 1596 1597Report bugs to <[email protected]>. 1598_ACEOF 1599ac_status=$? 1600fi 1601 1602if test "$ac_init_help" = "recursive"; then 1603 # If there are subdirs, report their specific --help. 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1605 test -d "$ac_dir" || 1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1607 continue 1608 ac_builddir=. 1609 1610case "$ac_dir" in 1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1612*) 1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1614 # A ".." for each directory in $ac_dir_suffix. 1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1616 case $ac_top_builddir_sub in 1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1619 esac ;; 1620esac 1621ac_abs_top_builddir=$ac_pwd 1622ac_abs_builddir=$ac_pwd$ac_dir_suffix 1623# for backward compatibility: 1624ac_top_builddir=$ac_top_build_prefix 1625 1626case $srcdir in 1627 .) # We are building in place. 1628 ac_srcdir=. 1629 ac_top_srcdir=$ac_top_builddir_sub 1630 ac_abs_top_srcdir=$ac_pwd ;; 1631 [\\/]* | ?:[\\/]* ) # Absolute name. 1632 ac_srcdir=$srcdir$ac_dir_suffix; 1633 ac_top_srcdir=$srcdir 1634 ac_abs_top_srcdir=$srcdir ;; 1635 *) # Relative name. 1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1637 ac_top_srcdir=$ac_top_build_prefix$srcdir 1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1639esac 1640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1641 1642 cd "$ac_dir" || { ac_status=$?; continue; } 1643 # Check for guested configure. 1644 if test -f "$ac_srcdir/configure.gnu"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1647 elif test -f "$ac_srcdir/configure"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure" --help=recursive 1650 else 1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1652 fi || ac_status=$? 1653 cd "$ac_pwd" || { ac_status=$?; break; } 1654 done 1655fi 1656 1657test -n "$ac_init_help" && exit $ac_status 1658if $ac_init_version; then 1659 cat <<\_ACEOF 1660LibTIFF Software configure 4.0.4beta 1661generated by GNU Autoconf 2.69 1662 1663Copyright (C) 2012 Free Software Foundation, Inc. 1664This configure script is free software; the Free Software Foundation 1665gives unlimited permission to copy, distribute and modify it. 1666_ACEOF 1667 exit 1668fi 1669 1670## ------------------------ ## 1671## Autoconf initialization. ## 1672## ------------------------ ## 1673 1674# ac_fn_c_try_compile LINENO 1675# -------------------------- 1676# Try to compile conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_compile () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext 1681 if { { ac_try="$ac_compile" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_compile") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest.$ac_objext; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_compile 1711 1712# ac_fn_c_try_link LINENO 1713# ----------------------- 1714# Try to link conftest.$ac_ext, and return whether this succeeded. 1715ac_fn_c_try_link () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 rm -f conftest.$ac_objext conftest$ac_exeext 1719 if { { ac_try="$ac_link" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>conftest.err 1727 ac_status=$? 1728 if test -s conftest.err; then 1729 grep -v '^ *+' conftest.err >conftest.er1 1730 cat conftest.er1 >&5 1731 mv -f conftest.er1 conftest.err 1732 fi 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { 1735 test -z "$ac_c_werror_flag" || 1736 test ! -s conftest.err 1737 } && test -s conftest$ac_exeext && { 1738 test "$cross_compiling" = yes || 1739 test -x conftest$ac_exeext 1740 }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747fi 1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1750 # interfere with the next link command; also delete a directory that is 1751 # left behind by Apple's compiler. We do this before executing the actions. 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_link 1757 1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1759# ------------------------------------------------------- 1760# Tests whether HEADER exists and can be compiled using the include files in 1761# INCLUDES, setting the cache variable VAR accordingly. 1762ac_fn_c_check_header_compile () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773#include <$2> 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 eval "$3=yes" 1777else 1778 eval "$3=no" 1779fi 1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_header_compile 1788 1789# ac_fn_c_try_cpp LINENO 1790# ---------------------- 1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1792ac_fn_c_try_cpp () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_cpp conftest.$ac_ext" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } > conftest.i && { 1811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_cpp 1825 1826# ac_fn_c_try_run LINENO 1827# ---------------------- 1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1829# that executables *can* be run. 1830ac_fn_c_try_run () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if { { ac_try="$ac_link" 1834case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_link") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1844 { { case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_try") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; }; }; then : 1854 ac_retval=0 1855else 1856 $as_echo "$as_me: program exited with status $ac_status" >&5 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=$ac_status 1861fi 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_c_try_run 1867 1868# ac_fn_c_check_func LINENO FUNC VAR 1869# ---------------------------------- 1870# Tests whether FUNC exists, setting the cache variable VAR accordingly 1871ac_fn_c_check_func () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1883#define $2 innocuous_$2 1884 1885/* System header to define __stub macros and hopefully few prototypes, 1886 which can conflict with char $2 (); below. 1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1888 <limits.h> exists even on freestanding compilers. */ 1889 1890#ifdef __STDC__ 1891# include <limits.h> 1892#else 1893# include <assert.h> 1894#endif 1895 1896#undef $2 1897 1898/* Override any GCC internal prototype to avoid an error. 1899 Use char because int might match the return type of a GCC 1900 builtin and then its argument prototype would still apply. */ 1901#ifdef __cplusplus 1902extern "C" 1903#endif 1904char $2 (); 1905/* The GNU C library defines this for functions which it implements 1906 to always fail with ENOSYS. Some functions are actually named 1907 something starting with __ and the normal name is an alias. */ 1908#if defined __stub_$2 || defined __stub___$2 1909choke me 1910#endif 1911 1912int 1913main () 1914{ 1915return $2 (); 1916 ; 1917 return 0; 1918} 1919_ACEOF 1920if ac_fn_c_try_link "$LINENO"; then : 1921 eval "$3=yes" 1922else 1923 eval "$3=no" 1924fi 1925rm -f core conftest.err conftest.$ac_objext \ 1926 conftest$ac_exeext conftest.$ac_ext 1927fi 1928eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930$as_echo "$ac_res" >&6; } 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932 1933} # ac_fn_c_check_func 1934 1935# ac_fn_cxx_try_compile LINENO 1936# ---------------------------- 1937# Try to compile conftest.$ac_ext, and return whether this succeeded. 1938ac_fn_cxx_try_compile () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 rm -f conftest.$ac_objext 1942 if { { ac_try="$ac_compile" 1943case "(($ac_try" in 1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1945 *) ac_try_echo=$ac_try;; 1946esac 1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1948$as_echo "$ac_try_echo"; } >&5 1949 (eval "$ac_compile") 2>conftest.err 1950 ac_status=$? 1951 if test -s conftest.err; then 1952 grep -v '^ *+' conftest.err >conftest.er1 1953 cat conftest.er1 >&5 1954 mv -f conftest.er1 conftest.err 1955 fi 1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1957 test $ac_status = 0; } && { 1958 test -z "$ac_cxx_werror_flag" || 1959 test ! -s conftest.err 1960 } && test -s conftest.$ac_objext; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: failed program was:" >&5 1964sed 's/^/| /' conftest.$ac_ext >&5 1965 1966 ac_retval=1 1967fi 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 as_fn_set_status $ac_retval 1970 1971} # ac_fn_cxx_try_compile 1972 1973# ac_fn_cxx_try_cpp LINENO 1974# ------------------------ 1975# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1976ac_fn_cxx_try_cpp () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 if { { ac_try="$ac_cpp conftest.$ac_ext" 1980case "(($ac_try" in 1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1982 *) ac_try_echo=$ac_try;; 1983esac 1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1985$as_echo "$ac_try_echo"; } >&5 1986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1987 ac_status=$? 1988 if test -s conftest.err; then 1989 grep -v '^ *+' conftest.err >conftest.er1 1990 cat conftest.er1 >&5 1991 mv -f conftest.er1 conftest.err 1992 fi 1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1994 test $ac_status = 0; } > conftest.i && { 1995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1996 test ! -s conftest.err 1997 }; then : 1998 ac_retval=0 1999else 2000 $as_echo "$as_me: failed program was:" >&5 2001sed 's/^/| /' conftest.$ac_ext >&5 2002 2003 ac_retval=1 2004fi 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_cxx_try_cpp 2009 2010# ac_fn_cxx_try_link LINENO 2011# ------------------------- 2012# Try to link conftest.$ac_ext, and return whether this succeeded. 2013ac_fn_cxx_try_link () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 rm -f conftest.$ac_objext conftest$ac_exeext 2017 if { { ac_try="$ac_link" 2018case "(($ac_try" in 2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2020 *) ac_try_echo=$ac_try;; 2021esac 2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2023$as_echo "$ac_try_echo"; } >&5 2024 (eval "$ac_link") 2>conftest.err 2025 ac_status=$? 2026 if test -s conftest.err; then 2027 grep -v '^ *+' conftest.err >conftest.er1 2028 cat conftest.er1 >&5 2029 mv -f conftest.er1 conftest.err 2030 fi 2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2032 test $ac_status = 0; } && { 2033 test -z "$ac_cxx_werror_flag" || 2034 test ! -s conftest.err 2035 } && test -s conftest$ac_exeext && { 2036 test "$cross_compiling" = yes || 2037 test -x conftest$ac_exeext 2038 }; then : 2039 ac_retval=0 2040else 2041 $as_echo "$as_me: failed program was:" >&5 2042sed 's/^/| /' conftest.$ac_ext >&5 2043 2044 ac_retval=1 2045fi 2046 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2047 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2048 # interfere with the next link command; also delete a directory that is 2049 # left behind by Apple's compiler. We do this before executing the actions. 2050 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 as_fn_set_status $ac_retval 2053 2054} # ac_fn_cxx_try_link 2055 2056# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2057# ------------------------------------------------------- 2058# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2059# the include files in INCLUDES and setting the cache variable VAR 2060# accordingly. 2061ac_fn_c_check_header_mongrel () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 if eval \${$3+:} false; then : 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2066$as_echo_n "checking for $2... " >&6; } 2067if eval \${$3+:} false; then : 2068 $as_echo_n "(cached) " >&6 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073else 2074 # Is the header compilable? 2075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2076$as_echo_n "checking $2 usability... " >&6; } 2077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080#include <$2> 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO"; then : 2083 ac_header_compiler=yes 2084else 2085 ac_header_compiler=no 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2089$as_echo "$ac_header_compiler" >&6; } 2090 2091# Is the header present? 2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2093$as_echo_n "checking $2 presence... " >&6; } 2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096#include <$2> 2097_ACEOF 2098if ac_fn_c_try_cpp "$LINENO"; then : 2099 ac_header_preproc=yes 2100else 2101 ac_header_preproc=no 2102fi 2103rm -f conftest.err conftest.i conftest.$ac_ext 2104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2105$as_echo "$ac_header_preproc" >&6; } 2106 2107# So? What about this header? 2108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2109 yes:no: ) 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2111$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2114 ;; 2115 no:yes:* ) 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2117$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2119$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2121$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2123$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2125$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2126( $as_echo "## -------------------------------------- ## 2127## Report this to [email protected] ## 2128## -------------------------------------- ##" 2129 ) | sed "s/^/$as_me: WARNING: /" >&2 2130 ;; 2131esac 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2133$as_echo_n "checking for $2... " >&6; } 2134if eval \${$3+:} false; then : 2135 $as_echo_n "(cached) " >&6 2136else 2137 eval "$3=\$ac_header_compiler" 2138fi 2139eval ac_res=\$$3 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2141$as_echo "$ac_res" >&6; } 2142fi 2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2144 2145} # ac_fn_c_check_header_mongrel 2146 2147# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2148# ------------------------------------------- 2149# Tests whether TYPE exists after having included INCLUDES, setting cache 2150# variable VAR accordingly. 2151ac_fn_c_check_type () 2152{ 2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155$as_echo_n "checking for $2... " >&6; } 2156if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158else 2159 eval "$3=no" 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$4 2163int 2164main () 2165{ 2166if (sizeof ($2)) 2167 return 0; 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174/* end confdefs.h. */ 2175$4 2176int 2177main () 2178{ 2179if (sizeof (($2))) 2180 return 0; 2181 ; 2182 return 0; 2183} 2184_ACEOF 2185if ac_fn_c_try_compile "$LINENO"; then : 2186 2187else 2188 eval "$3=yes" 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193fi 2194eval ac_res=\$$3 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2196$as_echo "$ac_res" >&6; } 2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2198 2199} # ac_fn_c_check_type 2200 2201# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2202# --------------------------------------------- 2203# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2204# accordingly. 2205ac_fn_c_check_decl () 2206{ 2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2208 as_decl_name=`echo $2|sed 's/ *(.*//'` 2209 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2211$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2212if eval \${$3+:} false; then : 2213 $as_echo_n "(cached) " >&6 2214else 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$4 2218int 2219main () 2220{ 2221#ifndef $as_decl_name 2222#ifdef __cplusplus 2223 (void) $as_decl_use; 2224#else 2225 (void) $as_decl_name; 2226#endif 2227#endif 2228 2229 ; 2230 return 0; 2231} 2232_ACEOF 2233if ac_fn_c_try_compile "$LINENO"; then : 2234 eval "$3=yes" 2235else 2236 eval "$3=no" 2237fi 2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2239fi 2240eval ac_res=\$$3 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2242$as_echo "$ac_res" >&6; } 2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2244 2245} # ac_fn_c_check_decl 2246 2247# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2248# -------------------------------------------- 2249# Tries to find the compile-time value of EXPR in a program that includes 2250# INCLUDES, setting VAR accordingly. Returns whether the value could be 2251# computed 2252ac_fn_c_compute_int () 2253{ 2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2255 if test "$cross_compiling" = yes; then 2256 # Depending upon the size, compute the lo and hi bounds. 2257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2258/* end confdefs.h. */ 2259$4 2260int 2261main () 2262{ 2263static int test_array [1 - 2 * !(($2) >= 0)]; 2264test_array [0] = 0; 2265return test_array [0]; 2266 2267 ; 2268 return 0; 2269} 2270_ACEOF 2271if ac_fn_c_try_compile "$LINENO"; then : 2272 ac_lo=0 ac_mid=0 2273 while :; do 2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2275/* end confdefs.h. */ 2276$4 2277int 2278main () 2279{ 2280static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2281test_array [0] = 0; 2282return test_array [0]; 2283 2284 ; 2285 return 0; 2286} 2287_ACEOF 2288if ac_fn_c_try_compile "$LINENO"; then : 2289 ac_hi=$ac_mid; break 2290else 2291 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2292 if test $ac_lo -le $ac_mid; then 2293 ac_lo= ac_hi= 2294 break 2295 fi 2296 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2297fi 2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2299 done 2300else 2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2302/* end confdefs.h. */ 2303$4 2304int 2305main () 2306{ 2307static int test_array [1 - 2 * !(($2) < 0)]; 2308test_array [0] = 0; 2309return test_array [0]; 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 ac_hi=-1 ac_mid=-1 2317 while :; do 2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2319/* end confdefs.h. */ 2320$4 2321int 2322main () 2323{ 2324static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2325test_array [0] = 0; 2326return test_array [0]; 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_compile "$LINENO"; then : 2333 ac_lo=$ac_mid; break 2334else 2335 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2336 if test $ac_mid -le $ac_hi; then 2337 ac_lo= ac_hi= 2338 break 2339 fi 2340 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2341fi 2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2343 done 2344else 2345 ac_lo= ac_hi= 2346fi 2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2348fi 2349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2350# Binary search between lo and hi bounds. 2351while test "x$ac_lo" != "x$ac_hi"; do 2352 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2354/* end confdefs.h. */ 2355$4 2356int 2357main () 2358{ 2359static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2360test_array [0] = 0; 2361return test_array [0]; 2362 2363 ; 2364 return 0; 2365} 2366_ACEOF 2367if ac_fn_c_try_compile "$LINENO"; then : 2368 ac_hi=$ac_mid 2369else 2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2371fi 2372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2373done 2374case $ac_lo in #(( 2375?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2376'') ac_retval=1 ;; 2377esac 2378 else 2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2380/* end confdefs.h. */ 2381$4 2382static long int longval () { return $2; } 2383static unsigned long int ulongval () { return $2; } 2384#include <stdio.h> 2385#include <stdlib.h> 2386int 2387main () 2388{ 2389 2390 FILE *f = fopen ("conftest.val", "w"); 2391 if (! f) 2392 return 1; 2393 if (($2) < 0) 2394 { 2395 long int i = longval (); 2396 if (i != ($2)) 2397 return 1; 2398 fprintf (f, "%ld", i); 2399 } 2400 else 2401 { 2402 unsigned long int i = ulongval (); 2403 if (i != ($2)) 2404 return 1; 2405 fprintf (f, "%lu", i); 2406 } 2407 /* Do not output a trailing newline, as this causes \r\n confusion 2408 on some platforms. */ 2409 return ferror (f) || fclose (f) != 0; 2410 2411 ; 2412 return 0; 2413} 2414_ACEOF 2415if ac_fn_c_try_run "$LINENO"; then : 2416 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2417else 2418 ac_retval=1 2419fi 2420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2421 conftest.$ac_objext conftest.beam conftest.$ac_ext 2422rm -f conftest.val 2423 2424 fi 2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2426 as_fn_set_status $ac_retval 2427 2428} # ac_fn_c_compute_int 2429cat >config.log <<_ACEOF 2430This file contains any messages produced by compilers while 2431running configure, to aid debugging if configure makes a mistake. 2432 2433It was created by LibTIFF Software $as_me 4.0.4beta, which was 2434generated by GNU Autoconf 2.69. Invocation command line was 2435 2436 $ $0 $@ 2437 2438_ACEOF 2439exec 5>>config.log 2440{ 2441cat <<_ASUNAME 2442## --------- ## 2443## Platform. ## 2444## --------- ## 2445 2446hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2447uname -m = `(uname -m) 2>/dev/null || echo unknown` 2448uname -r = `(uname -r) 2>/dev/null || echo unknown` 2449uname -s = `(uname -s) 2>/dev/null || echo unknown` 2450uname -v = `(uname -v) 2>/dev/null || echo unknown` 2451 2452/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2453/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2454 2455/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2456/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2457/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2458/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2459/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2460/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2461/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2462 2463_ASUNAME 2464 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 $as_echo "PATH: $as_dir" 2471 done 2472IFS=$as_save_IFS 2473 2474} >&5 2475 2476cat >&5 <<_ACEOF 2477 2478 2479## ----------- ## 2480## Core tests. ## 2481## ----------- ## 2482 2483_ACEOF 2484 2485 2486# Keep a trace of the command line. 2487# Strip out --no-create and --no-recursion so they do not pile up. 2488# Strip out --silent because we don't want to record it for future runs. 2489# Also quote any args containing shell meta-characters. 2490# Make two passes to allow for proper duplicate-argument suppression. 2491ac_configure_args= 2492ac_configure_args0= 2493ac_configure_args1= 2494ac_must_keep_next=false 2495for ac_pass in 1 2 2496do 2497 for ac_arg 2498 do 2499 case $ac_arg in 2500 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2502 | -silent | --silent | --silen | --sile | --sil) 2503 continue ;; 2504 *\'*) 2505 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2506 esac 2507 case $ac_pass in 2508 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2509 2) 2510 as_fn_append ac_configure_args1 " '$ac_arg'" 2511 if test $ac_must_keep_next = true; then 2512 ac_must_keep_next=false # Got value, back to normal. 2513 else 2514 case $ac_arg in 2515 *=* | --config-cache | -C | -disable-* | --disable-* \ 2516 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2517 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2518 | -with-* | --with-* | -without-* | --without-* | --x) 2519 case "$ac_configure_args0 " in 2520 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2521 esac 2522 ;; 2523 -* ) ac_must_keep_next=true ;; 2524 esac 2525 fi 2526 as_fn_append ac_configure_args " '$ac_arg'" 2527 ;; 2528 esac 2529 done 2530done 2531{ ac_configure_args0=; unset ac_configure_args0;} 2532{ ac_configure_args1=; unset ac_configure_args1;} 2533 2534# When interrupted or exit'd, cleanup temporary files, and complete 2535# config.log. We remove comments because anyway the quotes in there 2536# would cause problems or look ugly. 2537# WARNING: Use '\'' to represent an apostrophe within the trap. 2538# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2539trap 'exit_status=$? 2540 # Save into config.log some information that might help in debugging. 2541 { 2542 echo 2543 2544 $as_echo "## ---------------- ## 2545## Cache variables. ## 2546## ---------------- ##" 2547 echo 2548 # The following way of writing the cache mishandles newlines in values, 2549( 2550 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2551 eval ac_val=\$$ac_var 2552 case $ac_val in #( 2553 *${as_nl}*) 2554 case $ac_var in #( 2555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2556$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2557 esac 2558 case $ac_var in #( 2559 _ | IFS | as_nl) ;; #( 2560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2561 *) { eval $ac_var=; unset $ac_var;} ;; 2562 esac ;; 2563 esac 2564 done 2565 (set) 2>&1 | 2566 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2567 *${as_nl}ac_space=\ *) 2568 sed -n \ 2569 "s/'\''/'\''\\\\'\'''\''/g; 2570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2571 ;; #( 2572 *) 2573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2574 ;; 2575 esac | 2576 sort 2577) 2578 echo 2579 2580 $as_echo "## ----------------- ## 2581## Output variables. ## 2582## ----------------- ##" 2583 echo 2584 for ac_var in $ac_subst_vars 2585 do 2586 eval ac_val=\$$ac_var 2587 case $ac_val in 2588 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2589 esac 2590 $as_echo "$ac_var='\''$ac_val'\''" 2591 done | sort 2592 echo 2593 2594 if test -n "$ac_subst_files"; then 2595 $as_echo "## ------------------- ## 2596## File substitutions. ## 2597## ------------------- ##" 2598 echo 2599 for ac_var in $ac_subst_files 2600 do 2601 eval ac_val=\$$ac_var 2602 case $ac_val in 2603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2604 esac 2605 $as_echo "$ac_var='\''$ac_val'\''" 2606 done | sort 2607 echo 2608 fi 2609 2610 if test -s confdefs.h; then 2611 $as_echo "## ----------- ## 2612## confdefs.h. ## 2613## ----------- ##" 2614 echo 2615 cat confdefs.h 2616 echo 2617 fi 2618 test "$ac_signal" != 0 && 2619 $as_echo "$as_me: caught signal $ac_signal" 2620 $as_echo "$as_me: exit $exit_status" 2621 } >&5 2622 rm -f core *.core core.conftest.* && 2623 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2624 exit $exit_status 2625' 0 2626for ac_signal in 1 2 13 15; do 2627 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2628done 2629ac_signal=0 2630 2631# confdefs.h avoids OS command line length limits that DEFS can exceed. 2632rm -f -r conftest* confdefs.h 2633 2634$as_echo "/* confdefs.h */" > confdefs.h 2635 2636# Predefined preprocessor variables. 2637 2638cat >>confdefs.h <<_ACEOF 2639#define PACKAGE_NAME "$PACKAGE_NAME" 2640_ACEOF 2641 2642cat >>confdefs.h <<_ACEOF 2643#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2644_ACEOF 2645 2646cat >>confdefs.h <<_ACEOF 2647#define PACKAGE_VERSION "$PACKAGE_VERSION" 2648_ACEOF 2649 2650cat >>confdefs.h <<_ACEOF 2651#define PACKAGE_STRING "$PACKAGE_STRING" 2652_ACEOF 2653 2654cat >>confdefs.h <<_ACEOF 2655#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2656_ACEOF 2657 2658cat >>confdefs.h <<_ACEOF 2659#define PACKAGE_URL "$PACKAGE_URL" 2660_ACEOF 2661 2662 2663# Let the site file select an alternate cache file if it wants to. 2664# Prefer an explicitly selected file to automatically selected ones. 2665ac_site_file1=NONE 2666ac_site_file2=NONE 2667if test -n "$CONFIG_SITE"; then 2668 # We do not want a PATH search for config.site. 2669 case $CONFIG_SITE in #(( 2670 -*) ac_site_file1=./$CONFIG_SITE;; 2671 */*) ac_site_file1=$CONFIG_SITE;; 2672 *) ac_site_file1=./$CONFIG_SITE;; 2673 esac 2674elif test "x$prefix" != xNONE; then 2675 ac_site_file1=$prefix/share/config.site 2676 ac_site_file2=$prefix/etc/config.site 2677else 2678 ac_site_file1=$ac_default_prefix/share/config.site 2679 ac_site_file2=$ac_default_prefix/etc/config.site 2680fi 2681for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2682do 2683 test "x$ac_site_file" = xNONE && continue 2684 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2686$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2687 sed 's/^/| /' "$ac_site_file" >&5 2688 . "$ac_site_file" \ 2689 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2691as_fn_error $? "failed to load site script $ac_site_file 2692See \`config.log' for more details" "$LINENO" 5; } 2693 fi 2694done 2695 2696if test -r "$cache_file"; then 2697 # Some versions of bash will fail to source /dev/null (special files 2698 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2699 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2701$as_echo "$as_me: loading cache $cache_file" >&6;} 2702 case $cache_file in 2703 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2704 *) . "./$cache_file";; 2705 esac 2706 fi 2707else 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2709$as_echo "$as_me: creating cache $cache_file" >&6;} 2710 >$cache_file 2711fi 2712 2713# Check that the precious variables saved in the cache have kept the same 2714# value. 2715ac_cache_corrupted=false 2716for ac_var in $ac_precious_vars; do 2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2718 eval ac_new_set=\$ac_env_${ac_var}_set 2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2720 eval ac_new_val=\$ac_env_${ac_var}_value 2721 case $ac_old_set,$ac_new_set in 2722 set,) 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2724$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2725 ac_cache_corrupted=: ;; 2726 ,set) 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2728$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2729 ac_cache_corrupted=: ;; 2730 ,);; 2731 *) 2732 if test "x$ac_old_val" != "x$ac_new_val"; then 2733 # differences in whitespace do not lead to failure. 2734 ac_old_val_w=`echo x $ac_old_val` 2735 ac_new_val_w=`echo x $ac_new_val` 2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2738$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2739 ac_cache_corrupted=: 2740 else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2742$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2743 eval $ac_var=\$ac_old_val 2744 fi 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2746$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2748$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2749 fi;; 2750 esac 2751 # Pass precious variables to config.status. 2752 if test "$ac_new_set" = set; then 2753 case $ac_new_val in 2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2755 *) ac_arg=$ac_var=$ac_new_val ;; 2756 esac 2757 case " $ac_configure_args " in 2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2760 esac 2761 fi 2762done 2763if $ac_cache_corrupted; then 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2767$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2768 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2769fi 2770## -------------------- ## 2771## Main body of script. ## 2772## -------------------- ## 2773 2774ac_ext=c 2775ac_cpp='$CPP $CPPFLAGS' 2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778ac_compiler_gnu=$ac_cv_c_compiler_gnu 2779 2780 2781ac_aux_dir= 2782for ac_dir in config "$srcdir"/config; do 2783 if test -f "$ac_dir/install-sh"; then 2784 ac_aux_dir=$ac_dir 2785 ac_install_sh="$ac_aux_dir/install-sh -c" 2786 break 2787 elif test -f "$ac_dir/install.sh"; then 2788 ac_aux_dir=$ac_dir 2789 ac_install_sh="$ac_aux_dir/install.sh -c" 2790 break 2791 elif test -f "$ac_dir/shtool"; then 2792 ac_aux_dir=$ac_dir 2793 ac_install_sh="$ac_aux_dir/shtool install -c" 2794 break 2795 fi 2796done 2797if test -z "$ac_aux_dir"; then 2798 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2799fi 2800 2801# These three variables are undocumented and unsupported, 2802# and are intended to be withdrawn in a future Autoconf release. 2803# They can cause serious problems if a builder's source tree is in a directory 2804# whose full name contains unusual characters. 2805ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2806ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2807ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2808 2809 2810 2811ac_ext=c 2812ac_cpp='$CPP $CPPFLAGS' 2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2815ac_compiler_gnu=$ac_cv_c_compiler_gnu 2816 2817 2818# Make sure we can run config.sub. 2819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2821 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2823$as_echo_n "checking build system type... " >&6; } 2824if ${ac_cv_build+:} false; then : 2825 $as_echo_n "(cached) " >&6 2826else 2827 ac_build_alias=$build_alias 2828test "x$ac_build_alias" = x && 2829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2830test "x$ac_build_alias" = x && 2831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2834 2835fi 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2837$as_echo "$ac_cv_build" >&6; } 2838case $ac_cv_build in 2839*-*-*) ;; 2840*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2841esac 2842build=$ac_cv_build 2843ac_save_IFS=$IFS; IFS='-' 2844set x $ac_cv_build 2845shift 2846build_cpu=$1 2847build_vendor=$2 2848shift; shift 2849# Remember, the first character of IFS is used to create $*, 2850# except with old shells: 2851build_os=$* 2852IFS=$ac_save_IFS 2853case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2854 2855 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2857$as_echo_n "checking host system type... " >&6; } 2858if ${ac_cv_host+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 if test "x$host_alias" = x; then 2862 ac_cv_host=$ac_cv_build 2863else 2864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2866fi 2867 2868fi 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2870$as_echo "$ac_cv_host" >&6; } 2871case $ac_cv_host in 2872*-*-*) ;; 2873*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2874esac 2875host=$ac_cv_host 2876ac_save_IFS=$IFS; IFS='-' 2877set x $ac_cv_host 2878shift 2879host_cpu=$1 2880host_vendor=$2 2881shift; shift 2882# Remember, the first character of IFS is used to create $*, 2883# except with old shells: 2884host_os=$* 2885IFS=$ac_save_IFS 2886case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2887 2888 2889 2890am__api_version='1.15' 2891 2892# Find a good install program. We prefer a C program (faster), 2893# so one script is as good as another. But avoid the broken or 2894# incompatible versions: 2895# SysV /etc/install, /usr/sbin/install 2896# SunOS /usr/etc/install 2897# IRIX /sbin/install 2898# AIX /bin/install 2899# AmigaOS /C/install, which installs bootblocks on floppy discs 2900# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2901# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2902# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2903# OS/2's system install, which has a completely different semantic 2904# ./install, which can be erroneously created by make from ./install.sh. 2905# Reject install programs that cannot install multiple files. 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2907$as_echo_n "checking for a BSD-compatible install... " >&6; } 2908if test -z "$INSTALL"; then 2909if ${ac_cv_path_install+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 # Account for people who put trailing slashes in PATH elements. 2918case $as_dir/ in #(( 2919 ./ | .// | /[cC]/* | \ 2920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2922 /usr/ucb/* ) ;; 2923 *) 2924 # OSF1 and SCO ODT 3.0 have their own names for install. 2925 # Don't use installbsd from OSF since it installs stuff as root 2926 # by default. 2927 for ac_prog in ginstall scoinst install; do 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2930 if test $ac_prog = install && 2931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2932 # AIX install. It has an incompatible calling convention. 2933 : 2934 elif test $ac_prog = install && 2935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2936 # program-specific install script used by HP pwplus--don't use. 2937 : 2938 else 2939 rm -rf conftest.one conftest.two conftest.dir 2940 echo one > conftest.one 2941 echo two > conftest.two 2942 mkdir conftest.dir 2943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2944 test -s conftest.one && test -s conftest.two && 2945 test -s conftest.dir/conftest.one && 2946 test -s conftest.dir/conftest.two 2947 then 2948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2949 break 3 2950 fi 2951 fi 2952 fi 2953 done 2954 done 2955 ;; 2956esac 2957 2958 done 2959IFS=$as_save_IFS 2960 2961rm -rf conftest.one conftest.two conftest.dir 2962 2963fi 2964 if test "${ac_cv_path_install+set}" = set; then 2965 INSTALL=$ac_cv_path_install 2966 else 2967 # As a last resort, use the slow shell script. Don't cache a 2968 # value for INSTALL within a source directory, because that will 2969 # break other packages using the cache if that directory is 2970 # removed, or if the value is a relative name. 2971 INSTALL=$ac_install_sh 2972 fi 2973fi 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2975$as_echo "$INSTALL" >&6; } 2976 2977# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2978# It thinks the first close brace ends the variable substitution. 2979test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2980 2981test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2982 2983test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2984 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2986$as_echo_n "checking whether build environment is sane... " >&6; } 2987# Reject unsafe characters in $srcdir or the absolute working directory 2988# name. Accept space and tab only in the latter. 2989am_lf=' 2990' 2991case `pwd` in 2992 *[\\\"\#\$\&\'\`$am_lf]*) 2993 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2994esac 2995case $srcdir in 2996 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2997 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2998esac 2999 3000# Do 'set' in a subshell so we don't clobber the current shell's 3001# arguments. Must try -L first in case configure is actually a 3002# symlink; some systems play weird games with the mod time of symlinks 3003# (eg FreeBSD returns the mod time of the symlink's containing 3004# directory). 3005if ( 3006 am_has_slept=no 3007 for am_try in 1 2; do 3008 echo "timestamp, slept: $am_has_slept" > conftest.file 3009 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3010 if test "$*" = "X"; then 3011 # -L didn't work. 3012 set X `ls -t "$srcdir/configure" conftest.file` 3013 fi 3014 if test "$*" != "X $srcdir/configure conftest.file" \ 3015 && test "$*" != "X conftest.file $srcdir/configure"; then 3016 3017 # If neither matched, then we have a broken ls. This can happen 3018 # if, for instance, CONFIG_SHELL is bash and it inherits a 3019 # broken ls alias from the environment. This has actually 3020 # happened. Such a system could not be considered "sane". 3021 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3022 alias in your environment" "$LINENO" 5 3023 fi 3024 if test "$2" = conftest.file || test $am_try -eq 2; then 3025 break 3026 fi 3027 # Just in case. 3028 sleep 1 3029 am_has_slept=yes 3030 done 3031 test "$2" = conftest.file 3032 ) 3033then 3034 # Ok. 3035 : 3036else 3037 as_fn_error $? "newly created file is older than distributed files! 3038Check your system clock" "$LINENO" 5 3039fi 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3041$as_echo "yes" >&6; } 3042# If we didn't sleep, we still need to ensure time stamps of config.status and 3043# generated files are strictly newer. 3044am_sleep_pid= 3045if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3046 ( sleep 1 ) & 3047 am_sleep_pid=$! 3048fi 3049 3050rm -f conftest.file 3051 3052test "$program_prefix" != NONE && 3053 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3054# Use a double $ so make ignores it. 3055test "$program_suffix" != NONE && 3056 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3057# Double any \ or $. 3058# By default was `s,x,x', remove it if useless. 3059ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3060program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3061 3062# Expand $ac_aux_dir to an absolute path. 3063am_aux_dir=`cd "$ac_aux_dir" && pwd` 3064 3065if test x"${MISSING+set}" != xset; then 3066 case $am_aux_dir in 3067 *\ * | *\ *) 3068 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3069 *) 3070 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3071 esac 3072fi 3073# Use eval to expand $SHELL 3074if eval "$MISSING --is-lightweight"; then 3075 am_missing_run="$MISSING " 3076else 3077 am_missing_run= 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3079$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3080fi 3081 3082if test x"${install_sh+set}" != xset; then 3083 case $am_aux_dir in 3084 *\ * | *\ *) 3085 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3086 *) 3087 install_sh="\${SHELL} $am_aux_dir/install-sh" 3088 esac 3089fi 3090 3091# Installed binaries are usually stripped using 'strip' when the user 3092# run "make install-strip". However 'strip' might not be the right 3093# tool to use in cross-compilation environments, therefore Automake 3094# will honor the 'STRIP' environment variable to overrule this program. 3095if test "$cross_compiling" != no; then 3096 if test -n "$ac_tool_prefix"; then 3097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3098set dummy ${ac_tool_prefix}strip; ac_word=$2 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100$as_echo_n "checking for $ac_word... " >&6; } 3101if ${ac_cv_prog_STRIP+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 if test -n "$STRIP"; then 3105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3106else 3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108for as_dir in $PATH 3109do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3114 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123fi 3124STRIP=$ac_cv_prog_STRIP 3125if test -n "$STRIP"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3127$as_echo "$STRIP" >&6; } 3128else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130$as_echo "no" >&6; } 3131fi 3132 3133 3134fi 3135if test -z "$ac_cv_prog_STRIP"; then 3136 ac_ct_STRIP=$STRIP 3137 # Extract the first word of "strip", so it can be a program name with args. 3138set dummy strip; ac_word=$2 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140$as_echo_n "checking for $ac_word... " >&6; } 3141if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$ac_ct_STRIP"; then 3145 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3146else 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3154 ac_cv_prog_ac_ct_STRIP="strip" 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3156 break 2 3157 fi 3158done 3159 done 3160IFS=$as_save_IFS 3161 3162fi 3163fi 3164ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3165if test -n "$ac_ct_STRIP"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3167$as_echo "$ac_ct_STRIP" >&6; } 3168else 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171fi 3172 3173 if test "x$ac_ct_STRIP" = x; then 3174 STRIP=":" 3175 else 3176 case $cross_compiling:$ac_tool_warned in 3177yes:) 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3180ac_tool_warned=yes ;; 3181esac 3182 STRIP=$ac_ct_STRIP 3183 fi 3184else 3185 STRIP="$ac_cv_prog_STRIP" 3186fi 3187 3188fi 3189INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3190 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3192$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3193if test -z "$MKDIR_P"; then 3194 if ${ac_cv_path_mkdir+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_prog in mkdir gmkdir; do 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3206 'mkdir (GNU coreutils) '* | \ 3207 'mkdir (coreutils) '* | \ 3208 'mkdir (fileutils) '4.1*) 3209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3210 break 3;; 3211 esac 3212 done 3213 done 3214 done 3215IFS=$as_save_IFS 3216 3217fi 3218 3219 test -d ./--version && rmdir ./--version 3220 if test "${ac_cv_path_mkdir+set}" = set; then 3221 MKDIR_P="$ac_cv_path_mkdir -p" 3222 else 3223 # As a last resort, use the slow shell script. Don't cache a 3224 # value for MKDIR_P within a source directory, because that will 3225 # break other packages using the cache if that directory is 3226 # removed, or if the value is a relative name. 3227 MKDIR_P="$ac_install_sh -d" 3228 fi 3229fi 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3231$as_echo "$MKDIR_P" >&6; } 3232 3233for ac_prog in gawk mawk nawk awk 3234do 3235 # Extract the first word of "$ac_prog", so it can be a program name with args. 3236set dummy $ac_prog; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_AWK+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$AWK"; then 3243 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_AWK="$ac_prog" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262AWK=$ac_cv_prog_AWK 3263if test -n "$AWK"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3265$as_echo "$AWK" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272 test -n "$AWK" && break 3273done 3274 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3276$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3277set x ${MAKE-make} 3278ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3279if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3280 $as_echo_n "(cached) " >&6 3281else 3282 cat >conftest.make <<\_ACEOF 3283SHELL = /bin/sh 3284all: 3285 @echo '@@@%%%=$(MAKE)=@@@%%%' 3286_ACEOF 3287# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3288case `${MAKE-make} -f conftest.make 2>/dev/null` in 3289 *@@@%%%=?*=@@@%%%*) 3290 eval ac_cv_prog_make_${ac_make}_set=yes;; 3291 *) 3292 eval ac_cv_prog_make_${ac_make}_set=no;; 3293esac 3294rm -f conftest.make 3295fi 3296if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3298$as_echo "yes" >&6; } 3299 SET_MAKE= 3300else 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302$as_echo "no" >&6; } 3303 SET_MAKE="MAKE=${MAKE-make}" 3304fi 3305 3306rm -rf .tst 2>/dev/null 3307mkdir .tst 2>/dev/null 3308if test -d .tst; then 3309 am__leading_dot=. 3310else 3311 am__leading_dot=_ 3312fi 3313rmdir .tst 2>/dev/null 3314 3315# Check whether --enable-silent-rules was given. 3316if test "${enable_silent_rules+set}" = set; then : 3317 enableval=$enable_silent_rules; 3318fi 3319 3320case $enable_silent_rules in # ((( 3321 yes) AM_DEFAULT_VERBOSITY=0;; 3322 no) AM_DEFAULT_VERBOSITY=1;; 3323 *) AM_DEFAULT_VERBOSITY=1;; 3324esac 3325am_make=${MAKE-make} 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3327$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3328if ${am_cv_make_support_nested_variables+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 if $as_echo 'TRUE=$(BAR$(V)) 3332BAR0=false 3333BAR1=true 3334V=1 3335am__doit: 3336 @$(TRUE) 3337.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3338 am_cv_make_support_nested_variables=yes 3339else 3340 am_cv_make_support_nested_variables=no 3341fi 3342fi 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3344$as_echo "$am_cv_make_support_nested_variables" >&6; } 3345if test $am_cv_make_support_nested_variables = yes; then 3346 AM_V='$(V)' 3347 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3348else 3349 AM_V=$AM_DEFAULT_VERBOSITY 3350 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3351fi 3352AM_BACKSLASH='\' 3353 3354if test "`cd $srcdir && pwd`" != "`pwd`"; then 3355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3356 # is not polluted with repeated "-I." 3357 am__isrc=' -I$(srcdir)' 3358 # test to see if srcdir already configured 3359 if test -f $srcdir/config.status; then 3360 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3361 fi 3362fi 3363 3364# test whether we have cygpath 3365if test -z "$CYGPATH_W"; then 3366 if (cygpath --version) >/dev/null 2>/dev/null; then 3367 CYGPATH_W='cygpath -w' 3368 else 3369 CYGPATH_W=echo 3370 fi 3371fi 3372 3373 3374# Define the identity of the package. 3375 PACKAGE='tiff' 3376 VERSION='4.0.4beta' 3377 3378 3379cat >>confdefs.h <<_ACEOF 3380#define PACKAGE "$PACKAGE" 3381_ACEOF 3382 3383 3384cat >>confdefs.h <<_ACEOF 3385#define VERSION "$VERSION" 3386_ACEOF 3387 3388# Some tools Automake needs. 3389 3390ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3391 3392 3393AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3394 3395 3396AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3397 3398 3399AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3400 3401 3402MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3403 3404# For better backward compatibility. To be removed once Automake 1.9.x 3405# dies out for good. For more background, see: 3406# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3407# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3408mkdir_p='$(MKDIR_P)' 3409 3410# We need awk for the "check" target (and possibly the TAP driver). The 3411# system "awk" is bad on some platforms. 3412# Always define AMTAR for backward compatibility. Yes, it's still used 3413# in the wild :-( We should find a proper way to deprecate it ... 3414AMTAR='$${TAR-tar}' 3415 3416 3417# We'll loop over all known methods to create a tar archive until one works. 3418_am_tools='gnutar pax cpio none' 3419 3420am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3421 3422 3423 3424 3425 3426 3427# POSIX will say in a future version that running "rm -f" with no argument 3428# is OK; and we want to be able to make that assumption in our Makefile 3429# recipes. So use an aggressive probe to check that the usage we want is 3430# actually supported "in the wild" to an acceptable degree. 3431# See automake bug#10828. 3432# To make any issue more visible, cause the running configure to be aborted 3433# by default if the 'rm' program in use doesn't match our expectations; the 3434# user can still override this though. 3435if rm -f && rm -fr && rm -rf; then : OK; else 3436 cat >&2 <<'END' 3437Oops! 3438 3439Your 'rm' program seems unable to run without file operands specified 3440on the command line, even when the '-f' option is present. This is contrary 3441to the behaviour of most rm programs out there, and not conforming with 3442the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3443 3444Please tell bug-automake@gnu.org about your system, including the value 3445of your $PATH and any error possibly output before this message. This 3446can help us improve future automake versions. 3447 3448END 3449 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3450 echo 'Configuration will proceed anyway, since you have set the' >&2 3451 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3452 echo >&2 3453 else 3454 cat >&2 <<'END' 3455Aborting the configuration process, to ensure you take notice of the issue. 3456 3457You can download and install GNU coreutils to get an 'rm' implementation 3458that behaves properly: <http://www.gnu.org/software/coreutils/>. 3459 3460If you want to complete the configuration process using your problematic 3461'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3462to "yes", and re-run configure. 3463 3464END 3465 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3466 fi 3467fi 3468 3469 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3471$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3472 # Check whether --enable-maintainer-mode was given. 3473if test "${enable_maintainer_mode+set}" = set; then : 3474 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3475else 3476 USE_MAINTAINER_MODE=no 3477fi 3478 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3480$as_echo "$USE_MAINTAINER_MODE" >&6; } 3481 if test $USE_MAINTAINER_MODE = yes; then 3482 MAINTAINER_MODE_TRUE= 3483 MAINTAINER_MODE_FALSE='#' 3484else 3485 MAINTAINER_MODE_TRUE='#' 3486 MAINTAINER_MODE_FALSE= 3487fi 3488 3489 MAINT=$MAINTAINER_MODE_TRUE 3490 3491 3492 3493LIBTIFF_MAJOR_VERSION=4 3494LIBTIFF_MINOR_VERSION=0 3495LIBTIFF_MICRO_VERSION=4 3496LIBTIFF_ALPHA_VERSION=beta 3497LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3498LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3499 3500LIBTIFF_CURRENT=7 3501LIBTIFF_REVISION=1 3502LIBTIFF_AGE=2 3503LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3504 3505# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3506# in OpenBSD uses some special semantics for shared libraries. Their soname 3507# contains only two numbers, major and minor. 3508# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3509#case "$host_os" in 3510# openbsd* | mirbsd*) 3511# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3512# ;; 3513# *) 3514# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3515# ;; 3516#esac 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526ac_ext=c 3527ac_cpp='$CPP $CPPFLAGS' 3528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3530ac_compiler_gnu=$ac_cv_c_compiler_gnu 3531if test -n "$ac_tool_prefix"; then 3532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3533set dummy ${ac_tool_prefix}gcc; ac_word=$2 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535$as_echo_n "checking for $ac_word... " >&6; } 3536if ${ac_cv_prog_CC+:} false; then : 3537 $as_echo_n "(cached) " >&6 3538else 3539 if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 test -z "$as_dir" && as_dir=. 3547 for ac_exec_ext in '' $ac_executable_extensions; do 3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3549 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3551 break 2 3552 fi 3553done 3554 done 3555IFS=$as_save_IFS 3556 3557fi 3558fi 3559CC=$ac_cv_prog_CC 3560if test -n "$CC"; then 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3562$as_echo "$CC" >&6; } 3563else 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3565$as_echo "no" >&6; } 3566fi 3567 3568 3569fi 3570if test -z "$ac_cv_prog_CC"; then 3571 ac_ct_CC=$CC 3572 # Extract the first word of "gcc", so it can be a program name with args. 3573set dummy gcc; ac_word=$2 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3575$as_echo_n "checking for $ac_word... " >&6; } 3576if ${ac_cv_prog_ac_ct_CC+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 if test -n "$ac_ct_CC"; then 3580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3581else 3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH 3584do 3585 IFS=$as_save_IFS 3586 test -z "$as_dir" && as_dir=. 3587 for ac_exec_ext in '' $ac_executable_extensions; do 3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3589 ac_cv_prog_ac_ct_CC="gcc" 3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3591 break 2 3592 fi 3593done 3594 done 3595IFS=$as_save_IFS 3596 3597fi 3598fi 3599ac_ct_CC=$ac_cv_prog_ac_ct_CC 3600if test -n "$ac_ct_CC"; then 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3602$as_echo "$ac_ct_CC" >&6; } 3603else 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3605$as_echo "no" >&6; } 3606fi 3607 3608 if test "x$ac_ct_CC" = x; then 3609 CC="" 3610 else 3611 case $cross_compiling:$ac_tool_warned in 3612yes:) 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3615ac_tool_warned=yes ;; 3616esac 3617 CC=$ac_ct_CC 3618 fi 3619else 3620 CC="$ac_cv_prog_CC" 3621fi 3622 3623if test -z "$CC"; then 3624 if test -n "$ac_tool_prefix"; then 3625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3626set dummy ${ac_tool_prefix}cc; ac_word=$2 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3628$as_echo_n "checking for $ac_word... " >&6; } 3629if ${ac_cv_prog_CC+:} false; then : 3630 $as_echo_n "(cached) " >&6 3631else 3632 if test -n "$CC"; then 3633 ac_cv_prog_CC="$CC" # Let the user override the test. 3634else 3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3636for as_dir in $PATH 3637do 3638 IFS=$as_save_IFS 3639 test -z "$as_dir" && as_dir=. 3640 for ac_exec_ext in '' $ac_executable_extensions; do 3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3642 ac_cv_prog_CC="${ac_tool_prefix}cc" 3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3644 break 2 3645 fi 3646done 3647 done 3648IFS=$as_save_IFS 3649 3650fi 3651fi 3652CC=$ac_cv_prog_CC 3653if test -n "$CC"; then 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3655$as_echo "$CC" >&6; } 3656else 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3658$as_echo "no" >&6; } 3659fi 3660 3661 3662 fi 3663fi 3664if test -z "$CC"; then 3665 # Extract the first word of "cc", so it can be a program name with args. 3666set dummy cc; ac_word=$2 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3668$as_echo_n "checking for $ac_word... " >&6; } 3669if ${ac_cv_prog_CC+:} false; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 if test -n "$CC"; then 3673 ac_cv_prog_CC="$CC" # Let the user override the test. 3674else 3675 ac_prog_rejected=no 3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3677for as_dir in $PATH 3678do 3679 IFS=$as_save_IFS 3680 test -z "$as_dir" && as_dir=. 3681 for ac_exec_ext in '' $ac_executable_extensions; do 3682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3684 ac_prog_rejected=yes 3685 continue 3686 fi 3687 ac_cv_prog_CC="cc" 3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3689 break 2 3690 fi 3691done 3692 done 3693IFS=$as_save_IFS 3694 3695if test $ac_prog_rejected = yes; then 3696 # We found a bogon in the path, so make sure we never use it. 3697 set dummy $ac_cv_prog_CC 3698 shift 3699 if test $# != 0; then 3700 # We chose a different compiler from the bogus one. 3701 # However, it has the same basename, so the bogon will be chosen 3702 # first if we set CC to just the basename; use the full file name. 3703 shift 3704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3705 fi 3706fi 3707fi 3708fi 3709CC=$ac_cv_prog_CC 3710if test -n "$CC"; then 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3712$as_echo "$CC" >&6; } 3713else 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3715$as_echo "no" >&6; } 3716fi 3717 3718 3719fi 3720if test -z "$CC"; then 3721 if test -n "$ac_tool_prefix"; then 3722 for ac_prog in cl.exe 3723 do 3724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3725set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3727$as_echo_n "checking for $ac_word... " >&6; } 3728if ${ac_cv_prog_CC+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 if test -n "$CC"; then 3732 ac_cv_prog_CC="$CC" # Let the user override the test. 3733else 3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735for as_dir in $PATH 3736do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3743 break 2 3744 fi 3745done 3746 done 3747IFS=$as_save_IFS 3748 3749fi 3750fi 3751CC=$ac_cv_prog_CC 3752if test -n "$CC"; then 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3754$as_echo "$CC" >&6; } 3755else 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3757$as_echo "no" >&6; } 3758fi 3759 3760 3761 test -n "$CC" && break 3762 done 3763fi 3764if test -z "$CC"; then 3765 ac_ct_CC=$CC 3766 for ac_prog in cl.exe 3767do 3768 # Extract the first word of "$ac_prog", so it can be a program name with args. 3769set dummy $ac_prog; ac_word=$2 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3771$as_echo_n "checking for $ac_word... " >&6; } 3772if ${ac_cv_prog_ac_ct_CC+:} false; then : 3773 $as_echo_n "(cached) " >&6 3774else 3775 if test -n "$ac_ct_CC"; then 3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3777else 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 test -z "$as_dir" && as_dir=. 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3785 ac_cv_prog_ac_ct_CC="$ac_prog" 3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3787 break 2 3788 fi 3789done 3790 done 3791IFS=$as_save_IFS 3792 3793fi 3794fi 3795ac_ct_CC=$ac_cv_prog_ac_ct_CC 3796if test -n "$ac_ct_CC"; then 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3798$as_echo "$ac_ct_CC" >&6; } 3799else 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801$as_echo "no" >&6; } 3802fi 3803 3804 3805 test -n "$ac_ct_CC" && break 3806done 3807 3808 if test "x$ac_ct_CC" = x; then 3809 CC="" 3810 else 3811 case $cross_compiling:$ac_tool_warned in 3812yes:) 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3815ac_tool_warned=yes ;; 3816esac 3817 CC=$ac_ct_CC 3818 fi 3819fi 3820 3821fi 3822 3823 3824test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3826as_fn_error $? "no acceptable C compiler found in \$PATH 3827See \`config.log' for more details" "$LINENO" 5; } 3828 3829# Provide some information about the compiler. 3830$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3831set X $ac_compile 3832ac_compiler=$2 3833for ac_option in --version -v -V -qversion; do 3834 { { ac_try="$ac_compiler $ac_option >&5" 3835case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838esac 3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3840$as_echo "$ac_try_echo"; } >&5 3841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3842 ac_status=$? 3843 if test -s conftest.err; then 3844 sed '10a\ 3845... rest of stderr output deleted ... 3846 10q' conftest.err >conftest.er1 3847 cat conftest.er1 >&5 3848 fi 3849 rm -f conftest.er1 conftest.err 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; } 3852done 3853 3854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857int 3858main () 3859{ 3860 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865ac_clean_files_save=$ac_clean_files 3866ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3867# Try to create an executable without -o first, disregard a.out. 3868# It will help us diagnose broken compilers, and finding out an intuition 3869# of exeext. 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3871$as_echo_n "checking whether the C compiler works... " >&6; } 3872ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3873 3874# The possible output files: 3875ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3876 3877ac_rmfiles= 3878for ac_file in $ac_files 3879do 3880 case $ac_file in 3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3882 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3883 esac 3884done 3885rm -f $ac_rmfiles 3886 3887if { { ac_try="$ac_link_default" 3888case "(($ac_try" in 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3890 *) ac_try_echo=$ac_try;; 3891esac 3892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3893$as_echo "$ac_try_echo"; } >&5 3894 (eval "$ac_link_default") 2>&5 3895 ac_status=$? 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; }; then : 3898 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3899# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3900# in a Makefile. We should not override ac_cv_exeext if it was cached, 3901# so that the user can short-circuit this test for compilers unknown to 3902# Autoconf. 3903for ac_file in $ac_files '' 3904do 3905 test -f "$ac_file" || continue 3906 case $ac_file in 3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3908 ;; 3909 [ab].out ) 3910 # We found the default executable, but exeext='' is most 3911 # certainly right. 3912 break;; 3913 *.* ) 3914 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3915 then :; else 3916 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3917 fi 3918 # We set ac_cv_exeext here because the later test for it is not 3919 # safe: cross compilers may not add the suffix if given an `-o' 3920 # argument, so we may need to know it at that point already. 3921 # Even if this section looks crufty: it has the advantage of 3922 # actually working. 3923 break;; 3924 * ) 3925 break;; 3926 esac 3927done 3928test "$ac_cv_exeext" = no && ac_cv_exeext= 3929 3930else 3931 ac_file='' 3932fi 3933if test -z "$ac_file"; then : 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935$as_echo "no" >&6; } 3936$as_echo "$as_me: failed program was:" >&5 3937sed 's/^/| /' conftest.$ac_ext >&5 3938 3939{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3941as_fn_error 77 "C compiler cannot create executables 3942See \`config.log' for more details" "$LINENO" 5; } 3943else 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3945$as_echo "yes" >&6; } 3946fi 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3948$as_echo_n "checking for C compiler default output file name... " >&6; } 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3950$as_echo "$ac_file" >&6; } 3951ac_exeext=$ac_cv_exeext 3952 3953rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3954ac_clean_files=$ac_clean_files_save 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3956$as_echo_n "checking for suffix of executables... " >&6; } 3957if { { ac_try="$ac_link" 3958case "(($ac_try" in 3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 *) ac_try_echo=$ac_try;; 3961esac 3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3963$as_echo "$ac_try_echo"; } >&5 3964 (eval "$ac_link") 2>&5 3965 ac_status=$? 3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3967 test $ac_status = 0; }; then : 3968 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3969# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3970# work properly (i.e., refer to `conftest.exe'), while it won't with 3971# `rm'. 3972for ac_file in conftest.exe conftest conftest.*; do 3973 test -f "$ac_file" || continue 3974 case $ac_file in 3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3977 break;; 3978 * ) break;; 3979 esac 3980done 3981else 3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3984as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3985See \`config.log' for more details" "$LINENO" 5; } 3986fi 3987rm -f conftest conftest$ac_cv_exeext 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3989$as_echo "$ac_cv_exeext" >&6; } 3990 3991rm -f conftest.$ac_ext 3992EXEEXT=$ac_cv_exeext 3993ac_exeext=$EXEEXT 3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996#include <stdio.h> 3997int 3998main () 3999{ 4000FILE *f = fopen ("conftest.out", "w"); 4001 return ferror (f) || fclose (f) != 0; 4002 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007ac_clean_files="$ac_clean_files conftest.out" 4008# Check that the compiler produces executables we can run. If not, either 4009# the compiler is broken, or we cross compile. 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4011$as_echo_n "checking whether we are cross compiling... " >&6; } 4012if test "$cross_compiling" != yes; then 4013 { { ac_try="$ac_link" 4014case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4019$as_echo "$ac_try_echo"; } >&5 4020 (eval "$ac_link") 2>&5 4021 ac_status=$? 4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4023 test $ac_status = 0; } 4024 if { ac_try='./conftest$ac_cv_exeext' 4025 { { case "(($ac_try" in 4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4027 *) ac_try_echo=$ac_try;; 4028esac 4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4030$as_echo "$ac_try_echo"; } >&5 4031 (eval "$ac_try") 2>&5 4032 ac_status=$? 4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4034 test $ac_status = 0; }; }; then 4035 cross_compiling=no 4036 else 4037 if test "$cross_compiling" = maybe; then 4038 cross_compiling=yes 4039 else 4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4042as_fn_error $? "cannot run C compiled programs. 4043If you meant to cross compile, use \`--host'. 4044See \`config.log' for more details" "$LINENO" 5; } 4045 fi 4046 fi 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4049$as_echo "$cross_compiling" >&6; } 4050 4051rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4052ac_clean_files=$ac_clean_files_save 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4054$as_echo_n "checking for suffix of object files... " >&6; } 4055if ${ac_cv_objext+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060 4061int 4062main () 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069rm -f conftest.o conftest.obj 4070if { { ac_try="$ac_compile" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076$as_echo "$ac_try_echo"; } >&5 4077 (eval "$ac_compile") 2>&5 4078 ac_status=$? 4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; }; then : 4081 for ac_file in conftest.o conftest.obj conftest.*; do 4082 test -f "$ac_file" || continue; 4083 case $ac_file in 4084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4086 break;; 4087 esac 4088done 4089else 4090 $as_echo "$as_me: failed program was:" >&5 4091sed 's/^/| /' conftest.$ac_ext >&5 4092 4093{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4095as_fn_error $? "cannot compute suffix of object files: cannot compile 4096See \`config.log' for more details" "$LINENO" 5; } 4097fi 4098rm -f conftest.$ac_cv_objext conftest.$ac_ext 4099fi 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4101$as_echo "$ac_cv_objext" >&6; } 4102OBJEXT=$ac_cv_objext 4103ac_objext=$OBJEXT 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4105$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4106if ${ac_cv_c_compiler_gnu+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main () 4114{ 4115#ifndef __GNUC__ 4116 choke me 4117#endif 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 ac_compiler_gnu=yes 4125else 4126 ac_compiler_gnu=no 4127fi 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4129ac_cv_c_compiler_gnu=$ac_compiler_gnu 4130 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4133$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4134if test $ac_compiler_gnu = yes; then 4135 GCC=yes 4136else 4137 GCC= 4138fi 4139ac_test_CFLAGS=${CFLAGS+set} 4140ac_save_CFLAGS=$CFLAGS 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4142$as_echo_n "checking whether $CC accepts -g... " >&6; } 4143if ${ac_cv_prog_cc_g+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 ac_save_c_werror_flag=$ac_c_werror_flag 4147 ac_c_werror_flag=yes 4148 ac_cv_prog_cc_g=no 4149 CFLAGS="-g" 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main () 4155{ 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161if ac_fn_c_try_compile "$LINENO"; then : 4162 ac_cv_prog_cc_g=yes 4163else 4164 CFLAGS="" 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167 4168int 4169main () 4170{ 4171 4172 ; 4173 return 0; 4174} 4175_ACEOF 4176if ac_fn_c_try_compile "$LINENO"; then : 4177 4178else 4179 ac_c_werror_flag=$ac_save_c_werror_flag 4180 CFLAGS="-g" 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183 4184int 4185main () 4186{ 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192if ac_fn_c_try_compile "$LINENO"; then : 4193 ac_cv_prog_cc_g=yes 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4196fi 4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200 ac_c_werror_flag=$ac_save_c_werror_flag 4201fi 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4203$as_echo "$ac_cv_prog_cc_g" >&6; } 4204if test "$ac_test_CFLAGS" = set; then 4205 CFLAGS=$ac_save_CFLAGS 4206elif test $ac_cv_prog_cc_g = yes; then 4207 if test "$GCC" = yes; then 4208 CFLAGS="-g -O2" 4209 else 4210 CFLAGS="-g" 4211 fi 4212else 4213 if test "$GCC" = yes; then 4214 CFLAGS="-O2" 4215 else 4216 CFLAGS= 4217 fi 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4220$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4221if ${ac_cv_prog_cc_c89+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 ac_cv_prog_cc_c89=no 4225ac_save_CC=$CC 4226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228#include <stdarg.h> 4229#include <stdio.h> 4230struct stat; 4231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4232struct buf { int x; }; 4233FILE * (*rcsopen) (struct buf *, struct stat *, int); 4234static char *e (p, i) 4235 char **p; 4236 int i; 4237{ 4238 return p[i]; 4239} 4240static char *f (char * (*g) (char **, int), char **p, ...) 4241{ 4242 char *s; 4243 va_list v; 4244 va_start (v,p); 4245 s = g (p, va_arg (v,int)); 4246 va_end (v); 4247 return s; 4248} 4249 4250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4251 function prototypes and stuff, but not '\xHH' hex character constants. 4252 These don't provoke an error unfortunately, instead are silently treated 4253 as 'x'. The following induces an error, until -std is added to get 4254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4255 array size at least. It's necessary to write '\x00'==0 to get something 4256 that's true only with -std. */ 4257int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4258 4259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4260 inside strings and character constants. */ 4261#define FOO(x) 'x' 4262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4263 4264int test (int i, double x); 4265struct s1 {int (*f) (int a);}; 4266struct s2 {int (*f) (double a);}; 4267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4268int argc; 4269char **argv; 4270int 4271main () 4272{ 4273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4274 ; 4275 return 0; 4276} 4277_ACEOF 4278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4280do 4281 CC="$ac_save_CC $ac_arg" 4282 if ac_fn_c_try_compile "$LINENO"; then : 4283 ac_cv_prog_cc_c89=$ac_arg 4284fi 4285rm -f core conftest.err conftest.$ac_objext 4286 test "x$ac_cv_prog_cc_c89" != "xno" && break 4287done 4288rm -f conftest.$ac_ext 4289CC=$ac_save_CC 4290 4291fi 4292# AC_CACHE_VAL 4293case "x$ac_cv_prog_cc_c89" in 4294 x) 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4296$as_echo "none needed" >&6; } ;; 4297 xno) 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4299$as_echo "unsupported" >&6; } ;; 4300 *) 4301 CC="$CC $ac_cv_prog_cc_c89" 4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4303$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4304esac 4305if test "x$ac_cv_prog_cc_c89" != xno; then : 4306 4307fi 4308 4309ac_ext=c 4310ac_cpp='$CPP $CPPFLAGS' 4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4313ac_compiler_gnu=$ac_cv_c_compiler_gnu 4314 4315ac_ext=c 4316ac_cpp='$CPP $CPPFLAGS' 4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4319ac_compiler_gnu=$ac_cv_c_compiler_gnu 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4321$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4322if ${am_cv_prog_cc_c_o+:} false; then : 4323 $as_echo_n "(cached) " >&6 4324else 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336 # Make sure it works both with $CC and with simple cc. 4337 # Following AC_PROG_CC_C_O, we do the test twice because some 4338 # compilers refuse to overwrite an existing .o file with -o, 4339 # though they will create one. 4340 am_cv_prog_cc_c_o=yes 4341 for am_i in 1 2; do 4342 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4343 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4344 ac_status=$? 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4346 (exit $ac_status); } \ 4347 && test -f conftest2.$ac_objext; then 4348 : OK 4349 else 4350 am_cv_prog_cc_c_o=no 4351 break 4352 fi 4353 done 4354 rm -f core conftest* 4355 unset am_i 4356fi 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4358$as_echo "$am_cv_prog_cc_c_o" >&6; } 4359if test "$am_cv_prog_cc_c_o" != yes; then 4360 # Losing compiler, so override with the script. 4361 # FIXME: It is wrong to rewrite CC. 4362 # But if we don't then we get into trouble of one sort or another. 4363 # A longer-term fix would be to have automake use am__CC in this case, 4364 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4365 CC="$am_aux_dir/compile $CC" 4366fi 4367ac_ext=c 4368ac_cpp='$CPP $CPPFLAGS' 4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4371ac_compiler_gnu=$ac_cv_c_compiler_gnu 4372 4373DEPDIR="${am__leading_dot}deps" 4374 4375ac_config_commands="$ac_config_commands depfiles" 4376 4377 4378am_make=${MAKE-make} 4379cat > confinc << 'END' 4380am__doit: 4381 @echo this is the am__doit target 4382.PHONY: am__doit 4383END 4384# If we don't find an include directive, just comment out the code. 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4386$as_echo_n "checking for style of include used by $am_make... " >&6; } 4387am__include="#" 4388am__quote= 4389_am_result=none 4390# First try GNU make style include. 4391echo "include confinc" > confmf 4392# Ignore all kinds of additional output from 'make'. 4393case `$am_make -s -f confmf 2> /dev/null` in #( 4394*the\ am__doit\ target*) 4395 am__include=include 4396 am__quote= 4397 _am_result=GNU 4398 ;; 4399esac 4400# Now try BSD make style include. 4401if test "$am__include" = "#"; then 4402 echo '.include "confinc"' > confmf 4403 case `$am_make -s -f confmf 2> /dev/null` in #( 4404 *the\ am__doit\ target*) 4405 am__include=.include 4406 am__quote="\"" 4407 _am_result=BSD 4408 ;; 4409 esac 4410fi 4411 4412 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4414$as_echo "$_am_result" >&6; } 4415rm -f confinc confmf 4416 4417# Check whether --enable-dependency-tracking was given. 4418if test "${enable_dependency_tracking+set}" = set; then : 4419 enableval=$enable_dependency_tracking; 4420fi 4421 4422if test "x$enable_dependency_tracking" != xno; then 4423 am_depcomp="$ac_aux_dir/depcomp" 4424 AMDEPBACKSLASH='\' 4425 am__nodep='_no' 4426fi 4427 if test "x$enable_dependency_tracking" != xno; then 4428 AMDEP_TRUE= 4429 AMDEP_FALSE='#' 4430else 4431 AMDEP_TRUE='#' 4432 AMDEP_FALSE= 4433fi 4434 4435 4436 4437depcc="$CC" am_compiler_list= 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4440$as_echo_n "checking dependency style of $depcc... " >&6; } 4441if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4445 # We make a subdir and do the tests there. Otherwise we can end up 4446 # making bogus files that we don't know about and never remove. For 4447 # instance it was reported that on HP-UX the gcc test will end up 4448 # making a dummy file named 'D' -- because '-MD' means "put the output 4449 # in D". 4450 rm -rf conftest.dir 4451 mkdir conftest.dir 4452 # Copy depcomp to subdir because otherwise we won't find it if we're 4453 # using a relative directory. 4454 cp "$am_depcomp" conftest.dir 4455 cd conftest.dir 4456 # We will build objects and dependencies in a subdirectory because 4457 # it helps to detect inapplicable dependency modes. For instance 4458 # both Tru64's cc and ICC support -MD to output dependencies as a 4459 # side effect of compilation, but ICC will put the dependencies in 4460 # the current directory while Tru64 will put them in the object 4461 # directory. 4462 mkdir sub 4463 4464 am_cv_CC_dependencies_compiler_type=none 4465 if test "$am_compiler_list" = ""; then 4466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4467 fi 4468 am__universal=false 4469 case " $depcc " in #( 4470 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4471 esac 4472 4473 for depmode in $am_compiler_list; do 4474 # Setup a source with many dependencies, because some compilers 4475 # like to wrap large dependency lists on column 80 (with \), and 4476 # we should not choose a depcomp mode which is confused by this. 4477 # 4478 # We need to recreate these files for each test, as the compiler may 4479 # overwrite some of them when testing with obscure command lines. 4480 # This happens at least with the AIX C compiler. 4481 : > sub/conftest.c 4482 for i in 1 2 3 4 5 6; do 4483 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4484 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4485 # Solaris 10 /bin/sh. 4486 echo '/* dummy */' > sub/conftst$i.h 4487 done 4488 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4489 4490 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4491 # mode. It turns out that the SunPro C++ compiler does not properly 4492 # handle '-M -o', and we need to detect this. Also, some Intel 4493 # versions had trouble with output in subdirs. 4494 am__obj=sub/conftest.${OBJEXT-o} 4495 am__minus_obj="-o $am__obj" 4496 case $depmode in 4497 gcc) 4498 # This depmode causes a compiler race in universal mode. 4499 test "$am__universal" = false || continue 4500 ;; 4501 nosideeffect) 4502 # After this tag, mechanisms are not by side-effect, so they'll 4503 # only be used when explicitly requested. 4504 if test "x$enable_dependency_tracking" = xyes; then 4505 continue 4506 else 4507 break 4508 fi 4509 ;; 4510 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4511 # This compiler won't grok '-c -o', but also, the minuso test has 4512 # not run yet. These depmodes are late enough in the game, and 4513 # so weak that their functioning should not be impacted. 4514 am__obj=conftest.${OBJEXT-o} 4515 am__minus_obj= 4516 ;; 4517 none) break ;; 4518 esac 4519 if depmode=$depmode \ 4520 source=sub/conftest.c object=$am__obj \ 4521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4522 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4523 >/dev/null 2>conftest.err && 4524 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4525 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4526 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4527 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4528 # icc doesn't choke on unknown options, it will just issue warnings 4529 # or remarks (even with -Werror). So we grep stderr for any message 4530 # that says an option was ignored or not supported. 4531 # When given -MP, icc 7.0 and 7.1 complain thusly: 4532 # icc: Command line warning: ignoring option '-M'; no argument required 4533 # The diagnosis changed in icc 8.0: 4534 # icc: Command line remark: option '-MP' not supported 4535 if (grep 'ignoring option' conftest.err || 4536 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4537 am_cv_CC_dependencies_compiler_type=$depmode 4538 break 4539 fi 4540 fi 4541 done 4542 4543 cd .. 4544 rm -rf conftest.dir 4545else 4546 am_cv_CC_dependencies_compiler_type=none 4547fi 4548 4549fi 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4551$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4552CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4553 4554 if 4555 test "x$enable_dependency_tracking" != xno \ 4556 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4557 am__fastdepCC_TRUE= 4558 am__fastdepCC_FALSE='#' 4559else 4560 am__fastdepCC_TRUE='#' 4561 am__fastdepCC_FALSE= 4562fi 4563 4564 4565 4566 4567 4568 ansi= 4569 if test -z "$ansi"; then 4570 msg="for C compiler warning flags" 4571 else 4572 msg="for C compiler warning and ANSI conformance flags" 4573 fi 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4575$as_echo_n "checking $msg... " >&6; } 4576if ${vl_cv_prog_cc_warnings+:} false; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 4580 if test -n "$CC"; then 4581 cat > conftest.c <<EOF 4582int main(int argc, char **argv) { return 0; } 4583EOF 4584 4585 if test "$GCC" = "yes"; then 4586 if test -z "$ansi"; then 4587 vl_cv_prog_cc_warnings="-Wall -W" 4588 else 4589 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4590 fi 4591 4592 4593 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4594 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4595 test -f conftest.o; then 4596 if test -z "$ansi"; then 4597 vl_cv_prog_cc_warnings="-v" 4598 else 4599 vl_cv_prog_cc_warnings="-v -Xc" 4600 fi 4601 4602 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4603 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4604 test -f conftest.o; then 4605 if test -z "$ansi"; then 4606 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4607 else 4608 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4609 fi 4610 4611 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4612 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4613 test -f conftest.o; then 4614 if test -z "$ansi"; then 4615 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4616 else 4617 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4618 fi 4619 4620 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4621 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4622 test -f conftest.o; then 4623 if test -z "$ansi"; then 4624 vl_cv_prog_cc_warnings="-fullwarn" 4625 else 4626 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4627 fi 4628 4629 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4630 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4631 test -f conftest.o; then 4632 if test -z "$ansi"; then 4633 vl_cv_prog_cc_warnings="+w1" 4634 else 4635 vl_cv_prog_cc_warnings="+w1 -Aa" 4636 fi 4637 4638 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4639 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4640 test -f conftest.o; then 4641 if test -z "$ansi"; then 4642 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4643 else 4644 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4645 fi 4646 4647 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4648 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4649 test -f conftest.o; then 4650 if test -z "$ansi"; then 4651 vl_cv_prog_cc_warnings="-h msglevel 2" 4652 else 4653 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4654 fi 4655 4656 fi 4657 rm -f conftest.* 4658 fi 4659 if test -n "$vl_cv_prog_cc_warnings"; then 4660 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4661 else 4662 vl_cv_prog_cc_warnings="unknown" 4663 fi 4664 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4667$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4668 4669 4670 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4672$as_echo_n "checking whether ln -s works... " >&6; } 4673LN_S=$as_ln_s 4674if test "$LN_S" = "ln -s"; then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4676$as_echo "yes" >&6; } 4677else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4679$as_echo "no, using $LN_S" >&6; } 4680fi 4681 4682 4683 4684# Check if LD supports linker scripts, and define automake conditional 4685# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 4686# constrained to compilers using GNU ld on ELF systems or systems 4687# which provide an adequate emulation thereof. 4688# Check whether --enable-ld-version-script was given. 4689if test "${enable_ld_version_script+set}" = set; then : 4690 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4691else 4692 have_ld_version_script=no 4693fi 4694 4695if test "$have_ld_version_script" != no; then 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4697$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4698 save_LDFLAGS="$LDFLAGS" 4699 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4700 cat > conftest.map <<EOF 4701VERS_1 { 4702 global: sym; 4703}; 4704 4705VERS_2 { 4706 global: sym; 4707} VERS_1; 4708EOF 4709 4710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711/* end confdefs.h. */ 4712 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_c_try_link "$LINENO"; then : 4722 have_ld_version_script=yes 4723else 4724 have_ld_version_script=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext \ 4727 conftest$ac_exeext conftest.$ac_ext 4728 rm -f conftest.map 4729 LDFLAGS="$save_LDFLAGS" 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4731$as_echo "$have_ld_version_script" >&6; } 4732fi 4733 if test "$have_ld_version_script" = "yes"; then 4734 HAVE_LD_VERSION_SCRIPT_TRUE= 4735 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4736else 4737 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4738 HAVE_LD_VERSION_SCRIPT_FALSE= 4739fi 4740 4741 4742 4743 4744 4745 4746case `pwd` in 4747 *\ * | *\ *) 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4749$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4750esac 4751 4752 4753 4754macro_version='2.4.4' 4755macro_revision='2.4.4' 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769ltmain=$ac_aux_dir/ltmain.sh 4770 4771# Backslashify metacharacters that are still active within 4772# double-quoted strings. 4773sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4774 4775# Same as above, but do not quote variable references. 4776double_quote_subst='s/\(["`\\]\)/\\\1/g' 4777 4778# Sed substitution to delay expansion of an escaped shell variable in a 4779# double_quote_subst'ed string. 4780delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4781 4782# Sed substitution to delay expansion of an escaped single quote. 4783delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4784 4785# Sed substitution to avoid accidental globbing in evaled expressions 4786no_glob_subst='s/\*/\\\*/g' 4787 4788ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4789ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4790ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4791 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4793$as_echo_n "checking how to print strings... " >&6; } 4794# Test print first, because it will be a builtin if present. 4795if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4796 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4797 ECHO='print -r --' 4798elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4799 ECHO='printf %s\n' 4800else 4801 # Use this function as a fallback that always works. 4802 func_fallback_echo () 4803 { 4804 eval 'cat <<_LTECHO_EOF 4805$1 4806_LTECHO_EOF' 4807 } 4808 ECHO='func_fallback_echo' 4809fi 4810 4811# func_echo_all arg... 4812# Invoke $ECHO with all args, space-separated. 4813func_echo_all () 4814{ 4815 $ECHO "" 4816} 4817 4818case $ECHO in 4819 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4820$as_echo "printf" >&6; } ;; 4821 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4822$as_echo "print -r" >&6; } ;; 4823 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4824$as_echo "cat" >&6; } ;; 4825esac 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4841$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4842if ${ac_cv_path_SED+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4846 for ac_i in 1 2 3 4 5 6 7; do 4847 ac_script="$ac_script$as_nl$ac_script" 4848 done 4849 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4850 { ac_script=; unset ac_script;} 4851 if test -z "$SED"; then 4852 ac_path_SED_found=false 4853 # Loop through the user's path and test for each of PROGNAME-LIST 4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_prog in sed gsed; do 4860 for ac_exec_ext in '' $ac_executable_extensions; do 4861 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4862 as_fn_executable_p "$ac_path_SED" || continue 4863# Check for GNU ac_path_SED and select it if it is found. 4864 # Check for GNU $ac_path_SED 4865case `"$ac_path_SED" --version 2>&1` in 4866*GNU*) 4867 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4868*) 4869 ac_count=0 4870 $as_echo_n 0123456789 >"conftest.in" 4871 while : 4872 do 4873 cat "conftest.in" "conftest.in" >"conftest.tmp" 4874 mv "conftest.tmp" "conftest.in" 4875 cp "conftest.in" "conftest.nl" 4876 $as_echo '' >> "conftest.nl" 4877 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4879 as_fn_arith $ac_count + 1 && ac_count=$as_val 4880 if test $ac_count -gt ${ac_path_SED_max-0}; then 4881 # Best one so far, save it but keep looking for a better one 4882 ac_cv_path_SED="$ac_path_SED" 4883 ac_path_SED_max=$ac_count 4884 fi 4885 # 10*(2^10) chars as input seems more than enough 4886 test $ac_count -gt 10 && break 4887 done 4888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4889esac 4890 4891 $ac_path_SED_found && break 3 4892 done 4893 done 4894 done 4895IFS=$as_save_IFS 4896 if test -z "$ac_cv_path_SED"; then 4897 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4898 fi 4899else 4900 ac_cv_path_SED=$SED 4901fi 4902 4903fi 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4905$as_echo "$ac_cv_path_SED" >&6; } 4906 SED="$ac_cv_path_SED" 4907 rm -f conftest.sed 4908 4909test -z "$SED" && SED=sed 4910Xsed="$SED -e 1s/^X//" 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4923$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4924if ${ac_cv_path_GREP+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 if test -z "$GREP"; then 4928 ac_path_GREP_found=false 4929 # Loop through the user's path and test for each of PROGNAME-LIST 4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4932do 4933 IFS=$as_save_IFS 4934 test -z "$as_dir" && as_dir=. 4935 for ac_prog in grep ggrep; do 4936 for ac_exec_ext in '' $ac_executable_extensions; do 4937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4938 as_fn_executable_p "$ac_path_GREP" || continue 4939# Check for GNU ac_path_GREP and select it if it is found. 4940 # Check for GNU $ac_path_GREP 4941case `"$ac_path_GREP" --version 2>&1` in 4942*GNU*) 4943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4944*) 4945 ac_count=0 4946 $as_echo_n 0123456789 >"conftest.in" 4947 while : 4948 do 4949 cat "conftest.in" "conftest.in" >"conftest.tmp" 4950 mv "conftest.tmp" "conftest.in" 4951 cp "conftest.in" "conftest.nl" 4952 $as_echo 'GREP' >> "conftest.nl" 4953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4955 as_fn_arith $ac_count + 1 && ac_count=$as_val 4956 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4957 # Best one so far, save it but keep looking for a better one 4958 ac_cv_path_GREP="$ac_path_GREP" 4959 ac_path_GREP_max=$ac_count 4960 fi 4961 # 10*(2^10) chars as input seems more than enough 4962 test $ac_count -gt 10 && break 4963 done 4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4965esac 4966 4967 $ac_path_GREP_found && break 3 4968 done 4969 done 4970 done 4971IFS=$as_save_IFS 4972 if test -z "$ac_cv_path_GREP"; then 4973 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4974 fi 4975else 4976 ac_cv_path_GREP=$GREP 4977fi 4978 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4981$as_echo "$ac_cv_path_GREP" >&6; } 4982 GREP="$ac_cv_path_GREP" 4983 4984 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4986$as_echo_n "checking for egrep... " >&6; } 4987if ${ac_cv_path_EGREP+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4991 then ac_cv_path_EGREP="$GREP -E" 4992 else 4993 if test -z "$EGREP"; then 4994 ac_path_EGREP_found=false 4995 # Loop through the user's path and test for each of PROGNAME-LIST 4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_prog in egrep; do 5002 for ac_exec_ext in '' $ac_executable_extensions; do 5003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5004 as_fn_executable_p "$ac_path_EGREP" || continue 5005# Check for GNU ac_path_EGREP and select it if it is found. 5006 # Check for GNU $ac_path_EGREP 5007case `"$ac_path_EGREP" --version 2>&1` in 5008*GNU*) 5009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5010*) 5011 ac_count=0 5012 $as_echo_n 0123456789 >"conftest.in" 5013 while : 5014 do 5015 cat "conftest.in" "conftest.in" >"conftest.tmp" 5016 mv "conftest.tmp" "conftest.in" 5017 cp "conftest.in" "conftest.nl" 5018 $as_echo 'EGREP' >> "conftest.nl" 5019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5021 as_fn_arith $ac_count + 1 && ac_count=$as_val 5022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5023 # Best one so far, save it but keep looking for a better one 5024 ac_cv_path_EGREP="$ac_path_EGREP" 5025 ac_path_EGREP_max=$ac_count 5026 fi 5027 # 10*(2^10) chars as input seems more than enough 5028 test $ac_count -gt 10 && break 5029 done 5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5031esac 5032 5033 $ac_path_EGREP_found && break 3 5034 done 5035 done 5036 done 5037IFS=$as_save_IFS 5038 if test -z "$ac_cv_path_EGREP"; then 5039 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5040 fi 5041else 5042 ac_cv_path_EGREP=$EGREP 5043fi 5044 5045 fi 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5048$as_echo "$ac_cv_path_EGREP" >&6; } 5049 EGREP="$ac_cv_path_EGREP" 5050 5051 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5053$as_echo_n "checking for fgrep... " >&6; } 5054if ${ac_cv_path_FGREP+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5058 then ac_cv_path_FGREP="$GREP -F" 5059 else 5060 if test -z "$FGREP"; then 5061 ac_path_FGREP_found=false 5062 # Loop through the user's path and test for each of PROGNAME-LIST 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5065do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_prog in fgrep; do 5069 for ac_exec_ext in '' $ac_executable_extensions; do 5070 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5071 as_fn_executable_p "$ac_path_FGREP" || continue 5072# Check for GNU ac_path_FGREP and select it if it is found. 5073 # Check for GNU $ac_path_FGREP 5074case `"$ac_path_FGREP" --version 2>&1` in 5075*GNU*) 5076 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5077*) 5078 ac_count=0 5079 $as_echo_n 0123456789 >"conftest.in" 5080 while : 5081 do 5082 cat "conftest.in" "conftest.in" >"conftest.tmp" 5083 mv "conftest.tmp" "conftest.in" 5084 cp "conftest.in" "conftest.nl" 5085 $as_echo 'FGREP' >> "conftest.nl" 5086 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5088 as_fn_arith $ac_count + 1 && ac_count=$as_val 5089 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5090 # Best one so far, save it but keep looking for a better one 5091 ac_cv_path_FGREP="$ac_path_FGREP" 5092 ac_path_FGREP_max=$ac_count 5093 fi 5094 # 10*(2^10) chars as input seems more than enough 5095 test $ac_count -gt 10 && break 5096 done 5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5098esac 5099 5100 $ac_path_FGREP_found && break 3 5101 done 5102 done 5103 done 5104IFS=$as_save_IFS 5105 if test -z "$ac_cv_path_FGREP"; then 5106 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5107 fi 5108else 5109 ac_cv_path_FGREP=$FGREP 5110fi 5111 5112 fi 5113fi 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5115$as_echo "$ac_cv_path_FGREP" >&6; } 5116 FGREP="$ac_cv_path_FGREP" 5117 5118 5119test -z "$GREP" && GREP=grep 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139# Check whether --with-gnu-ld was given. 5140if test "${with_gnu_ld+set}" = set; then : 5141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5142else 5143 with_gnu_ld=no 5144fi 5145 5146ac_prog=ld 5147if test yes = "$GCC"; then 5148 # Check if gcc -print-prog-name=ld gives a path. 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5150$as_echo_n "checking for ld used by $CC... " >&6; } 5151 case $host in 5152 *-*-mingw*) 5153 # gcc leaves a trailing carriage return, which upsets mingw 5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5155 *) 5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5157 esac 5158 case $ac_prog in 5159 # Accept absolute paths. 5160 [\\/]* | ?:[\\/]*) 5161 re_direlt='/[^/][^/]*/\.\./' 5162 # Canonicalize the pathname of ld 5163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5166 done 5167 test -z "$LD" && LD=$ac_prog 5168 ;; 5169 "") 5170 # If it fails, then pretend we aren't using GCC. 5171 ac_prog=ld 5172 ;; 5173 *) 5174 # If it is relative, then search for the first ld in PATH. 5175 with_gnu_ld=unknown 5176 ;; 5177 esac 5178elif test yes = "$with_gnu_ld"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5180$as_echo_n "checking for GNU ld... " >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5183$as_echo_n "checking for non-GNU ld... " >&6; } 5184fi 5185if ${lt_cv_path_LD+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 if test -z "$LD"; then 5189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5190 for ac_dir in $PATH; do 5191 IFS=$lt_save_ifs 5192 test -z "$ac_dir" && ac_dir=. 5193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5194 lt_cv_path_LD=$ac_dir/$ac_prog 5195 # Check to see if the program is GNU ld. I'd rather use --version, 5196 # but apparently some variants of GNU ld only accept -v. 5197 # Break only if it was the GNU/non-GNU ld that we prefer. 5198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5199 *GNU* | *'with BFD'*) 5200 test no != "$with_gnu_ld" && break 5201 ;; 5202 *) 5203 test yes != "$with_gnu_ld" && break 5204 ;; 5205 esac 5206 fi 5207 done 5208 IFS=$lt_save_ifs 5209else 5210 lt_cv_path_LD=$LD # Let the user override the test with a path. 5211fi 5212fi 5213 5214LD=$lt_cv_path_LD 5215if test -n "$LD"; then 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5217$as_echo "$LD" >&6; } 5218else 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5220$as_echo "no" >&6; } 5221fi 5222test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5225if ${lt_cv_prog_gnu_ld+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5229case `$LD -v 2>&1 </dev/null` in 5230*GNU* | *'with BFD'*) 5231 lt_cv_prog_gnu_ld=yes 5232 ;; 5233*) 5234 lt_cv_prog_gnu_ld=no 5235 ;; 5236esac 5237fi 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5239$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5240with_gnu_ld=$lt_cv_prog_gnu_ld 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5251$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5252if ${lt_cv_path_NM+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -n "$NM"; then 5256 # Let the user override the test. 5257 lt_cv_path_NM=$NM 5258else 5259 lt_nm_to_check=${ac_tool_prefix}nm 5260 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5261 lt_nm_to_check="$lt_nm_to_check nm" 5262 fi 5263 for lt_tmp_nm in $lt_nm_to_check; do 5264 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5265 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5266 IFS=$lt_save_ifs 5267 test -z "$ac_dir" && ac_dir=. 5268 tmp_nm=$ac_dir/$lt_tmp_nm 5269 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5270 # Check to see if the nm accepts a BSD-compat flag. 5271 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5272 # nm: unknown option "B" ignored 5273 # Tru64's nm complains that /dev/null is an invalid object file 5274 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5275 case $build_os in 5276 mingw*) lt_bad_file=conftest.nm/nofile ;; 5277 *) lt_bad_file=/dev/null ;; 5278 esac 5279 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5280 *$lt_bad_file* | *'Invalid file or object type'*) 5281 lt_cv_path_NM="$tmp_nm -B" 5282 break 2 5283 ;; 5284 *) 5285 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5286 */dev/null*) 5287 lt_cv_path_NM="$tmp_nm -p" 5288 break 2 5289 ;; 5290 *) 5291 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5292 continue # so that we can try to find one that supports BSD flags 5293 ;; 5294 esac 5295 ;; 5296 esac 5297 fi 5298 done 5299 IFS=$lt_save_ifs 5300 done 5301 : ${lt_cv_path_NM=no} 5302fi 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5305$as_echo "$lt_cv_path_NM" >&6; } 5306if test no != "$lt_cv_path_NM"; then 5307 NM=$lt_cv_path_NM 5308else 5309 # Didn't find any BSD compatible name lister, look for dumpbin. 5310 if test -n "$DUMPBIN"; then : 5311 # Let the user override the test. 5312 else 5313 if test -n "$ac_tool_prefix"; then 5314 for ac_prog in dumpbin "link -dump" 5315 do 5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5317set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319$as_echo_n "checking for $ac_word... " >&6; } 5320if ${ac_cv_prog_DUMPBIN+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 if test -n "$DUMPBIN"; then 5324 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338 done 5339IFS=$as_save_IFS 5340 5341fi 5342fi 5343DUMPBIN=$ac_cv_prog_DUMPBIN 5344if test -n "$DUMPBIN"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5346$as_echo "$DUMPBIN" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350fi 5351 5352 5353 test -n "$DUMPBIN" && break 5354 done 5355fi 5356if test -z "$DUMPBIN"; then 5357 ac_ct_DUMPBIN=$DUMPBIN 5358 for ac_prog in dumpbin "link -dump" 5359do 5360 # Extract the first word of "$ac_prog", so it can be a program name with args. 5361set dummy $ac_prog; ac_word=$2 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363$as_echo_n "checking for $ac_word... " >&6; } 5364if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if test -n "$ac_ct_DUMPBIN"; then 5368 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5369else 5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371for as_dir in $PATH 5372do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5377 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381done 5382 done 5383IFS=$as_save_IFS 5384 5385fi 5386fi 5387ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5388if test -n "$ac_ct_DUMPBIN"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5390$as_echo "$ac_ct_DUMPBIN" >&6; } 5391else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393$as_echo "no" >&6; } 5394fi 5395 5396 5397 test -n "$ac_ct_DUMPBIN" && break 5398done 5399 5400 if test "x$ac_ct_DUMPBIN" = x; then 5401 DUMPBIN=":" 5402 else 5403 case $cross_compiling:$ac_tool_warned in 5404yes:) 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5407ac_tool_warned=yes ;; 5408esac 5409 DUMPBIN=$ac_ct_DUMPBIN 5410 fi 5411fi 5412 5413 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5414 *COFF*) 5415 DUMPBIN="$DUMPBIN -symbols -headers" 5416 ;; 5417 *) 5418 DUMPBIN=: 5419 ;; 5420 esac 5421 fi 5422 5423 if test : != "$DUMPBIN"; then 5424 NM=$DUMPBIN 5425 fi 5426fi 5427test -z "$NM" && NM=nm 5428 5429 5430 5431 5432 5433 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5435$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5436if ${lt_cv_nm_interface+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 lt_cv_nm_interface="BSD nm" 5440 echo "int some_variable = 0;" > conftest.$ac_ext 5441 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5442 (eval "$ac_compile" 2>conftest.err) 5443 cat conftest.err >&5 5444 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5445 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5446 cat conftest.err >&5 5447 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5448 cat conftest.out >&5 5449 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5450 lt_cv_nm_interface="MS dumpbin" 5451 fi 5452 rm -f conftest* 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5455$as_echo "$lt_cv_nm_interface" >&6; } 5456 5457# find the maximum length of command line arguments 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5459$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5460if ${lt_cv_sys_max_cmd_len+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 i=0 5464 teststring=ABCD 5465 5466 case $build_os in 5467 msdosdjgpp*) 5468 # On DJGPP, this test can blow up pretty badly due to problems in libc 5469 # (any single argument exceeding 2000 bytes causes a buffer overrun 5470 # during glob expansion). Even if it were fixed, the result of this 5471 # check would be larger than it should be. 5472 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5473 ;; 5474 5475 gnu*) 5476 # Under GNU Hurd, this test is not required because there is 5477 # no limit to the length of command line arguments. 5478 # Libtool will interpret -1 as no limit whatsoever 5479 lt_cv_sys_max_cmd_len=-1; 5480 ;; 5481 5482 cygwin* | mingw* | cegcc*) 5483 # On Win9x/ME, this test blows up -- it succeeds, but takes 5484 # about 5 minutes as the teststring grows exponentially. 5485 # Worse, since 9x/ME are not pre-emptively multitasking, 5486 # you end up with a "frozen" computer, even though with patience 5487 # the test eventually succeeds (with a max line length of 256k). 5488 # Instead, let's just punt: use the minimum linelength reported by 5489 # all of the supported platforms: 8192 (on NT/2K/XP). 5490 lt_cv_sys_max_cmd_len=8192; 5491 ;; 5492 5493 mint*) 5494 # On MiNT this can take a long time and run out of memory. 5495 lt_cv_sys_max_cmd_len=8192; 5496 ;; 5497 5498 amigaos*) 5499 # On AmigaOS with pdksh, this test takes hours, literally. 5500 # So we just punt and use a minimum line length of 8192. 5501 lt_cv_sys_max_cmd_len=8192; 5502 ;; 5503 5504 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5505 # This has been around since 386BSD, at least. Likely further. 5506 if test -x /sbin/sysctl; then 5507 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5508 elif test -x /usr/sbin/sysctl; then 5509 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5510 else 5511 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5512 fi 5513 # And add a safety zone 5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5516 ;; 5517 5518 interix*) 5519 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5520 lt_cv_sys_max_cmd_len=196608 5521 ;; 5522 5523 os2*) 5524 # The test takes a long time on OS/2. 5525 lt_cv_sys_max_cmd_len=8192 5526 ;; 5527 5528 osf*) 5529 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5530 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5531 # nice to cause kernel panics so lets avoid the loop below. 5532 # First set a reasonable default. 5533 lt_cv_sys_max_cmd_len=16384 5534 # 5535 if test -x /sbin/sysconfig; then 5536 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5537 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5538 esac 5539 fi 5540 ;; 5541 sco3.2v5*) 5542 lt_cv_sys_max_cmd_len=102400 5543 ;; 5544 sysv5* | sco5v6* | sysv4.2uw2*) 5545 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5546 if test -n "$kargmax"; then 5547 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5548 else 5549 lt_cv_sys_max_cmd_len=32768 5550 fi 5551 ;; 5552 *) 5553 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5554 if test -n "$lt_cv_sys_max_cmd_len" && \ 5555 test undefined != "$lt_cv_sys_max_cmd_len"; then 5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5558 else 5559 # Make teststring a little bigger before we do anything with it. 5560 # a 1K string should be a reasonable start. 5561 for i in 1 2 3 4 5 6 7 8; do 5562 teststring=$teststring$teststring 5563 done 5564 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5565 # If test is not a shell built-in, we'll probably end up computing a 5566 # maximum length that is only half of the actual maximum length, but 5567 # we can't tell. 5568 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5569 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5570 test 17 != "$i" # 1/2 MB should be enough 5571 do 5572 i=`expr $i + 1` 5573 teststring=$teststring$teststring 5574 done 5575 # Only check the string length outside the loop. 5576 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5577 teststring= 5578 # Add a significant safety factor because C++ compilers can tack on 5579 # massive amounts of additional arguments before passing them to the 5580 # linker. It appears as though 1/2 is a usable value. 5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5582 fi 5583 ;; 5584 esac 5585 5586fi 5587 5588if test -n "$lt_cv_sys_max_cmd_len"; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5590$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5591else 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5593$as_echo "none" >&6; } 5594fi 5595max_cmd_len=$lt_cv_sys_max_cmd_len 5596 5597 5598 5599 5600 5601 5602: ${CP="cp -f"} 5603: ${MV="mv -f"} 5604: ${RM="rm -f"} 5605 5606if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5607 lt_unset=unset 5608else 5609 lt_unset=false 5610fi 5611 5612 5613 5614 5615 5616# test EBCDIC or ASCII 5617case `echo X|tr X '\101'` in 5618 A) # ASCII based system 5619 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5620 lt_SP2NL='tr \040 \012' 5621 lt_NL2SP='tr \015\012 \040\040' 5622 ;; 5623 *) # EBCDIC based system 5624 lt_SP2NL='tr \100 \n' 5625 lt_NL2SP='tr \r\n \100\100' 5626 ;; 5627esac 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5638$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5639if ${lt_cv_to_host_file_cmd+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 case $host in 5643 *-*-mingw* ) 5644 case $build in 5645 *-*-mingw* ) # actually msys 5646 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5647 ;; 5648 *-*-cygwin* ) 5649 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5650 ;; 5651 * ) # otherwise, assume *nix 5652 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5653 ;; 5654 esac 5655 ;; 5656 *-*-cygwin* ) 5657 case $build in 5658 *-*-mingw* ) # actually msys 5659 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5660 ;; 5661 *-*-cygwin* ) 5662 lt_cv_to_host_file_cmd=func_convert_file_noop 5663 ;; 5664 * ) # otherwise, assume *nix 5665 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5666 ;; 5667 esac 5668 ;; 5669 * ) # unhandled hosts (and "normal" native builds) 5670 lt_cv_to_host_file_cmd=func_convert_file_noop 5671 ;; 5672esac 5673 5674fi 5675 5676to_host_file_cmd=$lt_cv_to_host_file_cmd 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5678$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5679 5680 5681 5682 5683 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5685$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5686if ${lt_cv_to_tool_file_cmd+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 #assume ordinary cross tools, or native build. 5690lt_cv_to_tool_file_cmd=func_convert_file_noop 5691case $host in 5692 *-*-mingw* ) 5693 case $build in 5694 *-*-mingw* ) # actually msys 5695 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5696 ;; 5697 esac 5698 ;; 5699esac 5700 5701fi 5702 5703to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5705$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5706 5707 5708 5709 5710 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5712$as_echo_n "checking for $LD option to reload object files... " >&6; } 5713if ${lt_cv_ld_reload_flag+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 lt_cv_ld_reload_flag='-r' 5717fi 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5719$as_echo "$lt_cv_ld_reload_flag" >&6; } 5720reload_flag=$lt_cv_ld_reload_flag 5721case $reload_flag in 5722"" | " "*) ;; 5723*) reload_flag=" $reload_flag" ;; 5724esac 5725reload_cmds='$LD$reload_flag -o $output$reload_objs' 5726case $host_os in 5727 cygwin* | mingw* | pw32* | cegcc*) 5728 if test yes != "$GCC"; then 5729 reload_cmds=false 5730 fi 5731 ;; 5732 darwin*) 5733 if test yes = "$GCC"; then 5734 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5735 else 5736 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5737 fi 5738 ;; 5739esac 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749if test -n "$ac_tool_prefix"; then 5750 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5751set dummy ${ac_tool_prefix}objdump; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if ${ac_cv_prog_OBJDUMP+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -n "$OBJDUMP"; then 5758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5767 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777OBJDUMP=$ac_cv_prog_OBJDUMP 5778if test -n "$OBJDUMP"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5780$as_echo "$OBJDUMP" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783$as_echo "no" >&6; } 5784fi 5785 5786 5787fi 5788if test -z "$ac_cv_prog_OBJDUMP"; then 5789 ac_ct_OBJDUMP=$OBJDUMP 5790 # Extract the first word of "objdump", so it can be a program name with args. 5791set dummy objdump; ac_word=$2 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5793$as_echo_n "checking for $ac_word... " >&6; } 5794if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 if test -n "$ac_ct_OBJDUMP"; then 5798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5799else 5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801for as_dir in $PATH 5802do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5807 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811done 5812 done 5813IFS=$as_save_IFS 5814 5815fi 5816fi 5817ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5818if test -n "$ac_ct_OBJDUMP"; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5820$as_echo "$ac_ct_OBJDUMP" >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823$as_echo "no" >&6; } 5824fi 5825 5826 if test "x$ac_ct_OBJDUMP" = x; then 5827 OBJDUMP="false" 5828 else 5829 case $cross_compiling:$ac_tool_warned in 5830yes:) 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5833ac_tool_warned=yes ;; 5834esac 5835 OBJDUMP=$ac_ct_OBJDUMP 5836 fi 5837else 5838 OBJDUMP="$ac_cv_prog_OBJDUMP" 5839fi 5840 5841test -z "$OBJDUMP" && OBJDUMP=objdump 5842 5843 5844 5845 5846 5847 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5849$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5850if ${lt_cv_deplibs_check_method+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852else 5853 lt_cv_file_magic_cmd='$MAGIC_CMD' 5854lt_cv_file_magic_test_file= 5855lt_cv_deplibs_check_method='unknown' 5856# Need to set the preceding variable on all platforms that support 5857# interlibrary dependencies. 5858# 'none' -- dependencies not supported. 5859# 'unknown' -- same as none, but documents that we really don't know. 5860# 'pass_all' -- all dependencies passed with no checks. 5861# 'test_compile' -- check by making test program. 5862# 'file_magic [[regex]]' -- check by looking for files in library path 5863# that responds to the $file_magic_cmd with a given extended regex. 5864# If you have 'file' or equivalent on your system and you're not sure 5865# whether 'pass_all' will *always* work, you probably want this one. 5866 5867case $host_os in 5868aix[4-9]*) 5869 lt_cv_deplibs_check_method=pass_all 5870 ;; 5871 5872beos*) 5873 lt_cv_deplibs_check_method=pass_all 5874 ;; 5875 5876bsdi[45]*) 5877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5878 lt_cv_file_magic_cmd='/usr/bin/file -L' 5879 lt_cv_file_magic_test_file=/shlib/libc.so 5880 ;; 5881 5882cygwin*) 5883 # func_win32_libid is a shell function defined in ltmain.sh 5884 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5885 lt_cv_file_magic_cmd='func_win32_libid' 5886 ;; 5887 5888mingw* | pw32*) 5889 # Base MSYS/MinGW do not provide the 'file' command needed by 5890 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5891 # unless we find 'file', for example because we are cross-compiling. 5892 if ( file / ) >/dev/null 2>&1; then 5893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5894 lt_cv_file_magic_cmd='func_win32_libid' 5895 else 5896 # Keep this pattern in sync with the one in func_win32_libid. 5897 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5898 lt_cv_file_magic_cmd='$OBJDUMP -f' 5899 fi 5900 ;; 5901 5902cegcc*) 5903 # use the weaker test based on 'objdump'. See mingw*. 5904 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5905 lt_cv_file_magic_cmd='$OBJDUMP -f' 5906 ;; 5907 5908darwin* | rhapsody*) 5909 lt_cv_deplibs_check_method=pass_all 5910 ;; 5911 5912freebsd* | dragonfly*) 5913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5914 case $host_cpu in 5915 i*86 ) 5916 # Not sure whether the presence of OpenBSD here was a mistake. 5917 # Let's accept both of them until this is cleared up. 5918 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5919 lt_cv_file_magic_cmd=/usr/bin/file 5920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5921 ;; 5922 esac 5923 else 5924 lt_cv_deplibs_check_method=pass_all 5925 fi 5926 ;; 5927 5928haiku*) 5929 lt_cv_deplibs_check_method=pass_all 5930 ;; 5931 5932hpux10.20* | hpux11*) 5933 lt_cv_file_magic_cmd=/usr/bin/file 5934 case $host_cpu in 5935 ia64*) 5936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5937 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5938 ;; 5939 hppa*64*) 5940 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]' 5941 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5942 ;; 5943 *) 5944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5945 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5946 ;; 5947 esac 5948 ;; 5949 5950interix[3-9]*) 5951 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5953 ;; 5954 5955irix5* | irix6* | nonstopux*) 5956 case $LD in 5957 *-32|*"-32 ") libmagic=32-bit;; 5958 *-n32|*"-n32 ") libmagic=N32;; 5959 *-64|*"-64 ") libmagic=64-bit;; 5960 *) libmagic=never-match;; 5961 esac 5962 lt_cv_deplibs_check_method=pass_all 5963 ;; 5964 5965# This must be glibc/ELF. 5966linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5967 lt_cv_deplibs_check_method=pass_all 5968 ;; 5969 5970netbsd*) 5971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5973 else 5974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5975 fi 5976 ;; 5977 5978newos6*) 5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5980 lt_cv_file_magic_cmd=/usr/bin/file 5981 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5982 ;; 5983 5984*nto* | *qnx*) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987 5988openbsd* | bitrig*) 5989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5991 else 5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5993 fi 5994 ;; 5995 5996osf3* | osf4* | osf5*) 5997 lt_cv_deplibs_check_method=pass_all 5998 ;; 5999 6000rdos*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004solaris*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6009 lt_cv_deplibs_check_method=pass_all 6010 ;; 6011 6012sysv4 | sysv4.3*) 6013 case $host_vendor in 6014 motorola) 6015 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]' 6016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6017 ;; 6018 ncr) 6019 lt_cv_deplibs_check_method=pass_all 6020 ;; 6021 sequent) 6022 lt_cv_file_magic_cmd='/bin/file' 6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6024 ;; 6025 sni) 6026 lt_cv_file_magic_cmd='/bin/file' 6027 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6028 lt_cv_file_magic_test_file=/lib/libc.so 6029 ;; 6030 siemens) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 pc) 6034 lt_cv_deplibs_check_method=pass_all 6035 ;; 6036 esac 6037 ;; 6038 6039tpf*) 6040 lt_cv_deplibs_check_method=pass_all 6041 ;; 6042os2*) 6043 lt_cv_deplibs_check_method=pass_all 6044 ;; 6045esac 6046 6047fi 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6049$as_echo "$lt_cv_deplibs_check_method" >&6; } 6050 6051file_magic_glob= 6052want_nocaseglob=no 6053if test "$build" = "$host"; then 6054 case $host_os in 6055 mingw* | pw32*) 6056 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6057 want_nocaseglob=yes 6058 else 6059 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6060 fi 6061 ;; 6062 esac 6063fi 6064 6065file_magic_cmd=$lt_cv_file_magic_cmd 6066deplibs_check_method=$lt_cv_deplibs_check_method 6067test -z "$deplibs_check_method" && deplibs_check_method=unknown 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090if test -n "$ac_tool_prefix"; then 6091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6092set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6094$as_echo_n "checking for $ac_word... " >&6; } 6095if ${ac_cv_prog_DLLTOOL+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097else 6098 if test -n "$DLLTOOL"; then 6099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6100else 6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102for as_dir in $PATH 6103do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112done 6113 done 6114IFS=$as_save_IFS 6115 6116fi 6117fi 6118DLLTOOL=$ac_cv_prog_DLLTOOL 6119if test -n "$DLLTOOL"; then 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6121$as_echo "$DLLTOOL" >&6; } 6122else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6124$as_echo "no" >&6; } 6125fi 6126 6127 6128fi 6129if test -z "$ac_cv_prog_DLLTOOL"; then 6130 ac_ct_DLLTOOL=$DLLTOOL 6131 # Extract the first word of "dlltool", so it can be a program name with args. 6132set dummy dlltool; ac_word=$2 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6134$as_echo_n "checking for $ac_word... " >&6; } 6135if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137else 6138 if test -n "$ac_ct_DLLTOOL"; then 6139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6140else 6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6142for as_dir in $PATH 6143do 6144 IFS=$as_save_IFS 6145 test -z "$as_dir" && as_dir=. 6146 for ac_exec_ext in '' $ac_executable_extensions; do 6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6148 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6150 break 2 6151 fi 6152done 6153 done 6154IFS=$as_save_IFS 6155 6156fi 6157fi 6158ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6159if test -n "$ac_ct_DLLTOOL"; then 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6161$as_echo "$ac_ct_DLLTOOL" >&6; } 6162else 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6164$as_echo "no" >&6; } 6165fi 6166 6167 if test "x$ac_ct_DLLTOOL" = x; then 6168 DLLTOOL="false" 6169 else 6170 case $cross_compiling:$ac_tool_warned in 6171yes:) 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6174ac_tool_warned=yes ;; 6175esac 6176 DLLTOOL=$ac_ct_DLLTOOL 6177 fi 6178else 6179 DLLTOOL="$ac_cv_prog_DLLTOOL" 6180fi 6181 6182test -z "$DLLTOOL" && DLLTOOL=dlltool 6183 6184 6185 6186 6187 6188 6189 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6191$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6192if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194else 6195 lt_cv_sharedlib_from_linklib_cmd='unknown' 6196 6197case $host_os in 6198cygwin* | mingw* | pw32* | cegcc*) 6199 # two different shell functions defined in ltmain.sh; 6200 # decide which one to use based on capabilities of $DLLTOOL 6201 case `$DLLTOOL --help 2>&1` in 6202 *--identify-strict*) 6203 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6204 ;; 6205 *) 6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6207 ;; 6208 esac 6209 ;; 6210*) 6211 # fallback: assume linklib IS sharedlib 6212 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6213 ;; 6214esac 6215 6216fi 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6218$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6219sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6220test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6221 6222 6223 6224 6225 6226 6227 6228if test -n "$ac_tool_prefix"; then 6229 for ac_prog in ar 6230 do 6231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6234$as_echo_n "checking for $ac_word... " >&6; } 6235if ${ac_cv_prog_AR+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 if test -n "$AR"; then 6239 ac_cv_prog_AR="$AR" # Let the user override the test. 6240else 6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6242for as_dir in $PATH 6243do 6244 IFS=$as_save_IFS 6245 test -z "$as_dir" && as_dir=. 6246 for ac_exec_ext in '' $ac_executable_extensions; do 6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6248 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6250 break 2 6251 fi 6252done 6253 done 6254IFS=$as_save_IFS 6255 6256fi 6257fi 6258AR=$ac_cv_prog_AR 6259if test -n "$AR"; then 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6261$as_echo "$AR" >&6; } 6262else 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6264$as_echo "no" >&6; } 6265fi 6266 6267 6268 test -n "$AR" && break 6269 done 6270fi 6271if test -z "$AR"; then 6272 ac_ct_AR=$AR 6273 for ac_prog in ar 6274do 6275 # Extract the first word of "$ac_prog", so it can be a program name with args. 6276set dummy $ac_prog; ac_word=$2 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278$as_echo_n "checking for $ac_word... " >&6; } 6279if ${ac_cv_prog_ac_ct_AR+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 if test -n "$ac_ct_AR"; then 6283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6284else 6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286for as_dir in $PATH 6287do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6292 ac_cv_prog_ac_ct_AR="$ac_prog" 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296done 6297 done 6298IFS=$as_save_IFS 6299 6300fi 6301fi 6302ac_ct_AR=$ac_cv_prog_ac_ct_AR 6303if test -n "$ac_ct_AR"; then 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6305$as_echo "$ac_ct_AR" >&6; } 6306else 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6308$as_echo "no" >&6; } 6309fi 6310 6311 6312 test -n "$ac_ct_AR" && break 6313done 6314 6315 if test "x$ac_ct_AR" = x; then 6316 AR="false" 6317 else 6318 case $cross_compiling:$ac_tool_warned in 6319yes:) 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6322ac_tool_warned=yes ;; 6323esac 6324 AR=$ac_ct_AR 6325 fi 6326fi 6327 6328: ${AR=ar} 6329: ${AR_FLAGS=cru} 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6342$as_echo_n "checking for archiver @FILE support... " >&6; } 6343if ${lt_cv_ar_at_file+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 lt_cv_ar_at_file=no 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349 6350int 6351main () 6352{ 6353 6354 ; 6355 return 0; 6356} 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO"; then : 6359 echo conftest.$ac_objext > conftest.lst 6360 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6362 (eval $lt_ar_try) 2>&5 6363 ac_status=$? 6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6365 test $ac_status = 0; } 6366 if test 0 -eq "$ac_status"; then 6367 # Ensure the archiver fails upon bogus file names. 6368 rm -f conftest.$ac_objext libconftest.a 6369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6370 (eval $lt_ar_try) 2>&5 6371 ac_status=$? 6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6373 test $ac_status = 0; } 6374 if test 0 -ne "$ac_status"; then 6375 lt_cv_ar_at_file=@ 6376 fi 6377 fi 6378 rm -f conftest.* libconftest.a 6379 6380fi 6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6382 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6385$as_echo "$lt_cv_ar_at_file" >&6; } 6386 6387if test no = "$lt_cv_ar_at_file"; then 6388 archiver_list_spec= 6389else 6390 archiver_list_spec=$lt_cv_ar_at_file 6391fi 6392 6393 6394 6395 6396 6397 6398 6399if test -n "$ac_tool_prefix"; then 6400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6401set dummy ${ac_tool_prefix}strip; ac_word=$2 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403$as_echo_n "checking for $ac_word... " >&6; } 6404if ${ac_cv_prog_STRIP+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 if test -n "$STRIP"; then 6408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421done 6422 done 6423IFS=$as_save_IFS 6424 6425fi 6426fi 6427STRIP=$ac_cv_prog_STRIP 6428if test -n "$STRIP"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6430$as_echo "$STRIP" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436 6437fi 6438if test -z "$ac_cv_prog_STRIP"; then 6439 ac_ct_STRIP=$STRIP 6440 # Extract the first word of "strip", so it can be a program name with args. 6441set dummy strip; ac_word=$2 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6443$as_echo_n "checking for $ac_word... " >&6; } 6444if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 if test -n "$ac_ct_STRIP"; then 6448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6449else 6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6451for as_dir in $PATH 6452do 6453 IFS=$as_save_IFS 6454 test -z "$as_dir" && as_dir=. 6455 for ac_exec_ext in '' $ac_executable_extensions; do 6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6457 ac_cv_prog_ac_ct_STRIP="strip" 6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6459 break 2 6460 fi 6461done 6462 done 6463IFS=$as_save_IFS 6464 6465fi 6466fi 6467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6468if test -n "$ac_ct_STRIP"; then 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6470$as_echo "$ac_ct_STRIP" >&6; } 6471else 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6473$as_echo "no" >&6; } 6474fi 6475 6476 if test "x$ac_ct_STRIP" = x; then 6477 STRIP=":" 6478 else 6479 case $cross_compiling:$ac_tool_warned in 6480yes:) 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6483ac_tool_warned=yes ;; 6484esac 6485 STRIP=$ac_ct_STRIP 6486 fi 6487else 6488 STRIP="$ac_cv_prog_STRIP" 6489fi 6490 6491test -z "$STRIP" && STRIP=: 6492 6493 6494 6495 6496 6497 6498if test -n "$ac_tool_prefix"; then 6499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6500set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_RANLIB+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$RANLIB"; then 6507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526RANLIB=$ac_cv_prog_RANLIB 6527if test -n "$RANLIB"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6529$as_echo "$RANLIB" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 6536fi 6537if test -z "$ac_cv_prog_RANLIB"; then 6538 ac_ct_RANLIB=$RANLIB 6539 # Extract the first word of "ranlib", so it can be a program name with args. 6540set dummy ranlib; ac_word=$2 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542$as_echo_n "checking for $ac_word... " >&6; } 6543if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 if test -n "$ac_ct_RANLIB"; then 6547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 test -z "$as_dir" && as_dir=. 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6556 ac_cv_prog_ac_ct_RANLIB="ranlib" 6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6567if test -n "$ac_ct_RANLIB"; then 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6569$as_echo "$ac_ct_RANLIB" >&6; } 6570else 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572$as_echo "no" >&6; } 6573fi 6574 6575 if test "x$ac_ct_RANLIB" = x; then 6576 RANLIB=":" 6577 else 6578 case $cross_compiling:$ac_tool_warned in 6579yes:) 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6582ac_tool_warned=yes ;; 6583esac 6584 RANLIB=$ac_ct_RANLIB 6585 fi 6586else 6587 RANLIB="$ac_cv_prog_RANLIB" 6588fi 6589 6590test -z "$RANLIB" && RANLIB=: 6591 6592 6593 6594 6595 6596 6597# Determine commands to create old-style static archives. 6598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6599old_postinstall_cmds='chmod 644 $oldlib' 6600old_postuninstall_cmds= 6601 6602if test -n "$RANLIB"; then 6603 case $host_os in 6604 bitrig* | openbsd*) 6605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6606 ;; 6607 *) 6608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6609 ;; 6610 esac 6611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6612fi 6613 6614case $host_os in 6615 darwin*) 6616 lock_old_archive_extraction=yes ;; 6617 *) 6618 lock_old_archive_extraction=no ;; 6619esac 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659# If no C compiler was specified, use CC. 6660LTCC=${LTCC-"$CC"} 6661 6662# If no C compiler flags were specified, use CFLAGS. 6663LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6664 6665# Allow CC to be a program name with arguments. 6666compiler=$CC 6667 6668 6669# Check for command to grab the raw symbol name followed by C symbol from nm. 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6671$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6672if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 6676# These are sane defaults that work on at least a few old systems. 6677# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6678 6679# Character class describing NM global symbol codes. 6680symcode='[BCDEGRST]' 6681 6682# Regexp to match symbols that can be accessed directly from C. 6683sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6684 6685# Define system-specific variables. 6686case $host_os in 6687aix*) 6688 symcode='[BCDT]' 6689 ;; 6690cygwin* | mingw* | pw32* | cegcc*) 6691 symcode='[ABCDGISTW]' 6692 ;; 6693hpux*) 6694 if test ia64 = "$host_cpu"; then 6695 symcode='[ABCDEGRST]' 6696 fi 6697 ;; 6698irix* | nonstopux*) 6699 symcode='[BCDEGRST]' 6700 ;; 6701osf*) 6702 symcode='[BCDEGQRST]' 6703 ;; 6704solaris*) 6705 symcode='[BDRT]' 6706 ;; 6707sco3.2v5*) 6708 symcode='[DT]' 6709 ;; 6710sysv4.2uw2*) 6711 symcode='[DT]' 6712 ;; 6713sysv5* | sco5v6* | unixware* | OpenUNIX*) 6714 symcode='[ABDT]' 6715 ;; 6716sysv4) 6717 symcode='[DFNSTU]' 6718 ;; 6719esac 6720 6721# If we're using GNU nm, then use its standard symbol codes. 6722case `$NM -V 2>&1` in 6723*GNU* | *'with BFD'*) 6724 symcode='[ABCDGIRSTW]' ;; 6725esac 6726 6727if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6728 # Gets list of data symbols to import. 6729 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6730 # Adjust the below global symbol transforms to fixup imported variables. 6731 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6732 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6733 lt_c_name_lib_hook="\ 6734 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6735 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6736else 6737 # Disable hooks by default. 6738 lt_cv_sys_global_symbol_to_import= 6739 lt_cdecl_hook= 6740 lt_c_name_hook= 6741 lt_c_name_lib_hook= 6742fi 6743 6744# Transform an extracted symbol line into a proper C declaration. 6745# Some systems (esp. on ia64) link data and code symbols differently, 6746# so use this general approach. 6747lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6748$lt_cdecl_hook\ 6749" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6750" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6751 6752# Transform an extracted symbol line into symbol name and symbol address 6753lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6754$lt_c_name_hook\ 6755" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6756" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6757 6758# Transform an extracted symbol line into symbol name with lib prefix and 6759# symbol address. 6760lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6761$lt_c_name_lib_hook\ 6762" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6763" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6764" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6765 6766# Handle CRLF in mingw tool chain 6767opt_cr= 6768case $build_os in 6769mingw*) 6770 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6771 ;; 6772esac 6773 6774# Try without a prefix underscore, then with it. 6775for ac_symprfx in "" "_"; do 6776 6777 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6778 symxfrm="\\1 $ac_symprfx\\2 \\2" 6779 6780 # Write the raw and C identifiers. 6781 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6782 # Fake it for dumpbin and say T for any non-static function, 6783 # D for any global variable and I for any imported variable. 6784 # Also find C++ and __fastcall symbols from MSVC++, 6785 # which start with @ or ?. 6786 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6787" {last_section=section; section=\$ 3};"\ 6788" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6789" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6790" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6791" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6792" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6793" \$ 0!~/External *\|/{next};"\ 6794" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6795" {if(hide[section]) next};"\ 6796" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6797" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6798" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6799" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6800" ' prfx=^$ac_symprfx" 6801 else 6802 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6803 fi 6804 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6805 6806 # Check to see that the pipe works correctly. 6807 pipe_works=no 6808 6809 rm -f conftest* 6810 cat > conftest.$ac_ext <<_LT_EOF 6811#ifdef __cplusplus 6812extern "C" { 6813#endif 6814char nm_test_var; 6815void nm_test_func(void); 6816void nm_test_func(void){} 6817#ifdef __cplusplus 6818} 6819#endif 6820int main(){nm_test_var='a';nm_test_func();return(0);} 6821_LT_EOF 6822 6823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6824 (eval $ac_compile) 2>&5 6825 ac_status=$? 6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6827 test $ac_status = 0; }; then 6828 # Now try to grab the symbols. 6829 nlist=conftest.nm 6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6831 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6832 ac_status=$? 6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; } && test -s "$nlist"; then 6835 # Try sorting and uniquifying the output. 6836 if sort "$nlist" | uniq > "$nlist"T; then 6837 mv -f "$nlist"T "$nlist" 6838 else 6839 rm -f "$nlist"T 6840 fi 6841 6842 # Make sure that we snagged all the symbols we need. 6843 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6844 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6845 cat <<_LT_EOF > conftest.$ac_ext 6846/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6847#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6848/* DATA imports from DLLs on WIN32 can't be const, because runtime 6849 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6850# define LT_DLSYM_CONST 6851#elif defined __osf__ 6852/* This system does not cope well with relocations in const data. */ 6853# define LT_DLSYM_CONST 6854#else 6855# define LT_DLSYM_CONST const 6856#endif 6857 6858#ifdef __cplusplus 6859extern "C" { 6860#endif 6861 6862_LT_EOF 6863 # Now generate the symbol file. 6864 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6865 6866 cat <<_LT_EOF >> conftest.$ac_ext 6867 6868/* The mapping between symbol names and symbols. */ 6869LT_DLSYM_CONST struct { 6870 const char *name; 6871 void *address; 6872} 6873lt__PROGRAM__LTX_preloaded_symbols[] = 6874{ 6875 { "@PROGRAM@", (void *) 0 }, 6876_LT_EOF 6877 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6878 cat <<\_LT_EOF >> conftest.$ac_ext 6879 {0, (void *) 0} 6880}; 6881 6882/* This works around a problem in FreeBSD linker */ 6883#ifdef FREEBSD_WORKAROUND 6884static const void *lt_preloaded_setup() { 6885 return lt__PROGRAM__LTX_preloaded_symbols; 6886} 6887#endif 6888 6889#ifdef __cplusplus 6890} 6891#endif 6892_LT_EOF 6893 # Now try linking the two files. 6894 mv conftest.$ac_objext conftstm.$ac_objext 6895 lt_globsym_save_LIBS=$LIBS 6896 lt_globsym_save_CFLAGS=$CFLAGS 6897 LIBS=conftstm.$ac_objext 6898 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6900 (eval $ac_link) 2>&5 6901 ac_status=$? 6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6903 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6904 pipe_works=yes 6905 fi 6906 LIBS=$lt_globsym_save_LIBS 6907 CFLAGS=$lt_globsym_save_CFLAGS 6908 else 6909 echo "cannot find nm_test_func in $nlist" >&5 6910 fi 6911 else 6912 echo "cannot find nm_test_var in $nlist" >&5 6913 fi 6914 else 6915 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6916 fi 6917 else 6918 echo "$progname: failed program was:" >&5 6919 cat conftest.$ac_ext >&5 6920 fi 6921 rm -rf conftest* conftst* 6922 6923 # Do not use the global_symbol_pipe unless it works. 6924 if test yes = "$pipe_works"; then 6925 break 6926 else 6927 lt_cv_sys_global_symbol_pipe= 6928 fi 6929done 6930 6931fi 6932 6933if test -z "$lt_cv_sys_global_symbol_pipe"; then 6934 lt_cv_sys_global_symbol_to_cdecl= 6935fi 6936if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6938$as_echo "failed" >&6; } 6939else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6941$as_echo "ok" >&6; } 6942fi 6943 6944# Response file support. 6945if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6946 nm_file_list_spec='@' 6947elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6948 nm_file_list_spec='@' 6949fi 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6988$as_echo_n "checking for sysroot... " >&6; } 6989 6990# Check whether --with-sysroot was given. 6991if test "${with_sysroot+set}" = set; then : 6992 withval=$with_sysroot; 6993else 6994 with_sysroot=no 6995fi 6996 6997 6998lt_sysroot= 6999case $with_sysroot in #( 7000 yes) 7001 if test yes = "$GCC"; then 7002 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7003 fi 7004 ;; #( 7005 /*) 7006 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7007 ;; #( 7008 no|'') 7009 ;; #( 7010 *) 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7012$as_echo "$with_sysroot" >&6; } 7013 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7014 ;; 7015esac 7016 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7018$as_echo "${lt_sysroot:-no}" >&6; } 7019 7020 7021 7022 7023 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7025$as_echo_n "checking for a working dd... " >&6; } 7026if ${ac_cv_path_lt_DD+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 printf 0123456789abcdef0123456789abcdef >conftest.i 7030cat conftest.i conftest.i >conftest2.i 7031: ${lt_DD:=$DD} 7032if test -z "$lt_DD"; then 7033 ac_path_lt_DD_found=false 7034 # Loop through the user's path and test for each of PROGNAME-LIST 7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_prog in dd; do 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7043 as_fn_executable_p "$ac_path_lt_DD" || continue 7044if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7045 cmp -s conftest.i conftest.out \ 7046 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7047fi 7048 $ac_path_lt_DD_found && break 3 7049 done 7050 done 7051 done 7052IFS=$as_save_IFS 7053 if test -z "$ac_cv_path_lt_DD"; then 7054 : 7055 fi 7056else 7057 ac_cv_path_lt_DD=$lt_DD 7058fi 7059 7060rm -f conftest.i conftest2.i conftest.out 7061fi 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7063$as_echo "$ac_cv_path_lt_DD" >&6; } 7064 7065 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7067$as_echo_n "checking how to truncate binary pipes... " >&6; } 7068if ${lt_cv_truncate_bin+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 printf 0123456789abcdef0123456789abcdef >conftest.i 7072cat conftest.i conftest.i >conftest2.i 7073lt_cv_truncate_bin= 7074if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7075 cmp -s conftest.i conftest.out \ 7076 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7077fi 7078rm -f conftest.i conftest2.i conftest.out 7079test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7080fi 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7082$as_echo "$lt_cv_truncate_bin" >&6; } 7083 7084 7085 7086 7087 7088 7089# Check whether --enable-libtool-lock was given. 7090if test "${enable_libtool_lock+set}" = set; then : 7091 enableval=$enable_libtool_lock; 7092fi 7093 7094test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7095 7096# Some flags need to be propagated to the compiler or linker for good 7097# libtool support. 7098case $host in 7099ia64-*-hpux*) 7100 # Find out what ABI is being produced by ac_compile, and set mode 7101 # options accordingly. 7102 echo 'int i;' > conftest.$ac_ext 7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7104 (eval $ac_compile) 2>&5 7105 ac_status=$? 7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7107 test $ac_status = 0; }; then 7108 case `/usr/bin/file conftest.$ac_objext` in 7109 *ELF-32*) 7110 HPUX_IA64_MODE=32 7111 ;; 7112 *ELF-64*) 7113 HPUX_IA64_MODE=64 7114 ;; 7115 esac 7116 fi 7117 rm -rf conftest* 7118 ;; 7119*-*-irix6*) 7120 # Find out what ABI is being produced by ac_compile, and set linker 7121 # options accordingly. 7122 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7124 (eval $ac_compile) 2>&5 7125 ac_status=$? 7126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7127 test $ac_status = 0; }; then 7128 if test yes = "$lt_cv_prog_gnu_ld"; then 7129 case `/usr/bin/file conftest.$ac_objext` in 7130 *32-bit*) 7131 LD="${LD-ld} -melf32bsmip" 7132 ;; 7133 *N32*) 7134 LD="${LD-ld} -melf32bmipn32" 7135 ;; 7136 *64-bit*) 7137 LD="${LD-ld} -melf64bmip" 7138 ;; 7139 esac 7140 else 7141 case `/usr/bin/file conftest.$ac_objext` in 7142 *32-bit*) 7143 LD="${LD-ld} -32" 7144 ;; 7145 *N32*) 7146 LD="${LD-ld} -n32" 7147 ;; 7148 *64-bit*) 7149 LD="${LD-ld} -64" 7150 ;; 7151 esac 7152 fi 7153 fi 7154 rm -rf conftest* 7155 ;; 7156 7157mips64*-*linux*) 7158 # Find out what ABI is being produced by ac_compile, and set linker 7159 # options accordingly. 7160 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7162 (eval $ac_compile) 2>&5 7163 ac_status=$? 7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7165 test $ac_status = 0; }; then 7166 emul=elf 7167 case `/usr/bin/file conftest.$ac_objext` in 7168 *32-bit*) 7169 emul="${emul}32" 7170 ;; 7171 *64-bit*) 7172 emul="${emul}64" 7173 ;; 7174 esac 7175 case `/usr/bin/file conftest.$ac_objext` in 7176 *MSB*) 7177 emul="${emul}btsmip" 7178 ;; 7179 *LSB*) 7180 emul="${emul}ltsmip" 7181 ;; 7182 esac 7183 case `/usr/bin/file conftest.$ac_objext` in 7184 *N32*) 7185 emul="${emul}n32" 7186 ;; 7187 esac 7188 LD="${LD-ld} -m $emul" 7189 fi 7190 rm -rf conftest* 7191 ;; 7192 7193x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7194s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7195 # Find out what ABI is being produced by ac_compile, and set linker 7196 # options accordingly. Note that the listed cases only cover the 7197 # situations where additional linker options are needed (such as when 7198 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7199 # vice versa); the common cases where no linker options are needed do 7200 # not appear in the list. 7201 echo 'int i;' > conftest.$ac_ext 7202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7203 (eval $ac_compile) 2>&5 7204 ac_status=$? 7205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7206 test $ac_status = 0; }; then 7207 case `/usr/bin/file conftest.o` in 7208 *32-bit*) 7209 case $host in 7210 x86_64-*kfreebsd*-gnu) 7211 LD="${LD-ld} -m elf_i386_fbsd" 7212 ;; 7213 x86_64-*linux*) 7214 case `/usr/bin/file conftest.o` in 7215 *x86-64*) 7216 LD="${LD-ld} -m elf32_x86_64" 7217 ;; 7218 *) 7219 LD="${LD-ld} -m elf_i386" 7220 ;; 7221 esac 7222 ;; 7223 powerpc64le-*linux*) 7224 LD="${LD-ld} -m elf32lppclinux" 7225 ;; 7226 powerpc64-*linux*) 7227 LD="${LD-ld} -m elf32ppclinux" 7228 ;; 7229 s390x-*linux*) 7230 LD="${LD-ld} -m elf_s390" 7231 ;; 7232 sparc64-*linux*) 7233 LD="${LD-ld} -m elf32_sparc" 7234 ;; 7235 esac 7236 ;; 7237 *64-bit*) 7238 case $host in 7239 x86_64-*kfreebsd*-gnu) 7240 LD="${LD-ld} -m elf_x86_64_fbsd" 7241 ;; 7242 x86_64-*linux*) 7243 LD="${LD-ld} -m elf_x86_64" 7244 ;; 7245 powerpcle-*linux*) 7246 LD="${LD-ld} -m elf64lppc" 7247 ;; 7248 powerpc-*linux*) 7249 LD="${LD-ld} -m elf64ppc" 7250 ;; 7251 s390*-*linux*|s390*-*tpf*) 7252 LD="${LD-ld} -m elf64_s390" 7253 ;; 7254 sparc*-*linux*) 7255 LD="${LD-ld} -m elf64_sparc" 7256 ;; 7257 esac 7258 ;; 7259 esac 7260 fi 7261 rm -rf conftest* 7262 ;; 7263 7264*-*-sco3.2v5*) 7265 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7266 SAVE_CFLAGS=$CFLAGS 7267 CFLAGS="$CFLAGS -belf" 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7269$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7270if ${lt_cv_cc_needs_belf+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 ac_ext=c 7274ac_cpp='$CPP $CPPFLAGS' 7275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7277ac_compiler_gnu=$ac_cv_c_compiler_gnu 7278 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281 7282int 7283main () 7284{ 7285 7286 ; 7287 return 0; 7288} 7289_ACEOF 7290if ac_fn_c_try_link "$LINENO"; then : 7291 lt_cv_cc_needs_belf=yes 7292else 7293 lt_cv_cc_needs_belf=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext \ 7296 conftest$ac_exeext conftest.$ac_ext 7297 ac_ext=c 7298ac_cpp='$CPP $CPPFLAGS' 7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7301ac_compiler_gnu=$ac_cv_c_compiler_gnu 7302 7303fi 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7305$as_echo "$lt_cv_cc_needs_belf" >&6; } 7306 if test yes != "$lt_cv_cc_needs_belf"; then 7307 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7308 CFLAGS=$SAVE_CFLAGS 7309 fi 7310 ;; 7311*-*solaris*) 7312 # Find out what ABI is being produced by ac_compile, and set linker 7313 # options accordingly. 7314 echo 'int i;' > conftest.$ac_ext 7315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7316 (eval $ac_compile) 2>&5 7317 ac_status=$? 7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7319 test $ac_status = 0; }; then 7320 case `/usr/bin/file conftest.o` in 7321 *64-bit*) 7322 case $lt_cv_prog_gnu_ld in 7323 yes*) 7324 case $host in 7325 i?86-*-solaris*|x86_64-*-solaris*) 7326 LD="${LD-ld} -m elf_x86_64" 7327 ;; 7328 sparc*-*-solaris*) 7329 LD="${LD-ld} -m elf64_sparc" 7330 ;; 7331 esac 7332 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7333 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7334 LD=${LD-ld}_sol2 7335 fi 7336 ;; 7337 *) 7338 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7339 LD="${LD-ld} -64" 7340 fi 7341 ;; 7342 esac 7343 ;; 7344 esac 7345 fi 7346 rm -rf conftest* 7347 ;; 7348esac 7349 7350need_locks=$enable_libtool_lock 7351 7352if test -n "$ac_tool_prefix"; then 7353 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7354set dummy ${ac_tool_prefix}mt; ac_word=$2 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7356$as_echo_n "checking for $ac_word... " >&6; } 7357if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 if test -n "$MANIFEST_TOOL"; then 7361 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7362else 7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7364for as_dir in $PATH 7365do 7366 IFS=$as_save_IFS 7367 test -z "$as_dir" && as_dir=. 7368 for ac_exec_ext in '' $ac_executable_extensions; do 7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7370 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7372 break 2 7373 fi 7374done 7375 done 7376IFS=$as_save_IFS 7377 7378fi 7379fi 7380MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7381if test -n "$MANIFEST_TOOL"; then 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7383$as_echo "$MANIFEST_TOOL" >&6; } 7384else 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7386$as_echo "no" >&6; } 7387fi 7388 7389 7390fi 7391if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7392 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7393 # Extract the first word of "mt", so it can be a program name with args. 7394set dummy mt; ac_word=$2 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7396$as_echo_n "checking for $ac_word... " >&6; } 7397if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399else 7400 if test -n "$ac_ct_MANIFEST_TOOL"; then 7401 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7402else 7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404for as_dir in $PATH 7405do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414done 7415 done 7416IFS=$as_save_IFS 7417 7418fi 7419fi 7420ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7421if test -n "$ac_ct_MANIFEST_TOOL"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7423$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; } 7427fi 7428 7429 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7430 MANIFEST_TOOL=":" 7431 else 7432 case $cross_compiling:$ac_tool_warned in 7433yes:) 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7436ac_tool_warned=yes ;; 7437esac 7438 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7439 fi 7440else 7441 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7442fi 7443 7444test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7446$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7447if ${lt_cv_path_mainfest_tool+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 lt_cv_path_mainfest_tool=no 7451 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7452 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7453 cat conftest.err >&5 7454 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7455 lt_cv_path_mainfest_tool=yes 7456 fi 7457 rm -f conftest* 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7460$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7461if test yes != "$lt_cv_path_mainfest_tool"; then 7462 MANIFEST_TOOL=: 7463fi 7464 7465 7466 7467 7468 7469 7470 case $host_os in 7471 rhapsody* | darwin*) 7472 if test -n "$ac_tool_prefix"; then 7473 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7474set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7476$as_echo_n "checking for $ac_word... " >&6; } 7477if ${ac_cv_prog_DSYMUTIL+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 if test -n "$DSYMUTIL"; then 7481 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7482else 7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484for as_dir in $PATH 7485do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7490 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494done 7495 done 7496IFS=$as_save_IFS 7497 7498fi 7499fi 7500DSYMUTIL=$ac_cv_prog_DSYMUTIL 7501if test -n "$DSYMUTIL"; then 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7503$as_echo "$DSYMUTIL" >&6; } 7504else 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7506$as_echo "no" >&6; } 7507fi 7508 7509 7510fi 7511if test -z "$ac_cv_prog_DSYMUTIL"; then 7512 ac_ct_DSYMUTIL=$DSYMUTIL 7513 # Extract the first word of "dsymutil", so it can be a program name with args. 7514set dummy dsymutil; ac_word=$2 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7516$as_echo_n "checking for $ac_word... " >&6; } 7517if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 if test -n "$ac_ct_DSYMUTIL"; then 7521 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 test -z "$as_dir" && as_dir=. 7528 for ac_exec_ext in '' $ac_executable_extensions; do 7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7530 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7532 break 2 7533 fi 7534done 7535 done 7536IFS=$as_save_IFS 7537 7538fi 7539fi 7540ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7541if test -n "$ac_ct_DSYMUTIL"; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7543$as_echo "$ac_ct_DSYMUTIL" >&6; } 7544else 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7546$as_echo "no" >&6; } 7547fi 7548 7549 if test "x$ac_ct_DSYMUTIL" = x; then 7550 DSYMUTIL=":" 7551 else 7552 case $cross_compiling:$ac_tool_warned in 7553yes:) 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7556ac_tool_warned=yes ;; 7557esac 7558 DSYMUTIL=$ac_ct_DSYMUTIL 7559 fi 7560else 7561 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7562fi 7563 7564 if test -n "$ac_tool_prefix"; then 7565 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7566set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7568$as_echo_n "checking for $ac_word... " >&6; } 7569if ${ac_cv_prog_NMEDIT+:} false; then : 7570 $as_echo_n "(cached) " >&6 7571else 7572 if test -n "$NMEDIT"; then 7573 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7574else 7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7576for as_dir in $PATH 7577do 7578 IFS=$as_save_IFS 7579 test -z "$as_dir" && as_dir=. 7580 for ac_exec_ext in '' $ac_executable_extensions; do 7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7582 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7584 break 2 7585 fi 7586done 7587 done 7588IFS=$as_save_IFS 7589 7590fi 7591fi 7592NMEDIT=$ac_cv_prog_NMEDIT 7593if test -n "$NMEDIT"; then 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7595$as_echo "$NMEDIT" >&6; } 7596else 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7598$as_echo "no" >&6; } 7599fi 7600 7601 7602fi 7603if test -z "$ac_cv_prog_NMEDIT"; then 7604 ac_ct_NMEDIT=$NMEDIT 7605 # Extract the first word of "nmedit", so it can be a program name with args. 7606set dummy nmedit; ac_word=$2 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608$as_echo_n "checking for $ac_word... " >&6; } 7609if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 if test -n "$ac_ct_NMEDIT"; then 7613 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7614else 7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7616for as_dir in $PATH 7617do 7618 IFS=$as_save_IFS 7619 test -z "$as_dir" && as_dir=. 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7622 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7624 break 2 7625 fi 7626done 7627 done 7628IFS=$as_save_IFS 7629 7630fi 7631fi 7632ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7633if test -n "$ac_ct_NMEDIT"; then 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7635$as_echo "$ac_ct_NMEDIT" >&6; } 7636else 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7638$as_echo "no" >&6; } 7639fi 7640 7641 if test "x$ac_ct_NMEDIT" = x; then 7642 NMEDIT=":" 7643 else 7644 case $cross_compiling:$ac_tool_warned in 7645yes:) 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7648ac_tool_warned=yes ;; 7649esac 7650 NMEDIT=$ac_ct_NMEDIT 7651 fi 7652else 7653 NMEDIT="$ac_cv_prog_NMEDIT" 7654fi 7655 7656 if test -n "$ac_tool_prefix"; then 7657 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7658set dummy ${ac_tool_prefix}lipo; ac_word=$2 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7660$as_echo_n "checking for $ac_word... " >&6; } 7661if ${ac_cv_prog_LIPO+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 if test -n "$LIPO"; then 7665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7666else 7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7668for as_dir in $PATH 7669do 7670 IFS=$as_save_IFS 7671 test -z "$as_dir" && as_dir=. 7672 for ac_exec_ext in '' $ac_executable_extensions; do 7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7674 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7676 break 2 7677 fi 7678done 7679 done 7680IFS=$as_save_IFS 7681 7682fi 7683fi 7684LIPO=$ac_cv_prog_LIPO 7685if test -n "$LIPO"; then 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7687$as_echo "$LIPO" >&6; } 7688else 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7690$as_echo "no" >&6; } 7691fi 7692 7693 7694fi 7695if test -z "$ac_cv_prog_LIPO"; then 7696 ac_ct_LIPO=$LIPO 7697 # Extract the first word of "lipo", so it can be a program name with args. 7698set dummy lipo; ac_word=$2 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7700$as_echo_n "checking for $ac_word... " >&6; } 7701if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 if test -n "$ac_ct_LIPO"; then 7705 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7706else 7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708for as_dir in $PATH 7709do 7710 IFS=$as_save_IFS 7711 test -z "$as_dir" && as_dir=. 7712 for ac_exec_ext in '' $ac_executable_extensions; do 7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7714 ac_cv_prog_ac_ct_LIPO="lipo" 7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7716 break 2 7717 fi 7718done 7719 done 7720IFS=$as_save_IFS 7721 7722fi 7723fi 7724ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7725if test -n "$ac_ct_LIPO"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7727$as_echo "$ac_ct_LIPO" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730$as_echo "no" >&6; } 7731fi 7732 7733 if test "x$ac_ct_LIPO" = x; then 7734 LIPO=":" 7735 else 7736 case $cross_compiling:$ac_tool_warned in 7737yes:) 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7740ac_tool_warned=yes ;; 7741esac 7742 LIPO=$ac_ct_LIPO 7743 fi 7744else 7745 LIPO="$ac_cv_prog_LIPO" 7746fi 7747 7748 if test -n "$ac_tool_prefix"; then 7749 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7750set dummy ${ac_tool_prefix}otool; ac_word=$2 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752$as_echo_n "checking for $ac_word... " >&6; } 7753if ${ac_cv_prog_OTOOL+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 if test -n "$OTOOL"; then 7757 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7758else 7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760for as_dir in $PATH 7761do 7762 IFS=$as_save_IFS 7763 test -z "$as_dir" && as_dir=. 7764 for ac_exec_ext in '' $ac_executable_extensions; do 7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7766 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7768 break 2 7769 fi 7770done 7771 done 7772IFS=$as_save_IFS 7773 7774fi 7775fi 7776OTOOL=$ac_cv_prog_OTOOL 7777if test -n "$OTOOL"; then 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7779$as_echo "$OTOOL" >&6; } 7780else 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7782$as_echo "no" >&6; } 7783fi 7784 7785 7786fi 7787if test -z "$ac_cv_prog_OTOOL"; then 7788 ac_ct_OTOOL=$OTOOL 7789 # Extract the first word of "otool", so it can be a program name with args. 7790set dummy otool; ac_word=$2 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7792$as_echo_n "checking for $ac_word... " >&6; } 7793if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7794 $as_echo_n "(cached) " >&6 7795else 7796 if test -n "$ac_ct_OTOOL"; then 7797 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7798else 7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7800for as_dir in $PATH 7801do 7802 IFS=$as_save_IFS 7803 test -z "$as_dir" && as_dir=. 7804 for ac_exec_ext in '' $ac_executable_extensions; do 7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7806 ac_cv_prog_ac_ct_OTOOL="otool" 7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7808 break 2 7809 fi 7810done 7811 done 7812IFS=$as_save_IFS 7813 7814fi 7815fi 7816ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7817if test -n "$ac_ct_OTOOL"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7819$as_echo "$ac_ct_OTOOL" >&6; } 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824 7825 if test "x$ac_ct_OTOOL" = x; then 7826 OTOOL=":" 7827 else 7828 case $cross_compiling:$ac_tool_warned in 7829yes:) 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7832ac_tool_warned=yes ;; 7833esac 7834 OTOOL=$ac_ct_OTOOL 7835 fi 7836else 7837 OTOOL="$ac_cv_prog_OTOOL" 7838fi 7839 7840 if test -n "$ac_tool_prefix"; then 7841 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7842set dummy ${ac_tool_prefix}otool64; ac_word=$2 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844$as_echo_n "checking for $ac_word... " >&6; } 7845if ${ac_cv_prog_OTOOL64+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 if test -n "$OTOOL64"; then 7849 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7850else 7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7852for as_dir in $PATH 7853do 7854 IFS=$as_save_IFS 7855 test -z "$as_dir" && as_dir=. 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7858 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868OTOOL64=$ac_cv_prog_OTOOL64 7869if test -n "$OTOOL64"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7871$as_echo "$OTOOL64" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 7878fi 7879if test -z "$ac_cv_prog_OTOOL64"; then 7880 ac_ct_OTOOL64=$OTOOL64 7881 # Extract the first word of "otool64", so it can be a program name with args. 7882set dummy otool64; ac_word=$2 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7884$as_echo_n "checking for $ac_word... " >&6; } 7885if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 if test -n "$ac_ct_OTOOL64"; then 7889 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7890else 7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7892for as_dir in $PATH 7893do 7894 IFS=$as_save_IFS 7895 test -z "$as_dir" && as_dir=. 7896 for ac_exec_ext in '' $ac_executable_extensions; do 7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7898 ac_cv_prog_ac_ct_OTOOL64="otool64" 7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7900 break 2 7901 fi 7902done 7903 done 7904IFS=$as_save_IFS 7905 7906fi 7907fi 7908ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7909if test -n "$ac_ct_OTOOL64"; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7911$as_echo "$ac_ct_OTOOL64" >&6; } 7912else 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914$as_echo "no" >&6; } 7915fi 7916 7917 if test "x$ac_ct_OTOOL64" = x; then 7918 OTOOL64=":" 7919 else 7920 case $cross_compiling:$ac_tool_warned in 7921yes:) 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7924ac_tool_warned=yes ;; 7925esac 7926 OTOOL64=$ac_ct_OTOOL64 7927 fi 7928else 7929 OTOOL64="$ac_cv_prog_OTOOL64" 7930fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7959$as_echo_n "checking for -single_module linker flag... " >&6; } 7960if ${lt_cv_apple_cc_single_mod+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 lt_cv_apple_cc_single_mod=no 7964 if test -z "$LT_MULTI_MODULE"; then 7965 # By default we will add the -single_module flag. You can override 7966 # by either setting the environment variable LT_MULTI_MODULE 7967 # non-empty at configure time, or by adding -multi_module to the 7968 # link flags. 7969 rm -rf libconftest.dylib* 7970 echo "int foo(void){return 1;}" > conftest.c 7971 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7972-dynamiclib -Wl,-single_module conftest.c" >&5 7973 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7974 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7975 _lt_result=$? 7976 # If there is a non-empty error log, and "single_module" 7977 # appears in it, assume the flag caused a linker warning 7978 if test -s conftest.err && $GREP single_module conftest.err; then 7979 cat conftest.err >&5 7980 # Otherwise, if the output was created with a 0 exit code from 7981 # the compiler, it worked. 7982 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7983 lt_cv_apple_cc_single_mod=yes 7984 else 7985 cat conftest.err >&5 7986 fi 7987 rm -rf libconftest.dylib* 7988 rm -f conftest.* 7989 fi 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7992$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7993 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7995$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7996if ${lt_cv_ld_exported_symbols_list+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 lt_cv_ld_exported_symbols_list=no 8000 save_LDFLAGS=$LDFLAGS 8001 echo "_main" > conftest.sym 8002 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004/* end confdefs.h. */ 8005 8006int 8007main () 8008{ 8009 8010 ; 8011 return 0; 8012} 8013_ACEOF 8014if ac_fn_c_try_link "$LINENO"; then : 8015 lt_cv_ld_exported_symbols_list=yes 8016else 8017 lt_cv_ld_exported_symbols_list=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext \ 8020 conftest$ac_exeext conftest.$ac_ext 8021 LDFLAGS=$save_LDFLAGS 8022 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8025$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8026 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8028$as_echo_n "checking for -force_load linker flag... " >&6; } 8029if ${lt_cv_ld_force_load+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 lt_cv_ld_force_load=no 8033 cat > conftest.c << _LT_EOF 8034int forced_loaded() { return 2;} 8035_LT_EOF 8036 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8037 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8038 echo "$AR cru libconftest.a conftest.o" >&5 8039 $AR cru libconftest.a conftest.o 2>&5 8040 echo "$RANLIB libconftest.a" >&5 8041 $RANLIB libconftest.a 2>&5 8042 cat > conftest.c << _LT_EOF 8043int main() { return 0;} 8044_LT_EOF 8045 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8046 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8047 _lt_result=$? 8048 if test -s conftest.err && $GREP force_load conftest.err; then 8049 cat conftest.err >&5 8050 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8051 lt_cv_ld_force_load=yes 8052 else 8053 cat conftest.err >&5 8054 fi 8055 rm -f conftest.err libconftest.a conftest conftest.c 8056 rm -rf conftest.dSYM 8057 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8060$as_echo "$lt_cv_ld_force_load" >&6; } 8061 case $host_os in 8062 rhapsody* | darwin1.[012]) 8063 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8064 darwin1.*) 8065 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8066 darwin*) # darwin 5.x on 8067 # if running on 10.5 or later, the deployment target defaults 8068 # to the OS version, if on x86, and 10.4, the deployment 8069 # target defaults to 10.4. Don't you love it? 8070 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8071 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8072 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8073 10.[012][,.]*) 8074 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8075 10.*) 8076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8077 esac 8078 ;; 8079 esac 8080 if test yes = "$lt_cv_apple_cc_single_mod"; then 8081 _lt_dar_single_mod='$single_module' 8082 fi 8083 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8084 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8085 else 8086 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8087 fi 8088 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8089 _lt_dsymutil='~$DSYMUTIL $lib || :' 8090 else 8091 _lt_dsymutil= 8092 fi 8093 ;; 8094 esac 8095 8096ac_ext=c 8097ac_cpp='$CPP $CPPFLAGS' 8098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8100ac_compiler_gnu=$ac_cv_c_compiler_gnu 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8102$as_echo_n "checking how to run the C preprocessor... " >&6; } 8103# On Suns, sometimes $CPP names a directory. 8104if test -n "$CPP" && test -d "$CPP"; then 8105 CPP= 8106fi 8107if test -z "$CPP"; then 8108 if ${ac_cv_prog_CPP+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 # Double quotes because CPP needs to be expanded 8112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8113 do 8114 ac_preproc_ok=false 8115for ac_c_preproc_warn_flag in '' yes 8116do 8117 # Use a header file that comes with gcc, so configuring glibc 8118 # with a fresh cross-compiler works. 8119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8120 # <limits.h> exists even on freestanding compilers. 8121 # On the NeXT, cc -E runs the code through the compiler's parser, 8122 # not just through cpp. "Syntax error" is here to catch this case. 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125#ifdef __STDC__ 8126# include <limits.h> 8127#else 8128# include <assert.h> 8129#endif 8130 Syntax error 8131_ACEOF 8132if ac_fn_c_try_cpp "$LINENO"; then : 8133 8134else 8135 # Broken: fails on valid input. 8136continue 8137fi 8138rm -f conftest.err conftest.i conftest.$ac_ext 8139 8140 # OK, works on sane cases. Now check whether nonexistent headers 8141 # can be detected and how. 8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144#include <ac_nonexistent.h> 8145_ACEOF 8146if ac_fn_c_try_cpp "$LINENO"; then : 8147 # Broken: success on invalid input. 8148continue 8149else 8150 # Passes both tests. 8151ac_preproc_ok=: 8152break 8153fi 8154rm -f conftest.err conftest.i conftest.$ac_ext 8155 8156done 8157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8158rm -f conftest.i conftest.err conftest.$ac_ext 8159if $ac_preproc_ok; then : 8160 break 8161fi 8162 8163 done 8164 ac_cv_prog_CPP=$CPP 8165 8166fi 8167 CPP=$ac_cv_prog_CPP 8168else 8169 ac_cv_prog_CPP=$CPP 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8172$as_echo "$CPP" >&6; } 8173ac_preproc_ok=false 8174for ac_c_preproc_warn_flag in '' yes 8175do 8176 # Use a header file that comes with gcc, so configuring glibc 8177 # with a fresh cross-compiler works. 8178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8179 # <limits.h> exists even on freestanding compilers. 8180 # On the NeXT, cc -E runs the code through the compiler's parser, 8181 # not just through cpp. "Syntax error" is here to catch this case. 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184#ifdef __STDC__ 8185# include <limits.h> 8186#else 8187# include <assert.h> 8188#endif 8189 Syntax error 8190_ACEOF 8191if ac_fn_c_try_cpp "$LINENO"; then : 8192 8193else 8194 # Broken: fails on valid input. 8195continue 8196fi 8197rm -f conftest.err conftest.i conftest.$ac_ext 8198 8199 # OK, works on sane cases. Now check whether nonexistent headers 8200 # can be detected and how. 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203#include <ac_nonexistent.h> 8204_ACEOF 8205if ac_fn_c_try_cpp "$LINENO"; then : 8206 # Broken: success on invalid input. 8207continue 8208else 8209 # Passes both tests. 8210ac_preproc_ok=: 8211break 8212fi 8213rm -f conftest.err conftest.i conftest.$ac_ext 8214 8215done 8216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8217rm -f conftest.i conftest.err conftest.$ac_ext 8218if $ac_preproc_ok; then : 8219 8220else 8221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8223as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8224See \`config.log' for more details" "$LINENO" 5; } 8225fi 8226 8227ac_ext=c 8228ac_cpp='$CPP $CPPFLAGS' 8229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8231ac_compiler_gnu=$ac_cv_c_compiler_gnu 8232 8233 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8235$as_echo_n "checking for ANSI C header files... " >&6; } 8236if ${ac_cv_header_stdc+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241#include <stdlib.h> 8242#include <stdarg.h> 8243#include <string.h> 8244#include <float.h> 8245 8246int 8247main () 8248{ 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_compile "$LINENO"; then : 8255 ac_cv_header_stdc=yes 8256else 8257 ac_cv_header_stdc=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8260 8261if test $ac_cv_header_stdc = yes; then 8262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8264/* end confdefs.h. */ 8265#include <string.h> 8266 8267_ACEOF 8268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8269 $EGREP "memchr" >/dev/null 2>&1; then : 8270 8271else 8272 ac_cv_header_stdc=no 8273fi 8274rm -f conftest* 8275 8276fi 8277 8278if test $ac_cv_header_stdc = yes; then 8279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282#include <stdlib.h> 8283 8284_ACEOF 8285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8286 $EGREP "free" >/dev/null 2>&1; then : 8287 8288else 8289 ac_cv_header_stdc=no 8290fi 8291rm -f conftest* 8292 8293fi 8294 8295if test $ac_cv_header_stdc = yes; then 8296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8297 if test "$cross_compiling" = yes; then : 8298 : 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302#include <ctype.h> 8303#include <stdlib.h> 8304#if ((' ' & 0x0FF) == 0x020) 8305# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8306# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8307#else 8308# define ISLOWER(c) \ 8309 (('a' <= (c) && (c) <= 'i') \ 8310 || ('j' <= (c) && (c) <= 'r') \ 8311 || ('s' <= (c) && (c) <= 'z')) 8312# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8313#endif 8314 8315#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8316int 8317main () 8318{ 8319 int i; 8320 for (i = 0; i < 256; i++) 8321 if (XOR (islower (i), ISLOWER (i)) 8322 || toupper (i) != TOUPPER (i)) 8323 return 2; 8324 return 0; 8325} 8326_ACEOF 8327if ac_fn_c_try_run "$LINENO"; then : 8328 8329else 8330 ac_cv_header_stdc=no 8331fi 8332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8333 conftest.$ac_objext conftest.beam conftest.$ac_ext 8334fi 8335 8336fi 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8339$as_echo "$ac_cv_header_stdc" >&6; } 8340if test $ac_cv_header_stdc = yes; then 8341 8342$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8343 8344fi 8345 8346# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8347for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8348 inttypes.h stdint.h unistd.h 8349do : 8350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8351ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8352" 8353if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8354 cat >>confdefs.h <<_ACEOF 8355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8356_ACEOF 8357 8358fi 8359 8360done 8361 8362 8363for ac_header in dlfcn.h 8364do : 8365 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8366" 8367if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8368 cat >>confdefs.h <<_ACEOF 8369#define HAVE_DLFCN_H 1 8370_ACEOF 8371 8372fi 8373 8374done 8375 8376 8377 8378 8379 8380# Set options 8381enable_win32_dll=yes 8382 8383case $host in 8384*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8385 if test -n "$ac_tool_prefix"; then 8386 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8387set dummy ${ac_tool_prefix}as; ac_word=$2 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8389$as_echo_n "checking for $ac_word... " >&6; } 8390if ${ac_cv_prog_AS+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 if test -n "$AS"; then 8394 ac_cv_prog_AS="$AS" # Let the user override the test. 8395else 8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8397for as_dir in $PATH 8398do 8399 IFS=$as_save_IFS 8400 test -z "$as_dir" && as_dir=. 8401 for ac_exec_ext in '' $ac_executable_extensions; do 8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8403 ac_cv_prog_AS="${ac_tool_prefix}as" 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8405 break 2 8406 fi 8407done 8408 done 8409IFS=$as_save_IFS 8410 8411fi 8412fi 8413AS=$ac_cv_prog_AS 8414if test -n "$AS"; then 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8416$as_echo "$AS" >&6; } 8417else 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8419$as_echo "no" >&6; } 8420fi 8421 8422 8423fi 8424if test -z "$ac_cv_prog_AS"; then 8425 ac_ct_AS=$AS 8426 # Extract the first word of "as", so it can be a program name with args. 8427set dummy as; ac_word=$2 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8429$as_echo_n "checking for $ac_word... " >&6; } 8430if ${ac_cv_prog_ac_ct_AS+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 if test -n "$ac_ct_AS"; then 8434 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8435else 8436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8437for as_dir in $PATH 8438do 8439 IFS=$as_save_IFS 8440 test -z "$as_dir" && as_dir=. 8441 for ac_exec_ext in '' $ac_executable_extensions; do 8442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8443 ac_cv_prog_ac_ct_AS="as" 8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8445 break 2 8446 fi 8447done 8448 done 8449IFS=$as_save_IFS 8450 8451fi 8452fi 8453ac_ct_AS=$ac_cv_prog_ac_ct_AS 8454if test -n "$ac_ct_AS"; then 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8456$as_echo "$ac_ct_AS" >&6; } 8457else 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8459$as_echo "no" >&6; } 8460fi 8461 8462 if test "x$ac_ct_AS" = x; then 8463 AS="false" 8464 else 8465 case $cross_compiling:$ac_tool_warned in 8466yes:) 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8469ac_tool_warned=yes ;; 8470esac 8471 AS=$ac_ct_AS 8472 fi 8473else 8474 AS="$ac_cv_prog_AS" 8475fi 8476 8477 if test -n "$ac_tool_prefix"; then 8478 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8479set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8481$as_echo_n "checking for $ac_word... " >&6; } 8482if ${ac_cv_prog_DLLTOOL+:} false; then : 8483 $as_echo_n "(cached) " >&6 8484else 8485 if test -n "$DLLTOOL"; then 8486 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8487else 8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8489for as_dir in $PATH 8490do 8491 IFS=$as_save_IFS 8492 test -z "$as_dir" && as_dir=. 8493 for ac_exec_ext in '' $ac_executable_extensions; do 8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8495 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8497 break 2 8498 fi 8499done 8500 done 8501IFS=$as_save_IFS 8502 8503fi 8504fi 8505DLLTOOL=$ac_cv_prog_DLLTOOL 8506if test -n "$DLLTOOL"; then 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8508$as_echo "$DLLTOOL" >&6; } 8509else 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8511$as_echo "no" >&6; } 8512fi 8513 8514 8515fi 8516if test -z "$ac_cv_prog_DLLTOOL"; then 8517 ac_ct_DLLTOOL=$DLLTOOL 8518 # Extract the first word of "dlltool", so it can be a program name with args. 8519set dummy dlltool; ac_word=$2 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8521$as_echo_n "checking for $ac_word... " >&6; } 8522if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 if test -n "$ac_ct_DLLTOOL"; then 8526 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8527else 8528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8529for as_dir in $PATH 8530do 8531 IFS=$as_save_IFS 8532 test -z "$as_dir" && as_dir=. 8533 for ac_exec_ext in '' $ac_executable_extensions; do 8534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8535 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8537 break 2 8538 fi 8539done 8540 done 8541IFS=$as_save_IFS 8542 8543fi 8544fi 8545ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8546if test -n "$ac_ct_DLLTOOL"; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8548$as_echo "$ac_ct_DLLTOOL" >&6; } 8549else 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8551$as_echo "no" >&6; } 8552fi 8553 8554 if test "x$ac_ct_DLLTOOL" = x; then 8555 DLLTOOL="false" 8556 else 8557 case $cross_compiling:$ac_tool_warned in 8558yes:) 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8561ac_tool_warned=yes ;; 8562esac 8563 DLLTOOL=$ac_ct_DLLTOOL 8564 fi 8565else 8566 DLLTOOL="$ac_cv_prog_DLLTOOL" 8567fi 8568 8569 if test -n "$ac_tool_prefix"; then 8570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8571set dummy ${ac_tool_prefix}objdump; ac_word=$2 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8573$as_echo_n "checking for $ac_word... " >&6; } 8574if ${ac_cv_prog_OBJDUMP+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 if test -n "$OBJDUMP"; then 8578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8579else 8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8581for as_dir in $PATH 8582do 8583 IFS=$as_save_IFS 8584 test -z "$as_dir" && as_dir=. 8585 for ac_exec_ext in '' $ac_executable_extensions; do 8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8589 break 2 8590 fi 8591done 8592 done 8593IFS=$as_save_IFS 8594 8595fi 8596fi 8597OBJDUMP=$ac_cv_prog_OBJDUMP 8598if test -n "$OBJDUMP"; then 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8600$as_echo "$OBJDUMP" >&6; } 8601else 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8603$as_echo "no" >&6; } 8604fi 8605 8606 8607fi 8608if test -z "$ac_cv_prog_OBJDUMP"; then 8609 ac_ct_OBJDUMP=$OBJDUMP 8610 # Extract the first word of "objdump", so it can be a program name with args. 8611set dummy objdump; ac_word=$2 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8613$as_echo_n "checking for $ac_word... " >&6; } 8614if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 if test -n "$ac_ct_OBJDUMP"; then 8618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8619else 8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8621for as_dir in $PATH 8622do 8623 IFS=$as_save_IFS 8624 test -z "$as_dir" && as_dir=. 8625 for ac_exec_ext in '' $ac_executable_extensions; do 8626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8627 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8629 break 2 8630 fi 8631done 8632 done 8633IFS=$as_save_IFS 8634 8635fi 8636fi 8637ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8638if test -n "$ac_ct_OBJDUMP"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8640$as_echo "$ac_ct_OBJDUMP" >&6; } 8641else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8643$as_echo "no" >&6; } 8644fi 8645 8646 if test "x$ac_ct_OBJDUMP" = x; then 8647 OBJDUMP="false" 8648 else 8649 case $cross_compiling:$ac_tool_warned in 8650yes:) 8651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8653ac_tool_warned=yes ;; 8654esac 8655 OBJDUMP=$ac_ct_OBJDUMP 8656 fi 8657else 8658 OBJDUMP="$ac_cv_prog_OBJDUMP" 8659fi 8660 8661 ;; 8662esac 8663 8664test -z "$AS" && AS=as 8665 8666 8667 8668 8669 8670test -z "$DLLTOOL" && DLLTOOL=dlltool 8671 8672 8673 8674 8675 8676test -z "$OBJDUMP" && OBJDUMP=objdump 8677 8678 8679 8680 8681 8682 8683 8684 enable_dlopen=no 8685 8686 8687 8688 # Check whether --enable-shared was given. 8689if test "${enable_shared+set}" = set; then : 8690 enableval=$enable_shared; p=${PACKAGE-default} 8691 case $enableval in 8692 yes) enable_shared=yes ;; 8693 no) enable_shared=no ;; 8694 *) 8695 enable_shared=no 8696 # Look at the argument we got. We use all the common list separators. 8697 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8698 for pkg in $enableval; do 8699 IFS=$lt_save_ifs 8700 if test "X$pkg" = "X$p"; then 8701 enable_shared=yes 8702 fi 8703 done 8704 IFS=$lt_save_ifs 8705 ;; 8706 esac 8707else 8708 enable_shared=yes 8709fi 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 # Check whether --enable-static was given. 8720if test "${enable_static+set}" = set; then : 8721 enableval=$enable_static; p=${PACKAGE-default} 8722 case $enableval in 8723 yes) enable_static=yes ;; 8724 no) enable_static=no ;; 8725 *) 8726 enable_static=no 8727 # Look at the argument we got. We use all the common list separators. 8728 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8729 for pkg in $enableval; do 8730 IFS=$lt_save_ifs 8731 if test "X$pkg" = "X$p"; then 8732 enable_static=yes 8733 fi 8734 done 8735 IFS=$lt_save_ifs 8736 ;; 8737 esac 8738else 8739 enable_static=yes 8740fi 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751# Check whether --with-pic was given. 8752if test "${with_pic+set}" = set; then : 8753 withval=$with_pic; lt_p=${PACKAGE-default} 8754 case $withval in 8755 yes|no) pic_mode=$withval ;; 8756 *) 8757 pic_mode=default 8758 # Look at the argument we got. We use all the common list separators. 8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8760 for lt_pkg in $withval; do 8761 IFS=$lt_save_ifs 8762 if test "X$lt_pkg" = "X$lt_p"; then 8763 pic_mode=yes 8764 fi 8765 done 8766 IFS=$lt_save_ifs 8767 ;; 8768 esac 8769else 8770 pic_mode=default 8771fi 8772 8773 8774 8775 8776 8777 8778 8779 8780 # Check whether --enable-fast-install was given. 8781if test "${enable_fast_install+set}" = set; then : 8782 enableval=$enable_fast_install; p=${PACKAGE-default} 8783 case $enableval in 8784 yes) enable_fast_install=yes ;; 8785 no) enable_fast_install=no ;; 8786 *) 8787 enable_fast_install=no 8788 # Look at the argument we got. We use all the common list separators. 8789 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8790 for pkg in $enableval; do 8791 IFS=$lt_save_ifs 8792 if test "X$pkg" = "X$p"; then 8793 enable_fast_install=yes 8794 fi 8795 done 8796 IFS=$lt_save_ifs 8797 ;; 8798 esac 8799else 8800 enable_fast_install=yes 8801fi 8802 8803 8804 8805 8806 8807 8808 8809 8810 shared_archive_member_spec= 8811case $host,$enable_shared in 8812power*-*-aix[5-9]*,yes) 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8814$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8815 8816# Check whether --with-aix-soname was given. 8817if test "${with_aix_soname+set}" = set; then : 8818 withval=$with_aix_soname; case $withval in 8819 aix|svr4|both) 8820 ;; 8821 *) 8822 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8823 ;; 8824 esac 8825 lt_cv_with_aix_soname=$with_aix_soname 8826else 8827 if ${lt_cv_with_aix_soname+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 lt_cv_with_aix_soname=aix 8831fi 8832 8833 with_aix_soname=$lt_cv_with_aix_soname 8834fi 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8837$as_echo "$with_aix_soname" >&6; } 8838 if test aix != "$with_aix_soname"; then 8839 # For the AIX way of multilib, we name the shared archive member 8840 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8841 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8842 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8843 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8844 if test 64 = "${OBJECT_MODE-32}"; then 8845 shared_archive_member_spec=shr_64 8846 else 8847 shared_archive_member_spec=shr 8848 fi 8849 fi 8850 ;; 8851*) 8852 with_aix_soname=aix 8853 ;; 8854esac 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865# This can be used to rebuild libtool when needed 8866LIBTOOL_DEPS=$ltmain 8867 8868# Always use our own libtool. 8869LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900test -z "$LN_S" && LN_S="ln -s" 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915if test -n "${ZSH_VERSION+set}"; then 8916 setopt NO_GLOB_SUBST 8917fi 8918 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8920$as_echo_n "checking for objdir... " >&6; } 8921if ${lt_cv_objdir+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 rm -f .libs 2>/dev/null 8925mkdir .libs 2>/dev/null 8926if test -d .libs; then 8927 lt_cv_objdir=.libs 8928else 8929 # MS-DOS does not allow filenames that begin with a dot. 8930 lt_cv_objdir=_libs 8931fi 8932rmdir .libs 2>/dev/null 8933fi 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8935$as_echo "$lt_cv_objdir" >&6; } 8936objdir=$lt_cv_objdir 8937 8938 8939 8940 8941 8942cat >>confdefs.h <<_ACEOF 8943#define LT_OBJDIR "$lt_cv_objdir/" 8944_ACEOF 8945 8946 8947 8948 8949case $host_os in 8950aix3*) 8951 # AIX sometimes has problems with the GCC collect2 program. For some 8952 # reason, if we set the COLLECT_NAMES environment variable, the problems 8953 # vanish in a puff of smoke. 8954 if test set != "${COLLECT_NAMES+set}"; then 8955 COLLECT_NAMES= 8956 export COLLECT_NAMES 8957 fi 8958 ;; 8959esac 8960 8961# Global variables: 8962ofile=libtool 8963can_build_shared=yes 8964 8965# All known linkers require a '.a' archive for static linking (except MSVC, 8966# which needs '.lib'). 8967libext=a 8968 8969with_gnu_ld=$lt_cv_prog_gnu_ld 8970 8971old_CC=$CC 8972old_CFLAGS=$CFLAGS 8973 8974# Set sane defaults for various variables 8975test -z "$CC" && CC=cc 8976test -z "$LTCC" && LTCC=$CC 8977test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8978test -z "$LD" && LD=ld 8979test -z "$ac_objext" && ac_objext=o 8980 8981for cc_temp in $compiler""; do 8982 case $cc_temp in 8983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8985 \-*) ;; 8986 *) break;; 8987 esac 8988done 8989cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8990 8991 8992# Only perform the check for file, if the check method requires it 8993test -z "$MAGIC_CMD" && MAGIC_CMD=file 8994case $deplibs_check_method in 8995file_magic*) 8996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8998$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8999if ${lt_cv_path_MAGIC_CMD+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 case $MAGIC_CMD in 9003[\\/*] | ?:[\\/]*) 9004 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9005 ;; 9006*) 9007 lt_save_MAGIC_CMD=$MAGIC_CMD 9008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9010 for ac_dir in $ac_dummy; do 9011 IFS=$lt_save_ifs 9012 test -z "$ac_dir" && ac_dir=. 9013 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9014 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9015 if test -n "$file_magic_test_file"; then 9016 case $deplibs_check_method in 9017 "file_magic "*) 9018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9019 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9021 $EGREP "$file_magic_regex" > /dev/null; then 9022 : 9023 else 9024 cat <<_LT_EOF 1>&2 9025 9026*** Warning: the command libtool uses to detect shared libraries, 9027*** $file_magic_cmd, produces output that libtool cannot recognize. 9028*** The result is that libtool may fail to recognize shared libraries 9029*** as such. This will affect the creation of libtool libraries that 9030*** depend on shared libraries, but programs linked with such libtool 9031*** libraries will work regardless of this problem. Nevertheless, you 9032*** may want to report the problem to your system manager and/or to 9033*** [email protected] 9034 9035_LT_EOF 9036 fi ;; 9037 esac 9038 fi 9039 break 9040 fi 9041 done 9042 IFS=$lt_save_ifs 9043 MAGIC_CMD=$lt_save_MAGIC_CMD 9044 ;; 9045esac 9046fi 9047 9048MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9049if test -n "$MAGIC_CMD"; then 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9051$as_echo "$MAGIC_CMD" >&6; } 9052else 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9054$as_echo "no" >&6; } 9055fi 9056 9057 9058 9059 9060 9061if test -z "$lt_cv_path_MAGIC_CMD"; then 9062 if test -n "$ac_tool_prefix"; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9064$as_echo_n "checking for file... " >&6; } 9065if ${lt_cv_path_MAGIC_CMD+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 case $MAGIC_CMD in 9069[\\/*] | ?:[\\/]*) 9070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9071 ;; 9072*) 9073 lt_save_MAGIC_CMD=$MAGIC_CMD 9074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9076 for ac_dir in $ac_dummy; do 9077 IFS=$lt_save_ifs 9078 test -z "$ac_dir" && ac_dir=. 9079 if test -f "$ac_dir/file"; then 9080 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9081 if test -n "$file_magic_test_file"; then 9082 case $deplibs_check_method in 9083 "file_magic "*) 9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9087 $EGREP "$file_magic_regex" > /dev/null; then 9088 : 9089 else 9090 cat <<_LT_EOF 1>&2 9091 9092*** Warning: the command libtool uses to detect shared libraries, 9093*** $file_magic_cmd, produces output that libtool cannot recognize. 9094*** The result is that libtool may fail to recognize shared libraries 9095*** as such. This will affect the creation of libtool libraries that 9096*** depend on shared libraries, but programs linked with such libtool 9097*** libraries will work regardless of this problem. Nevertheless, you 9098*** may want to report the problem to your system manager and/or to 9099*** [email protected] 9100 9101_LT_EOF 9102 fi ;; 9103 esac 9104 fi 9105 break 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 MAGIC_CMD=$lt_save_MAGIC_CMD 9110 ;; 9111esac 9112fi 9113 9114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9115if test -n "$MAGIC_CMD"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9117$as_echo "$MAGIC_CMD" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124 else 9125 MAGIC_CMD=: 9126 fi 9127fi 9128 9129 fi 9130 ;; 9131esac 9132 9133# Use C for the default configuration in the libtool script 9134 9135lt_save_CC=$CC 9136ac_ext=c 9137ac_cpp='$CPP $CPPFLAGS' 9138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9140ac_compiler_gnu=$ac_cv_c_compiler_gnu 9141 9142 9143# Source file extension for C test sources. 9144ac_ext=c 9145 9146# Object file extension for compiled C test sources. 9147objext=o 9148objext=$objext 9149 9150# Code to be used in simple compile tests 9151lt_simple_compile_test_code="int some_variable = 0;" 9152 9153# Code to be used in simple link tests 9154lt_simple_link_test_code='int main(){return(0);}' 9155 9156 9157 9158 9159 9160 9161 9162# If no C compiler was specified, use CC. 9163LTCC=${LTCC-"$CC"} 9164 9165# If no C compiler flags were specified, use CFLAGS. 9166LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9167 9168# Allow CC to be a program name with arguments. 9169compiler=$CC 9170 9171# Save the default compiler, since it gets overwritten when the other 9172# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9173compiler_DEFAULT=$CC 9174 9175# save warnings/boilerplate of simple test code 9176ac_outfile=conftest.$ac_objext 9177echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9179_lt_compiler_boilerplate=`cat conftest.err` 9180$RM conftest* 9181 9182ac_outfile=conftest.$ac_objext 9183echo "$lt_simple_link_test_code" >conftest.$ac_ext 9184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9185_lt_linker_boilerplate=`cat conftest.err` 9186$RM -r conftest* 9187 9188 9189## CAVEAT EMPTOR: 9190## There is no encapsulation within the following macros, do not change 9191## the running order or otherwise move them around unless you know exactly 9192## what you are doing... 9193if test -n "$compiler"; then 9194 9195lt_prog_compiler_no_builtin_flag= 9196 9197if test yes = "$GCC"; then 9198 case $cc_basename in 9199 nvcc*) 9200 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9201 *) 9202 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9203 esac 9204 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9206$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9207if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 lt_cv_prog_compiler_rtti_exceptions=no 9211 ac_outfile=conftest.$ac_objext 9212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9213 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9214 # Insert the option either (1) after the last *FLAGS variable, or 9215 # (2) before a word containing "conftest.", or (3) at the end. 9216 # Note that $ac_compile itself does not contain backslashes and begins 9217 # with a dollar sign (not a hyphen), so the echo should work correctly. 9218 # The option is referenced via a variable to avoid confusing sed. 9219 lt_compile=`echo "$ac_compile" | $SED \ 9220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9222 -e 's:$: $lt_compiler_flag:'` 9223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9224 (eval "$lt_compile" 2>conftest.err) 9225 ac_status=$? 9226 cat conftest.err >&5 9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9228 if (exit $ac_status) && test -s "$ac_outfile"; then 9229 # The compiler can only warn and ignore the option if not recognized 9230 # So say no if there are warnings other than the usual output. 9231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9234 lt_cv_prog_compiler_rtti_exceptions=yes 9235 fi 9236 fi 9237 $RM conftest* 9238 9239fi 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9241$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9242 9243if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9244 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9245else 9246 : 9247fi 9248 9249fi 9250 9251 9252 9253 9254 9255 9256 lt_prog_compiler_wl= 9257lt_prog_compiler_pic= 9258lt_prog_compiler_static= 9259 9260 9261 if test yes = "$GCC"; then 9262 lt_prog_compiler_wl='-Wl,' 9263 lt_prog_compiler_static='-static' 9264 9265 case $host_os in 9266 aix*) 9267 # All AIX code is PIC. 9268 if test ia64 = "$host_cpu"; then 9269 # AIX 5 now supports IA64 processor 9270 lt_prog_compiler_static='-Bstatic' 9271 fi 9272 lt_prog_compiler_pic='-fPIC' 9273 ;; 9274 9275 amigaos*) 9276 case $host_cpu in 9277 powerpc) 9278 # see comment about AmigaOS4 .so support 9279 lt_prog_compiler_pic='-fPIC' 9280 ;; 9281 m68k) 9282 # FIXME: we need at least 68020 code to build shared libraries, but 9283 # adding the '-m68020' flag to GCC prevents building anything better, 9284 # like '-m68040'. 9285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9286 ;; 9287 esac 9288 ;; 9289 9290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9291 # PIC is the default for these OSes. 9292 ;; 9293 9294 mingw* | cygwin* | pw32* | os2* | cegcc*) 9295 # This hack is so that the source file can tell whether it is being 9296 # built for inclusion in a dll (and should export symbols for example). 9297 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9298 # (--disable-auto-import) libraries 9299 lt_prog_compiler_pic='-DDLL_EXPORT' 9300 case $host_os in 9301 os2*) 9302 lt_prog_compiler_static='$wl-static' 9303 ;; 9304 esac 9305 ;; 9306 9307 darwin* | rhapsody*) 9308 # PIC is the default on this platform 9309 # Common symbols not allowed in MH_DYLIB files 9310 lt_prog_compiler_pic='-fno-common' 9311 ;; 9312 9313 haiku*) 9314 # PIC is the default for Haiku. 9315 # The "-static" flag exists, but is broken. 9316 lt_prog_compiler_static= 9317 ;; 9318 9319 hpux*) 9320 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9321 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9322 # sets the default TLS model and affects inlining. 9323 case $host_cpu in 9324 hppa*64*) 9325 # +Z the default 9326 ;; 9327 *) 9328 lt_prog_compiler_pic='-fPIC' 9329 ;; 9330 esac 9331 ;; 9332 9333 interix[3-9]*) 9334 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9335 # Instead, we relocate shared libraries at runtime. 9336 ;; 9337 9338 msdosdjgpp*) 9339 # Just because we use GCC doesn't mean we suddenly get shared libraries 9340 # on systems that don't support them. 9341 lt_prog_compiler_can_build_shared=no 9342 enable_shared=no 9343 ;; 9344 9345 *nto* | *qnx*) 9346 # QNX uses GNU C++, but need to define -shared option too, otherwise 9347 # it will coredump. 9348 lt_prog_compiler_pic='-fPIC -shared' 9349 ;; 9350 9351 sysv4*MP*) 9352 if test -d /usr/nec; then 9353 lt_prog_compiler_pic=-Kconform_pic 9354 fi 9355 ;; 9356 9357 *) 9358 lt_prog_compiler_pic='-fPIC' 9359 ;; 9360 esac 9361 9362 case $cc_basename in 9363 nvcc*) # Cuda Compiler Driver 2.2 9364 lt_prog_compiler_wl='-Xlinker ' 9365 if test -n "$lt_prog_compiler_pic"; then 9366 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9367 fi 9368 ;; 9369 esac 9370 else 9371 # PORTME Check for flag to pass linker flags through the system compiler. 9372 case $host_os in 9373 aix*) 9374 lt_prog_compiler_wl='-Wl,' 9375 if test ia64 = "$host_cpu"; then 9376 # AIX 5 now supports IA64 processor 9377 lt_prog_compiler_static='-Bstatic' 9378 else 9379 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9380 fi 9381 ;; 9382 9383 darwin* | rhapsody*) 9384 # PIC is the default on this platform 9385 # Common symbols not allowed in MH_DYLIB files 9386 lt_prog_compiler_pic='-fno-common' 9387 case $cc_basename in 9388 nagfor*) 9389 # NAG Fortran compiler 9390 lt_prog_compiler_wl='-Wl,-Wl,,' 9391 lt_prog_compiler_pic='-PIC' 9392 lt_prog_compiler_static='-Bstatic' 9393 ;; 9394 esac 9395 ;; 9396 9397 mingw* | cygwin* | pw32* | os2* | cegcc*) 9398 # This hack is so that the source file can tell whether it is being 9399 # built for inclusion in a dll (and should export symbols for example). 9400 lt_prog_compiler_pic='-DDLL_EXPORT' 9401 case $host_os in 9402 os2*) 9403 lt_prog_compiler_static='$wl-static' 9404 ;; 9405 esac 9406 ;; 9407 9408 hpux9* | hpux10* | hpux11*) 9409 lt_prog_compiler_wl='-Wl,' 9410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9411 # not for PA HP-UX. 9412 case $host_cpu in 9413 hppa*64*|ia64*) 9414 # +Z the default 9415 ;; 9416 *) 9417 lt_prog_compiler_pic='+Z' 9418 ;; 9419 esac 9420 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9421 lt_prog_compiler_static='$wl-a ${wl}archive' 9422 ;; 9423 9424 irix5* | irix6* | nonstopux*) 9425 lt_prog_compiler_wl='-Wl,' 9426 # PIC (with -KPIC) is the default. 9427 lt_prog_compiler_static='-non_shared' 9428 ;; 9429 9430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9431 case $cc_basename in 9432 # old Intel for x86_64, which still supported -KPIC. 9433 ecc*) 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_pic='-KPIC' 9436 lt_prog_compiler_static='-static' 9437 ;; 9438 # icc used to be incompatible with GCC. 9439 # ICC 10 doesn't accept -KPIC any more. 9440 icc* | ifort*) 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_pic='-fPIC' 9443 lt_prog_compiler_static='-static' 9444 ;; 9445 # Lahey Fortran 8.1. 9446 lf95*) 9447 lt_prog_compiler_wl='-Wl,' 9448 lt_prog_compiler_pic='--shared' 9449 lt_prog_compiler_static='--static' 9450 ;; 9451 nagfor*) 9452 # NAG Fortran compiler 9453 lt_prog_compiler_wl='-Wl,-Wl,,' 9454 lt_prog_compiler_pic='-PIC' 9455 lt_prog_compiler_static='-Bstatic' 9456 ;; 9457 tcc*) 9458 # Fabrice Bellard et al's Tiny C Compiler 9459 lt_prog_compiler_wl='-Wl,' 9460 lt_prog_compiler_pic='-fPIC' 9461 lt_prog_compiler_static='-static' 9462 ;; 9463 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9464 # Portland Group compilers (*not* the Pentium gcc compiler, 9465 # which looks to be a dead project) 9466 lt_prog_compiler_wl='-Wl,' 9467 lt_prog_compiler_pic='-fpic' 9468 lt_prog_compiler_static='-Bstatic' 9469 ;; 9470 ccc*) 9471 lt_prog_compiler_wl='-Wl,' 9472 # All Alpha code is PIC. 9473 lt_prog_compiler_static='-non_shared' 9474 ;; 9475 xl* | bgxl* | bgf* | mpixl*) 9476 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9477 lt_prog_compiler_wl='-Wl,' 9478 lt_prog_compiler_pic='-qpic' 9479 lt_prog_compiler_static='-qstaticlink' 9480 ;; 9481 *) 9482 case `$CC -V 2>&1 | sed 5q` in 9483 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9484 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9485 lt_prog_compiler_pic='-KPIC' 9486 lt_prog_compiler_static='-Bstatic' 9487 lt_prog_compiler_wl='' 9488 ;; 9489 *Sun\ F* | *Sun*Fortran*) 9490 lt_prog_compiler_pic='-KPIC' 9491 lt_prog_compiler_static='-Bstatic' 9492 lt_prog_compiler_wl='-Qoption ld ' 9493 ;; 9494 *Sun\ C*) 9495 # Sun C 5.9 9496 lt_prog_compiler_pic='-KPIC' 9497 lt_prog_compiler_static='-Bstatic' 9498 lt_prog_compiler_wl='-Wl,' 9499 ;; 9500 *Intel*\ [CF]*Compiler*) 9501 lt_prog_compiler_wl='-Wl,' 9502 lt_prog_compiler_pic='-fPIC' 9503 lt_prog_compiler_static='-static' 9504 ;; 9505 *Portland\ Group*) 9506 lt_prog_compiler_wl='-Wl,' 9507 lt_prog_compiler_pic='-fpic' 9508 lt_prog_compiler_static='-Bstatic' 9509 ;; 9510 esac 9511 ;; 9512 esac 9513 ;; 9514 9515 newsos6) 9516 lt_prog_compiler_pic='-KPIC' 9517 lt_prog_compiler_static='-Bstatic' 9518 ;; 9519 9520 *nto* | *qnx*) 9521 # QNX uses GNU C++, but need to define -shared option too, otherwise 9522 # it will coredump. 9523 lt_prog_compiler_pic='-fPIC -shared' 9524 ;; 9525 9526 osf3* | osf4* | osf5*) 9527 lt_prog_compiler_wl='-Wl,' 9528 # All OSF/1 code is PIC. 9529 lt_prog_compiler_static='-non_shared' 9530 ;; 9531 9532 rdos*) 9533 lt_prog_compiler_static='-non_shared' 9534 ;; 9535 9536 solaris*) 9537 lt_prog_compiler_pic='-KPIC' 9538 lt_prog_compiler_static='-Bstatic' 9539 case $cc_basename in 9540 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9541 lt_prog_compiler_wl='-Qoption ld ';; 9542 *) 9543 lt_prog_compiler_wl='-Wl,';; 9544 esac 9545 ;; 9546 9547 sunos4*) 9548 lt_prog_compiler_wl='-Qoption ld ' 9549 lt_prog_compiler_pic='-PIC' 9550 lt_prog_compiler_static='-Bstatic' 9551 ;; 9552 9553 sysv4 | sysv4.2uw2* | sysv4.3*) 9554 lt_prog_compiler_wl='-Wl,' 9555 lt_prog_compiler_pic='-KPIC' 9556 lt_prog_compiler_static='-Bstatic' 9557 ;; 9558 9559 sysv4*MP*) 9560 if test -d /usr/nec; then 9561 lt_prog_compiler_pic='-Kconform_pic' 9562 lt_prog_compiler_static='-Bstatic' 9563 fi 9564 ;; 9565 9566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9567 lt_prog_compiler_wl='-Wl,' 9568 lt_prog_compiler_pic='-KPIC' 9569 lt_prog_compiler_static='-Bstatic' 9570 ;; 9571 9572 unicos*) 9573 lt_prog_compiler_wl='-Wl,' 9574 lt_prog_compiler_can_build_shared=no 9575 ;; 9576 9577 uts4*) 9578 lt_prog_compiler_pic='-pic' 9579 lt_prog_compiler_static='-Bstatic' 9580 ;; 9581 9582 *) 9583 lt_prog_compiler_can_build_shared=no 9584 ;; 9585 esac 9586 fi 9587 9588case $host_os in 9589 # For platforms that do not support PIC, -DPIC is meaningless: 9590 *djgpp*) 9591 lt_prog_compiler_pic= 9592 ;; 9593 *) 9594 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9595 ;; 9596esac 9597 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9599$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9600if ${lt_cv_prog_compiler_pic+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9604fi 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9606$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9607lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9608 9609# 9610# Check to make sure the PIC flag actually works. 9611# 9612if test -n "$lt_prog_compiler_pic"; then 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9614$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9615if ${lt_cv_prog_compiler_pic_works+:} false; then : 9616 $as_echo_n "(cached) " >&6 9617else 9618 lt_cv_prog_compiler_pic_works=no 9619 ac_outfile=conftest.$ac_objext 9620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9621 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9622 # Insert the option either (1) after the last *FLAGS variable, or 9623 # (2) before a word containing "conftest.", or (3) at the end. 9624 # Note that $ac_compile itself does not contain backslashes and begins 9625 # with a dollar sign (not a hyphen), so the echo should work correctly. 9626 # The option is referenced via a variable to avoid confusing sed. 9627 lt_compile=`echo "$ac_compile" | $SED \ 9628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9630 -e 's:$: $lt_compiler_flag:'` 9631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9632 (eval "$lt_compile" 2>conftest.err) 9633 ac_status=$? 9634 cat conftest.err >&5 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 if (exit $ac_status) && test -s "$ac_outfile"; then 9637 # The compiler can only warn and ignore the option if not recognized 9638 # So say no if there are warnings other than the usual output. 9639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9642 lt_cv_prog_compiler_pic_works=yes 9643 fi 9644 fi 9645 $RM conftest* 9646 9647fi 9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9649$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9650 9651if test yes = "$lt_cv_prog_compiler_pic_works"; then 9652 case $lt_prog_compiler_pic in 9653 "" | " "*) ;; 9654 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9655 esac 9656else 9657 lt_prog_compiler_pic= 9658 lt_prog_compiler_can_build_shared=no 9659fi 9660 9661fi 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673# 9674# Check to make sure the static flag actually works. 9675# 9676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9678$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9679if ${lt_cv_prog_compiler_static_works+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 lt_cv_prog_compiler_static_works=no 9683 save_LDFLAGS=$LDFLAGS 9684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9685 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9687 # The linker can only warn and ignore the option if not recognized 9688 # So say no if there are warnings 9689 if test -s conftest.err; then 9690 # Append any errors to the config.log. 9691 cat conftest.err 1>&5 9692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9694 if diff conftest.exp conftest.er2 >/dev/null; then 9695 lt_cv_prog_compiler_static_works=yes 9696 fi 9697 else 9698 lt_cv_prog_compiler_static_works=yes 9699 fi 9700 fi 9701 $RM -r conftest* 9702 LDFLAGS=$save_LDFLAGS 9703 9704fi 9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9706$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9707 9708if test yes = "$lt_cv_prog_compiler_static_works"; then 9709 : 9710else 9711 lt_prog_compiler_static= 9712fi 9713 9714 9715 9716 9717 9718 9719 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9721$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9722if ${lt_cv_prog_compiler_c_o+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 lt_cv_prog_compiler_c_o=no 9726 $RM -r conftest 2>/dev/null 9727 mkdir conftest 9728 cd conftest 9729 mkdir out 9730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9731 9732 lt_compiler_flag="-o out/conftest2.$ac_objext" 9733 # Insert the option either (1) after the last *FLAGS variable, or 9734 # (2) before a word containing "conftest.", or (3) at the end. 9735 # Note that $ac_compile itself does not contain backslashes and begins 9736 # with a dollar sign (not a hyphen), so the echo should work correctly. 9737 lt_compile=`echo "$ac_compile" | $SED \ 9738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9740 -e 's:$: $lt_compiler_flag:'` 9741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9742 (eval "$lt_compile" 2>out/conftest.err) 9743 ac_status=$? 9744 cat out/conftest.err >&5 9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9746 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9747 then 9748 # The compiler can only warn and ignore the option if not recognized 9749 # So say no if there are warnings 9750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9753 lt_cv_prog_compiler_c_o=yes 9754 fi 9755 fi 9756 chmod u+w . 2>&5 9757 $RM conftest* 9758 # SGI C++ compiler will create directory out/ii_files/ for 9759 # template instantiation 9760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9761 $RM out/* && rmdir out 9762 cd .. 9763 $RM -r conftest 9764 $RM conftest* 9765 9766fi 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9768$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9769 9770 9771 9772 9773 9774 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9776$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9777if ${lt_cv_prog_compiler_c_o+:} false; then : 9778 $as_echo_n "(cached) " >&6 9779else 9780 lt_cv_prog_compiler_c_o=no 9781 $RM -r conftest 2>/dev/null 9782 mkdir conftest 9783 cd conftest 9784 mkdir out 9785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9786 9787 lt_compiler_flag="-o out/conftest2.$ac_objext" 9788 # Insert the option either (1) after the last *FLAGS variable, or 9789 # (2) before a word containing "conftest.", or (3) at the end. 9790 # Note that $ac_compile itself does not contain backslashes and begins 9791 # with a dollar sign (not a hyphen), so the echo should work correctly. 9792 lt_compile=`echo "$ac_compile" | $SED \ 9793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9795 -e 's:$: $lt_compiler_flag:'` 9796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9797 (eval "$lt_compile" 2>out/conftest.err) 9798 ac_status=$? 9799 cat out/conftest.err >&5 9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9801 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9802 then 9803 # The compiler can only warn and ignore the option if not recognized 9804 # So say no if there are warnings 9805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9808 lt_cv_prog_compiler_c_o=yes 9809 fi 9810 fi 9811 chmod u+w . 2>&5 9812 $RM conftest* 9813 # SGI C++ compiler will create directory out/ii_files/ for 9814 # template instantiation 9815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9816 $RM out/* && rmdir out 9817 cd .. 9818 $RM -r conftest 9819 $RM conftest* 9820 9821fi 9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9823$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9824 9825 9826 9827 9828hard_links=nottested 9829if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9830 # do not overwrite the value of need_locks provided by the user 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9832$as_echo_n "checking if we can lock with hard links... " >&6; } 9833 hard_links=yes 9834 $RM conftest* 9835 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9836 touch conftest.a 9837 ln conftest.a conftest.b 2>&5 || hard_links=no 9838 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9840$as_echo "$hard_links" >&6; } 9841 if test no = "$hard_links"; then 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9843$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9844 need_locks=warn 9845 fi 9846else 9847 need_locks=no 9848fi 9849 9850 9851 9852 9853 9854 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9856$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9857 9858 runpath_var= 9859 allow_undefined_flag= 9860 always_export_symbols=no 9861 archive_cmds= 9862 archive_expsym_cmds= 9863 compiler_needs_object=no 9864 enable_shared_with_static_runtimes=no 9865 export_dynamic_flag_spec= 9866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9867 hardcode_automatic=no 9868 hardcode_direct=no 9869 hardcode_direct_absolute=no 9870 hardcode_libdir_flag_spec= 9871 hardcode_libdir_separator= 9872 hardcode_minus_L=no 9873 hardcode_shlibpath_var=unsupported 9874 inherit_rpath=no 9875 link_all_deplibs=unknown 9876 module_cmds= 9877 module_expsym_cmds= 9878 old_archive_from_new_cmds= 9879 old_archive_from_expsyms_cmds= 9880 thread_safe_flag_spec= 9881 whole_archive_flag_spec= 9882 # include_expsyms should be a list of space-separated symbols to be *always* 9883 # included in the symbol list 9884 include_expsyms= 9885 # exclude_expsyms can be an extended regexp of symbols to exclude 9886 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9887 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9888 # as well as any symbol that contains 'd'. 9889 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9891 # platforms (ab)use it in PIC code, but their linkers get confused if 9892 # the symbol is explicitly referenced. Since portable code cannot 9893 # rely on this symbol name, it's probably fine to never include it in 9894 # preloaded symbol tables. 9895 # Exclude shared library initialization/finalization symbols. 9896 extract_expsyms_cmds= 9897 9898 case $host_os in 9899 cygwin* | mingw* | pw32* | cegcc*) 9900 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9901 # When not using gcc, we currently assume that we are using 9902 # Microsoft Visual C++. 9903 if test yes != "$GCC"; then 9904 with_gnu_ld=no 9905 fi 9906 ;; 9907 interix*) 9908 # we just hope/assume this is gcc and not c89 (= MSVC++) 9909 with_gnu_ld=yes 9910 ;; 9911 openbsd* | bitrig*) 9912 with_gnu_ld=no 9913 ;; 9914 esac 9915 9916 ld_shlibs=yes 9917 9918 # On some targets, GNU ld is compatible enough with the native linker 9919 # that we're better off using the native interface for both. 9920 lt_use_gnu_ld_interface=no 9921 if test yes = "$with_gnu_ld"; then 9922 case $host_os in 9923 aix*) 9924 # The AIX port of GNU ld has always aspired to compatibility 9925 # with the native linker. However, as the warning in the GNU ld 9926 # block says, versions before 2.19.5* couldn't really create working 9927 # shared libraries, regardless of the interface used. 9928 case `$LD -v 2>&1` in 9929 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9930 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9931 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9932 *) 9933 lt_use_gnu_ld_interface=yes 9934 ;; 9935 esac 9936 ;; 9937 *) 9938 lt_use_gnu_ld_interface=yes 9939 ;; 9940 esac 9941 fi 9942 9943 if test yes = "$lt_use_gnu_ld_interface"; then 9944 # If archive_cmds runs LD, not CC, wlarc should be empty 9945 wlarc='$wl' 9946 9947 # Set some defaults for GNU ld with shared library support. These 9948 # are reset later if shared libraries are not supported. Putting them 9949 # here allows them to be overridden if necessary. 9950 runpath_var=LD_RUN_PATH 9951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9952 export_dynamic_flag_spec='$wl--export-dynamic' 9953 # ancient GNU ld didn't support --whole-archive et. al. 9954 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9955 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9956 else 9957 whole_archive_flag_spec= 9958 fi 9959 supports_anon_versioning=no 9960 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9961 *GNU\ gold*) supports_anon_versioning=yes ;; 9962 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9963 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9964 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9965 *\ 2.11.*) ;; # other 2.11 versions 9966 *) supports_anon_versioning=yes ;; 9967 esac 9968 9969 # See if GNU ld supports shared libraries. 9970 case $host_os in 9971 aix[3-9]*) 9972 # On AIX/PPC, the GNU linker is very broken 9973 if test ia64 != "$host_cpu"; then 9974 ld_shlibs=no 9975 cat <<_LT_EOF 1>&2 9976 9977*** Warning: the GNU linker, at least up to release 2.19, is reported 9978*** to be unable to reliably create shared libraries on AIX. 9979*** Therefore, libtool is disabling shared libraries support. If you 9980*** really care for shared libraries, you may want to install binutils 9981*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9982*** You will then need to restart the configuration process. 9983 9984_LT_EOF 9985 fi 9986 ;; 9987 9988 amigaos*) 9989 case $host_cpu in 9990 powerpc) 9991 # see comment about AmigaOS4 .so support 9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9993 archive_expsym_cmds='' 9994 ;; 9995 m68k) 9996 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)' 9997 hardcode_libdir_flag_spec='-L$libdir' 9998 hardcode_minus_L=yes 9999 ;; 10000 esac 10001 ;; 10002 10003 beos*) 10004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10005 allow_undefined_flag=unsupported 10006 # Joseph Beckenbach <[email protected]> says some releases of gcc 10007 # support --undefined. This deserves some investigation. FIXME 10008 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10009 else 10010 ld_shlibs=no 10011 fi 10012 ;; 10013 10014 cygwin* | mingw* | pw32* | cegcc*) 10015 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10016 # as there is no search path for DLLs. 10017 hardcode_libdir_flag_spec='-L$libdir' 10018 export_dynamic_flag_spec='$wl--export-all-symbols' 10019 allow_undefined_flag=unsupported 10020 always_export_symbols=no 10021 enable_shared_with_static_runtimes=yes 10022 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' 10023 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10024 10025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10027 # If the export-symbols file already is a .def file, use it as 10028 # is; otherwise, prepend EXPORTS... 10029 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10030 cp $export_symbols $output_objdir/$soname.def; 10031 else 10032 echo EXPORTS > $output_objdir/$soname.def; 10033 cat $export_symbols >> $output_objdir/$soname.def; 10034 fi~ 10035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10036 else 10037 ld_shlibs=no 10038 fi 10039 ;; 10040 10041 haiku*) 10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10043 link_all_deplibs=yes 10044 ;; 10045 10046 os2*) 10047 hardcode_libdir_flag_spec='-L$libdir' 10048 hardcode_minus_L=yes 10049 allow_undefined_flag=unsupported 10050 shrext_cmds=.dll 10051 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10052 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10053 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10054 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10055 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10057 emximp -o $lib $output_objdir/$libname.def' 10058 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10059 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10060 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10061 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10062 prefix_cmds="$SED"~ 10063 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10064 prefix_cmds="$prefix_cmds -e 1d"; 10065 fi~ 10066 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10067 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10068 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10069 emximp -o $lib $output_objdir/$libname.def' 10070 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10071 enable_shared_with_static_runtimes=yes 10072 ;; 10073 10074 interix[3-9]*) 10075 hardcode_direct=no 10076 hardcode_shlibpath_var=no 10077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10078 export_dynamic_flag_spec='$wl-E' 10079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10080 # Instead, shared libraries are loaded at an image base (0x10000000 by 10081 # default) and relocated if they conflict, which is a slow very memory 10082 # consuming and fragmenting process. To avoid this, we pick a random, 10083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10084 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10086 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' 10087 ;; 10088 10089 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10090 tmp_diet=no 10091 if test linux-dietlibc = "$host_os"; then 10092 case $cc_basename in 10093 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10094 esac 10095 fi 10096 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10097 && test no = "$tmp_diet" 10098 then 10099 tmp_addflag=' $pic_flag' 10100 tmp_sharedflag='-shared' 10101 case $cc_basename,$host_cpu in 10102 pgcc*) # Portland Group C compiler 10103 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' 10104 tmp_addflag=' $pic_flag' 10105 ;; 10106 pgf77* | pgf90* | pgf95* | pgfortran*) 10107 # Portland Group f77 and f90 compilers 10108 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' 10109 tmp_addflag=' $pic_flag -Mnomain' ;; 10110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10111 tmp_addflag=' -i_dynamic' ;; 10112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10113 tmp_addflag=' -i_dynamic -nofor_main' ;; 10114 ifc* | ifort*) # Intel Fortran compiler 10115 tmp_addflag=' -nofor_main' ;; 10116 lf95*) # Lahey Fortran 8.1 10117 whole_archive_flag_spec= 10118 tmp_sharedflag='--shared' ;; 10119 nagfor*) # NAGFOR 5.3 10120 tmp_sharedflag='-Wl,-shared' ;; 10121 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10122 tmp_sharedflag='-qmkshrobj' 10123 tmp_addflag= ;; 10124 nvcc*) # Cuda Compiler Driver 2.2 10125 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' 10126 compiler_needs_object=yes 10127 ;; 10128 esac 10129 case `$CC -V 2>&1 | sed 5q` in 10130 *Sun\ C*) # Sun C 5.9 10131 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' 10132 compiler_needs_object=yes 10133 tmp_sharedflag='-G' ;; 10134 *Sun\ F*) # Sun Fortran 8.3 10135 tmp_sharedflag='-G' ;; 10136 esac 10137 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10138 10139 if test yes = "$supports_anon_versioning"; then 10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10142 echo "local: *; };" >> $output_objdir/$libname.ver~ 10143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10144 fi 10145 10146 case $cc_basename in 10147 tcc*) 10148 export_dynamic_flag_spec='-rdynamic' 10149 ;; 10150 xlf* | bgf* | bgxlf* | mpixlf*) 10151 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10152 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10154 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10155 if test yes = "$supports_anon_versioning"; then 10156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10158 echo "local: *; };" >> $output_objdir/$libname.ver~ 10159 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10160 fi 10161 ;; 10162 esac 10163 else 10164 ld_shlibs=no 10165 fi 10166 ;; 10167 10168 netbsd*) 10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10171 wlarc= 10172 else 10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10175 fi 10176 ;; 10177 10178 solaris*) 10179 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10180 ld_shlibs=no 10181 cat <<_LT_EOF 1>&2 10182 10183*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10184*** create shared libraries on Solaris systems. Therefore, libtool 10185*** is disabling shared libraries support. We urge you to upgrade GNU 10186*** binutils to release 2.9.1 or newer. Another option is to modify 10187*** your PATH or compiler configuration so that the native linker is 10188*** used, and then restart. 10189 10190_LT_EOF 10191 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10194 else 10195 ld_shlibs=no 10196 fi 10197 ;; 10198 10199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10200 case `$LD -v 2>&1` in 10201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10202 ld_shlibs=no 10203 cat <<_LT_EOF 1>&2 10204 10205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10206*** reliably create shared libraries on SCO systems. Therefore, libtool 10207*** is disabling shared libraries support. We urge you to upgrade GNU 10208*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10209*** your PATH or compiler configuration so that the native linker is 10210*** used, and then restart. 10211 10212_LT_EOF 10213 ;; 10214 *) 10215 # For security reasons, it is highly recommended that you always 10216 # use absolute paths for naming shared libraries, and exclude the 10217 # DT_RUNPATH tag from executables and libraries. But doing so 10218 # requires that you compile everything twice, which is a pain. 10219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10220 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10223 else 10224 ld_shlibs=no 10225 fi 10226 ;; 10227 esac 10228 ;; 10229 10230 sunos4*) 10231 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10232 wlarc= 10233 hardcode_direct=yes 10234 hardcode_shlibpath_var=no 10235 ;; 10236 10237 *) 10238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10241 else 10242 ld_shlibs=no 10243 fi 10244 ;; 10245 esac 10246 10247 if test no = "$ld_shlibs"; then 10248 runpath_var= 10249 hardcode_libdir_flag_spec= 10250 export_dynamic_flag_spec= 10251 whole_archive_flag_spec= 10252 fi 10253 else 10254 # PORTME fill in a description of your system's linker (not GNU ld) 10255 case $host_os in 10256 aix3*) 10257 allow_undefined_flag=unsupported 10258 always_export_symbols=yes 10259 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' 10260 # Note: this linker hardcodes the directories in LIBPATH if there 10261 # are no directories specified by -L. 10262 hardcode_minus_L=yes 10263 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10264 # Neither direct hardcoding nor static linking is supported with a 10265 # broken collect2. 10266 hardcode_direct=unsupported 10267 fi 10268 ;; 10269 10270 aix[4-9]*) 10271 if test ia64 = "$host_cpu"; then 10272 # On IA64, the linker does run time linking by default, so we don't 10273 # have to do anything special. 10274 aix_use_runtimelinking=no 10275 exp_sym_flag='-Bexport' 10276 no_entry_flag= 10277 else 10278 # If we're using GNU nm, then we don't want the "-C" option. 10279 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10280 # Without the "-l" option, or with the "-B" option, AIX nm treats 10281 # weak defined symbols like other global defined symbols, whereas 10282 # GNU nm marks them as "W". 10283 # While the 'weak' keyword is ignored in the Export File, we need 10284 # it in the Import File for the 'aix-soname' feature, so we have 10285 # to replace the "-B" option with "-P" for AIX nm. 10286 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10287 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' 10288 else 10289 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' 10290 fi 10291 aix_use_runtimelinking=no 10292 10293 # Test if we are trying to use run time linking or normal 10294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10295 # have runtime linking enabled, and use it for executables. 10296 # For shared libraries, we enable/disable runtime linking 10297 # depending on the kind of the shared library created - 10298 # when "with_aix_soname,aix_use_runtimelinking" is: 10299 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10300 # "aix,yes" lib.so shared, rtl:yes, for executables 10301 # lib.a static archive 10302 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10303 # lib.a(lib.so.V) shared, rtl:no, for executables 10304 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10305 # lib.a(lib.so.V) shared, rtl:no 10306 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10307 # lib.a static archive 10308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10309 for ld_flag in $LDFLAGS; do 10310 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10311 aix_use_runtimelinking=yes 10312 break 10313 fi 10314 done 10315 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10316 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10317 # so we don't have lib.a shared libs to link our executables. 10318 # We have to force runtime linking in this case. 10319 aix_use_runtimelinking=yes 10320 LDFLAGS="$LDFLAGS -Wl,-brtl" 10321 fi 10322 ;; 10323 esac 10324 10325 exp_sym_flag='-bexport' 10326 no_entry_flag='-bnoentry' 10327 fi 10328 10329 # When large executables or shared objects are built, AIX ld can 10330 # have problems creating the table of contents. If linking a library 10331 # or program results in "error TOC overflow" add -mminimal-toc to 10332 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10333 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10334 10335 archive_cmds='' 10336 hardcode_direct=yes 10337 hardcode_direct_absolute=yes 10338 hardcode_libdir_separator=':' 10339 link_all_deplibs=yes 10340 file_list_spec='$wl-f,' 10341 case $with_aix_soname,$aix_use_runtimelinking in 10342 aix,*) ;; # traditional, no import file 10343 svr4,* | *,yes) # use import file 10344 # The Import File defines what to hardcode. 10345 hardcode_direct=no 10346 hardcode_direct_absolute=no 10347 ;; 10348 esac 10349 10350 if test yes = "$GCC"; then 10351 case $host_os in aix4.[012]|aix4.[012].*) 10352 # We only want to do this on AIX 4.2 and lower, the check 10353 # below for broken collect2 doesn't work under 4.3+ 10354 collect2name=`$CC -print-prog-name=collect2` 10355 if test -f "$collect2name" && 10356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10357 then 10358 # We have reworked collect2 10359 : 10360 else 10361 # We have old collect2 10362 hardcode_direct=unsupported 10363 # It fails to find uninstalled libraries when the uninstalled 10364 # path is not listed in the libpath. Setting hardcode_minus_L 10365 # to unsupported forces relinking 10366 hardcode_minus_L=yes 10367 hardcode_libdir_flag_spec='-L$libdir' 10368 hardcode_libdir_separator= 10369 fi 10370 ;; 10371 esac 10372 shared_flag='-shared' 10373 if test yes = "$aix_use_runtimelinking"; then 10374 shared_flag="$shared_flag "'$wl-G' 10375 fi 10376 # Need to ensure runtime linking is disabled for the traditional 10377 # shared library, or the linker may eventually find shared libraries 10378 # /with/ Import File - we do not want to mix them. 10379 shared_flag_aix='-shared' 10380 shared_flag_svr4='-shared $wl-G' 10381 else 10382 # not using gcc 10383 if test ia64 = "$host_cpu"; then 10384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10385 # chokes on -Wl,-G. The following line is correct: 10386 shared_flag='-G' 10387 else 10388 if test yes = "$aix_use_runtimelinking"; then 10389 shared_flag='$wl-G' 10390 else 10391 shared_flag='$wl-bM:SRE' 10392 fi 10393 shared_flag_aix='$wl-bM:SRE' 10394 shared_flag_svr4='$wl-G' 10395 fi 10396 fi 10397 10398 export_dynamic_flag_spec='$wl-bexpall' 10399 # It seems that -bexpall does not export symbols beginning with 10400 # underscore (_), so it is better to generate a list of symbols to export. 10401 always_export_symbols=yes 10402 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10403 # Warning - without using the other runtime loading flags (-brtl), 10404 # -berok will link without error, but may produce a broken library. 10405 allow_undefined_flag='-berok' 10406 # Determine the default libpath from the value encoded in an 10407 # empty executable. 10408 if test set = "${lt_cv_aix_libpath+set}"; then 10409 aix_libpath=$lt_cv_aix_libpath 10410else 10411 if ${lt_cv_aix_libpath_+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10415/* end confdefs.h. */ 10416 10417int 10418main () 10419{ 10420 10421 ; 10422 return 0; 10423} 10424_ACEOF 10425if ac_fn_c_try_link "$LINENO"; then : 10426 10427 lt_aix_libpath_sed=' 10428 /Import File Strings/,/^$/ { 10429 /^0/ { 10430 s/^0 *\([^ ]*\) *$/\1/ 10431 p 10432 } 10433 }' 10434 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10435 # Check for a 64-bit object if we didn't find anything. 10436 if test -z "$lt_cv_aix_libpath_"; then 10437 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10438 fi 10439fi 10440rm -f core conftest.err conftest.$ac_objext \ 10441 conftest$ac_exeext conftest.$ac_ext 10442 if test -z "$lt_cv_aix_libpath_"; then 10443 lt_cv_aix_libpath_=/usr/lib:/lib 10444 fi 10445 10446fi 10447 10448 aix_libpath=$lt_cv_aix_libpath_ 10449fi 10450 10451 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10452 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 10453 else 10454 if test ia64 = "$host_cpu"; then 10455 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10456 allow_undefined_flag="-z nodefs" 10457 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" 10458 else 10459 # Determine the default libpath from the value encoded in an 10460 # empty executable. 10461 if test set = "${lt_cv_aix_libpath+set}"; then 10462 aix_libpath=$lt_cv_aix_libpath 10463else 10464 if ${lt_cv_aix_libpath_+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469 10470int 10471main () 10472{ 10473 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_link "$LINENO"; then : 10479 10480 lt_aix_libpath_sed=' 10481 /Import File Strings/,/^$/ { 10482 /^0/ { 10483 s/^0 *\([^ ]*\) *$/\1/ 10484 p 10485 } 10486 }' 10487 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10488 # Check for a 64-bit object if we didn't find anything. 10489 if test -z "$lt_cv_aix_libpath_"; then 10490 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10491 fi 10492fi 10493rm -f core conftest.err conftest.$ac_objext \ 10494 conftest$ac_exeext conftest.$ac_ext 10495 if test -z "$lt_cv_aix_libpath_"; then 10496 lt_cv_aix_libpath_=/usr/lib:/lib 10497 fi 10498 10499fi 10500 10501 aix_libpath=$lt_cv_aix_libpath_ 10502fi 10503 10504 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10505 # Warning - without using the other run time loading flags, 10506 # -berok will link without error, but may produce a broken library. 10507 no_undefined_flag=' $wl-bernotok' 10508 allow_undefined_flag=' $wl-berok' 10509 if test yes = "$with_gnu_ld"; then 10510 # We only use this code for GNU lds that support --whole-archive. 10511 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10512 else 10513 # Exported symbols can be pulled into shared objects from archives 10514 whole_archive_flag_spec='$convenience' 10515 fi 10516 archive_cmds_need_lc=yes 10517 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10518 # -brtl affects multiple linker settings, -berok does not and is overridden later 10519 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10520 if test svr4 != "$with_aix_soname"; then 10521 # This is similar to how AIX traditionally builds its shared libraries. 10522 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' 10523 fi 10524 if test aix != "$with_aix_soname"; then 10525 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' 10526 else 10527 # used by -dlpreopen to get the symbols 10528 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10529 fi 10530 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10531 fi 10532 fi 10533 ;; 10534 10535 amigaos*) 10536 case $host_cpu in 10537 powerpc) 10538 # see comment about AmigaOS4 .so support 10539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10540 archive_expsym_cmds='' 10541 ;; 10542 m68k) 10543 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)' 10544 hardcode_libdir_flag_spec='-L$libdir' 10545 hardcode_minus_L=yes 10546 ;; 10547 esac 10548 ;; 10549 10550 bsdi[45]*) 10551 export_dynamic_flag_spec=-rdynamic 10552 ;; 10553 10554 cygwin* | mingw* | pw32* | cegcc*) 10555 # When not using gcc, we currently assume that we are using 10556 # Microsoft Visual C++. 10557 # hardcode_libdir_flag_spec is actually meaningless, as there is 10558 # no search path for DLLs. 10559 case $cc_basename in 10560 cl*) 10561 # Native MSVC 10562 hardcode_libdir_flag_spec=' ' 10563 allow_undefined_flag=unsupported 10564 always_export_symbols=yes 10565 file_list_spec='@' 10566 # Tell ltmain to make .lib files, not .a files. 10567 libext=lib 10568 # Tell ltmain to make .dll files, not .so files. 10569 shrext_cmds=.dll 10570 # FIXME: Setting linknames here is a bad hack. 10571 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10572 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10573 cp "$export_symbols" "$output_objdir/$soname.def"; 10574 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10575 else 10576 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10577 fi~ 10578 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10579 linknames=' 10580 # The linker will not automatically build a static lib if we build a DLL. 10581 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10582 enable_shared_with_static_runtimes=yes 10583 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10585 # Don't use ranlib 10586 old_postinstall_cmds='chmod 644 $oldlib' 10587 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10588 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10589 case $lt_outputfile in 10590 *.exe|*.EXE) ;; 10591 *) 10592 lt_outputfile=$lt_outputfile.exe 10593 lt_tool_outputfile=$lt_tool_outputfile.exe 10594 ;; 10595 esac~ 10596 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10597 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10598 $RM "$lt_outputfile.manifest"; 10599 fi' 10600 ;; 10601 *) 10602 # Assume MSVC wrapper 10603 hardcode_libdir_flag_spec=' ' 10604 allow_undefined_flag=unsupported 10605 # Tell ltmain to make .lib files, not .a files. 10606 libext=lib 10607 # Tell ltmain to make .dll files, not .so files. 10608 shrext_cmds=.dll 10609 # FIXME: Setting linknames here is a bad hack. 10610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10611 # The linker will automatically build a .lib file if we build a DLL. 10612 old_archive_from_new_cmds='true' 10613 # FIXME: Should let the user specify the lib program. 10614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10615 enable_shared_with_static_runtimes=yes 10616 ;; 10617 esac 10618 ;; 10619 10620 darwin* | rhapsody*) 10621 10622 10623 archive_cmds_need_lc=no 10624 hardcode_direct=no 10625 hardcode_automatic=yes 10626 hardcode_shlibpath_var=unsupported 10627 if test yes = "$lt_cv_ld_force_load"; then 10628 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\"`' 10629 10630 else 10631 whole_archive_flag_spec='' 10632 fi 10633 link_all_deplibs=yes 10634 allow_undefined_flag=$_lt_dar_allow_undefined 10635 case $cc_basename in 10636 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10637 *) _lt_dar_can_shared=$GCC ;; 10638 esac 10639 if test yes = "$_lt_dar_can_shared"; then 10640 output_verbose_link_cmd=func_echo_all 10641 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10642 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10643 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" 10644 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" 10645 10646 else 10647 ld_shlibs=no 10648 fi 10649 10650 ;; 10651 10652 dgux*) 10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10654 hardcode_libdir_flag_spec='-L$libdir' 10655 hardcode_shlibpath_var=no 10656 ;; 10657 10658 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10659 # support. Future versions do this automatically, but an explicit c++rt0.o 10660 # does not break anything, and helps significantly (at the cost of a little 10661 # extra space). 10662 freebsd2.2*) 10663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10664 hardcode_libdir_flag_spec='-R$libdir' 10665 hardcode_direct=yes 10666 hardcode_shlibpath_var=no 10667 ;; 10668 10669 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10670 freebsd2.*) 10671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10672 hardcode_direct=yes 10673 hardcode_minus_L=yes 10674 hardcode_shlibpath_var=no 10675 ;; 10676 10677 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10678 freebsd* | dragonfly*) 10679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10680 hardcode_libdir_flag_spec='-R$libdir' 10681 hardcode_direct=yes 10682 hardcode_shlibpath_var=no 10683 ;; 10684 10685 hpux9*) 10686 if test yes = "$GCC"; then 10687 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' 10688 else 10689 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' 10690 fi 10691 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10692 hardcode_libdir_separator=: 10693 hardcode_direct=yes 10694 10695 # hardcode_minus_L: Not really in the search PATH, 10696 # but as the default location of the library. 10697 hardcode_minus_L=yes 10698 export_dynamic_flag_spec='$wl-E' 10699 ;; 10700 10701 hpux10*) 10702 if test yes,no = "$GCC,$with_gnu_ld"; then 10703 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10704 else 10705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10706 fi 10707 if test no = "$with_gnu_ld"; then 10708 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10709 hardcode_libdir_separator=: 10710 hardcode_direct=yes 10711 hardcode_direct_absolute=yes 10712 export_dynamic_flag_spec='$wl-E' 10713 # hardcode_minus_L: Not really in the search PATH, 10714 # but as the default location of the library. 10715 hardcode_minus_L=yes 10716 fi 10717 ;; 10718 10719 hpux11*) 10720 if test yes,no = "$GCC,$with_gnu_ld"; then 10721 case $host_cpu in 10722 hppa*64*) 10723 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10724 ;; 10725 ia64*) 10726 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 *) 10729 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10730 ;; 10731 esac 10732 else 10733 case $host_cpu in 10734 hppa*64*) 10735 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10736 ;; 10737 ia64*) 10738 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10739 ;; 10740 *) 10741 10742 # Older versions of the 11.00 compiler do not understand -b yet 10743 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10745$as_echo_n "checking if $CC understands -b... " >&6; } 10746if ${lt_cv_prog_compiler__b+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748else 10749 lt_cv_prog_compiler__b=no 10750 save_LDFLAGS=$LDFLAGS 10751 LDFLAGS="$LDFLAGS -b" 10752 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10754 # The linker can only warn and ignore the option if not recognized 10755 # So say no if there are warnings 10756 if test -s conftest.err; then 10757 # Append any errors to the config.log. 10758 cat conftest.err 1>&5 10759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10761 if diff conftest.exp conftest.er2 >/dev/null; then 10762 lt_cv_prog_compiler__b=yes 10763 fi 10764 else 10765 lt_cv_prog_compiler__b=yes 10766 fi 10767 fi 10768 $RM -r conftest* 10769 LDFLAGS=$save_LDFLAGS 10770 10771fi 10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10773$as_echo "$lt_cv_prog_compiler__b" >&6; } 10774 10775if test yes = "$lt_cv_prog_compiler__b"; then 10776 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10777else 10778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10779fi 10780 10781 ;; 10782 esac 10783 fi 10784 if test no = "$with_gnu_ld"; then 10785 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10786 hardcode_libdir_separator=: 10787 10788 case $host_cpu in 10789 hppa*64*|ia64*) 10790 hardcode_direct=no 10791 hardcode_shlibpath_var=no 10792 ;; 10793 *) 10794 hardcode_direct=yes 10795 hardcode_direct_absolute=yes 10796 export_dynamic_flag_spec='$wl-E' 10797 10798 # hardcode_minus_L: Not really in the search PATH, 10799 # but as the default location of the library. 10800 hardcode_minus_L=yes 10801 ;; 10802 esac 10803 fi 10804 ;; 10805 10806 irix5* | irix6* | nonstopux*) 10807 if test yes = "$GCC"; then 10808 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' 10809 # Try to use the -exported_symbol ld option, if it does not 10810 # work, assume that -exports_file does not work either and 10811 # implicitly export all symbols. 10812 # This should be the same for all languages, so no per-tag cache variable. 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10814$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10815if ${lt_cv_irix_exported_symbol+:} false; then : 10816 $as_echo_n "(cached) " >&6 10817else 10818 save_LDFLAGS=$LDFLAGS 10819 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10821/* end confdefs.h. */ 10822int foo (void) { return 0; } 10823_ACEOF 10824if ac_fn_c_try_link "$LINENO"; then : 10825 lt_cv_irix_exported_symbol=yes 10826else 10827 lt_cv_irix_exported_symbol=no 10828fi 10829rm -f core conftest.err conftest.$ac_objext \ 10830 conftest$ac_exeext conftest.$ac_ext 10831 LDFLAGS=$save_LDFLAGS 10832fi 10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10834$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10835 if test yes = "$lt_cv_irix_exported_symbol"; then 10836 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' 10837 fi 10838 else 10839 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' 10840 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' 10841 fi 10842 archive_cmds_need_lc='no' 10843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10844 hardcode_libdir_separator=: 10845 inherit_rpath=yes 10846 link_all_deplibs=yes 10847 ;; 10848 10849 linux*) 10850 case $cc_basename in 10851 tcc*) 10852 # Fabrice Bellard et al's Tiny C Compiler 10853 ld_shlibs=yes 10854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10855 ;; 10856 esac 10857 ;; 10858 10859 netbsd*) 10860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10862 else 10863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10864 fi 10865 hardcode_libdir_flag_spec='-R$libdir' 10866 hardcode_direct=yes 10867 hardcode_shlibpath_var=no 10868 ;; 10869 10870 newsos6) 10871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10872 hardcode_direct=yes 10873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10874 hardcode_libdir_separator=: 10875 hardcode_shlibpath_var=no 10876 ;; 10877 10878 *nto* | *qnx*) 10879 ;; 10880 10881 openbsd* | bitrig*) 10882 if test -f /usr/libexec/ld.so; then 10883 hardcode_direct=yes 10884 hardcode_shlibpath_var=no 10885 hardcode_direct_absolute=yes 10886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10889 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10890 export_dynamic_flag_spec='$wl-E' 10891 else 10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10893 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10894 fi 10895 else 10896 ld_shlibs=no 10897 fi 10898 ;; 10899 10900 os2*) 10901 hardcode_libdir_flag_spec='-L$libdir' 10902 hardcode_minus_L=yes 10903 allow_undefined_flag=unsupported 10904 shrext_cmds=.dll 10905 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10906 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10907 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10908 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10909 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10911 emximp -o $lib $output_objdir/$libname.def' 10912 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10913 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10914 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10915 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10916 prefix_cmds="$SED"~ 10917 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10918 prefix_cmds="$prefix_cmds -e 1d"; 10919 fi~ 10920 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10921 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10922 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10923 emximp -o $lib $output_objdir/$libname.def' 10924 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10925 enable_shared_with_static_runtimes=yes 10926 ;; 10927 10928 osf3*) 10929 if test yes = "$GCC"; then 10930 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10931 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' 10932 else 10933 allow_undefined_flag=' -expect_unresolved \*' 10934 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' 10935 fi 10936 archive_cmds_need_lc='no' 10937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10938 hardcode_libdir_separator=: 10939 ;; 10940 10941 osf4* | osf5*) # as osf3* with the addition of -msym flag 10942 if test yes = "$GCC"; then 10943 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10944 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' 10945 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10946 else 10947 allow_undefined_flag=' -expect_unresolved \*' 10948 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' 10949 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~ 10950 $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' 10951 10952 # Both c and cxx compiler support -rpath directly 10953 hardcode_libdir_flag_spec='-rpath $libdir' 10954 fi 10955 archive_cmds_need_lc='no' 10956 hardcode_libdir_separator=: 10957 ;; 10958 10959 solaris*) 10960 no_undefined_flag=' -z defs' 10961 if test yes = "$GCC"; then 10962 wlarc='$wl' 10963 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10965 $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' 10966 else 10967 case `$CC -V 2>&1` in 10968 *"Compilers 5.0"*) 10969 wlarc='' 10970 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10972 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10973 ;; 10974 *) 10975 wlarc='$wl' 10976 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10978 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10979 ;; 10980 esac 10981 fi 10982 hardcode_libdir_flag_spec='-R$libdir' 10983 hardcode_shlibpath_var=no 10984 case $host_os in 10985 solaris2.[0-5] | solaris2.[0-5].*) ;; 10986 *) 10987 # The compiler driver will combine and reorder linker options, 10988 # but understands '-z linker_flag'. GCC discards it without '$wl', 10989 # but is careful enough not to reorder. 10990 # Supported since Solaris 2.6 (maybe 2.5.1?) 10991 if test yes = "$GCC"; then 10992 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10993 else 10994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10995 fi 10996 ;; 10997 esac 10998 link_all_deplibs=yes 10999 ;; 11000 11001 sunos4*) 11002 if test sequent = "$host_vendor"; then 11003 # Use $CC to link under sequent, because it throws in some extra .o 11004 # files that make .init and .fini sections work. 11005 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11006 else 11007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11008 fi 11009 hardcode_libdir_flag_spec='-L$libdir' 11010 hardcode_direct=yes 11011 hardcode_minus_L=yes 11012 hardcode_shlibpath_var=no 11013 ;; 11014 11015 sysv4) 11016 case $host_vendor in 11017 sni) 11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11019 hardcode_direct=yes # is this really true??? 11020 ;; 11021 siemens) 11022 ## LD is ld it makes a PLAMLIB 11023 ## CC just makes a GrossModule. 11024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11025 reload_cmds='$CC -r -o $output$reload_objs' 11026 hardcode_direct=no 11027 ;; 11028 motorola) 11029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11031 ;; 11032 esac 11033 runpath_var='LD_RUN_PATH' 11034 hardcode_shlibpath_var=no 11035 ;; 11036 11037 sysv4.3*) 11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11039 hardcode_shlibpath_var=no 11040 export_dynamic_flag_spec='-Bexport' 11041 ;; 11042 11043 sysv4*MP*) 11044 if test -d /usr/nec; then 11045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11046 hardcode_shlibpath_var=no 11047 runpath_var=LD_RUN_PATH 11048 hardcode_runpath_var=yes 11049 ld_shlibs=yes 11050 fi 11051 ;; 11052 11053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11054 no_undefined_flag='$wl-z,text' 11055 archive_cmds_need_lc=no 11056 hardcode_shlibpath_var=no 11057 runpath_var='LD_RUN_PATH' 11058 11059 if test yes = "$GCC"; then 11060 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11061 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 else 11063 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11064 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 fi 11066 ;; 11067 11068 sysv5* | sco3.2v5* | sco5v6*) 11069 # Note: We CANNOT use -z defs as we might desire, because we do not 11070 # link with -lc, and that would cause any symbols used from libc to 11071 # always be unresolved, which means just about no library would 11072 # ever link correctly. If we're not using GNU ld we use -z text 11073 # though, which does catch some bad symbols but isn't as heavy-handed 11074 # as -z defs. 11075 no_undefined_flag='$wl-z,text' 11076 allow_undefined_flag='$wl-z,nodefs' 11077 archive_cmds_need_lc=no 11078 hardcode_shlibpath_var=no 11079 hardcode_libdir_flag_spec='$wl-R,$libdir' 11080 hardcode_libdir_separator=':' 11081 link_all_deplibs=yes 11082 export_dynamic_flag_spec='$wl-Bexport' 11083 runpath_var='LD_RUN_PATH' 11084 11085 if test yes = "$GCC"; then 11086 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11087 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11088 else 11089 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11090 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11091 fi 11092 ;; 11093 11094 uts4*) 11095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11096 hardcode_libdir_flag_spec='-L$libdir' 11097 hardcode_shlibpath_var=no 11098 ;; 11099 11100 *) 11101 ld_shlibs=no 11102 ;; 11103 esac 11104 11105 if test sni = "$host_vendor"; then 11106 case $host in 11107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11108 export_dynamic_flag_spec='$wl-Blargedynsym' 11109 ;; 11110 esac 11111 fi 11112 fi 11113 11114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11115$as_echo "$ld_shlibs" >&6; } 11116test no = "$ld_shlibs" && can_build_shared=no 11117 11118with_gnu_ld=$with_gnu_ld 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134# 11135# Do we need to explicitly link libc? 11136# 11137case "x$archive_cmds_need_lc" in 11138x|xyes) 11139 # Assume -lc should be added 11140 archive_cmds_need_lc=yes 11141 11142 if test yes,yes = "$GCC,$enable_shared"; then 11143 case $archive_cmds in 11144 *'~'*) 11145 # FIXME: we may have to deal with multi-command sequences. 11146 ;; 11147 '$CC '*) 11148 # Test whether the compiler implicitly links with -lc since on some 11149 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11150 # to ld, don't add -lc before -lgcc. 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11153if ${lt_cv_archive_cmds_need_lc+:} false; then : 11154 $as_echo_n "(cached) " >&6 11155else 11156 $RM conftest* 11157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11158 11159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11160 (eval $ac_compile) 2>&5 11161 ac_status=$? 11162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11163 test $ac_status = 0; } 2>conftest.err; then 11164 soname=conftest 11165 lib=conftest 11166 libobjs=conftest.$ac_objext 11167 deplibs= 11168 wl=$lt_prog_compiler_wl 11169 pic_flag=$lt_prog_compiler_pic 11170 compiler_flags=-v 11171 linker_flags=-v 11172 verstring= 11173 output_objdir=. 11174 libname=conftest 11175 lt_save_allow_undefined_flag=$allow_undefined_flag 11176 allow_undefined_flag= 11177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11179 ac_status=$? 11180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11181 test $ac_status = 0; } 11182 then 11183 lt_cv_archive_cmds_need_lc=no 11184 else 11185 lt_cv_archive_cmds_need_lc=yes 11186 fi 11187 allow_undefined_flag=$lt_save_allow_undefined_flag 11188 else 11189 cat conftest.err 1>&5 11190 fi 11191 $RM conftest* 11192 11193fi 11194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11195$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11197 ;; 11198 esac 11199 fi 11200 ;; 11201esac 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11355$as_echo_n "checking dynamic linker characteristics... " >&6; } 11356 11357if test yes = "$GCC"; then 11358 case $host_os in 11359 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11360 *) lt_awk_arg='/^libraries:/' ;; 11361 esac 11362 case $host_os in 11363 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11364 *) lt_sed_strip_eq='s|=/|/|g' ;; 11365 esac 11366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11367 case $lt_search_path_spec in 11368 *\;*) 11369 # if the path contains ";" then we assume it to be the separator 11370 # otherwise default to the standard path separator (i.e. ":") - it is 11371 # assumed that no part of a normal pathname contains ";" but that should 11372 # okay in the real world where ";" in dirpaths is itself problematic. 11373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11374 ;; 11375 *) 11376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11377 ;; 11378 esac 11379 # Ok, now we have the path, separated by spaces, we can step through it 11380 # and add multilib dir if necessary... 11381 lt_tmp_lt_search_path_spec= 11382 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11383 # ...but if some path component already ends with the multilib dir we assume 11384 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11385 case "$lt_multi_os_dir; $lt_search_path_spec " in 11386 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11387 lt_multi_os_dir= 11388 ;; 11389 esac 11390 for lt_sys_path in $lt_search_path_spec; do 11391 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11393 elif test -n "$lt_multi_os_dir"; then 11394 test -d "$lt_sys_path" && \ 11395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11396 fi 11397 done 11398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11399BEGIN {RS = " "; FS = "/|\n";} { 11400 lt_foo = ""; 11401 lt_count = 0; 11402 for (lt_i = NF; lt_i > 0; lt_i--) { 11403 if ($lt_i != "" && $lt_i != ".") { 11404 if ($lt_i == "..") { 11405 lt_count++; 11406 } else { 11407 if (lt_count == 0) { 11408 lt_foo = "/" $lt_i lt_foo; 11409 } else { 11410 lt_count--; 11411 } 11412 } 11413 } 11414 } 11415 if (lt_foo != "") { lt_freq[lt_foo]++; } 11416 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11417}'` 11418 # AWK program above erroneously prepends '/' to C:/dos/paths 11419 # for these hosts. 11420 case $host_os in 11421 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11422 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11423 esac 11424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11425else 11426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11427fi 11428library_names_spec= 11429libname_spec='lib$name' 11430soname_spec= 11431shrext_cmds=.so 11432postinstall_cmds= 11433postuninstall_cmds= 11434finish_cmds= 11435finish_eval= 11436shlibpath_var= 11437shlibpath_overrides_runpath=unknown 11438version_type=none 11439dynamic_linker="$host_os ld.so" 11440sys_lib_dlsearch_path_spec="/lib /usr/lib" 11441need_lib_prefix=unknown 11442hardcode_into_libs=no 11443 11444# when you set need_version to no, make sure it does not cause -set_version 11445# flags to be left without arguments 11446need_version=unknown 11447 11448case $host_os in 11449aix3*) 11450 version_type=linux # correct to gnu/linux during the next big refactor 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11452 shlibpath_var=LIBPATH 11453 11454 # AIX 3 has no versioning support, so we append a major version to the name. 11455 soname_spec='$libname$release$shared_ext$major' 11456 ;; 11457 11458aix[4-9]*) 11459 version_type=linux # correct to gnu/linux during the next big refactor 11460 need_lib_prefix=no 11461 need_version=no 11462 hardcode_into_libs=yes 11463 if test ia64 = "$host_cpu"; then 11464 # AIX 5 supports IA64 11465 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11466 shlibpath_var=LD_LIBRARY_PATH 11467 else 11468 # With GCC up to 2.95.x, collect2 would create an import file 11469 # for dependence libraries. The import file would start with 11470 # the line '#! .'. This would cause the generated library to 11471 # depend on '.', always an invalid library. This was fixed in 11472 # development snapshots of GCC prior to 3.0. 11473 case $host_os in 11474 aix4 | aix4.[01] | aix4.[01].*) 11475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11476 echo ' yes ' 11477 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11478 : 11479 else 11480 can_build_shared=no 11481 fi 11482 ;; 11483 esac 11484 # Using Import Files as archive members, it is possible to support 11485 # filename-based versioning of shared library archives on AIX. While 11486 # this would work for both with and without runtime linking, it will 11487 # prevent static linking of such archives. So we do filename-based 11488 # shared library versioning with .so extension only, which is used 11489 # when both runtime linking and shared linking is enabled. 11490 # Unfortunately, runtime linking may impact performance, so we do 11491 # not want this to be the default eventually. Also, we use the 11492 # versioned .so libs for executables only if there is the -brtl 11493 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11494 # To allow for filename-based versioning support, we need to create 11495 # libNAME.so.V as an archive file, containing: 11496 # *) an Import File, referring to the versioned filename of the 11497 # archive as well as the shared archive member, telling the 11498 # bitwidth (32 or 64) of that shared object, and providing the 11499 # list of exported symbols of that shared object, eventually 11500 # decorated with the 'weak' keyword 11501 # *) the shared object with the F_LOADONLY flag set, to really avoid 11502 # it being seen by the linker. 11503 # At run time we better use the real file rather than another symlink, 11504 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11505 11506 case $with_aix_soname,$aix_use_runtimelinking in 11507 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11508 # soname into executable. Probably we can add versioning support to 11509 # collect2, so additional links can be useful in future. 11510 aix,yes) # traditional libtool 11511 dynamic_linker='AIX unversionable lib.so' 11512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11513 # instead of lib<name>.a to let people know that these are not 11514 # typical AIX shared libraries. 11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11516 ;; 11517 aix,no) # traditional AIX only 11518 dynamic_linker='AIX lib.a(lib.so.V)' 11519 # We preserve .a as extension for shared libraries through AIX4.2 11520 # and later when we are not doing run time linking. 11521 library_names_spec='$libname$release.a $libname.a' 11522 soname_spec='$libname$release$shared_ext$major' 11523 ;; 11524 svr4,*) # full svr4 only 11525 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11526 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11527 # We do not specify a path in Import Files, so LIBPATH fires. 11528 shlibpath_overrides_runpath=yes 11529 ;; 11530 *,yes) # both, prefer svr4 11531 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11532 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11533 # unpreferred sharedlib libNAME.a needs extra handling 11534 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"' 11535 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"' 11536 # We do not specify a path in Import Files, so LIBPATH fires. 11537 shlibpath_overrides_runpath=yes 11538 ;; 11539 *,no) # both, prefer aix 11540 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11541 library_names_spec='$libname$release.a $libname.a' 11542 soname_spec='$libname$release$shared_ext$major' 11543 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11544 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)' 11545 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"' 11546 ;; 11547 esac 11548 shlibpath_var=LIBPATH 11549 fi 11550 ;; 11551 11552amigaos*) 11553 case $host_cpu in 11554 powerpc) 11555 # Since July 2007 AmigaOS4 officially supports .so libraries. 11556 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 ;; 11559 m68k) 11560 library_names_spec='$libname.ixlibrary $libname.a' 11561 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11562 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' 11563 ;; 11564 esac 11565 ;; 11566 11567beos*) 11568 library_names_spec='$libname$shared_ext' 11569 dynamic_linker="$host_os ld.so" 11570 shlibpath_var=LIBRARY_PATH 11571 ;; 11572 11573bsdi[45]*) 11574 version_type=linux # correct to gnu/linux during the next big refactor 11575 need_version=no 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11579 shlibpath_var=LD_LIBRARY_PATH 11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11582 # the default ld.so.conf also contains /usr/contrib/lib and 11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11584 # libtool to hard-code these into programs 11585 ;; 11586 11587cygwin* | mingw* | pw32* | cegcc*) 11588 version_type=windows 11589 shrext_cmds=.dll 11590 need_version=no 11591 need_lib_prefix=no 11592 11593 case $GCC,$cc_basename in 11594 yes,*) 11595 # gcc 11596 library_names_spec='$libname.dll.a' 11597 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11598 postinstall_cmds='base_file=`basename \$file`~ 11599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11600 dldir=$destdir/`dirname \$dlpath`~ 11601 test -d \$dldir || mkdir -p \$dldir~ 11602 $install_prog $dir/$dlname \$dldir/$dlname~ 11603 chmod a+x \$dldir/$dlname~ 11604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11606 fi' 11607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11608 dlpath=$dir/\$dldll~ 11609 $RM \$dlpath' 11610 shlibpath_overrides_runpath=yes 11611 11612 case $host_os in 11613 cygwin*) 11614 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11615 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11616 11617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11618 ;; 11619 mingw* | cegcc*) 11620 # MinGW DLLs use traditional 'lib' prefix 11621 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11622 ;; 11623 pw32*) 11624 # pw32 DLLs use 'pw' prefix rather than 'lib' 11625 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11626 ;; 11627 esac 11628 dynamic_linker='Win32 ld.exe' 11629 ;; 11630 11631 *,cl*) 11632 # Native MSVC 11633 libname_spec='$name' 11634 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11635 library_names_spec='$libname.dll.lib' 11636 11637 case $build_os in 11638 mingw*) 11639 sys_lib_search_path_spec= 11640 lt_save_ifs=$IFS 11641 IFS=';' 11642 for lt_path in $LIB 11643 do 11644 IFS=$lt_save_ifs 11645 # Let DOS variable expansion print the short 8.3 style file name. 11646 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11647 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11648 done 11649 IFS=$lt_save_ifs 11650 # Convert to MSYS style. 11651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11652 ;; 11653 cygwin*) 11654 # Convert to unix form, then to dos form, then back to unix form 11655 # but this time dos style (no spaces!) so that the unix form looks 11656 # like /cygdrive/c/PROGRA~1:/cygdr... 11657 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11658 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11659 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11660 ;; 11661 *) 11662 sys_lib_search_path_spec=$LIB 11663 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11664 # It is most probably a Windows format PATH. 11665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11666 else 11667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11668 fi 11669 # FIXME: find the short name or the path components, as spaces are 11670 # common. (e.g. "Program Files" -> "PROGRA~1") 11671 ;; 11672 esac 11673 11674 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11675 postinstall_cmds='base_file=`basename \$file`~ 11676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11677 dldir=$destdir/`dirname \$dlpath`~ 11678 test -d \$dldir || mkdir -p \$dldir~ 11679 $install_prog $dir/$dlname \$dldir/$dlname' 11680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11681 dlpath=$dir/\$dldll~ 11682 $RM \$dlpath' 11683 shlibpath_overrides_runpath=yes 11684 dynamic_linker='Win32 link.exe' 11685 ;; 11686 11687 *) 11688 # Assume MSVC wrapper 11689 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11690 dynamic_linker='Win32 ld.exe' 11691 ;; 11692 esac 11693 # FIXME: first we should search . and the directory the executable is in 11694 shlibpath_var=PATH 11695 ;; 11696 11697darwin* | rhapsody*) 11698 dynamic_linker="$host_os dyld" 11699 version_type=darwin 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11703 soname_spec='$libname$release$major$shared_ext' 11704 shlibpath_overrides_runpath=yes 11705 shlibpath_var=DYLD_LIBRARY_PATH 11706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11707 11708 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11710 ;; 11711 11712dgux*) 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11717 soname_spec='$libname$release$shared_ext$major' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 ;; 11720 11721freebsd* | dragonfly*) 11722 # DragonFly does not have aout. When/if they implement a new 11723 # versioning mechanism, adjust this. 11724 if test -x /usr/bin/objformat; then 11725 objformat=`/usr/bin/objformat` 11726 else 11727 case $host_os in 11728 freebsd[23].*) objformat=aout ;; 11729 *) objformat=elf ;; 11730 esac 11731 fi 11732 version_type=freebsd-$objformat 11733 case $version_type in 11734 freebsd-elf*) 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 need_version=no 11737 need_lib_prefix=no 11738 ;; 11739 freebsd-*) 11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11741 need_version=yes 11742 ;; 11743 esac 11744 shlibpath_var=LD_LIBRARY_PATH 11745 case $host_os in 11746 freebsd2.*) 11747 shlibpath_overrides_runpath=yes 11748 ;; 11749 freebsd3.[01]* | freebsdelf3.[01]*) 11750 shlibpath_overrides_runpath=yes 11751 hardcode_into_libs=yes 11752 ;; 11753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11755 shlibpath_overrides_runpath=no 11756 hardcode_into_libs=yes 11757 ;; 11758 *) # from 4.6 on, and DragonFly 11759 shlibpath_overrides_runpath=yes 11760 hardcode_into_libs=yes 11761 ;; 11762 esac 11763 ;; 11764 11765haiku*) 11766 version_type=linux # correct to gnu/linux during the next big refactor 11767 need_lib_prefix=no 11768 need_version=no 11769 dynamic_linker="$host_os runtime_loader" 11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11771 soname_spec='$libname$release$shared_ext$major' 11772 shlibpath_var=LIBRARY_PATH 11773 shlibpath_overrides_runpath=no 11774 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11775 hardcode_into_libs=yes 11776 ;; 11777 11778hpux9* | hpux10* | hpux11*) 11779 # Give a soname corresponding to the major version so that dld.sl refuses to 11780 # link against other versions. 11781 version_type=sunos 11782 need_lib_prefix=no 11783 need_version=no 11784 case $host_cpu in 11785 ia64*) 11786 shrext_cmds='.so' 11787 hardcode_into_libs=yes 11788 dynamic_linker="$host_os dld.so" 11789 shlibpath_var=LD_LIBRARY_PATH 11790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11792 soname_spec='$libname$release$shared_ext$major' 11793 if test 32 = "$HPUX_IA64_MODE"; then 11794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11795 else 11796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11797 fi 11798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11799 ;; 11800 hppa*64*) 11801 shrext_cmds='.sl' 11802 hardcode_into_libs=yes 11803 dynamic_linker="$host_os dld.sl" 11804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11807 soname_spec='$libname$release$shared_ext$major' 11808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11810 ;; 11811 *) 11812 shrext_cmds='.sl' 11813 dynamic_linker="$host_os dld.sl" 11814 shlibpath_var=SHLIB_PATH 11815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11817 soname_spec='$libname$release$shared_ext$major' 11818 ;; 11819 esac 11820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11821 postinstall_cmds='chmod 555 $lib' 11822 # or fails outright, so override atomically: 11823 install_override_mode=555 11824 ;; 11825 11826interix[3-9]*) 11827 version_type=linux # correct to gnu/linux during the next big refactor 11828 need_lib_prefix=no 11829 need_version=no 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11833 shlibpath_var=LD_LIBRARY_PATH 11834 shlibpath_overrides_runpath=no 11835 hardcode_into_libs=yes 11836 ;; 11837 11838irix5* | irix6* | nonstopux*) 11839 case $host_os in 11840 nonstopux*) version_type=nonstopux ;; 11841 *) 11842 if test yes = "$lt_cv_prog_gnu_ld"; then 11843 version_type=linux # correct to gnu/linux during the next big refactor 11844 else 11845 version_type=irix 11846 fi ;; 11847 esac 11848 need_lib_prefix=no 11849 need_version=no 11850 soname_spec='$libname$release$shared_ext$major' 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11852 case $host_os in 11853 irix5* | nonstopux*) 11854 libsuff= shlibsuff= 11855 ;; 11856 *) 11857 case $LD in # libtool.m4 will add one of these switches to LD 11858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11859 libsuff= shlibsuff= libmagic=32-bit;; 11860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11861 libsuff=32 shlibsuff=N32 libmagic=N32;; 11862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11864 *) libsuff= shlibsuff= libmagic=never-match;; 11865 esac 11866 ;; 11867 esac 11868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11869 shlibpath_overrides_runpath=no 11870 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11871 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11872 hardcode_into_libs=yes 11873 ;; 11874 11875# No shared lib support for Linux oldld, aout, or coff. 11876linux*oldld* | linux*aout* | linux*coff*) 11877 dynamic_linker=no 11878 ;; 11879 11880linux*android*) 11881 version_type=none # Android doesn't support versioned libraries. 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='$libname$release$shared_ext' 11885 soname_spec='$libname$release$shared_ext' 11886 finish_cmds= 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=yes 11889 11890 # This implies no fast_install, which is unacceptable. 11891 # Some rework will be needed to allow for fast_install 11892 # before this can be enabled. 11893 hardcode_into_libs=yes 11894 11895 dynamic_linker='Android linker' 11896 # Don't embed -rpath directories since the linker doesn't support them. 11897 hardcode_libdir_flag_spec='-L$libdir' 11898 ;; 11899 11900# This must be glibc/ELF. 11901linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11902 version_type=linux # correct to gnu/linux during the next big refactor 11903 need_lib_prefix=no 11904 need_version=no 11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11906 soname_spec='$libname$release$shared_ext$major' 11907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11908 shlibpath_var=LD_LIBRARY_PATH 11909 shlibpath_overrides_runpath=no 11910 11911 # Some binutils ld are patched to set DT_RUNPATH 11912 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 lt_cv_shlibpath_overrides_runpath=no 11916 save_LDFLAGS=$LDFLAGS 11917 save_libdir=$libdir 11918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922 11923int 11924main () 11925{ 11926 11927 ; 11928 return 0; 11929} 11930_ACEOF 11931if ac_fn_c_try_link "$LINENO"; then : 11932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11933 lt_cv_shlibpath_overrides_runpath=yes 11934fi 11935fi 11936rm -f core conftest.err conftest.$ac_objext \ 11937 conftest$ac_exeext conftest.$ac_ext 11938 LDFLAGS=$save_LDFLAGS 11939 libdir=$save_libdir 11940 11941fi 11942 11943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11944 11945 # This implies no fast_install, which is unacceptable. 11946 # Some rework will be needed to allow for fast_install 11947 # before this can be enabled. 11948 hardcode_into_libs=yes 11949 11950 # Append ld.so.conf contents to the search path 11951 if test -f /etc/ld.so.conf; then 11952 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' ' '` 11953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11954 fi 11955 11956 # We used to test for /lib/ld.so.1 and disable shared libraries on 11957 # powerpc, because MkLinux only supported shared libraries with the 11958 # GNU dynamic linker. Since this was broken with cross compilers, 11959 # most powerpc-linux boxes support dynamic linking these days and 11960 # people can always --disable-shared, the test was removed, and we 11961 # assume the GNU/Linux dynamic linker is in use. 11962 dynamic_linker='GNU/Linux ld.so' 11963 ;; 11964 11965netbsd*) 11966 version_type=sunos 11967 need_lib_prefix=no 11968 need_version=no 11969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11972 dynamic_linker='NetBSD (a.out) ld.so' 11973 else 11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11975 soname_spec='$libname$release$shared_ext$major' 11976 dynamic_linker='NetBSD ld.elf_so' 11977 fi 11978 shlibpath_var=LD_LIBRARY_PATH 11979 shlibpath_overrides_runpath=yes 11980 hardcode_into_libs=yes 11981 ;; 11982 11983newsos6) 11984 version_type=linux # correct to gnu/linux during the next big refactor 11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11986 shlibpath_var=LD_LIBRARY_PATH 11987 shlibpath_overrides_runpath=yes 11988 ;; 11989 11990*nto* | *qnx*) 11991 version_type=qnx 11992 need_lib_prefix=no 11993 need_version=no 11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11995 soname_spec='$libname$release$shared_ext$major' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 shlibpath_overrides_runpath=no 11998 hardcode_into_libs=yes 11999 dynamic_linker='ldqnx.so' 12000 ;; 12001 12002openbsd* | bitrig*) 12003 version_type=sunos 12004 sys_lib_dlsearch_path_spec=/usr/lib 12005 need_lib_prefix=no 12006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12007 need_version=no 12008 else 12009 need_version=yes 12010 fi 12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12013 shlibpath_var=LD_LIBRARY_PATH 12014 shlibpath_overrides_runpath=yes 12015 ;; 12016 12017os2*) 12018 libname_spec='$name' 12019 version_type=windows 12020 shrext_cmds=.dll 12021 need_version=no 12022 need_lib_prefix=no 12023 # OS/2 can only load a DLL with a base name of 8 characters or less. 12024 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12025 v=$($ECHO $release$versuffix | tr -d .-); 12026 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12027 $ECHO $n$v`$shared_ext' 12028 library_names_spec='${libname}_dll.$libext' 12029 dynamic_linker='OS/2 ld.exe' 12030 shlibpath_var=BEGINLIBPATH 12031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12033 postinstall_cmds='base_file=`basename \$file`~ 12034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12035 dldir=$destdir/`dirname \$dlpath`~ 12036 test -d \$dldir || mkdir -p \$dldir~ 12037 $install_prog $dir/$dlname \$dldir/$dlname~ 12038 chmod a+x \$dldir/$dlname~ 12039 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12040 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12041 fi' 12042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12043 dlpath=$dir/\$dldll~ 12044 $RM \$dlpath' 12045 ;; 12046 12047osf3* | osf4* | osf5*) 12048 version_type=osf 12049 need_lib_prefix=no 12050 need_version=no 12051 soname_spec='$libname$release$shared_ext$major' 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12053 shlibpath_var=LD_LIBRARY_PATH 12054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12056 ;; 12057 12058rdos*) 12059 dynamic_linker=no 12060 ;; 12061 12062solaris*) 12063 version_type=linux # correct to gnu/linux during the next big refactor 12064 need_lib_prefix=no 12065 need_version=no 12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12067 soname_spec='$libname$release$shared_ext$major' 12068 shlibpath_var=LD_LIBRARY_PATH 12069 shlibpath_overrides_runpath=yes 12070 hardcode_into_libs=yes 12071 # ldd complains unless libraries are executable 12072 postinstall_cmds='chmod +x $lib' 12073 ;; 12074 12075sunos4*) 12076 version_type=sunos 12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12079 shlibpath_var=LD_LIBRARY_PATH 12080 shlibpath_overrides_runpath=yes 12081 if test yes = "$with_gnu_ld"; then 12082 need_lib_prefix=no 12083 fi 12084 need_version=yes 12085 ;; 12086 12087sysv4 | sysv4.3*) 12088 version_type=linux # correct to gnu/linux during the next big refactor 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 soname_spec='$libname$release$shared_ext$major' 12091 shlibpath_var=LD_LIBRARY_PATH 12092 case $host_vendor in 12093 sni) 12094 shlibpath_overrides_runpath=no 12095 need_lib_prefix=no 12096 runpath_var=LD_RUN_PATH 12097 ;; 12098 siemens) 12099 need_lib_prefix=no 12100 ;; 12101 motorola) 12102 need_lib_prefix=no 12103 need_version=no 12104 shlibpath_overrides_runpath=no 12105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12106 ;; 12107 esac 12108 ;; 12109 12110sysv4*MP*) 12111 if test -d /usr/nec; then 12112 version_type=linux # correct to gnu/linux during the next big refactor 12113 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12114 soname_spec='$libname$shared_ext.$major' 12115 shlibpath_var=LD_LIBRARY_PATH 12116 fi 12117 ;; 12118 12119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12120 version_type=sco 12121 need_lib_prefix=no 12122 need_version=no 12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12124 soname_spec='$libname$release$shared_ext$major' 12125 shlibpath_var=LD_LIBRARY_PATH 12126 shlibpath_overrides_runpath=yes 12127 hardcode_into_libs=yes 12128 if test yes = "$with_gnu_ld"; then 12129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12130 else 12131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12132 case $host_os in 12133 sco3.2v5*) 12134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12135 ;; 12136 esac 12137 fi 12138 sys_lib_dlsearch_path_spec='/usr/lib' 12139 ;; 12140 12141tpf*) 12142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12143 version_type=linux # correct to gnu/linux during the next big refactor 12144 need_lib_prefix=no 12145 need_version=no 12146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12147 shlibpath_var=LD_LIBRARY_PATH 12148 shlibpath_overrides_runpath=no 12149 hardcode_into_libs=yes 12150 ;; 12151 12152uts4*) 12153 version_type=linux # correct to gnu/linux during the next big refactor 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 soname_spec='$libname$release$shared_ext$major' 12156 shlibpath_var=LD_LIBRARY_PATH 12157 ;; 12158 12159*) 12160 dynamic_linker=no 12161 ;; 12162esac 12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12164$as_echo "$dynamic_linker" >&6; } 12165test no = "$dynamic_linker" && can_build_shared=no 12166 12167variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12168if test yes = "$GCC"; then 12169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12170fi 12171 12172if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12173 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12174fi 12175if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12176 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12177fi 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12271$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12272hardcode_action= 12273if test -n "$hardcode_libdir_flag_spec" || 12274 test -n "$runpath_var" || 12275 test yes = "$hardcode_automatic"; then 12276 12277 # We can hardcode non-existent directories. 12278 if test no != "$hardcode_direct" && 12279 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12280 # have to relink, otherwise we might link with an installed library 12281 # when we should be linking with a yet-to-be-installed one 12282 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12283 test no != "$hardcode_minus_L"; then 12284 # Linking always hardcodes the temporary library directory. 12285 hardcode_action=relink 12286 else 12287 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12288 hardcode_action=immediate 12289 fi 12290else 12291 # We cannot hardcode anything, or else we can only hardcode existing 12292 # directories. 12293 hardcode_action=unsupported 12294fi 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12296$as_echo "$hardcode_action" >&6; } 12297 12298if test relink = "$hardcode_action" || 12299 test yes = "$inherit_rpath"; then 12300 # Fast installation is not supported 12301 enable_fast_install=no 12302elif test yes = "$shlibpath_overrides_runpath" || 12303 test no = "$enable_shared"; then 12304 # Fast installation is not necessary 12305 enable_fast_install=needless 12306fi 12307 12308 12309 12310 12311 12312 12313 if test yes != "$enable_dlopen"; then 12314 enable_dlopen=unknown 12315 enable_dlopen_self=unknown 12316 enable_dlopen_self_static=unknown 12317else 12318 lt_cv_dlopen=no 12319 lt_cv_dlopen_libs= 12320 12321 case $host_os in 12322 beos*) 12323 lt_cv_dlopen=load_add_on 12324 lt_cv_dlopen_libs= 12325 lt_cv_dlopen_self=yes 12326 ;; 12327 12328 mingw* | pw32* | cegcc*) 12329 lt_cv_dlopen=LoadLibrary 12330 lt_cv_dlopen_libs= 12331 ;; 12332 12333 cygwin*) 12334 lt_cv_dlopen=dlopen 12335 lt_cv_dlopen_libs= 12336 ;; 12337 12338 darwin*) 12339 # if libdl is installed we need to link against it 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12341$as_echo_n "checking for dlopen in -ldl... " >&6; } 12342if ${ac_cv_lib_dl_dlopen+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344else 12345 ac_check_lib_save_LIBS=$LIBS 12346LIBS="-ldl $LIBS" 12347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12348/* end confdefs.h. */ 12349 12350/* Override any GCC internal prototype to avoid an error. 12351 Use char because int might match the return type of a GCC 12352 builtin and then its argument prototype would still apply. */ 12353#ifdef __cplusplus 12354extern "C" 12355#endif 12356char dlopen (); 12357int 12358main () 12359{ 12360return dlopen (); 12361 ; 12362 return 0; 12363} 12364_ACEOF 12365if ac_fn_c_try_link "$LINENO"; then : 12366 ac_cv_lib_dl_dlopen=yes 12367else 12368 ac_cv_lib_dl_dlopen=no 12369fi 12370rm -f core conftest.err conftest.$ac_objext \ 12371 conftest$ac_exeext conftest.$ac_ext 12372LIBS=$ac_check_lib_save_LIBS 12373fi 12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12375$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12376if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12377 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12378else 12379 12380 lt_cv_dlopen=dyld 12381 lt_cv_dlopen_libs= 12382 lt_cv_dlopen_self=yes 12383 12384fi 12385 12386 ;; 12387 12388 tpf*) 12389 # Don't try to run any link tests for TPF. We know it's impossible 12390 # because TPF is a cross-compiler, and we know how we open DSOs. 12391 lt_cv_dlopen=dlopen 12392 lt_cv_dlopen_libs= 12393 lt_cv_dlopen_self=no 12394 ;; 12395 12396 *) 12397 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12398if test "x$ac_cv_func_shl_load" = xyes; then : 12399 lt_cv_dlopen=shl_load 12400else 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12402$as_echo_n "checking for shl_load in -ldld... " >&6; } 12403if ${ac_cv_lib_dld_shl_load+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405else 12406 ac_check_lib_save_LIBS=$LIBS 12407LIBS="-ldld $LIBS" 12408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410 12411/* Override any GCC internal prototype to avoid an error. 12412 Use char because int might match the return type of a GCC 12413 builtin and then its argument prototype would still apply. */ 12414#ifdef __cplusplus 12415extern "C" 12416#endif 12417char shl_load (); 12418int 12419main () 12420{ 12421return shl_load (); 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_link "$LINENO"; then : 12427 ac_cv_lib_dld_shl_load=yes 12428else 12429 ac_cv_lib_dld_shl_load=no 12430fi 12431rm -f core conftest.err conftest.$ac_objext \ 12432 conftest$ac_exeext conftest.$ac_ext 12433LIBS=$ac_check_lib_save_LIBS 12434fi 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12436$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12437if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12438 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12439else 12440 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12441if test "x$ac_cv_func_dlopen" = xyes; then : 12442 lt_cv_dlopen=dlopen 12443else 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12445$as_echo_n "checking for dlopen in -ldl... " >&6; } 12446if ${ac_cv_lib_dl_dlopen+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 ac_check_lib_save_LIBS=$LIBS 12450LIBS="-ldl $LIBS" 12451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12452/* end confdefs.h. */ 12453 12454/* Override any GCC internal prototype to avoid an error. 12455 Use char because int might match the return type of a GCC 12456 builtin and then its argument prototype would still apply. */ 12457#ifdef __cplusplus 12458extern "C" 12459#endif 12460char dlopen (); 12461int 12462main () 12463{ 12464return dlopen (); 12465 ; 12466 return 0; 12467} 12468_ACEOF 12469if ac_fn_c_try_link "$LINENO"; then : 12470 ac_cv_lib_dl_dlopen=yes 12471else 12472 ac_cv_lib_dl_dlopen=no 12473fi 12474rm -f core conftest.err conftest.$ac_objext \ 12475 conftest$ac_exeext conftest.$ac_ext 12476LIBS=$ac_check_lib_save_LIBS 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12479$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12480if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12481 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12482else 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12484$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12485if ${ac_cv_lib_svld_dlopen+:} false; then : 12486 $as_echo_n "(cached) " >&6 12487else 12488 ac_check_lib_save_LIBS=$LIBS 12489LIBS="-lsvld $LIBS" 12490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12491/* end confdefs.h. */ 12492 12493/* Override any GCC internal prototype to avoid an error. 12494 Use char because int might match the return type of a GCC 12495 builtin and then its argument prototype would still apply. */ 12496#ifdef __cplusplus 12497extern "C" 12498#endif 12499char dlopen (); 12500int 12501main () 12502{ 12503return dlopen (); 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO"; then : 12509 ac_cv_lib_svld_dlopen=yes 12510else 12511 ac_cv_lib_svld_dlopen=no 12512fi 12513rm -f core conftest.err conftest.$ac_objext \ 12514 conftest$ac_exeext conftest.$ac_ext 12515LIBS=$ac_check_lib_save_LIBS 12516fi 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12518$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12519if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12520 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12521else 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12523$as_echo_n "checking for dld_link in -ldld... " >&6; } 12524if ${ac_cv_lib_dld_dld_link+:} false; then : 12525 $as_echo_n "(cached) " >&6 12526else 12527 ac_check_lib_save_LIBS=$LIBS 12528LIBS="-ldld $LIBS" 12529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531 12532/* Override any GCC internal prototype to avoid an error. 12533 Use char because int might match the return type of a GCC 12534 builtin and then its argument prototype would still apply. */ 12535#ifdef __cplusplus 12536extern "C" 12537#endif 12538char dld_link (); 12539int 12540main () 12541{ 12542return dld_link (); 12543 ; 12544 return 0; 12545} 12546_ACEOF 12547if ac_fn_c_try_link "$LINENO"; then : 12548 ac_cv_lib_dld_dld_link=yes 12549else 12550 ac_cv_lib_dld_dld_link=no 12551fi 12552rm -f core conftest.err conftest.$ac_objext \ 12553 conftest$ac_exeext conftest.$ac_ext 12554LIBS=$ac_check_lib_save_LIBS 12555fi 12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12557$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12558if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12559 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12560fi 12561 12562 12563fi 12564 12565 12566fi 12567 12568 12569fi 12570 12571 12572fi 12573 12574 12575fi 12576 12577 ;; 12578 esac 12579 12580 if test no = "$lt_cv_dlopen"; then 12581 enable_dlopen=no 12582 else 12583 enable_dlopen=yes 12584 fi 12585 12586 case $lt_cv_dlopen in 12587 dlopen) 12588 save_CPPFLAGS=$CPPFLAGS 12589 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12590 12591 save_LDFLAGS=$LDFLAGS 12592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12593 12594 save_LIBS=$LIBS 12595 LIBS="$lt_cv_dlopen_libs $LIBS" 12596 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12598$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12599if ${lt_cv_dlopen_self+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 if test yes = "$cross_compiling"; then : 12603 lt_cv_dlopen_self=cross 12604else 12605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12606 lt_status=$lt_dlunknown 12607 cat > conftest.$ac_ext <<_LT_EOF 12608#line $LINENO "configure" 12609#include "confdefs.h" 12610 12611#if HAVE_DLFCN_H 12612#include <dlfcn.h> 12613#endif 12614 12615#include <stdio.h> 12616 12617#ifdef RTLD_GLOBAL 12618# define LT_DLGLOBAL RTLD_GLOBAL 12619#else 12620# ifdef DL_GLOBAL 12621# define LT_DLGLOBAL DL_GLOBAL 12622# else 12623# define LT_DLGLOBAL 0 12624# endif 12625#endif 12626 12627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12628 find out it does not work in some platform. */ 12629#ifndef LT_DLLAZY_OR_NOW 12630# ifdef RTLD_LAZY 12631# define LT_DLLAZY_OR_NOW RTLD_LAZY 12632# else 12633# ifdef DL_LAZY 12634# define LT_DLLAZY_OR_NOW DL_LAZY 12635# else 12636# ifdef RTLD_NOW 12637# define LT_DLLAZY_OR_NOW RTLD_NOW 12638# else 12639# ifdef DL_NOW 12640# define LT_DLLAZY_OR_NOW DL_NOW 12641# else 12642# define LT_DLLAZY_OR_NOW 0 12643# endif 12644# endif 12645# endif 12646# endif 12647#endif 12648 12649/* When -fvisibility=hidden is used, assume the code has been annotated 12650 correspondingly for the symbols needed. */ 12651#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12652int fnord () __attribute__((visibility("default"))); 12653#endif 12654 12655int fnord () { return 42; } 12656int main () 12657{ 12658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12659 int status = $lt_dlunknown; 12660 12661 if (self) 12662 { 12663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12664 else 12665 { 12666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12667 else puts (dlerror ()); 12668 } 12669 /* dlclose (self); */ 12670 } 12671 else 12672 puts (dlerror ()); 12673 12674 return status; 12675} 12676_LT_EOF 12677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12678 (eval $ac_link) 2>&5 12679 ac_status=$? 12680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12681 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12682 (./conftest; exit; ) >&5 2>/dev/null 12683 lt_status=$? 12684 case x$lt_status in 12685 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12686 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12687 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12688 esac 12689 else : 12690 # compilation failed 12691 lt_cv_dlopen_self=no 12692 fi 12693fi 12694rm -fr conftest* 12695 12696 12697fi 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12699$as_echo "$lt_cv_dlopen_self" >&6; } 12700 12701 if test yes = "$lt_cv_dlopen_self"; then 12702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12704$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12705if ${lt_cv_dlopen_self_static+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707else 12708 if test yes = "$cross_compiling"; then : 12709 lt_cv_dlopen_self_static=cross 12710else 12711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12712 lt_status=$lt_dlunknown 12713 cat > conftest.$ac_ext <<_LT_EOF 12714#line $LINENO "configure" 12715#include "confdefs.h" 12716 12717#if HAVE_DLFCN_H 12718#include <dlfcn.h> 12719#endif 12720 12721#include <stdio.h> 12722 12723#ifdef RTLD_GLOBAL 12724# define LT_DLGLOBAL RTLD_GLOBAL 12725#else 12726# ifdef DL_GLOBAL 12727# define LT_DLGLOBAL DL_GLOBAL 12728# else 12729# define LT_DLGLOBAL 0 12730# endif 12731#endif 12732 12733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12734 find out it does not work in some platform. */ 12735#ifndef LT_DLLAZY_OR_NOW 12736# ifdef RTLD_LAZY 12737# define LT_DLLAZY_OR_NOW RTLD_LAZY 12738# else 12739# ifdef DL_LAZY 12740# define LT_DLLAZY_OR_NOW DL_LAZY 12741# else 12742# ifdef RTLD_NOW 12743# define LT_DLLAZY_OR_NOW RTLD_NOW 12744# else 12745# ifdef DL_NOW 12746# define LT_DLLAZY_OR_NOW DL_NOW 12747# else 12748# define LT_DLLAZY_OR_NOW 0 12749# endif 12750# endif 12751# endif 12752# endif 12753#endif 12754 12755/* When -fvisibility=hidden is used, assume the code has been annotated 12756 correspondingly for the symbols needed. */ 12757#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12758int fnord () __attribute__((visibility("default"))); 12759#endif 12760 12761int fnord () { return 42; } 12762int main () 12763{ 12764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12765 int status = $lt_dlunknown; 12766 12767 if (self) 12768 { 12769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12770 else 12771 { 12772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12773 else puts (dlerror ()); 12774 } 12775 /* dlclose (self); */ 12776 } 12777 else 12778 puts (dlerror ()); 12779 12780 return status; 12781} 12782_LT_EOF 12783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12784 (eval $ac_link) 2>&5 12785 ac_status=$? 12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12787 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12788 (./conftest; exit; ) >&5 2>/dev/null 12789 lt_status=$? 12790 case x$lt_status in 12791 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12792 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12793 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12794 esac 12795 else : 12796 # compilation failed 12797 lt_cv_dlopen_self_static=no 12798 fi 12799fi 12800rm -fr conftest* 12801 12802 12803fi 12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12805$as_echo "$lt_cv_dlopen_self_static" >&6; } 12806 fi 12807 12808 CPPFLAGS=$save_CPPFLAGS 12809 LDFLAGS=$save_LDFLAGS 12810 LIBS=$save_LIBS 12811 ;; 12812 esac 12813 12814 case $lt_cv_dlopen_self in 12815 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12816 *) enable_dlopen_self=unknown ;; 12817 esac 12818 12819 case $lt_cv_dlopen_self_static in 12820 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12821 *) enable_dlopen_self_static=unknown ;; 12822 esac 12823fi 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841striplib= 12842old_striplib= 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12844$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12845if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12847 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12849$as_echo "yes" >&6; } 12850else 12851# FIXME - insert some real tests, host_os isn't really good enough 12852 case $host_os in 12853 darwin*) 12854 if test -n "$STRIP"; then 12855 striplib="$STRIP -x" 12856 old_striplib="$STRIP -S" 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12858$as_echo "yes" >&6; } 12859 else 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12861$as_echo "no" >&6; } 12862 fi 12863 ;; 12864 *) 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12866$as_echo "no" >&6; } 12867 ;; 12868 esac 12869fi 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 # Report what library types will actually be built 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12884$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12886$as_echo "$can_build_shared" >&6; } 12887 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12889$as_echo_n "checking whether to build shared libraries... " >&6; } 12890 test no = "$can_build_shared" && enable_shared=no 12891 12892 # On AIX, shared libraries and static libraries use the same namespace, and 12893 # are all built from PIC. 12894 case $host_os in 12895 aix3*) 12896 test yes = "$enable_shared" && enable_static=no 12897 if test -n "$RANLIB"; then 12898 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12899 postinstall_cmds='$RANLIB $lib' 12900 fi 12901 ;; 12902 12903 aix[4-9]*) 12904 if test ia64 != "$host_cpu"; then 12905 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12906 yes,aix,yes) ;; # shared object as lib.so file only 12907 yes,svr4,*) ;; # shared object as lib.so archive member only 12908 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12909 esac 12910 fi 12911 ;; 12912 esac 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12914$as_echo "$enable_shared" >&6; } 12915 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12917$as_echo_n "checking whether to build static libraries... " >&6; } 12918 # Make sure either enable_shared or enable_static is yes. 12919 test yes = "$enable_shared" || enable_static=yes 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12921$as_echo "$enable_static" >&6; } 12922 12923 12924 12925 12926fi 12927ac_ext=c 12928ac_cpp='$CPP $CPPFLAGS' 12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12931ac_compiler_gnu=$ac_cv_c_compiler_gnu 12932 12933CC=$lt_save_CC 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 ac_config_commands="$ac_config_commands libtool" 12950 12951 12952 12953 12954# Only expand once: 12955 12956 12957ac_ext=cpp 12958ac_cpp='$CXXCPP $CPPFLAGS' 12959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12962if test -z "$CXX"; then 12963 if test -n "$CCC"; then 12964 CXX=$CCC 12965 else 12966 if test -n "$ac_tool_prefix"; then 12967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12968 do 12969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12970set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12972$as_echo_n "checking for $ac_word... " >&6; } 12973if ${ac_cv_prog_CXX+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 if test -n "$CXX"; then 12977 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12978else 12979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12980for as_dir in $PATH 12981do 12982 IFS=$as_save_IFS 12983 test -z "$as_dir" && as_dir=. 12984 for ac_exec_ext in '' $ac_executable_extensions; do 12985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12986 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12988 break 2 12989 fi 12990done 12991 done 12992IFS=$as_save_IFS 12993 12994fi 12995fi 12996CXX=$ac_cv_prog_CXX 12997if test -n "$CXX"; then 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12999$as_echo "$CXX" >&6; } 13000else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13002$as_echo "no" >&6; } 13003fi 13004 13005 13006 test -n "$CXX" && break 13007 done 13008fi 13009if test -z "$CXX"; then 13010 ac_ct_CXX=$CXX 13011 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13012do 13013 # Extract the first word of "$ac_prog", so it can be a program name with args. 13014set dummy $ac_prog; ac_word=$2 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13016$as_echo_n "checking for $ac_word... " >&6; } 13017if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13018 $as_echo_n "(cached) " >&6 13019else 13020 if test -n "$ac_ct_CXX"; then 13021 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13022else 13023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13024for as_dir in $PATH 13025do 13026 IFS=$as_save_IFS 13027 test -z "$as_dir" && as_dir=. 13028 for ac_exec_ext in '' $ac_executable_extensions; do 13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13030 ac_cv_prog_ac_ct_CXX="$ac_prog" 13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13032 break 2 13033 fi 13034done 13035 done 13036IFS=$as_save_IFS 13037 13038fi 13039fi 13040ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13041if test -n "$ac_ct_CXX"; then 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13043$as_echo "$ac_ct_CXX" >&6; } 13044else 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13046$as_echo "no" >&6; } 13047fi 13048 13049 13050 test -n "$ac_ct_CXX" && break 13051done 13052 13053 if test "x$ac_ct_CXX" = x; then 13054 CXX="g++" 13055 else 13056 case $cross_compiling:$ac_tool_warned in 13057yes:) 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13060ac_tool_warned=yes ;; 13061esac 13062 CXX=$ac_ct_CXX 13063 fi 13064fi 13065 13066 fi 13067fi 13068# Provide some information about the compiler. 13069$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13070set X $ac_compile 13071ac_compiler=$2 13072for ac_option in --version -v -V -qversion; do 13073 { { ac_try="$ac_compiler $ac_option >&5" 13074case "(($ac_try" in 13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13076 *) ac_try_echo=$ac_try;; 13077esac 13078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13079$as_echo "$ac_try_echo"; } >&5 13080 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13081 ac_status=$? 13082 if test -s conftest.err; then 13083 sed '10a\ 13084... rest of stderr output deleted ... 13085 10q' conftest.err >conftest.er1 13086 cat conftest.er1 >&5 13087 fi 13088 rm -f conftest.er1 conftest.err 13089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13090 test $ac_status = 0; } 13091done 13092 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13094$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13095if ${ac_cv_cxx_compiler_gnu+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13099/* end confdefs.h. */ 13100 13101int 13102main () 13103{ 13104#ifndef __GNUC__ 13105 choke me 13106#endif 13107 13108 ; 13109 return 0; 13110} 13111_ACEOF 13112if ac_fn_cxx_try_compile "$LINENO"; then : 13113 ac_compiler_gnu=yes 13114else 13115 ac_compiler_gnu=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13118ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13119 13120fi 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13122$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13123if test $ac_compiler_gnu = yes; then 13124 GXX=yes 13125else 13126 GXX= 13127fi 13128ac_test_CXXFLAGS=${CXXFLAGS+set} 13129ac_save_CXXFLAGS=$CXXFLAGS 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13131$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13132if ${ac_cv_prog_cxx_g+:} false; then : 13133 $as_echo_n "(cached) " >&6 13134else 13135 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13136 ac_cxx_werror_flag=yes 13137 ac_cv_prog_cxx_g=no 13138 CXXFLAGS="-g" 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141 13142int 13143main () 13144{ 13145 13146 ; 13147 return 0; 13148} 13149_ACEOF 13150if ac_fn_cxx_try_compile "$LINENO"; then : 13151 ac_cv_prog_cxx_g=yes 13152else 13153 CXXFLAGS="" 13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13155/* end confdefs.h. */ 13156 13157int 13158main () 13159{ 13160 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165if ac_fn_cxx_try_compile "$LINENO"; then : 13166 13167else 13168 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13169 CXXFLAGS="-g" 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172 13173int 13174main () 13175{ 13176 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181if ac_fn_cxx_try_compile "$LINENO"; then : 13182 ac_cv_prog_cxx_g=yes 13183fi 13184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13185fi 13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13187fi 13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13189 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13190fi 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13192$as_echo "$ac_cv_prog_cxx_g" >&6; } 13193if test "$ac_test_CXXFLAGS" = set; then 13194 CXXFLAGS=$ac_save_CXXFLAGS 13195elif test $ac_cv_prog_cxx_g = yes; then 13196 if test "$GXX" = yes; then 13197 CXXFLAGS="-g -O2" 13198 else 13199 CXXFLAGS="-g" 13200 fi 13201else 13202 if test "$GXX" = yes; then 13203 CXXFLAGS="-O2" 13204 else 13205 CXXFLAGS= 13206 fi 13207fi 13208ac_ext=c 13209ac_cpp='$CPP $CPPFLAGS' 13210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13212ac_compiler_gnu=$ac_cv_c_compiler_gnu 13213 13214depcc="$CXX" am_compiler_list= 13215 13216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13217$as_echo_n "checking dependency style of $depcc... " >&6; } 13218if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13219 $as_echo_n "(cached) " >&6 13220else 13221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13222 # We make a subdir and do the tests there. Otherwise we can end up 13223 # making bogus files that we don't know about and never remove. For 13224 # instance it was reported that on HP-UX the gcc test will end up 13225 # making a dummy file named 'D' -- because '-MD' means "put the output 13226 # in D". 13227 rm -rf conftest.dir 13228 mkdir conftest.dir 13229 # Copy depcomp to subdir because otherwise we won't find it if we're 13230 # using a relative directory. 13231 cp "$am_depcomp" conftest.dir 13232 cd conftest.dir 13233 # We will build objects and dependencies in a subdirectory because 13234 # it helps to detect inapplicable dependency modes. For instance 13235 # both Tru64's cc and ICC support -MD to output dependencies as a 13236 # side effect of compilation, but ICC will put the dependencies in 13237 # the current directory while Tru64 will put them in the object 13238 # directory. 13239 mkdir sub 13240 13241 am_cv_CXX_dependencies_compiler_type=none 13242 if test "$am_compiler_list" = ""; then 13243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13244 fi 13245 am__universal=false 13246 case " $depcc " in #( 13247 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13248 esac 13249 13250 for depmode in $am_compiler_list; do 13251 # Setup a source with many dependencies, because some compilers 13252 # like to wrap large dependency lists on column 80 (with \), and 13253 # we should not choose a depcomp mode which is confused by this. 13254 # 13255 # We need to recreate these files for each test, as the compiler may 13256 # overwrite some of them when testing with obscure command lines. 13257 # This happens at least with the AIX C compiler. 13258 : > sub/conftest.c 13259 for i in 1 2 3 4 5 6; do 13260 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13262 # Solaris 10 /bin/sh. 13263 echo '/* dummy */' > sub/conftst$i.h 13264 done 13265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13266 13267 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13268 # mode. It turns out that the SunPro C++ compiler does not properly 13269 # handle '-M -o', and we need to detect this. Also, some Intel 13270 # versions had trouble with output in subdirs. 13271 am__obj=sub/conftest.${OBJEXT-o} 13272 am__minus_obj="-o $am__obj" 13273 case $depmode in 13274 gcc) 13275 # This depmode causes a compiler race in universal mode. 13276 test "$am__universal" = false || continue 13277 ;; 13278 nosideeffect) 13279 # After this tag, mechanisms are not by side-effect, so they'll 13280 # only be used when explicitly requested. 13281 if test "x$enable_dependency_tracking" = xyes; then 13282 continue 13283 else 13284 break 13285 fi 13286 ;; 13287 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13288 # This compiler won't grok '-c -o', but also, the minuso test has 13289 # not run yet. These depmodes are late enough in the game, and 13290 # so weak that their functioning should not be impacted. 13291 am__obj=conftest.${OBJEXT-o} 13292 am__minus_obj= 13293 ;; 13294 none) break ;; 13295 esac 13296 if depmode=$depmode \ 13297 source=sub/conftest.c object=$am__obj \ 13298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13300 >/dev/null 2>conftest.err && 13301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13305 # icc doesn't choke on unknown options, it will just issue warnings 13306 # or remarks (even with -Werror). So we grep stderr for any message 13307 # that says an option was ignored or not supported. 13308 # When given -MP, icc 7.0 and 7.1 complain thusly: 13309 # icc: Command line warning: ignoring option '-M'; no argument required 13310 # The diagnosis changed in icc 8.0: 13311 # icc: Command line remark: option '-MP' not supported 13312 if (grep 'ignoring option' conftest.err || 13313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13314 am_cv_CXX_dependencies_compiler_type=$depmode 13315 break 13316 fi 13317 fi 13318 done 13319 13320 cd .. 13321 rm -rf conftest.dir 13322else 13323 am_cv_CXX_dependencies_compiler_type=none 13324fi 13325 13326fi 13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13328$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13329CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13330 13331 if 13332 test "x$enable_dependency_tracking" != xno \ 13333 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13334 am__fastdepCXX_TRUE= 13335 am__fastdepCXX_FALSE='#' 13336else 13337 am__fastdepCXX_TRUE='#' 13338 am__fastdepCXX_FALSE= 13339fi 13340 13341 13342 13343 13344 13345func_stripname_cnf () 13346{ 13347 case $2 in 13348 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13349 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13350 esac 13351} # func_stripname_cnf 13352 13353 if test -n "$CXX" && ( test no != "$CXX" && 13354 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13355 (test g++ != "$CXX"))); then 13356 ac_ext=cpp 13357ac_cpp='$CXXCPP $CPPFLAGS' 13358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13362$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13363if test -z "$CXXCPP"; then 13364 if ${ac_cv_prog_CXXCPP+:} false; then : 13365 $as_echo_n "(cached) " >&6 13366else 13367 # Double quotes because CXXCPP needs to be expanded 13368 for CXXCPP in "$CXX -E" "/lib/cpp" 13369 do 13370 ac_preproc_ok=false 13371for ac_cxx_preproc_warn_flag in '' yes 13372do 13373 # Use a header file that comes with gcc, so configuring glibc 13374 # with a fresh cross-compiler works. 13375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13376 # <limits.h> exists even on freestanding compilers. 13377 # On the NeXT, cc -E runs the code through the compiler's parser, 13378 # not just through cpp. "Syntax error" is here to catch this case. 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381#ifdef __STDC__ 13382# include <limits.h> 13383#else 13384# include <assert.h> 13385#endif 13386 Syntax error 13387_ACEOF 13388if ac_fn_cxx_try_cpp "$LINENO"; then : 13389 13390else 13391 # Broken: fails on valid input. 13392continue 13393fi 13394rm -f conftest.err conftest.i conftest.$ac_ext 13395 13396 # OK, works on sane cases. Now check whether nonexistent headers 13397 # can be detected and how. 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13399/* end confdefs.h. */ 13400#include <ac_nonexistent.h> 13401_ACEOF 13402if ac_fn_cxx_try_cpp "$LINENO"; then : 13403 # Broken: success on invalid input. 13404continue 13405else 13406 # Passes both tests. 13407ac_preproc_ok=: 13408break 13409fi 13410rm -f conftest.err conftest.i conftest.$ac_ext 13411 13412done 13413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13414rm -f conftest.i conftest.err conftest.$ac_ext 13415if $ac_preproc_ok; then : 13416 break 13417fi 13418 13419 done 13420 ac_cv_prog_CXXCPP=$CXXCPP 13421 13422fi 13423 CXXCPP=$ac_cv_prog_CXXCPP 13424else 13425 ac_cv_prog_CXXCPP=$CXXCPP 13426fi 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13428$as_echo "$CXXCPP" >&6; } 13429ac_preproc_ok=false 13430for ac_cxx_preproc_warn_flag in '' yes 13431do 13432 # Use a header file that comes with gcc, so configuring glibc 13433 # with a fresh cross-compiler works. 13434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13435 # <limits.h> exists even on freestanding compilers. 13436 # On the NeXT, cc -E runs the code through the compiler's parser, 13437 # not just through cpp. "Syntax error" is here to catch this case. 13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13439/* end confdefs.h. */ 13440#ifdef __STDC__ 13441# include <limits.h> 13442#else 13443# include <assert.h> 13444#endif 13445 Syntax error 13446_ACEOF 13447if ac_fn_cxx_try_cpp "$LINENO"; then : 13448 13449else 13450 # Broken: fails on valid input. 13451continue 13452fi 13453rm -f conftest.err conftest.i conftest.$ac_ext 13454 13455 # OK, works on sane cases. Now check whether nonexistent headers 13456 # can be detected and how. 13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13458/* end confdefs.h. */ 13459#include <ac_nonexistent.h> 13460_ACEOF 13461if ac_fn_cxx_try_cpp "$LINENO"; then : 13462 # Broken: success on invalid input. 13463continue 13464else 13465 # Passes both tests. 13466ac_preproc_ok=: 13467break 13468fi 13469rm -f conftest.err conftest.i conftest.$ac_ext 13470 13471done 13472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13473rm -f conftest.i conftest.err conftest.$ac_ext 13474if $ac_preproc_ok; then : 13475 13476else 13477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13479as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13480See \`config.log' for more details" "$LINENO" 5; } 13481fi 13482 13483ac_ext=c 13484ac_cpp='$CPP $CPPFLAGS' 13485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13487ac_compiler_gnu=$ac_cv_c_compiler_gnu 13488 13489else 13490 _lt_caught_CXX_error=yes 13491fi 13492 13493ac_ext=cpp 13494ac_cpp='$CXXCPP $CPPFLAGS' 13495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13498 13499archive_cmds_need_lc_CXX=no 13500allow_undefined_flag_CXX= 13501always_export_symbols_CXX=no 13502archive_expsym_cmds_CXX= 13503compiler_needs_object_CXX=no 13504export_dynamic_flag_spec_CXX= 13505hardcode_direct_CXX=no 13506hardcode_direct_absolute_CXX=no 13507hardcode_libdir_flag_spec_CXX= 13508hardcode_libdir_separator_CXX= 13509hardcode_minus_L_CXX=no 13510hardcode_shlibpath_var_CXX=unsupported 13511hardcode_automatic_CXX=no 13512inherit_rpath_CXX=no 13513module_cmds_CXX= 13514module_expsym_cmds_CXX= 13515link_all_deplibs_CXX=unknown 13516old_archive_cmds_CXX=$old_archive_cmds 13517reload_flag_CXX=$reload_flag 13518reload_cmds_CXX=$reload_cmds 13519no_undefined_flag_CXX= 13520whole_archive_flag_spec_CXX= 13521enable_shared_with_static_runtimes_CXX=no 13522 13523# Source file extension for C++ test sources. 13524ac_ext=cpp 13525 13526# Object file extension for compiled C++ test sources. 13527objext=o 13528objext_CXX=$objext 13529 13530# No sense in running all these tests if we already determined that 13531# the CXX compiler isn't working. Some variables (like enable_shared) 13532# are currently assumed to apply to all compilers on this platform, 13533# and will be corrupted by setting them based on a non-working compiler. 13534if test yes != "$_lt_caught_CXX_error"; then 13535 # Code to be used in simple compile tests 13536 lt_simple_compile_test_code="int some_variable = 0;" 13537 13538 # Code to be used in simple link tests 13539 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13540 13541 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13542 13543 13544 13545 13546 13547 13548# If no C compiler was specified, use CC. 13549LTCC=${LTCC-"$CC"} 13550 13551# If no C compiler flags were specified, use CFLAGS. 13552LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13553 13554# Allow CC to be a program name with arguments. 13555compiler=$CC 13556 13557 13558 # save warnings/boilerplate of simple test code 13559 ac_outfile=conftest.$ac_objext 13560echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13562_lt_compiler_boilerplate=`cat conftest.err` 13563$RM conftest* 13564 13565 ac_outfile=conftest.$ac_objext 13566echo "$lt_simple_link_test_code" >conftest.$ac_ext 13567eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13568_lt_linker_boilerplate=`cat conftest.err` 13569$RM -r conftest* 13570 13571 13572 # Allow CC to be a program name with arguments. 13573 lt_save_CC=$CC 13574 lt_save_CFLAGS=$CFLAGS 13575 lt_save_LD=$LD 13576 lt_save_GCC=$GCC 13577 GCC=$GXX 13578 lt_save_with_gnu_ld=$with_gnu_ld 13579 lt_save_path_LD=$lt_cv_path_LD 13580 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13581 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13582 else 13583 $as_unset lt_cv_prog_gnu_ld 13584 fi 13585 if test -n "${lt_cv_path_LDCXX+set}"; then 13586 lt_cv_path_LD=$lt_cv_path_LDCXX 13587 else 13588 $as_unset lt_cv_path_LD 13589 fi 13590 test -z "${LDCXX+set}" || LD=$LDCXX 13591 CC=${CXX-"c++"} 13592 CFLAGS=$CXXFLAGS 13593 compiler=$CC 13594 compiler_CXX=$CC 13595 for cc_temp in $compiler""; do 13596 case $cc_temp in 13597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13599 \-*) ;; 13600 *) break;; 13601 esac 13602done 13603cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13604 13605 13606 if test -n "$compiler"; then 13607 # We don't want -fno-exception when compiling C++ code, so set the 13608 # no_builtin_flag separately 13609 if test yes = "$GXX"; then 13610 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13611 else 13612 lt_prog_compiler_no_builtin_flag_CXX= 13613 fi 13614 13615 if test yes = "$GXX"; then 13616 # Set up default GNU C++ configuration 13617 13618 13619 13620# Check whether --with-gnu-ld was given. 13621if test "${with_gnu_ld+set}" = set; then : 13622 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13623else 13624 with_gnu_ld=no 13625fi 13626 13627ac_prog=ld 13628if test yes = "$GCC"; then 13629 # Check if gcc -print-prog-name=ld gives a path. 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13631$as_echo_n "checking for ld used by $CC... " >&6; } 13632 case $host in 13633 *-*-mingw*) 13634 # gcc leaves a trailing carriage return, which upsets mingw 13635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13636 *) 13637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13638 esac 13639 case $ac_prog in 13640 # Accept absolute paths. 13641 [\\/]* | ?:[\\/]*) 13642 re_direlt='/[^/][^/]*/\.\./' 13643 # Canonicalize the pathname of ld 13644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13647 done 13648 test -z "$LD" && LD=$ac_prog 13649 ;; 13650 "") 13651 # If it fails, then pretend we aren't using GCC. 13652 ac_prog=ld 13653 ;; 13654 *) 13655 # If it is relative, then search for the first ld in PATH. 13656 with_gnu_ld=unknown 13657 ;; 13658 esac 13659elif test yes = "$with_gnu_ld"; then 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13661$as_echo_n "checking for GNU ld... " >&6; } 13662else 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13664$as_echo_n "checking for non-GNU ld... " >&6; } 13665fi 13666if ${lt_cv_path_LD+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 if test -z "$LD"; then 13670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13671 for ac_dir in $PATH; do 13672 IFS=$lt_save_ifs 13673 test -z "$ac_dir" && ac_dir=. 13674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13675 lt_cv_path_LD=$ac_dir/$ac_prog 13676 # Check to see if the program is GNU ld. I'd rather use --version, 13677 # but apparently some variants of GNU ld only accept -v. 13678 # Break only if it was the GNU/non-GNU ld that we prefer. 13679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13680 *GNU* | *'with BFD'*) 13681 test no != "$with_gnu_ld" && break 13682 ;; 13683 *) 13684 test yes != "$with_gnu_ld" && break 13685 ;; 13686 esac 13687 fi 13688 done 13689 IFS=$lt_save_ifs 13690else 13691 lt_cv_path_LD=$LD # Let the user override the test with a path. 13692fi 13693fi 13694 13695LD=$lt_cv_path_LD 13696if test -n "$LD"; then 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13698$as_echo "$LD" >&6; } 13699else 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13701$as_echo "no" >&6; } 13702fi 13703test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13706if ${lt_cv_prog_gnu_ld+:} false; then : 13707 $as_echo_n "(cached) " >&6 13708else 13709 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13710case `$LD -v 2>&1 </dev/null` in 13711*GNU* | *'with BFD'*) 13712 lt_cv_prog_gnu_ld=yes 13713 ;; 13714*) 13715 lt_cv_prog_gnu_ld=no 13716 ;; 13717esac 13718fi 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13720$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13721with_gnu_ld=$lt_cv_prog_gnu_ld 13722 13723 13724 13725 13726 13727 13728 13729 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13730 # archiving commands below assume that GNU ld is being used. 13731 if test yes = "$with_gnu_ld"; then 13732 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13733 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' 13734 13735 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13736 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13737 13738 # If archive_cmds runs LD, not CC, wlarc should be empty 13739 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13740 # investigate it a little bit more. (MM) 13741 wlarc='$wl' 13742 13743 # ancient GNU ld didn't support --whole-archive et. al. 13744 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13745 $GREP 'no-whole-archive' > /dev/null; then 13746 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13747 else 13748 whole_archive_flag_spec_CXX= 13749 fi 13750 else 13751 with_gnu_ld=no 13752 wlarc= 13753 13754 # A generic and very simple default shared library creation 13755 # command for GNU C++ for the case where it uses the native 13756 # linker, instead of GNU ld. If possible, this setting should 13757 # overridden to take advantage of the native linker features on 13758 # the platform it is being used on. 13759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13760 fi 13761 13762 # Commands to make compiler produce verbose output that lists 13763 # what "hidden" libraries, object files and flags are used when 13764 # linking a shared library. 13765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13766 13767 else 13768 GXX=no 13769 with_gnu_ld=no 13770 wlarc= 13771 fi 13772 13773 # PORTME: fill in a description of your system's C++ link characteristics 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13776 ld_shlibs_CXX=yes 13777 case $host_os in 13778 aix3*) 13779 # FIXME: insert proper C++ library support 13780 ld_shlibs_CXX=no 13781 ;; 13782 aix[4-9]*) 13783 if test ia64 = "$host_cpu"; then 13784 # On IA64, the linker does run time linking by default, so we don't 13785 # have to do anything special. 13786 aix_use_runtimelinking=no 13787 exp_sym_flag='-Bexport' 13788 no_entry_flag= 13789 else 13790 aix_use_runtimelinking=no 13791 13792 # Test if we are trying to use run time linking or normal 13793 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13794 # have runtime linking enabled, and use it for executables. 13795 # For shared libraries, we enable/disable runtime linking 13796 # depending on the kind of the shared library created - 13797 # when "with_aix_soname,aix_use_runtimelinking" is: 13798 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13799 # "aix,yes" lib.so shared, rtl:yes, for executables 13800 # lib.a static archive 13801 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13802 # lib.a(lib.so.V) shared, rtl:no, for executables 13803 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13804 # lib.a(lib.so.V) shared, rtl:no 13805 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13806 # lib.a static archive 13807 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13808 for ld_flag in $LDFLAGS; do 13809 case $ld_flag in 13810 *-brtl*) 13811 aix_use_runtimelinking=yes 13812 break 13813 ;; 13814 esac 13815 done 13816 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13817 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13818 # so we don't have lib.a shared libs to link our executables. 13819 # We have to force runtime linking in this case. 13820 aix_use_runtimelinking=yes 13821 LDFLAGS="$LDFLAGS -Wl,-brtl" 13822 fi 13823 ;; 13824 esac 13825 13826 exp_sym_flag='-bexport' 13827 no_entry_flag='-bnoentry' 13828 fi 13829 13830 # When large executables or shared objects are built, AIX ld can 13831 # have problems creating the table of contents. If linking a library 13832 # or program results in "error TOC overflow" add -mminimal-toc to 13833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13835 13836 archive_cmds_CXX='' 13837 hardcode_direct_CXX=yes 13838 hardcode_direct_absolute_CXX=yes 13839 hardcode_libdir_separator_CXX=':' 13840 link_all_deplibs_CXX=yes 13841 file_list_spec_CXX='$wl-f,' 13842 case $with_aix_soname,$aix_use_runtimelinking in 13843 aix,*) ;; # no import file 13844 svr4,* | *,yes) # use import file 13845 # The Import File defines what to hardcode. 13846 hardcode_direct_CXX=no 13847 hardcode_direct_absolute_CXX=no 13848 ;; 13849 esac 13850 13851 if test yes = "$GXX"; then 13852 case $host_os in aix4.[012]|aix4.[012].*) 13853 # We only want to do this on AIX 4.2 and lower, the check 13854 # below for broken collect2 doesn't work under 4.3+ 13855 collect2name=`$CC -print-prog-name=collect2` 13856 if test -f "$collect2name" && 13857 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13858 then 13859 # We have reworked collect2 13860 : 13861 else 13862 # We have old collect2 13863 hardcode_direct_CXX=unsupported 13864 # It fails to find uninstalled libraries when the uninstalled 13865 # path is not listed in the libpath. Setting hardcode_minus_L 13866 # to unsupported forces relinking 13867 hardcode_minus_L_CXX=yes 13868 hardcode_libdir_flag_spec_CXX='-L$libdir' 13869 hardcode_libdir_separator_CXX= 13870 fi 13871 esac 13872 shared_flag='-shared' 13873 if test yes = "$aix_use_runtimelinking"; then 13874 shared_flag=$shared_flag' $wl-G' 13875 fi 13876 # Need to ensure runtime linking is disabled for the traditional 13877 # shared library, or the linker may eventually find shared libraries 13878 # /with/ Import File - we do not want to mix them. 13879 shared_flag_aix='-shared' 13880 shared_flag_svr4='-shared $wl-G' 13881 else 13882 # not using gcc 13883 if test ia64 = "$host_cpu"; then 13884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13885 # chokes on -Wl,-G. The following line is correct: 13886 shared_flag='-G' 13887 else 13888 if test yes = "$aix_use_runtimelinking"; then 13889 shared_flag='$wl-G' 13890 else 13891 shared_flag='$wl-bM:SRE' 13892 fi 13893 shared_flag_aix='$wl-bM:SRE' 13894 shared_flag_svr4='$wl-G' 13895 fi 13896 fi 13897 13898 export_dynamic_flag_spec_CXX='$wl-bexpall' 13899 # It seems that -bexpall does not export symbols beginning with 13900 # underscore (_), so it is better to generate a list of symbols to 13901 # export. 13902 always_export_symbols_CXX=yes 13903 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13904 # Warning - without using the other runtime loading flags (-brtl), 13905 # -berok will link without error, but may produce a broken library. 13906 # The "-G" linker flag allows undefined symbols. 13907 no_undefined_flag_CXX='-bernotok' 13908 # Determine the default libpath from the value encoded in an empty 13909 # executable. 13910 if test set = "${lt_cv_aix_libpath+set}"; then 13911 aix_libpath=$lt_cv_aix_libpath 13912else 13913 if ${lt_cv_aix_libpath__CXX+:} false; then : 13914 $as_echo_n "(cached) " >&6 13915else 13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13917/* end confdefs.h. */ 13918 13919int 13920main () 13921{ 13922 13923 ; 13924 return 0; 13925} 13926_ACEOF 13927if ac_fn_cxx_try_link "$LINENO"; then : 13928 13929 lt_aix_libpath_sed=' 13930 /Import File Strings/,/^$/ { 13931 /^0/ { 13932 s/^0 *\([^ ]*\) *$/\1/ 13933 p 13934 } 13935 }' 13936 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13937 # Check for a 64-bit object if we didn't find anything. 13938 if test -z "$lt_cv_aix_libpath__CXX"; then 13939 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13940 fi 13941fi 13942rm -f core conftest.err conftest.$ac_objext \ 13943 conftest$ac_exeext conftest.$ac_ext 13944 if test -z "$lt_cv_aix_libpath__CXX"; then 13945 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13946 fi 13947 13948fi 13949 13950 aix_libpath=$lt_cv_aix_libpath__CXX 13951fi 13952 13953 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13954 13955 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 13956 else 13957 if test ia64 = "$host_cpu"; then 13958 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13959 allow_undefined_flag_CXX="-z nodefs" 13960 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" 13961 else 13962 # Determine the default libpath from the value encoded in an 13963 # empty executable. 13964 if test set = "${lt_cv_aix_libpath+set}"; then 13965 aix_libpath=$lt_cv_aix_libpath 13966else 13967 if ${lt_cv_aix_libpath__CXX+:} false; then : 13968 $as_echo_n "(cached) " >&6 13969else 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971/* end confdefs.h. */ 13972 13973int 13974main () 13975{ 13976 13977 ; 13978 return 0; 13979} 13980_ACEOF 13981if ac_fn_cxx_try_link "$LINENO"; then : 13982 13983 lt_aix_libpath_sed=' 13984 /Import File Strings/,/^$/ { 13985 /^0/ { 13986 s/^0 *\([^ ]*\) *$/\1/ 13987 p 13988 } 13989 }' 13990 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13991 # Check for a 64-bit object if we didn't find anything. 13992 if test -z "$lt_cv_aix_libpath__CXX"; then 13993 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13994 fi 13995fi 13996rm -f core conftest.err conftest.$ac_objext \ 13997 conftest$ac_exeext conftest.$ac_ext 13998 if test -z "$lt_cv_aix_libpath__CXX"; then 13999 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14000 fi 14001 14002fi 14003 14004 aix_libpath=$lt_cv_aix_libpath__CXX 14005fi 14006 14007 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14008 # Warning - without using the other run time loading flags, 14009 # -berok will link without error, but may produce a broken library. 14010 no_undefined_flag_CXX=' $wl-bernotok' 14011 allow_undefined_flag_CXX=' $wl-berok' 14012 if test yes = "$with_gnu_ld"; then 14013 # We only use this code for GNU lds that support --whole-archive. 14014 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14015 else 14016 # Exported symbols can be pulled into shared objects from archives 14017 whole_archive_flag_spec_CXX='$convenience' 14018 fi 14019 archive_cmds_need_lc_CXX=yes 14020 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14021 # -brtl affects multiple linker settings, -berok does not and is overridden later 14022 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14023 if test svr4 != "$with_aix_soname"; then 14024 # This is similar to how AIX traditionally builds its shared 14025 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14026 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' 14027 fi 14028 if test aix != "$with_aix_soname"; then 14029 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' 14030 else 14031 # used by -dlpreopen to get the symbols 14032 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14033 fi 14034 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14035 fi 14036 fi 14037 ;; 14038 14039 beos*) 14040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14041 allow_undefined_flag_CXX=unsupported 14042 # Joseph Beckenbach <[email protected]> says some releases of gcc 14043 # support --undefined. This deserves some investigation. FIXME 14044 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14045 else 14046 ld_shlibs_CXX=no 14047 fi 14048 ;; 14049 14050 chorus*) 14051 case $cc_basename in 14052 *) 14053 # FIXME: insert proper C++ library support 14054 ld_shlibs_CXX=no 14055 ;; 14056 esac 14057 ;; 14058 14059 cygwin* | mingw* | pw32* | cegcc*) 14060 case $GXX,$cc_basename in 14061 ,cl* | no,cl*) 14062 # Native MSVC 14063 # hardcode_libdir_flag_spec is actually meaningless, as there is 14064 # no search path for DLLs. 14065 hardcode_libdir_flag_spec_CXX=' ' 14066 allow_undefined_flag_CXX=unsupported 14067 always_export_symbols_CXX=yes 14068 file_list_spec_CXX='@' 14069 # Tell ltmain to make .lib files, not .a files. 14070 libext=lib 14071 # Tell ltmain to make .dll files, not .so files. 14072 shrext_cmds=.dll 14073 # FIXME: Setting linknames here is a bad hack. 14074 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14075 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14076 cp "$export_symbols" "$output_objdir/$soname.def"; 14077 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14078 else 14079 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14080 fi~ 14081 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14082 linknames=' 14083 # The linker will not automatically build a static lib if we build a DLL. 14084 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14085 enable_shared_with_static_runtimes_CXX=yes 14086 # Don't use ranlib 14087 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14088 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14089 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14090 case $lt_outputfile in 14091 *.exe|*.EXE) ;; 14092 *) 14093 lt_outputfile=$lt_outputfile.exe 14094 lt_tool_outputfile=$lt_tool_outputfile.exe 14095 ;; 14096 esac~ 14097 func_to_tool_file "$lt_outputfile"~ 14098 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14099 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14100 $RM "$lt_outputfile.manifest"; 14101 fi' 14102 ;; 14103 *) 14104 # g++ 14105 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14106 # as there is no search path for DLLs. 14107 hardcode_libdir_flag_spec_CXX='-L$libdir' 14108 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14109 allow_undefined_flag_CXX=unsupported 14110 always_export_symbols_CXX=no 14111 enable_shared_with_static_runtimes_CXX=yes 14112 14113 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14114 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' 14115 # If the export-symbols file already is a .def file, use it as 14116 # is; otherwise, prepend EXPORTS... 14117 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14118 cp $export_symbols $output_objdir/$soname.def; 14119 else 14120 echo EXPORTS > $output_objdir/$soname.def; 14121 cat $export_symbols >> $output_objdir/$soname.def; 14122 fi~ 14123 $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' 14124 else 14125 ld_shlibs_CXX=no 14126 fi 14127 ;; 14128 esac 14129 ;; 14130 darwin* | rhapsody*) 14131 14132 14133 archive_cmds_need_lc_CXX=no 14134 hardcode_direct_CXX=no 14135 hardcode_automatic_CXX=yes 14136 hardcode_shlibpath_var_CXX=unsupported 14137 if test yes = "$lt_cv_ld_force_load"; then 14138 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\"`' 14139 14140 else 14141 whole_archive_flag_spec_CXX='' 14142 fi 14143 link_all_deplibs_CXX=yes 14144 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14145 case $cc_basename in 14146 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14147 *) _lt_dar_can_shared=$GCC ;; 14148 esac 14149 if test yes = "$_lt_dar_can_shared"; then 14150 output_verbose_link_cmd=func_echo_all 14151 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" 14152 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14153 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" 14154 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" 14155 if test yes != "$lt_cv_apple_cc_single_mod"; then 14156 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" 14157 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" 14158 fi 14159 14160 else 14161 ld_shlibs_CXX=no 14162 fi 14163 14164 ;; 14165 14166 os2*) 14167 hardcode_libdir_flag_spec_CXX='-L$libdir' 14168 hardcode_minus_L_CXX=yes 14169 allow_undefined_flag_CXX=unsupported 14170 shrext_cmds=.dll 14171 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14172 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14173 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14174 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14175 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14176 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14177 emximp -o $lib $output_objdir/$libname.def' 14178 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14179 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14180 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14181 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14182 prefix_cmds="$SED"~ 14183 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14184 prefix_cmds="$prefix_cmds -e 1d"; 14185 fi~ 14186 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14187 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14188 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14189 emximp -o $lib $output_objdir/$libname.def' 14190 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14191 enable_shared_with_static_runtimes_CXX=yes 14192 ;; 14193 14194 dgux*) 14195 case $cc_basename in 14196 ec++*) 14197 # FIXME: insert proper C++ library support 14198 ld_shlibs_CXX=no 14199 ;; 14200 ghcx*) 14201 # Green Hills C++ Compiler 14202 # FIXME: insert proper C++ library support 14203 ld_shlibs_CXX=no 14204 ;; 14205 *) 14206 # FIXME: insert proper C++ library support 14207 ld_shlibs_CXX=no 14208 ;; 14209 esac 14210 ;; 14211 14212 freebsd2.*) 14213 # C++ shared libraries reported to be fairly broken before 14214 # switch to ELF 14215 ld_shlibs_CXX=no 14216 ;; 14217 14218 freebsd-elf*) 14219 archive_cmds_need_lc_CXX=no 14220 ;; 14221 14222 freebsd* | dragonfly*) 14223 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14224 # conventions 14225 ld_shlibs_CXX=yes 14226 ;; 14227 14228 haiku*) 14229 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14230 link_all_deplibs_CXX=yes 14231 ;; 14232 14233 hpux9*) 14234 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14235 hardcode_libdir_separator_CXX=: 14236 export_dynamic_flag_spec_CXX='$wl-E' 14237 hardcode_direct_CXX=yes 14238 hardcode_minus_L_CXX=yes # Not in the search PATH, 14239 # but as the default 14240 # location of the library. 14241 14242 case $cc_basename in 14243 CC*) 14244 # FIXME: insert proper C++ library support 14245 ld_shlibs_CXX=no 14246 ;; 14247 aCC*) 14248 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' 14249 # Commands to make compiler produce verbose output that lists 14250 # what "hidden" libraries, object files and flags are used when 14251 # linking a shared library. 14252 # 14253 # There doesn't appear to be a way to prevent this compiler from 14254 # explicitly linking system object files so we need to strip them 14255 # from the output so that they don't get included in the library 14256 # dependencies. 14257 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"' 14258 ;; 14259 *) 14260 if test yes = "$GXX"; then 14261 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' 14262 else 14263 # FIXME: insert proper C++ library support 14264 ld_shlibs_CXX=no 14265 fi 14266 ;; 14267 esac 14268 ;; 14269 14270 hpux10*|hpux11*) 14271 if test no = "$with_gnu_ld"; then 14272 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14273 hardcode_libdir_separator_CXX=: 14274 14275 case $host_cpu in 14276 hppa*64*|ia64*) 14277 ;; 14278 *) 14279 export_dynamic_flag_spec_CXX='$wl-E' 14280 ;; 14281 esac 14282 fi 14283 case $host_cpu in 14284 hppa*64*|ia64*) 14285 hardcode_direct_CXX=no 14286 hardcode_shlibpath_var_CXX=no 14287 ;; 14288 *) 14289 hardcode_direct_CXX=yes 14290 hardcode_direct_absolute_CXX=yes 14291 hardcode_minus_L_CXX=yes # Not in the search PATH, 14292 # but as the default 14293 # location of the library. 14294 ;; 14295 esac 14296 14297 case $cc_basename in 14298 CC*) 14299 # FIXME: insert proper C++ library support 14300 ld_shlibs_CXX=no 14301 ;; 14302 aCC*) 14303 case $host_cpu in 14304 hppa*64*) 14305 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14306 ;; 14307 ia64*) 14308 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14309 ;; 14310 *) 14311 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14312 ;; 14313 esac 14314 # Commands to make compiler produce verbose output that lists 14315 # what "hidden" libraries, object files and flags are used when 14316 # linking a shared library. 14317 # 14318 # There doesn't appear to be a way to prevent this compiler from 14319 # explicitly linking system object files so we need to strip them 14320 # from the output so that they don't get included in the library 14321 # dependencies. 14322 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"' 14323 ;; 14324 *) 14325 if test yes = "$GXX"; then 14326 if test no = "$with_gnu_ld"; then 14327 case $host_cpu in 14328 hppa*64*) 14329 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14330 ;; 14331 ia64*) 14332 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14333 ;; 14334 *) 14335 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' 14336 ;; 14337 esac 14338 fi 14339 else 14340 # FIXME: insert proper C++ library support 14341 ld_shlibs_CXX=no 14342 fi 14343 ;; 14344 esac 14345 ;; 14346 14347 interix[3-9]*) 14348 hardcode_direct_CXX=no 14349 hardcode_shlibpath_var_CXX=no 14350 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14351 export_dynamic_flag_spec_CXX='$wl-E' 14352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14353 # Instead, shared libraries are loaded at an image base (0x10000000 by 14354 # default) and relocated if they conflict, which is a slow very memory 14355 # consuming and fragmenting process. To avoid this, we pick a random, 14356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14357 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14358 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' 14359 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' 14360 ;; 14361 irix5* | irix6*) 14362 case $cc_basename in 14363 CC*) 14364 # SGI C++ 14365 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' 14366 14367 # Archives containing C++ object files must be created using 14368 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14369 # necessary to make sure instantiated templates are included 14370 # in the archive. 14371 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14372 ;; 14373 *) 14374 if test yes = "$GXX"; then 14375 if test no = "$with_gnu_ld"; then 14376 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' 14377 else 14378 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' 14379 fi 14380 fi 14381 link_all_deplibs_CXX=yes 14382 ;; 14383 esac 14384 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14385 hardcode_libdir_separator_CXX=: 14386 inherit_rpath_CXX=yes 14387 ;; 14388 14389 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14390 case $cc_basename in 14391 KCC*) 14392 # Kuck and Associates, Inc. (KAI) C++ Compiler 14393 14394 # KCC will only create a shared library if the output file 14395 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14396 # to its proper name (with version) after linking. 14397 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' 14398 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' 14399 # Commands to make compiler produce verbose output that lists 14400 # what "hidden" libraries, object files and flags are used when 14401 # linking a shared library. 14402 # 14403 # There doesn't appear to be a way to prevent this compiler from 14404 # explicitly linking system object files so we need to strip them 14405 # from the output so that they don't get included in the library 14406 # dependencies. 14407 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"' 14408 14409 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14410 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14411 14412 # Archives containing C++ object files must be created using 14413 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14415 ;; 14416 icpc* | ecpc* ) 14417 # Intel C++ 14418 with_gnu_ld=yes 14419 # version 8.0 and above of icpc choke on multiply defined symbols 14420 # if we add $predep_objects and $postdep_objects, however 7.1 and 14421 # earlier do not add the objects themselves. 14422 case `$CC -V 2>&1` in 14423 *"Version 7."*) 14424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14425 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' 14426 ;; 14427 *) # Version 8.0 or newer 14428 tmp_idyn= 14429 case $host_cpu in 14430 ia64*) tmp_idyn=' -i_dynamic';; 14431 esac 14432 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14433 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' 14434 ;; 14435 esac 14436 archive_cmds_need_lc_CXX=no 14437 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14438 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14439 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14440 ;; 14441 pgCC* | pgcpp*) 14442 # Portland Group C++ compiler 14443 case `$CC -V` in 14444 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14445 prelink_cmds_CXX='tpldir=Template.dir~ 14446 rm -rf $tpldir~ 14447 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14448 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14449 old_archive_cmds_CXX='tpldir=Template.dir~ 14450 rm -rf $tpldir~ 14451 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14452 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14453 $RANLIB $oldlib' 14454 archive_cmds_CXX='tpldir=Template.dir~ 14455 rm -rf $tpldir~ 14456 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14457 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14458 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14459 rm -rf $tpldir~ 14460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14461 $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' 14462 ;; 14463 *) # Version 6 and above use weak symbols 14464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14465 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' 14466 ;; 14467 esac 14468 14469 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14470 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14471 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' 14472 ;; 14473 cxx*) 14474 # Compaq C++ 14475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14476 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' 14477 14478 runpath_var=LD_RUN_PATH 14479 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14480 hardcode_libdir_separator_CXX=: 14481 14482 # Commands to make compiler produce verbose output that lists 14483 # what "hidden" libraries, object files and flags are used when 14484 # linking a shared library. 14485 # 14486 # There doesn't appear to be a way to prevent this compiler from 14487 # explicitly linking system object files so we need to strip them 14488 # from the output so that they don't get included in the library 14489 # dependencies. 14490 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' 14491 ;; 14492 xl* | mpixl* | bgxl*) 14493 # IBM XL 8.0 on PPC, with GNU ld 14494 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14495 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14496 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14497 if test yes = "$supports_anon_versioning"; then 14498 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14500 echo "local: *; };" >> $output_objdir/$libname.ver~ 14501 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14502 fi 14503 ;; 14504 *) 14505 case `$CC -V 2>&1 | sed 5q` in 14506 *Sun\ C*) 14507 # Sun C++ 5.9 14508 no_undefined_flag_CXX=' -zdefs' 14509 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14510 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' 14511 hardcode_libdir_flag_spec_CXX='-R$libdir' 14512 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' 14513 compiler_needs_object_CXX=yes 14514 14515 # Not sure whether something based on 14516 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14517 # would be better. 14518 output_verbose_link_cmd='func_echo_all' 14519 14520 # Archives containing C++ object files must be created using 14521 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14522 # necessary to make sure instantiated templates are included 14523 # in the archive. 14524 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14525 ;; 14526 esac 14527 ;; 14528 esac 14529 ;; 14530 14531 lynxos*) 14532 # FIXME: insert proper C++ library support 14533 ld_shlibs_CXX=no 14534 ;; 14535 14536 m88k*) 14537 # FIXME: insert proper C++ library support 14538 ld_shlibs_CXX=no 14539 ;; 14540 14541 mvs*) 14542 case $cc_basename in 14543 cxx*) 14544 # FIXME: insert proper C++ library support 14545 ld_shlibs_CXX=no 14546 ;; 14547 *) 14548 # FIXME: insert proper C++ library support 14549 ld_shlibs_CXX=no 14550 ;; 14551 esac 14552 ;; 14553 14554 netbsd*) 14555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14556 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14557 wlarc= 14558 hardcode_libdir_flag_spec_CXX='-R$libdir' 14559 hardcode_direct_CXX=yes 14560 hardcode_shlibpath_var_CXX=no 14561 fi 14562 # Workaround some broken pre-1.5 toolchains 14563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14564 ;; 14565 14566 *nto* | *qnx*) 14567 ld_shlibs_CXX=yes 14568 ;; 14569 14570 openbsd* | bitrig*) 14571 if test -f /usr/libexec/ld.so; then 14572 hardcode_direct_CXX=yes 14573 hardcode_shlibpath_var_CXX=no 14574 hardcode_direct_absolute_CXX=yes 14575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14576 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14578 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14579 export_dynamic_flag_spec_CXX='$wl-E' 14580 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14581 fi 14582 output_verbose_link_cmd=func_echo_all 14583 else 14584 ld_shlibs_CXX=no 14585 fi 14586 ;; 14587 14588 osf3* | osf4* | osf5*) 14589 case $cc_basename in 14590 KCC*) 14591 # Kuck and Associates, Inc. (KAI) C++ Compiler 14592 14593 # KCC will only create a shared library if the output file 14594 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14595 # to its proper name (with version) after linking. 14596 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' 14597 14598 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14599 hardcode_libdir_separator_CXX=: 14600 14601 # Archives containing C++ object files must be created using 14602 # the KAI C++ compiler. 14603 case $host in 14604 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14605 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14606 esac 14607 ;; 14608 RCC*) 14609 # Rational C++ 2.4.1 14610 # FIXME: insert proper C++ library support 14611 ld_shlibs_CXX=no 14612 ;; 14613 cxx*) 14614 case $host in 14615 osf3*) 14616 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14617 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' 14618 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14619 ;; 14620 *) 14621 allow_undefined_flag_CXX=' -expect_unresolved \*' 14622 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' 14623 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14624 echo "-hidden">> $lib.exp~ 14625 $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~ 14626 $RM $lib.exp' 14627 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14628 ;; 14629 esac 14630 14631 hardcode_libdir_separator_CXX=: 14632 14633 # Commands to make compiler produce verbose output that lists 14634 # what "hidden" libraries, object files and flags are used when 14635 # linking a shared library. 14636 # 14637 # There doesn't appear to be a way to prevent this compiler from 14638 # explicitly linking system object files so we need to strip them 14639 # from the output so that they don't get included in the library 14640 # dependencies. 14641 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"' 14642 ;; 14643 *) 14644 if test yes,no = "$GXX,$with_gnu_ld"; then 14645 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14646 case $host in 14647 osf3*) 14648 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' 14649 ;; 14650 *) 14651 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' 14652 ;; 14653 esac 14654 14655 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14656 hardcode_libdir_separator_CXX=: 14657 14658 # Commands to make compiler produce verbose output that lists 14659 # what "hidden" libraries, object files and flags are used when 14660 # linking a shared library. 14661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14662 14663 else 14664 # FIXME: insert proper C++ library support 14665 ld_shlibs_CXX=no 14666 fi 14667 ;; 14668 esac 14669 ;; 14670 14671 psos*) 14672 # FIXME: insert proper C++ library support 14673 ld_shlibs_CXX=no 14674 ;; 14675 14676 sunos4*) 14677 case $cc_basename in 14678 CC*) 14679 # Sun C++ 4.x 14680 # FIXME: insert proper C++ library support 14681 ld_shlibs_CXX=no 14682 ;; 14683 lcc*) 14684 # Lucid 14685 # FIXME: insert proper C++ library support 14686 ld_shlibs_CXX=no 14687 ;; 14688 *) 14689 # FIXME: insert proper C++ library support 14690 ld_shlibs_CXX=no 14691 ;; 14692 esac 14693 ;; 14694 14695 solaris*) 14696 case $cc_basename in 14697 CC* | sunCC*) 14698 # Sun C++ 4.2, 5.x and Centerline C++ 14699 archive_cmds_need_lc_CXX=yes 14700 no_undefined_flag_CXX=' -zdefs' 14701 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14702 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14703 $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' 14704 14705 hardcode_libdir_flag_spec_CXX='-R$libdir' 14706 hardcode_shlibpath_var_CXX=no 14707 case $host_os in 14708 solaris2.[0-5] | solaris2.[0-5].*) ;; 14709 *) 14710 # The compiler driver will combine and reorder linker options, 14711 # but understands '-z linker_flag'. 14712 # Supported since Solaris 2.6 (maybe 2.5.1?) 14713 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14714 ;; 14715 esac 14716 link_all_deplibs_CXX=yes 14717 14718 output_verbose_link_cmd='func_echo_all' 14719 14720 # Archives containing C++ object files must be created using 14721 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14722 # necessary to make sure instantiated templates are included 14723 # in the archive. 14724 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14725 ;; 14726 gcx*) 14727 # Green Hills C++ Compiler 14728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14729 14730 # The C++ compiler must be used to create the archive. 14731 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14732 ;; 14733 *) 14734 # GNU C++ compiler with Solaris linker 14735 if test yes,no = "$GXX,$with_gnu_ld"; then 14736 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14737 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14738 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14739 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14740 $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' 14741 14742 # Commands to make compiler produce verbose output that lists 14743 # what "hidden" libraries, object files and flags are used when 14744 # linking a shared library. 14745 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14746 else 14747 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14748 # platform. 14749 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14750 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14751 $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' 14752 14753 # Commands to make compiler produce verbose output that lists 14754 # what "hidden" libraries, object files and flags are used when 14755 # linking a shared library. 14756 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14757 fi 14758 14759 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14760 case $host_os in 14761 solaris2.[0-5] | solaris2.[0-5].*) ;; 14762 *) 14763 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14764 ;; 14765 esac 14766 fi 14767 ;; 14768 esac 14769 ;; 14770 14771 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14772 no_undefined_flag_CXX='$wl-z,text' 14773 archive_cmds_need_lc_CXX=no 14774 hardcode_shlibpath_var_CXX=no 14775 runpath_var='LD_RUN_PATH' 14776 14777 case $cc_basename in 14778 CC*) 14779 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14780 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14781 ;; 14782 *) 14783 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14784 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14785 ;; 14786 esac 14787 ;; 14788 14789 sysv5* | sco3.2v5* | sco5v6*) 14790 # Note: We CANNOT use -z defs as we might desire, because we do not 14791 # link with -lc, and that would cause any symbols used from libc to 14792 # always be unresolved, which means just about no library would 14793 # ever link correctly. If we're not using GNU ld we use -z text 14794 # though, which does catch some bad symbols but isn't as heavy-handed 14795 # as -z defs. 14796 no_undefined_flag_CXX='$wl-z,text' 14797 allow_undefined_flag_CXX='$wl-z,nodefs' 14798 archive_cmds_need_lc_CXX=no 14799 hardcode_shlibpath_var_CXX=no 14800 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14801 hardcode_libdir_separator_CXX=':' 14802 link_all_deplibs_CXX=yes 14803 export_dynamic_flag_spec_CXX='$wl-Bexport' 14804 runpath_var='LD_RUN_PATH' 14805 14806 case $cc_basename in 14807 CC*) 14808 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14809 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14810 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14811 '"$old_archive_cmds_CXX" 14812 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14813 '"$reload_cmds_CXX" 14814 ;; 14815 *) 14816 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14817 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14818 ;; 14819 esac 14820 ;; 14821 14822 tandem*) 14823 case $cc_basename in 14824 NCC*) 14825 # NonStop-UX NCC 3.20 14826 # FIXME: insert proper C++ library support 14827 ld_shlibs_CXX=no 14828 ;; 14829 *) 14830 # FIXME: insert proper C++ library support 14831 ld_shlibs_CXX=no 14832 ;; 14833 esac 14834 ;; 14835 14836 vxworks*) 14837 # FIXME: insert proper C++ library support 14838 ld_shlibs_CXX=no 14839 ;; 14840 14841 *) 14842 # FIXME: insert proper C++ library support 14843 ld_shlibs_CXX=no 14844 ;; 14845 esac 14846 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14848$as_echo "$ld_shlibs_CXX" >&6; } 14849 test no = "$ld_shlibs_CXX" && can_build_shared=no 14850 14851 GCC_CXX=$GXX 14852 LD_CXX=$LD 14853 14854 ## CAVEAT EMPTOR: 14855 ## There is no encapsulation within the following macros, do not change 14856 ## the running order or otherwise move them around unless you know exactly 14857 ## what you are doing... 14858 # Dependencies to place before and after the object being linked: 14859predep_objects_CXX= 14860postdep_objects_CXX= 14861predeps_CXX= 14862postdeps_CXX= 14863compiler_lib_search_path_CXX= 14864 14865cat > conftest.$ac_ext <<_LT_EOF 14866class Foo 14867{ 14868public: 14869 Foo (void) { a = 0; } 14870private: 14871 int a; 14872}; 14873_LT_EOF 14874 14875 14876_lt_libdeps_save_CFLAGS=$CFLAGS 14877case "$CC $CFLAGS " in #( 14878*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14879*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14880*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14881esac 14882 14883if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14884 (eval $ac_compile) 2>&5 14885 ac_status=$? 14886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14887 test $ac_status = 0; }; then 14888 # Parse the compiler output and extract the necessary 14889 # objects, libraries and library flags. 14890 14891 # Sentinel used to keep track of whether or not we are before 14892 # the conftest object file. 14893 pre_test_object_deps_done=no 14894 14895 for p in `eval "$output_verbose_link_cmd"`; do 14896 case $prev$p in 14897 14898 -L* | -R* | -l*) 14899 # Some compilers place space between "-{L,R}" and the path. 14900 # Remove the space. 14901 if test x-L = "$p" || 14902 test x-R = "$p"; then 14903 prev=$p 14904 continue 14905 fi 14906 14907 # Expand the sysroot to ease extracting the directories later. 14908 if test -z "$prev"; then 14909 case $p in 14910 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14911 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14912 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14913 esac 14914 fi 14915 case $p in 14916 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14917 esac 14918 if test no = "$pre_test_object_deps_done"; then 14919 case $prev in 14920 -L | -R) 14921 # Internal compiler library paths should come after those 14922 # provided the user. The postdeps already come after the 14923 # user supplied libs so there is no need to process them. 14924 if test -z "$compiler_lib_search_path_CXX"; then 14925 compiler_lib_search_path_CXX=$prev$p 14926 else 14927 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14928 fi 14929 ;; 14930 # The "-l" case would never come before the object being 14931 # linked, so don't bother handling this case. 14932 esac 14933 else 14934 if test -z "$postdeps_CXX"; then 14935 postdeps_CXX=$prev$p 14936 else 14937 postdeps_CXX="${postdeps_CXX} $prev$p" 14938 fi 14939 fi 14940 prev= 14941 ;; 14942 14943 *.lto.$objext) ;; # Ignore GCC LTO objects 14944 *.$objext) 14945 # This assumes that the test object file only shows up 14946 # once in the compiler output. 14947 if test "$p" = "conftest.$objext"; then 14948 pre_test_object_deps_done=yes 14949 continue 14950 fi 14951 14952 if test no = "$pre_test_object_deps_done"; then 14953 if test -z "$predep_objects_CXX"; then 14954 predep_objects_CXX=$p 14955 else 14956 predep_objects_CXX="$predep_objects_CXX $p" 14957 fi 14958 else 14959 if test -z "$postdep_objects_CXX"; then 14960 postdep_objects_CXX=$p 14961 else 14962 postdep_objects_CXX="$postdep_objects_CXX $p" 14963 fi 14964 fi 14965 ;; 14966 14967 *) ;; # Ignore the rest. 14968 14969 esac 14970 done 14971 14972 # Clean up. 14973 rm -f a.out a.exe 14974else 14975 echo "libtool.m4: error: problem compiling CXX test program" 14976fi 14977 14978$RM -f confest.$objext 14979CFLAGS=$_lt_libdeps_save_CFLAGS 14980 14981# PORTME: override above test on systems where it is broken 14982case $host_os in 14983interix[3-9]*) 14984 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14985 # hack all around it, let's just trust "g++" to DTRT. 14986 predep_objects_CXX= 14987 postdep_objects_CXX= 14988 postdeps_CXX= 14989 ;; 14990 14991linux*) 14992 case `$CC -V 2>&1 | sed 5q` in 14993 *Sun\ C*) 14994 # Sun C++ 5.9 14995 14996 # The more standards-conforming stlport4 library is 14997 # incompatible with the Cstd library. Avoid specifying 14998 # it if it's in CXXFLAGS. Ignore libCrun as 14999 # -library=stlport4 depends on it. 15000 case " $CXX $CXXFLAGS " in 15001 *" -library=stlport4 "*) 15002 solaris_use_stlport4=yes 15003 ;; 15004 esac 15005 15006 if test yes != "$solaris_use_stlport4"; then 15007 postdeps_CXX='-library=Cstd -library=Crun' 15008 fi 15009 ;; 15010 esac 15011 ;; 15012 15013solaris*) 15014 case $cc_basename in 15015 CC* | sunCC*) 15016 # The more standards-conforming stlport4 library is 15017 # incompatible with the Cstd library. Avoid specifying 15018 # it if it's in CXXFLAGS. Ignore libCrun as 15019 # -library=stlport4 depends on it. 15020 case " $CXX $CXXFLAGS " in 15021 *" -library=stlport4 "*) 15022 solaris_use_stlport4=yes 15023 ;; 15024 esac 15025 15026 # Adding this requires a known-good setup of shared libraries for 15027 # Sun compiler versions before 5.6, else PIC objects from an old 15028 # archive will be linked into the output, leading to subtle bugs. 15029 if test yes != "$solaris_use_stlport4"; then 15030 postdeps_CXX='-library=Cstd -library=Crun' 15031 fi 15032 ;; 15033 esac 15034 ;; 15035esac 15036 15037 15038case " $postdeps_CXX " in 15039*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15040esac 15041 compiler_lib_search_dirs_CXX= 15042if test -n "${compiler_lib_search_path_CXX}"; then 15043 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15044fi 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 lt_prog_compiler_wl_CXX= 15077lt_prog_compiler_pic_CXX= 15078lt_prog_compiler_static_CXX= 15079 15080 15081 # C++ specific cases for pic, static, wl, etc. 15082 if test yes = "$GXX"; then 15083 lt_prog_compiler_wl_CXX='-Wl,' 15084 lt_prog_compiler_static_CXX='-static' 15085 15086 case $host_os in 15087 aix*) 15088 # All AIX code is PIC. 15089 if test ia64 = "$host_cpu"; then 15090 # AIX 5 now supports IA64 processor 15091 lt_prog_compiler_static_CXX='-Bstatic' 15092 fi 15093 lt_prog_compiler_pic_CXX='-fPIC' 15094 ;; 15095 15096 amigaos*) 15097 case $host_cpu in 15098 powerpc) 15099 # see comment about AmigaOS4 .so support 15100 lt_prog_compiler_pic_CXX='-fPIC' 15101 ;; 15102 m68k) 15103 # FIXME: we need at least 68020 code to build shared libraries, but 15104 # adding the '-m68020' flag to GCC prevents building anything better, 15105 # like '-m68040'. 15106 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15107 ;; 15108 esac 15109 ;; 15110 15111 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15112 # PIC is the default for these OSes. 15113 ;; 15114 mingw* | cygwin* | os2* | pw32* | cegcc*) 15115 # This hack is so that the source file can tell whether it is being 15116 # built for inclusion in a dll (and should export symbols for example). 15117 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15118 # (--disable-auto-import) libraries 15119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15120 case $host_os in 15121 os2*) 15122 lt_prog_compiler_static_CXX='$wl-static' 15123 ;; 15124 esac 15125 ;; 15126 darwin* | rhapsody*) 15127 # PIC is the default on this platform 15128 # Common symbols not allowed in MH_DYLIB files 15129 lt_prog_compiler_pic_CXX='-fno-common' 15130 ;; 15131 *djgpp*) 15132 # DJGPP does not support shared libraries at all 15133 lt_prog_compiler_pic_CXX= 15134 ;; 15135 haiku*) 15136 # PIC is the default for Haiku. 15137 # The "-static" flag exists, but is broken. 15138 lt_prog_compiler_static_CXX= 15139 ;; 15140 interix[3-9]*) 15141 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15142 # Instead, we relocate shared libraries at runtime. 15143 ;; 15144 sysv4*MP*) 15145 if test -d /usr/nec; then 15146 lt_prog_compiler_pic_CXX=-Kconform_pic 15147 fi 15148 ;; 15149 hpux*) 15150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15152 # sets the default TLS model and affects inlining. 15153 case $host_cpu in 15154 hppa*64*) 15155 ;; 15156 *) 15157 lt_prog_compiler_pic_CXX='-fPIC' 15158 ;; 15159 esac 15160 ;; 15161 *qnx* | *nto*) 15162 # QNX uses GNU C++, but need to define -shared option too, otherwise 15163 # it will coredump. 15164 lt_prog_compiler_pic_CXX='-fPIC -shared' 15165 ;; 15166 *) 15167 lt_prog_compiler_pic_CXX='-fPIC' 15168 ;; 15169 esac 15170 else 15171 case $host_os in 15172 aix[4-9]*) 15173 # All AIX code is PIC. 15174 if test ia64 = "$host_cpu"; then 15175 # AIX 5 now supports IA64 processor 15176 lt_prog_compiler_static_CXX='-Bstatic' 15177 else 15178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15179 fi 15180 ;; 15181 chorus*) 15182 case $cc_basename in 15183 cxch68*) 15184 # Green Hills C++ Compiler 15185 # _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" 15186 ;; 15187 esac 15188 ;; 15189 mingw* | cygwin* | os2* | pw32* | cegcc*) 15190 # This hack is so that the source file can tell whether it is being 15191 # built for inclusion in a dll (and should export symbols for example). 15192 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15193 ;; 15194 dgux*) 15195 case $cc_basename in 15196 ec++*) 15197 lt_prog_compiler_pic_CXX='-KPIC' 15198 ;; 15199 ghcx*) 15200 # Green Hills C++ Compiler 15201 lt_prog_compiler_pic_CXX='-pic' 15202 ;; 15203 *) 15204 ;; 15205 esac 15206 ;; 15207 freebsd* | dragonfly*) 15208 # FreeBSD uses GNU C++ 15209 ;; 15210 hpux9* | hpux10* | hpux11*) 15211 case $cc_basename in 15212 CC*) 15213 lt_prog_compiler_wl_CXX='-Wl,' 15214 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15215 if test ia64 != "$host_cpu"; then 15216 lt_prog_compiler_pic_CXX='+Z' 15217 fi 15218 ;; 15219 aCC*) 15220 lt_prog_compiler_wl_CXX='-Wl,' 15221 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15222 case $host_cpu in 15223 hppa*64*|ia64*) 15224 # +Z the default 15225 ;; 15226 *) 15227 lt_prog_compiler_pic_CXX='+Z' 15228 ;; 15229 esac 15230 ;; 15231 *) 15232 ;; 15233 esac 15234 ;; 15235 interix*) 15236 # This is c89, which is MS Visual C++ (no shared libs) 15237 # Anyone wants to do a port? 15238 ;; 15239 irix5* | irix6* | nonstopux*) 15240 case $cc_basename in 15241 CC*) 15242 lt_prog_compiler_wl_CXX='-Wl,' 15243 lt_prog_compiler_static_CXX='-non_shared' 15244 # CC pic flag -KPIC is the default. 15245 ;; 15246 *) 15247 ;; 15248 esac 15249 ;; 15250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15251 case $cc_basename in 15252 KCC*) 15253 # KAI C++ Compiler 15254 lt_prog_compiler_wl_CXX='--backend -Wl,' 15255 lt_prog_compiler_pic_CXX='-fPIC' 15256 ;; 15257 ecpc* ) 15258 # old Intel C++ for x86_64, which still supported -KPIC. 15259 lt_prog_compiler_wl_CXX='-Wl,' 15260 lt_prog_compiler_pic_CXX='-KPIC' 15261 lt_prog_compiler_static_CXX='-static' 15262 ;; 15263 icpc* ) 15264 # Intel C++, used to be incompatible with GCC. 15265 # ICC 10 doesn't accept -KPIC any more. 15266 lt_prog_compiler_wl_CXX='-Wl,' 15267 lt_prog_compiler_pic_CXX='-fPIC' 15268 lt_prog_compiler_static_CXX='-static' 15269 ;; 15270 pgCC* | pgcpp*) 15271 # Portland Group C++ compiler 15272 lt_prog_compiler_wl_CXX='-Wl,' 15273 lt_prog_compiler_pic_CXX='-fpic' 15274 lt_prog_compiler_static_CXX='-Bstatic' 15275 ;; 15276 cxx*) 15277 # Compaq C++ 15278 # Make sure the PIC flag is empty. It appears that all Alpha 15279 # Linux and Compaq Tru64 Unix objects are PIC. 15280 lt_prog_compiler_pic_CXX= 15281 lt_prog_compiler_static_CXX='-non_shared' 15282 ;; 15283 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15284 # IBM XL 8.0, 9.0 on PPC and BlueGene 15285 lt_prog_compiler_wl_CXX='-Wl,' 15286 lt_prog_compiler_pic_CXX='-qpic' 15287 lt_prog_compiler_static_CXX='-qstaticlink' 15288 ;; 15289 *) 15290 case `$CC -V 2>&1 | sed 5q` in 15291 *Sun\ C*) 15292 # Sun C++ 5.9 15293 lt_prog_compiler_pic_CXX='-KPIC' 15294 lt_prog_compiler_static_CXX='-Bstatic' 15295 lt_prog_compiler_wl_CXX='-Qoption ld ' 15296 ;; 15297 esac 15298 ;; 15299 esac 15300 ;; 15301 lynxos*) 15302 ;; 15303 m88k*) 15304 ;; 15305 mvs*) 15306 case $cc_basename in 15307 cxx*) 15308 lt_prog_compiler_pic_CXX='-W c,exportall' 15309 ;; 15310 *) 15311 ;; 15312 esac 15313 ;; 15314 netbsd*) 15315 ;; 15316 *qnx* | *nto*) 15317 # QNX uses GNU C++, but need to define -shared option too, otherwise 15318 # it will coredump. 15319 lt_prog_compiler_pic_CXX='-fPIC -shared' 15320 ;; 15321 osf3* | osf4* | osf5*) 15322 case $cc_basename in 15323 KCC*) 15324 lt_prog_compiler_wl_CXX='--backend -Wl,' 15325 ;; 15326 RCC*) 15327 # Rational C++ 2.4.1 15328 lt_prog_compiler_pic_CXX='-pic' 15329 ;; 15330 cxx*) 15331 # Digital/Compaq C++ 15332 lt_prog_compiler_wl_CXX='-Wl,' 15333 # Make sure the PIC flag is empty. It appears that all Alpha 15334 # Linux and Compaq Tru64 Unix objects are PIC. 15335 lt_prog_compiler_pic_CXX= 15336 lt_prog_compiler_static_CXX='-non_shared' 15337 ;; 15338 *) 15339 ;; 15340 esac 15341 ;; 15342 psos*) 15343 ;; 15344 solaris*) 15345 case $cc_basename in 15346 CC* | sunCC*) 15347 # Sun C++ 4.2, 5.x and Centerline C++ 15348 lt_prog_compiler_pic_CXX='-KPIC' 15349 lt_prog_compiler_static_CXX='-Bstatic' 15350 lt_prog_compiler_wl_CXX='-Qoption ld ' 15351 ;; 15352 gcx*) 15353 # Green Hills C++ Compiler 15354 lt_prog_compiler_pic_CXX='-PIC' 15355 ;; 15356 *) 15357 ;; 15358 esac 15359 ;; 15360 sunos4*) 15361 case $cc_basename in 15362 CC*) 15363 # Sun C++ 4.x 15364 lt_prog_compiler_pic_CXX='-pic' 15365 lt_prog_compiler_static_CXX='-Bstatic' 15366 ;; 15367 lcc*) 15368 # Lucid 15369 lt_prog_compiler_pic_CXX='-pic' 15370 ;; 15371 *) 15372 ;; 15373 esac 15374 ;; 15375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15376 case $cc_basename in 15377 CC*) 15378 lt_prog_compiler_wl_CXX='-Wl,' 15379 lt_prog_compiler_pic_CXX='-KPIC' 15380 lt_prog_compiler_static_CXX='-Bstatic' 15381 ;; 15382 esac 15383 ;; 15384 tandem*) 15385 case $cc_basename in 15386 NCC*) 15387 # NonStop-UX NCC 3.20 15388 lt_prog_compiler_pic_CXX='-KPIC' 15389 ;; 15390 *) 15391 ;; 15392 esac 15393 ;; 15394 vxworks*) 15395 ;; 15396 *) 15397 lt_prog_compiler_can_build_shared_CXX=no 15398 ;; 15399 esac 15400 fi 15401 15402case $host_os in 15403 # For platforms that do not support PIC, -DPIC is meaningless: 15404 *djgpp*) 15405 lt_prog_compiler_pic_CXX= 15406 ;; 15407 *) 15408 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15409 ;; 15410esac 15411 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15413$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15414if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15415 $as_echo_n "(cached) " >&6 15416else 15417 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15418fi 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15420$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15421lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15422 15423# 15424# Check to make sure the PIC flag actually works. 15425# 15426if test -n "$lt_prog_compiler_pic_CXX"; then 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15429if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15430 $as_echo_n "(cached) " >&6 15431else 15432 lt_cv_prog_compiler_pic_works_CXX=no 15433 ac_outfile=conftest.$ac_objext 15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15436 # Insert the option either (1) after the last *FLAGS variable, or 15437 # (2) before a word containing "conftest.", or (3) at the end. 15438 # Note that $ac_compile itself does not contain backslashes and begins 15439 # with a dollar sign (not a hyphen), so the echo should work correctly. 15440 # The option is referenced via a variable to avoid confusing sed. 15441 lt_compile=`echo "$ac_compile" | $SED \ 15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15444 -e 's:$: $lt_compiler_flag:'` 15445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15446 (eval "$lt_compile" 2>conftest.err) 15447 ac_status=$? 15448 cat conftest.err >&5 15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15450 if (exit $ac_status) && test -s "$ac_outfile"; then 15451 # The compiler can only warn and ignore the option if not recognized 15452 # So say no if there are warnings other than the usual output. 15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15456 lt_cv_prog_compiler_pic_works_CXX=yes 15457 fi 15458 fi 15459 $RM conftest* 15460 15461fi 15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15463$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15464 15465if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15466 case $lt_prog_compiler_pic_CXX in 15467 "" | " "*) ;; 15468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15469 esac 15470else 15471 lt_prog_compiler_pic_CXX= 15472 lt_prog_compiler_can_build_shared_CXX=no 15473fi 15474 15475fi 15476 15477 15478 15479 15480 15481# 15482# Check to make sure the static flag actually works. 15483# 15484wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15486$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15487if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15488 $as_echo_n "(cached) " >&6 15489else 15490 lt_cv_prog_compiler_static_works_CXX=no 15491 save_LDFLAGS=$LDFLAGS 15492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15493 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15495 # The linker can only warn and ignore the option if not recognized 15496 # So say no if there are warnings 15497 if test -s conftest.err; then 15498 # Append any errors to the config.log. 15499 cat conftest.err 1>&5 15500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15502 if diff conftest.exp conftest.er2 >/dev/null; then 15503 lt_cv_prog_compiler_static_works_CXX=yes 15504 fi 15505 else 15506 lt_cv_prog_compiler_static_works_CXX=yes 15507 fi 15508 fi 15509 $RM -r conftest* 15510 LDFLAGS=$save_LDFLAGS 15511 15512fi 15513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15514$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15515 15516if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15517 : 15518else 15519 lt_prog_compiler_static_CXX= 15520fi 15521 15522 15523 15524 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15527if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 lt_cv_prog_compiler_c_o_CXX=no 15531 $RM -r conftest 2>/dev/null 15532 mkdir conftest 15533 cd conftest 15534 mkdir out 15535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15536 15537 lt_compiler_flag="-o out/conftest2.$ac_objext" 15538 # Insert the option either (1) after the last *FLAGS variable, or 15539 # (2) before a word containing "conftest.", or (3) at the end. 15540 # Note that $ac_compile itself does not contain backslashes and begins 15541 # with a dollar sign (not a hyphen), so the echo should work correctly. 15542 lt_compile=`echo "$ac_compile" | $SED \ 15543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15545 -e 's:$: $lt_compiler_flag:'` 15546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15547 (eval "$lt_compile" 2>out/conftest.err) 15548 ac_status=$? 15549 cat out/conftest.err >&5 15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15551 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15552 then 15553 # The compiler can only warn and ignore the option if not recognized 15554 # So say no if there are warnings 15555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15558 lt_cv_prog_compiler_c_o_CXX=yes 15559 fi 15560 fi 15561 chmod u+w . 2>&5 15562 $RM conftest* 15563 # SGI C++ compiler will create directory out/ii_files/ for 15564 # template instantiation 15565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15566 $RM out/* && rmdir out 15567 cd .. 15568 $RM -r conftest 15569 $RM conftest* 15570 15571fi 15572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15573$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15574 15575 15576 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15579if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15580 $as_echo_n "(cached) " >&6 15581else 15582 lt_cv_prog_compiler_c_o_CXX=no 15583 $RM -r conftest 2>/dev/null 15584 mkdir conftest 15585 cd conftest 15586 mkdir out 15587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15588 15589 lt_compiler_flag="-o out/conftest2.$ac_objext" 15590 # Insert the option either (1) after the last *FLAGS variable, or 15591 # (2) before a word containing "conftest.", or (3) at the end. 15592 # Note that $ac_compile itself does not contain backslashes and begins 15593 # with a dollar sign (not a hyphen), so the echo should work correctly. 15594 lt_compile=`echo "$ac_compile" | $SED \ 15595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15597 -e 's:$: $lt_compiler_flag:'` 15598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15599 (eval "$lt_compile" 2>out/conftest.err) 15600 ac_status=$? 15601 cat out/conftest.err >&5 15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15603 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15604 then 15605 # The compiler can only warn and ignore the option if not recognized 15606 # So say no if there are warnings 15607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15610 lt_cv_prog_compiler_c_o_CXX=yes 15611 fi 15612 fi 15613 chmod u+w . 2>&5 15614 $RM conftest* 15615 # SGI C++ compiler will create directory out/ii_files/ for 15616 # template instantiation 15617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15618 $RM out/* && rmdir out 15619 cd .. 15620 $RM -r conftest 15621 $RM conftest* 15622 15623fi 15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15625$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15626 15627 15628 15629 15630hard_links=nottested 15631if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15632 # do not overwrite the value of need_locks provided by the user 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15634$as_echo_n "checking if we can lock with hard links... " >&6; } 15635 hard_links=yes 15636 $RM conftest* 15637 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15638 touch conftest.a 15639 ln conftest.a conftest.b 2>&5 || hard_links=no 15640 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15642$as_echo "$hard_links" >&6; } 15643 if test no = "$hard_links"; then 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15645$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15646 need_locks=warn 15647 fi 15648else 15649 need_locks=no 15650fi 15651 15652 15653 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15655$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15656 15657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15658 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15659 case $host_os in 15660 aix[4-9]*) 15661 # If we're using GNU nm, then we don't want the "-C" option. 15662 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15663 # Without the "-l" option, or with the "-B" option, AIX nm treats 15664 # weak defined symbols like other global defined symbols, whereas 15665 # GNU nm marks them as "W". 15666 # While the 'weak' keyword is ignored in the Export File, we need 15667 # it in the Import File for the 'aix-soname' feature, so we have 15668 # to replace the "-B" option with "-P" for AIX nm. 15669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15670 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' 15671 else 15672 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' 15673 fi 15674 ;; 15675 pw32*) 15676 export_symbols_cmds_CXX=$ltdll_cmds 15677 ;; 15678 cygwin* | mingw* | cegcc*) 15679 case $cc_basename in 15680 cl*) 15681 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15682 ;; 15683 *) 15684 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' 15685 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15686 ;; 15687 esac 15688 ;; 15689 *) 15690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15691 ;; 15692 esac 15693 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15695$as_echo "$ld_shlibs_CXX" >&6; } 15696test no = "$ld_shlibs_CXX" && can_build_shared=no 15697 15698with_gnu_ld_CXX=$with_gnu_ld 15699 15700 15701 15702 15703 15704 15705# 15706# Do we need to explicitly link libc? 15707# 15708case "x$archive_cmds_need_lc_CXX" in 15709x|xyes) 15710 # Assume -lc should be added 15711 archive_cmds_need_lc_CXX=yes 15712 15713 if test yes,yes = "$GCC,$enable_shared"; then 15714 case $archive_cmds_CXX in 15715 *'~'*) 15716 # FIXME: we may have to deal with multi-command sequences. 15717 ;; 15718 '$CC '*) 15719 # Test whether the compiler implicitly links with -lc since on some 15720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15721 # to ld, don't add -lc before -lgcc. 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15723$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15724if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15725 $as_echo_n "(cached) " >&6 15726else 15727 $RM conftest* 15728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15729 15730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15731 (eval $ac_compile) 2>&5 15732 ac_status=$? 15733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15734 test $ac_status = 0; } 2>conftest.err; then 15735 soname=conftest 15736 lib=conftest 15737 libobjs=conftest.$ac_objext 15738 deplibs= 15739 wl=$lt_prog_compiler_wl_CXX 15740 pic_flag=$lt_prog_compiler_pic_CXX 15741 compiler_flags=-v 15742 linker_flags=-v 15743 verstring= 15744 output_objdir=. 15745 libname=conftest 15746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15747 allow_undefined_flag_CXX= 15748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15749 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15750 ac_status=$? 15751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15752 test $ac_status = 0; } 15753 then 15754 lt_cv_archive_cmds_need_lc_CXX=no 15755 else 15756 lt_cv_archive_cmds_need_lc_CXX=yes 15757 fi 15758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15759 else 15760 cat conftest.err 1>&5 15761 fi 15762 $RM conftest* 15763 15764fi 15765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15766$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15767 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15768 ;; 15769 esac 15770 fi 15771 ;; 15772esac 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15836$as_echo_n "checking dynamic linker characteristics... " >&6; } 15837 15838library_names_spec= 15839libname_spec='lib$name' 15840soname_spec= 15841shrext_cmds=.so 15842postinstall_cmds= 15843postuninstall_cmds= 15844finish_cmds= 15845finish_eval= 15846shlibpath_var= 15847shlibpath_overrides_runpath=unknown 15848version_type=none 15849dynamic_linker="$host_os ld.so" 15850sys_lib_dlsearch_path_spec="/lib /usr/lib" 15851need_lib_prefix=unknown 15852hardcode_into_libs=no 15853 15854# when you set need_version to no, make sure it does not cause -set_version 15855# flags to be left without arguments 15856need_version=unknown 15857 15858case $host_os in 15859aix3*) 15860 version_type=linux # correct to gnu/linux during the next big refactor 15861 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15862 shlibpath_var=LIBPATH 15863 15864 # AIX 3 has no versioning support, so we append a major version to the name. 15865 soname_spec='$libname$release$shared_ext$major' 15866 ;; 15867 15868aix[4-9]*) 15869 version_type=linux # correct to gnu/linux during the next big refactor 15870 need_lib_prefix=no 15871 need_version=no 15872 hardcode_into_libs=yes 15873 if test ia64 = "$host_cpu"; then 15874 # AIX 5 supports IA64 15875 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15876 shlibpath_var=LD_LIBRARY_PATH 15877 else 15878 # With GCC up to 2.95.x, collect2 would create an import file 15879 # for dependence libraries. The import file would start with 15880 # the line '#! .'. This would cause the generated library to 15881 # depend on '.', always an invalid library. This was fixed in 15882 # development snapshots of GCC prior to 3.0. 15883 case $host_os in 15884 aix4 | aix4.[01] | aix4.[01].*) 15885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15886 echo ' yes ' 15887 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15888 : 15889 else 15890 can_build_shared=no 15891 fi 15892 ;; 15893 esac 15894 # Using Import Files as archive members, it is possible to support 15895 # filename-based versioning of shared library archives on AIX. While 15896 # this would work for both with and without runtime linking, it will 15897 # prevent static linking of such archives. So we do filename-based 15898 # shared library versioning with .so extension only, which is used 15899 # when both runtime linking and shared linking is enabled. 15900 # Unfortunately, runtime linking may impact performance, so we do 15901 # not want this to be the default eventually. Also, we use the 15902 # versioned .so libs for executables only if there is the -brtl 15903 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15904 # To allow for filename-based versioning support, we need to create 15905 # libNAME.so.V as an archive file, containing: 15906 # *) an Import File, referring to the versioned filename of the 15907 # archive as well as the shared archive member, telling the 15908 # bitwidth (32 or 64) of that shared object, and providing the 15909 # list of exported symbols of that shared object, eventually 15910 # decorated with the 'weak' keyword 15911 # *) the shared object with the F_LOADONLY flag set, to really avoid 15912 # it being seen by the linker. 15913 # At run time we better use the real file rather than another symlink, 15914 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15915 15916 case $with_aix_soname,$aix_use_runtimelinking in 15917 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15918 # soname into executable. Probably we can add versioning support to 15919 # collect2, so additional links can be useful in future. 15920 aix,yes) # traditional libtool 15921 dynamic_linker='AIX unversionable lib.so' 15922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15923 # instead of lib<name>.a to let people know that these are not 15924 # typical AIX shared libraries. 15925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15926 ;; 15927 aix,no) # traditional AIX only 15928 dynamic_linker='AIX lib.a(lib.so.V)' 15929 # We preserve .a as extension for shared libraries through AIX4.2 15930 # and later when we are not doing run time linking. 15931 library_names_spec='$libname$release.a $libname.a' 15932 soname_spec='$libname$release$shared_ext$major' 15933 ;; 15934 svr4,*) # full svr4 only 15935 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15936 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15937 # We do not specify a path in Import Files, so LIBPATH fires. 15938 shlibpath_overrides_runpath=yes 15939 ;; 15940 *,yes) # both, prefer svr4 15941 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15942 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15943 # unpreferred sharedlib libNAME.a needs extra handling 15944 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"' 15945 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"' 15946 # We do not specify a path in Import Files, so LIBPATH fires. 15947 shlibpath_overrides_runpath=yes 15948 ;; 15949 *,no) # both, prefer aix 15950 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15951 library_names_spec='$libname$release.a $libname.a' 15952 soname_spec='$libname$release$shared_ext$major' 15953 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15954 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)' 15955 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"' 15956 ;; 15957 esac 15958 shlibpath_var=LIBPATH 15959 fi 15960 ;; 15961 15962amigaos*) 15963 case $host_cpu in 15964 powerpc) 15965 # Since July 2007 AmigaOS4 officially supports .so libraries. 15966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15968 ;; 15969 m68k) 15970 library_names_spec='$libname.ixlibrary $libname.a' 15971 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15972 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' 15973 ;; 15974 esac 15975 ;; 15976 15977beos*) 15978 library_names_spec='$libname$shared_ext' 15979 dynamic_linker="$host_os ld.so" 15980 shlibpath_var=LIBRARY_PATH 15981 ;; 15982 15983bsdi[45]*) 15984 version_type=linux # correct to gnu/linux during the next big refactor 15985 need_version=no 15986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15987 soname_spec='$libname$release$shared_ext$major' 15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15989 shlibpath_var=LD_LIBRARY_PATH 15990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15992 # the default ld.so.conf also contains /usr/contrib/lib and 15993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15994 # libtool to hard-code these into programs 15995 ;; 15996 15997cygwin* | mingw* | pw32* | cegcc*) 15998 version_type=windows 15999 shrext_cmds=.dll 16000 need_version=no 16001 need_lib_prefix=no 16002 16003 case $GCC,$cc_basename in 16004 yes,*) 16005 # gcc 16006 library_names_spec='$libname.dll.a' 16007 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16008 postinstall_cmds='base_file=`basename \$file`~ 16009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16010 dldir=$destdir/`dirname \$dlpath`~ 16011 test -d \$dldir || mkdir -p \$dldir~ 16012 $install_prog $dir/$dlname \$dldir/$dlname~ 16013 chmod a+x \$dldir/$dlname~ 16014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16016 fi' 16017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16018 dlpath=$dir/\$dldll~ 16019 $RM \$dlpath' 16020 shlibpath_overrides_runpath=yes 16021 16022 case $host_os in 16023 cygwin*) 16024 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16025 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16026 16027 ;; 16028 mingw* | cegcc*) 16029 # MinGW DLLs use traditional 'lib' prefix 16030 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16031 ;; 16032 pw32*) 16033 # pw32 DLLs use 'pw' prefix rather than 'lib' 16034 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16035 ;; 16036 esac 16037 dynamic_linker='Win32 ld.exe' 16038 ;; 16039 16040 *,cl*) 16041 # Native MSVC 16042 libname_spec='$name' 16043 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16044 library_names_spec='$libname.dll.lib' 16045 16046 case $build_os in 16047 mingw*) 16048 sys_lib_search_path_spec= 16049 lt_save_ifs=$IFS 16050 IFS=';' 16051 for lt_path in $LIB 16052 do 16053 IFS=$lt_save_ifs 16054 # Let DOS variable expansion print the short 8.3 style file name. 16055 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16056 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16057 done 16058 IFS=$lt_save_ifs 16059 # Convert to MSYS style. 16060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16061 ;; 16062 cygwin*) 16063 # Convert to unix form, then to dos form, then back to unix form 16064 # but this time dos style (no spaces!) so that the unix form looks 16065 # like /cygdrive/c/PROGRA~1:/cygdr... 16066 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16067 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16068 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16069 ;; 16070 *) 16071 sys_lib_search_path_spec=$LIB 16072 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16073 # It is most probably a Windows format PATH. 16074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16075 else 16076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16077 fi 16078 # FIXME: find the short name or the path components, as spaces are 16079 # common. (e.g. "Program Files" -> "PROGRA~1") 16080 ;; 16081 esac 16082 16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16084 postinstall_cmds='base_file=`basename \$file`~ 16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16086 dldir=$destdir/`dirname \$dlpath`~ 16087 test -d \$dldir || mkdir -p \$dldir~ 16088 $install_prog $dir/$dlname \$dldir/$dlname' 16089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16090 dlpath=$dir/\$dldll~ 16091 $RM \$dlpath' 16092 shlibpath_overrides_runpath=yes 16093 dynamic_linker='Win32 link.exe' 16094 ;; 16095 16096 *) 16097 # Assume MSVC wrapper 16098 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16099 dynamic_linker='Win32 ld.exe' 16100 ;; 16101 esac 16102 # FIXME: first we should search . and the directory the executable is in 16103 shlibpath_var=PATH 16104 ;; 16105 16106darwin* | rhapsody*) 16107 dynamic_linker="$host_os dyld" 16108 version_type=darwin 16109 need_lib_prefix=no 16110 need_version=no 16111 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16112 soname_spec='$libname$release$major$shared_ext' 16113 shlibpath_overrides_runpath=yes 16114 shlibpath_var=DYLD_LIBRARY_PATH 16115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16116 16117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16118 ;; 16119 16120dgux*) 16121 version_type=linux # correct to gnu/linux during the next big refactor 16122 need_lib_prefix=no 16123 need_version=no 16124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16125 soname_spec='$libname$release$shared_ext$major' 16126 shlibpath_var=LD_LIBRARY_PATH 16127 ;; 16128 16129freebsd* | dragonfly*) 16130 # DragonFly does not have aout. When/if they implement a new 16131 # versioning mechanism, adjust this. 16132 if test -x /usr/bin/objformat; then 16133 objformat=`/usr/bin/objformat` 16134 else 16135 case $host_os in 16136 freebsd[23].*) objformat=aout ;; 16137 *) objformat=elf ;; 16138 esac 16139 fi 16140 version_type=freebsd-$objformat 16141 case $version_type in 16142 freebsd-elf*) 16143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16144 need_version=no 16145 need_lib_prefix=no 16146 ;; 16147 freebsd-*) 16148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16149 need_version=yes 16150 ;; 16151 esac 16152 shlibpath_var=LD_LIBRARY_PATH 16153 case $host_os in 16154 freebsd2.*) 16155 shlibpath_overrides_runpath=yes 16156 ;; 16157 freebsd3.[01]* | freebsdelf3.[01]*) 16158 shlibpath_overrides_runpath=yes 16159 hardcode_into_libs=yes 16160 ;; 16161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16163 shlibpath_overrides_runpath=no 16164 hardcode_into_libs=yes 16165 ;; 16166 *) # from 4.6 on, and DragonFly 16167 shlibpath_overrides_runpath=yes 16168 hardcode_into_libs=yes 16169 ;; 16170 esac 16171 ;; 16172 16173haiku*) 16174 version_type=linux # correct to gnu/linux during the next big refactor 16175 need_lib_prefix=no 16176 need_version=no 16177 dynamic_linker="$host_os runtime_loader" 16178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16179 soname_spec='$libname$release$shared_ext$major' 16180 shlibpath_var=LIBRARY_PATH 16181 shlibpath_overrides_runpath=no 16182 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16183 hardcode_into_libs=yes 16184 ;; 16185 16186hpux9* | hpux10* | hpux11*) 16187 # Give a soname corresponding to the major version so that dld.sl refuses to 16188 # link against other versions. 16189 version_type=sunos 16190 need_lib_prefix=no 16191 need_version=no 16192 case $host_cpu in 16193 ia64*) 16194 shrext_cmds='.so' 16195 hardcode_into_libs=yes 16196 dynamic_linker="$host_os dld.so" 16197 shlibpath_var=LD_LIBRARY_PATH 16198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16200 soname_spec='$libname$release$shared_ext$major' 16201 if test 32 = "$HPUX_IA64_MODE"; then 16202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16203 else 16204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16205 fi 16206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16207 ;; 16208 hppa*64*) 16209 shrext_cmds='.sl' 16210 hardcode_into_libs=yes 16211 dynamic_linker="$host_os dld.sl" 16212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16215 soname_spec='$libname$release$shared_ext$major' 16216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16218 ;; 16219 *) 16220 shrext_cmds='.sl' 16221 dynamic_linker="$host_os dld.sl" 16222 shlibpath_var=SHLIB_PATH 16223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16225 soname_spec='$libname$release$shared_ext$major' 16226 ;; 16227 esac 16228 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16229 postinstall_cmds='chmod 555 $lib' 16230 # or fails outright, so override atomically: 16231 install_override_mode=555 16232 ;; 16233 16234interix[3-9]*) 16235 version_type=linux # correct to gnu/linux during the next big refactor 16236 need_lib_prefix=no 16237 need_version=no 16238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16239 soname_spec='$libname$release$shared_ext$major' 16240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16241 shlibpath_var=LD_LIBRARY_PATH 16242 shlibpath_overrides_runpath=no 16243 hardcode_into_libs=yes 16244 ;; 16245 16246irix5* | irix6* | nonstopux*) 16247 case $host_os in 16248 nonstopux*) version_type=nonstopux ;; 16249 *) 16250 if test yes = "$lt_cv_prog_gnu_ld"; then 16251 version_type=linux # correct to gnu/linux during the next big refactor 16252 else 16253 version_type=irix 16254 fi ;; 16255 esac 16256 need_lib_prefix=no 16257 need_version=no 16258 soname_spec='$libname$release$shared_ext$major' 16259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16260 case $host_os in 16261 irix5* | nonstopux*) 16262 libsuff= shlibsuff= 16263 ;; 16264 *) 16265 case $LD in # libtool.m4 will add one of these switches to LD 16266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16267 libsuff= shlibsuff= libmagic=32-bit;; 16268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16269 libsuff=32 shlibsuff=N32 libmagic=N32;; 16270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16271 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16272 *) libsuff= shlibsuff= libmagic=never-match;; 16273 esac 16274 ;; 16275 esac 16276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16277 shlibpath_overrides_runpath=no 16278 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16279 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16280 hardcode_into_libs=yes 16281 ;; 16282 16283# No shared lib support for Linux oldld, aout, or coff. 16284linux*oldld* | linux*aout* | linux*coff*) 16285 dynamic_linker=no 16286 ;; 16287 16288linux*android*) 16289 version_type=none # Android doesn't support versioned libraries. 16290 need_lib_prefix=no 16291 need_version=no 16292 library_names_spec='$libname$release$shared_ext' 16293 soname_spec='$libname$release$shared_ext' 16294 finish_cmds= 16295 shlibpath_var=LD_LIBRARY_PATH 16296 shlibpath_overrides_runpath=yes 16297 16298 # This implies no fast_install, which is unacceptable. 16299 # Some rework will be needed to allow for fast_install 16300 # before this can be enabled. 16301 hardcode_into_libs=yes 16302 16303 dynamic_linker='Android linker' 16304 # Don't embed -rpath directories since the linker doesn't support them. 16305 hardcode_libdir_flag_spec_CXX='-L$libdir' 16306 ;; 16307 16308# This must be glibc/ELF. 16309linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16310 version_type=linux # correct to gnu/linux during the next big refactor 16311 need_lib_prefix=no 16312 need_version=no 16313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16314 soname_spec='$libname$release$shared_ext$major' 16315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16316 shlibpath_var=LD_LIBRARY_PATH 16317 shlibpath_overrides_runpath=no 16318 16319 # Some binutils ld are patched to set DT_RUNPATH 16320 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 lt_cv_shlibpath_overrides_runpath=no 16324 save_LDFLAGS=$LDFLAGS 16325 save_libdir=$libdir 16326 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16327 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16329/* end confdefs.h. */ 16330 16331int 16332main () 16333{ 16334 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_cxx_try_link "$LINENO"; then : 16340 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16341 lt_cv_shlibpath_overrides_runpath=yes 16342fi 16343fi 16344rm -f core conftest.err conftest.$ac_objext \ 16345 conftest$ac_exeext conftest.$ac_ext 16346 LDFLAGS=$save_LDFLAGS 16347 libdir=$save_libdir 16348 16349fi 16350 16351 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16352 16353 # This implies no fast_install, which is unacceptable. 16354 # Some rework will be needed to allow for fast_install 16355 # before this can be enabled. 16356 hardcode_into_libs=yes 16357 16358 # Append ld.so.conf contents to the search path 16359 if test -f /etc/ld.so.conf; then 16360 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' ' '` 16361 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16362 fi 16363 16364 # We used to test for /lib/ld.so.1 and disable shared libraries on 16365 # powerpc, because MkLinux only supported shared libraries with the 16366 # GNU dynamic linker. Since this was broken with cross compilers, 16367 # most powerpc-linux boxes support dynamic linking these days and 16368 # people can always --disable-shared, the test was removed, and we 16369 # assume the GNU/Linux dynamic linker is in use. 16370 dynamic_linker='GNU/Linux ld.so' 16371 ;; 16372 16373netbsd*) 16374 version_type=sunos 16375 need_lib_prefix=no 16376 need_version=no 16377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16378 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16380 dynamic_linker='NetBSD (a.out) ld.so' 16381 else 16382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16383 soname_spec='$libname$release$shared_ext$major' 16384 dynamic_linker='NetBSD ld.elf_so' 16385 fi 16386 shlibpath_var=LD_LIBRARY_PATH 16387 shlibpath_overrides_runpath=yes 16388 hardcode_into_libs=yes 16389 ;; 16390 16391newsos6) 16392 version_type=linux # correct to gnu/linux during the next big refactor 16393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16394 shlibpath_var=LD_LIBRARY_PATH 16395 shlibpath_overrides_runpath=yes 16396 ;; 16397 16398*nto* | *qnx*) 16399 version_type=qnx 16400 need_lib_prefix=no 16401 need_version=no 16402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16403 soname_spec='$libname$release$shared_ext$major' 16404 shlibpath_var=LD_LIBRARY_PATH 16405 shlibpath_overrides_runpath=no 16406 hardcode_into_libs=yes 16407 dynamic_linker='ldqnx.so' 16408 ;; 16409 16410openbsd* | bitrig*) 16411 version_type=sunos 16412 sys_lib_dlsearch_path_spec=/usr/lib 16413 need_lib_prefix=no 16414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16415 need_version=no 16416 else 16417 need_version=yes 16418 fi 16419 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16421 shlibpath_var=LD_LIBRARY_PATH 16422 shlibpath_overrides_runpath=yes 16423 ;; 16424 16425os2*) 16426 libname_spec='$name' 16427 version_type=windows 16428 shrext_cmds=.dll 16429 need_version=no 16430 need_lib_prefix=no 16431 # OS/2 can only load a DLL with a base name of 8 characters or less. 16432 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16433 v=$($ECHO $release$versuffix | tr -d .-); 16434 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16435 $ECHO $n$v`$shared_ext' 16436 library_names_spec='${libname}_dll.$libext' 16437 dynamic_linker='OS/2 ld.exe' 16438 shlibpath_var=BEGINLIBPATH 16439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16441 postinstall_cmds='base_file=`basename \$file`~ 16442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16443 dldir=$destdir/`dirname \$dlpath`~ 16444 test -d \$dldir || mkdir -p \$dldir~ 16445 $install_prog $dir/$dlname \$dldir/$dlname~ 16446 chmod a+x \$dldir/$dlname~ 16447 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16448 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16449 fi' 16450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16451 dlpath=$dir/\$dldll~ 16452 $RM \$dlpath' 16453 ;; 16454 16455osf3* | osf4* | osf5*) 16456 version_type=osf 16457 need_lib_prefix=no 16458 need_version=no 16459 soname_spec='$libname$release$shared_ext$major' 16460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16461 shlibpath_var=LD_LIBRARY_PATH 16462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16464 ;; 16465 16466rdos*) 16467 dynamic_linker=no 16468 ;; 16469 16470solaris*) 16471 version_type=linux # correct to gnu/linux during the next big refactor 16472 need_lib_prefix=no 16473 need_version=no 16474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16475 soname_spec='$libname$release$shared_ext$major' 16476 shlibpath_var=LD_LIBRARY_PATH 16477 shlibpath_overrides_runpath=yes 16478 hardcode_into_libs=yes 16479 # ldd complains unless libraries are executable 16480 postinstall_cmds='chmod +x $lib' 16481 ;; 16482 16483sunos4*) 16484 version_type=sunos 16485 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16487 shlibpath_var=LD_LIBRARY_PATH 16488 shlibpath_overrides_runpath=yes 16489 if test yes = "$with_gnu_ld"; then 16490 need_lib_prefix=no 16491 fi 16492 need_version=yes 16493 ;; 16494 16495sysv4 | sysv4.3*) 16496 version_type=linux # correct to gnu/linux during the next big refactor 16497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16498 soname_spec='$libname$release$shared_ext$major' 16499 shlibpath_var=LD_LIBRARY_PATH 16500 case $host_vendor in 16501 sni) 16502 shlibpath_overrides_runpath=no 16503 need_lib_prefix=no 16504 runpath_var=LD_RUN_PATH 16505 ;; 16506 siemens) 16507 need_lib_prefix=no 16508 ;; 16509 motorola) 16510 need_lib_prefix=no 16511 need_version=no 16512 shlibpath_overrides_runpath=no 16513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16514 ;; 16515 esac 16516 ;; 16517 16518sysv4*MP*) 16519 if test -d /usr/nec; then 16520 version_type=linux # correct to gnu/linux during the next big refactor 16521 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16522 soname_spec='$libname$shared_ext.$major' 16523 shlibpath_var=LD_LIBRARY_PATH 16524 fi 16525 ;; 16526 16527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16528 version_type=sco 16529 need_lib_prefix=no 16530 need_version=no 16531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16532 soname_spec='$libname$release$shared_ext$major' 16533 shlibpath_var=LD_LIBRARY_PATH 16534 shlibpath_overrides_runpath=yes 16535 hardcode_into_libs=yes 16536 if test yes = "$with_gnu_ld"; then 16537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16538 else 16539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16540 case $host_os in 16541 sco3.2v5*) 16542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16543 ;; 16544 esac 16545 fi 16546 sys_lib_dlsearch_path_spec='/usr/lib' 16547 ;; 16548 16549tpf*) 16550 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16551 version_type=linux # correct to gnu/linux during the next big refactor 16552 need_lib_prefix=no 16553 need_version=no 16554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16555 shlibpath_var=LD_LIBRARY_PATH 16556 shlibpath_overrides_runpath=no 16557 hardcode_into_libs=yes 16558 ;; 16559 16560uts4*) 16561 version_type=linux # correct to gnu/linux during the next big refactor 16562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16563 soname_spec='$libname$release$shared_ext$major' 16564 shlibpath_var=LD_LIBRARY_PATH 16565 ;; 16566 16567*) 16568 dynamic_linker=no 16569 ;; 16570esac 16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16572$as_echo "$dynamic_linker" >&6; } 16573test no = "$dynamic_linker" && can_build_shared=no 16574 16575variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16576if test yes = "$GCC"; then 16577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16578fi 16579 16580if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16581 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16582fi 16583if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16584 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16585fi 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16625$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16626hardcode_action_CXX= 16627if test -n "$hardcode_libdir_flag_spec_CXX" || 16628 test -n "$runpath_var_CXX" || 16629 test yes = "$hardcode_automatic_CXX"; then 16630 16631 # We can hardcode non-existent directories. 16632 if test no != "$hardcode_direct_CXX" && 16633 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16634 # have to relink, otherwise we might link with an installed library 16635 # when we should be linking with a yet-to-be-installed one 16636 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16637 test no != "$hardcode_minus_L_CXX"; then 16638 # Linking always hardcodes the temporary library directory. 16639 hardcode_action_CXX=relink 16640 else 16641 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16642 hardcode_action_CXX=immediate 16643 fi 16644else 16645 # We cannot hardcode anything, or else we can only hardcode existing 16646 # directories. 16647 hardcode_action_CXX=unsupported 16648fi 16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16650$as_echo "$hardcode_action_CXX" >&6; } 16651 16652if test relink = "$hardcode_action_CXX" || 16653 test yes = "$inherit_rpath_CXX"; then 16654 # Fast installation is not supported 16655 enable_fast_install=no 16656elif test yes = "$shlibpath_overrides_runpath" || 16657 test no = "$enable_shared"; then 16658 # Fast installation is not necessary 16659 enable_fast_install=needless 16660fi 16661 16662 16663 16664 16665 16666 16667 16668 fi # test -n "$compiler" 16669 16670 CC=$lt_save_CC 16671 CFLAGS=$lt_save_CFLAGS 16672 LDCXX=$LD 16673 LD=$lt_save_LD 16674 GCC=$lt_save_GCC 16675 with_gnu_ld=$lt_save_with_gnu_ld 16676 lt_cv_path_LDCXX=$lt_cv_path_LD 16677 lt_cv_path_LD=$lt_save_path_LD 16678 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16679 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16680fi # test yes != "$_lt_caught_CXX_error" 16681 16682ac_ext=c 16683ac_cpp='$CPP $CPPFLAGS' 16684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16686ac_compiler_gnu=$ac_cv_c_compiler_gnu 16687 16688 16689 16690# Enable support for silent build rules 16691# Check whether --enable-silent-rules was given. 16692if test "${enable_silent_rules+set}" = set; then : 16693 enableval=$enable_silent_rules; 16694fi 16695 16696case $enable_silent_rules in # ((( 16697 yes) AM_DEFAULT_VERBOSITY=0;; 16698 no) AM_DEFAULT_VERBOSITY=1;; 16699 *) AM_DEFAULT_VERBOSITY=1;; 16700esac 16701am_make=${MAKE-make} 16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16703$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16704if ${am_cv_make_support_nested_variables+:} false; then : 16705 $as_echo_n "(cached) " >&6 16706else 16707 if $as_echo 'TRUE=$(BAR$(V)) 16708BAR0=false 16709BAR1=true 16710V=1 16711am__doit: 16712 @$(TRUE) 16713.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16714 am_cv_make_support_nested_variables=yes 16715else 16716 am_cv_make_support_nested_variables=no 16717fi 16718fi 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16720$as_echo "$am_cv_make_support_nested_variables" >&6; } 16721if test $am_cv_make_support_nested_variables = yes; then 16722 AM_V='$(V)' 16723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16724else 16725 AM_V=$AM_DEFAULT_VERBOSITY 16726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16727fi 16728AM_BACKSLASH='\' 16729 16730 16731tiff_libs_private= 16732 16733 16734case "${host_os}" in 16735 cygwin* | mingw32* | beos* | darwin*) 16736 ;; 16737 *) 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16739$as_echo_n "checking for sin in -lm... " >&6; } 16740if ${ac_cv_lib_m_sin+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 ac_check_lib_save_LIBS=$LIBS 16744LIBS="-lm $LIBS" 16745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747 16748/* Override any GCC internal prototype to avoid an error. 16749 Use char because int might match the return type of a GCC 16750 builtin and then its argument prototype would still apply. */ 16751#ifdef __cplusplus 16752extern "C" 16753#endif 16754char sin (); 16755int 16756main () 16757{ 16758return sin (); 16759 ; 16760 return 0; 16761} 16762_ACEOF 16763if ac_fn_c_try_link "$LINENO"; then : 16764 ac_cv_lib_m_sin=yes 16765else 16766 ac_cv_lib_m_sin=no 16767fi 16768rm -f core conftest.err conftest.$ac_objext \ 16769 conftest$ac_exeext conftest.$ac_ext 16770LIBS=$ac_check_lib_save_LIBS 16771fi 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16773$as_echo "$ac_cv_lib_m_sin" >&6; } 16774if test "x$ac_cv_lib_m_sin" = xyes; then : 16775 libm_lib=yes 16776else 16777 libm_lib=no 16778fi 16779 16780 if test "x$libm_lib" = "xyes" ; then 16781 LIBS="-lm $LIBS" 16782 tiff_libs_private="-lm ${tiff_libs_private}" 16783 fi 16784 ;; 16785esac 16786 16787for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16788do : 16789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16792 cat >>confdefs.h <<_ACEOF 16793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16794_ACEOF 16795 16796fi 16797 16798done 16799 16800 16801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16802$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16803if ${ac_cv_c_const+:} false; then : 16804 $as_echo_n "(cached) " >&6 16805else 16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16807/* end confdefs.h. */ 16808 16809int 16810main () 16811{ 16812 16813#ifndef __cplusplus 16814 /* Ultrix mips cc rejects this sort of thing. */ 16815 typedef int charset[2]; 16816 const charset cs = { 0, 0 }; 16817 /* SunOS 4.1.1 cc rejects this. */ 16818 char const *const *pcpcc; 16819 char **ppc; 16820 /* NEC SVR4.0.2 mips cc rejects this. */ 16821 struct point {int x, y;}; 16822 static struct point const zero = {0,0}; 16823 /* AIX XL C 1.02.0.0 rejects this. 16824 It does not let you subtract one const X* pointer from another in 16825 an arm of an if-expression whose if-part is not a constant 16826 expression */ 16827 const char *g = "string"; 16828 pcpcc = &g + (g ? g-g : 0); 16829 /* HPUX 7.0 cc rejects these. */ 16830 ++pcpcc; 16831 ppc = (char**) pcpcc; 16832 pcpcc = (char const *const *) ppc; 16833 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16834 char tx; 16835 char *t = &tx; 16836 char const *s = 0 ? (char *) 0 : (char const *) 0; 16837 16838 *t++ = 0; 16839 if (s) return 0; 16840 } 16841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16842 int x[] = {25, 17}; 16843 const int *foo = &x[0]; 16844 ++foo; 16845 } 16846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16847 typedef const int *iptr; 16848 iptr p = 0; 16849 ++p; 16850 } 16851 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16853 struct s { int j; const int *ap[3]; } bx; 16854 struct s *b = &bx; b->j = 5; 16855 } 16856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16857 const int foo = 10; 16858 if (!foo) return 0; 16859 } 16860 return !cs[0] && !zero.x; 16861#endif 16862 16863 ; 16864 return 0; 16865} 16866_ACEOF 16867if ac_fn_c_try_compile "$LINENO"; then : 16868 ac_cv_c_const=yes 16869else 16870 ac_cv_c_const=no 16871fi 16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16873fi 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16875$as_echo "$ac_cv_c_const" >&6; } 16876if test $ac_cv_c_const = no; then 16877 16878$as_echo "#define const /**/" >>confdefs.h 16879 16880fi 16881 16882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16883$as_echo_n "checking for inline... " >&6; } 16884if ${ac_cv_c_inline+:} false; then : 16885 $as_echo_n "(cached) " >&6 16886else 16887 ac_cv_c_inline=no 16888for ac_kw in inline __inline__ __inline; do 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890/* end confdefs.h. */ 16891#ifndef __cplusplus 16892typedef int foo_t; 16893static $ac_kw foo_t static_foo () {return 0; } 16894$ac_kw foo_t foo () {return 0; } 16895#endif 16896 16897_ACEOF 16898if ac_fn_c_try_compile "$LINENO"; then : 16899 ac_cv_c_inline=$ac_kw 16900fi 16901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16902 test "$ac_cv_c_inline" != no && break 16903done 16904 16905fi 16906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16907$as_echo "$ac_cv_c_inline" >&6; } 16908 16909case $ac_cv_c_inline in 16910 inline | yes) ;; 16911 *) 16912 case $ac_cv_c_inline in 16913 no) ac_val=;; 16914 *) ac_val=$ac_cv_c_inline;; 16915 esac 16916 cat >>confdefs.h <<_ACEOF 16917#ifndef __cplusplus 16918#define inline $ac_val 16919#endif 16920_ACEOF 16921 ;; 16922esac 16923 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16925$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16926if ${ac_cv_c_bigendian+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 ac_cv_c_bigendian=unknown 16930 # See if we're dealing with a universal compiler. 16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16932/* end confdefs.h. */ 16933#ifndef __APPLE_CC__ 16934 not a universal capable compiler 16935 #endif 16936 typedef int dummy; 16937 16938_ACEOF 16939if ac_fn_c_try_compile "$LINENO"; then : 16940 16941 # Check for potential -arch flags. It is not universal unless 16942 # there are at least two -arch flags with different values. 16943 ac_arch= 16944 ac_prev= 16945 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16946 if test -n "$ac_prev"; then 16947 case $ac_word in 16948 i?86 | x86_64 | ppc | ppc64) 16949 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16950 ac_arch=$ac_word 16951 else 16952 ac_cv_c_bigendian=universal 16953 break 16954 fi 16955 ;; 16956 esac 16957 ac_prev= 16958 elif test "x$ac_word" = "x-arch"; then 16959 ac_prev=arch 16960 fi 16961 done 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16964 if test $ac_cv_c_bigendian = unknown; then 16965 # See if sys/param.h defines the BYTE_ORDER macro. 16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968#include <sys/types.h> 16969 #include <sys/param.h> 16970 16971int 16972main () 16973{ 16974#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16975 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16976 && LITTLE_ENDIAN) 16977 bogus endian macros 16978 #endif 16979 16980 ; 16981 return 0; 16982} 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO"; then : 16985 # It does; now see whether it defined to BIG_ENDIAN or not. 16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988#include <sys/types.h> 16989 #include <sys/param.h> 16990 16991int 16992main () 16993{ 16994#if BYTE_ORDER != BIG_ENDIAN 16995 not big endian 16996 #endif 16997 16998 ; 16999 return 0; 17000} 17001_ACEOF 17002if ac_fn_c_try_compile "$LINENO"; then : 17003 ac_cv_c_bigendian=yes 17004else 17005 ac_cv_c_bigendian=no 17006fi 17007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17010 fi 17011 if test $ac_cv_c_bigendian = unknown; then 17012 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17014/* end confdefs.h. */ 17015#include <limits.h> 17016 17017int 17018main () 17019{ 17020#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17021 bogus endian macros 17022 #endif 17023 17024 ; 17025 return 0; 17026} 17027_ACEOF 17028if ac_fn_c_try_compile "$LINENO"; then : 17029 # It does; now see whether it defined to _BIG_ENDIAN or not. 17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17031/* end confdefs.h. */ 17032#include <limits.h> 17033 17034int 17035main () 17036{ 17037#ifndef _BIG_ENDIAN 17038 not big endian 17039 #endif 17040 17041 ; 17042 return 0; 17043} 17044_ACEOF 17045if ac_fn_c_try_compile "$LINENO"; then : 17046 ac_cv_c_bigendian=yes 17047else 17048 ac_cv_c_bigendian=no 17049fi 17050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053 fi 17054 if test $ac_cv_c_bigendian = unknown; then 17055 # Compile a test program. 17056 if test "$cross_compiling" = yes; then : 17057 # Try to guess by grepping values from an object file. 17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17059/* end confdefs.h. */ 17060short int ascii_mm[] = 17061 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17062 short int ascii_ii[] = 17063 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17064 int use_ascii (int i) { 17065 return ascii_mm[i] + ascii_ii[i]; 17066 } 17067 short int ebcdic_ii[] = 17068 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17069 short int ebcdic_mm[] = 17070 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17071 int use_ebcdic (int i) { 17072 return ebcdic_mm[i] + ebcdic_ii[i]; 17073 } 17074 extern int foo; 17075 17076int 17077main () 17078{ 17079return use_ascii (foo) == use_ebcdic (foo); 17080 ; 17081 return 0; 17082} 17083_ACEOF 17084if ac_fn_c_try_compile "$LINENO"; then : 17085 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17086 ac_cv_c_bigendian=yes 17087 fi 17088 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17089 if test "$ac_cv_c_bigendian" = unknown; then 17090 ac_cv_c_bigendian=no 17091 else 17092 # finding both strings is unlikely to happen, but who knows? 17093 ac_cv_c_bigendian=unknown 17094 fi 17095 fi 17096fi 17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17098else 17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100/* end confdefs.h. */ 17101$ac_includes_default 17102int 17103main () 17104{ 17105 17106 /* Are we little or big endian? From Harbison&Steele. */ 17107 union 17108 { 17109 long int l; 17110 char c[sizeof (long int)]; 17111 } u; 17112 u.l = 1; 17113 return u.c[sizeof (long int) - 1] == 1; 17114 17115 ; 17116 return 0; 17117} 17118_ACEOF 17119if ac_fn_c_try_run "$LINENO"; then : 17120 ac_cv_c_bigendian=no 17121else 17122 ac_cv_c_bigendian=yes 17123fi 17124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17125 conftest.$ac_objext conftest.beam conftest.$ac_ext 17126fi 17127 17128 fi 17129fi 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17131$as_echo "$ac_cv_c_bigendian" >&6; } 17132 case $ac_cv_c_bigendian in #( 17133 yes) 17134 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17135;; #( 17136 no) 17137 ;; #( 17138 universal) 17139 17140$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17141 17142 ;; #( 17143 *) 17144 as_fn_error $? "unknown endianness 17145 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17146 esac 17147 17148ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17149if test "x$ac_cv_type_off_t" = xyes; then : 17150 17151else 17152 17153cat >>confdefs.h <<_ACEOF 17154#define off_t long int 17155_ACEOF 17156 17157fi 17158 17159ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17160if test "x$ac_cv_type_size_t" = xyes; then : 17161 17162else 17163 17164cat >>confdefs.h <<_ACEOF 17165#define size_t unsigned int 17166_ACEOF 17167 17168fi 17169 17170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17171$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17172if ${ac_cv_header_time+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177#include <sys/types.h> 17178#include <sys/time.h> 17179#include <time.h> 17180 17181int 17182main () 17183{ 17184if ((struct tm *) 0) 17185return 0; 17186 ; 17187 return 0; 17188} 17189_ACEOF 17190if ac_fn_c_try_compile "$LINENO"; then : 17191 ac_cv_header_time=yes 17192else 17193 ac_cv_header_time=no 17194fi 17195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17196fi 17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17198$as_echo "$ac_cv_header_time" >&6; } 17199if test $ac_cv_header_time = yes; then 17200 17201$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17202 17203fi 17204 17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17206$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17207if ${ac_cv_struct_tm+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212#include <sys/types.h> 17213#include <time.h> 17214 17215int 17216main () 17217{ 17218struct tm tm; 17219 int *p = &tm.tm_sec; 17220 return !p; 17221 ; 17222 return 0; 17223} 17224_ACEOF 17225if ac_fn_c_try_compile "$LINENO"; then : 17226 ac_cv_struct_tm=time.h 17227else 17228 ac_cv_struct_tm=sys/time.h 17229fi 17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17231fi 17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17233$as_echo "$ac_cv_struct_tm" >&6; } 17234if test $ac_cv_struct_tm = sys/time.h; then 17235 17236$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17237 17238fi 17239 17240 17241ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" 17242if test "x$ac_cv_have_decl_optarg" = xyes; then : 17243 ac_have_decl=1 17244else 17245 ac_have_decl=0 17246fi 17247 17248cat >>confdefs.h <<_ACEOF 17249#define HAVE_DECL_OPTARG $ac_have_decl 17250_ACEOF 17251 17252 17253 17254# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 17255# The cast to long int works around a bug in the HP C Compiler 17256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17258# This bug is HP SR number 8606223364. 17259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 17260$as_echo_n "checking size of signed short... " >&6; } 17261if ${ac_cv_sizeof_signed_short+:} false; then : 17262 $as_echo_n "(cached) " >&6 17263else 17264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 17265 17266else 17267 if test "$ac_cv_type_signed_short" = yes; then 17268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17270as_fn_error 77 "cannot compute sizeof (signed short) 17271See \`config.log' for more details" "$LINENO" 5; } 17272 else 17273 ac_cv_sizeof_signed_short=0 17274 fi 17275fi 17276 17277fi 17278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 17279$as_echo "$ac_cv_sizeof_signed_short" >&6; } 17280 17281 17282 17283cat >>confdefs.h <<_ACEOF 17284#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 17285_ACEOF 17286 17287 17288 17289# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 17290# The cast to long int works around a bug in the HP C Compiler 17291# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17292# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17293# This bug is HP SR number 8606223364. 17294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 17295$as_echo_n "checking size of unsigned short... " >&6; } 17296if ${ac_cv_sizeof_unsigned_short+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298else 17299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 17300 17301else 17302 if test "$ac_cv_type_unsigned_short" = yes; then 17303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17305as_fn_error 77 "cannot compute sizeof (unsigned short) 17306See \`config.log' for more details" "$LINENO" 5; } 17307 else 17308 ac_cv_sizeof_unsigned_short=0 17309 fi 17310fi 17311 17312fi 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 17314$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 17315 17316 17317 17318cat >>confdefs.h <<_ACEOF 17319#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 17320_ACEOF 17321 17322 17323 17324# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 17325# The cast to long int works around a bug in the HP C Compiler 17326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17328# This bug is HP SR number 8606223364. 17329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 17330$as_echo_n "checking size of signed int... " >&6; } 17331if ${ac_cv_sizeof_signed_int+:} false; then : 17332 $as_echo_n "(cached) " >&6 17333else 17334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 17335 17336else 17337 if test "$ac_cv_type_signed_int" = yes; then 17338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17340as_fn_error 77 "cannot compute sizeof (signed int) 17341See \`config.log' for more details" "$LINENO" 5; } 17342 else 17343 ac_cv_sizeof_signed_int=0 17344 fi 17345fi 17346 17347fi 17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 17349$as_echo "$ac_cv_sizeof_signed_int" >&6; } 17350 17351 17352 17353cat >>confdefs.h <<_ACEOF 17354#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 17355_ACEOF 17356 17357 17358 17359# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 17360# The cast to long int works around a bug in the HP C Compiler 17361# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17362# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17363# This bug is HP SR number 8606223364. 17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 17365$as_echo_n "checking size of unsigned int... " >&6; } 17366if ${ac_cv_sizeof_unsigned_int+:} false; then : 17367 $as_echo_n "(cached) " >&6 17368else 17369 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 17370 17371else 17372 if test "$ac_cv_type_unsigned_int" = yes; then 17373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17375as_fn_error 77 "cannot compute sizeof (unsigned int) 17376See \`config.log' for more details" "$LINENO" 5; } 17377 else 17378 ac_cv_sizeof_unsigned_int=0 17379 fi 17380fi 17381 17382fi 17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 17384$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 17385 17386 17387 17388cat >>confdefs.h <<_ACEOF 17389#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 17390_ACEOF 17391 17392 17393 17394# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 17395# The cast to long int works around a bug in the HP C Compiler 17396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17398# This bug is HP SR number 8606223364. 17399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 17400$as_echo_n "checking size of signed long... " >&6; } 17401if ${ac_cv_sizeof_signed_long+:} false; then : 17402 $as_echo_n "(cached) " >&6 17403else 17404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 17405 17406else 17407 if test "$ac_cv_type_signed_long" = yes; then 17408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17410as_fn_error 77 "cannot compute sizeof (signed long) 17411See \`config.log' for more details" "$LINENO" 5; } 17412 else 17413 ac_cv_sizeof_signed_long=0 17414 fi 17415fi 17416 17417fi 17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 17419$as_echo "$ac_cv_sizeof_signed_long" >&6; } 17420 17421 17422 17423cat >>confdefs.h <<_ACEOF 17424#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 17425_ACEOF 17426 17427 17428 17429# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 17430# The cast to long int works around a bug in the HP C Compiler 17431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17433# This bug is HP SR number 8606223364. 17434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 17435$as_echo_n "checking size of unsigned long... " >&6; } 17436if ${ac_cv_sizeof_unsigned_long+:} false; then : 17437 $as_echo_n "(cached) " >&6 17438else 17439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 17440 17441else 17442 if test "$ac_cv_type_unsigned_long" = yes; then 17443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17445as_fn_error 77 "cannot compute sizeof (unsigned long) 17446See \`config.log' for more details" "$LINENO" 5; } 17447 else 17448 ac_cv_sizeof_unsigned_long=0 17449 fi 17450fi 17451 17452fi 17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 17454$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 17455 17456 17457 17458cat >>confdefs.h <<_ACEOF 17459#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 17460_ACEOF 17461 17462 17463 17464# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 17465# If 'long long' is not supported then the value defined is zero. 17466# The cast to long int works around a bug in the HP C Compiler 17467# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17468# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17469# This bug is HP SR number 8606223364. 17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 17471$as_echo_n "checking size of signed long long... " >&6; } 17472if ${ac_cv_sizeof_signed_long_long+:} false; then : 17473 $as_echo_n "(cached) " >&6 17474else 17475 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 17476 17477else 17478 if test "$ac_cv_type_signed_long_long" = yes; then 17479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17481as_fn_error 77 "cannot compute sizeof (signed long long) 17482See \`config.log' for more details" "$LINENO" 5; } 17483 else 17484 ac_cv_sizeof_signed_long_long=0 17485 fi 17486fi 17487 17488fi 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 17490$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 17491 17492 17493 17494cat >>confdefs.h <<_ACEOF 17495#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 17496_ACEOF 17497 17498 17499 17500# Obtain size of a 'unsigned long long' and define as 17501# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 17502# supported then the value defined is zero. 17503# The cast to long int works around a bug in the HP C Compiler 17504# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17505# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17506# This bug is HP SR number 8606223364. 17507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 17508$as_echo_n "checking size of unsigned long long... " >&6; } 17509if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 17510 $as_echo_n "(cached) " >&6 17511else 17512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 17513 17514else 17515 if test "$ac_cv_type_unsigned_long_long" = yes; then 17516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17518as_fn_error 77 "cannot compute sizeof (unsigned long long) 17519See \`config.log' for more details" "$LINENO" 5; } 17520 else 17521 ac_cv_sizeof_unsigned_long_long=0 17522 fi 17523fi 17524 17525fi 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 17527$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 17528 17529 17530 17531cat >>confdefs.h <<_ACEOF 17532#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 17533_ACEOF 17534 17535 17536 17537# Obtain the size of an 'unsigned char *' and define as 17538# SIZEOF_UNSIGNED_CHAR_P. Result is available in 17539# ac_cv_sizeof_unsigned_char_p. 17540# The cast to long int works around a bug in the HP C Compiler 17541# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17542# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17543# This bug is HP SR number 8606223364. 17544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 17545$as_echo_n "checking size of unsigned char *... " >&6; } 17546if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 17547 $as_echo_n "(cached) " >&6 17548else 17549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 17550 17551else 17552 if test "$ac_cv_type_unsigned_char_p" = yes; then 17553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17555as_fn_error 77 "cannot compute sizeof (unsigned char *) 17556See \`config.log' for more details" "$LINENO" 5; } 17557 else 17558 ac_cv_sizeof_unsigned_char_p=0 17559 fi 17560fi 17561 17562fi 17563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 17564$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 17565 17566 17567 17568cat >>confdefs.h <<_ACEOF 17569#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 17570_ACEOF 17571 17572 17573 17574# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T. Result is 17575# available in ac_cv_sizeof_size_t 17576# The cast to long int works around a bug in the HP C Compiler 17577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17579# This bug is HP SR number 8606223364. 17580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 17581$as_echo_n "checking size of size_t... " >&6; } 17582if ${ac_cv_sizeof_size_t+:} false; then : 17583 $as_echo_n "(cached) " >&6 17584else 17585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 17586 17587else 17588 if test "$ac_cv_type_size_t" = yes; then 17589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17591as_fn_error 77 "cannot compute sizeof (size_t) 17592See \`config.log' for more details" "$LINENO" 5; } 17593 else 17594 ac_cv_sizeof_size_t=0 17595 fi 17596fi 17597 17598fi 17599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 17600$as_echo "$ac_cv_sizeof_size_t" >&6; } 17601 17602 17603 17604cat >>confdefs.h <<_ACEOF 17605#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 17606_ACEOF 17607 17608 17609 17610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 17611$as_echo_n "checking for signed 8-bit type... " >&6; } 17612INT8_T='signed char' 17613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 17614$as_echo "$INT8_T" >&6; } 17615 17616cat >>confdefs.h <<_ACEOF 17617#define TIFF_INT8_T $INT8_T 17618_ACEOF 17619 17620 17621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 17622$as_echo_n "checking for unsigned 8-bit type... " >&6; } 17623UINT8_T='unsigned char' 17624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 17625$as_echo "$UINT8_T" >&6; } 17626 17627cat >>confdefs.h <<_ACEOF 17628#define TIFF_UINT8_T $UINT8_T 17629_ACEOF 17630 17631 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 17633$as_echo_n "checking for signed 16-bit type... " >&6; } 17634INT16_T='signed short' 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 17636$as_echo "$INT16_T" >&6; } 17637 17638cat >>confdefs.h <<_ACEOF 17639#define TIFF_INT16_T $INT16_T 17640_ACEOF 17641 17642 17643 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 17645$as_echo_n "checking for unsigned 16-bit type... " >&6; } 17646UINT16_T='unsigned short' 17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 17648$as_echo "$UINT16_T" >&6; } 17649 17650cat >>confdefs.h <<_ACEOF 17651#define TIFF_UINT16_T $UINT16_T 17652_ACEOF 17653 17654 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 17656$as_echo_n "checking for signed 32-bit type... " >&6; } 17657INT32_T='none' 17658INT32_FORMAT='none' 17659if test $ac_cv_sizeof_signed_int -eq 4 17660then 17661 INT32_T='signed int' 17662 INT32_FORMAT='"%d"' 17663elif test $ac_cv_sizeof_signed_long -eq 4 17664then 17665 INT32_T='signed long' 17666 INT32_FORMAT='"%ld"' 17667fi 17668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 17669$as_echo "$INT32_T" >&6; } 17670 17671cat >>confdefs.h <<_ACEOF 17672#define TIFF_INT32_T $INT32_T 17673_ACEOF 17674 17675 17676cat >>confdefs.h <<_ACEOF 17677#define TIFF_INT32_FORMAT $INT32_FORMAT 17678_ACEOF 17679 17680 17681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 17682$as_echo_n "checking for unsigned 32-bit type... " >&6; } 17683UINT32_T='none' 17684UINT32_FORMAT='none' 17685if test $ac_cv_sizeof_unsigned_int -eq 4 17686then 17687 UINT32_T='unsigned int' 17688 UINT32_FORMAT='"%u"' 17689elif test $ac_cv_sizeof_unsigned_long -eq 4 17690then 17691 UINT32_T='unsigned long' 17692 UINT32_FORMAT='"%lu"' 17693fi 17694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 17695$as_echo "$UINT32_T" >&6; } 17696 17697cat >>confdefs.h <<_ACEOF 17698#define TIFF_UINT32_T $UINT32_T 17699_ACEOF 17700 17701 17702cat >>confdefs.h <<_ACEOF 17703#define TIFF_UINT32_FORMAT $UINT32_FORMAT 17704_ACEOF 17705 17706 17707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 17708$as_echo_n "checking for signed 64-bit type... " >&6; } 17709INT64_T='none' 17710INT64_FORMAT='none' 17711if test $ac_cv_sizeof_signed_long -eq 8 17712then 17713 INT64_T='signed long' 17714 INT64_FORMAT='"%ld"' 17715elif test $ac_cv_sizeof_signed_long_long -eq 8 17716then 17717 INT64_T='signed long long' 17718 case "${host_os}" in 17719 mingw32*) 17720 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17721 INT64_FORMAT='"%I64d"' 17722 ;; 17723 *) 17724 INT64_FORMAT='"%lld"' 17725 ;; 17726 esac 17727fi 17728 17729 17730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 17731$as_echo "$INT64_T" >&6; } 17732 17733cat >>confdefs.h <<_ACEOF 17734#define TIFF_INT64_T $INT64_T 17735_ACEOF 17736 17737 17738cat >>confdefs.h <<_ACEOF 17739#define TIFF_INT64_FORMAT $INT64_FORMAT 17740_ACEOF 17741 17742 17743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 17744$as_echo_n "checking for unsigned 64-bit type... " >&6; } 17745UINT64_T='none' 17746UINT64_FORMAT='none' 17747if test $ac_cv_sizeof_unsigned_long -eq 8 17748then 17749 UINT64_T='unsigned long' 17750 UINT64_FORMAT='"%lu"' 17751elif test $ac_cv_sizeof_unsigned_long_long -eq 8 17752then 17753 UINT64_T='unsigned long long' 17754 case "${host_os}" in 17755 mingw32*) 17756 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17757 UINT64_FORMAT='"%I64u"' 17758 ;; 17759 *) 17760 UINT64_FORMAT='"%llu"' 17761 ;; 17762 esac 17763fi 17764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 17765$as_echo "$UINT64_T" >&6; } 17766 17767cat >>confdefs.h <<_ACEOF 17768#define TIFF_UINT64_T $UINT64_T 17769_ACEOF 17770 17771 17772cat >>confdefs.h <<_ACEOF 17773#define TIFF_UINT64_FORMAT $UINT64_FORMAT 17774_ACEOF 17775 17776 17777# Determine formatting specifier for 'size_t'. While the size should 17778# be precise, the type determined may not match the system definition. 17779# A named type is provided to allow casting to the type we determined 17780# without changing the actual size. 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'size_t' format specifier" >&5 17782$as_echo_n "checking for 'size_t' format specifier... " >&6; } 17783SIZE_T='unknown' 17784SIZE_FORMAT='unknown' 17785if test $ac_cv_sizeof_unsigned_int -eq $ac_cv_sizeof_size_t 17786then 17787 SIZE_T='unsigned int' 17788 SIZE_FORMAT='"%u"' 17789elif test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_size_t 17790then 17791 SIZE_T='unsigned long' 17792 SIZE_FORMAT='"%lu"' 17793elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_size_t 17794then 17795 SIZE_T='unsigned long long' 17796 case "${host_os}" in 17797 mingw32*) 17798 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17799 SIZE_FORMAT='"%I64u"' 17800 ;; 17801 *) 17802 SIZE_FORMAT='"%llu"' 17803 ;; 17804 esac 17805fi 17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIZE_FORMAT" >&5 17807$as_echo "$SIZE_FORMAT" >&6; } 17808 17809cat >>confdefs.h <<_ACEOF 17810#define TIFF_SIZE_T $SIZE_T 17811_ACEOF 17812 17813 17814cat >>confdefs.h <<_ACEOF 17815#define TIFF_SIZE_FORMAT $SIZE_FORMAT 17816_ACEOF 17817 17818 17819# Determine TIFF equivalent of ssize_t 17820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 17821$as_echo_n "checking for signed size type... " >&6; } 17822SSIZE_T='unknown' 17823SSIZE_FORMAT='unknown' 17824if test $ac_cv_sizeof_signed_int -eq $ac_cv_sizeof_unsigned_char_p 17825then 17826 SSIZE_T='signed int' 17827 SSIZE_FORMAT='"%d"' 17828elif test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 17829then 17830 SSIZE_T='signed long' 17831 SSIZE_FORMAT='"%ld"' 17832elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17833then 17834 SSIZE_T='signed long long' 17835 case "${host_os}" in 17836 mingw32*) 17837 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17838 SSIZE_FORMAT='"%I64d"' 17839 ;; 17840 *) 17841 SSIZE_FORMAT='"%lld"' 17842 ;; 17843 esac 17844fi 17845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17846$as_echo "$SSIZE_T" >&6; } 17847 17848cat >>confdefs.h <<_ACEOF 17849#define TIFF_SSIZE_T $SSIZE_T 17850_ACEOF 17851 17852 17853cat >>confdefs.h <<_ACEOF 17854#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17855_ACEOF 17856 17857 17858# Determine the type to use for the difference between two pointers. 17859# We will default to the POSIX ptrdiff_t if it is available, but will 17860# be prepared for the case when it is not. 17861PTRDIFF_T='unknown' 17862PTRDIFF_FORMAT='"%ld"' 17863ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17864if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17865 PTRDIFF_T=ptrdiff_t 17866fi 17867 17868if test $PTRDIFF_T = unknown 17869then 17870 PTRDIFF_T=$SSIZE_T 17871 PTRDIFF_FORMAT=$SSIZE_FORMAT 17872fi 17873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17874$as_echo_n "checking for pointer difference type... " >&6; } 17875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17876$as_echo "$PTRDIFF_T" >&6; } 17877 17878cat >>confdefs.h <<_ACEOF 17879#define TIFF_PTRDIFF_T $PTRDIFF_T 17880_ACEOF 17881 17882 17883cat >>confdefs.h <<_ACEOF 17884#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17885_ACEOF 17886 17887 17888ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17889#if HAVE_INTTYPES_H 17890# include <inttypes.h> 17891#endif 17892 17893" 17894if test "x$ac_cv_type_int8" = xyes; then : 17895 17896cat >>confdefs.h <<_ACEOF 17897#define HAVE_INT8 1 17898_ACEOF 17899 17900 17901fi 17902ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17903#if HAVE_INTTYPES_H 17904# include <inttypes.h> 17905#endif 17906 17907" 17908if test "x$ac_cv_type_int16" = xyes; then : 17909 17910cat >>confdefs.h <<_ACEOF 17911#define HAVE_INT16 1 17912_ACEOF 17913 17914 17915fi 17916ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17917#if HAVE_INTTYPES_H 17918# include <inttypes.h> 17919#endif 17920 17921" 17922if test "x$ac_cv_type_int32" = xyes; then : 17923 17924cat >>confdefs.h <<_ACEOF 17925#define HAVE_INT32 1 17926_ACEOF 17927 17928 17929fi 17930 17931 17932for ac_func in floor isascii memmove memset mmap pow setmode sqrt\ 17933 strchr strrchr strstr strtol strtoull 17934do : 17935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17936ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17937if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17938 cat >>confdefs.h <<_ACEOF 17939#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17940_ACEOF 17941 17942fi 17943done 17944 17945 17946ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17947if test "x$ac_cv_func_getopt" = xyes; then : 17948 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17949 17950else 17951 case " $LIBOBJS " in 17952 *" getopt.$ac_objext "* ) ;; 17953 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17954 ;; 17955esac 17956 17957fi 17958 17959 17960ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17961if test "x$ac_cv_func_strcasecmp" = xyes; then : 17962 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17963 17964else 17965 case " $LIBOBJS " in 17966 *" strcasecmp.$ac_objext "* ) ;; 17967 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17968 ;; 17969esac 17970 17971fi 17972 17973 17974ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17975if test "x$ac_cv_func_strtoul" = xyes; then : 17976 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17977 17978else 17979 case " $LIBOBJS " in 17980 *" strtoul.$ac_objext "* ) ;; 17981 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17982 ;; 17983esac 17984 17985fi 17986 17987 17988ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17989if test "x$ac_cv_func_strtoull" = xyes; then : 17990 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17991 17992else 17993 case " $LIBOBJS " in 17994 *" strtoull.$ac_objext "* ) ;; 17995 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17996 ;; 17997esac 17998 17999fi 18000 18001 18002ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 18003if test "x$ac_cv_func_lfind" = xyes; then : 18004 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 18005 18006else 18007 case " $LIBOBJS " in 18008 *" lfind.$ac_objext "* ) ;; 18009 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 18010 ;; 18011esac 18012 18013fi 18014 18015 18016 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 18018$as_echo_n "checking native cpu bit order... " >&6; } 18019case "$host_cpu" in 18020 i*86*|x86_64*) 18021 HOST_FILLORDER=FILLORDER_LSB2MSB 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 18023$as_echo "lsb2msb" >&6; } 18024 ;; 18025 *) 18026 HOST_FILLORDER=FILLORDER_MSB2LSB 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 18028$as_echo "msb2lsb" >&6; } 18029 ;; 18030esac 18031 18032cat >>confdefs.h <<_ACEOF 18033#define HOST_FILLORDER $HOST_FILLORDER 18034_ACEOF 18035 18036 18037if test "$ac_cv_c_bigendian" = yes ; then 18038 HOST_BIGENDIAN=1 18039else 18040 HOST_BIGENDIAN=0 18041fi 18042 18043cat >>confdefs.h <<_ACEOF 18044#define HOST_BIGENDIAN $HOST_BIGENDIAN 18045_ACEOF 18046 18047 18048#_POSIX_C_SOURCE=2 18049#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 18050 18051HAVE_IEEEFP=1 18052 18053cat >>confdefs.h <<_ACEOF 18054#define HAVE_IEEEFP $HAVE_IEEEFP 18055_ACEOF 18056 18057 18058 18059# Check whether --enable-rpath was given. 18060if test "${enable_rpath+set}" = set; then : 18061 enableval=$enable_rpath; HAVE_RPATH=$enableval 18062else 18063 HAVE_RPATH=no 18064fi 18065 18066 if test "$HAVE_RPATH" = "yes"; then 18067 HAVE_RPATH_TRUE= 18068 HAVE_RPATH_FALSE='#' 18069else 18070 HAVE_RPATH_TRUE='#' 18071 HAVE_RPATH_FALSE= 18072fi 18073 18074 18075 18076# Check whether --enable-largefile was given. 18077if test "${enable_largefile+set}" = set; then : 18078 enableval=$enable_largefile; 18079fi 18080 18081if test "$enable_largefile" != no; then 18082 18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18084$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18085if ${ac_cv_sys_largefile_CC+:} false; then : 18086 $as_echo_n "(cached) " >&6 18087else 18088 ac_cv_sys_largefile_CC=no 18089 if test "$GCC" != yes; then 18090 ac_save_CC=$CC 18091 while :; do 18092 # IRIX 6.2 and later do not support large files by default, 18093 # so use the C compiler's -n32 option if that helps. 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096#include <sys/types.h> 18097 /* Check that off_t can represent 2**63 - 1 correctly. 18098 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18099 since some C++ compilers masquerading as C compilers 18100 incorrectly reject 9223372036854775807. */ 18101#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18103 && LARGE_OFF_T % 2147483647 == 1) 18104 ? 1 : -1]; 18105int 18106main () 18107{ 18108 18109 ; 18110 return 0; 18111} 18112_ACEOF 18113 if ac_fn_c_try_compile "$LINENO"; then : 18114 break 18115fi 18116rm -f core conftest.err conftest.$ac_objext 18117 CC="$CC -n32" 18118 if ac_fn_c_try_compile "$LINENO"; then : 18119 ac_cv_sys_largefile_CC=' -n32'; break 18120fi 18121rm -f core conftest.err conftest.$ac_objext 18122 break 18123 done 18124 CC=$ac_save_CC 18125 rm -f conftest.$ac_ext 18126 fi 18127fi 18128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18129$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18130 if test "$ac_cv_sys_largefile_CC" != no; then 18131 CC=$CC$ac_cv_sys_largefile_CC 18132 fi 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18135$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18136if ${ac_cv_sys_file_offset_bits+:} false; then : 18137 $as_echo_n "(cached) " >&6 18138else 18139 while :; do 18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18141/* end confdefs.h. */ 18142#include <sys/types.h> 18143 /* Check that off_t can represent 2**63 - 1 correctly. 18144 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18145 since some C++ compilers masquerading as C compilers 18146 incorrectly reject 9223372036854775807. */ 18147#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18149 && LARGE_OFF_T % 2147483647 == 1) 18150 ? 1 : -1]; 18151int 18152main () 18153{ 18154 18155 ; 18156 return 0; 18157} 18158_ACEOF 18159if ac_fn_c_try_compile "$LINENO"; then : 18160 ac_cv_sys_file_offset_bits=no; break 18161fi 18162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18164/* end confdefs.h. */ 18165#define _FILE_OFFSET_BITS 64 18166#include <sys/types.h> 18167 /* Check that off_t can represent 2**63 - 1 correctly. 18168 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18169 since some C++ compilers masquerading as C compilers 18170 incorrectly reject 9223372036854775807. */ 18171#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18173 && LARGE_OFF_T % 2147483647 == 1) 18174 ? 1 : -1]; 18175int 18176main () 18177{ 18178 18179 ; 18180 return 0; 18181} 18182_ACEOF 18183if ac_fn_c_try_compile "$LINENO"; then : 18184 ac_cv_sys_file_offset_bits=64; break 18185fi 18186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18187 ac_cv_sys_file_offset_bits=unknown 18188 break 18189done 18190fi 18191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18192$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18193case $ac_cv_sys_file_offset_bits in #( 18194 no | unknown) ;; 18195 *) 18196cat >>confdefs.h <<_ACEOF 18197#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18198_ACEOF 18199;; 18200esac 18201rm -rf conftest* 18202 if test $ac_cv_sys_file_offset_bits = unknown; then 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18204$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18205if ${ac_cv_sys_large_files+:} false; then : 18206 $as_echo_n "(cached) " >&6 18207else 18208 while :; do 18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210/* end confdefs.h. */ 18211#include <sys/types.h> 18212 /* Check that off_t can represent 2**63 - 1 correctly. 18213 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18214 since some C++ compilers masquerading as C compilers 18215 incorrectly reject 9223372036854775807. */ 18216#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18218 && LARGE_OFF_T % 2147483647 == 1) 18219 ? 1 : -1]; 18220int 18221main () 18222{ 18223 18224 ; 18225 return 0; 18226} 18227_ACEOF 18228if ac_fn_c_try_compile "$LINENO"; then : 18229 ac_cv_sys_large_files=no; break 18230fi 18231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18233/* end confdefs.h. */ 18234#define _LARGE_FILES 1 18235#include <sys/types.h> 18236 /* Check that off_t can represent 2**63 - 1 correctly. 18237 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18238 since some C++ compilers masquerading as C compilers 18239 incorrectly reject 9223372036854775807. */ 18240#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18242 && LARGE_OFF_T % 2147483647 == 1) 18243 ? 1 : -1]; 18244int 18245main () 18246{ 18247 18248 ; 18249 return 0; 18250} 18251_ACEOF 18252if ac_fn_c_try_compile "$LINENO"; then : 18253 ac_cv_sys_large_files=1; break 18254fi 18255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18256 ac_cv_sys_large_files=unknown 18257 break 18258done 18259fi 18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18261$as_echo "$ac_cv_sys_large_files" >&6; } 18262case $ac_cv_sys_large_files in #( 18263 no | unknown) ;; 18264 *) 18265cat >>confdefs.h <<_ACEOF 18266#define _LARGE_FILES $ac_cv_sys_large_files 18267_ACEOF 18268;; 18269esac 18270rm -rf conftest* 18271 fi 18272 18273 18274fi 18275 18276 18277 18278LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 18279 18280 18281# Check whether --with-docdir was given. 18282if test "${with_docdir+set}" = set; then : 18283 withval=$with_docdir; 18284fi 18285 18286if test "x$with_docdir" != "x" ; then 18287 LIBTIFF_DOCDIR=$with_docdir 18288fi 18289 18290 18291 18292 18293# Check whether --enable-ccitt was given. 18294if test "${enable_ccitt+set}" = set; then : 18295 enableval=$enable_ccitt; HAVE_CCITT=$enableval 18296else 18297 HAVE_CCITT=yes 18298fi 18299 18300 18301if test "$HAVE_CCITT" = "yes" ; then 18302 18303$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 18304 18305fi 18306 18307# Check whether --enable-packbits was given. 18308if test "${enable_packbits+set}" = set; then : 18309 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 18310else 18311 HAVE_PACKBITS=yes 18312fi 18313 18314 18315if test "$HAVE_PACKBITS" = "yes" ; then 18316 18317$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 18318 18319fi 18320 18321# Check whether --enable-lzw was given. 18322if test "${enable_lzw+set}" = set; then : 18323 enableval=$enable_lzw; HAVE_LZW=$enableval 18324else 18325 HAVE_LZW=yes 18326fi 18327 18328 18329if test "$HAVE_LZW" = "yes" ; then 18330 18331$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 18332 18333fi 18334 18335# Check whether --enable-thunder was given. 18336if test "${enable_thunder+set}" = set; then : 18337 enableval=$enable_thunder; HAVE_THUNDER=$enableval 18338else 18339 HAVE_THUNDER=yes 18340fi 18341 18342 18343if test "$HAVE_THUNDER" = "yes" ; then 18344 18345$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 18346 18347fi 18348 18349HAVE_NEXT=yes 18350 18351# Check whether --enable-next was given. 18352if test "${enable_next+set}" = set; then : 18353 enableval=$enable_next; HAVE_NEXT=$enableval 18354else 18355 HAVE_NEXT=yes 18356fi 18357 18358 18359if test "$HAVE_NEXT" = "yes" ; then 18360 18361$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 18362 18363fi 18364 18365# Check whether --enable-logluv was given. 18366if test "${enable_logluv+set}" = set; then : 18367 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 18368else 18369 HAVE_LOGLUV=yes 18370fi 18371 18372 18373if test "$HAVE_LOGLUV" = "yes" ; then 18374 18375$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 18376 18377fi 18378 18379 18380# Check whether --enable-mdi was given. 18381if test "${enable_mdi+set}" = set; then : 18382 enableval=$enable_mdi; HAVE_MDI=$enableval 18383else 18384 HAVE_MDI=yes 18385fi 18386 18387 18388if test "$HAVE_MDI" = "yes" ; then 18389 18390$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 18391 18392fi 18393 18394 18395HAVE_ZLIB=no 18396 18397# Check whether --enable-zlib was given. 18398if test "${enable_zlib+set}" = set; then : 18399 enableval=$enable_zlib; 18400fi 18401 18402 18403# Check whether --with-zlib-include-dir was given. 18404if test "${with_zlib_include_dir+set}" = set; then : 18405 withval=$with_zlib_include_dir; 18406fi 18407 18408 18409# Check whether --with-zlib-lib-dir was given. 18410if test "${with_zlib_lib_dir+set}" = set; then : 18411 withval=$with_zlib_lib_dir; 18412fi 18413 18414 18415if test "x$enable_zlib" != "xno" ; then 18416 18417 if test "x$with_zlib_lib_dir" != "x" ; then 18418 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 18419 fi 18420 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18422$as_echo_n "checking for inflateEnd in -lz... " >&6; } 18423if ${ac_cv_lib_z_inflateEnd+:} false; then : 18424 $as_echo_n "(cached) " >&6 18425else 18426 ac_check_lib_save_LIBS=$LIBS 18427LIBS="-lz $LIBS" 18428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429/* end confdefs.h. */ 18430 18431/* Override any GCC internal prototype to avoid an error. 18432 Use char because int might match the return type of a GCC 18433 builtin and then its argument prototype would still apply. */ 18434#ifdef __cplusplus 18435extern "C" 18436#endif 18437char inflateEnd (); 18438int 18439main () 18440{ 18441return inflateEnd (); 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446if ac_fn_c_try_link "$LINENO"; then : 18447 ac_cv_lib_z_inflateEnd=yes 18448else 18449 ac_cv_lib_z_inflateEnd=no 18450fi 18451rm -f core conftest.err conftest.$ac_objext \ 18452 conftest$ac_exeext conftest.$ac_ext 18453LIBS=$ac_check_lib_save_LIBS 18454fi 18455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18456$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18457if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18458 zlib_lib=yes 18459else 18460 zlib_lib=no 18461fi 18462 18463 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 18464 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 18465 fi 18466 18467 if test "x$with_zlib_include_dir" != "x" ; then 18468 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 18469 fi 18470 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18471if test "x$ac_cv_header_zlib_h" = xyes; then : 18472 zlib_h=yes 18473else 18474 zlib_h=no 18475fi 18476 18477 18478 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 18479 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 18480 fi 18481 18482 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 18483 HAVE_ZLIB=yes 18484 fi 18485 18486fi 18487 18488if test "$HAVE_ZLIB" = "yes" ; then 18489 18490$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 18491 18492 LIBS="-lz $LIBS" 18493 tiff_libs_private="-lz ${tiff_libs_private}" 18494 18495 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 18496 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 18497 fi 18498 18499fi 18500 18501 18502# Check whether --enable-pixarlog was given. 18503if test "${enable_pixarlog+set}" = set; then : 18504 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 18505else 18506 HAVE_PIXARLOG=yes 18507fi 18508 18509 18510if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 18511 18512$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 18513 18514else 18515 HAVE_PIXARLOG=no 18516fi 18517 18518 18519HAVE_JPEG=no 18520 18521# Check whether --enable-jpeg was given. 18522if test "${enable_jpeg+set}" = set; then : 18523 enableval=$enable_jpeg; 18524fi 18525 18526 18527# Check whether --with-jpeg-include-dir was given. 18528if test "${with_jpeg_include_dir+set}" = set; then : 18529 withval=$with_jpeg_include_dir; 18530fi 18531 18532 18533# Check whether --with-jpeg-lib-dir was given. 18534if test "${with_jpeg_lib_dir+set}" = set; then : 18535 withval=$with_jpeg_lib_dir; 18536fi 18537 18538 18539if test "x$enable_jpeg" != "xno" ; then 18540 18541 if test "x$with_jpeg_lib_dir" != "x" ; then 18542 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 18543 18544 fi 18545 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 18547$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 18548if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 18549 $as_echo_n "(cached) " >&6 18550else 18551 ac_check_lib_save_LIBS=$LIBS 18552LIBS="-ljpeg $LIBS" 18553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18554/* end confdefs.h. */ 18555 18556/* Override any GCC internal prototype to avoid an error. 18557 Use char because int might match the return type of a GCC 18558 builtin and then its argument prototype would still apply. */ 18559#ifdef __cplusplus 18560extern "C" 18561#endif 18562char jpeg_read_scanlines (); 18563int 18564main () 18565{ 18566return jpeg_read_scanlines (); 18567 ; 18568 return 0; 18569} 18570_ACEOF 18571if ac_fn_c_try_link "$LINENO"; then : 18572 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18573else 18574 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18575fi 18576rm -f core conftest.err conftest.$ac_objext \ 18577 conftest$ac_exeext conftest.$ac_ext 18578LIBS=$ac_check_lib_save_LIBS 18579fi 18580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18581$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18582if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18583 jpeg_lib=yes 18584else 18585 jpeg_lib=no 18586fi 18587 18588 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18589 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18590 fi 18591 18592 if test "x$with_jpeg_include_dir" != "x" ; then 18593 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18594 fi 18595 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18596if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18597 jpeg_h=yes 18598else 18599 jpeg_h=no 18600fi 18601 18602 18603 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18604 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18605 fi 18606 18607 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18608 HAVE_JPEG=yes 18609 fi 18610 18611fi 18612 18613if test "$HAVE_JPEG" = "yes" ; then 18614 18615$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18616 18617 LIBS="-ljpeg $LIBS" 18618 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18619 18620 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18621 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18622 fi 18623 18624fi 18625 18626 18627# Check whether --enable-old-jpeg was given. 18628if test "${enable_old_jpeg+set}" = set; then : 18629 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18630else 18631 HAVE_OJPEG=yes 18632fi 18633 18634 18635if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18636 18637$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18638 18639else 18640 HAVE_OJPEG=no 18641fi 18642 18643 18644HAVE_JBIG=no 18645 18646# Check whether --enable-jbig was given. 18647if test "${enable_jbig+set}" = set; then : 18648 enableval=$enable_jbig; 18649fi 18650 18651 18652# Check whether --with-jbig-include-dir was given. 18653if test "${with_jbig_include_dir+set}" = set; then : 18654 withval=$with_jbig_include_dir; 18655fi 18656 18657 18658# Check whether --with-jbig-lib-dir was given. 18659if test "${with_jbig_lib_dir+set}" = set; then : 18660 withval=$with_jbig_lib_dir; 18661fi 18662 18663 18664if test "x$enable_jbig" != "xno" ; then 18665 18666 if test "x$with_jbig_lib_dir" != "x" ; then 18667 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18668 18669 fi 18670 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18672$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18673if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18674 $as_echo_n "(cached) " >&6 18675else 18676 ac_check_lib_save_LIBS=$LIBS 18677LIBS="-ljbig $LIBS" 18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681/* Override any GCC internal prototype to avoid an error. 18682 Use char because int might match the return type of a GCC 18683 builtin and then its argument prototype would still apply. */ 18684#ifdef __cplusplus 18685extern "C" 18686#endif 18687char jbg_dec_init (); 18688int 18689main () 18690{ 18691return jbg_dec_init (); 18692 ; 18693 return 0; 18694} 18695_ACEOF 18696if ac_fn_c_try_link "$LINENO"; then : 18697 ac_cv_lib_jbig_jbg_dec_init=yes 18698else 18699 ac_cv_lib_jbig_jbg_dec_init=no 18700fi 18701rm -f core conftest.err conftest.$ac_objext \ 18702 conftest$ac_exeext conftest.$ac_ext 18703LIBS=$ac_check_lib_save_LIBS 18704fi 18705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18706$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18707if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18708 jbig_lib=yes 18709else 18710 jbig_lib=no 18711fi 18712 18713 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18714 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18715 fi 18716 18717 if test "x$with_jbig_include_dir" != "x" ; then 18718 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18719 fi 18720 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18721if test "x$ac_cv_header_jbig_h" = xyes; then : 18722 jbig_h=yes 18723else 18724 jbig_h=no 18725fi 18726 18727 18728 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18729 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18730 fi 18731 18732 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18733 HAVE_JBIG=yes 18734 fi 18735 18736fi 18737 18738if test "$HAVE_JBIG" = "yes" ; then 18739 18740$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 18741 18742 LIBS="-ljbig $LIBS" 18743 tiff_libs_private="-ljbig ${tiff_libs_private}" 18744 18745 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 18746 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 18747 fi 18748 18749 # Older versions of jbigkit lack jbg_newlen 18750 for ac_func in jbg_newlen 18751do : 18752 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 18753if test "x$ac_cv_func_jbg_newlen" = xyes; then : 18754 cat >>confdefs.h <<_ACEOF 18755#define HAVE_JBG_NEWLEN 1 18756_ACEOF 18757 18758fi 18759done 18760 18761 18762fi 18763 18764 18765HAVE_LZMA=no 18766 18767# Check whether --enable-lzma was given. 18768if test "${enable_lzma+set}" = set; then : 18769 enableval=$enable_lzma; 18770fi 18771 18772 18773# Check whether --with-lzma-include-dir was given. 18774if test "${with_lzma_include_dir+set}" = set; then : 18775 withval=$with_lzma_include_dir; 18776fi 18777 18778 18779# Check whether --with-lzma-lib-dir was given. 18780if test "${with_lzma_lib_dir+set}" = set; then : 18781 withval=$with_lzma_lib_dir; 18782fi 18783 18784 18785if test "x$enable_lzma" != "xno" ; then 18786 18787 if test "x$with_lzma_lib_dir" != "x" ; then 18788 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 18789 fi 18790 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 18792$as_echo_n "checking for lzma_code in -llzma... " >&6; } 18793if ${ac_cv_lib_lzma_lzma_code+:} false; then : 18794 $as_echo_n "(cached) " >&6 18795else 18796 ac_check_lib_save_LIBS=$LIBS 18797LIBS="-llzma $LIBS" 18798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18799/* end confdefs.h. */ 18800 18801/* Override any GCC internal prototype to avoid an error. 18802 Use char because int might match the return type of a GCC 18803 builtin and then its argument prototype would still apply. */ 18804#ifdef __cplusplus 18805extern "C" 18806#endif 18807char lzma_code (); 18808int 18809main () 18810{ 18811return lzma_code (); 18812 ; 18813 return 0; 18814} 18815_ACEOF 18816if ac_fn_c_try_link "$LINENO"; then : 18817 ac_cv_lib_lzma_lzma_code=yes 18818else 18819 ac_cv_lib_lzma_lzma_code=no 18820fi 18821rm -f core conftest.err conftest.$ac_objext \ 18822 conftest$ac_exeext conftest.$ac_ext 18823LIBS=$ac_check_lib_save_LIBS 18824fi 18825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 18826$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 18827if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 18828 lzma_lib=yes 18829else 18830 lzma_lib=no 18831fi 18832 18833 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 18834 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 18835 fi 18836 18837 if test "x$with_lzma_include_dir" != "x" ; then 18838 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 18839 fi 18840 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18841if test "x$ac_cv_header_lzma_h" = xyes; then : 18842 lzma_h=yes 18843else 18844 lzma_h=no 18845fi 18846 18847 18848 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18849 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18850 fi 18851 18852 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18853 HAVE_LZMA=yes 18854 fi 18855 18856fi 18857 18858if test "$HAVE_LZMA" = "yes" ; then 18859 18860$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18861 18862 LIBS="-llzma $LIBS" 18863 tiff_libs_private="-llzma ${tiff_libs_private}" 18864 18865 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18866 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18867 fi 18868 18869fi 18870 18871 18872HAVE_JPEG12=no 18873 18874# Check whether --enable-jpeg12 was given. 18875if test "${enable_jpeg12+set}" = set; then : 18876 enableval=$enable_jpeg12; 18877fi 18878 18879 18880# Check whether --with-jpeg12-include-dir was given. 18881if test "${with_jpeg12_include_dir+set}" = set; then : 18882 withval=$with_jpeg12_include_dir; 18883fi 18884 18885 18886# Check whether --with-jpeg12-lib was given. 18887if test "${with_jpeg12_lib+set}" = set; then : 18888 withval=$with_jpeg12_lib; 18889fi 18890 18891 18892if test "x$enable_jpeg12" = "xyes" ; then 18893 18894 if test "x$with_jpeg12_lib" != "x" ; then 18895 LIBS="$with_jpeg12_lib $LIBS" 18896 fi 18897 18898 HAVE_JPEG12=yes 18899 18900 18901$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18902 18903 if test "x$with_jpeg12_include_dir" != "x" ; then 18904 18905cat >>confdefs.h <<_ACEOF 18906#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18907_ACEOF 18908 18909 fi 18910fi 18911 18912 18913 18914# Check whether --enable-cxx was given. 18915if test "${enable_cxx+set}" = set; then : 18916 enableval=$enable_cxx; HAVE_CXX=$enableval 18917else 18918 HAVE_CXX=yes 18919fi 18920 18921 18922if test "$HAVE_CXX" = "yes" ; then 18923 18924$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18925 18926else 18927 HAVE_CXX=no 18928fi 18929 18930 if test "$HAVE_CXX" = "yes"; then 18931 HAVE_CXX_TRUE= 18932 HAVE_CXX_FALSE='#' 18933else 18934 HAVE_CXX_TRUE='#' 18935 HAVE_CXX_FALSE= 18936fi 18937 18938 18939 18940HAVE_OPENGL=no 18941 18942 18943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18944$as_echo_n "checking for X... " >&6; } 18945 18946 18947# Check whether --with-x was given. 18948if test "${with_x+set}" = set; then : 18949 withval=$with_x; 18950fi 18951 18952# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18953if test "x$with_x" = xno; then 18954 # The user explicitly disabled X. 18955 have_x=disabled 18956else 18957 case $x_includes,$x_libraries in #( 18958 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18959 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18960 $as_echo_n "(cached) " >&6 18961else 18962 # One or both of the vars are not set, and there is no cached value. 18963ac_x_includes=no ac_x_libraries=no 18964rm -f -r conftest.dir 18965if mkdir conftest.dir; then 18966 cd conftest.dir 18967 cat >Imakefile <<'_ACEOF' 18968incroot: 18969 @echo incroot='${INCROOT}' 18970usrlibdir: 18971 @echo usrlibdir='${USRLIBDIR}' 18972libdir: 18973 @echo libdir='${LIBDIR}' 18974_ACEOF 18975 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18976 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18977 for ac_var in incroot usrlibdir libdir; do 18978 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18979 done 18980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18981 for ac_extension in a so sl dylib la dll; do 18982 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18983 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18984 ac_im_usrlibdir=$ac_im_libdir; break 18985 fi 18986 done 18987 # Screen out bogus values from the imake configuration. They are 18988 # bogus both because they are the default anyway, and because 18989 # using them would break gcc on systems where it needs fixed includes. 18990 case $ac_im_incroot in 18991 /usr/include) ac_x_includes= ;; 18992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18993 esac 18994 case $ac_im_usrlibdir in 18995 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18997 esac 18998 fi 18999 cd .. 19000 rm -f -r conftest.dir 19001fi 19002 19003# Standard set of common directories for X headers. 19004# Check X11 before X11Rn because it is often a symlink to the current release. 19005ac_x_header_dirs=' 19006/usr/X11/include 19007/usr/X11R7/include 19008/usr/X11R6/include 19009/usr/X11R5/include 19010/usr/X11R4/include 19011 19012/usr/include/X11 19013/usr/include/X11R7 19014/usr/include/X11R6 19015/usr/include/X11R5 19016/usr/include/X11R4 19017 19018/usr/local/X11/include 19019/usr/local/X11R7/include 19020/usr/local/X11R6/include 19021/usr/local/X11R5/include 19022/usr/local/X11R4/include 19023 19024/usr/local/include/X11 19025/usr/local/include/X11R7 19026/usr/local/include/X11R6 19027/usr/local/include/X11R5 19028/usr/local/include/X11R4 19029 19030/usr/X386/include 19031/usr/x386/include 19032/usr/XFree86/include/X11 19033 19034/usr/include 19035/usr/local/include 19036/usr/unsupported/include 19037/usr/athena/include 19038/usr/local/x11r5/include 19039/usr/lpp/Xamples/include 19040 19041/usr/openwin/include 19042/usr/openwin/share/include' 19043 19044if test "$ac_x_includes" = no; then 19045 # Guess where to find include files, by looking for Xlib.h. 19046 # First, try using that file with no special directory specified. 19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048/* end confdefs.h. */ 19049#include <X11/Xlib.h> 19050_ACEOF 19051if ac_fn_c_try_cpp "$LINENO"; then : 19052 # We can compile using X headers with no special include directory. 19053ac_x_includes= 19054else 19055 for ac_dir in $ac_x_header_dirs; do 19056 if test -r "$ac_dir/X11/Xlib.h"; then 19057 ac_x_includes=$ac_dir 19058 break 19059 fi 19060done 19061fi 19062rm -f conftest.err conftest.i conftest.$ac_ext 19063fi # $ac_x_includes = no 19064 19065if test "$ac_x_libraries" = no; then 19066 # Check for the libraries. 19067 # See if we find them without any special options. 19068 # Don't add to $LIBS permanently. 19069 ac_save_LIBS=$LIBS 19070 LIBS="-lX11 $LIBS" 19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19072/* end confdefs.h. */ 19073#include <X11/Xlib.h> 19074int 19075main () 19076{ 19077XrmInitialize () 19078 ; 19079 return 0; 19080} 19081_ACEOF 19082if ac_fn_c_try_link "$LINENO"; then : 19083 LIBS=$ac_save_LIBS 19084# We can link X programs with no special library path. 19085ac_x_libraries= 19086else 19087 LIBS=$ac_save_LIBS 19088for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19089do 19090 # Don't even attempt the hair of trying to link an X program! 19091 for ac_extension in a so sl dylib la dll; do 19092 if test -r "$ac_dir/libX11.$ac_extension"; then 19093 ac_x_libraries=$ac_dir 19094 break 2 19095 fi 19096 done 19097done 19098fi 19099rm -f core conftest.err conftest.$ac_objext \ 19100 conftest$ac_exeext conftest.$ac_ext 19101fi # $ac_x_libraries = no 19102 19103case $ac_x_includes,$ac_x_libraries in #( 19104 no,* | *,no | *\'*) 19105 # Didn't find X, or a directory has "'" in its name. 19106 ac_cv_have_x="have_x=no";; #( 19107 *) 19108 # Record where we found X for the cache. 19109 ac_cv_have_x="have_x=yes\ 19110 ac_x_includes='$ac_x_includes'\ 19111 ac_x_libraries='$ac_x_libraries'" 19112esac 19113fi 19114;; #( 19115 *) have_x=yes;; 19116 esac 19117 eval "$ac_cv_have_x" 19118fi # $with_x != no 19119 19120if test "$have_x" != yes; then 19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19122$as_echo "$have_x" >&6; } 19123 no_x=yes 19124else 19125 # If each of the values was on the command line, it overrides each guess. 19126 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19127 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19128 # Update the cache value to reflect the command line values. 19129 ac_cv_have_x="have_x=yes\ 19130 ac_x_includes='$x_includes'\ 19131 ac_x_libraries='$x_libraries'" 19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19133$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19134fi 19135 19136if test "$no_x" = yes; then 19137 # Not all programs may use this symbol, but it does not hurt to define it. 19138 19139$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19140 19141 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19142else 19143 if test -n "$x_includes"; then 19144 X_CFLAGS="$X_CFLAGS -I$x_includes" 19145 fi 19146 19147 # It would also be nice to do this for all -L options, not just this one. 19148 if test -n "$x_libraries"; then 19149 X_LIBS="$X_LIBS -L$x_libraries" 19150 # For Solaris; some versions of Sun CC require a space after -R and 19151 # others require no space. Words are not sufficient . . . . 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19153$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19154 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19155 ac_xsave_c_werror_flag=$ac_c_werror_flag 19156 ac_c_werror_flag=yes 19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19158/* end confdefs.h. */ 19159 19160int 19161main () 19162{ 19163 19164 ; 19165 return 0; 19166} 19167_ACEOF 19168if ac_fn_c_try_link "$LINENO"; then : 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19170$as_echo "no" >&6; } 19171 X_LIBS="$X_LIBS -R$x_libraries" 19172else 19173 LIBS="$ac_xsave_LIBS -R $x_libraries" 19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19175/* end confdefs.h. */ 19176 19177int 19178main () 19179{ 19180 19181 ; 19182 return 0; 19183} 19184_ACEOF 19185if ac_fn_c_try_link "$LINENO"; then : 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19187$as_echo "yes" >&6; } 19188 X_LIBS="$X_LIBS -R $x_libraries" 19189else 19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19191$as_echo "neither works" >&6; } 19192fi 19193rm -f core conftest.err conftest.$ac_objext \ 19194 conftest$ac_exeext conftest.$ac_ext 19195fi 19196rm -f core conftest.err conftest.$ac_objext \ 19197 conftest$ac_exeext conftest.$ac_ext 19198 ac_c_werror_flag=$ac_xsave_c_werror_flag 19199 LIBS=$ac_xsave_LIBS 19200 fi 19201 19202 # Check for system-dependent libraries X programs must link with. 19203 # Do this before checking for the system-independent R6 libraries 19204 # (-lICE), since we may need -lsocket or whatever for X linking. 19205 19206 if test "$ISC" = yes; then 19207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19208 else 19209 # Martyn Johnson says this is needed for Ultrix, if the X 19210 # libraries were built with DECnet support. And Karl Berry says 19211 # the Alpha needs dnet_stub (dnet does not exist). 19212 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19214/* end confdefs.h. */ 19215 19216/* Override any GCC internal prototype to avoid an error. 19217 Use char because int might match the return type of a GCC 19218 builtin and then its argument prototype would still apply. */ 19219#ifdef __cplusplus 19220extern "C" 19221#endif 19222char XOpenDisplay (); 19223int 19224main () 19225{ 19226return XOpenDisplay (); 19227 ; 19228 return 0; 19229} 19230_ACEOF 19231if ac_fn_c_try_link "$LINENO"; then : 19232 19233else 19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19235$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19236if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19237 $as_echo_n "(cached) " >&6 19238else 19239 ac_check_lib_save_LIBS=$LIBS 19240LIBS="-ldnet $LIBS" 19241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19242/* end confdefs.h. */ 19243 19244/* Override any GCC internal prototype to avoid an error. 19245 Use char because int might match the return type of a GCC 19246 builtin and then its argument prototype would still apply. */ 19247#ifdef __cplusplus 19248extern "C" 19249#endif 19250char dnet_ntoa (); 19251int 19252main () 19253{ 19254return dnet_ntoa (); 19255 ; 19256 return 0; 19257} 19258_ACEOF 19259if ac_fn_c_try_link "$LINENO"; then : 19260 ac_cv_lib_dnet_dnet_ntoa=yes 19261else 19262 ac_cv_lib_dnet_dnet_ntoa=no 19263fi 19264rm -f core conftest.err conftest.$ac_objext \ 19265 conftest$ac_exeext conftest.$ac_ext 19266LIBS=$ac_check_lib_save_LIBS 19267fi 19268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19269$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19270if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19271 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19272fi 19273 19274 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19276$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19277if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19278 $as_echo_n "(cached) " >&6 19279else 19280 ac_check_lib_save_LIBS=$LIBS 19281LIBS="-ldnet_stub $LIBS" 19282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19283/* end confdefs.h. */ 19284 19285/* Override any GCC internal prototype to avoid an error. 19286 Use char because int might match the return type of a GCC 19287 builtin and then its argument prototype would still apply. */ 19288#ifdef __cplusplus 19289extern "C" 19290#endif 19291char dnet_ntoa (); 19292int 19293main () 19294{ 19295return dnet_ntoa (); 19296 ; 19297 return 0; 19298} 19299_ACEOF 19300if ac_fn_c_try_link "$LINENO"; then : 19301 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19302else 19303 ac_cv_lib_dnet_stub_dnet_ntoa=no 19304fi 19305rm -f core conftest.err conftest.$ac_objext \ 19306 conftest$ac_exeext conftest.$ac_ext 19307LIBS=$ac_check_lib_save_LIBS 19308fi 19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19310$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19311if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19312 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19313fi 19314 19315 fi 19316fi 19317rm -f core conftest.err conftest.$ac_objext \ 19318 conftest$ac_exeext conftest.$ac_ext 19319 LIBS="$ac_xsave_LIBS" 19320 19321 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 19322 # to get the SysV transport functions. 19323 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19324 # needs -lnsl. 19325 # The nsl library prevents programs from opening the X display 19326 # on Irix 5.2, according to T.E. Dickey. 19327 # The functions gethostbyname, getservbyname, and inet_addr are 19328 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19329 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19330if test "x$ac_cv_func_gethostbyname" = xyes; then : 19331 19332fi 19333 19334 if test $ac_cv_func_gethostbyname = no; then 19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19336$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19337if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19338 $as_echo_n "(cached) " >&6 19339else 19340 ac_check_lib_save_LIBS=$LIBS 19341LIBS="-lnsl $LIBS" 19342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19343/* end confdefs.h. */ 19344 19345/* Override any GCC internal prototype to avoid an error. 19346 Use char because int might match the return type of a GCC 19347 builtin and then its argument prototype would still apply. */ 19348#ifdef __cplusplus 19349extern "C" 19350#endif 19351char gethostbyname (); 19352int 19353main () 19354{ 19355return gethostbyname (); 19356 ; 19357 return 0; 19358} 19359_ACEOF 19360if ac_fn_c_try_link "$LINENO"; then : 19361 ac_cv_lib_nsl_gethostbyname=yes 19362else 19363 ac_cv_lib_nsl_gethostbyname=no 19364fi 19365rm -f core conftest.err conftest.$ac_objext \ 19366 conftest$ac_exeext conftest.$ac_ext 19367LIBS=$ac_check_lib_save_LIBS 19368fi 19369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19370$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19371if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19373fi 19374 19375 if test $ac_cv_lib_nsl_gethostbyname = no; then 19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19377$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19378if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19379 $as_echo_n "(cached) " >&6 19380else 19381 ac_check_lib_save_LIBS=$LIBS 19382LIBS="-lbsd $LIBS" 19383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19384/* end confdefs.h. */ 19385 19386/* Override any GCC internal prototype to avoid an error. 19387 Use char because int might match the return type of a GCC 19388 builtin and then its argument prototype would still apply. */ 19389#ifdef __cplusplus 19390extern "C" 19391#endif 19392char gethostbyname (); 19393int 19394main () 19395{ 19396return gethostbyname (); 19397 ; 19398 return 0; 19399} 19400_ACEOF 19401if ac_fn_c_try_link "$LINENO"; then : 19402 ac_cv_lib_bsd_gethostbyname=yes 19403else 19404 ac_cv_lib_bsd_gethostbyname=no 19405fi 19406rm -f core conftest.err conftest.$ac_objext \ 19407 conftest$ac_exeext conftest.$ac_ext 19408LIBS=$ac_check_lib_save_LIBS 19409fi 19410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19411$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19412if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19414fi 19415 19416 fi 19417 fi 19418 19419 # [email protected] says without -lsocket, 19420 # socket/setsockopt and other routines are undefined under SCO ODT 19421 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19422 # on later versions), says Simon Leinen: it contains gethostby* 19423 # variants that don't use the name server (or something). -lsocket 19424 # must be given before -lnsl if both are needed. We assume that 19425 # if connect needs -lnsl, so does gethostbyname. 19426 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19427if test "x$ac_cv_func_connect" = xyes; then : 19428 19429fi 19430 19431 if test $ac_cv_func_connect = no; then 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19433$as_echo_n "checking for connect in -lsocket... " >&6; } 19434if ${ac_cv_lib_socket_connect+:} false; then : 19435 $as_echo_n "(cached) " >&6 19436else 19437 ac_check_lib_save_LIBS=$LIBS 19438LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19440/* end confdefs.h. */ 19441 19442/* Override any GCC internal prototype to avoid an error. 19443 Use char because int might match the return type of a GCC 19444 builtin and then its argument prototype would still apply. */ 19445#ifdef __cplusplus 19446extern "C" 19447#endif 19448char connect (); 19449int 19450main () 19451{ 19452return connect (); 19453 ; 19454 return 0; 19455} 19456_ACEOF 19457if ac_fn_c_try_link "$LINENO"; then : 19458 ac_cv_lib_socket_connect=yes 19459else 19460 ac_cv_lib_socket_connect=no 19461fi 19462rm -f core conftest.err conftest.$ac_objext \ 19463 conftest$ac_exeext conftest.$ac_ext 19464LIBS=$ac_check_lib_save_LIBS 19465fi 19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19467$as_echo "$ac_cv_lib_socket_connect" >&6; } 19468if test "x$ac_cv_lib_socket_connect" = xyes; then : 19469 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19470fi 19471 19472 fi 19473 19474 # Guillermo Gomez says -lposix is necessary on A/UX. 19475 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19476if test "x$ac_cv_func_remove" = xyes; then : 19477 19478fi 19479 19480 if test $ac_cv_func_remove = no; then 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19482$as_echo_n "checking for remove in -lposix... " >&6; } 19483if ${ac_cv_lib_posix_remove+:} false; then : 19484 $as_echo_n "(cached) " >&6 19485else 19486 ac_check_lib_save_LIBS=$LIBS 19487LIBS="-lposix $LIBS" 19488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19489/* end confdefs.h. */ 19490 19491/* Override any GCC internal prototype to avoid an error. 19492 Use char because int might match the return type of a GCC 19493 builtin and then its argument prototype would still apply. */ 19494#ifdef __cplusplus 19495extern "C" 19496#endif 19497char remove (); 19498int 19499main () 19500{ 19501return remove (); 19502 ; 19503 return 0; 19504} 19505_ACEOF 19506if ac_fn_c_try_link "$LINENO"; then : 19507 ac_cv_lib_posix_remove=yes 19508else 19509 ac_cv_lib_posix_remove=no 19510fi 19511rm -f core conftest.err conftest.$ac_objext \ 19512 conftest$ac_exeext conftest.$ac_ext 19513LIBS=$ac_check_lib_save_LIBS 19514fi 19515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19516$as_echo "$ac_cv_lib_posix_remove" >&6; } 19517if test "x$ac_cv_lib_posix_remove" = xyes; then : 19518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19519fi 19520 19521 fi 19522 19523 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19524 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19525if test "x$ac_cv_func_shmat" = xyes; then : 19526 19527fi 19528 19529 if test $ac_cv_func_shmat = no; then 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19531$as_echo_n "checking for shmat in -lipc... " >&6; } 19532if ${ac_cv_lib_ipc_shmat+:} false; then : 19533 $as_echo_n "(cached) " >&6 19534else 19535 ac_check_lib_save_LIBS=$LIBS 19536LIBS="-lipc $LIBS" 19537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19538/* end confdefs.h. */ 19539 19540/* Override any GCC internal prototype to avoid an error. 19541 Use char because int might match the return type of a GCC 19542 builtin and then its argument prototype would still apply. */ 19543#ifdef __cplusplus 19544extern "C" 19545#endif 19546char shmat (); 19547int 19548main () 19549{ 19550return shmat (); 19551 ; 19552 return 0; 19553} 19554_ACEOF 19555if ac_fn_c_try_link "$LINENO"; then : 19556 ac_cv_lib_ipc_shmat=yes 19557else 19558 ac_cv_lib_ipc_shmat=no 19559fi 19560rm -f core conftest.err conftest.$ac_objext \ 19561 conftest$ac_exeext conftest.$ac_ext 19562LIBS=$ac_check_lib_save_LIBS 19563fi 19564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19565$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19566if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19568fi 19569 19570 fi 19571 fi 19572 19573 # Check for libraries that X11R6 Xt/Xaw programs need. 19574 ac_save_LDFLAGS=$LDFLAGS 19575 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19576 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19577 # check for ICE first), but we must link in the order -lSM -lICE or 19578 # we get undefined symbols. So assume we have SM if we have ICE. 19579 # These have to be linked with before -lX11, unlike the other 19580 # libraries we check for below, so use a different variable. 19581 # John Interrante, Karl Berry 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19583$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19584if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19585 $as_echo_n "(cached) " >&6 19586else 19587 ac_check_lib_save_LIBS=$LIBS 19588LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19590/* end confdefs.h. */ 19591 19592/* Override any GCC internal prototype to avoid an error. 19593 Use char because int might match the return type of a GCC 19594 builtin and then its argument prototype would still apply. */ 19595#ifdef __cplusplus 19596extern "C" 19597#endif 19598char IceConnectionNumber (); 19599int 19600main () 19601{ 19602return IceConnectionNumber (); 19603 ; 19604 return 0; 19605} 19606_ACEOF 19607if ac_fn_c_try_link "$LINENO"; then : 19608 ac_cv_lib_ICE_IceConnectionNumber=yes 19609else 19610 ac_cv_lib_ICE_IceConnectionNumber=no 19611fi 19612rm -f core conftest.err conftest.$ac_objext \ 19613 conftest$ac_exeext conftest.$ac_ext 19614LIBS=$ac_check_lib_save_LIBS 19615fi 19616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19617$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19618if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19619 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19620fi 19621 19622 LDFLAGS=$ac_save_LDFLAGS 19623 19624fi 19625 19626 19627 19628 19629 19630ac_ext=c 19631ac_cpp='$CPP $CPPFLAGS' 19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19634ac_compiler_gnu=$ac_cv_c_compiler_gnu 19635 19636ax_pthread_ok=no 19637 19638 19639if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 19640 save_CFLAGS="$CFLAGS" 19641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19642 save_LIBS="$LIBS" 19643 LIBS="$PTHREAD_LIBS $LIBS" 19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 19645$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19647/* end confdefs.h. */ 19648 19649/* Override any GCC internal prototype to avoid an error. 19650 Use char because int might match the return type of a GCC 19651 builtin and then its argument prototype would still apply. */ 19652#ifdef __cplusplus 19653extern "C" 19654#endif 19655char pthread_join (); 19656int 19657main () 19658{ 19659return pthread_join (); 19660 ; 19661 return 0; 19662} 19663_ACEOF 19664if ac_fn_c_try_link "$LINENO"; then : 19665 ax_pthread_ok=yes 19666fi 19667rm -f core conftest.err conftest.$ac_objext \ 19668 conftest$ac_exeext conftest.$ac_ext 19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19670$as_echo "$ax_pthread_ok" >&6; } 19671 if test x"$ax_pthread_ok" = xno; then 19672 PTHREAD_LIBS="" 19673 PTHREAD_CFLAGS="" 19674 fi 19675 LIBS="$save_LIBS" 19676 CFLAGS="$save_CFLAGS" 19677fi 19678 19679 19680 19681ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19682 19683 19684 19685case "${host_cpu}-${host_os}" in 19686 *solaris*) 19687 19688 19689 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 19690 ;; 19691 19692 *-darwin*) 19693 ax_pthread_flags="-pthread $ax_pthread_flags" 19694 ;; 19695esac 19696 19697if test x"$ax_pthread_ok" = xno; then 19698for flag in $ax_pthread_flags; do 19699 19700 case $flag in 19701 none) 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19703$as_echo_n "checking whether pthreads work without any flags... " >&6; } 19704 ;; 19705 19706 -*) 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 19708$as_echo_n "checking whether pthreads work with $flag... " >&6; } 19709 PTHREAD_CFLAGS="$flag" 19710 ;; 19711 19712 pthread-config) 19713 # Extract the first word of "pthread-config", so it can be a program name with args. 19714set dummy pthread-config; ac_word=$2 19715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19716$as_echo_n "checking for $ac_word... " >&6; } 19717if ${ac_cv_prog_ax_pthread_config+:} false; then : 19718 $as_echo_n "(cached) " >&6 19719else 19720 if test -n "$ax_pthread_config"; then 19721 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19722else 19723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19724for as_dir in $PATH 19725do 19726 IFS=$as_save_IFS 19727 test -z "$as_dir" && as_dir=. 19728 for ac_exec_ext in '' $ac_executable_extensions; do 19729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19730 ac_cv_prog_ax_pthread_config="yes" 19731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19732 break 2 19733 fi 19734done 19735 done 19736IFS=$as_save_IFS 19737 19738 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19739fi 19740fi 19741ax_pthread_config=$ac_cv_prog_ax_pthread_config 19742if test -n "$ax_pthread_config"; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19744$as_echo "$ax_pthread_config" >&6; } 19745else 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19747$as_echo "no" >&6; } 19748fi 19749 19750 19751 if test x"$ax_pthread_config" = xno; then continue; fi 19752 PTHREAD_CFLAGS="`pthread-config --cflags`" 19753 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19754 ;; 19755 19756 *) 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 19758$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 19759 PTHREAD_LIBS="-l$flag" 19760 ;; 19761 esac 19762 19763 save_LIBS="$LIBS" 19764 save_CFLAGS="$CFLAGS" 19765 LIBS="$PTHREAD_LIBS $LIBS" 19766 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19767 19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19769/* end confdefs.h. */ 19770#include <pthread.h> 19771 static void routine(void* a) {a=0;} 19772 static void* start_routine(void* a) {return a;} 19773int 19774main () 19775{ 19776pthread_t th; pthread_attr_t attr; 19777 pthread_create(&th,0,start_routine,0); 19778 pthread_join(th, 0); 19779 pthread_attr_init(&attr); 19780 pthread_cleanup_push(routine, 0); 19781 pthread_cleanup_pop(0); 19782 ; 19783 return 0; 19784} 19785_ACEOF 19786if ac_fn_c_try_link "$LINENO"; then : 19787 ax_pthread_ok=yes 19788fi 19789rm -f core conftest.err conftest.$ac_objext \ 19790 conftest$ac_exeext conftest.$ac_ext 19791 19792 LIBS="$save_LIBS" 19793 CFLAGS="$save_CFLAGS" 19794 19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19796$as_echo "$ax_pthread_ok" >&6; } 19797 if test "x$ax_pthread_ok" = xyes; then 19798 break; 19799 fi 19800 19801 PTHREAD_LIBS="" 19802 PTHREAD_CFLAGS="" 19803done 19804fi 19805 19806if test "x$ax_pthread_ok" = xyes; then 19807 save_LIBS="$LIBS" 19808 LIBS="$PTHREAD_LIBS $LIBS" 19809 save_CFLAGS="$CFLAGS" 19810 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19811 19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19813$as_echo_n "checking for joinable pthread attribute... " >&6; } 19814 attr_name=unknown 19815 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19817/* end confdefs.h. */ 19818#include <pthread.h> 19819int 19820main () 19821{ 19822int attr=$attr; return attr; 19823 ; 19824 return 0; 19825} 19826_ACEOF 19827if ac_fn_c_try_link "$LINENO"; then : 19828 attr_name=$attr; break 19829fi 19830rm -f core conftest.err conftest.$ac_objext \ 19831 conftest$ac_exeext conftest.$ac_ext 19832 done 19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 19834$as_echo "$attr_name" >&6; } 19835 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 19836 19837cat >>confdefs.h <<_ACEOF 19838#define PTHREAD_CREATE_JOINABLE $attr_name 19839_ACEOF 19840 19841 fi 19842 19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19844$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19845 flag=no 19846 case "${host_cpu}-${host_os}" in 19847 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19848 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19849 esac 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19851$as_echo "${flag}" >&6; } 19852 if test "x$flag" != xno; then 19853 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19854 fi 19855 19856 LIBS="$save_LIBS" 19857 CFLAGS="$save_CFLAGS" 19858 19859 if test x"$GCC" != xyes; then 19860 for ac_prog in xlc_r cc_r 19861do 19862 # Extract the first word of "$ac_prog", so it can be a program name with args. 19863set dummy $ac_prog; ac_word=$2 19864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19865$as_echo_n "checking for $ac_word... " >&6; } 19866if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19867 $as_echo_n "(cached) " >&6 19868else 19869 if test -n "$PTHREAD_CC"; then 19870 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19871else 19872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19873for as_dir in $PATH 19874do 19875 IFS=$as_save_IFS 19876 test -z "$as_dir" && as_dir=. 19877 for ac_exec_ext in '' $ac_executable_extensions; do 19878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19879 ac_cv_prog_PTHREAD_CC="$ac_prog" 19880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19881 break 2 19882 fi 19883done 19884 done 19885IFS=$as_save_IFS 19886 19887fi 19888fi 19889PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19890if test -n "$PTHREAD_CC"; then 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19892$as_echo "$PTHREAD_CC" >&6; } 19893else 19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19895$as_echo "no" >&6; } 19896fi 19897 19898 19899 test -n "$PTHREAD_CC" && break 19900done 19901test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19902 19903 else 19904 PTHREAD_CC=$CC 19905 fi 19906else 19907 PTHREAD_CC="$CC" 19908fi 19909 19910 19911 19912 19913 19914if test x"$ax_pthread_ok" = xyes; then 19915 19916$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19917 19918 : 19919else 19920 ax_pthread_ok=no 19921 19922fi 19923ac_ext=c 19924ac_cpp='$CPP $CPPFLAGS' 19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19927ac_compiler_gnu=$ac_cv_c_compiler_gnu 19928 19929 19930 19931 19932ac_ext=c 19933ac_cpp='$CPP $CPPFLAGS' 19934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19936ac_compiler_gnu=$ac_cv_c_compiler_gnu 19937 19938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19939$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19940if ${ax_cv_c_compiler_ms+:} false; then : 19941 $as_echo_n "(cached) " >&6 19942else 19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19944/* end confdefs.h. */ 19945 19946int 19947main () 19948{ 19949#ifndef _MSC_VER 19950 choke me 19951#endif 19952 19953 ; 19954 return 0; 19955} 19956_ACEOF 19957if ac_fn_c_try_compile "$LINENO"; then : 19958 ax_compiler_ms=yes 19959else 19960 ax_compiler_ms=no 19961fi 19962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19963ax_cv_c_compiler_ms=$ax_compiler_ms 19964 19965fi 19966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19967$as_echo "$ax_cv_c_compiler_ms" >&6; } 19968if test X$ax_compiler_ms = Xno; then : 19969 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19970fi 19971 19972if test "X$no_x" != "Xyes"; then : 19973 if test -n "$x_includes"; then : 19974 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19975fi 19976 if test -n "$x_libraries"; then : 19977 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19978fi 19979fi 19980 19981ax_save_CPPFLAGS="${CPPFLAGS}" 19982CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19983for ac_header in GL/gl.h OpenGL/gl.h 19984do : 19985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19986ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19988 cat >>confdefs.h <<_ACEOF 19989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19990_ACEOF 19991 19992fi 19993 19994done 19995 19996CPPFLAGS="${ax_save_CPPFLAGS}" 19997 19998for ac_header in windows.h 19999do : 20000 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 20001if test "x$ac_cv_header_windows_h" = xyes; then : 20002 cat >>confdefs.h <<_ACEOF 20003#define HAVE_WINDOWS_H 1 20004_ACEOF 20005 20006fi 20007 20008done 20009 20010 20011 20012 20013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 20014$as_echo_n "checking for OpenGL library... " >&6; } 20015if ${ax_cv_check_gl_libgl+:} false; then : 20016 $as_echo_n "(cached) " >&6 20017else 20018 ax_cv_check_gl_libgl="no" 20019case $host_cpu in 20020 x86_64) ax_check_gl_libdir=lib64 ;; 20021 *) ax_check_gl_libdir=lib ;; 20022esac 20023ax_save_CPPFLAGS="${CPPFLAGS}" 20024CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20025ax_save_LIBS="${LIBS}" 20026LIBS="" 20027ax_check_libs="-lopengl32 -lGL" 20028for ax_lib in ${ax_check_libs}; do 20029 if test X$ax_compiler_ms = Xyes; then : 20030 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20031else 20032 ax_try_lib="${ax_lib}" 20033fi 20034 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20036/* end confdefs.h. */ 20037 20038# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20039# include <windows.h> 20040# endif 20041# ifdef HAVE_GL_GL_H 20042# include <GL/gl.h> 20043# elif defined(HAVE_OPENGL_GL_H) 20044# include <OpenGL/gl.h> 20045# else 20046# error no gl.h 20047# endif 20048int 20049main () 20050{ 20051glBegin(0) 20052 ; 20053 return 0; 20054} 20055_ACEOF 20056if ac_fn_c_try_link "$LINENO"; then : 20057 ax_cv_check_gl_libgl="${ax_try_lib}"; break 20058else 20059 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}" 20060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20061/* end confdefs.h. */ 20062 20063# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20064# include <windows.h> 20065# endif 20066# ifdef HAVE_GL_GL_H 20067# include <GL/gl.h> 20068# elif defined(HAVE_OPENGL_GL_H) 20069# include <OpenGL/gl.h> 20070# else 20071# error no gl.h 20072# endif 20073int 20074main () 20075{ 20076glBegin(0) 20077 ; 20078 return 0; 20079} 20080_ACEOF 20081if ac_fn_c_try_link "$LINENO"; then : 20082 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 20083else 20084 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}" 20085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20086/* end confdefs.h. */ 20087 20088# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20089# include <windows.h> 20090# endif 20091# ifdef HAVE_GL_GL_H 20092# include <GL/gl.h> 20093# elif defined(HAVE_OPENGL_GL_H) 20094# include <OpenGL/gl.h> 20095# else 20096# error no gl.h 20097# endif 20098int 20099main () 20100{ 20101glBegin(0) 20102 ; 20103 return 0; 20104} 20105_ACEOF 20106if ac_fn_c_try_link "$LINENO"; then : 20107 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 20108fi 20109rm -f core conftest.err conftest.$ac_objext \ 20110 conftest$ac_exeext conftest.$ac_ext 20111fi 20112rm -f core conftest.err conftest.$ac_objext \ 20113 conftest$ac_exeext conftest.$ac_ext 20114fi 20115rm -f core conftest.err conftest.$ac_objext \ 20116 conftest$ac_exeext conftest.$ac_ext 20117done 20118 20119if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 20120 LIBS='-framework OpenGL' 20121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20122/* end confdefs.h. */ 20123 20124# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20125# include <windows.h> 20126# endif 20127# ifdef HAVE_GL_GL_H 20128# include <GL/gl.h> 20129# elif defined(HAVE_OPENGL_GL_H) 20130# include <OpenGL/gl.h> 20131# else 20132# error no gl.h 20133# endif 20134int 20135main () 20136{ 20137glBegin(0) 20138 ; 20139 return 0; 20140} 20141_ACEOF 20142if ac_fn_c_try_link "$LINENO"; then : 20143 ax_cv_check_gl_libgl="$LIBS" 20144fi 20145rm -f core conftest.err conftest.$ac_objext \ 20146 conftest$ac_exeext conftest.$ac_ext 20147fi 20148 20149LIBS=${ax_save_LIBS} 20150CPPFLAGS=${ax_save_CPPFLAGS} 20151fi 20152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 20153$as_echo "$ax_cv_check_gl_libgl" >&6; } 20154 20155if test "X$ax_cv_check_gl_libgl" = Xno; then : 20156 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 20157else 20158 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 20159fi 20160ac_ext=c 20161ac_cpp='$CPP $CPPFLAGS' 20162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20164ac_compiler_gnu=$ac_cv_c_compiler_gnu 20165 20166 20167 20168 20169 20170 20171GLU_CFLAGS="${GL_CFLAGS}" 20172 20173ax_save_CPPFLAGS="${CPPFLAGS}" 20174CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20175for ac_header in GL/glu.h OpenGL/glu.h 20176do : 20177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20178ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20179if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20180 cat >>confdefs.h <<_ACEOF 20181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20182_ACEOF 20183 20184fi 20185 20186done 20187 20188CPPFLAGS="${ax_save_CPPFLAGS}" 20189 20190 20191 20192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 20193$as_echo_n "checking for OpenGL Utility library... " >&6; } 20194if ${ax_cv_check_glu_libglu+:} false; then : 20195 $as_echo_n "(cached) " >&6 20196else 20197 ax_cv_check_glu_libglu="no" 20198ax_save_CPPFLAGS="${CPPFLAGS}" 20199CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20200ax_save_LIBS="${LIBS}" 20201 20202LIBS="${GL_LIBS} ${ax_save_LIBS}" 20203ac_ext=cpp 20204ac_cpp='$CXXCPP $CPPFLAGS' 20205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20208 20209if test X$ax_compiler_ms = Xyes; then : 20210 ac_ext=c 20211ac_cpp='$CPP $CPPFLAGS' 20212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20214ac_compiler_gnu=$ac_cv_c_compiler_gnu 20215 20216fi 20217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20218/* end confdefs.h. */ 20219 20220# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20221# include <windows.h> 20222# endif 20223# ifdef HAVE_GL_GLU_H 20224# include <GL/glu.h> 20225# elif defined(HAVE_OPENGL_GLU_H) 20226# include <OpenGL/glu.h> 20227# else 20228# error no glu.h 20229# endif 20230int 20231main () 20232{ 20233gluBeginCurve(0) 20234 ; 20235 return 0; 20236} 20237_ACEOF 20238if ac_fn_c_try_link "$LINENO"; then : 20239 ax_cv_check_glu_libglu=yes 20240else 20241 LIBS="" 20242ax_check_libs="-lglu32 -lGLU" 20243for ax_lib in ${ax_check_libs}; do 20244 if test X$ax_compiler_ms = Xyes; then : 20245 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20246else 20247 ax_try_lib="${ax_lib}" 20248fi 20249 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20251/* end confdefs.h. */ 20252 20253# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20254# include <windows.h> 20255# endif 20256# ifdef HAVE_GL_GLU_H 20257# include <GL/glu.h> 20258# elif defined(HAVE_OPENGL_GLU_H) 20259# include <OpenGL/glu.h> 20260# else 20261# error no glu.h 20262# endif 20263int 20264main () 20265{ 20266gluBeginCurve(0) 20267 ; 20268 return 0; 20269} 20270_ACEOF 20271if ac_fn_c_try_link "$LINENO"; then : 20272 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20273fi 20274rm -f core conftest.err conftest.$ac_objext \ 20275 conftest$ac_exeext conftest.$ac_ext 20276done 20277 20278fi 20279rm -f core conftest.err conftest.$ac_objext \ 20280 conftest$ac_exeext conftest.$ac_ext 20281if test X$ax_compiler_ms = Xyes; then : 20282 ac_ext=cpp 20283ac_cpp='$CXXCPP $CPPFLAGS' 20284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20287 20288fi 20289ac_ext=c 20290ac_cpp='$CPP $CPPFLAGS' 20291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20293ac_compiler_gnu=$ac_cv_c_compiler_gnu 20294 20295 20296LIBS=${ax_save_LIBS} 20297CPPFLAGS=${ax_save_CPPFLAGS} 20298fi 20299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 20300$as_echo "$ax_cv_check_glu_libglu" >&6; } 20301if test "X$ax_cv_check_glu_libglu" = Xno; then : 20302 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 20303else 20304 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 20305 GLU_LIBS="$GL_LIBS" 20306else 20307 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 20308fi 20309fi 20310 20311 20312 20313if test "X$ax_cv_check_glu_libglu" != Xno; then : 20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 20315$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 20316if ${ax_cv_varargs_glu_tesscb+:} false; then : 20317 $as_echo_n "(cached) " >&6 20318else 20319 ax_cv_varargs_glu_tesscb=no 20320ax_save_CFLAGS="$CFLAGS" 20321CFLAGS="$GL_CFLAGS $CFLAGS" 20322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20323/* end confdefs.h. */ 20324 20325# ifdef HAVE_GL_GLU_H 20326# include <GL/glu.h> 20327# else 20328# include <OpenGL/glu.h> 20329# endif 20330int 20331main () 20332{ 20333GLvoid (*func)(...); gluTessCallback(0, 0, func) 20334 ; 20335 return 0; 20336} 20337_ACEOF 20338if ac_fn_c_try_compile "$LINENO"; then : 20339 ax_cv_varargs_glu_tesscb=yes 20340fi 20341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20342CFLAGS="$ax_save_CFLAGS" 20343fi 20344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 20345$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 20346if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 20347 20348$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 20349 20350fi 20351fi 20352 20353 20354 20355ax_save_CPPFLAGS="${CPPFLAGS}" 20356CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 20357for ac_header in GL/glut.h GLUT/glut.h 20358do : 20359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20360ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20362 cat >>confdefs.h <<_ACEOF 20363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20364_ACEOF 20365 20366fi 20367 20368done 20369 20370CPPFLAGS="${ax_save_CPPFLAGS}" 20371 20372GLUT_CFLAGS=${GLU_CFLAGS} 20373GLUT_LIBS=${GLU_LIBS} 20374 20375 20376 20377if test X$no_x != Xyes; then : 20378 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 20379fi 20380 20381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 20382$as_echo_n "checking for GLUT library... " >&6; } 20383if ${ax_cv_check_glut_libglut+:} false; then : 20384 $as_echo_n "(cached) " >&6 20385else 20386 ax_cv_check_glut_libglut="no" 20387ac_ext=c 20388ac_cpp='$CPP $CPPFLAGS' 20389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20391ac_compiler_gnu=$ac_cv_c_compiler_gnu 20392 20393ax_save_CPPFLAGS="${CPPFLAGS}" 20394CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 20395ax_save_LIBS="${LIBS}" 20396LIBS="" 20397ax_check_libs="-lglut32 -lglut" 20398for ax_lib in ${ax_check_libs}; do 20399 if test X$ax_compiler_ms = Xyes; then : 20400 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20401else 20402 ax_try_lib="${ax_lib}" 20403fi 20404 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20406/* end confdefs.h. */ 20407 20408# if HAVE_WINDOWS_H && defined(_WIN32) 20409# include <windows.h> 20410# endif 20411# ifdef HAVE_GL_GLUT_H 20412# include <GL/glut.h> 20413# elif defined(HAVE_GLUT_GLUT_H) 20414# include <GLUT/glut.h> 20415# else 20416# error no glut.h 20417# endif 20418int 20419main () 20420{ 20421glutMainLoop() 20422 ; 20423 return 0; 20424} 20425_ACEOF 20426if ac_fn_c_try_link "$LINENO"; then : 20427 ax_cv_check_glut_libglut="${ax_try_lib}"; break 20428fi 20429rm -f core conftest.err conftest.$ac_objext \ 20430 conftest$ac_exeext conftest.$ac_ext 20431done 20432 20433if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 20434 LIBS='-framework GLUT' 20435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436/* end confdefs.h. */ 20437 20438# if HAVE_WINDOWS_H && defined(_WIN32) 20439# include <windows.h> 20440# endif 20441# ifdef HAVE_GL_GLUT_H 20442# include <GL/glut.h> 20443# elif defined(HAVE_GLUT_GLUT_H) 20444# include <GLUT/glut.h> 20445# else 20446# error no glut.h 20447# endif 20448int 20449main () 20450{ 20451glutMainLoop() 20452 ; 20453 return 0; 20454} 20455_ACEOF 20456if ac_fn_c_try_link "$LINENO"; then : 20457 ax_cv_check_glut_libglut="$LIBS" 20458fi 20459rm -f core conftest.err conftest.$ac_objext \ 20460 conftest$ac_exeext conftest.$ac_ext 20461fi 20462 20463CPPFLAGS="${ax_save_CPPFLAGS}" 20464LIBS="${ax_save_LIBS}" 20465ac_ext=c 20466ac_cpp='$CPP $CPPFLAGS' 20467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20469ac_compiler_gnu=$ac_cv_c_compiler_gnu 20470 20471fi 20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 20473$as_echo "$ax_cv_check_glut_libglut" >&6; } 20474 20475if test "X$ax_cv_check_glut_libglut" = Xno; then : 20476 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 20477else 20478 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 20479fi 20480 20481 20482 20483 20484 20485if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 20486 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 20487 HAVE_OPENGL=yes 20488fi 20489 20490 if test "$HAVE_OPENGL" = "yes"; then 20491 HAVE_OPENGL_TRUE= 20492 HAVE_OPENGL_FALSE='#' 20493else 20494 HAVE_OPENGL_TRUE='#' 20495 HAVE_OPENGL_FALSE= 20496fi 20497 20498 20499 20500# Check whether --enable-win32-io was given. 20501if test "${enable_win32_io+set}" = set; then : 20502 enableval=$enable_win32_io; 20503fi 20504 20505 20506win32_io_ok=no 20507case "${host_os}" in 20508 cygwin*) 20509 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then 20510 win32_io_ok=yes 20511 fi 20512 ;; 20513 *) 20514 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then 20515 win32_io_ok=yes 20516 fi 20517 ;; 20518esac 20519 20520if test "$win32_io_ok" = "yes" ; then 20521 20522$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 20523 20524fi 20525 20526 if test "$win32_io_ok" = yes; then 20527 WIN32_IO_TRUE= 20528 WIN32_IO_FALSE='#' 20529else 20530 WIN32_IO_TRUE='#' 20531 WIN32_IO_FALSE= 20532fi 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542# Check whether --enable-strip-chopping was given. 20543if test "${enable_strip_chopping+set}" = set; then : 20544 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 20545else 20546 HAVE_STRIPCHOP=yes 20547fi 20548 20549 20550# Check whether --with-default-strip-size was given. 20551if test "${with_default_strip_size+set}" = set; then : 20552 withval=$with_default_strip_size; 20553fi 20554 20555 20556if test "$HAVE_STRIPCHOP" = "yes" \ 20557 -a "x$with_default_strip_size" != "xno"; then 20558 20559$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 20560 20561 20562 if test "x$with_default_strip_size" = "x" \ 20563 -o "x$with_default_strip_size" = "xyes"; then 20564 with_default_strip_size="8192" 20565 fi 20566 20567 20568cat >>confdefs.h <<_ACEOF 20569#define STRIP_SIZE_DEFAULT $with_default_strip_size 20570_ACEOF 20571 20572 20573fi 20574 20575 20576# Check whether --enable-defer-strile-load was given. 20577if test "${enable_defer_strile_load+set}" = set; then : 20578 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20579else 20580 HAVE_DEFER_STRILE_LOAD=no 20581fi 20582 20583 20584if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20585 20586$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20587 20588 20589fi 20590 20591 20592# Check whether --enable-chunky-strip-read was given. 20593if test "${enable_chunky_strip_read+set}" = set; then : 20594 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20595else 20596 HAVE_CHUNKY_STRIP_READ=no 20597fi 20598 20599 20600if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20601 20602$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20603 20604 20605fi 20606 20607 20608$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20609 20610 20611 20612# Check whether --enable-extrasample-as-alpha was given. 20613if test "${enable_extrasample_as_alpha+set}" = set; then : 20614 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20615else 20616 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20617fi 20618 20619 20620if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20621 20622$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20623 20624fi 20625 20626 20627# Check whether --enable-check-ycbcr-subsampling was given. 20628if test "${enable_check_ycbcr_subsampling+set}" = set; then : 20629 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 20630else 20631 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 20632fi 20633 20634 20635if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 20636 20637$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 20638 20639fi 20640 20641 20642 20643 20644ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 20645 20646 20647ac_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" 20648 20649cat >confcache <<\_ACEOF 20650# This file is a shell script that caches the results of configure 20651# tests run on this system so they can be shared between configure 20652# scripts and configure runs, see configure's option --config-cache. 20653# It is not useful on other systems. If it contains results you don't 20654# want to keep, you may remove or edit it. 20655# 20656# config.status only pays attention to the cache file if you give it 20657# the --recheck option to rerun configure. 20658# 20659# `ac_cv_env_foo' variables (set or unset) will be overridden when 20660# loading this file, other *unset* `ac_cv_foo' will be assigned the 20661# following values. 20662 20663_ACEOF 20664 20665# The following way of writing the cache mishandles newlines in values, 20666# but we know of no workaround that is simple, portable, and efficient. 20667# So, we kill variables containing newlines. 20668# Ultrix sh set writes to stderr and can't be redirected directly, 20669# and sets the high bit in the cache file unless we assign to the vars. 20670( 20671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20672 eval ac_val=\$$ac_var 20673 case $ac_val in #( 20674 *${as_nl}*) 20675 case $ac_var in #( 20676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20677$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20678 esac 20679 case $ac_var in #( 20680 _ | IFS | as_nl) ;; #( 20681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20682 *) { eval $ac_var=; unset $ac_var;} ;; 20683 esac ;; 20684 esac 20685 done 20686 20687 (set) 2>&1 | 20688 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20689 *${as_nl}ac_space=\ *) 20690 # `set' does not quote correctly, so add quotes: double-quote 20691 # substitution turns \\\\ into \\, and sed turns \\ into \. 20692 sed -n \ 20693 "s/'/'\\\\''/g; 20694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20695 ;; #( 20696 *) 20697 # `set' quotes correctly as required by POSIX, so do not add quotes. 20698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20699 ;; 20700 esac | 20701 sort 20702) | 20703 sed ' 20704 /^ac_cv_env_/b end 20705 t clear 20706 :clear 20707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20708 t end 20709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20710 :end' >>confcache 20711if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20712 if test -w "$cache_file"; then 20713 if test "x$cache_file" != "x/dev/null"; then 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20715$as_echo "$as_me: updating cache $cache_file" >&6;} 20716 if test ! -f "$cache_file" || test -h "$cache_file"; then 20717 cat confcache >"$cache_file" 20718 else 20719 case $cache_file in #( 20720 */* | ?:*) 20721 mv -f confcache "$cache_file"$$ && 20722 mv -f "$cache_file"$$ "$cache_file" ;; #( 20723 *) 20724 mv -f confcache "$cache_file" ;; 20725 esac 20726 fi 20727 fi 20728 else 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20730$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20731 fi 20732fi 20733rm -f confcache 20734 20735test "x$prefix" = xNONE && prefix=$ac_default_prefix 20736# Let make expand exec_prefix. 20737test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20738 20739DEFS=-DHAVE_CONFIG_H 20740 20741ac_libobjs= 20742ac_ltlibobjs= 20743U= 20744for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20745 # 1. Remove the extension, and $U if already installed. 20746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20747 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20749 # will be set to the directory where LIBOBJS objects are built. 20750 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20751 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20752done 20753LIBOBJS=$ac_libobjs 20754 20755LTLIBOBJS=$ac_ltlibobjs 20756 20757 20758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20759$as_echo_n "checking that generated files are newer than configure... " >&6; } 20760 if test -n "$am_sleep_pid"; then 20761 # Hide warnings about reused PIDs. 20762 wait $am_sleep_pid 2>/dev/null 20763 fi 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20765$as_echo "done" >&6; } 20766 if test -n "$EXEEXT"; then 20767 am__EXEEXT_TRUE= 20768 am__EXEEXT_FALSE='#' 20769else 20770 am__EXEEXT_TRUE='#' 20771 am__EXEEXT_FALSE= 20772fi 20773 20774if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20775 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20776Usually this means the macro was only invoked conditionally." "$LINENO" 5 20777fi 20778if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20779 as_fn_error $? "conditional \"AMDEP\" was never defined. 20780Usually this means the macro was only invoked conditionally." "$LINENO" 5 20781fi 20782if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20783 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20784Usually this means the macro was only invoked conditionally." "$LINENO" 5 20785fi 20786if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 20787 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 20788Usually this means the macro was only invoked conditionally." "$LINENO" 5 20789fi 20790if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20791 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20792Usually this means the macro was only invoked conditionally." "$LINENO" 5 20793fi 20794 20795if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 20796 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 20797Usually this means the macro was only invoked conditionally." "$LINENO" 5 20798fi 20799if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 20800 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 20801Usually this means the macro was only invoked conditionally." "$LINENO" 5 20802fi 20803if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 20804 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 20805Usually this means the macro was only invoked conditionally." "$LINENO" 5 20806fi 20807if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 20808 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 20809Usually this means the macro was only invoked conditionally." "$LINENO" 5 20810fi 20811 20812: "${CONFIG_STATUS=./config.status}" 20813ac_write_fail=0 20814ac_clean_files_save=$ac_clean_files 20815ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20816{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20817$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20818as_write_fail=0 20819cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20820#! $SHELL 20821# Generated by $as_me. 20822# Run this file to recreate the current configuration. 20823# Compiler output produced by configure, useful for debugging 20824# configure, is in config.log if it exists. 20825 20826debug=false 20827ac_cs_recheck=false 20828ac_cs_silent=false 20829 20830SHELL=\${CONFIG_SHELL-$SHELL} 20831export SHELL 20832_ASEOF 20833cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20834## -------------------- ## 20835## M4sh Initialization. ## 20836## -------------------- ## 20837 20838# Be more Bourne compatible 20839DUALCASE=1; export DUALCASE # for MKS sh 20840if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20841 emulate sh 20842 NULLCMD=: 20843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20844 # is contrary to our usage. Disable this feature. 20845 alias -g '${1+"$@"}'='"$@"' 20846 setopt NO_GLOB_SUBST 20847else 20848 case `(set -o) 2>/dev/null` in #( 20849 *posix*) : 20850 set -o posix ;; #( 20851 *) : 20852 ;; 20853esac 20854fi 20855 20856 20857as_nl=' 20858' 20859export as_nl 20860# Printing a long string crashes Solaris 7 /usr/bin/printf. 20861as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20862as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20864# Prefer a ksh shell builtin over an external printf program on Solaris, 20865# but without wasting forks for bash or zsh. 20866if test -z "$BASH_VERSION$ZSH_VERSION" \ 20867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20868 as_echo='print -r --' 20869 as_echo_n='print -rn --' 20870elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20871 as_echo='printf %s\n' 20872 as_echo_n='printf %s' 20873else 20874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20876 as_echo_n='/usr/ucb/echo -n' 20877 else 20878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20879 as_echo_n_body='eval 20880 arg=$1; 20881 case $arg in #( 20882 *"$as_nl"*) 20883 expr "X$arg" : "X\\(.*\\)$as_nl"; 20884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20885 esac; 20886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20887 ' 20888 export as_echo_n_body 20889 as_echo_n='sh -c $as_echo_n_body as_echo' 20890 fi 20891 export as_echo_body 20892 as_echo='sh -c $as_echo_body as_echo' 20893fi 20894 20895# The user is always right. 20896if test "${PATH_SEPARATOR+set}" != set; then 20897 PATH_SEPARATOR=: 20898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20900 PATH_SEPARATOR=';' 20901 } 20902fi 20903 20904 20905# IFS 20906# We need space, tab and new line, in precisely that order. Quoting is 20907# there to prevent editors from complaining about space-tab. 20908# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20909# splitting by setting IFS to empty value.) 20910IFS=" "" $as_nl" 20911 20912# Find who we are. Look in the path if we contain no directory separator. 20913as_myself= 20914case $0 in #(( 20915 *[\\/]* ) as_myself=$0 ;; 20916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20917for as_dir in $PATH 20918do 20919 IFS=$as_save_IFS 20920 test -z "$as_dir" && as_dir=. 20921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20922 done 20923IFS=$as_save_IFS 20924 20925 ;; 20926esac 20927# We did not find ourselves, most probably we were run as `sh COMMAND' 20928# in which case we are not to be found in the path. 20929if test "x$as_myself" = x; then 20930 as_myself=$0 20931fi 20932if test ! -f "$as_myself"; then 20933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20934 exit 1 20935fi 20936 20937# Unset variables that we do not need and which cause bugs (e.g. in 20938# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20939# suppresses any "Segmentation fault" message there. '((' could 20940# trigger a bug in pdksh 5.2.14. 20941for as_var in BASH_ENV ENV MAIL MAILPATH 20942do eval test x\${$as_var+set} = xset \ 20943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20944done 20945PS1='$ ' 20946PS2='> ' 20947PS4='+ ' 20948 20949# NLS nuisances. 20950LC_ALL=C 20951export LC_ALL 20952LANGUAGE=C 20953export LANGUAGE 20954 20955# CDPATH. 20956(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20957 20958 20959# as_fn_error STATUS ERROR [LINENO LOG_FD] 20960# ---------------------------------------- 20961# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20962# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20963# script with STATUS, using 1 if that was 0. 20964as_fn_error () 20965{ 20966 as_status=$1; test $as_status -eq 0 && as_status=1 20967 if test "$4"; then 20968 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20970 fi 20971 $as_echo "$as_me: error: $2" >&2 20972 as_fn_exit $as_status 20973} # as_fn_error 20974 20975 20976# as_fn_set_status STATUS 20977# ----------------------- 20978# Set $? to STATUS, without forking. 20979as_fn_set_status () 20980{ 20981 return $1 20982} # as_fn_set_status 20983 20984# as_fn_exit STATUS 20985# ----------------- 20986# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20987as_fn_exit () 20988{ 20989 set +e 20990 as_fn_set_status $1 20991 exit $1 20992} # as_fn_exit 20993 20994# as_fn_unset VAR 20995# --------------- 20996# Portably unset VAR. 20997as_fn_unset () 20998{ 20999 { eval $1=; unset $1;} 21000} 21001as_unset=as_fn_unset 21002# as_fn_append VAR VALUE 21003# ---------------------- 21004# Append the text in VALUE to the end of the definition contained in VAR. Take 21005# advantage of any shell optimizations that allow amortized linear growth over 21006# repeated appends, instead of the typical quadratic growth present in naive 21007# implementations. 21008if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21009 eval 'as_fn_append () 21010 { 21011 eval $1+=\$2 21012 }' 21013else 21014 as_fn_append () 21015 { 21016 eval $1=\$$1\$2 21017 } 21018fi # as_fn_append 21019 21020# as_fn_arith ARG... 21021# ------------------ 21022# Perform arithmetic evaluation on the ARGs, and store the result in the 21023# global $as_val. Take advantage of shells that can avoid forks. The arguments 21024# must be portable across $(()) and expr. 21025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21026 eval 'as_fn_arith () 21027 { 21028 as_val=$(( $* )) 21029 }' 21030else 21031 as_fn_arith () 21032 { 21033 as_val=`expr "$@" || test $? -eq 1` 21034 } 21035fi # as_fn_arith 21036 21037 21038if expr a : '\(a\)' >/dev/null 2>&1 && 21039 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21040 as_expr=expr 21041else 21042 as_expr=false 21043fi 21044 21045if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21046 as_basename=basename 21047else 21048 as_basename=false 21049fi 21050 21051if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21052 as_dirname=dirname 21053else 21054 as_dirname=false 21055fi 21056 21057as_me=`$as_basename -- "$0" || 21058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21059 X"$0" : 'X\(//\)$' \| \ 21060 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21061$as_echo X/"$0" | 21062 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21063 s//\1/ 21064 q 21065 } 21066 /^X\/\(\/\/\)$/{ 21067 s//\1/ 21068 q 21069 } 21070 /^X\/\(\/\).*/{ 21071 s//\1/ 21072 q 21073 } 21074 s/.*/./; q'` 21075 21076# Avoid depending upon Character Ranges. 21077as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21079as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21080as_cr_digits='0123456789' 21081as_cr_alnum=$as_cr_Letters$as_cr_digits 21082 21083ECHO_C= ECHO_N= ECHO_T= 21084case `echo -n x` in #((((( 21085-n*) 21086 case `echo 'xy\c'` in 21087 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21088 xy) ECHO_C='\c';; 21089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21090 ECHO_T=' ';; 21091 esac;; 21092*) 21093 ECHO_N='-n';; 21094esac 21095 21096rm -f conf$$ conf$$.exe conf$$.file 21097if test -d conf$$.dir; then 21098 rm -f conf$$.dir/conf$$.file 21099else 21100 rm -f conf$$.dir 21101 mkdir conf$$.dir 2>/dev/null 21102fi 21103if (echo >conf$$.file) 2>/dev/null; then 21104 if ln -s conf$$.file conf$$ 2>/dev/null; then 21105 as_ln_s='ln -s' 21106 # ... but there are two gotchas: 21107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21109 # In both cases, we have to default to `cp -pR'. 21110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21111 as_ln_s='cp -pR' 21112 elif ln conf$$.file conf$$ 2>/dev/null; then 21113 as_ln_s=ln 21114 else 21115 as_ln_s='cp -pR' 21116 fi 21117else 21118 as_ln_s='cp -pR' 21119fi 21120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21121rmdir conf$$.dir 2>/dev/null 21122 21123 21124# as_fn_mkdir_p 21125# ------------- 21126# Create "$as_dir" as a directory, including parents if necessary. 21127as_fn_mkdir_p () 21128{ 21129 21130 case $as_dir in #( 21131 -*) as_dir=./$as_dir;; 21132 esac 21133 test -d "$as_dir" || eval $as_mkdir_p || { 21134 as_dirs= 21135 while :; do 21136 case $as_dir in #( 21137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21138 *) as_qdir=$as_dir;; 21139 esac 21140 as_dirs="'$as_qdir' $as_dirs" 21141 as_dir=`$as_dirname -- "$as_dir" || 21142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21143 X"$as_dir" : 'X\(//\)[^/]' \| \ 21144 X"$as_dir" : 'X\(//\)$' \| \ 21145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21146$as_echo X"$as_dir" | 21147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\/\)[^/].*/{ 21152 s//\1/ 21153 q 21154 } 21155 /^X\(\/\/\)$/{ 21156 s//\1/ 21157 q 21158 } 21159 /^X\(\/\).*/{ 21160 s//\1/ 21161 q 21162 } 21163 s/.*/./; q'` 21164 test -d "$as_dir" && break 21165 done 21166 test -z "$as_dirs" || eval "mkdir $as_dirs" 21167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21168 21169 21170} # as_fn_mkdir_p 21171if mkdir -p . 2>/dev/null; then 21172 as_mkdir_p='mkdir -p "$as_dir"' 21173else 21174 test -d ./-p && rmdir ./-p 21175 as_mkdir_p=false 21176fi 21177 21178 21179# as_fn_executable_p FILE 21180# ----------------------- 21181# Test if FILE is an executable regular file. 21182as_fn_executable_p () 21183{ 21184 test -f "$1" && test -x "$1" 21185} # as_fn_executable_p 21186as_test_x='test -x' 21187as_executable_p=as_fn_executable_p 21188 21189# Sed expression to map a string onto a valid CPP name. 21190as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21191 21192# Sed expression to map a string onto a valid variable name. 21193as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21194 21195 21196exec 6>&1 21197## ----------------------------------- ## 21198## Main body of $CONFIG_STATUS script. ## 21199## ----------------------------------- ## 21200_ASEOF 21201test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21202 21203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21204# Save the log message, to keep $0 and so on meaningful, and to 21205# report actual input values of CONFIG_FILES etc. instead of their 21206# values after options handling. 21207ac_log=" 21208This file was extended by LibTIFF Software $as_me 4.0.4beta, which was 21209generated by GNU Autoconf 2.69. Invocation command line was 21210 21211 CONFIG_FILES = $CONFIG_FILES 21212 CONFIG_HEADERS = $CONFIG_HEADERS 21213 CONFIG_LINKS = $CONFIG_LINKS 21214 CONFIG_COMMANDS = $CONFIG_COMMANDS 21215 $ $0 $@ 21216 21217on `(hostname || uname -n) 2>/dev/null | sed 1q` 21218" 21219 21220_ACEOF 21221 21222case $ac_config_files in *" 21223"*) set x $ac_config_files; shift; ac_config_files=$*;; 21224esac 21225 21226case $ac_config_headers in *" 21227"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21228esac 21229 21230 21231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21232# Files that config.status was made for. 21233config_files="$ac_config_files" 21234config_headers="$ac_config_headers" 21235config_commands="$ac_config_commands" 21236 21237_ACEOF 21238 21239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21240ac_cs_usage="\ 21241\`$as_me' instantiates files and other configuration actions 21242from templates according to the current configuration. Unless the files 21243and actions are specified as TAGs, all are instantiated by default. 21244 21245Usage: $0 [OPTION]... [TAG]... 21246 21247 -h, --help print this help, then exit 21248 -V, --version print version number and configuration settings, then exit 21249 --config print configuration, then exit 21250 -q, --quiet, --silent 21251 do not print progress messages 21252 -d, --debug don't remove temporary files 21253 --recheck update $as_me by reconfiguring in the same conditions 21254 --file=FILE[:TEMPLATE] 21255 instantiate the configuration file FILE 21256 --header=FILE[:TEMPLATE] 21257 instantiate the configuration header FILE 21258 21259Configuration files: 21260$config_files 21261 21262Configuration headers: 21263$config_headers 21264 21265Configuration commands: 21266$config_commands 21267 21268Report bugs to <[email protected]>." 21269 21270_ACEOF 21271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21272ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21273ac_cs_version="\\ 21274LibTIFF Software config.status 4.0.4beta 21275configured by $0, generated by GNU Autoconf 2.69, 21276 with options \\"\$ac_cs_config\\" 21277 21278Copyright (C) 2012 Free Software Foundation, Inc. 21279This config.status script is free software; the Free Software Foundation 21280gives unlimited permission to copy, distribute and modify it." 21281 21282ac_pwd='$ac_pwd' 21283srcdir='$srcdir' 21284INSTALL='$INSTALL' 21285MKDIR_P='$MKDIR_P' 21286AWK='$AWK' 21287test -n "\$AWK" || AWK=awk 21288_ACEOF 21289 21290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21291# The default lists apply if the user does not specify any file. 21292ac_need_defaults=: 21293while test $# != 0 21294do 21295 case $1 in 21296 --*=?*) 21297 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21299 ac_shift=: 21300 ;; 21301 --*=) 21302 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21303 ac_optarg= 21304 ac_shift=: 21305 ;; 21306 *) 21307 ac_option=$1 21308 ac_optarg=$2 21309 ac_shift=shift 21310 ;; 21311 esac 21312 21313 case $ac_option in 21314 # Handling of the options. 21315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21316 ac_cs_recheck=: ;; 21317 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21318 $as_echo "$ac_cs_version"; exit ;; 21319 --config | --confi | --conf | --con | --co | --c ) 21320 $as_echo "$ac_cs_config"; exit ;; 21321 --debug | --debu | --deb | --de | --d | -d ) 21322 debug=: ;; 21323 --file | --fil | --fi | --f ) 21324 $ac_shift 21325 case $ac_optarg in 21326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21327 '') as_fn_error $? "missing file argument" ;; 21328 esac 21329 as_fn_append CONFIG_FILES " '$ac_optarg'" 21330 ac_need_defaults=false;; 21331 --header | --heade | --head | --hea ) 21332 $ac_shift 21333 case $ac_optarg in 21334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21335 esac 21336 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21337 ac_need_defaults=false;; 21338 --he | --h) 21339 # Conflict between --help and --header 21340 as_fn_error $? "ambiguous option: \`$1' 21341Try \`$0 --help' for more information.";; 21342 --help | --hel | -h ) 21343 $as_echo "$ac_cs_usage"; exit ;; 21344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21345 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21346 ac_cs_silent=: ;; 21347 21348 # This is an error. 21349 -*) as_fn_error $? "unrecognized option: \`$1' 21350Try \`$0 --help' for more information." ;; 21351 21352 *) as_fn_append ac_config_targets " $1" 21353 ac_need_defaults=false ;; 21354 21355 esac 21356 shift 21357done 21358 21359ac_configure_extra_args= 21360 21361if $ac_cs_silent; then 21362 exec 6>/dev/null 21363 ac_configure_extra_args="$ac_configure_extra_args --silent" 21364fi 21365 21366_ACEOF 21367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21368if \$ac_cs_recheck; then 21369 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21370 shift 21371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21372 CONFIG_SHELL='$SHELL' 21373 export CONFIG_SHELL 21374 exec "\$@" 21375fi 21376 21377_ACEOF 21378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21379exec 5>>config.log 21380{ 21381 echo 21382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21383## Running $as_me. ## 21384_ASBOX 21385 $as_echo "$ac_log" 21386} >&5 21387 21388_ACEOF 21389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21390# 21391# INIT-COMMANDS 21392# 21393AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21394 21395 21396# The HP-UX ksh and POSIX shell print the target directory to stdout 21397# if CDPATH is set. 21398(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21399 21400sed_quote_subst='$sed_quote_subst' 21401double_quote_subst='$double_quote_subst' 21402delay_variable_subst='$delay_variable_subst' 21403macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21404macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21405AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21406DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21407OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21408enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21409enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21410pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21411enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21412shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21413SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21414ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21415PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21416host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21417host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21418host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21419build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21420build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21421build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21422SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21423Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21424GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21425EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21426FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21427LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21428NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21429LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21430max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21431ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21432exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21433lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21434lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21435lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21436lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21437lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21438reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21439reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21440deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21441file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21442file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21443want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21444sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21445AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21446AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21447archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21448STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21449RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21450old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21451old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21452old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21453lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21454CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21455CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21456compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21457GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21458lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21459lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21460lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21461lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21462lt_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"`' 21463lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21464nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21465lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21466lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21467objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21468MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21469lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21470lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21471lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21472lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21473lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21474need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21475MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21476DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21477NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21478LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21479OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21480OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21481libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21482shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21483extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21484archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21485enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21486export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21487whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21488compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21489old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21490old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21491archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21492archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21493module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21494module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21495with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21496allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21497no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21498hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21499hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21500hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21501hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21502hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21503hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21504hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21505inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21506link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21507always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21508export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21509exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21510include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21511prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21512postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21513file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21514variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21515need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21516need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21517version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21518runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21519shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21520shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21521libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21522library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21523soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21524install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21525postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21526postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21527finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21528finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21529hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21530sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21531sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21532hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21533enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21534enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21535enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21536old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21537striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21538compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21539predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21540postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21541predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21542postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21543compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21544LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21545reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21546reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21547old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21548compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21549GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21550lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21551lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21552lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21553lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21554lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21555archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21556enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21557export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21558whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21559compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21560old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21561old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21562archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21563archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21564module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21565module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21566with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21567allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21568no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21569hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21570hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21571hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21572hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21573hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21574hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21575hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21576inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21577link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21578always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21579export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21580exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21581include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21582prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21583postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21584file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21585hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21586compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21587predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21588postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21589predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21590postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21591compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21592 21593LTCC='$LTCC' 21594LTCFLAGS='$LTCFLAGS' 21595compiler='$compiler_DEFAULT' 21596 21597# A function that is used when there is no print builtin or printf. 21598func_fallback_echo () 21599{ 21600 eval 'cat <<_LTECHO_EOF 21601\$1 21602_LTECHO_EOF' 21603} 21604 21605# Quote evaled strings. 21606for var in AS \ 21607DLLTOOL \ 21608OBJDUMP \ 21609SHELL \ 21610ECHO \ 21611PATH_SEPARATOR \ 21612SED \ 21613GREP \ 21614EGREP \ 21615FGREP \ 21616LD \ 21617NM \ 21618LN_S \ 21619lt_SP2NL \ 21620lt_NL2SP \ 21621reload_flag \ 21622deplibs_check_method \ 21623file_magic_cmd \ 21624file_magic_glob \ 21625want_nocaseglob \ 21626sharedlib_from_linklib_cmd \ 21627AR \ 21628AR_FLAGS \ 21629archiver_list_spec \ 21630STRIP \ 21631RANLIB \ 21632CC \ 21633CFLAGS \ 21634compiler \ 21635lt_cv_sys_global_symbol_pipe \ 21636lt_cv_sys_global_symbol_to_cdecl \ 21637lt_cv_sys_global_symbol_to_import \ 21638lt_cv_sys_global_symbol_to_c_name_address \ 21639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21640lt_cv_nm_interface \ 21641nm_file_list_spec \ 21642lt_cv_truncate_bin \ 21643lt_prog_compiler_no_builtin_flag \ 21644lt_prog_compiler_pic \ 21645lt_prog_compiler_wl \ 21646lt_prog_compiler_static \ 21647lt_cv_prog_compiler_c_o \ 21648need_locks \ 21649MANIFEST_TOOL \ 21650DSYMUTIL \ 21651NMEDIT \ 21652LIPO \ 21653OTOOL \ 21654OTOOL64 \ 21655shrext_cmds \ 21656export_dynamic_flag_spec \ 21657whole_archive_flag_spec \ 21658compiler_needs_object \ 21659with_gnu_ld \ 21660allow_undefined_flag \ 21661no_undefined_flag \ 21662hardcode_libdir_flag_spec \ 21663hardcode_libdir_separator \ 21664exclude_expsyms \ 21665include_expsyms \ 21666file_list_spec \ 21667variables_saved_for_relink \ 21668libname_spec \ 21669library_names_spec \ 21670soname_spec \ 21671install_override_mode \ 21672finish_eval \ 21673old_striplib \ 21674striplib \ 21675compiler_lib_search_dirs \ 21676predep_objects \ 21677postdep_objects \ 21678predeps \ 21679postdeps \ 21680compiler_lib_search_path \ 21681LD_CXX \ 21682reload_flag_CXX \ 21683compiler_CXX \ 21684lt_prog_compiler_no_builtin_flag_CXX \ 21685lt_prog_compiler_pic_CXX \ 21686lt_prog_compiler_wl_CXX \ 21687lt_prog_compiler_static_CXX \ 21688lt_cv_prog_compiler_c_o_CXX \ 21689export_dynamic_flag_spec_CXX \ 21690whole_archive_flag_spec_CXX \ 21691compiler_needs_object_CXX \ 21692with_gnu_ld_CXX \ 21693allow_undefined_flag_CXX \ 21694no_undefined_flag_CXX \ 21695hardcode_libdir_flag_spec_CXX \ 21696hardcode_libdir_separator_CXX \ 21697exclude_expsyms_CXX \ 21698include_expsyms_CXX \ 21699file_list_spec_CXX \ 21700compiler_lib_search_dirs_CXX \ 21701predep_objects_CXX \ 21702postdep_objects_CXX \ 21703predeps_CXX \ 21704postdeps_CXX \ 21705compiler_lib_search_path_CXX; do 21706 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21707 *[\\\\\\\`\\"\\\$]*) 21708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21709 ;; 21710 *) 21711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21712 ;; 21713 esac 21714done 21715 21716# Double-quote double-evaled strings. 21717for var in reload_cmds \ 21718old_postinstall_cmds \ 21719old_postuninstall_cmds \ 21720old_archive_cmds \ 21721extract_expsyms_cmds \ 21722old_archive_from_new_cmds \ 21723old_archive_from_expsyms_cmds \ 21724archive_cmds \ 21725archive_expsym_cmds \ 21726module_cmds \ 21727module_expsym_cmds \ 21728export_symbols_cmds \ 21729prelink_cmds \ 21730postlink_cmds \ 21731postinstall_cmds \ 21732postuninstall_cmds \ 21733finish_cmds \ 21734sys_lib_search_path_spec \ 21735sys_lib_dlsearch_path_spec \ 21736reload_cmds_CXX \ 21737old_archive_cmds_CXX \ 21738old_archive_from_new_cmds_CXX \ 21739old_archive_from_expsyms_cmds_CXX \ 21740archive_cmds_CXX \ 21741archive_expsym_cmds_CXX \ 21742module_cmds_CXX \ 21743module_expsym_cmds_CXX \ 21744export_symbols_cmds_CXX \ 21745prelink_cmds_CXX \ 21746postlink_cmds_CXX; do 21747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21748 *[\\\\\\\`\\"\\\$]*) 21749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21750 ;; 21751 *) 21752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21753 ;; 21754 esac 21755done 21756 21757ac_aux_dir='$ac_aux_dir' 21758 21759# See if we are running on zsh, and set the options that allow our 21760# commands through without removal of \ escapes INIT. 21761if test -n "\${ZSH_VERSION+set}"; then 21762 setopt NO_GLOB_SUBST 21763fi 21764 21765 21766 PACKAGE='$PACKAGE' 21767 VERSION='$VERSION' 21768 RM='$RM' 21769 ofile='$ofile' 21770 21771 21772 21773 21774 21775 21776_ACEOF 21777 21778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21779 21780# Handling of arguments. 21781for ac_config_target in $ac_config_targets 21782do 21783 case $ac_config_target in 21784 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21785 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21786 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 21787 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 21788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21789 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 21790 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 21791 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 21792 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 21793 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 21794 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 21795 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 21796 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 21797 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 21798 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 21799 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 21800 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 21801 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 21802 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 21803 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 21804 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 21805 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 21806 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21807 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 21808 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21809 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21810 21811 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21812 esac 21813done 21814 21815 21816# If the user did not use the arguments to specify the items to instantiate, 21817# then the envvar interface is used. Set only those that are not. 21818# We use the long form for the default assignment because of an extremely 21819# bizarre bug on SunOS 4.1.3. 21820if $ac_need_defaults; then 21821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21824fi 21825 21826# Have a temporary directory for convenience. Make it in the build tree 21827# simply because there is no reason against having it here, and in addition, 21828# creating and moving files from /tmp can sometimes cause problems. 21829# Hook for its removal unless debugging. 21830# Note that there is a small window in which the directory will not be cleaned: 21831# after its creation but before its name has been assigned to `$tmp'. 21832$debug || 21833{ 21834 tmp= ac_tmp= 21835 trap 'exit_status=$? 21836 : "${ac_tmp:=$tmp}" 21837 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21838' 0 21839 trap 'as_fn_exit 1' 1 2 13 15 21840} 21841# Create a (secure) tmp directory for tmp files. 21842 21843{ 21844 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21845 test -d "$tmp" 21846} || 21847{ 21848 tmp=./conf$$-$RANDOM 21849 (umask 077 && mkdir "$tmp") 21850} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21851ac_tmp=$tmp 21852 21853# Set up the scripts for CONFIG_FILES section. 21854# No need to generate them if there are no CONFIG_FILES. 21855# This happens for instance with `./config.status config.h'. 21856if test -n "$CONFIG_FILES"; then 21857 21858 21859ac_cr=`echo X | tr X '\015'` 21860# On cygwin, bash can eat \r inside `` if the user requested igncr. 21861# But we know of no other shell where ac_cr would be empty at this 21862# point, so we can use a bashism as a fallback. 21863if test "x$ac_cr" = x; then 21864 eval ac_cr=\$\'\\r\' 21865fi 21866ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21867if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21868 ac_cs_awk_cr='\\r' 21869else 21870 ac_cs_awk_cr=$ac_cr 21871fi 21872 21873echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21874_ACEOF 21875 21876 21877{ 21878 echo "cat >conf$$subs.awk <<_ACEOF" && 21879 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21880 echo "_ACEOF" 21881} >conf$$subs.sh || 21882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21883ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21884ac_delim='%!_!# ' 21885for ac_last_try in false false false false false :; do 21886 . ./conf$$subs.sh || 21887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21888 21889 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21890 if test $ac_delim_n = $ac_delim_num; then 21891 break 21892 elif $ac_last_try; then 21893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21894 else 21895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21896 fi 21897done 21898rm -f conf$$subs.sh 21899 21900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21901cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21902_ACEOF 21903sed -n ' 21904h 21905s/^/S["/; s/!.*/"]=/ 21906p 21907g 21908s/^[^!]*!// 21909:repl 21910t repl 21911s/'"$ac_delim"'$// 21912t delim 21913:nl 21914h 21915s/\(.\{148\}\)..*/\1/ 21916t more1 21917s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21918p 21919n 21920b repl 21921:more1 21922s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21923p 21924g 21925s/.\{148\}// 21926t nl 21927:delim 21928h 21929s/\(.\{148\}\)..*/\1/ 21930t more2 21931s/["\\]/\\&/g; s/^/"/; s/$/"/ 21932p 21933b 21934:more2 21935s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21936p 21937g 21938s/.\{148\}// 21939t delim 21940' <conf$$subs.awk | sed ' 21941/^[^""]/{ 21942 N 21943 s/\n// 21944} 21945' >>$CONFIG_STATUS || ac_write_fail=1 21946rm -f conf$$subs.awk 21947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21948_ACAWK 21949cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21950 for (key in S) S_is_set[key] = 1 21951 FS = "" 21952 21953} 21954{ 21955 line = $ 0 21956 nfields = split(line, field, "@") 21957 substed = 0 21958 len = length(field[1]) 21959 for (i = 2; i < nfields; i++) { 21960 key = field[i] 21961 keylen = length(key) 21962 if (S_is_set[key]) { 21963 value = S[key] 21964 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21965 len += length(value) + length(field[++i]) 21966 substed = 1 21967 } else 21968 len += 1 + keylen 21969 } 21970 21971 print line 21972} 21973 21974_ACAWK 21975_ACEOF 21976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21977if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21978 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21979else 21980 cat 21981fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21982 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21983_ACEOF 21984 21985# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21986# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21987# trailing colons and then remove the whole line if VPATH becomes empty 21988# (actually we leave an empty line to preserve line numbers). 21989if test "x$srcdir" = x.; then 21990 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21991h 21992s/// 21993s/^/:/ 21994s/[ ]*$/:/ 21995s/:\$(srcdir):/:/g 21996s/:\${srcdir}:/:/g 21997s/:@srcdir@:/:/g 21998s/^:*// 21999s/:*$// 22000x 22001s/\(=[ ]*\).*/\1/ 22002G 22003s/\n// 22004s/^[^=]*=[ ]*$// 22005}' 22006fi 22007 22008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22009fi # test -n "$CONFIG_FILES" 22010 22011# Set up the scripts for CONFIG_HEADERS section. 22012# No need to generate them if there are no CONFIG_HEADERS. 22013# This happens for instance with `./config.status Makefile'. 22014if test -n "$CONFIG_HEADERS"; then 22015cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22016BEGIN { 22017_ACEOF 22018 22019# Transform confdefs.h into an awk script `defines.awk', embedded as 22020# here-document in config.status, that substitutes the proper values into 22021# config.h.in to produce config.h. 22022 22023# Create a delimiter string that does not exist in confdefs.h, to ease 22024# handling of long lines. 22025ac_delim='%!_!# ' 22026for ac_last_try in false false :; do 22027 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22028 if test -z "$ac_tt"; then 22029 break 22030 elif $ac_last_try; then 22031 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22032 else 22033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22034 fi 22035done 22036 22037# For the awk script, D is an array of macro values keyed by name, 22038# likewise P contains macro parameters if any. Preserve backslash 22039# newline sequences. 22040 22041ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22042sed -n ' 22043s/.\{148\}/&'"$ac_delim"'/g 22044t rset 22045:rset 22046s/^[ ]*#[ ]*define[ ][ ]*/ / 22047t def 22048d 22049:def 22050s/\\$// 22051t bsnl 22052s/["\\]/\\&/g 22053s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22054D["\1"]=" \3"/p 22055s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22056d 22057:bsnl 22058s/["\\]/\\&/g 22059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22060D["\1"]=" \3\\\\\\n"\\/p 22061t cont 22062s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22063t cont 22064d 22065:cont 22066n 22067s/.\{148\}/&'"$ac_delim"'/g 22068t clear 22069:clear 22070s/\\$// 22071t bsnlc 22072s/["\\]/\\&/g; s/^/"/; s/$/"/p 22073d 22074:bsnlc 22075s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22076b cont 22077' <confdefs.h | sed ' 22078s/'"$ac_delim"'/"\\\ 22079"/g' >>$CONFIG_STATUS || ac_write_fail=1 22080 22081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22082 for (key in D) D_is_set[key] = 1 22083 FS = "" 22084} 22085/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22086 line = \$ 0 22087 split(line, arg, " ") 22088 if (arg[1] == "#") { 22089 defundef = arg[2] 22090 mac1 = arg[3] 22091 } else { 22092 defundef = substr(arg[1], 2) 22093 mac1 = arg[2] 22094 } 22095 split(mac1, mac2, "(") #) 22096 macro = mac2[1] 22097 prefix = substr(line, 1, index(line, defundef) - 1) 22098 if (D_is_set[macro]) { 22099 # Preserve the white space surrounding the "#". 22100 print prefix "define", macro P[macro] D[macro] 22101 next 22102 } else { 22103 # Replace #undef with comments. This is necessary, for example, 22104 # in the case of _POSIX_SOURCE, which is predefined and required 22105 # on some systems where configure will not decide to define it. 22106 if (defundef == "undef") { 22107 print "/*", prefix defundef, macro, "*/" 22108 next 22109 } 22110 } 22111} 22112{ print } 22113_ACAWK 22114_ACEOF 22115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22116 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22117fi # test -n "$CONFIG_HEADERS" 22118 22119 22120eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22121shift 22122for ac_tag 22123do 22124 case $ac_tag in 22125 :[FHLC]) ac_mode=$ac_tag; continue;; 22126 esac 22127 case $ac_mode$ac_tag in 22128 :[FHL]*:*);; 22129 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22130 :[FH]-) ac_tag=-:-;; 22131 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22132 esac 22133 ac_save_IFS=$IFS 22134 IFS=: 22135 set x $ac_tag 22136 IFS=$ac_save_IFS 22137 shift 22138 ac_file=$1 22139 shift 22140 22141 case $ac_mode in 22142 :L) ac_source=$1;; 22143 :[FH]) 22144 ac_file_inputs= 22145 for ac_f 22146 do 22147 case $ac_f in 22148 -) ac_f="$ac_tmp/stdin";; 22149 *) # Look for the file first in the build tree, then in the source tree 22150 # (if the path is not absolute). The absolute path cannot be DOS-style, 22151 # because $ac_f cannot contain `:'. 22152 test -f "$ac_f" || 22153 case $ac_f in 22154 [\\/$]*) false;; 22155 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22156 esac || 22157 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22158 esac 22159 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22160 as_fn_append ac_file_inputs " '$ac_f'" 22161 done 22162 22163 # Let's still pretend it is `configure' which instantiates (i.e., don't 22164 # use $as_me), people would be surprised to read: 22165 # /* config.h. Generated by config.status. */ 22166 configure_input='Generated from '` 22167 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22168 `' by configure.' 22169 if test x"$ac_file" != x-; then 22170 configure_input="$ac_file. $configure_input" 22171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22172$as_echo "$as_me: creating $ac_file" >&6;} 22173 fi 22174 # Neutralize special characters interpreted by sed in replacement strings. 22175 case $configure_input in #( 22176 *\&* | *\|* | *\\* ) 22177 ac_sed_conf_input=`$as_echo "$configure_input" | 22178 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22179 *) ac_sed_conf_input=$configure_input;; 22180 esac 22181 22182 case $ac_tag in 22183 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22185 esac 22186 ;; 22187 esac 22188 22189 ac_dir=`$as_dirname -- "$ac_file" || 22190$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22191 X"$ac_file" : 'X\(//\)[^/]' \| \ 22192 X"$ac_file" : 'X\(//\)$' \| \ 22193 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22194$as_echo X"$ac_file" | 22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22196 s//\1/ 22197 q 22198 } 22199 /^X\(\/\/\)[^/].*/{ 22200 s//\1/ 22201 q 22202 } 22203 /^X\(\/\/\)$/{ 22204 s//\1/ 22205 q 22206 } 22207 /^X\(\/\).*/{ 22208 s//\1/ 22209 q 22210 } 22211 s/.*/./; q'` 22212 as_dir="$ac_dir"; as_fn_mkdir_p 22213 ac_builddir=. 22214 22215case "$ac_dir" in 22216.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22217*) 22218 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22219 # A ".." for each directory in $ac_dir_suffix. 22220 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22221 case $ac_top_builddir_sub in 22222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22224 esac ;; 22225esac 22226ac_abs_top_builddir=$ac_pwd 22227ac_abs_builddir=$ac_pwd$ac_dir_suffix 22228# for backward compatibility: 22229ac_top_builddir=$ac_top_build_prefix 22230 22231case $srcdir in 22232 .) # We are building in place. 22233 ac_srcdir=. 22234 ac_top_srcdir=$ac_top_builddir_sub 22235 ac_abs_top_srcdir=$ac_pwd ;; 22236 [\\/]* | ?:[\\/]* ) # Absolute name. 22237 ac_srcdir=$srcdir$ac_dir_suffix; 22238 ac_top_srcdir=$srcdir 22239 ac_abs_top_srcdir=$srcdir ;; 22240 *) # Relative name. 22241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22242 ac_top_srcdir=$ac_top_build_prefix$srcdir 22243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22244esac 22245ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22246 22247 22248 case $ac_mode in 22249 :F) 22250 # 22251 # CONFIG_FILE 22252 # 22253 22254 case $INSTALL in 22255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22256 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22257 esac 22258 ac_MKDIR_P=$MKDIR_P 22259 case $MKDIR_P in 22260 [\\/$]* | ?:[\\/]* ) ;; 22261 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22262 esac 22263_ACEOF 22264 22265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22266# If the template does not know about datarootdir, expand it. 22267# FIXME: This hack should be removed a few years after 2.60. 22268ac_datarootdir_hack=; ac_datarootdir_seen= 22269ac_sed_dataroot=' 22270/datarootdir/ { 22271 p 22272 q 22273} 22274/@datadir@/p 22275/@docdir@/p 22276/@infodir@/p 22277/@localedir@/p 22278/@mandir@/p' 22279case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22280*datarootdir*) ac_datarootdir_seen=yes;; 22281*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22283$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22284_ACEOF 22285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22286 ac_datarootdir_hack=' 22287 s&@datadir@&$datadir&g 22288 s&@docdir@&$docdir&g 22289 s&@infodir@&$infodir&g 22290 s&@localedir@&$localedir&g 22291 s&@mandir@&$mandir&g 22292 s&\\\${datarootdir}&$datarootdir&g' ;; 22293esac 22294_ACEOF 22295 22296# Neutralize VPATH when `$srcdir' = `.'. 22297# Shell code in configure.ac might set extrasub. 22298# FIXME: do we really want to maintain this feature? 22299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22300ac_sed_extra="$ac_vpsub 22301$extrasub 22302_ACEOF 22303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22304:t 22305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22306s|@configure_input@|$ac_sed_conf_input|;t t 22307s&@top_builddir@&$ac_top_builddir_sub&;t t 22308s&@top_build_prefix@&$ac_top_build_prefix&;t t 22309s&@srcdir@&$ac_srcdir&;t t 22310s&@abs_srcdir@&$ac_abs_srcdir&;t t 22311s&@top_srcdir@&$ac_top_srcdir&;t t 22312s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22313s&@builddir@&$ac_builddir&;t t 22314s&@abs_builddir@&$ac_abs_builddir&;t t 22315s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22316s&@INSTALL@&$ac_INSTALL&;t t 22317s&@MKDIR_P@&$ac_MKDIR_P&;t t 22318$ac_datarootdir_hack 22319" 22320eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22321 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22322 22323test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22324 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22326 "$ac_tmp/out"`; test -z "$ac_out"; } && 22327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22328which seems to be undefined. Please make sure it is defined" >&5 22329$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22330which seems to be undefined. Please make sure it is defined" >&2;} 22331 22332 rm -f "$ac_tmp/stdin" 22333 case $ac_file in 22334 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22335 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22336 esac \ 22337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22338 ;; 22339 :H) 22340 # 22341 # CONFIG_HEADER 22342 # 22343 if test x"$ac_file" != x-; then 22344 { 22345 $as_echo "/* $configure_input */" \ 22346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22347 } >"$ac_tmp/config.h" \ 22348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22349 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22351$as_echo "$as_me: $ac_file is unchanged" >&6;} 22352 else 22353 rm -f "$ac_file" 22354 mv "$ac_tmp/config.h" "$ac_file" \ 22355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22356 fi 22357 else 22358 $as_echo "/* $configure_input */" \ 22359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22360 || as_fn_error $? "could not create -" "$LINENO" 5 22361 fi 22362# Compute "$ac_file"'s index in $config_headers. 22363_am_arg="$ac_file" 22364_am_stamp_count=1 22365for _am_header in $config_headers :; do 22366 case $_am_header in 22367 $_am_arg | $_am_arg:* ) 22368 break ;; 22369 * ) 22370 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22371 esac 22372done 22373echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22374$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22375 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22376 X"$_am_arg" : 'X\(//\)$' \| \ 22377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22378$as_echo X"$_am_arg" | 22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22380 s//\1/ 22381 q 22382 } 22383 /^X\(\/\/\)[^/].*/{ 22384 s//\1/ 22385 q 22386 } 22387 /^X\(\/\/\)$/{ 22388 s//\1/ 22389 q 22390 } 22391 /^X\(\/\).*/{ 22392 s//\1/ 22393 q 22394 } 22395 s/.*/./; q'`/stamp-h$_am_stamp_count 22396 ;; 22397 22398 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22399$as_echo "$as_me: executing $ac_file commands" >&6;} 22400 ;; 22401 esac 22402 22403 22404 case $ac_file$ac_mode in 22405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22406 # Older Autoconf quotes --file arguments for eval, but not when files 22407 # are listed without --file. Let's play safe and only enable the eval 22408 # if we detect the quoting. 22409 case $CONFIG_FILES in 22410 *\'*) eval set x "$CONFIG_FILES" ;; 22411 *) set x $CONFIG_FILES ;; 22412 esac 22413 shift 22414 for mf 22415 do 22416 # Strip MF so we end up with the name of the file. 22417 mf=`echo "$mf" | sed -e 's/:.*$//'` 22418 # Check whether this is an Automake generated Makefile or not. 22419 # We used to match only the files named 'Makefile.in', but 22420 # some people rename them; so instead we look at the file content. 22421 # Grep'ing the first line is not enough: some people post-process 22422 # each Makefile.in and add a new line on top of each file to say so. 22423 # Grep'ing the whole file is not good either: AIX grep has a line 22424 # limit of 2048, but all sed's we know have understand at least 4000. 22425 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22426 dirpart=`$as_dirname -- "$mf" || 22427$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22428 X"$mf" : 'X\(//\)[^/]' \| \ 22429 X"$mf" : 'X\(//\)$' \| \ 22430 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22431$as_echo X"$mf" | 22432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22433 s//\1/ 22434 q 22435 } 22436 /^X\(\/\/\)[^/].*/{ 22437 s//\1/ 22438 q 22439 } 22440 /^X\(\/\/\)$/{ 22441 s//\1/ 22442 q 22443 } 22444 /^X\(\/\).*/{ 22445 s//\1/ 22446 q 22447 } 22448 s/.*/./; q'` 22449 else 22450 continue 22451 fi 22452 # Extract the definition of DEPDIR, am__include, and am__quote 22453 # from the Makefile without running 'make'. 22454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22455 test -z "$DEPDIR" && continue 22456 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22457 test -z "$am__include" && continue 22458 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22459 # Find all dependency output files, they are included files with 22460 # $(DEPDIR) in their names. We invoke sed twice because it is the 22461 # simplest approach to changing $(DEPDIR) to its actual value in the 22462 # expansion. 22463 for file in `sed -n " 22464 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22465 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22466 # Make sure the directory exists. 22467 test -f "$dirpart/$file" && continue 22468 fdir=`$as_dirname -- "$file" || 22469$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22470 X"$file" : 'X\(//\)[^/]' \| \ 22471 X"$file" : 'X\(//\)$' \| \ 22472 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22473$as_echo X"$file" | 22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22475 s//\1/ 22476 q 22477 } 22478 /^X\(\/\/\)[^/].*/{ 22479 s//\1/ 22480 q 22481 } 22482 /^X\(\/\/\)$/{ 22483 s//\1/ 22484 q 22485 } 22486 /^X\(\/\).*/{ 22487 s//\1/ 22488 q 22489 } 22490 s/.*/./; q'` 22491 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22492 # echo "creating $dirpart/$file" 22493 echo '# dummy' > "$dirpart/$file" 22494 done 22495 done 22496} 22497 ;; 22498 "libtool":C) 22499 22500 # See if we are running on zsh, and set the options that allow our 22501 # commands through without removal of \ escapes. 22502 if test -n "${ZSH_VERSION+set}"; then 22503 setopt NO_GLOB_SUBST 22504 fi 22505 22506 cfgfile=${ofile}T 22507 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22508 $RM "$cfgfile" 22509 22510 cat <<_LT_EOF >> "$cfgfile" 22511#! $SHELL 22512# Generated automatically by $as_me ($PACKAGE) $VERSION 22513# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22514# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22515 22516# Provide generalized library-building support services. 22517# Written by Gordon Matzigkeit, 1996 22518 22519# Copyright (C) 2014 Free Software Foundation, Inc. 22520# This is free software; see the source for copying conditions. There is NO 22521# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22522 22523# GNU Libtool is free software; you can redistribute it and/or modify 22524# it under the terms of the GNU General Public License as published by 22525# the Free Software Foundation; either version 2 of of the License, or 22526# (at your option) any later version. 22527# 22528# As a special exception to the GNU General Public License, if you 22529# distribute this file as part of a program or library that is built 22530# using GNU Libtool, you may include this file under the same 22531# distribution terms that you use for the rest of that program. 22532# 22533# GNU Libtool is distributed in the hope that it will be useful, but 22534# WITHOUT ANY WARRANTY; without even the implied warranty of 22535# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22536# GNU General Public License for more details. 22537# 22538# You should have received a copy of the GNU General Public License 22539# along with this program. If not, see <http://www.gnu.org/licenses/>. 22540 22541 22542# The names of the tagged configurations supported by this script. 22543available_tags='CXX ' 22544 22545# ### BEGIN LIBTOOL CONFIG 22546 22547# Which release of libtool.m4 was used? 22548macro_version=$macro_version 22549macro_revision=$macro_revision 22550 22551# Assembler program. 22552AS=$lt_AS 22553 22554# DLL creation program. 22555DLLTOOL=$lt_DLLTOOL 22556 22557# Object dumper program. 22558OBJDUMP=$lt_OBJDUMP 22559 22560# Whether or not to build shared libraries. 22561build_libtool_libs=$enable_shared 22562 22563# Whether or not to build static libraries. 22564build_old_libs=$enable_static 22565 22566# What type of objects to build. 22567pic_mode=$pic_mode 22568 22569# Whether or not to optimize for fast installation. 22570fast_install=$enable_fast_install 22571 22572# Shared archive member basename,for filename based shared library versioning on AIX. 22573shared_archive_member_spec=$shared_archive_member_spec 22574 22575# Shell to use when invoking shell scripts. 22576SHELL=$lt_SHELL 22577 22578# An echo program that protects backslashes. 22579ECHO=$lt_ECHO 22580 22581# The PATH separator for the build system. 22582PATH_SEPARATOR=$lt_PATH_SEPARATOR 22583 22584# The host system. 22585host_alias=$host_alias 22586host=$host 22587host_os=$host_os 22588 22589# The build system. 22590build_alias=$build_alias 22591build=$build 22592build_os=$build_os 22593 22594# A sed program that does not truncate output. 22595SED=$lt_SED 22596 22597# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22598Xsed="\$SED -e 1s/^X//" 22599 22600# A grep program that handles long lines. 22601GREP=$lt_GREP 22602 22603# An ERE matcher. 22604EGREP=$lt_EGREP 22605 22606# A literal string matcher. 22607FGREP=$lt_FGREP 22608 22609# A BSD- or MS-compatible name lister. 22610NM=$lt_NM 22611 22612# Whether we need soft or hard links. 22613LN_S=$lt_LN_S 22614 22615# What is the maximum length of a command? 22616max_cmd_len=$max_cmd_len 22617 22618# Object file suffix (normally "o"). 22619objext=$ac_objext 22620 22621# Executable file suffix (normally ""). 22622exeext=$exeext 22623 22624# whether the shell understands "unset". 22625lt_unset=$lt_unset 22626 22627# turn spaces into newlines. 22628SP2NL=$lt_lt_SP2NL 22629 22630# turn newlines into spaces. 22631NL2SP=$lt_lt_NL2SP 22632 22633# convert \$build file names to \$host format. 22634to_host_file_cmd=$lt_cv_to_host_file_cmd 22635 22636# convert \$build files to toolchain format. 22637to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22638 22639# Method to check whether dependent libraries are shared objects. 22640deplibs_check_method=$lt_deplibs_check_method 22641 22642# Command to use when deplibs_check_method = "file_magic". 22643file_magic_cmd=$lt_file_magic_cmd 22644 22645# How to find potential files when deplibs_check_method = "file_magic". 22646file_magic_glob=$lt_file_magic_glob 22647 22648# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22649want_nocaseglob=$lt_want_nocaseglob 22650 22651# Command to associate shared and link libraries. 22652sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22653 22654# The archiver. 22655AR=$lt_AR 22656 22657# Flags to create an archive. 22658AR_FLAGS=$lt_AR_FLAGS 22659 22660# How to feed a file listing to the archiver. 22661archiver_list_spec=$lt_archiver_list_spec 22662 22663# A symbol stripping program. 22664STRIP=$lt_STRIP 22665 22666# Commands used to install an old-style archive. 22667RANLIB=$lt_RANLIB 22668old_postinstall_cmds=$lt_old_postinstall_cmds 22669old_postuninstall_cmds=$lt_old_postuninstall_cmds 22670 22671# Whether to use a lock for old archive extraction. 22672lock_old_archive_extraction=$lock_old_archive_extraction 22673 22674# A C compiler. 22675LTCC=$lt_CC 22676 22677# LTCC compiler flags. 22678LTCFLAGS=$lt_CFLAGS 22679 22680# Take the output of nm and produce a listing of raw symbols and C names. 22681global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22682 22683# Transform the output of nm in a proper C declaration. 22684global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22685 22686# Transform the output of nm into a list of symbols to manually relocate. 22687global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22688 22689# Transform the output of nm in a C name address pair. 22690global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22691 22692# Transform the output of nm in a C name address pair when lib prefix is needed. 22693global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22694 22695# The name lister interface. 22696nm_interface=$lt_lt_cv_nm_interface 22697 22698# Specify filename containing input files for \$NM. 22699nm_file_list_spec=$lt_nm_file_list_spec 22700 22701# The root where to search for dependent libraries,and where our libraries should be installed. 22702lt_sysroot=$lt_sysroot 22703 22704# Command to truncate a binary pipe. 22705lt_truncate_bin=$lt_lt_cv_truncate_bin 22706 22707# The name of the directory that contains temporary libtool files. 22708objdir=$objdir 22709 22710# Used to examine libraries when file_magic_cmd begins with "file". 22711MAGIC_CMD=$MAGIC_CMD 22712 22713# Must we lock files when doing compilation? 22714need_locks=$lt_need_locks 22715 22716# Manifest tool. 22717MANIFEST_TOOL=$lt_MANIFEST_TOOL 22718 22719# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22720DSYMUTIL=$lt_DSYMUTIL 22721 22722# Tool to change global to local symbols on Mac OS X. 22723NMEDIT=$lt_NMEDIT 22724 22725# Tool to manipulate fat objects and archives on Mac OS X. 22726LIPO=$lt_LIPO 22727 22728# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22729OTOOL=$lt_OTOOL 22730 22731# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22732OTOOL64=$lt_OTOOL64 22733 22734# Old archive suffix (normally "a"). 22735libext=$libext 22736 22737# Shared library suffix (normally ".so"). 22738shrext_cmds=$lt_shrext_cmds 22739 22740# The commands to extract the exported symbol list from a shared archive. 22741extract_expsyms_cmds=$lt_extract_expsyms_cmds 22742 22743# Variables whose values should be saved in libtool wrapper scripts and 22744# restored at link time. 22745variables_saved_for_relink=$lt_variables_saved_for_relink 22746 22747# Do we need the "lib" prefix for modules? 22748need_lib_prefix=$need_lib_prefix 22749 22750# Do we need a version for libraries? 22751need_version=$need_version 22752 22753# Library versioning type. 22754version_type=$version_type 22755 22756# Shared library runtime path variable. 22757runpath_var=$runpath_var 22758 22759# Shared library path variable. 22760shlibpath_var=$shlibpath_var 22761 22762# Is shlibpath searched before the hard-coded library search path? 22763shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22764 22765# Format of library name prefix. 22766libname_spec=$lt_libname_spec 22767 22768# List of archive names. First name is the real one, the rest are links. 22769# The last name is the one that the linker finds with -lNAME 22770library_names_spec=$lt_library_names_spec 22771 22772# The coded name of the library, if different from the real name. 22773soname_spec=$lt_soname_spec 22774 22775# Permission mode override for installation of shared libraries. 22776install_override_mode=$lt_install_override_mode 22777 22778# Command to use after installation of a shared archive. 22779postinstall_cmds=$lt_postinstall_cmds 22780 22781# Command to use after uninstallation of a shared archive. 22782postuninstall_cmds=$lt_postuninstall_cmds 22783 22784# Commands used to finish a libtool library installation in a directory. 22785finish_cmds=$lt_finish_cmds 22786 22787# As "finish_cmds", except a single script fragment to be evaled but 22788# not shown. 22789finish_eval=$lt_finish_eval 22790 22791# Whether we should hardcode library paths into libraries. 22792hardcode_into_libs=$hardcode_into_libs 22793 22794# Compile-time system search path for libraries. 22795sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22796 22797# Run-time system search path for libraries. 22798sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22799 22800# Whether dlopen is supported. 22801dlopen_support=$enable_dlopen 22802 22803# Whether dlopen of programs is supported. 22804dlopen_self=$enable_dlopen_self 22805 22806# Whether dlopen of statically linked programs is supported. 22807dlopen_self_static=$enable_dlopen_self_static 22808 22809# Commands to strip libraries. 22810old_striplib=$lt_old_striplib 22811striplib=$lt_striplib 22812 22813 22814# The linker used to build libraries. 22815LD=$lt_LD 22816 22817# How to create reloadable object files. 22818reload_flag=$lt_reload_flag 22819reload_cmds=$lt_reload_cmds 22820 22821# Commands used to build an old-style archive. 22822old_archive_cmds=$lt_old_archive_cmds 22823 22824# A language specific compiler. 22825CC=$lt_compiler 22826 22827# Is the compiler the GNU compiler? 22828with_gcc=$GCC 22829 22830# Compiler flag to turn off builtin functions. 22831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22832 22833# Additional compiler flags for building library objects. 22834pic_flag=$lt_lt_prog_compiler_pic 22835 22836# How to pass a linker flag through the compiler. 22837wl=$lt_lt_prog_compiler_wl 22838 22839# Compiler flag to prevent dynamic linking. 22840link_static_flag=$lt_lt_prog_compiler_static 22841 22842# Does compiler simultaneously support -c and -o options? 22843compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22844 22845# Whether or not to add -lc for building shared libraries. 22846build_libtool_need_lc=$archive_cmds_need_lc 22847 22848# Whether or not to disallow shared libs when runtime libs are static. 22849allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22850 22851# Compiler flag to allow reflexive dlopens. 22852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22853 22854# Compiler flag to generate shared objects directly from archives. 22855whole_archive_flag_spec=$lt_whole_archive_flag_spec 22856 22857# Whether the compiler copes with passing no objects directly. 22858compiler_needs_object=$lt_compiler_needs_object 22859 22860# Create an old-style archive from a shared archive. 22861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22862 22863# Create a temporary old-style archive to link instead of a shared archive. 22864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22865 22866# Commands used to build a shared archive. 22867archive_cmds=$lt_archive_cmds 22868archive_expsym_cmds=$lt_archive_expsym_cmds 22869 22870# Commands used to build a loadable module if different from building 22871# a shared archive. 22872module_cmds=$lt_module_cmds 22873module_expsym_cmds=$lt_module_expsym_cmds 22874 22875# Whether we are building with GNU ld or not. 22876with_gnu_ld=$lt_with_gnu_ld 22877 22878# Flag that allows shared libraries with undefined symbols to be built. 22879allow_undefined_flag=$lt_allow_undefined_flag 22880 22881# Flag that enforces no undefined symbols. 22882no_undefined_flag=$lt_no_undefined_flag 22883 22884# Flag to hardcode \$libdir into a binary during linking. 22885# This must work even if \$libdir does not exist 22886hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22887 22888# Whether we need a single "-rpath" flag with a separated argument. 22889hardcode_libdir_separator=$lt_hardcode_libdir_separator 22890 22891# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22892# DIR into the resulting binary. 22893hardcode_direct=$hardcode_direct 22894 22895# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22896# DIR into the resulting binary and the resulting library dependency is 22897# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22898# library is relocated. 22899hardcode_direct_absolute=$hardcode_direct_absolute 22900 22901# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22902# into the resulting binary. 22903hardcode_minus_L=$hardcode_minus_L 22904 22905# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22906# into the resulting binary. 22907hardcode_shlibpath_var=$hardcode_shlibpath_var 22908 22909# Set to "yes" if building a shared library automatically hardcodes DIR 22910# into the library and all subsequent libraries and executables linked 22911# against it. 22912hardcode_automatic=$hardcode_automatic 22913 22914# Set to yes if linker adds runtime paths of dependent libraries 22915# to runtime path list. 22916inherit_rpath=$inherit_rpath 22917 22918# Whether libtool must link a program against all its dependency libraries. 22919link_all_deplibs=$link_all_deplibs 22920 22921# Set to "yes" if exported symbols are required. 22922always_export_symbols=$always_export_symbols 22923 22924# The commands to list exported symbols. 22925export_symbols_cmds=$lt_export_symbols_cmds 22926 22927# Symbols that should not be listed in the preloaded symbols. 22928exclude_expsyms=$lt_exclude_expsyms 22929 22930# Symbols that must always be exported. 22931include_expsyms=$lt_include_expsyms 22932 22933# Commands necessary for linking programs (against libraries) with templates. 22934prelink_cmds=$lt_prelink_cmds 22935 22936# Commands necessary for finishing linking programs. 22937postlink_cmds=$lt_postlink_cmds 22938 22939# Specify filename containing input files. 22940file_list_spec=$lt_file_list_spec 22941 22942# How to hardcode a shared library path into an executable. 22943hardcode_action=$hardcode_action 22944 22945# The directories searched by this compiler when creating a shared library. 22946compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22947 22948# Dependencies to place before and after the objects being linked to 22949# create a shared library. 22950predep_objects=$lt_predep_objects 22951postdep_objects=$lt_postdep_objects 22952predeps=$lt_predeps 22953postdeps=$lt_postdeps 22954 22955# The library search path used internally by the compiler when linking 22956# a shared library. 22957compiler_lib_search_path=$lt_compiler_lib_search_path 22958 22959# ### END LIBTOOL CONFIG 22960 22961_LT_EOF 22962 22963 case $host_os in 22964 aix3*) 22965 cat <<\_LT_EOF >> "$cfgfile" 22966# AIX sometimes has problems with the GCC collect2 program. For some 22967# reason, if we set the COLLECT_NAMES environment variable, the problems 22968# vanish in a puff of smoke. 22969if test set != "${COLLECT_NAMES+set}"; then 22970 COLLECT_NAMES= 22971 export COLLECT_NAMES 22972fi 22973_LT_EOF 22974 ;; 22975 esac 22976 22977 22978ltmain=$ac_aux_dir/ltmain.sh 22979 22980 22981 # We use sed instead of cat because bash on DJGPP gets confused if 22982 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22983 # text mode, it properly converts lines to CR/LF. This bash problem 22984 # is reportedly fixed, but why not run on old versions too? 22985 sed '$q' "$ltmain" >> "$cfgfile" \ 22986 || (rm -f "$cfgfile"; exit 1) 22987 22988 mv -f "$cfgfile" "$ofile" || 22989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22990 chmod +x "$ofile" 22991 22992 22993 cat <<_LT_EOF >> "$ofile" 22994 22995# ### BEGIN LIBTOOL TAG CONFIG: CXX 22996 22997# The linker used to build libraries. 22998LD=$lt_LD_CXX 22999 23000# How to create reloadable object files. 23001reload_flag=$lt_reload_flag_CXX 23002reload_cmds=$lt_reload_cmds_CXX 23003 23004# Commands used to build an old-style archive. 23005old_archive_cmds=$lt_old_archive_cmds_CXX 23006 23007# A language specific compiler. 23008CC=$lt_compiler_CXX 23009 23010# Is the compiler the GNU compiler? 23011with_gcc=$GCC_CXX 23012 23013# Compiler flag to turn off builtin functions. 23014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23015 23016# Additional compiler flags for building library objects. 23017pic_flag=$lt_lt_prog_compiler_pic_CXX 23018 23019# How to pass a linker flag through the compiler. 23020wl=$lt_lt_prog_compiler_wl_CXX 23021 23022# Compiler flag to prevent dynamic linking. 23023link_static_flag=$lt_lt_prog_compiler_static_CXX 23024 23025# Does compiler simultaneously support -c and -o options? 23026compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23027 23028# Whether or not to add -lc for building shared libraries. 23029build_libtool_need_lc=$archive_cmds_need_lc_CXX 23030 23031# Whether or not to disallow shared libs when runtime libs are static. 23032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23033 23034# Compiler flag to allow reflexive dlopens. 23035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23036 23037# Compiler flag to generate shared objects directly from archives. 23038whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23039 23040# Whether the compiler copes with passing no objects directly. 23041compiler_needs_object=$lt_compiler_needs_object_CXX 23042 23043# Create an old-style archive from a shared archive. 23044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23045 23046# Create a temporary old-style archive to link instead of a shared archive. 23047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23048 23049# Commands used to build a shared archive. 23050archive_cmds=$lt_archive_cmds_CXX 23051archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23052 23053# Commands used to build a loadable module if different from building 23054# a shared archive. 23055module_cmds=$lt_module_cmds_CXX 23056module_expsym_cmds=$lt_module_expsym_cmds_CXX 23057 23058# Whether we are building with GNU ld or not. 23059with_gnu_ld=$lt_with_gnu_ld_CXX 23060 23061# Flag that allows shared libraries with undefined symbols to be built. 23062allow_undefined_flag=$lt_allow_undefined_flag_CXX 23063 23064# Flag that enforces no undefined symbols. 23065no_undefined_flag=$lt_no_undefined_flag_CXX 23066 23067# Flag to hardcode \$libdir into a binary during linking. 23068# This must work even if \$libdir does not exist 23069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23070 23071# Whether we need a single "-rpath" flag with a separated argument. 23072hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23073 23074# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23075# DIR into the resulting binary. 23076hardcode_direct=$hardcode_direct_CXX 23077 23078# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23079# DIR into the resulting binary and the resulting library dependency is 23080# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23081# library is relocated. 23082hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23083 23084# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23085# into the resulting binary. 23086hardcode_minus_L=$hardcode_minus_L_CXX 23087 23088# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23089# into the resulting binary. 23090hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23091 23092# Set to "yes" if building a shared library automatically hardcodes DIR 23093# into the library and all subsequent libraries and executables linked 23094# against it. 23095hardcode_automatic=$hardcode_automatic_CXX 23096 23097# Set to yes if linker adds runtime paths of dependent libraries 23098# to runtime path list. 23099inherit_rpath=$inherit_rpath_CXX 23100 23101# Whether libtool must link a program against all its dependency libraries. 23102link_all_deplibs=$link_all_deplibs_CXX 23103 23104# Set to "yes" if exported symbols are required. 23105always_export_symbols=$always_export_symbols_CXX 23106 23107# The commands to list exported symbols. 23108export_symbols_cmds=$lt_export_symbols_cmds_CXX 23109 23110# Symbols that should not be listed in the preloaded symbols. 23111exclude_expsyms=$lt_exclude_expsyms_CXX 23112 23113# Symbols that must always be exported. 23114include_expsyms=$lt_include_expsyms_CXX 23115 23116# Commands necessary for linking programs (against libraries) with templates. 23117prelink_cmds=$lt_prelink_cmds_CXX 23118 23119# Commands necessary for finishing linking programs. 23120postlink_cmds=$lt_postlink_cmds_CXX 23121 23122# Specify filename containing input files. 23123file_list_spec=$lt_file_list_spec_CXX 23124 23125# How to hardcode a shared library path into an executable. 23126hardcode_action=$hardcode_action_CXX 23127 23128# The directories searched by this compiler when creating a shared library. 23129compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23130 23131# Dependencies to place before and after the objects being linked to 23132# create a shared library. 23133predep_objects=$lt_predep_objects_CXX 23134postdep_objects=$lt_postdep_objects_CXX 23135predeps=$lt_predeps_CXX 23136postdeps=$lt_postdeps_CXX 23137 23138# The library search path used internally by the compiler when linking 23139# a shared library. 23140compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23141 23142# ### END LIBTOOL TAG CONFIG: CXX 23143_LT_EOF 23144 23145 ;; 23146 23147 esac 23148done # for ac_tag 23149 23150 23151as_fn_exit 0 23152_ACEOF 23153ac_clean_files=$ac_clean_files_save 23154 23155test $ac_write_fail = 0 || 23156 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23157 23158 23159# configure is writing to config.log, and then calls config.status. 23160# config.status does its own redirection, appending to config.log. 23161# Unfortunately, on DOS this fails, as config.log is still kept open 23162# by configure, so config.status won't be able to write to it; its 23163# output is simply discarded. So we exec the FD to /dev/null, 23164# effectively closing config.log, so it can be properly (re)opened and 23165# appended to by config.status. When coming back to configure, we 23166# need to make the FD available again. 23167if test "$no_create" != yes; then 23168 ac_cs_success=: 23169 ac_config_status_args= 23170 test "$silent" = yes && 23171 ac_config_status_args="$ac_config_status_args --quiet" 23172 exec 5>/dev/null 23173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23174 exec 5>>config.log 23175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23176 # would make configure fail if this is the last instruction. 23177 $ac_cs_success || as_fn_exit 1 23178fi 23179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23182fi 23183 23184 23185 23186echo "" 23187echo "Libtiff is now configured for ${host}" 23188echo "" 23189echo " Installation directory: ${prefix}" 23190echo " Documentation directory: ${LIBTIFF_DOCDIR}" 23191echo " C compiler: ${CC} ${CFLAGS}" 23192echo " C++ compiler: ${CXX} ${CXXFLAGS}" 23193echo " Enable runtime linker paths: ${HAVE_RPATH}" 23194echo " Enable linker symbol versioning: ${have_ld_version_script}" 23195echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 23196echo " Use win32 IO: ${win32_io_ok}" 23197echo "" 23198echo " Support for internal codecs:" 23199echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 23200echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 23201echo " LZW algorithm: ${HAVE_LZW}" 23202echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 23203echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 23204echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 23205echo "" 23206echo " Support for external codecs:" 23207echo " ZLIB support: ${HAVE_ZLIB}" 23208echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 23209echo " JPEG support: ${HAVE_JPEG}" 23210echo " Old JPEG support: ${HAVE_OJPEG}" 23211echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 23212echo " ISO JBIG support: ${HAVE_JBIG}" 23213echo " LZMA2 support: ${HAVE_LZMA}" 23214echo "" 23215echo " C++ support: ${HAVE_CXX}" 23216echo "" 23217echo " OpenGL support: ${HAVE_OPENGL}" 23218echo "" 23219 23220