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.6. 4# 5# Report bugs to <tiff@lists.maptools.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: tiff@lists.maptools.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='LibTIFF Software' 592PACKAGE_TARNAME='tiff' 593PACKAGE_VERSION='4.0.6' 594PACKAGE_STRING='LibTIFF Software 4.0.6' 595PACKAGE_BUGREPORT='tiff@lists.maptools.org' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBDIR 638WIN32_IO_FALSE 639WIN32_IO_TRUE 640HAVE_OPENGL_FALSE 641HAVE_OPENGL_TRUE 642GLUT_LIBS 643GLUT_CFLAGS 644GLU_LIBS 645GLU_CFLAGS 646GL_LIBS 647GL_CFLAGS 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651ax_pthread_config 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657HAVE_CXX_FALSE 658HAVE_CXX_TRUE 659HAVE_LZMA_FALSE 660HAVE_LZMA_TRUE 661HAVE_JBIG_FALSE 662HAVE_JBIG_TRUE 663HAVE_JPEG_FALSE 664HAVE_JPEG_TRUE 665LIBTIFF_DOCDIR 666HAVE_RPATH_FALSE 667HAVE_RPATH_TRUE 668LIBOBJS 669tiff_libs_private 670CXXCPP 671am__fastdepCXX_FALSE 672am__fastdepCXX_TRUE 673CXXDEPMODE 674ac_ct_CXX 675CXXFLAGS 676CXX 677CPP 678LT_SYS_LIBRARY_PATH 679OTOOL64 680OTOOL 681LIPO 682NMEDIT 683DSYMUTIL 684MANIFEST_TOOL 685RANLIB 686ac_ct_AR 687AR 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695SED 696LIBTOOL 697OBJDUMP 698DLLTOOL 699AS 700HAVE_LD_VERSION_SCRIPT_FALSE 701HAVE_LD_VERSION_SCRIPT_TRUE 702CMAKE 703LN_S 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__quote 712am__include 713DEPDIR 714OBJEXT 715EXEEXT 716ac_ct_CC 717CPPFLAGS 718LDFLAGS 719CFLAGS 720CC 721LIBTIFF_RELEASE_DATE 722LIBTIFF_VERSION_INFO 723LIBTIFF_VERSION 724LIBTIFF_ALPHA_VERSION 725LIBTIFF_MICRO_VERSION 726LIBTIFF_MINOR_VERSION 727LIBTIFF_MAJOR_VERSION 728MAINT 729MAINTAINER_MODE_FALSE 730MAINTAINER_MODE_TRUE 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__untar 736am__tar 737AMTAR 738am__leading_dot 739SET_MAKE 740AWK 741mkdir_p 742MKDIR_P 743INSTALL_STRIP_PROGRAM 744STRIP 745install_sh 746MAKEINFO 747AUTOHEADER 748AUTOMAKE 749AUTOCONF 750ACLOCAL 751VERSION 752PACKAGE 753CYGPATH_W 754am__isrc 755INSTALL_DATA 756INSTALL_SCRIPT 757INSTALL_PROGRAM 758host_os 759host_vendor 760host_cpu 761host 762build_os 763build_vendor 764build_cpu 765build 766target_alias 767host_alias 768build_alias 769LIBS 770ECHO_T 771ECHO_N 772ECHO_C 773DEFS 774mandir 775localedir 776libdir 777psdir 778pdfdir 779dvidir 780htmldir 781infodir 782docdir 783oldincludedir 784includedir 785localstatedir 786sharedstatedir 787sysconfdir 788datadir 789datarootdir 790libexecdir 791sbindir 792bindir 793program_transform_name 794prefix 795exec_prefix 796PACKAGE_URL 797PACKAGE_BUGREPORT 798PACKAGE_STRING 799PACKAGE_VERSION 800PACKAGE_TARNAME 801PACKAGE_NAME 802PATH_SEPARATOR 803SHELL' 804ac_subst_files='' 805ac_user_opts=' 806enable_option_checking 807enable_silent_rules 808enable_maintainer_mode 809enable_dependency_tracking 810enable_ld_version_script 811enable_shared 812enable_static 813with_pic 814enable_fast_install 815with_aix_soname 816with_gnu_ld 817with_sysroot 818enable_libtool_lock 819enable_rpath 820enable_largefile 821with_docdir 822enable_ccitt 823enable_packbits 824enable_lzw 825enable_thunder 826enable_next 827enable_logluv 828enable_mdi 829enable_zlib 830with_zlib_include_dir 831with_zlib_lib_dir 832enable_pixarlog 833enable_jpeg 834with_jpeg_include_dir 835with_jpeg_lib_dir 836enable_old_jpeg 837enable_jbig 838with_jbig_include_dir 839with_jbig_lib_dir 840enable_lzma 841with_lzma_include_dir 842with_lzma_lib_dir 843enable_jpeg12 844with_jpeg12_include_dir 845with_jpeg12_lib 846enable_cxx 847with_x 848enable_win32_io 849enable_strip_chopping 850with_default_strip_size 851enable_defer_strile_load 852enable_chunky_strip_read 853enable_extrasample_as_alpha 854enable_check_ycbcr_subsampling 855' 856 ac_precious_vars='build_alias 857host_alias 858target_alias 859CC 860CFLAGS 861LDFLAGS 862LIBS 863CPPFLAGS 864LT_SYS_LIBRARY_PATH 865CPP 866CXX 867CXXFLAGS 868CCC 869CXXCPP 870XMKMF' 871 872 873# Initialize some variables set by options. 874ac_init_help= 875ac_init_version=false 876ac_unrecognized_opts= 877ac_unrecognized_sep= 878# The variables have the same names as the options, with 879# dashes changed to underlines. 880cache_file=/dev/null 881exec_prefix=NONE 882no_create= 883no_recursion= 884prefix=NONE 885program_prefix=NONE 886program_suffix=NONE 887program_transform_name=s,x,x, 888silent= 889site= 890srcdir= 891verbose= 892x_includes=NONE 893x_libraries=NONE 894 895# Installation directory options. 896# These are left unexpanded so users can "make install exec_prefix=/foo" 897# and all the variables that are supposed to be based on exec_prefix 898# by default will actually change. 899# Use braces instead of parens because sh, perl, etc. also accept them. 900# (The list follows the same order as the GNU Coding Standards.) 901bindir='${exec_prefix}/bin' 902sbindir='${exec_prefix}/sbin' 903libexecdir='${exec_prefix}/libexec' 904datarootdir='${prefix}/share' 905datadir='${datarootdir}' 906sysconfdir='${prefix}/etc' 907sharedstatedir='${prefix}/com' 908localstatedir='${prefix}/var' 909includedir='${prefix}/include' 910oldincludedir='/usr/include' 911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 912infodir='${datarootdir}/info' 913htmldir='${docdir}' 914dvidir='${docdir}' 915pdfdir='${docdir}' 916psdir='${docdir}' 917libdir='${exec_prefix}/lib' 918localedir='${datarootdir}/locale' 919mandir='${datarootdir}/man' 920 921ac_prev= 922ac_dashdash= 923for ac_option 924do 925 # If the previous option needs an argument, assign it. 926 if test -n "$ac_prev"; then 927 eval $ac_prev=\$ac_option 928 ac_prev= 929 continue 930 fi 931 932 case $ac_option in 933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 934 *=) ac_optarg= ;; 935 *) ac_optarg=yes ;; 936 esac 937 938 # Accept the important Cygnus configure options, so we can diagnose typos. 939 940 case $ac_dashdash$ac_option in 941 --) 942 ac_dashdash=yes ;; 943 944 -bindir | --bindir | --bindi | --bind | --bin | --bi) 945 ac_prev=bindir ;; 946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 947 bindir=$ac_optarg ;; 948 949 -build | --build | --buil | --bui | --bu) 950 ac_prev=build_alias ;; 951 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 952 build_alias=$ac_optarg ;; 953 954 -cache-file | --cache-file | --cache-fil | --cache-fi \ 955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 956 ac_prev=cache_file ;; 957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 959 cache_file=$ac_optarg ;; 960 961 --config-cache | -C) 962 cache_file=config.cache ;; 963 964 -datadir | --datadir | --datadi | --datad) 965 ac_prev=datadir ;; 966 -datadir=* | --datadir=* | --datadi=* | --datad=*) 967 datadir=$ac_optarg ;; 968 969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 970 | --dataroo | --dataro | --datar) 971 ac_prev=datarootdir ;; 972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 974 datarootdir=$ac_optarg ;; 975 976 -disable-* | --disable-*) 977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 978 # Reject names that are not valid shell variable names. 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 as_fn_error $? "invalid feature name: $ac_useropt" 981 ac_useropt_orig=$ac_useropt 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 983 case $ac_user_opts in 984 *" 985"enable_$ac_useropt" 986"*) ;; 987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 988 ac_unrecognized_sep=', ';; 989 esac 990 eval enable_$ac_useropt=no ;; 991 992 -docdir | --docdir | --docdi | --doc | --do) 993 ac_prev=docdir ;; 994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 995 docdir=$ac_optarg ;; 996 997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 998 ac_prev=dvidir ;; 999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1000 dvidir=$ac_optarg ;; 1001 1002 -enable-* | --enable-*) 1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1004 # Reject names that are not valid shell variable names. 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1006 as_fn_error $? "invalid feature name: $ac_useropt" 1007 ac_useropt_orig=$ac_useropt 1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1009 case $ac_user_opts in 1010 *" 1011"enable_$ac_useropt" 1012"*) ;; 1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1014 ac_unrecognized_sep=', ';; 1015 esac 1016 eval enable_$ac_useropt=\$ac_optarg ;; 1017 1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1020 | --exec | --exe | --ex) 1021 ac_prev=exec_prefix ;; 1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1024 | --exec=* | --exe=* | --ex=*) 1025 exec_prefix=$ac_optarg ;; 1026 1027 -gas | --gas | --ga | --g) 1028 # Obsolete; use --with-gas. 1029 with_gas=yes ;; 1030 1031 -help | --help | --hel | --he | -h) 1032 ac_init_help=long ;; 1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1034 ac_init_help=recursive ;; 1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1036 ac_init_help=short ;; 1037 1038 -host | --host | --hos | --ho) 1039 ac_prev=host_alias ;; 1040 -host=* | --host=* | --hos=* | --ho=*) 1041 host_alias=$ac_optarg ;; 1042 1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1044 ac_prev=htmldir ;; 1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1046 | --ht=*) 1047 htmldir=$ac_optarg ;; 1048 1049 -includedir | --includedir | --includedi | --included | --include \ 1050 | --includ | --inclu | --incl | --inc) 1051 ac_prev=includedir ;; 1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1053 | --includ=* | --inclu=* | --incl=* | --inc=*) 1054 includedir=$ac_optarg ;; 1055 1056 -infodir | --infodir | --infodi | --infod | --info | --inf) 1057 ac_prev=infodir ;; 1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1059 infodir=$ac_optarg ;; 1060 1061 -libdir | --libdir | --libdi | --libd) 1062 ac_prev=libdir ;; 1063 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1064 libdir=$ac_optarg ;; 1065 1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1067 | --libexe | --libex | --libe) 1068 ac_prev=libexecdir ;; 1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1070 | --libexe=* | --libex=* | --libe=*) 1071 libexecdir=$ac_optarg ;; 1072 1073 -localedir | --localedir | --localedi | --localed | --locale) 1074 ac_prev=localedir ;; 1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1076 localedir=$ac_optarg ;; 1077 1078 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1079 | --localstate | --localstat | --localsta | --localst | --locals) 1080 ac_prev=localstatedir ;; 1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1083 localstatedir=$ac_optarg ;; 1084 1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1086 ac_prev=mandir ;; 1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1088 mandir=$ac_optarg ;; 1089 1090 -nfp | --nfp | --nf) 1091 # Obsolete; use --without-fp. 1092 with_fp=no ;; 1093 1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1095 | --no-cr | --no-c | -n) 1096 no_create=yes ;; 1097 1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1100 no_recursion=yes ;; 1101 1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1104 | --oldin | --oldi | --old | --ol | --o) 1105 ac_prev=oldincludedir ;; 1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1109 oldincludedir=$ac_optarg ;; 1110 1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1112 ac_prev=prefix ;; 1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1114 prefix=$ac_optarg ;; 1115 1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1117 | --program-pre | --program-pr | --program-p) 1118 ac_prev=program_prefix ;; 1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1121 program_prefix=$ac_optarg ;; 1122 1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1124 | --program-suf | --program-su | --program-s) 1125 ac_prev=program_suffix ;; 1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1128 program_suffix=$ac_optarg ;; 1129 1130 -program-transform-name | --program-transform-name \ 1131 | --program-transform-nam | --program-transform-na \ 1132 | --program-transform-n | --program-transform- \ 1133 | --program-transform | --program-transfor \ 1134 | --program-transfo | --program-transf \ 1135 | --program-trans | --program-tran \ 1136 | --progr-tra | --program-tr | --program-t) 1137 ac_prev=program_transform_name ;; 1138 -program-transform-name=* | --program-transform-name=* \ 1139 | --program-transform-nam=* | --program-transform-na=* \ 1140 | --program-transform-n=* | --program-transform-=* \ 1141 | --program-transform=* | --program-transfor=* \ 1142 | --program-transfo=* | --program-transf=* \ 1143 | --program-trans=* | --program-tran=* \ 1144 | --progr-tra=* | --program-tr=* | --program-t=*) 1145 program_transform_name=$ac_optarg ;; 1146 1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1148 ac_prev=pdfdir ;; 1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1150 pdfdir=$ac_optarg ;; 1151 1152 -psdir | --psdir | --psdi | --psd | --ps) 1153 ac_prev=psdir ;; 1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1155 psdir=$ac_optarg ;; 1156 1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1158 | -silent | --silent | --silen | --sile | --sil) 1159 silent=yes ;; 1160 1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1162 ac_prev=sbindir ;; 1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1164 | --sbi=* | --sb=*) 1165 sbindir=$ac_optarg ;; 1166 1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1169 | --sharedst | --shareds | --shared | --share | --shar \ 1170 | --sha | --sh) 1171 ac_prev=sharedstatedir ;; 1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1175 | --sha=* | --sh=*) 1176 sharedstatedir=$ac_optarg ;; 1177 1178 -site | --site | --sit) 1179 ac_prev=site ;; 1180 -site=* | --site=* | --sit=*) 1181 site=$ac_optarg ;; 1182 1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1184 ac_prev=srcdir ;; 1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1186 srcdir=$ac_optarg ;; 1187 1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1189 | --syscon | --sysco | --sysc | --sys | --sy) 1190 ac_prev=sysconfdir ;; 1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1193 sysconfdir=$ac_optarg ;; 1194 1195 -target | --target | --targe | --targ | --tar | --ta | --t) 1196 ac_prev=target_alias ;; 1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1198 target_alias=$ac_optarg ;; 1199 1200 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1201 verbose=yes ;; 1202 1203 -version | --version | --versio | --versi | --vers | -V) 1204 ac_init_version=: ;; 1205 1206 -with-* | --with-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: $ac_useropt" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=no ;; 1237 1238 --x) 1239 # Obsolete; use --with-x. 1240 with_x=yes ;; 1241 1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1243 | --x-incl | --x-inc | --x-in | --x-i) 1244 ac_prev=x_includes ;; 1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1247 x_includes=$ac_optarg ;; 1248 1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1251 ac_prev=x_libraries ;; 1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1254 x_libraries=$ac_optarg ;; 1255 1256 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1257Try \`$0 --help' for more information" 1258 ;; 1259 1260 *=*) 1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1262 # Reject names that are not valid shell variable names. 1263 case $ac_envvar in #( 1264 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1266 esac 1267 eval $ac_envvar=\$ac_optarg 1268 export $ac_envvar ;; 1269 1270 *) 1271 # FIXME: should be removed in autoconf 3.0. 1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1276 ;; 1277 1278 esac 1279done 1280 1281if test -n "$ac_prev"; then 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1283 as_fn_error $? "missing argument to $ac_option" 1284fi 1285 1286if test -n "$ac_unrecognized_opts"; then 1287 case $enable_option_checking in 1288 no) ;; 1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1291 esac 1292fi 1293 1294# Check all directory arguments for consistency. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir 1299do 1300 eval ac_val=\$$ac_var 1301 # Remove trailing slashes. 1302 case $ac_val in 1303 */ ) 1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1305 eval $ac_var=\$ac_val;; 1306 esac 1307 # Be sure to have absolute directory names. 1308 case $ac_val in 1309 [\\/$]* | ?:[\\/]* ) continue;; 1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1311 esac 1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1313done 1314 1315# There might be people who depend on the old broken behavior: `$host' 1316# used to hold the argument of --host etc. 1317# FIXME: To remove some day. 1318build=$build_alias 1319host=$host_alias 1320target=$target_alias 1321 1322# FIXME: To remove some day. 1323if test "x$host_alias" != x; then 1324 if test "x$build_alias" = x; then 1325 cross_compiling=maybe 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 as_fn_error $? "working directory cannot be determined" 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 as_fn_error $? "pwd does not report name of working directory" 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354$as_echo X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures LibTIFF Software 4.0.6 to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking ...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=PREFIX prepend PREFIX to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473X features: 1474 --x-includes=DIR X include files are in DIR 1475 --x-libraries=DIR X library files are in DIR 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 case $ac_init_help in 1485 short | recursive ) echo "Configuration of LibTIFF Software 4.0.6:";; 1486 esac 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --enable-silent-rules less verbose build output (undo: "make V=1") 1494 --disable-silent-rules verbose build output (undo: "make V=0") 1495 --enable-maintainer-mode 1496 enable make rules and dependencies not useful (and 1497 sometimes confusing) to the casual installer 1498 --enable-dependency-tracking 1499 do not reject slow dependency extractors 1500 --disable-dependency-tracking 1501 speeds up one-time build 1502 --enable-ld-version-script 1503 enable linker version script (default is disabled) 1504 --enable-shared[=PKGS] build shared libraries [default=yes] 1505 --enable-static[=PKGS] build static libraries [default=yes] 1506 --enable-fast-install[=PKGS] 1507 optimize for fast installation [default=yes] 1508 --disable-libtool-lock avoid locking (might break parallel builds) 1509 --enable-rpath Enable runtime linker paths (-R libtool option) 1510 --disable-largefile omit support for large files 1511 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1512 --disable-packbits disable support for Macintosh PackBits algorithm 1513 --disable-lzw disable support for LZW algorithm 1514 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1515 --disable-next disable support for NeXT 2-bit RLE algorithm 1516 --disable-logluv disable support for LogLuv high dynamic range 1517 encoding 1518 --disable-mdi disable support for Microsoft Document Imaging 1519 --disable-zlib disable Zlib usage (required for Deflate 1520 compression, enabled by default) 1521 --disable-pixarlog disable support for Pixar log-format algorithm 1522 (requires Zlib) 1523 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1524 compression, enabled by default) 1525 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1526 enabled by default) 1527 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1528 compression, enabled by default) 1529 --disable-lzma disable liblzma usage (required for LZMA2 1530 compression, enabled by default) 1531 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1532 --enable-cxx enable C++ stream API building (requires C++ 1533 compiler) 1534 --disable-win32-io disable Win32 I/O (Windows only, enabled by default 1535 except for Cygwin) 1536 --disable-strip-chopping 1537 disable support for strip chopping (whether or not 1538 to convert single-strip uncompressed images to 1539 mutiple strips of specified size to reduce memory 1540 usage) 1541 --enable-defer-strile-load 1542 enable deferred strip/tile offset/size loading 1543 (experimental) 1544 --enable-chunky-strip-read 1545 enable reading large strips in chunks for 1546 TIFFReadScanline() (experimental) 1547 --disable-extrasample-as-alpha 1548 the RGBA interface will treat a fourth sample with 1549 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1550 packages produce RGBA files but don't mark the alpha 1551 properly 1552 --disable-check-ycbcr-subsampling 1553 disable picking up YCbCr subsampling info from the 1554 JPEG data stream to support files lacking the tag 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --with-aix-soname=aix|svr4|both 1562 shared library versioning (aka "SONAME") variant to 1563 provide on AIX, [default=aix]. 1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1565 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1566 compiler's sysroot if not specified). 1567 --with-docdir=DIR directory where documentation should be installed 1568 --with-zlib-include-dir=DIR 1569 location of Zlib headers 1570 --with-zlib-lib-dir=DIR location of Zlib library binary 1571 --with-jpeg-include-dir=DIR 1572 location of IJG JPEG library headers 1573 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1574 --with-jbig-include-dir=DIR 1575 location of JBIG-KIT headers 1576 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1577 --with-lzma-include-dir=DIR 1578 location of liblzma headers 1579 --with-lzma-lib-dir=DIR location of liblzma library binary 1580 --with-jpeg12-include-dir=DIR 1581 location of libjpeg 12bit headers 1582 --with-jpeg12-lib=LIBRARY 1583 path to libjpeg 12bit library 1584 --with-x use the X Window System 1585 --with-default-strip-size=SIZE 1586 default size of the strip in bytes (when strip 1587 chopping enabled) [[default=8192]] 1588 1589Some influential environment variables: 1590 CC C compiler command 1591 CFLAGS C compiler flags 1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1593 nonstandard directory <lib dir> 1594 LIBS libraries to pass to the linker, e.g. -l<library> 1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1596 you have headers in a nonstandard directory <include dir> 1597 LT_SYS_LIBRARY_PATH 1598 User-defined run-time library search path. 1599 CPP C preprocessor 1600 CXX C++ compiler command 1601 CXXFLAGS C++ compiler flags 1602 CXXCPP C++ preprocessor 1603 XMKMF Path to xmkmf, Makefile generator for X Window System 1604 1605Use these variables to override the choices made by `configure' or to help 1606it to find libraries and programs with nonstandard names/locations. 1607 1608Report bugs to <tiff@lists.maptools.org>. 1609_ACEOF 1610ac_status=$? 1611fi 1612 1613if test "$ac_init_help" = "recursive"; then 1614 # If there are subdirs, report their specific --help. 1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1616 test -d "$ac_dir" || 1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1618 continue 1619 ac_builddir=. 1620 1621case "$ac_dir" in 1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1623*) 1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1625 # A ".." for each directory in $ac_dir_suffix. 1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1627 case $ac_top_builddir_sub in 1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1630 esac ;; 1631esac 1632ac_abs_top_builddir=$ac_pwd 1633ac_abs_builddir=$ac_pwd$ac_dir_suffix 1634# for backward compatibility: 1635ac_top_builddir=$ac_top_build_prefix 1636 1637case $srcdir in 1638 .) # We are building in place. 1639 ac_srcdir=. 1640 ac_top_srcdir=$ac_top_builddir_sub 1641 ac_abs_top_srcdir=$ac_pwd ;; 1642 [\\/]* | ?:[\\/]* ) # Absolute name. 1643 ac_srcdir=$srcdir$ac_dir_suffix; 1644 ac_top_srcdir=$srcdir 1645 ac_abs_top_srcdir=$srcdir ;; 1646 *) # Relative name. 1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1648 ac_top_srcdir=$ac_top_build_prefix$srcdir 1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1650esac 1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1652 1653 cd "$ac_dir" || { ac_status=$?; continue; } 1654 # Check for guested configure. 1655 if test -f "$ac_srcdir/configure.gnu"; then 1656 echo && 1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1658 elif test -f "$ac_srcdir/configure"; then 1659 echo && 1660 $SHELL "$ac_srcdir/configure" --help=recursive 1661 else 1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1663 fi || ac_status=$? 1664 cd "$ac_pwd" || { ac_status=$?; break; } 1665 done 1666fi 1667 1668test -n "$ac_init_help" && exit $ac_status 1669if $ac_init_version; then 1670 cat <<\_ACEOF 1671LibTIFF Software configure 4.0.6 1672generated by GNU Autoconf 2.69 1673 1674Copyright (C) 2012 Free Software Foundation, Inc. 1675This configure script is free software; the Free Software Foundation 1676gives unlimited permission to copy, distribute and modify it. 1677_ACEOF 1678 exit 1679fi 1680 1681## ------------------------ ## 1682## Autoconf initialization. ## 1683## ------------------------ ## 1684 1685# ac_fn_c_try_compile LINENO 1686# -------------------------- 1687# Try to compile conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_compile () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 rm -f conftest.$ac_objext 1692 if { { ac_try="$ac_compile" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_compile") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { 1708 test -z "$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 } && test -s conftest.$ac_objext; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: failed program was:" >&5 1714sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 1717fi 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_compile 1722 1723# ac_fn_c_try_link LINENO 1724# ----------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. 1726ac_fn_c_try_link () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 rm -f conftest.$ac_objext conftest$ac_exeext 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>conftest.err 1738 ac_status=$? 1739 if test -s conftest.err; then 1740 grep -v '^ *+' conftest.err >conftest.er1 1741 cat conftest.er1 >&5 1742 mv -f conftest.er1 conftest.err 1743 fi 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; } && { 1746 test -z "$ac_c_werror_flag" || 1747 test ! -s conftest.err 1748 } && test -s conftest$ac_exeext && { 1749 test "$cross_compiling" = yes || 1750 test -x conftest$ac_exeext 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1761 # interfere with the next link command; also delete a directory that is 1762 # left behind by Apple's compiler. We do this before executing the actions. 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_link 1768 1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists and can be compiled using the include files in 1772# INCLUDES, setting the cache variable VAR accordingly. 1773ac_fn_c_check_header_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777$as_echo_n "checking for $2... " >&6; } 1778if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780else 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783$4 1784#include <$2> 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO"; then : 1787 eval "$3=yes" 1788else 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_header_compile 1799 1800# ac_fn_c_try_cpp LINENO 1801# ---------------------- 1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_cpp () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 if { { ac_try="$ac_cpp conftest.$ac_ext" 1807case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1814 ac_status=$? 1815 if test -s conftest.err; then 1816 grep -v '^ *+' conftest.err >conftest.er1 1817 cat conftest.er1 >&5 1818 mv -f conftest.er1 conftest.err 1819 fi 1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1821 test $ac_status = 0; } > conftest.i && { 1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1823 test ! -s conftest.err 1824 }; then : 1825 ac_retval=0 1826else 1827 $as_echo "$as_me: failed program was:" >&5 1828sed 's/^/| /' conftest.$ac_ext >&5 1829 1830 ac_retval=1 1831fi 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_c_try_cpp 1836 1837# ac_fn_c_try_run LINENO 1838# ---------------------- 1839# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1840# that executables *can* be run. 1841ac_fn_c_try_run () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 if { { ac_try="$ac_link" 1845case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_link") 2>&5 1852 ac_status=$? 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1855 { { case "(($ac_try" in 1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1857 *) ac_try_echo=$ac_try;; 1858esac 1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1860$as_echo "$ac_try_echo"; } >&5 1861 (eval "$ac_try") 2>&5 1862 ac_status=$? 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1864 test $ac_status = 0; }; }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: program exited with status $ac_status" >&5 1868 $as_echo "$as_me: failed program was:" >&5 1869sed 's/^/| /' conftest.$ac_ext >&5 1870 1871 ac_retval=$ac_status 1872fi 1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 as_fn_set_status $ac_retval 1876 1877} # ac_fn_c_try_run 1878 1879# ac_fn_c_check_func LINENO FUNC VAR 1880# ---------------------------------- 1881# Tests whether FUNC exists, setting the cache variable VAR accordingly 1882ac_fn_c_check_func () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886$as_echo_n "checking for $2... " >&6; } 1887if eval \${$3+:} false; then : 1888 $as_echo_n "(cached) " >&6 1889else 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1891/* end confdefs.h. */ 1892/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1894#define $2 innocuous_$2 1895 1896/* System header to define __stub macros and hopefully few prototypes, 1897 which can conflict with char $2 (); below. 1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1899 <limits.h> exists even on freestanding compilers. */ 1900 1901#ifdef __STDC__ 1902# include <limits.h> 1903#else 1904# include <assert.h> 1905#endif 1906 1907#undef $2 1908 1909/* Override any GCC internal prototype to avoid an error. 1910 Use char because int might match the return type of a GCC 1911 builtin and then its argument prototype would still apply. */ 1912#ifdef __cplusplus 1913extern "C" 1914#endif 1915char $2 (); 1916/* The GNU C library defines this for functions which it implements 1917 to always fail with ENOSYS. Some functions are actually named 1918 something starting with __ and the normal name is an alias. */ 1919#if defined __stub_$2 || defined __stub___$2 1920choke me 1921#endif 1922 1923int 1924main () 1925{ 1926return $2 (); 1927 ; 1928 return 0; 1929} 1930_ACEOF 1931if ac_fn_c_try_link "$LINENO"; then : 1932 eval "$3=yes" 1933else 1934 eval "$3=no" 1935fi 1936rm -f core conftest.err conftest.$ac_objext \ 1937 conftest$ac_exeext conftest.$ac_ext 1938fi 1939eval ac_res=\$$3 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1941$as_echo "$ac_res" >&6; } 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 1944} # ac_fn_c_check_func 1945 1946# ac_fn_cxx_try_compile LINENO 1947# ---------------------------- 1948# Try to compile conftest.$ac_ext, and return whether this succeeded. 1949ac_fn_cxx_try_compile () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 rm -f conftest.$ac_objext 1953 if { { ac_try="$ac_compile" 1954case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959$as_echo "$ac_try_echo"; } >&5 1960 (eval "$ac_compile") 2>conftest.err 1961 ac_status=$? 1962 if test -s conftest.err; then 1963 grep -v '^ *+' conftest.err >conftest.er1 1964 cat conftest.er1 >&5 1965 mv -f conftest.er1 conftest.err 1966 fi 1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1968 test $ac_status = 0; } && { 1969 test -z "$ac_cxx_werror_flag" || 1970 test ! -s conftest.err 1971 } && test -s conftest.$ac_objext; then : 1972 ac_retval=0 1973else 1974 $as_echo "$as_me: failed program was:" >&5 1975sed 's/^/| /' conftest.$ac_ext >&5 1976 1977 ac_retval=1 1978fi 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 as_fn_set_status $ac_retval 1981 1982} # ac_fn_cxx_try_compile 1983 1984# ac_fn_cxx_try_cpp LINENO 1985# ------------------------ 1986# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1987ac_fn_cxx_try_cpp () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 if { { ac_try="$ac_cpp conftest.$ac_ext" 1991case "(($ac_try" in 1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1993 *) ac_try_echo=$ac_try;; 1994esac 1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1996$as_echo "$ac_try_echo"; } >&5 1997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1998 ac_status=$? 1999 if test -s conftest.err; then 2000 grep -v '^ *+' conftest.err >conftest.er1 2001 cat conftest.er1 >&5 2002 mv -f conftest.er1 conftest.err 2003 fi 2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2005 test $ac_status = 0; } > conftest.i && { 2006 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2007 test ! -s conftest.err 2008 }; then : 2009 ac_retval=0 2010else 2011 $as_echo "$as_me: failed program was:" >&5 2012sed 's/^/| /' conftest.$ac_ext >&5 2013 2014 ac_retval=1 2015fi 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2017 as_fn_set_status $ac_retval 2018 2019} # ac_fn_cxx_try_cpp 2020 2021# ac_fn_cxx_try_link LINENO 2022# ------------------------- 2023# Try to link conftest.$ac_ext, and return whether this succeeded. 2024ac_fn_cxx_try_link () 2025{ 2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2027 rm -f conftest.$ac_objext conftest$ac_exeext 2028 if { { ac_try="$ac_link" 2029case "(($ac_try" in 2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2031 *) ac_try_echo=$ac_try;; 2032esac 2033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2034$as_echo "$ac_try_echo"; } >&5 2035 (eval "$ac_link") 2>conftest.err 2036 ac_status=$? 2037 if test -s conftest.err; then 2038 grep -v '^ *+' conftest.err >conftest.er1 2039 cat conftest.er1 >&5 2040 mv -f conftest.er1 conftest.err 2041 fi 2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2043 test $ac_status = 0; } && { 2044 test -z "$ac_cxx_werror_flag" || 2045 test ! -s conftest.err 2046 } && test -s conftest$ac_exeext && { 2047 test "$cross_compiling" = yes || 2048 test -x conftest$ac_exeext 2049 }; then : 2050 ac_retval=0 2051else 2052 $as_echo "$as_me: failed program was:" >&5 2053sed 's/^/| /' conftest.$ac_ext >&5 2054 2055 ac_retval=1 2056fi 2057 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2058 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2059 # interfere with the next link command; also delete a directory that is 2060 # left behind by Apple's compiler. We do this before executing the actions. 2061 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 as_fn_set_status $ac_retval 2064 2065} # ac_fn_cxx_try_link 2066 2067# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2068# ------------------------------------------------------- 2069# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2070# the include files in INCLUDES and setting the cache variable VAR 2071# accordingly. 2072ac_fn_c_check_header_mongrel () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 if eval \${$3+:} false; then : 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2077$as_echo_n "checking for $2... " >&6; } 2078if eval \${$3+:} false; then : 2079 $as_echo_n "(cached) " >&6 2080fi 2081eval ac_res=\$$3 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2083$as_echo "$ac_res" >&6; } 2084else 2085 # Is the header compilable? 2086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2087$as_echo_n "checking $2 usability... " >&6; } 2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091#include <$2> 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 ac_header_compiler=yes 2095else 2096 ac_header_compiler=no 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2100$as_echo "$ac_header_compiler" >&6; } 2101 2102# Is the header present? 2103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2104$as_echo_n "checking $2 presence... " >&6; } 2105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2106/* end confdefs.h. */ 2107#include <$2> 2108_ACEOF 2109if ac_fn_c_try_cpp "$LINENO"; then : 2110 ac_header_preproc=yes 2111else 2112 ac_header_preproc=no 2113fi 2114rm -f conftest.err conftest.i conftest.$ac_ext 2115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2116$as_echo "$ac_header_preproc" >&6; } 2117 2118# So? What about this header? 2119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2120 yes:no: ) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2122$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2124$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2125 ;; 2126 no:yes:* ) 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2128$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2130$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2132$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2134$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2136$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2137( $as_echo "## -------------------------------------- ## 2138## Report this to tiff@lists.maptools.org ## 2139## -------------------------------------- ##" 2140 ) | sed "s/^/$as_me: WARNING: /" >&2 2141 ;; 2142esac 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2144$as_echo_n "checking for $2... " >&6; } 2145if eval \${$3+:} false; then : 2146 $as_echo_n "(cached) " >&6 2147else 2148 eval "$3=\$ac_header_compiler" 2149fi 2150eval ac_res=\$$3 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2152$as_echo "$ac_res" >&6; } 2153fi 2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2155 2156} # ac_fn_c_check_header_mongrel 2157 2158# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2159# ------------------------------------------- 2160# Tests whether TYPE exists after having included INCLUDES, setting cache 2161# variable VAR accordingly. 2162ac_fn_c_check_type () 2163{ 2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2166$as_echo_n "checking for $2... " >&6; } 2167if eval \${$3+:} false; then : 2168 $as_echo_n "(cached) " >&6 2169else 2170 eval "$3=no" 2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173$4 2174int 2175main () 2176{ 2177if (sizeof ($2)) 2178 return 0; 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183if ac_fn_c_try_compile "$LINENO"; then : 2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186$4 2187int 2188main () 2189{ 2190if (sizeof (($2))) 2191 return 0; 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196if ac_fn_c_try_compile "$LINENO"; then : 2197 2198else 2199 eval "$3=yes" 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204fi 2205eval ac_res=\$$3 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2207$as_echo "$ac_res" >&6; } 2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2209 2210} # ac_fn_c_check_type 2211 2212# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2213# --------------------------------------------- 2214# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2215# accordingly. 2216ac_fn_c_check_decl () 2217{ 2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2219 as_decl_name=`echo $2|sed 's/ *(.*//'` 2220 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2222$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2223if eval \${$3+:} false; then : 2224 $as_echo_n "(cached) " >&6 2225else 2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2227/* end confdefs.h. */ 2228$4 2229int 2230main () 2231{ 2232#ifndef $as_decl_name 2233#ifdef __cplusplus 2234 (void) $as_decl_use; 2235#else 2236 (void) $as_decl_name; 2237#endif 2238#endif 2239 2240 ; 2241 return 0; 2242} 2243_ACEOF 2244if ac_fn_c_try_compile "$LINENO"; then : 2245 eval "$3=yes" 2246else 2247 eval "$3=no" 2248fi 2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2250fi 2251eval ac_res=\$$3 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2253$as_echo "$ac_res" >&6; } 2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2255 2256} # ac_fn_c_check_decl 2257 2258# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2259# -------------------------------------------- 2260# Tries to find the compile-time value of EXPR in a program that includes 2261# INCLUDES, setting VAR accordingly. Returns whether the value could be 2262# computed 2263ac_fn_c_compute_int () 2264{ 2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2266 if test "$cross_compiling" = yes; then 2267 # Depending upon the size, compute the lo and hi bounds. 2268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2269/* end confdefs.h. */ 2270$4 2271int 2272main () 2273{ 2274static int test_array [1 - 2 * !(($2) >= 0)]; 2275test_array [0] = 0; 2276return test_array [0]; 2277 2278 ; 2279 return 0; 2280} 2281_ACEOF 2282if ac_fn_c_try_compile "$LINENO"; then : 2283 ac_lo=0 ac_mid=0 2284 while :; do 2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2286/* end confdefs.h. */ 2287$4 2288int 2289main () 2290{ 2291static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2292test_array [0] = 0; 2293return test_array [0]; 2294 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299if ac_fn_c_try_compile "$LINENO"; then : 2300 ac_hi=$ac_mid; break 2301else 2302 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2303 if test $ac_lo -le $ac_mid; then 2304 ac_lo= ac_hi= 2305 break 2306 fi 2307 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2308fi 2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2310 done 2311else 2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2313/* end confdefs.h. */ 2314$4 2315int 2316main () 2317{ 2318static int test_array [1 - 2 * !(($2) < 0)]; 2319test_array [0] = 0; 2320return test_array [0]; 2321 2322 ; 2323 return 0; 2324} 2325_ACEOF 2326if ac_fn_c_try_compile "$LINENO"; then : 2327 ac_hi=-1 ac_mid=-1 2328 while :; do 2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2330/* end confdefs.h. */ 2331$4 2332int 2333main () 2334{ 2335static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2336test_array [0] = 0; 2337return test_array [0]; 2338 2339 ; 2340 return 0; 2341} 2342_ACEOF 2343if ac_fn_c_try_compile "$LINENO"; then : 2344 ac_lo=$ac_mid; break 2345else 2346 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2347 if test $ac_mid -le $ac_hi; then 2348 ac_lo= ac_hi= 2349 break 2350 fi 2351 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2352fi 2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2354 done 2355else 2356 ac_lo= ac_hi= 2357fi 2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2359fi 2360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2361# Binary search between lo and hi bounds. 2362while test "x$ac_lo" != "x$ac_hi"; do 2363 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365/* end confdefs.h. */ 2366$4 2367int 2368main () 2369{ 2370static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2371test_array [0] = 0; 2372return test_array [0]; 2373 2374 ; 2375 return 0; 2376} 2377_ACEOF 2378if ac_fn_c_try_compile "$LINENO"; then : 2379 ac_hi=$ac_mid 2380else 2381 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2382fi 2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2384done 2385case $ac_lo in #(( 2386?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2387'') ac_retval=1 ;; 2388esac 2389 else 2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2391/* end confdefs.h. */ 2392$4 2393static long int longval () { return $2; } 2394static unsigned long int ulongval () { return $2; } 2395#include <stdio.h> 2396#include <stdlib.h> 2397int 2398main () 2399{ 2400 2401 FILE *f = fopen ("conftest.val", "w"); 2402 if (! f) 2403 return 1; 2404 if (($2) < 0) 2405 { 2406 long int i = longval (); 2407 if (i != ($2)) 2408 return 1; 2409 fprintf (f, "%ld", i); 2410 } 2411 else 2412 { 2413 unsigned long int i = ulongval (); 2414 if (i != ($2)) 2415 return 1; 2416 fprintf (f, "%lu", i); 2417 } 2418 /* Do not output a trailing newline, as this causes \r\n confusion 2419 on some platforms. */ 2420 return ferror (f) || fclose (f) != 0; 2421 2422 ; 2423 return 0; 2424} 2425_ACEOF 2426if ac_fn_c_try_run "$LINENO"; then : 2427 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2428else 2429 ac_retval=1 2430fi 2431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2432 conftest.$ac_objext conftest.beam conftest.$ac_ext 2433rm -f conftest.val 2434 2435 fi 2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2437 as_fn_set_status $ac_retval 2438 2439} # ac_fn_c_compute_int 2440cat >config.log <<_ACEOF 2441This file contains any messages produced by compilers while 2442running configure, to aid debugging if configure makes a mistake. 2443 2444It was created by LibTIFF Software $as_me 4.0.6, which was 2445generated by GNU Autoconf 2.69. Invocation command line was 2446 2447 $ $0 $@ 2448 2449_ACEOF 2450exec 5>>config.log 2451{ 2452cat <<_ASUNAME 2453## --------- ## 2454## Platform. ## 2455## --------- ## 2456 2457hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2458uname -m = `(uname -m) 2>/dev/null || echo unknown` 2459uname -r = `(uname -r) 2>/dev/null || echo unknown` 2460uname -s = `(uname -s) 2>/dev/null || echo unknown` 2461uname -v = `(uname -v) 2>/dev/null || echo unknown` 2462 2463/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2464/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2465 2466/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2467/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2468/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2469/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2470/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2471/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2472/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2473 2474_ASUNAME 2475 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 $as_echo "PATH: $as_dir" 2482 done 2483IFS=$as_save_IFS 2484 2485} >&5 2486 2487cat >&5 <<_ACEOF 2488 2489 2490## ----------- ## 2491## Core tests. ## 2492## ----------- ## 2493 2494_ACEOF 2495 2496 2497# Keep a trace of the command line. 2498# Strip out --no-create and --no-recursion so they do not pile up. 2499# Strip out --silent because we don't want to record it for future runs. 2500# Also quote any args containing shell meta-characters. 2501# Make two passes to allow for proper duplicate-argument suppression. 2502ac_configure_args= 2503ac_configure_args0= 2504ac_configure_args1= 2505ac_must_keep_next=false 2506for ac_pass in 1 2 2507do 2508 for ac_arg 2509 do 2510 case $ac_arg in 2511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2513 | -silent | --silent | --silen | --sile | --sil) 2514 continue ;; 2515 *\'*) 2516 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2517 esac 2518 case $ac_pass in 2519 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2520 2) 2521 as_fn_append ac_configure_args1 " '$ac_arg'" 2522 if test $ac_must_keep_next = true; then 2523 ac_must_keep_next=false # Got value, back to normal. 2524 else 2525 case $ac_arg in 2526 *=* | --config-cache | -C | -disable-* | --disable-* \ 2527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2529 | -with-* | --with-* | -without-* | --without-* | --x) 2530 case "$ac_configure_args0 " in 2531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2532 esac 2533 ;; 2534 -* ) ac_must_keep_next=true ;; 2535 esac 2536 fi 2537 as_fn_append ac_configure_args " '$ac_arg'" 2538 ;; 2539 esac 2540 done 2541done 2542{ ac_configure_args0=; unset ac_configure_args0;} 2543{ ac_configure_args1=; unset ac_configure_args1;} 2544 2545# When interrupted or exit'd, cleanup temporary files, and complete 2546# config.log. We remove comments because anyway the quotes in there 2547# would cause problems or look ugly. 2548# WARNING: Use '\'' to represent an apostrophe within the trap. 2549# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2550trap 'exit_status=$? 2551 # Save into config.log some information that might help in debugging. 2552 { 2553 echo 2554 2555 $as_echo "## ---------------- ## 2556## Cache variables. ## 2557## ---------------- ##" 2558 echo 2559 # The following way of writing the cache mishandles newlines in values, 2560( 2561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2562 eval ac_val=\$$ac_var 2563 case $ac_val in #( 2564 *${as_nl}*) 2565 case $ac_var in #( 2566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2567$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2568 esac 2569 case $ac_var in #( 2570 _ | IFS | as_nl) ;; #( 2571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2572 *) { eval $ac_var=; unset $ac_var;} ;; 2573 esac ;; 2574 esac 2575 done 2576 (set) 2>&1 | 2577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2578 *${as_nl}ac_space=\ *) 2579 sed -n \ 2580 "s/'\''/'\''\\\\'\'''\''/g; 2581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2582 ;; #( 2583 *) 2584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2585 ;; 2586 esac | 2587 sort 2588) 2589 echo 2590 2591 $as_echo "## ----------------- ## 2592## Output variables. ## 2593## ----------------- ##" 2594 echo 2595 for ac_var in $ac_subst_vars 2596 do 2597 eval ac_val=\$$ac_var 2598 case $ac_val in 2599 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2600 esac 2601 $as_echo "$ac_var='\''$ac_val'\''" 2602 done | sort 2603 echo 2604 2605 if test -n "$ac_subst_files"; then 2606 $as_echo "## ------------------- ## 2607## File substitutions. ## 2608## ------------------- ##" 2609 echo 2610 for ac_var in $ac_subst_files 2611 do 2612 eval ac_val=\$$ac_var 2613 case $ac_val in 2614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2615 esac 2616 $as_echo "$ac_var='\''$ac_val'\''" 2617 done | sort 2618 echo 2619 fi 2620 2621 if test -s confdefs.h; then 2622 $as_echo "## ----------- ## 2623## confdefs.h. ## 2624## ----------- ##" 2625 echo 2626 cat confdefs.h 2627 echo 2628 fi 2629 test "$ac_signal" != 0 && 2630 $as_echo "$as_me: caught signal $ac_signal" 2631 $as_echo "$as_me: exit $exit_status" 2632 } >&5 2633 rm -f core *.core core.conftest.* && 2634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2635 exit $exit_status 2636' 0 2637for ac_signal in 1 2 13 15; do 2638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2639done 2640ac_signal=0 2641 2642# confdefs.h avoids OS command line length limits that DEFS can exceed. 2643rm -f -r conftest* confdefs.h 2644 2645$as_echo "/* confdefs.h */" > confdefs.h 2646 2647# Predefined preprocessor variables. 2648 2649cat >>confdefs.h <<_ACEOF 2650#define PACKAGE_NAME "$PACKAGE_NAME" 2651_ACEOF 2652 2653cat >>confdefs.h <<_ACEOF 2654#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2655_ACEOF 2656 2657cat >>confdefs.h <<_ACEOF 2658#define PACKAGE_VERSION "$PACKAGE_VERSION" 2659_ACEOF 2660 2661cat >>confdefs.h <<_ACEOF 2662#define PACKAGE_STRING "$PACKAGE_STRING" 2663_ACEOF 2664 2665cat >>confdefs.h <<_ACEOF 2666#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2667_ACEOF 2668 2669cat >>confdefs.h <<_ACEOF 2670#define PACKAGE_URL "$PACKAGE_URL" 2671_ACEOF 2672 2673 2674# Let the site file select an alternate cache file if it wants to. 2675# Prefer an explicitly selected file to automatically selected ones. 2676ac_site_file1=NONE 2677ac_site_file2=NONE 2678if test -n "$CONFIG_SITE"; then 2679 # We do not want a PATH search for config.site. 2680 case $CONFIG_SITE in #(( 2681 -*) ac_site_file1=./$CONFIG_SITE;; 2682 */*) ac_site_file1=$CONFIG_SITE;; 2683 *) ac_site_file1=./$CONFIG_SITE;; 2684 esac 2685elif test "x$prefix" != xNONE; then 2686 ac_site_file1=$prefix/share/config.site 2687 ac_site_file2=$prefix/etc/config.site 2688else 2689 ac_site_file1=$ac_default_prefix/share/config.site 2690 ac_site_file2=$ac_default_prefix/etc/config.site 2691fi 2692for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2693do 2694 test "x$ac_site_file" = xNONE && continue 2695 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2697$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2698 sed 's/^/| /' "$ac_site_file" >&5 2699 . "$ac_site_file" \ 2700 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2702as_fn_error $? "failed to load site script $ac_site_file 2703See \`config.log' for more details" "$LINENO" 5; } 2704 fi 2705done 2706 2707if test -r "$cache_file"; then 2708 # Some versions of bash will fail to source /dev/null (special files 2709 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2710 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2712$as_echo "$as_me: loading cache $cache_file" >&6;} 2713 case $cache_file in 2714 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2715 *) . "./$cache_file";; 2716 esac 2717 fi 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2720$as_echo "$as_me: creating cache $cache_file" >&6;} 2721 >$cache_file 2722fi 2723 2724# Check that the precious variables saved in the cache have kept the same 2725# value. 2726ac_cache_corrupted=false 2727for ac_var in $ac_precious_vars; do 2728 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2729 eval ac_new_set=\$ac_env_${ac_var}_set 2730 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2731 eval ac_new_val=\$ac_env_${ac_var}_value 2732 case $ac_old_set,$ac_new_set in 2733 set,) 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2735$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2736 ac_cache_corrupted=: ;; 2737 ,set) 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2739$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2740 ac_cache_corrupted=: ;; 2741 ,);; 2742 *) 2743 if test "x$ac_old_val" != "x$ac_new_val"; then 2744 # differences in whitespace do not lead to failure. 2745 ac_old_val_w=`echo x $ac_old_val` 2746 ac_new_val_w=`echo x $ac_new_val` 2747 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2749$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2750 ac_cache_corrupted=: 2751 else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2753$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2754 eval $ac_var=\$ac_old_val 2755 fi 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2757$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2759$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2760 fi;; 2761 esac 2762 # Pass precious variables to config.status. 2763 if test "$ac_new_set" = set; then 2764 case $ac_new_val in 2765 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2766 *) ac_arg=$ac_var=$ac_new_val ;; 2767 esac 2768 case " $ac_configure_args " in 2769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2770 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2771 esac 2772 fi 2773done 2774if $ac_cache_corrupted; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2778$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2779 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2780fi 2781## -------------------- ## 2782## Main body of script. ## 2783## -------------------- ## 2784 2785ac_ext=c 2786ac_cpp='$CPP $CPPFLAGS' 2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2789ac_compiler_gnu=$ac_cv_c_compiler_gnu 2790 2791 2792ac_aux_dir= 2793for ac_dir in config "$srcdir"/config; do 2794 if test -f "$ac_dir/install-sh"; then 2795 ac_aux_dir=$ac_dir 2796 ac_install_sh="$ac_aux_dir/install-sh -c" 2797 break 2798 elif test -f "$ac_dir/install.sh"; then 2799 ac_aux_dir=$ac_dir 2800 ac_install_sh="$ac_aux_dir/install.sh -c" 2801 break 2802 elif test -f "$ac_dir/shtool"; then 2803 ac_aux_dir=$ac_dir 2804 ac_install_sh="$ac_aux_dir/shtool install -c" 2805 break 2806 fi 2807done 2808if test -z "$ac_aux_dir"; then 2809 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2810fi 2811 2812# These three variables are undocumented and unsupported, 2813# and are intended to be withdrawn in a future Autoconf release. 2814# They can cause serious problems if a builder's source tree is in a directory 2815# whose full name contains unusual characters. 2816ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2817ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2818ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2819 2820 2821 2822ac_ext=c 2823ac_cpp='$CPP $CPPFLAGS' 2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2826ac_compiler_gnu=$ac_cv_c_compiler_gnu 2827 2828 2829# Make sure we can run config.sub. 2830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2832 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2834$as_echo_n "checking build system type... " >&6; } 2835if ${ac_cv_build+:} false; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 ac_build_alias=$build_alias 2839test "x$ac_build_alias" = x && 2840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2841test "x$ac_build_alias" = x && 2842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2845 2846fi 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2848$as_echo "$ac_cv_build" >&6; } 2849case $ac_cv_build in 2850*-*-*) ;; 2851*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2852esac 2853build=$ac_cv_build 2854ac_save_IFS=$IFS; IFS='-' 2855set x $ac_cv_build 2856shift 2857build_cpu=$1 2858build_vendor=$2 2859shift; shift 2860# Remember, the first character of IFS is used to create $*, 2861# except with old shells: 2862build_os=$* 2863IFS=$ac_save_IFS 2864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2865 2866 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2868$as_echo_n "checking host system type... " >&6; } 2869if ${ac_cv_host+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if test "x$host_alias" = x; then 2873 ac_cv_host=$ac_cv_build 2874else 2875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2877fi 2878 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2881$as_echo "$ac_cv_host" >&6; } 2882case $ac_cv_host in 2883*-*-*) ;; 2884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2885esac 2886host=$ac_cv_host 2887ac_save_IFS=$IFS; IFS='-' 2888set x $ac_cv_host 2889shift 2890host_cpu=$1 2891host_vendor=$2 2892shift; shift 2893# Remember, the first character of IFS is used to create $*, 2894# except with old shells: 2895host_os=$* 2896IFS=$ac_save_IFS 2897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2898 2899 2900 2901am__api_version='1.15' 2902 2903# Find a good install program. We prefer a C program (faster), 2904# so one script is as good as another. But avoid the broken or 2905# incompatible versions: 2906# SysV /etc/install, /usr/sbin/install 2907# SunOS /usr/etc/install 2908# IRIX /sbin/install 2909# AIX /bin/install 2910# AmigaOS /C/install, which installs bootblocks on floppy discs 2911# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2912# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2913# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2914# OS/2's system install, which has a completely different semantic 2915# ./install, which can be erroneously created by make from ./install.sh. 2916# Reject install programs that cannot install multiple files. 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2918$as_echo_n "checking for a BSD-compatible install... " >&6; } 2919if test -z "$INSTALL"; then 2920if ${ac_cv_path_install+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 # Account for people who put trailing slashes in PATH elements. 2929case $as_dir/ in #(( 2930 ./ | .// | /[cC]/* | \ 2931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2933 /usr/ucb/* ) ;; 2934 *) 2935 # OSF1 and SCO ODT 3.0 have their own names for install. 2936 # Don't use installbsd from OSF since it installs stuff as root 2937 # by default. 2938 for ac_prog in ginstall scoinst install; do 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2941 if test $ac_prog = install && 2942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2943 # AIX install. It has an incompatible calling convention. 2944 : 2945 elif test $ac_prog = install && 2946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2947 # program-specific install script used by HP pwplus--don't use. 2948 : 2949 else 2950 rm -rf conftest.one conftest.two conftest.dir 2951 echo one > conftest.one 2952 echo two > conftest.two 2953 mkdir conftest.dir 2954 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2955 test -s conftest.one && test -s conftest.two && 2956 test -s conftest.dir/conftest.one && 2957 test -s conftest.dir/conftest.two 2958 then 2959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2960 break 3 2961 fi 2962 fi 2963 fi 2964 done 2965 done 2966 ;; 2967esac 2968 2969 done 2970IFS=$as_save_IFS 2971 2972rm -rf conftest.one conftest.two conftest.dir 2973 2974fi 2975 if test "${ac_cv_path_install+set}" = set; then 2976 INSTALL=$ac_cv_path_install 2977 else 2978 # As a last resort, use the slow shell script. Don't cache a 2979 # value for INSTALL within a source directory, because that will 2980 # break other packages using the cache if that directory is 2981 # removed, or if the value is a relative name. 2982 INSTALL=$ac_install_sh 2983 fi 2984fi 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2986$as_echo "$INSTALL" >&6; } 2987 2988# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2989# It thinks the first close brace ends the variable substitution. 2990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2991 2992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2993 2994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2995 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2997$as_echo_n "checking whether build environment is sane... " >&6; } 2998# Reject unsafe characters in $srcdir or the absolute working directory 2999# name. Accept space and tab only in the latter. 3000am_lf=' 3001' 3002case `pwd` in 3003 *[\\\"\#\$\&\'\`$am_lf]*) 3004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3005esac 3006case $srcdir in 3007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3009esac 3010 3011# Do 'set' in a subshell so we don't clobber the current shell's 3012# arguments. Must try -L first in case configure is actually a 3013# symlink; some systems play weird games with the mod time of symlinks 3014# (eg FreeBSD returns the mod time of the symlink's containing 3015# directory). 3016if ( 3017 am_has_slept=no 3018 for am_try in 1 2; do 3019 echo "timestamp, slept: $am_has_slept" > conftest.file 3020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3021 if test "$*" = "X"; then 3022 # -L didn't work. 3023 set X `ls -t "$srcdir/configure" conftest.file` 3024 fi 3025 if test "$*" != "X $srcdir/configure conftest.file" \ 3026 && test "$*" != "X conftest.file $srcdir/configure"; then 3027 3028 # If neither matched, then we have a broken ls. This can happen 3029 # if, for instance, CONFIG_SHELL is bash and it inherits a 3030 # broken ls alias from the environment. This has actually 3031 # happened. Such a system could not be considered "sane". 3032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3033 alias in your environment" "$LINENO" 5 3034 fi 3035 if test "$2" = conftest.file || test $am_try -eq 2; then 3036 break 3037 fi 3038 # Just in case. 3039 sleep 1 3040 am_has_slept=yes 3041 done 3042 test "$2" = conftest.file 3043 ) 3044then 3045 # Ok. 3046 : 3047else 3048 as_fn_error $? "newly created file is older than distributed files! 3049Check your system clock" "$LINENO" 5 3050fi 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3052$as_echo "yes" >&6; } 3053# If we didn't sleep, we still need to ensure time stamps of config.status and 3054# generated files are strictly newer. 3055am_sleep_pid= 3056if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3057 ( sleep 1 ) & 3058 am_sleep_pid=$! 3059fi 3060 3061rm -f conftest.file 3062 3063test "$program_prefix" != NONE && 3064 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3065# Use a double $ so make ignores it. 3066test "$program_suffix" != NONE && 3067 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3068# Double any \ or $. 3069# By default was `s,x,x', remove it if useless. 3070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3071program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3072 3073# Expand $ac_aux_dir to an absolute path. 3074am_aux_dir=`cd "$ac_aux_dir" && pwd` 3075 3076if test x"${MISSING+set}" != xset; then 3077 case $am_aux_dir in 3078 *\ * | *\ *) 3079 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3080 *) 3081 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3082 esac 3083fi 3084# Use eval to expand $SHELL 3085if eval "$MISSING --is-lightweight"; then 3086 am_missing_run="$MISSING " 3087else 3088 am_missing_run= 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3090$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3091fi 3092 3093if test x"${install_sh+set}" != xset; then 3094 case $am_aux_dir in 3095 *\ * | *\ *) 3096 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3097 *) 3098 install_sh="\${SHELL} $am_aux_dir/install-sh" 3099 esac 3100fi 3101 3102# Installed binaries are usually stripped using 'strip' when the user 3103# run "make install-strip". However 'strip' might not be the right 3104# tool to use in cross-compilation environments, therefore Automake 3105# will honor the 'STRIP' environment variable to overrule this program. 3106if test "$cross_compiling" != no; then 3107 if test -n "$ac_tool_prefix"; then 3108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3109set dummy ${ac_tool_prefix}strip; ac_word=$2 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111$as_echo_n "checking for $ac_word... " >&6; } 3112if ${ac_cv_prog_STRIP+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test -n "$STRIP"; then 3116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3117else 3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3119for as_dir in $PATH 3120do 3121 IFS=$as_save_IFS 3122 test -z "$as_dir" && as_dir=. 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3125 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3127 break 2 3128 fi 3129done 3130 done 3131IFS=$as_save_IFS 3132 3133fi 3134fi 3135STRIP=$ac_cv_prog_STRIP 3136if test -n "$STRIP"; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3138$as_echo "$STRIP" >&6; } 3139else 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141$as_echo "no" >&6; } 3142fi 3143 3144 3145fi 3146if test -z "$ac_cv_prog_STRIP"; then 3147 ac_ct_STRIP=$STRIP 3148 # Extract the first word of "strip", so it can be a program name with args. 3149set dummy strip; ac_word=$2 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3151$as_echo_n "checking for $ac_word... " >&6; } 3152if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154else 3155 if test -n "$ac_ct_STRIP"; then 3156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3157else 3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3159for as_dir in $PATH 3160do 3161 IFS=$as_save_IFS 3162 test -z "$as_dir" && as_dir=. 3163 for ac_exec_ext in '' $ac_executable_extensions; do 3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3165 ac_cv_prog_ac_ct_STRIP="strip" 3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3167 break 2 3168 fi 3169done 3170 done 3171IFS=$as_save_IFS 3172 3173fi 3174fi 3175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3176if test -n "$ac_ct_STRIP"; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3178$as_echo "$ac_ct_STRIP" >&6; } 3179else 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181$as_echo "no" >&6; } 3182fi 3183 3184 if test "x$ac_ct_STRIP" = x; then 3185 STRIP=":" 3186 else 3187 case $cross_compiling:$ac_tool_warned in 3188yes:) 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3191ac_tool_warned=yes ;; 3192esac 3193 STRIP=$ac_ct_STRIP 3194 fi 3195else 3196 STRIP="$ac_cv_prog_STRIP" 3197fi 3198 3199fi 3200INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3201 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3203$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3204if test -z "$MKDIR_P"; then 3205 if ${ac_cv_path_mkdir+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207else 3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_prog in mkdir gmkdir; do 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3217 'mkdir (GNU coreutils) '* | \ 3218 'mkdir (coreutils) '* | \ 3219 'mkdir (fileutils) '4.1*) 3220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3221 break 3;; 3222 esac 3223 done 3224 done 3225 done 3226IFS=$as_save_IFS 3227 3228fi 3229 3230 test -d ./--version && rmdir ./--version 3231 if test "${ac_cv_path_mkdir+set}" = set; then 3232 MKDIR_P="$ac_cv_path_mkdir -p" 3233 else 3234 # As a last resort, use the slow shell script. Don't cache a 3235 # value for MKDIR_P within a source directory, because that will 3236 # break other packages using the cache if that directory is 3237 # removed, or if the value is a relative name. 3238 MKDIR_P="$ac_install_sh -d" 3239 fi 3240fi 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3242$as_echo "$MKDIR_P" >&6; } 3243 3244for ac_prog in gawk mawk nawk awk 3245do 3246 # Extract the first word of "$ac_prog", so it can be a program name with args. 3247set dummy $ac_prog; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_AWK+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$AWK"; then 3254 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_AWK="$ac_prog" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273AWK=$ac_cv_prog_AWK 3274if test -n "$AWK"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3276$as_echo "$AWK" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 3283 test -n "$AWK" && break 3284done 3285 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3287$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3288set x ${MAKE-make} 3289ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3290if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 cat >conftest.make <<\_ACEOF 3294SHELL = /bin/sh 3295all: 3296 @echo '@@@%%%=$(MAKE)=@@@%%%' 3297_ACEOF 3298# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3299case `${MAKE-make} -f conftest.make 2>/dev/null` in 3300 *@@@%%%=?*=@@@%%%*) 3301 eval ac_cv_prog_make_${ac_make}_set=yes;; 3302 *) 3303 eval ac_cv_prog_make_${ac_make}_set=no;; 3304esac 3305rm -f conftest.make 3306fi 3307if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3309$as_echo "yes" >&6; } 3310 SET_MAKE= 3311else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313$as_echo "no" >&6; } 3314 SET_MAKE="MAKE=${MAKE-make}" 3315fi 3316 3317rm -rf .tst 2>/dev/null 3318mkdir .tst 2>/dev/null 3319if test -d .tst; then 3320 am__leading_dot=. 3321else 3322 am__leading_dot=_ 3323fi 3324rmdir .tst 2>/dev/null 3325 3326# Check whether --enable-silent-rules was given. 3327if test "${enable_silent_rules+set}" = set; then : 3328 enableval=$enable_silent_rules; 3329fi 3330 3331case $enable_silent_rules in # ((( 3332 yes) AM_DEFAULT_VERBOSITY=0;; 3333 no) AM_DEFAULT_VERBOSITY=1;; 3334 *) AM_DEFAULT_VERBOSITY=1;; 3335esac 3336am_make=${MAKE-make} 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3338$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3339if ${am_cv_make_support_nested_variables+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 if $as_echo 'TRUE=$(BAR$(V)) 3343BAR0=false 3344BAR1=true 3345V=1 3346am__doit: 3347 @$(TRUE) 3348.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3349 am_cv_make_support_nested_variables=yes 3350else 3351 am_cv_make_support_nested_variables=no 3352fi 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3355$as_echo "$am_cv_make_support_nested_variables" >&6; } 3356if test $am_cv_make_support_nested_variables = yes; then 3357 AM_V='$(V)' 3358 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3359else 3360 AM_V=$AM_DEFAULT_VERBOSITY 3361 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3362fi 3363AM_BACKSLASH='\' 3364 3365if test "`cd $srcdir && pwd`" != "`pwd`"; then 3366 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3367 # is not polluted with repeated "-I." 3368 am__isrc=' -I$(srcdir)' 3369 # test to see if srcdir already configured 3370 if test -f $srcdir/config.status; then 3371 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3372 fi 3373fi 3374 3375# test whether we have cygpath 3376if test -z "$CYGPATH_W"; then 3377 if (cygpath --version) >/dev/null 2>/dev/null; then 3378 CYGPATH_W='cygpath -w' 3379 else 3380 CYGPATH_W=echo 3381 fi 3382fi 3383 3384 3385# Define the identity of the package. 3386 PACKAGE='tiff' 3387 VERSION='4.0.6' 3388 3389 3390cat >>confdefs.h <<_ACEOF 3391#define PACKAGE "$PACKAGE" 3392_ACEOF 3393 3394 3395cat >>confdefs.h <<_ACEOF 3396#define VERSION "$VERSION" 3397_ACEOF 3398 3399# Some tools Automake needs. 3400 3401ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3402 3403 3404AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3405 3406 3407AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3408 3409 3410AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3411 3412 3413MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3414 3415# For better backward compatibility. To be removed once Automake 1.9.x 3416# dies out for good. For more background, see: 3417# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3418# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3419mkdir_p='$(MKDIR_P)' 3420 3421# We need awk for the "check" target (and possibly the TAP driver). The 3422# system "awk" is bad on some platforms. 3423# Always define AMTAR for backward compatibility. Yes, it's still used 3424# in the wild :-( We should find a proper way to deprecate it ... 3425AMTAR='$${TAR-tar}' 3426 3427 3428# We'll loop over all known methods to create a tar archive until one works. 3429_am_tools='gnutar pax cpio none' 3430 3431 3432 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3434$as_echo_n "checking how to create a pax tar archive... " >&6; } 3435 3436 # Go ahead even if we have the value already cached. We do so because we 3437 # need to set the values for the 'am__tar' and 'am__untar' variables. 3438 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3439 3440 for _am_tool in $_am_tools; do 3441 case $_am_tool in 3442 gnutar) 3443 for _am_tar in tar gnutar gtar; do 3444 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3445 ($_am_tar --version) >&5 2>&5 3446 ac_status=$? 3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3448 (exit $ac_status); } && break 3449 done 3450 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3451 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3452 am__untar="$_am_tar -xf -" 3453 ;; 3454 plaintar) 3455 # Must skip GNU tar: if it does not support --format= it doesn't create 3456 # ustar tarball either. 3457 (tar --version) >/dev/null 2>&1 && continue 3458 am__tar='tar chf - "$$tardir"' 3459 am__tar_='tar chf - "$tardir"' 3460 am__untar='tar xf -' 3461 ;; 3462 pax) 3463 am__tar='pax -L -x pax -w "$$tardir"' 3464 am__tar_='pax -L -x pax -w "$tardir"' 3465 am__untar='pax -r' 3466 ;; 3467 cpio) 3468 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3469 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3470 am__untar='cpio -i -H pax -d' 3471 ;; 3472 none) 3473 am__tar=false 3474 am__tar_=false 3475 am__untar=false 3476 ;; 3477 esac 3478 3479 # If the value was cached, stop now. We just wanted to have am__tar 3480 # and am__untar set. 3481 test -n "${am_cv_prog_tar_pax}" && break 3482 3483 # tar/untar a dummy directory, and stop if the command works. 3484 rm -rf conftest.dir 3485 mkdir conftest.dir 3486 echo GrepMe > conftest.dir/file 3487 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3488 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3489 ac_status=$? 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } 3492 rm -rf conftest.dir 3493 if test -s conftest.tar; then 3494 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3495 ($am__untar <conftest.tar) >&5 2>&5 3496 ac_status=$? 3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3498 (exit $ac_status); } 3499 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3500 (cat conftest.dir/file) >&5 2>&5 3501 ac_status=$? 3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3503 (exit $ac_status); } 3504 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3505 fi 3506 done 3507 rm -rf conftest.dir 3508 3509 if ${am_cv_prog_tar_pax+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 am_cv_prog_tar_pax=$_am_tool 3513fi 3514 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3516$as_echo "$am_cv_prog_tar_pax" >&6; } 3517 3518 3519 3520 3521 3522 3523# POSIX will say in a future version that running "rm -f" with no argument 3524# is OK; and we want to be able to make that assumption in our Makefile 3525# recipes. So use an aggressive probe to check that the usage we want is 3526# actually supported "in the wild" to an acceptable degree. 3527# See automake bug#10828. 3528# To make any issue more visible, cause the running configure to be aborted 3529# by default if the 'rm' program in use doesn't match our expectations; the 3530# user can still override this though. 3531if rm -f && rm -fr && rm -rf; then : OK; else 3532 cat >&2 <<'END' 3533Oops! 3534 3535Your 'rm' program seems unable to run without file operands specified 3536on the command line, even when the '-f' option is present. This is contrary 3537to the behaviour of most rm programs out there, and not conforming with 3538the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3539 3540Please tell bug-automake@gnu.org about your system, including the value 3541of your $PATH and any error possibly output before this message. This 3542can help us improve future automake versions. 3543 3544END 3545 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3546 echo 'Configuration will proceed anyway, since you have set the' >&2 3547 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3548 echo >&2 3549 else 3550 cat >&2 <<'END' 3551Aborting the configuration process, to ensure you take notice of the issue. 3552 3553You can download and install GNU coreutils to get an 'rm' implementation 3554that behaves properly: <http://www.gnu.org/software/coreutils/>. 3555 3556If you want to complete the configuration process using your problematic 3557'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3558to "yes", and re-run configure. 3559 3560END 3561 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3562 fi 3563fi 3564 3565 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3567$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3568 # Check whether --enable-maintainer-mode was given. 3569if test "${enable_maintainer_mode+set}" = set; then : 3570 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3571else 3572 USE_MAINTAINER_MODE=no 3573fi 3574 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3576$as_echo "$USE_MAINTAINER_MODE" >&6; } 3577 if test $USE_MAINTAINER_MODE = yes; then 3578 MAINTAINER_MODE_TRUE= 3579 MAINTAINER_MODE_FALSE='#' 3580else 3581 MAINTAINER_MODE_TRUE='#' 3582 MAINTAINER_MODE_FALSE= 3583fi 3584 3585 MAINT=$MAINTAINER_MODE_TRUE 3586 3587 3588 3589LIBTIFF_MAJOR_VERSION=4 3590LIBTIFF_MINOR_VERSION=0 3591LIBTIFF_MICRO_VERSION=6 3592LIBTIFF_ALPHA_VERSION= 3593LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3594LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3595 3596LIBTIFF_CURRENT=7 3597LIBTIFF_REVISION=4 3598LIBTIFF_AGE=2 3599LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3600 3601# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3602# in OpenBSD uses some special semantics for shared libraries. Their soname 3603# contains only two numbers, major and minor. 3604# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3605#case "$host_os" in 3606# openbsd* | mirbsd*) 3607# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3608# ;; 3609# *) 3610# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3611# ;; 3612#esac 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622ac_ext=c 3623ac_cpp='$CPP $CPPFLAGS' 3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3626ac_compiler_gnu=$ac_cv_c_compiler_gnu 3627if test -n "$ac_tool_prefix"; then 3628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3629set dummy ${ac_tool_prefix}gcc; ac_word=$2 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631$as_echo_n "checking for $ac_word... " >&6; } 3632if ${ac_cv_prog_CC+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 if test -n "$CC"; then 3636 ac_cv_prog_CC="$CC" # Let the user override the test. 3637else 3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 3642 test -z "$as_dir" && as_dir=. 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3645 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3647 break 2 3648 fi 3649done 3650 done 3651IFS=$as_save_IFS 3652 3653fi 3654fi 3655CC=$ac_cv_prog_CC 3656if test -n "$CC"; then 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3658$as_echo "$CC" >&6; } 3659else 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661$as_echo "no" >&6; } 3662fi 3663 3664 3665fi 3666if test -z "$ac_cv_prog_CC"; then 3667 ac_ct_CC=$CC 3668 # Extract the first word of "gcc", so it can be a program name with args. 3669set dummy gcc; ac_word=$2 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3671$as_echo_n "checking for $ac_word... " >&6; } 3672if ${ac_cv_prog_ac_ct_CC+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 if test -n "$ac_ct_CC"; then 3676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3677else 3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 3682 test -z "$as_dir" && as_dir=. 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3685 ac_cv_prog_ac_ct_CC="gcc" 3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3687 break 2 3688 fi 3689done 3690 done 3691IFS=$as_save_IFS 3692 3693fi 3694fi 3695ac_ct_CC=$ac_cv_prog_ac_ct_CC 3696if test -n "$ac_ct_CC"; then 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3698$as_echo "$ac_ct_CC" >&6; } 3699else 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701$as_echo "no" >&6; } 3702fi 3703 3704 if test "x$ac_ct_CC" = x; then 3705 CC="" 3706 else 3707 case $cross_compiling:$ac_tool_warned in 3708yes:) 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3711ac_tool_warned=yes ;; 3712esac 3713 CC=$ac_ct_CC 3714 fi 3715else 3716 CC="$ac_cv_prog_CC" 3717fi 3718 3719if test -z "$CC"; then 3720 if test -n "$ac_tool_prefix"; then 3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3722set dummy ${ac_tool_prefix}cc; ac_word=$2 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724$as_echo_n "checking for $ac_word... " >&6; } 3725if ${ac_cv_prog_CC+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -n "$CC"; then 3729 ac_cv_prog_CC="$CC" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_exec_ext in '' $ac_executable_extensions; do 3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3738 ac_cv_prog_CC="${ac_tool_prefix}cc" 3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748CC=$ac_cv_prog_CC 3749if test -n "$CC"; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3751$as_echo "$CC" >&6; } 3752else 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755fi 3756 3757 3758 fi 3759fi 3760if test -z "$CC"; then 3761 # Extract the first word of "cc", so it can be a program name with args. 3762set dummy cc; ac_word=$2 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3764$as_echo_n "checking for $ac_word... " >&6; } 3765if ${ac_cv_prog_CC+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 if test -n "$CC"; then 3769 ac_cv_prog_CC="$CC" # Let the user override the test. 3770else 3771 ac_prog_rejected=no 3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3773for as_dir in $PATH 3774do 3775 IFS=$as_save_IFS 3776 test -z "$as_dir" && as_dir=. 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3780 ac_prog_rejected=yes 3781 continue 3782 fi 3783 ac_cv_prog_CC="cc" 3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3785 break 2 3786 fi 3787done 3788 done 3789IFS=$as_save_IFS 3790 3791if test $ac_prog_rejected = yes; then 3792 # We found a bogon in the path, so make sure we never use it. 3793 set dummy $ac_cv_prog_CC 3794 shift 3795 if test $# != 0; then 3796 # We chose a different compiler from the bogus one. 3797 # However, it has the same basename, so the bogon will be chosen 3798 # first if we set CC to just the basename; use the full file name. 3799 shift 3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3801 fi 3802fi 3803fi 3804fi 3805CC=$ac_cv_prog_CC 3806if test -n "$CC"; then 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3808$as_echo "$CC" >&6; } 3809else 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3811$as_echo "no" >&6; } 3812fi 3813 3814 3815fi 3816if test -z "$CC"; then 3817 if test -n "$ac_tool_prefix"; then 3818 for ac_prog in cl.exe 3819 do 3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3821set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823$as_echo_n "checking for $ac_word... " >&6; } 3824if ${ac_cv_prog_CC+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 if test -n "$CC"; then 3828 ac_cv_prog_CC="$CC" # Let the user override the test. 3829else 3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3839 break 2 3840 fi 3841done 3842 done 3843IFS=$as_save_IFS 3844 3845fi 3846fi 3847CC=$ac_cv_prog_CC 3848if test -n "$CC"; then 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3850$as_echo "$CC" >&6; } 3851else 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3853$as_echo "no" >&6; } 3854fi 3855 3856 3857 test -n "$CC" && break 3858 done 3859fi 3860if test -z "$CC"; then 3861 ac_ct_CC=$CC 3862 for ac_prog in cl.exe 3863do 3864 # Extract the first word of "$ac_prog", so it can be a program name with args. 3865set dummy $ac_prog; ac_word=$2 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3867$as_echo_n "checking for $ac_word... " >&6; } 3868if ${ac_cv_prog_ac_ct_CC+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if test -n "$ac_ct_CC"; then 3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3873else 3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3875for as_dir in $PATH 3876do 3877 IFS=$as_save_IFS 3878 test -z "$as_dir" && as_dir=. 3879 for ac_exec_ext in '' $ac_executable_extensions; do 3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3881 ac_cv_prog_ac_ct_CC="$ac_prog" 3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3883 break 2 3884 fi 3885done 3886 done 3887IFS=$as_save_IFS 3888 3889fi 3890fi 3891ac_ct_CC=$ac_cv_prog_ac_ct_CC 3892if test -n "$ac_ct_CC"; then 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3894$as_echo "$ac_ct_CC" >&6; } 3895else 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897$as_echo "no" >&6; } 3898fi 3899 3900 3901 test -n "$ac_ct_CC" && break 3902done 3903 3904 if test "x$ac_ct_CC" = x; then 3905 CC="" 3906 else 3907 case $cross_compiling:$ac_tool_warned in 3908yes:) 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3911ac_tool_warned=yes ;; 3912esac 3913 CC=$ac_ct_CC 3914 fi 3915fi 3916 3917fi 3918 3919 3920test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3922as_fn_error $? "no acceptable C compiler found in \$PATH 3923See \`config.log' for more details" "$LINENO" 5; } 3924 3925# Provide some information about the compiler. 3926$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3927set X $ac_compile 3928ac_compiler=$2 3929for ac_option in --version -v -V -qversion; do 3930 { { ac_try="$ac_compiler $ac_option >&5" 3931case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936$as_echo "$ac_try_echo"; } >&5 3937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3938 ac_status=$? 3939 if test -s conftest.err; then 3940 sed '10a\ 3941... rest of stderr output deleted ... 3942 10q' conftest.err >conftest.er1 3943 cat conftest.er1 >&5 3944 fi 3945 rm -f conftest.er1 conftest.err 3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3947 test $ac_status = 0; } 3948done 3949 3950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952 3953int 3954main () 3955{ 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961ac_clean_files_save=$ac_clean_files 3962ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3963# Try to create an executable without -o first, disregard a.out. 3964# It will help us diagnose broken compilers, and finding out an intuition 3965# of exeext. 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3967$as_echo_n "checking whether the C compiler works... " >&6; } 3968ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3969 3970# The possible output files: 3971ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3972 3973ac_rmfiles= 3974for ac_file in $ac_files 3975do 3976 case $ac_file in 3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3978 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3979 esac 3980done 3981rm -f $ac_rmfiles 3982 3983if { { ac_try="$ac_link_default" 3984case "(($ac_try" in 3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3986 *) ac_try_echo=$ac_try;; 3987esac 3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3989$as_echo "$ac_try_echo"; } >&5 3990 (eval "$ac_link_default") 2>&5 3991 ac_status=$? 3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3993 test $ac_status = 0; }; then : 3994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3995# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3996# in a Makefile. We should not override ac_cv_exeext if it was cached, 3997# so that the user can short-circuit this test for compilers unknown to 3998# Autoconf. 3999for ac_file in $ac_files '' 4000do 4001 test -f "$ac_file" || continue 4002 case $ac_file in 4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4004 ;; 4005 [ab].out ) 4006 # We found the default executable, but exeext='' is most 4007 # certainly right. 4008 break;; 4009 *.* ) 4010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4011 then :; else 4012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4013 fi 4014 # We set ac_cv_exeext here because the later test for it is not 4015 # safe: cross compilers may not add the suffix if given an `-o' 4016 # argument, so we may need to know it at that point already. 4017 # Even if this section looks crufty: it has the advantage of 4018 # actually working. 4019 break;; 4020 * ) 4021 break;; 4022 esac 4023done 4024test "$ac_cv_exeext" = no && ac_cv_exeext= 4025 4026else 4027 ac_file='' 4028fi 4029if test -z "$ac_file"; then : 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031$as_echo "no" >&6; } 4032$as_echo "$as_me: failed program was:" >&5 4033sed 's/^/| /' conftest.$ac_ext >&5 4034 4035{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4037as_fn_error 77 "C compiler cannot create executables 4038See \`config.log' for more details" "$LINENO" 5; } 4039else 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4041$as_echo "yes" >&6; } 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4044$as_echo_n "checking for C compiler default output file name... " >&6; } 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4046$as_echo "$ac_file" >&6; } 4047ac_exeext=$ac_cv_exeext 4048 4049rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4050ac_clean_files=$ac_clean_files_save 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4052$as_echo_n "checking for suffix of executables... " >&6; } 4053if { { ac_try="$ac_link" 4054case "(($ac_try" in 4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4056 *) ac_try_echo=$ac_try;; 4057esac 4058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4059$as_echo "$ac_try_echo"; } >&5 4060 (eval "$ac_link") 2>&5 4061 ac_status=$? 4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4063 test $ac_status = 0; }; then : 4064 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4066# work properly (i.e., refer to `conftest.exe'), while it won't with 4067# `rm'. 4068for ac_file in conftest.exe conftest conftest.*; do 4069 test -f "$ac_file" || continue 4070 case $ac_file in 4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4073 break;; 4074 * ) break;; 4075 esac 4076done 4077else 4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4080as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4081See \`config.log' for more details" "$LINENO" 5; } 4082fi 4083rm -f conftest conftest$ac_cv_exeext 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4085$as_echo "$ac_cv_exeext" >&6; } 4086 4087rm -f conftest.$ac_ext 4088EXEEXT=$ac_cv_exeext 4089ac_exeext=$EXEEXT 4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092#include <stdio.h> 4093int 4094main () 4095{ 4096FILE *f = fopen ("conftest.out", "w"); 4097 return ferror (f) || fclose (f) != 0; 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103ac_clean_files="$ac_clean_files conftest.out" 4104# Check that the compiler produces executables we can run. If not, either 4105# the compiler is broken, or we cross compile. 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4107$as_echo_n "checking whether we are cross compiling... " >&6; } 4108if test "$cross_compiling" != yes; then 4109 { { ac_try="$ac_link" 4110case "(($ac_try" in 4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4112 *) ac_try_echo=$ac_try;; 4113esac 4114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4115$as_echo "$ac_try_echo"; } >&5 4116 (eval "$ac_link") 2>&5 4117 ac_status=$? 4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4119 test $ac_status = 0; } 4120 if { ac_try='./conftest$ac_cv_exeext' 4121 { { case "(($ac_try" in 4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123 *) ac_try_echo=$ac_try;; 4124esac 4125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4126$as_echo "$ac_try_echo"; } >&5 4127 (eval "$ac_try") 2>&5 4128 ac_status=$? 4129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4130 test $ac_status = 0; }; }; then 4131 cross_compiling=no 4132 else 4133 if test "$cross_compiling" = maybe; then 4134 cross_compiling=yes 4135 else 4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138as_fn_error $? "cannot run C compiled programs. 4139If you meant to cross compile, use \`--host'. 4140See \`config.log' for more details" "$LINENO" 5; } 4141 fi 4142 fi 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4145$as_echo "$cross_compiling" >&6; } 4146 4147rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4148ac_clean_files=$ac_clean_files_save 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4150$as_echo_n "checking for suffix of object files... " >&6; } 4151if ${ac_cv_objext+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165rm -f conftest.o conftest.obj 4166if { { ac_try="$ac_compile" 4167case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4172$as_echo "$ac_try_echo"; } >&5 4173 (eval "$ac_compile") 2>&5 4174 ac_status=$? 4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4176 test $ac_status = 0; }; then : 4177 for ac_file in conftest.o conftest.obj conftest.*; do 4178 test -f "$ac_file" || continue; 4179 case $ac_file in 4180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4182 break;; 4183 esac 4184done 4185else 4186 $as_echo "$as_me: failed program was:" >&5 4187sed 's/^/| /' conftest.$ac_ext >&5 4188 4189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4191as_fn_error $? "cannot compute suffix of object files: cannot compile 4192See \`config.log' for more details" "$LINENO" 5; } 4193fi 4194rm -f conftest.$ac_cv_objext conftest.$ac_ext 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4197$as_echo "$ac_cv_objext" >&6; } 4198OBJEXT=$ac_cv_objext 4199ac_objext=$OBJEXT 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4202if ${ac_cv_c_compiler_gnu+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207 4208int 4209main () 4210{ 4211#ifndef __GNUC__ 4212 choke me 4213#endif 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219if ac_fn_c_try_compile "$LINENO"; then : 4220 ac_compiler_gnu=yes 4221else 4222 ac_compiler_gnu=no 4223fi 4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4225ac_cv_c_compiler_gnu=$ac_compiler_gnu 4226 4227fi 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4229$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4230if test $ac_compiler_gnu = yes; then 4231 GCC=yes 4232else 4233 GCC= 4234fi 4235ac_test_CFLAGS=${CFLAGS+set} 4236ac_save_CFLAGS=$CFLAGS 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4238$as_echo_n "checking whether $CC accepts -g... " >&6; } 4239if ${ac_cv_prog_cc_g+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 ac_save_c_werror_flag=$ac_c_werror_flag 4243 ac_c_werror_flag=yes 4244 ac_cv_prog_cc_g=no 4245 CFLAGS="-g" 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248 4249int 4250main () 4251{ 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257if ac_fn_c_try_compile "$LINENO"; then : 4258 ac_cv_prog_cc_g=yes 4259else 4260 CFLAGS="" 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263 4264int 4265main () 4266{ 4267 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272if ac_fn_c_try_compile "$LINENO"; then : 4273 4274else 4275 ac_c_werror_flag=$ac_save_c_werror_flag 4276 CFLAGS="-g" 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288if ac_fn_c_try_compile "$LINENO"; then : 4289 ac_cv_prog_cc_g=yes 4290fi 4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4294fi 4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4296 ac_c_werror_flag=$ac_save_c_werror_flag 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4299$as_echo "$ac_cv_prog_cc_g" >&6; } 4300if test "$ac_test_CFLAGS" = set; then 4301 CFLAGS=$ac_save_CFLAGS 4302elif test $ac_cv_prog_cc_g = yes; then 4303 if test "$GCC" = yes; then 4304 CFLAGS="-g -O2" 4305 else 4306 CFLAGS="-g" 4307 fi 4308else 4309 if test "$GCC" = yes; then 4310 CFLAGS="-O2" 4311 else 4312 CFLAGS= 4313 fi 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4317if ${ac_cv_prog_cc_c89+:} false; then : 4318 $as_echo_n "(cached) " >&6 4319else 4320 ac_cv_prog_cc_c89=no 4321ac_save_CC=$CC 4322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324#include <stdarg.h> 4325#include <stdio.h> 4326struct stat; 4327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4328struct buf { int x; }; 4329FILE * (*rcsopen) (struct buf *, struct stat *, int); 4330static char *e (p, i) 4331 char **p; 4332 int i; 4333{ 4334 return p[i]; 4335} 4336static char *f (char * (*g) (char **, int), char **p, ...) 4337{ 4338 char *s; 4339 va_list v; 4340 va_start (v,p); 4341 s = g (p, va_arg (v,int)); 4342 va_end (v); 4343 return s; 4344} 4345 4346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4347 function prototypes and stuff, but not '\xHH' hex character constants. 4348 These don't provoke an error unfortunately, instead are silently treated 4349 as 'x'. The following induces an error, until -std is added to get 4350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4351 array size at least. It's necessary to write '\x00'==0 to get something 4352 that's true only with -std. */ 4353int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4354 4355/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4356 inside strings and character constants. */ 4357#define FOO(x) 'x' 4358int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4359 4360int test (int i, double x); 4361struct s1 {int (*f) (int a);}; 4362struct s2 {int (*f) (double a);}; 4363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4364int argc; 4365char **argv; 4366int 4367main () 4368{ 4369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4376do 4377 CC="$ac_save_CC $ac_arg" 4378 if ac_fn_c_try_compile "$LINENO"; then : 4379 ac_cv_prog_cc_c89=$ac_arg 4380fi 4381rm -f core conftest.err conftest.$ac_objext 4382 test "x$ac_cv_prog_cc_c89" != "xno" && break 4383done 4384rm -f conftest.$ac_ext 4385CC=$ac_save_CC 4386 4387fi 4388# AC_CACHE_VAL 4389case "x$ac_cv_prog_cc_c89" in 4390 x) 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4392$as_echo "none needed" >&6; } ;; 4393 xno) 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4395$as_echo "unsupported" >&6; } ;; 4396 *) 4397 CC="$CC $ac_cv_prog_cc_c89" 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4399$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4400esac 4401if test "x$ac_cv_prog_cc_c89" != xno; then : 4402 4403fi 4404 4405ac_ext=c 4406ac_cpp='$CPP $CPPFLAGS' 4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4409ac_compiler_gnu=$ac_cv_c_compiler_gnu 4410 4411ac_ext=c 4412ac_cpp='$CPP $CPPFLAGS' 4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4415ac_compiler_gnu=$ac_cv_c_compiler_gnu 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4417$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4418if ${am_cv_prog_cc_c_o+:} false; then : 4419 $as_echo_n "(cached) " >&6 4420else 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423 4424int 4425main () 4426{ 4427 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432 # Make sure it works both with $CC and with simple cc. 4433 # Following AC_PROG_CC_C_O, we do the test twice because some 4434 # compilers refuse to overwrite an existing .o file with -o, 4435 # though they will create one. 4436 am_cv_prog_cc_c_o=yes 4437 for am_i in 1 2; do 4438 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4439 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } \ 4443 && test -f conftest2.$ac_objext; then 4444 : OK 4445 else 4446 am_cv_prog_cc_c_o=no 4447 break 4448 fi 4449 done 4450 rm -f core conftest* 4451 unset am_i 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4454$as_echo "$am_cv_prog_cc_c_o" >&6; } 4455if test "$am_cv_prog_cc_c_o" != yes; then 4456 # Losing compiler, so override with the script. 4457 # FIXME: It is wrong to rewrite CC. 4458 # But if we don't then we get into trouble of one sort or another. 4459 # A longer-term fix would be to have automake use am__CC in this case, 4460 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4461 CC="$am_aux_dir/compile $CC" 4462fi 4463ac_ext=c 4464ac_cpp='$CPP $CPPFLAGS' 4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4467ac_compiler_gnu=$ac_cv_c_compiler_gnu 4468 4469DEPDIR="${am__leading_dot}deps" 4470 4471ac_config_commands="$ac_config_commands depfiles" 4472 4473 4474am_make=${MAKE-make} 4475cat > confinc << 'END' 4476am__doit: 4477 @echo this is the am__doit target 4478.PHONY: am__doit 4479END 4480# If we don't find an include directive, just comment out the code. 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4482$as_echo_n "checking for style of include used by $am_make... " >&6; } 4483am__include="#" 4484am__quote= 4485_am_result=none 4486# First try GNU make style include. 4487echo "include confinc" > confmf 4488# Ignore all kinds of additional output from 'make'. 4489case `$am_make -s -f confmf 2> /dev/null` in #( 4490*the\ am__doit\ target*) 4491 am__include=include 4492 am__quote= 4493 _am_result=GNU 4494 ;; 4495esac 4496# Now try BSD make style include. 4497if test "$am__include" = "#"; then 4498 echo '.include "confinc"' > confmf 4499 case `$am_make -s -f confmf 2> /dev/null` in #( 4500 *the\ am__doit\ target*) 4501 am__include=.include 4502 am__quote="\"" 4503 _am_result=BSD 4504 ;; 4505 esac 4506fi 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4510$as_echo "$_am_result" >&6; } 4511rm -f confinc confmf 4512 4513# Check whether --enable-dependency-tracking was given. 4514if test "${enable_dependency_tracking+set}" = set; then : 4515 enableval=$enable_dependency_tracking; 4516fi 4517 4518if test "x$enable_dependency_tracking" != xno; then 4519 am_depcomp="$ac_aux_dir/depcomp" 4520 AMDEPBACKSLASH='\' 4521 am__nodep='_no' 4522fi 4523 if test "x$enable_dependency_tracking" != xno; then 4524 AMDEP_TRUE= 4525 AMDEP_FALSE='#' 4526else 4527 AMDEP_TRUE='#' 4528 AMDEP_FALSE= 4529fi 4530 4531 4532 4533depcc="$CC" am_compiler_list= 4534 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4536$as_echo_n "checking dependency style of $depcc... " >&6; } 4537if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4541 # We make a subdir and do the tests there. Otherwise we can end up 4542 # making bogus files that we don't know about and never remove. For 4543 # instance it was reported that on HP-UX the gcc test will end up 4544 # making a dummy file named 'D' -- because '-MD' means "put the output 4545 # in D". 4546 rm -rf conftest.dir 4547 mkdir conftest.dir 4548 # Copy depcomp to subdir because otherwise we won't find it if we're 4549 # using a relative directory. 4550 cp "$am_depcomp" conftest.dir 4551 cd conftest.dir 4552 # We will build objects and dependencies in a subdirectory because 4553 # it helps to detect inapplicable dependency modes. For instance 4554 # both Tru64's cc and ICC support -MD to output dependencies as a 4555 # side effect of compilation, but ICC will put the dependencies in 4556 # the current directory while Tru64 will put them in the object 4557 # directory. 4558 mkdir sub 4559 4560 am_cv_CC_dependencies_compiler_type=none 4561 if test "$am_compiler_list" = ""; then 4562 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4563 fi 4564 am__universal=false 4565 case " $depcc " in #( 4566 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4567 esac 4568 4569 for depmode in $am_compiler_list; do 4570 # Setup a source with many dependencies, because some compilers 4571 # like to wrap large dependency lists on column 80 (with \), and 4572 # we should not choose a depcomp mode which is confused by this. 4573 # 4574 # We need to recreate these files for each test, as the compiler may 4575 # overwrite some of them when testing with obscure command lines. 4576 # This happens at least with the AIX C compiler. 4577 : > sub/conftest.c 4578 for i in 1 2 3 4 5 6; do 4579 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4580 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4581 # Solaris 10 /bin/sh. 4582 echo '/* dummy */' > sub/conftst$i.h 4583 done 4584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4585 4586 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4587 # mode. It turns out that the SunPro C++ compiler does not properly 4588 # handle '-M -o', and we need to detect this. Also, some Intel 4589 # versions had trouble with output in subdirs. 4590 am__obj=sub/conftest.${OBJEXT-o} 4591 am__minus_obj="-o $am__obj" 4592 case $depmode in 4593 gcc) 4594 # This depmode causes a compiler race in universal mode. 4595 test "$am__universal" = false || continue 4596 ;; 4597 nosideeffect) 4598 # After this tag, mechanisms are not by side-effect, so they'll 4599 # only be used when explicitly requested. 4600 if test "x$enable_dependency_tracking" = xyes; then 4601 continue 4602 else 4603 break 4604 fi 4605 ;; 4606 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4607 # This compiler won't grok '-c -o', but also, the minuso test has 4608 # not run yet. These depmodes are late enough in the game, and 4609 # so weak that their functioning should not be impacted. 4610 am__obj=conftest.${OBJEXT-o} 4611 am__minus_obj= 4612 ;; 4613 none) break ;; 4614 esac 4615 if depmode=$depmode \ 4616 source=sub/conftest.c object=$am__obj \ 4617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4618 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4619 >/dev/null 2>conftest.err && 4620 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4622 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4624 # icc doesn't choke on unknown options, it will just issue warnings 4625 # or remarks (even with -Werror). So we grep stderr for any message 4626 # that says an option was ignored or not supported. 4627 # When given -MP, icc 7.0 and 7.1 complain thusly: 4628 # icc: Command line warning: ignoring option '-M'; no argument required 4629 # The diagnosis changed in icc 8.0: 4630 # icc: Command line remark: option '-MP' not supported 4631 if (grep 'ignoring option' conftest.err || 4632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4633 am_cv_CC_dependencies_compiler_type=$depmode 4634 break 4635 fi 4636 fi 4637 done 4638 4639 cd .. 4640 rm -rf conftest.dir 4641else 4642 am_cv_CC_dependencies_compiler_type=none 4643fi 4644 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4647$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4648CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4649 4650 if 4651 test "x$enable_dependency_tracking" != xno \ 4652 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4653 am__fastdepCC_TRUE= 4654 am__fastdepCC_FALSE='#' 4655else 4656 am__fastdepCC_TRUE='#' 4657 am__fastdepCC_FALSE= 4658fi 4659 4660 4661 4662 4663 4664 ansi= 4665 if test -z "$ansi"; then 4666 msg="for C compiler warning flags" 4667 else 4668 msg="for C compiler warning and ANSI conformance flags" 4669 fi 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4671$as_echo_n "checking $msg... " >&6; } 4672if ${vl_cv_prog_cc_warnings+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 4676 if test -n "$CC"; then 4677 cat > conftest.c <<EOF 4678int main(int argc, char **argv) { return 0; } 4679EOF 4680 4681 if test "$GCC" = "yes"; then 4682 if test -z "$ansi"; then 4683 vl_cv_prog_cc_warnings="-Wall -W" 4684 else 4685 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4686 fi 4687 4688 4689 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4690 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4691 test -f conftest.o; then 4692 if test -z "$ansi"; then 4693 vl_cv_prog_cc_warnings="-v" 4694 else 4695 vl_cv_prog_cc_warnings="-v -Xc" 4696 fi 4697 4698 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4699 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4700 test -f conftest.o; then 4701 if test -z "$ansi"; then 4702 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4703 else 4704 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4705 fi 4706 4707 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4708 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4709 test -f conftest.o; then 4710 if test -z "$ansi"; then 4711 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4712 else 4713 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4714 fi 4715 4716 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4717 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4718 test -f conftest.o; then 4719 if test -z "$ansi"; then 4720 vl_cv_prog_cc_warnings="-fullwarn" 4721 else 4722 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4723 fi 4724 4725 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4726 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4727 test -f conftest.o; then 4728 if test -z "$ansi"; then 4729 vl_cv_prog_cc_warnings="+w1" 4730 else 4731 vl_cv_prog_cc_warnings="+w1 -Aa" 4732 fi 4733 4734 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4735 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4736 test -f conftest.o; then 4737 if test -z "$ansi"; then 4738 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4739 else 4740 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4741 fi 4742 4743 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4744 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4745 test -f conftest.o; then 4746 if test -z "$ansi"; then 4747 vl_cv_prog_cc_warnings="-h msglevel 2" 4748 else 4749 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4750 fi 4751 4752 fi 4753 rm -f conftest.* 4754 fi 4755 if test -n "$vl_cv_prog_cc_warnings"; then 4756 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4757 else 4758 vl_cv_prog_cc_warnings="unknown" 4759 fi 4760 4761fi 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4763$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4764 4765 4766 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4768$as_echo_n "checking whether ln -s works... " >&6; } 4769LN_S=$as_ln_s 4770if test "$LN_S" = "ln -s"; then 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4772$as_echo "yes" >&6; } 4773else 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4775$as_echo "no, using $LN_S" >&6; } 4776fi 4777 4778# Used only for validating the source distribution during distcheck 4779# Extract the first word of "cmake", so it can be a program name with args. 4780set dummy cmake; ac_word=$2 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4782$as_echo_n "checking for $ac_word... " >&6; } 4783if ${ac_cv_path_CMAKE+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 case $CMAKE in 4787 [\\/]* | ?:[\\/]*) 4788 ac_cv_path_CMAKE="$CMAKE" # Let the user override the test with a path. 4789 ;; 4790 *) 4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4798 ac_cv_path_CMAKE="$as_dir/$ac_word$ac_exec_ext" 4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803 done 4804IFS=$as_save_IFS 4805 4806 ;; 4807esac 4808fi 4809CMAKE=$ac_cv_path_CMAKE 4810if test -n "$CMAKE"; then 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5 4812$as_echo "$CMAKE" >&6; } 4813else 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4815$as_echo "no" >&6; } 4816fi 4817 4818 4819 4820 4821# Check if LD supports linker scripts, and define automake conditional 4822# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 4823# constrained to compilers using GNU ld on ELF systems or systems 4824# which provide an adequate emulation thereof. 4825# Check whether --enable-ld-version-script was given. 4826if test "${enable_ld_version_script+set}" = set; then : 4827 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4828else 4829 have_ld_version_script=no 4830fi 4831 4832if test "$have_ld_version_script" != no; then 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4834$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4835 save_LDFLAGS="$LDFLAGS" 4836 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4837 cat > conftest.map <<EOF 4838VERS_1 { 4839 global: sym; 4840}; 4841 4842VERS_2 { 4843 global: sym; 4844} VERS_1; 4845EOF 4846 4847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849 4850int 4851main () 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858if ac_fn_c_try_link "$LINENO"; then : 4859 have_ld_version_script=yes 4860else 4861 have_ld_version_script=no 4862fi 4863rm -f core conftest.err conftest.$ac_objext \ 4864 conftest$ac_exeext conftest.$ac_ext 4865 rm -f conftest.map 4866 LDFLAGS="$save_LDFLAGS" 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4868$as_echo "$have_ld_version_script" >&6; } 4869fi 4870 if test "$have_ld_version_script" = "yes"; then 4871 HAVE_LD_VERSION_SCRIPT_TRUE= 4872 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4873else 4874 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4875 HAVE_LD_VERSION_SCRIPT_FALSE= 4876fi 4877 4878 4879 4880 4881 4882 4883case `pwd` in 4884 *\ * | *\ *) 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4886$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4887esac 4888 4889 4890 4891macro_version='2.4.6' 4892macro_revision='2.4.6' 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906ltmain=$ac_aux_dir/ltmain.sh 4907 4908# Backslashify metacharacters that are still active within 4909# double-quoted strings. 4910sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4911 4912# Same as above, but do not quote variable references. 4913double_quote_subst='s/\(["`\\]\)/\\\1/g' 4914 4915# Sed substitution to delay expansion of an escaped shell variable in a 4916# double_quote_subst'ed string. 4917delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4918 4919# Sed substitution to delay expansion of an escaped single quote. 4920delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4921 4922# Sed substitution to avoid accidental globbing in evaled expressions 4923no_glob_subst='s/\*/\\\*/g' 4924 4925ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4926ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4927ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4928 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4930$as_echo_n "checking how to print strings... " >&6; } 4931# Test print first, because it will be a builtin if present. 4932if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4933 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4934 ECHO='print -r --' 4935elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4936 ECHO='printf %s\n' 4937else 4938 # Use this function as a fallback that always works. 4939 func_fallback_echo () 4940 { 4941 eval 'cat <<_LTECHO_EOF 4942$1 4943_LTECHO_EOF' 4944 } 4945 ECHO='func_fallback_echo' 4946fi 4947 4948# func_echo_all arg... 4949# Invoke $ECHO with all args, space-separated. 4950func_echo_all () 4951{ 4952 $ECHO "" 4953} 4954 4955case $ECHO in 4956 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4957$as_echo "printf" >&6; } ;; 4958 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4959$as_echo "print -r" >&6; } ;; 4960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4961$as_echo "cat" >&6; } ;; 4962esac 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4978$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4979if ${ac_cv_path_SED+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4983 for ac_i in 1 2 3 4 5 6 7; do 4984 ac_script="$ac_script$as_nl$ac_script" 4985 done 4986 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4987 { ac_script=; unset ac_script;} 4988 if test -z "$SED"; then 4989 ac_path_SED_found=false 4990 # Loop through the user's path and test for each of PROGNAME-LIST 4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992for as_dir in $PATH 4993do 4994 IFS=$as_save_IFS 4995 test -z "$as_dir" && as_dir=. 4996 for ac_prog in sed gsed; do 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4999 as_fn_executable_p "$ac_path_SED" || continue 5000# Check for GNU ac_path_SED and select it if it is found. 5001 # Check for GNU $ac_path_SED 5002case `"$ac_path_SED" --version 2>&1` in 5003*GNU*) 5004 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5005*) 5006 ac_count=0 5007 $as_echo_n 0123456789 >"conftest.in" 5008 while : 5009 do 5010 cat "conftest.in" "conftest.in" >"conftest.tmp" 5011 mv "conftest.tmp" "conftest.in" 5012 cp "conftest.in" "conftest.nl" 5013 $as_echo '' >> "conftest.nl" 5014 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5016 as_fn_arith $ac_count + 1 && ac_count=$as_val 5017 if test $ac_count -gt ${ac_path_SED_max-0}; then 5018 # Best one so far, save it but keep looking for a better one 5019 ac_cv_path_SED="$ac_path_SED" 5020 ac_path_SED_max=$ac_count 5021 fi 5022 # 10*(2^10) chars as input seems more than enough 5023 test $ac_count -gt 10 && break 5024 done 5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5026esac 5027 5028 $ac_path_SED_found && break 3 5029 done 5030 done 5031 done 5032IFS=$as_save_IFS 5033 if test -z "$ac_cv_path_SED"; then 5034 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5035 fi 5036else 5037 ac_cv_path_SED=$SED 5038fi 5039 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5042$as_echo "$ac_cv_path_SED" >&6; } 5043 SED="$ac_cv_path_SED" 5044 rm -f conftest.sed 5045 5046test -z "$SED" && SED=sed 5047Xsed="$SED -e 1s/^X//" 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5060$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5061if ${ac_cv_path_GREP+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 if test -z "$GREP"; then 5065 ac_path_GREP_found=false 5066 # Loop through the user's path and test for each of PROGNAME-LIST 5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5069do 5070 IFS=$as_save_IFS 5071 test -z "$as_dir" && as_dir=. 5072 for ac_prog in grep ggrep; do 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5075 as_fn_executable_p "$ac_path_GREP" || continue 5076# Check for GNU ac_path_GREP and select it if it is found. 5077 # Check for GNU $ac_path_GREP 5078case `"$ac_path_GREP" --version 2>&1` in 5079*GNU*) 5080 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5081*) 5082 ac_count=0 5083 $as_echo_n 0123456789 >"conftest.in" 5084 while : 5085 do 5086 cat "conftest.in" "conftest.in" >"conftest.tmp" 5087 mv "conftest.tmp" "conftest.in" 5088 cp "conftest.in" "conftest.nl" 5089 $as_echo 'GREP' >> "conftest.nl" 5090 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5092 as_fn_arith $ac_count + 1 && ac_count=$as_val 5093 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5094 # Best one so far, save it but keep looking for a better one 5095 ac_cv_path_GREP="$ac_path_GREP" 5096 ac_path_GREP_max=$ac_count 5097 fi 5098 # 10*(2^10) chars as input seems more than enough 5099 test $ac_count -gt 10 && break 5100 done 5101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5102esac 5103 5104 $ac_path_GREP_found && break 3 5105 done 5106 done 5107 done 5108IFS=$as_save_IFS 5109 if test -z "$ac_cv_path_GREP"; then 5110 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5111 fi 5112else 5113 ac_cv_path_GREP=$GREP 5114fi 5115 5116fi 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5118$as_echo "$ac_cv_path_GREP" >&6; } 5119 GREP="$ac_cv_path_GREP" 5120 5121 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5123$as_echo_n "checking for egrep... " >&6; } 5124if ${ac_cv_path_EGREP+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5128 then ac_cv_path_EGREP="$GREP -E" 5129 else 5130 if test -z "$EGREP"; then 5131 ac_path_EGREP_found=false 5132 # Loop through the user's path and test for each of PROGNAME-LIST 5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5135do 5136 IFS=$as_save_IFS 5137 test -z "$as_dir" && as_dir=. 5138 for ac_prog in egrep; do 5139 for ac_exec_ext in '' $ac_executable_extensions; do 5140 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5141 as_fn_executable_p "$ac_path_EGREP" || continue 5142# Check for GNU ac_path_EGREP and select it if it is found. 5143 # Check for GNU $ac_path_EGREP 5144case `"$ac_path_EGREP" --version 2>&1` in 5145*GNU*) 5146 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5147*) 5148 ac_count=0 5149 $as_echo_n 0123456789 >"conftest.in" 5150 while : 5151 do 5152 cat "conftest.in" "conftest.in" >"conftest.tmp" 5153 mv "conftest.tmp" "conftest.in" 5154 cp "conftest.in" "conftest.nl" 5155 $as_echo 'EGREP' >> "conftest.nl" 5156 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5158 as_fn_arith $ac_count + 1 && ac_count=$as_val 5159 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5160 # Best one so far, save it but keep looking for a better one 5161 ac_cv_path_EGREP="$ac_path_EGREP" 5162 ac_path_EGREP_max=$ac_count 5163 fi 5164 # 10*(2^10) chars as input seems more than enough 5165 test $ac_count -gt 10 && break 5166 done 5167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5168esac 5169 5170 $ac_path_EGREP_found && break 3 5171 done 5172 done 5173 done 5174IFS=$as_save_IFS 5175 if test -z "$ac_cv_path_EGREP"; then 5176 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5177 fi 5178else 5179 ac_cv_path_EGREP=$EGREP 5180fi 5181 5182 fi 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5185$as_echo "$ac_cv_path_EGREP" >&6; } 5186 EGREP="$ac_cv_path_EGREP" 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5190$as_echo_n "checking for fgrep... " >&6; } 5191if ${ac_cv_path_FGREP+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5195 then ac_cv_path_FGREP="$GREP -F" 5196 else 5197 if test -z "$FGREP"; then 5198 ac_path_FGREP_found=false 5199 # Loop through the user's path and test for each of PROGNAME-LIST 5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5202do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_prog in fgrep; do 5206 for ac_exec_ext in '' $ac_executable_extensions; do 5207 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5208 as_fn_executable_p "$ac_path_FGREP" || continue 5209# Check for GNU ac_path_FGREP and select it if it is found. 5210 # Check for GNU $ac_path_FGREP 5211case `"$ac_path_FGREP" --version 2>&1` in 5212*GNU*) 5213 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5214*) 5215 ac_count=0 5216 $as_echo_n 0123456789 >"conftest.in" 5217 while : 5218 do 5219 cat "conftest.in" "conftest.in" >"conftest.tmp" 5220 mv "conftest.tmp" "conftest.in" 5221 cp "conftest.in" "conftest.nl" 5222 $as_echo 'FGREP' >> "conftest.nl" 5223 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5225 as_fn_arith $ac_count + 1 && ac_count=$as_val 5226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5227 # Best one so far, save it but keep looking for a better one 5228 ac_cv_path_FGREP="$ac_path_FGREP" 5229 ac_path_FGREP_max=$ac_count 5230 fi 5231 # 10*(2^10) chars as input seems more than enough 5232 test $ac_count -gt 10 && break 5233 done 5234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5235esac 5236 5237 $ac_path_FGREP_found && break 3 5238 done 5239 done 5240 done 5241IFS=$as_save_IFS 5242 if test -z "$ac_cv_path_FGREP"; then 5243 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5244 fi 5245else 5246 ac_cv_path_FGREP=$FGREP 5247fi 5248 5249 fi 5250fi 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5252$as_echo "$ac_cv_path_FGREP" >&6; } 5253 FGREP="$ac_cv_path_FGREP" 5254 5255 5256test -z "$GREP" && GREP=grep 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276# Check whether --with-gnu-ld was given. 5277if test "${with_gnu_ld+set}" = set; then : 5278 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5279else 5280 with_gnu_ld=no 5281fi 5282 5283ac_prog=ld 5284if test yes = "$GCC"; then 5285 # Check if gcc -print-prog-name=ld gives a path. 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5287$as_echo_n "checking for ld used by $CC... " >&6; } 5288 case $host in 5289 *-*-mingw*) 5290 # gcc leaves a trailing carriage return, which upsets mingw 5291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5292 *) 5293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5294 esac 5295 case $ac_prog in 5296 # Accept absolute paths. 5297 [\\/]* | ?:[\\/]*) 5298 re_direlt='/[^/][^/]*/\.\./' 5299 # Canonicalize the pathname of ld 5300 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5301 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5302 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5303 done 5304 test -z "$LD" && LD=$ac_prog 5305 ;; 5306 "") 5307 # If it fails, then pretend we aren't using GCC. 5308 ac_prog=ld 5309 ;; 5310 *) 5311 # If it is relative, then search for the first ld in PATH. 5312 with_gnu_ld=unknown 5313 ;; 5314 esac 5315elif test yes = "$with_gnu_ld"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5317$as_echo_n "checking for GNU ld... " >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5320$as_echo_n "checking for non-GNU ld... " >&6; } 5321fi 5322if ${lt_cv_path_LD+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 if test -z "$LD"; then 5326 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5327 for ac_dir in $PATH; do 5328 IFS=$lt_save_ifs 5329 test -z "$ac_dir" && ac_dir=. 5330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5331 lt_cv_path_LD=$ac_dir/$ac_prog 5332 # Check to see if the program is GNU ld. I'd rather use --version, 5333 # but apparently some variants of GNU ld only accept -v. 5334 # Break only if it was the GNU/non-GNU ld that we prefer. 5335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5336 *GNU* | *'with BFD'*) 5337 test no != "$with_gnu_ld" && break 5338 ;; 5339 *) 5340 test yes != "$with_gnu_ld" && break 5341 ;; 5342 esac 5343 fi 5344 done 5345 IFS=$lt_save_ifs 5346else 5347 lt_cv_path_LD=$LD # Let the user override the test with a path. 5348fi 5349fi 5350 5351LD=$lt_cv_path_LD 5352if test -n "$LD"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5354$as_echo "$LD" >&6; } 5355else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357$as_echo "no" >&6; } 5358fi 5359test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5362if ${lt_cv_prog_gnu_ld+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5366case `$LD -v 2>&1 </dev/null` in 5367*GNU* | *'with BFD'*) 5368 lt_cv_prog_gnu_ld=yes 5369 ;; 5370*) 5371 lt_cv_prog_gnu_ld=no 5372 ;; 5373esac 5374fi 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5376$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5377with_gnu_ld=$lt_cv_prog_gnu_ld 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5388$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5389if ${lt_cv_path_NM+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 if test -n "$NM"; then 5393 # Let the user override the test. 5394 lt_cv_path_NM=$NM 5395else 5396 lt_nm_to_check=${ac_tool_prefix}nm 5397 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5398 lt_nm_to_check="$lt_nm_to_check nm" 5399 fi 5400 for lt_tmp_nm in $lt_nm_to_check; do 5401 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5402 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5403 IFS=$lt_save_ifs 5404 test -z "$ac_dir" && ac_dir=. 5405 tmp_nm=$ac_dir/$lt_tmp_nm 5406 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5407 # Check to see if the nm accepts a BSD-compat flag. 5408 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5409 # nm: unknown option "B" ignored 5410 # Tru64's nm complains that /dev/null is an invalid object file 5411 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5412 case $build_os in 5413 mingw*) lt_bad_file=conftest.nm/nofile ;; 5414 *) lt_bad_file=/dev/null ;; 5415 esac 5416 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5417 *$lt_bad_file* | *'Invalid file or object type'*) 5418 lt_cv_path_NM="$tmp_nm -B" 5419 break 2 5420 ;; 5421 *) 5422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5423 */dev/null*) 5424 lt_cv_path_NM="$tmp_nm -p" 5425 break 2 5426 ;; 5427 *) 5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5429 continue # so that we can try to find one that supports BSD flags 5430 ;; 5431 esac 5432 ;; 5433 esac 5434 fi 5435 done 5436 IFS=$lt_save_ifs 5437 done 5438 : ${lt_cv_path_NM=no} 5439fi 5440fi 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5442$as_echo "$lt_cv_path_NM" >&6; } 5443if test no != "$lt_cv_path_NM"; then 5444 NM=$lt_cv_path_NM 5445else 5446 # Didn't find any BSD compatible name lister, look for dumpbin. 5447 if test -n "$DUMPBIN"; then : 5448 # Let the user override the test. 5449 else 5450 if test -n "$ac_tool_prefix"; then 5451 for ac_prog in dumpbin "link -dump" 5452 do 5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5454set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if ${ac_cv_prog_DUMPBIN+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$DUMPBIN"; then 5461 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480DUMPBIN=$ac_cv_prog_DUMPBIN 5481if test -n "$DUMPBIN"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5483$as_echo "$DUMPBIN" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490 test -n "$DUMPBIN" && break 5491 done 5492fi 5493if test -z "$DUMPBIN"; then 5494 ac_ct_DUMPBIN=$DUMPBIN 5495 for ac_prog in dumpbin "link -dump" 5496do 5497 # Extract the first word of "$ac_prog", so it can be a program name with args. 5498set dummy $ac_prog; ac_word=$2 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500$as_echo_n "checking for $ac_word... " >&6; } 5501if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 if test -n "$ac_ct_DUMPBIN"; then 5505 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5506else 5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508for as_dir in $PATH 5509do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518done 5519 done 5520IFS=$as_save_IFS 5521 5522fi 5523fi 5524ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5525if test -n "$ac_ct_DUMPBIN"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5527$as_echo "$ac_ct_DUMPBIN" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534 test -n "$ac_ct_DUMPBIN" && break 5535done 5536 5537 if test "x$ac_ct_DUMPBIN" = x; then 5538 DUMPBIN=":" 5539 else 5540 case $cross_compiling:$ac_tool_warned in 5541yes:) 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5544ac_tool_warned=yes ;; 5545esac 5546 DUMPBIN=$ac_ct_DUMPBIN 5547 fi 5548fi 5549 5550 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5551 *COFF*) 5552 DUMPBIN="$DUMPBIN -symbols -headers" 5553 ;; 5554 *) 5555 DUMPBIN=: 5556 ;; 5557 esac 5558 fi 5559 5560 if test : != "$DUMPBIN"; then 5561 NM=$DUMPBIN 5562 fi 5563fi 5564test -z "$NM" && NM=nm 5565 5566 5567 5568 5569 5570 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5572$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5573if ${lt_cv_nm_interface+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 lt_cv_nm_interface="BSD nm" 5577 echo "int some_variable = 0;" > conftest.$ac_ext 5578 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5579 (eval "$ac_compile" 2>conftest.err) 5580 cat conftest.err >&5 5581 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5583 cat conftest.err >&5 5584 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5585 cat conftest.out >&5 5586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5587 lt_cv_nm_interface="MS dumpbin" 5588 fi 5589 rm -f conftest* 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5592$as_echo "$lt_cv_nm_interface" >&6; } 5593 5594# find the maximum length of command line arguments 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5596$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5597if ${lt_cv_sys_max_cmd_len+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 i=0 5601 teststring=ABCD 5602 5603 case $build_os in 5604 msdosdjgpp*) 5605 # On DJGPP, this test can blow up pretty badly due to problems in libc 5606 # (any single argument exceeding 2000 bytes causes a buffer overrun 5607 # during glob expansion). Even if it were fixed, the result of this 5608 # check would be larger than it should be. 5609 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5610 ;; 5611 5612 gnu*) 5613 # Under GNU Hurd, this test is not required because there is 5614 # no limit to the length of command line arguments. 5615 # Libtool will interpret -1 as no limit whatsoever 5616 lt_cv_sys_max_cmd_len=-1; 5617 ;; 5618 5619 cygwin* | mingw* | cegcc*) 5620 # On Win9x/ME, this test blows up -- it succeeds, but takes 5621 # about 5 minutes as the teststring grows exponentially. 5622 # Worse, since 9x/ME are not pre-emptively multitasking, 5623 # you end up with a "frozen" computer, even though with patience 5624 # the test eventually succeeds (with a max line length of 256k). 5625 # Instead, let's just punt: use the minimum linelength reported by 5626 # all of the supported platforms: 8192 (on NT/2K/XP). 5627 lt_cv_sys_max_cmd_len=8192; 5628 ;; 5629 5630 mint*) 5631 # On MiNT this can take a long time and run out of memory. 5632 lt_cv_sys_max_cmd_len=8192; 5633 ;; 5634 5635 amigaos*) 5636 # On AmigaOS with pdksh, this test takes hours, literally. 5637 # So we just punt and use a minimum line length of 8192. 5638 lt_cv_sys_max_cmd_len=8192; 5639 ;; 5640 5641 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5642 # This has been around since 386BSD, at least. Likely further. 5643 if test -x /sbin/sysctl; then 5644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5645 elif test -x /usr/sbin/sysctl; then 5646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5647 else 5648 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5649 fi 5650 # And add a safety zone 5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5653 ;; 5654 5655 interix*) 5656 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5657 lt_cv_sys_max_cmd_len=196608 5658 ;; 5659 5660 os2*) 5661 # The test takes a long time on OS/2. 5662 lt_cv_sys_max_cmd_len=8192 5663 ;; 5664 5665 osf*) 5666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5668 # nice to cause kernel panics so lets avoid the loop below. 5669 # First set a reasonable default. 5670 lt_cv_sys_max_cmd_len=16384 5671 # 5672 if test -x /sbin/sysconfig; then 5673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5674 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5675 esac 5676 fi 5677 ;; 5678 sco3.2v5*) 5679 lt_cv_sys_max_cmd_len=102400 5680 ;; 5681 sysv5* | sco5v6* | sysv4.2uw2*) 5682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5683 if test -n "$kargmax"; then 5684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5685 else 5686 lt_cv_sys_max_cmd_len=32768 5687 fi 5688 ;; 5689 *) 5690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5691 if test -n "$lt_cv_sys_max_cmd_len" && \ 5692 test undefined != "$lt_cv_sys_max_cmd_len"; then 5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5695 else 5696 # Make teststring a little bigger before we do anything with it. 5697 # a 1K string should be a reasonable start. 5698 for i in 1 2 3 4 5 6 7 8; do 5699 teststring=$teststring$teststring 5700 done 5701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5702 # If test is not a shell built-in, we'll probably end up computing a 5703 # maximum length that is only half of the actual maximum length, but 5704 # we can't tell. 5705 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5706 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5707 test 17 != "$i" # 1/2 MB should be enough 5708 do 5709 i=`expr $i + 1` 5710 teststring=$teststring$teststring 5711 done 5712 # Only check the string length outside the loop. 5713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5714 teststring= 5715 # Add a significant safety factor because C++ compilers can tack on 5716 # massive amounts of additional arguments before passing them to the 5717 # linker. It appears as though 1/2 is a usable value. 5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5719 fi 5720 ;; 5721 esac 5722 5723fi 5724 5725if test -n "$lt_cv_sys_max_cmd_len"; then 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5727$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5730$as_echo "none" >&6; } 5731fi 5732max_cmd_len=$lt_cv_sys_max_cmd_len 5733 5734 5735 5736 5737 5738 5739: ${CP="cp -f"} 5740: ${MV="mv -f"} 5741: ${RM="rm -f"} 5742 5743if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5744 lt_unset=unset 5745else 5746 lt_unset=false 5747fi 5748 5749 5750 5751 5752 5753# test EBCDIC or ASCII 5754case `echo X|tr X '\101'` in 5755 A) # ASCII based system 5756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5757 lt_SP2NL='tr \040 \012' 5758 lt_NL2SP='tr \015\012 \040\040' 5759 ;; 5760 *) # EBCDIC based system 5761 lt_SP2NL='tr \100 \n' 5762 lt_NL2SP='tr \r\n \100\100' 5763 ;; 5764esac 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5775$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5776if ${lt_cv_to_host_file_cmd+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 case $host in 5780 *-*-mingw* ) 5781 case $build in 5782 *-*-mingw* ) # actually msys 5783 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5784 ;; 5785 *-*-cygwin* ) 5786 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5787 ;; 5788 * ) # otherwise, assume *nix 5789 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5790 ;; 5791 esac 5792 ;; 5793 *-*-cygwin* ) 5794 case $build in 5795 *-*-mingw* ) # actually msys 5796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5797 ;; 5798 *-*-cygwin* ) 5799 lt_cv_to_host_file_cmd=func_convert_file_noop 5800 ;; 5801 * ) # otherwise, assume *nix 5802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5803 ;; 5804 esac 5805 ;; 5806 * ) # unhandled hosts (and "normal" native builds) 5807 lt_cv_to_host_file_cmd=func_convert_file_noop 5808 ;; 5809esac 5810 5811fi 5812 5813to_host_file_cmd=$lt_cv_to_host_file_cmd 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5815$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5816 5817 5818 5819 5820 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5822$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5823if ${lt_cv_to_tool_file_cmd+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 #assume ordinary cross tools, or native build. 5827lt_cv_to_tool_file_cmd=func_convert_file_noop 5828case $host in 5829 *-*-mingw* ) 5830 case $build in 5831 *-*-mingw* ) # actually msys 5832 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5833 ;; 5834 esac 5835 ;; 5836esac 5837 5838fi 5839 5840to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5842$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5843 5844 5845 5846 5847 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5849$as_echo_n "checking for $LD option to reload object files... " >&6; } 5850if ${lt_cv_ld_reload_flag+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852else 5853 lt_cv_ld_reload_flag='-r' 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5856$as_echo "$lt_cv_ld_reload_flag" >&6; } 5857reload_flag=$lt_cv_ld_reload_flag 5858case $reload_flag in 5859"" | " "*) ;; 5860*) reload_flag=" $reload_flag" ;; 5861esac 5862reload_cmds='$LD$reload_flag -o $output$reload_objs' 5863case $host_os in 5864 cygwin* | mingw* | pw32* | cegcc*) 5865 if test yes != "$GCC"; then 5866 reload_cmds=false 5867 fi 5868 ;; 5869 darwin*) 5870 if test yes = "$GCC"; then 5871 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5872 else 5873 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5874 fi 5875 ;; 5876esac 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}objdump; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_OBJDUMP+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$OBJDUMP"; then 5895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914OBJDUMP=$ac_cv_prog_OBJDUMP 5915if test -n "$OBJDUMP"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5917$as_echo "$OBJDUMP" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924fi 5925if test -z "$ac_cv_prog_OBJDUMP"; then 5926 ac_ct_OBJDUMP=$OBJDUMP 5927 # Extract the first word of "objdump", so it can be a program name with args. 5928set dummy objdump; ac_word=$2 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930$as_echo_n "checking for $ac_word... " >&6; } 5931if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 if test -n "$ac_ct_OBJDUMP"; then 5935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5944 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949 done 5950IFS=$as_save_IFS 5951 5952fi 5953fi 5954ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5955if test -n "$ac_ct_OBJDUMP"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5957$as_echo "$ac_ct_OBJDUMP" >&6; } 5958else 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5960$as_echo "no" >&6; } 5961fi 5962 5963 if test "x$ac_ct_OBJDUMP" = x; then 5964 OBJDUMP="false" 5965 else 5966 case $cross_compiling:$ac_tool_warned in 5967yes:) 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5970ac_tool_warned=yes ;; 5971esac 5972 OBJDUMP=$ac_ct_OBJDUMP 5973 fi 5974else 5975 OBJDUMP="$ac_cv_prog_OBJDUMP" 5976fi 5977 5978test -z "$OBJDUMP" && OBJDUMP=objdump 5979 5980 5981 5982 5983 5984 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5986$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5987if ${lt_cv_deplibs_check_method+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 lt_cv_file_magic_cmd='$MAGIC_CMD' 5991lt_cv_file_magic_test_file= 5992lt_cv_deplibs_check_method='unknown' 5993# Need to set the preceding variable on all platforms that support 5994# interlibrary dependencies. 5995# 'none' -- dependencies not supported. 5996# 'unknown' -- same as none, but documents that we really don't know. 5997# 'pass_all' -- all dependencies passed with no checks. 5998# 'test_compile' -- check by making test program. 5999# 'file_magic [[regex]]' -- check by looking for files in library path 6000# that responds to the $file_magic_cmd with a given extended regex. 6001# If you have 'file' or equivalent on your system and you're not sure 6002# whether 'pass_all' will *always* work, you probably want this one. 6003 6004case $host_os in 6005aix[4-9]*) 6006 lt_cv_deplibs_check_method=pass_all 6007 ;; 6008 6009beos*) 6010 lt_cv_deplibs_check_method=pass_all 6011 ;; 6012 6013bsdi[45]*) 6014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6015 lt_cv_file_magic_cmd='/usr/bin/file -L' 6016 lt_cv_file_magic_test_file=/shlib/libc.so 6017 ;; 6018 6019cygwin*) 6020 # func_win32_libid is a shell function defined in ltmain.sh 6021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6022 lt_cv_file_magic_cmd='func_win32_libid' 6023 ;; 6024 6025mingw* | pw32*) 6026 # Base MSYS/MinGW do not provide the 'file' command needed by 6027 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6028 # unless we find 'file', for example because we are cross-compiling. 6029 if ( file / ) >/dev/null 2>&1; then 6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6031 lt_cv_file_magic_cmd='func_win32_libid' 6032 else 6033 # Keep this pattern in sync with the one in func_win32_libid. 6034 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6035 lt_cv_file_magic_cmd='$OBJDUMP -f' 6036 fi 6037 ;; 6038 6039cegcc*) 6040 # use the weaker test based on 'objdump'. See mingw*. 6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6042 lt_cv_file_magic_cmd='$OBJDUMP -f' 6043 ;; 6044 6045darwin* | rhapsody*) 6046 lt_cv_deplibs_check_method=pass_all 6047 ;; 6048 6049freebsd* | dragonfly*) 6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6051 case $host_cpu in 6052 i*86 ) 6053 # Not sure whether the presence of OpenBSD here was a mistake. 6054 # Let's accept both of them until this is cleared up. 6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6056 lt_cv_file_magic_cmd=/usr/bin/file 6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6058 ;; 6059 esac 6060 else 6061 lt_cv_deplibs_check_method=pass_all 6062 fi 6063 ;; 6064 6065haiku*) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 6069hpux10.20* | hpux11*) 6070 lt_cv_file_magic_cmd=/usr/bin/file 6071 case $host_cpu in 6072 ia64*) 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6075 ;; 6076 hppa*64*) 6077 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]' 6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6079 ;; 6080 *) 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6083 ;; 6084 esac 6085 ;; 6086 6087interix[3-9]*) 6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6090 ;; 6091 6092irix5* | irix6* | nonstopux*) 6093 case $LD in 6094 *-32|*"-32 ") libmagic=32-bit;; 6095 *-n32|*"-n32 ") libmagic=N32;; 6096 *-64|*"-64 ") libmagic=64-bit;; 6097 *) libmagic=never-match;; 6098 esac 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102# This must be glibc/ELF. 6103linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107netbsd*) 6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 else 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6112 fi 6113 ;; 6114 6115newos6*) 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6117 lt_cv_file_magic_cmd=/usr/bin/file 6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6119 ;; 6120 6121*nto* | *qnx*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125openbsd* | bitrig*) 6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6130 fi 6131 ;; 6132 6133osf3* | osf4* | osf5*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136 6137rdos*) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141solaris*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144 6145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149sysv4 | sysv4.3*) 6150 case $host_vendor in 6151 motorola) 6152 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]' 6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6154 ;; 6155 ncr) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 sequent) 6159 lt_cv_file_magic_cmd='/bin/file' 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6161 ;; 6162 sni) 6163 lt_cv_file_magic_cmd='/bin/file' 6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6165 lt_cv_file_magic_test_file=/lib/libc.so 6166 ;; 6167 siemens) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 pc) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 esac 6174 ;; 6175 6176tpf*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179os2*) 6180 lt_cv_deplibs_check_method=pass_all 6181 ;; 6182esac 6183 6184fi 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6186$as_echo "$lt_cv_deplibs_check_method" >&6; } 6187 6188file_magic_glob= 6189want_nocaseglob=no 6190if test "$build" = "$host"; then 6191 case $host_os in 6192 mingw* | pw32*) 6193 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6194 want_nocaseglob=yes 6195 else 6196 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6197 fi 6198 ;; 6199 esac 6200fi 6201 6202file_magic_cmd=$lt_cv_file_magic_cmd 6203deplibs_check_method=$lt_cv_deplibs_check_method 6204test -z "$deplibs_check_method" && deplibs_check_method=unknown 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227if test -n "$ac_tool_prefix"; then 6228 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6229set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6231$as_echo_n "checking for $ac_word... " >&6; } 6232if ${ac_cv_prog_DLLTOOL+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 if test -n "$DLLTOOL"; then 6236 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6237else 6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239for as_dir in $PATH 6240do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6245 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249done 6250 done 6251IFS=$as_save_IFS 6252 6253fi 6254fi 6255DLLTOOL=$ac_cv_prog_DLLTOOL 6256if test -n "$DLLTOOL"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6258$as_echo "$DLLTOOL" >&6; } 6259else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261$as_echo "no" >&6; } 6262fi 6263 6264 6265fi 6266if test -z "$ac_cv_prog_DLLTOOL"; then 6267 ac_ct_DLLTOOL=$DLLTOOL 6268 # Extract the first word of "dlltool", so it can be a program name with args. 6269set dummy dlltool; ac_word=$2 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271$as_echo_n "checking for $ac_word... " >&6; } 6272if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274else 6275 if test -n "$ac_ct_DLLTOOL"; then 6276 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6277else 6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6279for as_dir in $PATH 6280do 6281 IFS=$as_save_IFS 6282 test -z "$as_dir" && as_dir=. 6283 for ac_exec_ext in '' $ac_executable_extensions; do 6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6285 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6287 break 2 6288 fi 6289done 6290 done 6291IFS=$as_save_IFS 6292 6293fi 6294fi 6295ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6296if test -n "$ac_ct_DLLTOOL"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6298$as_echo "$ac_ct_DLLTOOL" >&6; } 6299else 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301$as_echo "no" >&6; } 6302fi 6303 6304 if test "x$ac_ct_DLLTOOL" = x; then 6305 DLLTOOL="false" 6306 else 6307 case $cross_compiling:$ac_tool_warned in 6308yes:) 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6311ac_tool_warned=yes ;; 6312esac 6313 DLLTOOL=$ac_ct_DLLTOOL 6314 fi 6315else 6316 DLLTOOL="$ac_cv_prog_DLLTOOL" 6317fi 6318 6319test -z "$DLLTOOL" && DLLTOOL=dlltool 6320 6321 6322 6323 6324 6325 6326 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6328$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6329if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 lt_cv_sharedlib_from_linklib_cmd='unknown' 6333 6334case $host_os in 6335cygwin* | mingw* | pw32* | cegcc*) 6336 # two different shell functions defined in ltmain.sh; 6337 # decide which one to use based on capabilities of $DLLTOOL 6338 case `$DLLTOOL --help 2>&1` in 6339 *--identify-strict*) 6340 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6341 ;; 6342 *) 6343 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6344 ;; 6345 esac 6346 ;; 6347*) 6348 # fallback: assume linklib IS sharedlib 6349 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6350 ;; 6351esac 6352 6353fi 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6355$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6356sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6357test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6358 6359 6360 6361 6362 6363 6364 6365if test -n "$ac_tool_prefix"; then 6366 for ac_prog in ar 6367 do 6368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6369set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371$as_echo_n "checking for $ac_word... " >&6; } 6372if ${ac_cv_prog_AR+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 if test -n "$AR"; then 6376 ac_cv_prog_AR="$AR" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 test -z "$as_dir" && as_dir=. 6383 for ac_exec_ext in '' $ac_executable_extensions; do 6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6385 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 break 2 6388 fi 6389done 6390 done 6391IFS=$as_save_IFS 6392 6393fi 6394fi 6395AR=$ac_cv_prog_AR 6396if test -n "$AR"; then 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6398$as_echo "$AR" >&6; } 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 6405 test -n "$AR" && break 6406 done 6407fi 6408if test -z "$AR"; then 6409 ac_ct_AR=$AR 6410 for ac_prog in ar 6411do 6412 # Extract the first word of "$ac_prog", so it can be a program name with args. 6413set dummy $ac_prog; ac_word=$2 6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415$as_echo_n "checking for $ac_word... " >&6; } 6416if ${ac_cv_prog_ac_ct_AR+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418else 6419 if test -n "$ac_ct_AR"; then 6420 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6421else 6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423for as_dir in $PATH 6424do 6425 IFS=$as_save_IFS 6426 test -z "$as_dir" && as_dir=. 6427 for ac_exec_ext in '' $ac_executable_extensions; do 6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6429 ac_cv_prog_ac_ct_AR="$ac_prog" 6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6431 break 2 6432 fi 6433done 6434 done 6435IFS=$as_save_IFS 6436 6437fi 6438fi 6439ac_ct_AR=$ac_cv_prog_ac_ct_AR 6440if test -n "$ac_ct_AR"; then 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6442$as_echo "$ac_ct_AR" >&6; } 6443else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445$as_echo "no" >&6; } 6446fi 6447 6448 6449 test -n "$ac_ct_AR" && break 6450done 6451 6452 if test "x$ac_ct_AR" = x; then 6453 AR="false" 6454 else 6455 case $cross_compiling:$ac_tool_warned in 6456yes:) 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6459ac_tool_warned=yes ;; 6460esac 6461 AR=$ac_ct_AR 6462 fi 6463fi 6464 6465: ${AR=ar} 6466: ${AR_FLAGS=cru} 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6479$as_echo_n "checking for archiver @FILE support... " >&6; } 6480if ${lt_cv_ar_at_file+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 lt_cv_ar_at_file=no 6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486 6487int 6488main () 6489{ 6490 6491 ; 6492 return 0; 6493} 6494_ACEOF 6495if ac_fn_c_try_compile "$LINENO"; then : 6496 echo conftest.$ac_objext > conftest.lst 6497 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6499 (eval $lt_ar_try) 2>&5 6500 ac_status=$? 6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6502 test $ac_status = 0; } 6503 if test 0 -eq "$ac_status"; then 6504 # Ensure the archiver fails upon bogus file names. 6505 rm -f conftest.$ac_objext libconftest.a 6506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6507 (eval $lt_ar_try) 2>&5 6508 ac_status=$? 6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; } 6511 if test 0 -ne "$ac_status"; then 6512 lt_cv_ar_at_file=@ 6513 fi 6514 fi 6515 rm -f conftest.* libconftest.a 6516 6517fi 6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6519 6520fi 6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6522$as_echo "$lt_cv_ar_at_file" >&6; } 6523 6524if test no = "$lt_cv_ar_at_file"; then 6525 archiver_list_spec= 6526else 6527 archiver_list_spec=$lt_cv_ar_at_file 6528fi 6529 6530 6531 6532 6533 6534 6535 6536if test -n "$ac_tool_prefix"; then 6537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6538set dummy ${ac_tool_prefix}strip; ac_word=$2 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6540$as_echo_n "checking for $ac_word... " >&6; } 6541if ${ac_cv_prog_STRIP+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 if test -n "$STRIP"; then 6545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6546else 6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH 6549do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6554 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6556 break 2 6557 fi 6558done 6559 done 6560IFS=$as_save_IFS 6561 6562fi 6563fi 6564STRIP=$ac_cv_prog_STRIP 6565if test -n "$STRIP"; then 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6567$as_echo "$STRIP" >&6; } 6568else 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570$as_echo "no" >&6; } 6571fi 6572 6573 6574fi 6575if test -z "$ac_cv_prog_STRIP"; then 6576 ac_ct_STRIP=$STRIP 6577 # Extract the first word of "strip", so it can be a program name with args. 6578set dummy strip; ac_word=$2 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6580$as_echo_n "checking for $ac_word... " >&6; } 6581if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 if test -n "$ac_ct_STRIP"; then 6585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6586else 6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_prog_ac_ct_STRIP="strip" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602fi 6603fi 6604ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6605if test -n "$ac_ct_STRIP"; then 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6607$as_echo "$ac_ct_STRIP" >&6; } 6608else 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6610$as_echo "no" >&6; } 6611fi 6612 6613 if test "x$ac_ct_STRIP" = x; then 6614 STRIP=":" 6615 else 6616 case $cross_compiling:$ac_tool_warned in 6617yes:) 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6620ac_tool_warned=yes ;; 6621esac 6622 STRIP=$ac_ct_STRIP 6623 fi 6624else 6625 STRIP="$ac_cv_prog_STRIP" 6626fi 6627 6628test -z "$STRIP" && STRIP=: 6629 6630 6631 6632 6633 6634 6635if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_RANLIB+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$RANLIB"; then 6644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6653 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661fi 6662fi 6663RANLIB=$ac_cv_prog_RANLIB 6664if test -n "$RANLIB"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6666$as_echo "$RANLIB" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 6673fi 6674if test -z "$ac_cv_prog_RANLIB"; then 6675 ac_ct_RANLIB=$RANLIB 6676 # Extract the first word of "ranlib", so it can be a program name with args. 6677set dummy ranlib; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$ac_ct_RANLIB"; then 6684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_ac_ct_RANLIB="ranlib" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6704if test -n "$ac_ct_RANLIB"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6706$as_echo "$ac_ct_RANLIB" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_RANLIB" = x; then 6713 RANLIB=":" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 RANLIB=$ac_ct_RANLIB 6722 fi 6723else 6724 RANLIB="$ac_cv_prog_RANLIB" 6725fi 6726 6727test -z "$RANLIB" && RANLIB=: 6728 6729 6730 6731 6732 6733 6734# Determine commands to create old-style static archives. 6735old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6736old_postinstall_cmds='chmod 644 $oldlib' 6737old_postuninstall_cmds= 6738 6739if test -n "$RANLIB"; then 6740 case $host_os in 6741 bitrig* | openbsd*) 6742 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6743 ;; 6744 *) 6745 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6746 ;; 6747 esac 6748 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6749fi 6750 6751case $host_os in 6752 darwin*) 6753 lock_old_archive_extraction=yes ;; 6754 *) 6755 lock_old_archive_extraction=no ;; 6756esac 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796# If no C compiler was specified, use CC. 6797LTCC=${LTCC-"$CC"} 6798 6799# If no C compiler flags were specified, use CFLAGS. 6800LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6801 6802# Allow CC to be a program name with arguments. 6803compiler=$CC 6804 6805 6806# Check for command to grab the raw symbol name followed by C symbol from nm. 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6808$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6809if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 6813# These are sane defaults that work on at least a few old systems. 6814# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6815 6816# Character class describing NM global symbol codes. 6817symcode='[BCDEGRST]' 6818 6819# Regexp to match symbols that can be accessed directly from C. 6820sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6821 6822# Define system-specific variables. 6823case $host_os in 6824aix*) 6825 symcode='[BCDT]' 6826 ;; 6827cygwin* | mingw* | pw32* | cegcc*) 6828 symcode='[ABCDGISTW]' 6829 ;; 6830hpux*) 6831 if test ia64 = "$host_cpu"; then 6832 symcode='[ABCDEGRST]' 6833 fi 6834 ;; 6835irix* | nonstopux*) 6836 symcode='[BCDEGRST]' 6837 ;; 6838osf*) 6839 symcode='[BCDEGQRST]' 6840 ;; 6841solaris*) 6842 symcode='[BDRT]' 6843 ;; 6844sco3.2v5*) 6845 symcode='[DT]' 6846 ;; 6847sysv4.2uw2*) 6848 symcode='[DT]' 6849 ;; 6850sysv5* | sco5v6* | unixware* | OpenUNIX*) 6851 symcode='[ABDT]' 6852 ;; 6853sysv4) 6854 symcode='[DFNSTU]' 6855 ;; 6856esac 6857 6858# If we're using GNU nm, then use its standard symbol codes. 6859case `$NM -V 2>&1` in 6860*GNU* | *'with BFD'*) 6861 symcode='[ABCDGIRSTW]' ;; 6862esac 6863 6864if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6865 # Gets list of data symbols to import. 6866 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6867 # Adjust the below global symbol transforms to fixup imported variables. 6868 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6869 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6870 lt_c_name_lib_hook="\ 6871 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6872 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6873else 6874 # Disable hooks by default. 6875 lt_cv_sys_global_symbol_to_import= 6876 lt_cdecl_hook= 6877 lt_c_name_hook= 6878 lt_c_name_lib_hook= 6879fi 6880 6881# Transform an extracted symbol line into a proper C declaration. 6882# Some systems (esp. on ia64) link data and code symbols differently, 6883# so use this general approach. 6884lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6885$lt_cdecl_hook\ 6886" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6887" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6888 6889# Transform an extracted symbol line into symbol name and symbol address 6890lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6891$lt_c_name_hook\ 6892" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6893" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6894 6895# Transform an extracted symbol line into symbol name with lib prefix and 6896# symbol address. 6897lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6898$lt_c_name_lib_hook\ 6899" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6900" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6901" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6902 6903# Handle CRLF in mingw tool chain 6904opt_cr= 6905case $build_os in 6906mingw*) 6907 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6908 ;; 6909esac 6910 6911# Try without a prefix underscore, then with it. 6912for ac_symprfx in "" "_"; do 6913 6914 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6915 symxfrm="\\1 $ac_symprfx\\2 \\2" 6916 6917 # Write the raw and C identifiers. 6918 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6919 # Fake it for dumpbin and say T for any non-static function, 6920 # D for any global variable and I for any imported variable. 6921 # Also find C++ and __fastcall symbols from MSVC++, 6922 # which start with @ or ?. 6923 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6924" {last_section=section; section=\$ 3};"\ 6925" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6926" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6927" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6928" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6929" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6930" \$ 0!~/External *\|/{next};"\ 6931" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6932" {if(hide[section]) next};"\ 6933" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6934" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6935" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6936" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6937" ' prfx=^$ac_symprfx" 6938 else 6939 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6940 fi 6941 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6942 6943 # Check to see that the pipe works correctly. 6944 pipe_works=no 6945 6946 rm -f conftest* 6947 cat > conftest.$ac_ext <<_LT_EOF 6948#ifdef __cplusplus 6949extern "C" { 6950#endif 6951char nm_test_var; 6952void nm_test_func(void); 6953void nm_test_func(void){} 6954#ifdef __cplusplus 6955} 6956#endif 6957int main(){nm_test_var='a';nm_test_func();return(0);} 6958_LT_EOF 6959 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6961 (eval $ac_compile) 2>&5 6962 ac_status=$? 6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6964 test $ac_status = 0; }; then 6965 # Now try to grab the symbols. 6966 nlist=conftest.nm 6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6968 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6969 ac_status=$? 6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6971 test $ac_status = 0; } && test -s "$nlist"; then 6972 # Try sorting and uniquifying the output. 6973 if sort "$nlist" | uniq > "$nlist"T; then 6974 mv -f "$nlist"T "$nlist" 6975 else 6976 rm -f "$nlist"T 6977 fi 6978 6979 # Make sure that we snagged all the symbols we need. 6980 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6981 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6982 cat <<_LT_EOF > conftest.$ac_ext 6983/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6984#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6985/* DATA imports from DLLs on WIN32 can't be const, because runtime 6986 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6987# define LT_DLSYM_CONST 6988#elif defined __osf__ 6989/* This system does not cope well with relocations in const data. */ 6990# define LT_DLSYM_CONST 6991#else 6992# define LT_DLSYM_CONST const 6993#endif 6994 6995#ifdef __cplusplus 6996extern "C" { 6997#endif 6998 6999_LT_EOF 7000 # Now generate the symbol file. 7001 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7002 7003 cat <<_LT_EOF >> conftest.$ac_ext 7004 7005/* The mapping between symbol names and symbols. */ 7006LT_DLSYM_CONST struct { 7007 const char *name; 7008 void *address; 7009} 7010lt__PROGRAM__LTX_preloaded_symbols[] = 7011{ 7012 { "@PROGRAM@", (void *) 0 }, 7013_LT_EOF 7014 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7015 cat <<\_LT_EOF >> conftest.$ac_ext 7016 {0, (void *) 0} 7017}; 7018 7019/* This works around a problem in FreeBSD linker */ 7020#ifdef FREEBSD_WORKAROUND 7021static const void *lt_preloaded_setup() { 7022 return lt__PROGRAM__LTX_preloaded_symbols; 7023} 7024#endif 7025 7026#ifdef __cplusplus 7027} 7028#endif 7029_LT_EOF 7030 # Now try linking the two files. 7031 mv conftest.$ac_objext conftstm.$ac_objext 7032 lt_globsym_save_LIBS=$LIBS 7033 lt_globsym_save_CFLAGS=$CFLAGS 7034 LIBS=conftstm.$ac_objext 7035 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7037 (eval $ac_link) 2>&5 7038 ac_status=$? 7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7040 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7041 pipe_works=yes 7042 fi 7043 LIBS=$lt_globsym_save_LIBS 7044 CFLAGS=$lt_globsym_save_CFLAGS 7045 else 7046 echo "cannot find nm_test_func in $nlist" >&5 7047 fi 7048 else 7049 echo "cannot find nm_test_var in $nlist" >&5 7050 fi 7051 else 7052 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7053 fi 7054 else 7055 echo "$progname: failed program was:" >&5 7056 cat conftest.$ac_ext >&5 7057 fi 7058 rm -rf conftest* conftst* 7059 7060 # Do not use the global_symbol_pipe unless it works. 7061 if test yes = "$pipe_works"; then 7062 break 7063 else 7064 lt_cv_sys_global_symbol_pipe= 7065 fi 7066done 7067 7068fi 7069 7070if test -z "$lt_cv_sys_global_symbol_pipe"; then 7071 lt_cv_sys_global_symbol_to_cdecl= 7072fi 7073if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7075$as_echo "failed" >&6; } 7076else 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7078$as_echo "ok" >&6; } 7079fi 7080 7081# Response file support. 7082if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7083 nm_file_list_spec='@' 7084elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7085 nm_file_list_spec='@' 7086fi 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7125$as_echo_n "checking for sysroot... " >&6; } 7126 7127# Check whether --with-sysroot was given. 7128if test "${with_sysroot+set}" = set; then : 7129 withval=$with_sysroot; 7130else 7131 with_sysroot=no 7132fi 7133 7134 7135lt_sysroot= 7136case $with_sysroot in #( 7137 yes) 7138 if test yes = "$GCC"; then 7139 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7140 fi 7141 ;; #( 7142 /*) 7143 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7144 ;; #( 7145 no|'') 7146 ;; #( 7147 *) 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7149$as_echo "$with_sysroot" >&6; } 7150 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7151 ;; 7152esac 7153 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7155$as_echo "${lt_sysroot:-no}" >&6; } 7156 7157 7158 7159 7160 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7162$as_echo_n "checking for a working dd... " >&6; } 7163if ${ac_cv_path_lt_DD+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 printf 0123456789abcdef0123456789abcdef >conftest.i 7167cat conftest.i conftest.i >conftest2.i 7168: ${lt_DD:=$DD} 7169if test -z "$lt_DD"; then 7170 ac_path_lt_DD_found=false 7171 # Loop through the user's path and test for each of PROGNAME-LIST 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_prog in dd; do 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7180 as_fn_executable_p "$ac_path_lt_DD" || continue 7181if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7182 cmp -s conftest.i conftest.out \ 7183 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7184fi 7185 $ac_path_lt_DD_found && break 3 7186 done 7187 done 7188 done 7189IFS=$as_save_IFS 7190 if test -z "$ac_cv_path_lt_DD"; then 7191 : 7192 fi 7193else 7194 ac_cv_path_lt_DD=$lt_DD 7195fi 7196 7197rm -f conftest.i conftest2.i conftest.out 7198fi 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7200$as_echo "$ac_cv_path_lt_DD" >&6; } 7201 7202 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7204$as_echo_n "checking how to truncate binary pipes... " >&6; } 7205if ${lt_cv_truncate_bin+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 printf 0123456789abcdef0123456789abcdef >conftest.i 7209cat conftest.i conftest.i >conftest2.i 7210lt_cv_truncate_bin= 7211if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7212 cmp -s conftest.i conftest.out \ 7213 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7214fi 7215rm -f conftest.i conftest2.i conftest.out 7216test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7217fi 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7219$as_echo "$lt_cv_truncate_bin" >&6; } 7220 7221 7222 7223 7224 7225 7226 7227# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7228func_cc_basename () 7229{ 7230 for cc_temp in $*""; do 7231 case $cc_temp in 7232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7234 \-*) ;; 7235 *) break;; 7236 esac 7237 done 7238 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7239} 7240 7241# Check whether --enable-libtool-lock was given. 7242if test "${enable_libtool_lock+set}" = set; then : 7243 enableval=$enable_libtool_lock; 7244fi 7245 7246test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7247 7248# Some flags need to be propagated to the compiler or linker for good 7249# libtool support. 7250case $host in 7251ia64-*-hpux*) 7252 # Find out what ABI is being produced by ac_compile, and set mode 7253 # options accordingly. 7254 echo 'int i;' > conftest.$ac_ext 7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7256 (eval $ac_compile) 2>&5 7257 ac_status=$? 7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7259 test $ac_status = 0; }; then 7260 case `/usr/bin/file conftest.$ac_objext` in 7261 *ELF-32*) 7262 HPUX_IA64_MODE=32 7263 ;; 7264 *ELF-64*) 7265 HPUX_IA64_MODE=64 7266 ;; 7267 esac 7268 fi 7269 rm -rf conftest* 7270 ;; 7271*-*-irix6*) 7272 # Find out what ABI is being produced by ac_compile, and set linker 7273 # options accordingly. 7274 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7276 (eval $ac_compile) 2>&5 7277 ac_status=$? 7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7279 test $ac_status = 0; }; then 7280 if test yes = "$lt_cv_prog_gnu_ld"; then 7281 case `/usr/bin/file conftest.$ac_objext` in 7282 *32-bit*) 7283 LD="${LD-ld} -melf32bsmip" 7284 ;; 7285 *N32*) 7286 LD="${LD-ld} -melf32bmipn32" 7287 ;; 7288 *64-bit*) 7289 LD="${LD-ld} -melf64bmip" 7290 ;; 7291 esac 7292 else 7293 case `/usr/bin/file conftest.$ac_objext` in 7294 *32-bit*) 7295 LD="${LD-ld} -32" 7296 ;; 7297 *N32*) 7298 LD="${LD-ld} -n32" 7299 ;; 7300 *64-bit*) 7301 LD="${LD-ld} -64" 7302 ;; 7303 esac 7304 fi 7305 fi 7306 rm -rf conftest* 7307 ;; 7308 7309mips64*-*linux*) 7310 # Find out what ABI is being produced by ac_compile, and set linker 7311 # options accordingly. 7312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7314 (eval $ac_compile) 2>&5 7315 ac_status=$? 7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7317 test $ac_status = 0; }; then 7318 emul=elf 7319 case `/usr/bin/file conftest.$ac_objext` in 7320 *32-bit*) 7321 emul="${emul}32" 7322 ;; 7323 *64-bit*) 7324 emul="${emul}64" 7325 ;; 7326 esac 7327 case `/usr/bin/file conftest.$ac_objext` in 7328 *MSB*) 7329 emul="${emul}btsmip" 7330 ;; 7331 *LSB*) 7332 emul="${emul}ltsmip" 7333 ;; 7334 esac 7335 case `/usr/bin/file conftest.$ac_objext` in 7336 *N32*) 7337 emul="${emul}n32" 7338 ;; 7339 esac 7340 LD="${LD-ld} -m $emul" 7341 fi 7342 rm -rf conftest* 7343 ;; 7344 7345x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7346s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7347 # Find out what ABI is being produced by ac_compile, and set linker 7348 # options accordingly. Note that the listed cases only cover the 7349 # situations where additional linker options are needed (such as when 7350 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7351 # vice versa); the common cases where no linker options are needed do 7352 # not appear in the list. 7353 echo 'int i;' > conftest.$ac_ext 7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7355 (eval $ac_compile) 2>&5 7356 ac_status=$? 7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7358 test $ac_status = 0; }; then 7359 case `/usr/bin/file conftest.o` in 7360 *32-bit*) 7361 case $host in 7362 x86_64-*kfreebsd*-gnu) 7363 LD="${LD-ld} -m elf_i386_fbsd" 7364 ;; 7365 x86_64-*linux*) 7366 case `/usr/bin/file conftest.o` in 7367 *x86-64*) 7368 LD="${LD-ld} -m elf32_x86_64" 7369 ;; 7370 *) 7371 LD="${LD-ld} -m elf_i386" 7372 ;; 7373 esac 7374 ;; 7375 powerpc64le-*linux*) 7376 LD="${LD-ld} -m elf32lppclinux" 7377 ;; 7378 powerpc64-*linux*) 7379 LD="${LD-ld} -m elf32ppclinux" 7380 ;; 7381 s390x-*linux*) 7382 LD="${LD-ld} -m elf_s390" 7383 ;; 7384 sparc64-*linux*) 7385 LD="${LD-ld} -m elf32_sparc" 7386 ;; 7387 esac 7388 ;; 7389 *64-bit*) 7390 case $host in 7391 x86_64-*kfreebsd*-gnu) 7392 LD="${LD-ld} -m elf_x86_64_fbsd" 7393 ;; 7394 x86_64-*linux*) 7395 LD="${LD-ld} -m elf_x86_64" 7396 ;; 7397 powerpcle-*linux*) 7398 LD="${LD-ld} -m elf64lppc" 7399 ;; 7400 powerpc-*linux*) 7401 LD="${LD-ld} -m elf64ppc" 7402 ;; 7403 s390*-*linux*|s390*-*tpf*) 7404 LD="${LD-ld} -m elf64_s390" 7405 ;; 7406 sparc*-*linux*) 7407 LD="${LD-ld} -m elf64_sparc" 7408 ;; 7409 esac 7410 ;; 7411 esac 7412 fi 7413 rm -rf conftest* 7414 ;; 7415 7416*-*-sco3.2v5*) 7417 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7418 SAVE_CFLAGS=$CFLAGS 7419 CFLAGS="$CFLAGS -belf" 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7421$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7422if ${lt_cv_cc_needs_belf+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 ac_ext=c 7426ac_cpp='$CPP $CPPFLAGS' 7427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7429ac_compiler_gnu=$ac_cv_c_compiler_gnu 7430 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433 7434int 7435main () 7436{ 7437 7438 ; 7439 return 0; 7440} 7441_ACEOF 7442if ac_fn_c_try_link "$LINENO"; then : 7443 lt_cv_cc_needs_belf=yes 7444else 7445 lt_cv_cc_needs_belf=no 7446fi 7447rm -f core conftest.err conftest.$ac_objext \ 7448 conftest$ac_exeext conftest.$ac_ext 7449 ac_ext=c 7450ac_cpp='$CPP $CPPFLAGS' 7451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7453ac_compiler_gnu=$ac_cv_c_compiler_gnu 7454 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7457$as_echo "$lt_cv_cc_needs_belf" >&6; } 7458 if test yes != "$lt_cv_cc_needs_belf"; then 7459 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7460 CFLAGS=$SAVE_CFLAGS 7461 fi 7462 ;; 7463*-*solaris*) 7464 # Find out what ABI is being produced by ac_compile, and set linker 7465 # options accordingly. 7466 echo 'int i;' > conftest.$ac_ext 7467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7468 (eval $ac_compile) 2>&5 7469 ac_status=$? 7470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7471 test $ac_status = 0; }; then 7472 case `/usr/bin/file conftest.o` in 7473 *64-bit*) 7474 case $lt_cv_prog_gnu_ld in 7475 yes*) 7476 case $host in 7477 i?86-*-solaris*|x86_64-*-solaris*) 7478 LD="${LD-ld} -m elf_x86_64" 7479 ;; 7480 sparc*-*-solaris*) 7481 LD="${LD-ld} -m elf64_sparc" 7482 ;; 7483 esac 7484 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7485 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7486 LD=${LD-ld}_sol2 7487 fi 7488 ;; 7489 *) 7490 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7491 LD="${LD-ld} -64" 7492 fi 7493 ;; 7494 esac 7495 ;; 7496 esac 7497 fi 7498 rm -rf conftest* 7499 ;; 7500esac 7501 7502need_locks=$enable_libtool_lock 7503 7504if test -n "$ac_tool_prefix"; then 7505 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7506set dummy ${ac_tool_prefix}mt; ac_word=$2 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508$as_echo_n "checking for $ac_word... " >&6; } 7509if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 if test -n "$MANIFEST_TOOL"; then 7513 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7514else 7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7522 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527 done 7528IFS=$as_save_IFS 7529 7530fi 7531fi 7532MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7533if test -n "$MANIFEST_TOOL"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7535$as_echo "$MANIFEST_TOOL" >&6; } 7536else 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7538$as_echo "no" >&6; } 7539fi 7540 7541 7542fi 7543if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7544 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7545 # Extract the first word of "mt", so it can be a program name with args. 7546set dummy mt; ac_word=$2 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$ac_ct_MANIFEST_TOOL"; then 7553 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7562 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567 done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7573if test -n "$ac_ct_MANIFEST_TOOL"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7575$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7582 MANIFEST_TOOL=":" 7583 else 7584 case $cross_compiling:$ac_tool_warned in 7585yes:) 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7588ac_tool_warned=yes ;; 7589esac 7590 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7591 fi 7592else 7593 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7594fi 7595 7596test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7598$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7599if ${lt_cv_path_mainfest_tool+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 lt_cv_path_mainfest_tool=no 7603 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7604 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7605 cat conftest.err >&5 7606 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7607 lt_cv_path_mainfest_tool=yes 7608 fi 7609 rm -f conftest* 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7612$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7613if test yes != "$lt_cv_path_mainfest_tool"; then 7614 MANIFEST_TOOL=: 7615fi 7616 7617 7618 7619 7620 7621 7622 case $host_os in 7623 rhapsody* | darwin*) 7624 if test -n "$ac_tool_prefix"; then 7625 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7626set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628$as_echo_n "checking for $ac_word... " >&6; } 7629if ${ac_cv_prog_DSYMUTIL+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 if test -n "$DSYMUTIL"; then 7633 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647 done 7648IFS=$as_save_IFS 7649 7650fi 7651fi 7652DSYMUTIL=$ac_cv_prog_DSYMUTIL 7653if test -n "$DSYMUTIL"; then 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7655$as_echo "$DSYMUTIL" >&6; } 7656else 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658$as_echo "no" >&6; } 7659fi 7660 7661 7662fi 7663if test -z "$ac_cv_prog_DSYMUTIL"; then 7664 ac_ct_DSYMUTIL=$DSYMUTIL 7665 # Extract the first word of "dsymutil", so it can be a program name with args. 7666set dummy dsymutil; ac_word=$2 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668$as_echo_n "checking for $ac_word... " >&6; } 7669if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 if test -n "$ac_ct_DSYMUTIL"; then 7673 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7674else 7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7676for as_dir in $PATH 7677do 7678 IFS=$as_save_IFS 7679 test -z "$as_dir" && as_dir=. 7680 for ac_exec_ext in '' $ac_executable_extensions; do 7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7682 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7684 break 2 7685 fi 7686done 7687 done 7688IFS=$as_save_IFS 7689 7690fi 7691fi 7692ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7693if test -n "$ac_ct_DSYMUTIL"; then 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7695$as_echo "$ac_ct_DSYMUTIL" >&6; } 7696else 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7698$as_echo "no" >&6; } 7699fi 7700 7701 if test "x$ac_ct_DSYMUTIL" = x; then 7702 DSYMUTIL=":" 7703 else 7704 case $cross_compiling:$ac_tool_warned in 7705yes:) 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7708ac_tool_warned=yes ;; 7709esac 7710 DSYMUTIL=$ac_ct_DSYMUTIL 7711 fi 7712else 7713 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7714fi 7715 7716 if test -n "$ac_tool_prefix"; then 7717 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7718set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7720$as_echo_n "checking for $ac_word... " >&6; } 7721if ${ac_cv_prog_NMEDIT+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 if test -n "$NMEDIT"; then 7725 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7726else 7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7728for as_dir in $PATH 7729do 7730 IFS=$as_save_IFS 7731 test -z "$as_dir" && as_dir=. 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7734 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738done 7739 done 7740IFS=$as_save_IFS 7741 7742fi 7743fi 7744NMEDIT=$ac_cv_prog_NMEDIT 7745if test -n "$NMEDIT"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7747$as_echo "$NMEDIT" >&6; } 7748else 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750$as_echo "no" >&6; } 7751fi 7752 7753 7754fi 7755if test -z "$ac_cv_prog_NMEDIT"; then 7756 ac_ct_NMEDIT=$NMEDIT 7757 # Extract the first word of "nmedit", so it can be a program name with args. 7758set dummy nmedit; ac_word=$2 7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760$as_echo_n "checking for $ac_word... " >&6; } 7761if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 if test -n "$ac_ct_NMEDIT"; then 7765 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7766else 7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7768for as_dir in $PATH 7769do 7770 IFS=$as_save_IFS 7771 test -z "$as_dir" && as_dir=. 7772 for ac_exec_ext in '' $ac_executable_extensions; do 7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7774 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7776 break 2 7777 fi 7778done 7779 done 7780IFS=$as_save_IFS 7781 7782fi 7783fi 7784ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7785if test -n "$ac_ct_NMEDIT"; then 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7787$as_echo "$ac_ct_NMEDIT" >&6; } 7788else 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790$as_echo "no" >&6; } 7791fi 7792 7793 if test "x$ac_ct_NMEDIT" = x; then 7794 NMEDIT=":" 7795 else 7796 case $cross_compiling:$ac_tool_warned in 7797yes:) 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7800ac_tool_warned=yes ;; 7801esac 7802 NMEDIT=$ac_ct_NMEDIT 7803 fi 7804else 7805 NMEDIT="$ac_cv_prog_NMEDIT" 7806fi 7807 7808 if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7810set dummy ${ac_tool_prefix}lipo; ac_word=$2 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812$as_echo_n "checking for $ac_word... " >&6; } 7813if ${ac_cv_prog_LIPO+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 if test -n "$LIPO"; then 7817 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 test -z "$as_dir" && as_dir=. 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7826 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831 done 7832IFS=$as_save_IFS 7833 7834fi 7835fi 7836LIPO=$ac_cv_prog_LIPO 7837if test -n "$LIPO"; then 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7839$as_echo "$LIPO" >&6; } 7840else 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842$as_echo "no" >&6; } 7843fi 7844 7845 7846fi 7847if test -z "$ac_cv_prog_LIPO"; then 7848 ac_ct_LIPO=$LIPO 7849 # Extract the first word of "lipo", so it can be a program name with args. 7850set dummy lipo; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$ac_ct_LIPO"; then 7857 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_ac_ct_LIPO="lipo" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7877if test -n "$ac_ct_LIPO"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7879$as_echo "$ac_ct_LIPO" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 if test "x$ac_ct_LIPO" = x; then 7886 LIPO=":" 7887 else 7888 case $cross_compiling:$ac_tool_warned in 7889yes:) 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7892ac_tool_warned=yes ;; 7893esac 7894 LIPO=$ac_ct_LIPO 7895 fi 7896else 7897 LIPO="$ac_cv_prog_LIPO" 7898fi 7899 7900 if test -n "$ac_tool_prefix"; then 7901 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7902set dummy ${ac_tool_prefix}otool; ac_word=$2 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904$as_echo_n "checking for $ac_word... " >&6; } 7905if ${ac_cv_prog_OTOOL+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 if test -n "$OTOOL"; then 7909 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7910else 7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7912for as_dir in $PATH 7913do 7914 IFS=$as_save_IFS 7915 test -z "$as_dir" && as_dir=. 7916 for ac_exec_ext in '' $ac_executable_extensions; do 7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7918 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7920 break 2 7921 fi 7922done 7923 done 7924IFS=$as_save_IFS 7925 7926fi 7927fi 7928OTOOL=$ac_cv_prog_OTOOL 7929if test -n "$OTOOL"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7931$as_echo "$OTOOL" >&6; } 7932else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7934$as_echo "no" >&6; } 7935fi 7936 7937 7938fi 7939if test -z "$ac_cv_prog_OTOOL"; then 7940 ac_ct_OTOOL=$OTOOL 7941 # Extract the first word of "otool", so it can be a program name with args. 7942set dummy otool; ac_word=$2 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7944$as_echo_n "checking for $ac_word... " >&6; } 7945if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 if test -n "$ac_ct_OTOOL"; then 7949 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7950else 7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7952for as_dir in $PATH 7953do 7954 IFS=$as_save_IFS 7955 test -z "$as_dir" && as_dir=. 7956 for ac_exec_ext in '' $ac_executable_extensions; do 7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7958 ac_cv_prog_ac_ct_OTOOL="otool" 7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7960 break 2 7961 fi 7962done 7963 done 7964IFS=$as_save_IFS 7965 7966fi 7967fi 7968ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7969if test -n "$ac_ct_OTOOL"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7971$as_echo "$ac_ct_OTOOL" >&6; } 7972else 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974$as_echo "no" >&6; } 7975fi 7976 7977 if test "x$ac_ct_OTOOL" = x; then 7978 OTOOL=":" 7979 else 7980 case $cross_compiling:$ac_tool_warned in 7981yes:) 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7984ac_tool_warned=yes ;; 7985esac 7986 OTOOL=$ac_ct_OTOOL 7987 fi 7988else 7989 OTOOL="$ac_cv_prog_OTOOL" 7990fi 7991 7992 if test -n "$ac_tool_prefix"; then 7993 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7994set dummy ${ac_tool_prefix}otool64; ac_word=$2 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996$as_echo_n "checking for $ac_word... " >&6; } 7997if ${ac_cv_prog_OTOOL64+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 if test -n "$OTOOL64"; then 8001 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8002else 8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8004for as_dir in $PATH 8005do 8006 IFS=$as_save_IFS 8007 test -z "$as_dir" && as_dir=. 8008 for ac_exec_ext in '' $ac_executable_extensions; do 8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8010 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8012 break 2 8013 fi 8014done 8015 done 8016IFS=$as_save_IFS 8017 8018fi 8019fi 8020OTOOL64=$ac_cv_prog_OTOOL64 8021if test -n "$OTOOL64"; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8023$as_echo "$OTOOL64" >&6; } 8024else 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8026$as_echo "no" >&6; } 8027fi 8028 8029 8030fi 8031if test -z "$ac_cv_prog_OTOOL64"; then 8032 ac_ct_OTOOL64=$OTOOL64 8033 # Extract the first word of "otool64", so it can be a program name with args. 8034set dummy otool64; ac_word=$2 8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036$as_echo_n "checking for $ac_word... " >&6; } 8037if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 if test -n "$ac_ct_OTOOL64"; then 8041 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8042else 8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8044for as_dir in $PATH 8045do 8046 IFS=$as_save_IFS 8047 test -z "$as_dir" && as_dir=. 8048 for ac_exec_ext in '' $ac_executable_extensions; do 8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8050 ac_cv_prog_ac_ct_OTOOL64="otool64" 8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8052 break 2 8053 fi 8054done 8055 done 8056IFS=$as_save_IFS 8057 8058fi 8059fi 8060ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8061if test -n "$ac_ct_OTOOL64"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8063$as_echo "$ac_ct_OTOOL64" >&6; } 8064else 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8066$as_echo "no" >&6; } 8067fi 8068 8069 if test "x$ac_ct_OTOOL64" = x; then 8070 OTOOL64=":" 8071 else 8072 case $cross_compiling:$ac_tool_warned in 8073yes:) 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8076ac_tool_warned=yes ;; 8077esac 8078 OTOOL64=$ac_ct_OTOOL64 8079 fi 8080else 8081 OTOOL64="$ac_cv_prog_OTOOL64" 8082fi 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8111$as_echo_n "checking for -single_module linker flag... " >&6; } 8112if ${lt_cv_apple_cc_single_mod+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 lt_cv_apple_cc_single_mod=no 8116 if test -z "$LT_MULTI_MODULE"; then 8117 # By default we will add the -single_module flag. You can override 8118 # by either setting the environment variable LT_MULTI_MODULE 8119 # non-empty at configure time, or by adding -multi_module to the 8120 # link flags. 8121 rm -rf libconftest.dylib* 8122 echo "int foo(void){return 1;}" > conftest.c 8123 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8124-dynamiclib -Wl,-single_module conftest.c" >&5 8125 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8126 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8127 _lt_result=$? 8128 # If there is a non-empty error log, and "single_module" 8129 # appears in it, assume the flag caused a linker warning 8130 if test -s conftest.err && $GREP single_module conftest.err; then 8131 cat conftest.err >&5 8132 # Otherwise, if the output was created with a 0 exit code from 8133 # the compiler, it worked. 8134 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8135 lt_cv_apple_cc_single_mod=yes 8136 else 8137 cat conftest.err >&5 8138 fi 8139 rm -rf libconftest.dylib* 8140 rm -f conftest.* 8141 fi 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8144$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8147$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8148if ${lt_cv_ld_exported_symbols_list+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 lt_cv_ld_exported_symbols_list=no 8152 save_LDFLAGS=$LDFLAGS 8153 echo "_main" > conftest.sym 8154 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157 8158int 8159main () 8160{ 8161 8162 ; 8163 return 0; 8164} 8165_ACEOF 8166if ac_fn_c_try_link "$LINENO"; then : 8167 lt_cv_ld_exported_symbols_list=yes 8168else 8169 lt_cv_ld_exported_symbols_list=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext \ 8172 conftest$ac_exeext conftest.$ac_ext 8173 LDFLAGS=$save_LDFLAGS 8174 8175fi 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8177$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8178 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8180$as_echo_n "checking for -force_load linker flag... " >&6; } 8181if ${lt_cv_ld_force_load+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 lt_cv_ld_force_load=no 8185 cat > conftest.c << _LT_EOF 8186int forced_loaded() { return 2;} 8187_LT_EOF 8188 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8189 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8190 echo "$AR cru libconftest.a conftest.o" >&5 8191 $AR cru libconftest.a conftest.o 2>&5 8192 echo "$RANLIB libconftest.a" >&5 8193 $RANLIB libconftest.a 2>&5 8194 cat > conftest.c << _LT_EOF 8195int main() { return 0;} 8196_LT_EOF 8197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8199 _lt_result=$? 8200 if test -s conftest.err && $GREP force_load conftest.err; then 8201 cat conftest.err >&5 8202 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8203 lt_cv_ld_force_load=yes 8204 else 8205 cat conftest.err >&5 8206 fi 8207 rm -f conftest.err libconftest.a conftest conftest.c 8208 rm -rf conftest.dSYM 8209 8210fi 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8212$as_echo "$lt_cv_ld_force_load" >&6; } 8213 case $host_os in 8214 rhapsody* | darwin1.[012]) 8215 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8216 darwin1.*) 8217 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8218 darwin*) # darwin 5.x on 8219 # if running on 10.5 or later, the deployment target defaults 8220 # to the OS version, if on x86, and 10.4, the deployment 8221 # target defaults to 10.4. Don't you love it? 8222 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8223 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8224 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8225 10.[012][,.]*) 8226 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8227 10.*) 8228 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8229 esac 8230 ;; 8231 esac 8232 if test yes = "$lt_cv_apple_cc_single_mod"; then 8233 _lt_dar_single_mod='$single_module' 8234 fi 8235 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8236 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8237 else 8238 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8239 fi 8240 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8241 _lt_dsymutil='~$DSYMUTIL $lib || :' 8242 else 8243 _lt_dsymutil= 8244 fi 8245 ;; 8246 esac 8247 8248# func_munge_path_list VARIABLE PATH 8249# ----------------------------------- 8250# VARIABLE is name of variable containing _space_ separated list of 8251# directories to be munged by the contents of PATH, which is string 8252# having a format: 8253# "DIR[:DIR]:" 8254# string "DIR[ DIR]" will be prepended to VARIABLE 8255# ":DIR[:DIR]" 8256# string "DIR[ DIR]" will be appended to VARIABLE 8257# "DIRP[:DIRP]::[DIRA:]DIRA" 8258# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8259# "DIRA[ DIRA]" will be appended to VARIABLE 8260# "DIR[:DIR]" 8261# VARIABLE will be replaced by "DIR[ DIR]" 8262func_munge_path_list () 8263{ 8264 case x$2 in 8265 x) 8266 ;; 8267 *:) 8268 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8269 ;; 8270 x:*) 8271 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8272 ;; 8273 *::*) 8274 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8275 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8276 ;; 8277 *) 8278 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8279 ;; 8280 esac 8281} 8282 8283ac_ext=c 8284ac_cpp='$CPP $CPPFLAGS' 8285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8287ac_compiler_gnu=$ac_cv_c_compiler_gnu 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8289$as_echo_n "checking how to run the C preprocessor... " >&6; } 8290# On Suns, sometimes $CPP names a directory. 8291if test -n "$CPP" && test -d "$CPP"; then 8292 CPP= 8293fi 8294if test -z "$CPP"; then 8295 if ${ac_cv_prog_CPP+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 # Double quotes because CPP needs to be expanded 8299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8300 do 8301 ac_preproc_ok=false 8302for ac_c_preproc_warn_flag in '' yes 8303do 8304 # Use a header file that comes with gcc, so configuring glibc 8305 # with a fresh cross-compiler works. 8306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8307 # <limits.h> exists even on freestanding compilers. 8308 # On the NeXT, cc -E runs the code through the compiler's parser, 8309 # not just through cpp. "Syntax error" is here to catch this case. 8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312#ifdef __STDC__ 8313# include <limits.h> 8314#else 8315# include <assert.h> 8316#endif 8317 Syntax error 8318_ACEOF 8319if ac_fn_c_try_cpp "$LINENO"; then : 8320 8321else 8322 # Broken: fails on valid input. 8323continue 8324fi 8325rm -f conftest.err conftest.i conftest.$ac_ext 8326 8327 # OK, works on sane cases. Now check whether nonexistent headers 8328 # can be detected and how. 8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330/* end confdefs.h. */ 8331#include <ac_nonexistent.h> 8332_ACEOF 8333if ac_fn_c_try_cpp "$LINENO"; then : 8334 # Broken: success on invalid input. 8335continue 8336else 8337 # Passes both tests. 8338ac_preproc_ok=: 8339break 8340fi 8341rm -f conftest.err conftest.i conftest.$ac_ext 8342 8343done 8344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8345rm -f conftest.i conftest.err conftest.$ac_ext 8346if $ac_preproc_ok; then : 8347 break 8348fi 8349 8350 done 8351 ac_cv_prog_CPP=$CPP 8352 8353fi 8354 CPP=$ac_cv_prog_CPP 8355else 8356 ac_cv_prog_CPP=$CPP 8357fi 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8359$as_echo "$CPP" >&6; } 8360ac_preproc_ok=false 8361for ac_c_preproc_warn_flag in '' yes 8362do 8363 # Use a header file that comes with gcc, so configuring glibc 8364 # with a fresh cross-compiler works. 8365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8366 # <limits.h> exists even on freestanding compilers. 8367 # On the NeXT, cc -E runs the code through the compiler's parser, 8368 # not just through cpp. "Syntax error" is here to catch this case. 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371#ifdef __STDC__ 8372# include <limits.h> 8373#else 8374# include <assert.h> 8375#endif 8376 Syntax error 8377_ACEOF 8378if ac_fn_c_try_cpp "$LINENO"; then : 8379 8380else 8381 # Broken: fails on valid input. 8382continue 8383fi 8384rm -f conftest.err conftest.i conftest.$ac_ext 8385 8386 # OK, works on sane cases. Now check whether nonexistent headers 8387 # can be detected and how. 8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8389/* end confdefs.h. */ 8390#include <ac_nonexistent.h> 8391_ACEOF 8392if ac_fn_c_try_cpp "$LINENO"; then : 8393 # Broken: success on invalid input. 8394continue 8395else 8396 # Passes both tests. 8397ac_preproc_ok=: 8398break 8399fi 8400rm -f conftest.err conftest.i conftest.$ac_ext 8401 8402done 8403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8404rm -f conftest.i conftest.err conftest.$ac_ext 8405if $ac_preproc_ok; then : 8406 8407else 8408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8410as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8411See \`config.log' for more details" "$LINENO" 5; } 8412fi 8413 8414ac_ext=c 8415ac_cpp='$CPP $CPPFLAGS' 8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8418ac_compiler_gnu=$ac_cv_c_compiler_gnu 8419 8420 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8422$as_echo_n "checking for ANSI C header files... " >&6; } 8423if ${ac_cv_header_stdc+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428#include <stdlib.h> 8429#include <stdarg.h> 8430#include <string.h> 8431#include <float.h> 8432 8433int 8434main () 8435{ 8436 8437 ; 8438 return 0; 8439} 8440_ACEOF 8441if ac_fn_c_try_compile "$LINENO"; then : 8442 ac_cv_header_stdc=yes 8443else 8444 ac_cv_header_stdc=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8447 8448if test $ac_cv_header_stdc = yes; then 8449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452#include <string.h> 8453 8454_ACEOF 8455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8456 $EGREP "memchr" >/dev/null 2>&1; then : 8457 8458else 8459 ac_cv_header_stdc=no 8460fi 8461rm -f conftest* 8462 8463fi 8464 8465if test $ac_cv_header_stdc = yes; then 8466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469#include <stdlib.h> 8470 8471_ACEOF 8472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8473 $EGREP "free" >/dev/null 2>&1; then : 8474 8475else 8476 ac_cv_header_stdc=no 8477fi 8478rm -f conftest* 8479 8480fi 8481 8482if test $ac_cv_header_stdc = yes; then 8483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8484 if test "$cross_compiling" = yes; then : 8485 : 8486else 8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8488/* end confdefs.h. */ 8489#include <ctype.h> 8490#include <stdlib.h> 8491#if ((' ' & 0x0FF) == 0x020) 8492# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8493# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8494#else 8495# define ISLOWER(c) \ 8496 (('a' <= (c) && (c) <= 'i') \ 8497 || ('j' <= (c) && (c) <= 'r') \ 8498 || ('s' <= (c) && (c) <= 'z')) 8499# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8500#endif 8501 8502#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8503int 8504main () 8505{ 8506 int i; 8507 for (i = 0; i < 256; i++) 8508 if (XOR (islower (i), ISLOWER (i)) 8509 || toupper (i) != TOUPPER (i)) 8510 return 2; 8511 return 0; 8512} 8513_ACEOF 8514if ac_fn_c_try_run "$LINENO"; then : 8515 8516else 8517 ac_cv_header_stdc=no 8518fi 8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8520 conftest.$ac_objext conftest.beam conftest.$ac_ext 8521fi 8522 8523fi 8524fi 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8526$as_echo "$ac_cv_header_stdc" >&6; } 8527if test $ac_cv_header_stdc = yes; then 8528 8529$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8530 8531fi 8532 8533# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8534for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8535 inttypes.h stdint.h unistd.h 8536do : 8537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8538ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8539" 8540if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8541 cat >>confdefs.h <<_ACEOF 8542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8543_ACEOF 8544 8545fi 8546 8547done 8548 8549 8550for ac_header in dlfcn.h 8551do : 8552 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8553" 8554if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8555 cat >>confdefs.h <<_ACEOF 8556#define HAVE_DLFCN_H 1 8557_ACEOF 8558 8559fi 8560 8561done 8562 8563 8564 8565 8566 8567# Set options 8568enable_win32_dll=yes 8569 8570case $host in 8571*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8572 if test -n "$ac_tool_prefix"; then 8573 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8574set dummy ${ac_tool_prefix}as; ac_word=$2 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8576$as_echo_n "checking for $ac_word... " >&6; } 8577if ${ac_cv_prog_AS+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 if test -n "$AS"; then 8581 ac_cv_prog_AS="$AS" # Let the user override the test. 8582else 8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8584for as_dir in $PATH 8585do 8586 IFS=$as_save_IFS 8587 test -z "$as_dir" && as_dir=. 8588 for ac_exec_ext in '' $ac_executable_extensions; do 8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8590 ac_cv_prog_AS="${ac_tool_prefix}as" 8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8592 break 2 8593 fi 8594done 8595 done 8596IFS=$as_save_IFS 8597 8598fi 8599fi 8600AS=$ac_cv_prog_AS 8601if test -n "$AS"; then 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8603$as_echo "$AS" >&6; } 8604else 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8606$as_echo "no" >&6; } 8607fi 8608 8609 8610fi 8611if test -z "$ac_cv_prog_AS"; then 8612 ac_ct_AS=$AS 8613 # Extract the first word of "as", so it can be a program name with args. 8614set dummy as; ac_word=$2 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8616$as_echo_n "checking for $ac_word... " >&6; } 8617if ${ac_cv_prog_ac_ct_AS+:} false; then : 8618 $as_echo_n "(cached) " >&6 8619else 8620 if test -n "$ac_ct_AS"; then 8621 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8622else 8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8624for as_dir in $PATH 8625do 8626 IFS=$as_save_IFS 8627 test -z "$as_dir" && as_dir=. 8628 for ac_exec_ext in '' $ac_executable_extensions; do 8629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8630 ac_cv_prog_ac_ct_AS="as" 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8632 break 2 8633 fi 8634done 8635 done 8636IFS=$as_save_IFS 8637 8638fi 8639fi 8640ac_ct_AS=$ac_cv_prog_ac_ct_AS 8641if test -n "$ac_ct_AS"; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8643$as_echo "$ac_ct_AS" >&6; } 8644else 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8646$as_echo "no" >&6; } 8647fi 8648 8649 if test "x$ac_ct_AS" = x; then 8650 AS="false" 8651 else 8652 case $cross_compiling:$ac_tool_warned in 8653yes:) 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8656ac_tool_warned=yes ;; 8657esac 8658 AS=$ac_ct_AS 8659 fi 8660else 8661 AS="$ac_cv_prog_AS" 8662fi 8663 8664 if test -n "$ac_tool_prefix"; then 8665 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8666set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8668$as_echo_n "checking for $ac_word... " >&6; } 8669if ${ac_cv_prog_DLLTOOL+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671else 8672 if test -n "$DLLTOOL"; then 8673 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8674else 8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8676for as_dir in $PATH 8677do 8678 IFS=$as_save_IFS 8679 test -z "$as_dir" && as_dir=. 8680 for ac_exec_ext in '' $ac_executable_extensions; do 8681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8682 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8684 break 2 8685 fi 8686done 8687 done 8688IFS=$as_save_IFS 8689 8690fi 8691fi 8692DLLTOOL=$ac_cv_prog_DLLTOOL 8693if test -n "$DLLTOOL"; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8695$as_echo "$DLLTOOL" >&6; } 8696else 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8698$as_echo "no" >&6; } 8699fi 8700 8701 8702fi 8703if test -z "$ac_cv_prog_DLLTOOL"; then 8704 ac_ct_DLLTOOL=$DLLTOOL 8705 # Extract the first word of "dlltool", so it can be a program name with args. 8706set dummy dlltool; ac_word=$2 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8708$as_echo_n "checking for $ac_word... " >&6; } 8709if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 if test -n "$ac_ct_DLLTOOL"; then 8713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8714else 8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8716for as_dir in $PATH 8717do 8718 IFS=$as_save_IFS 8719 test -z "$as_dir" && as_dir=. 8720 for ac_exec_ext in '' $ac_executable_extensions; do 8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8722 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8724 break 2 8725 fi 8726done 8727 done 8728IFS=$as_save_IFS 8729 8730fi 8731fi 8732ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8733if test -n "$ac_ct_DLLTOOL"; then 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8735$as_echo "$ac_ct_DLLTOOL" >&6; } 8736else 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8738$as_echo "no" >&6; } 8739fi 8740 8741 if test "x$ac_ct_DLLTOOL" = x; then 8742 DLLTOOL="false" 8743 else 8744 case $cross_compiling:$ac_tool_warned in 8745yes:) 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8748ac_tool_warned=yes ;; 8749esac 8750 DLLTOOL=$ac_ct_DLLTOOL 8751 fi 8752else 8753 DLLTOOL="$ac_cv_prog_DLLTOOL" 8754fi 8755 8756 if test -n "$ac_tool_prefix"; then 8757 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8758set dummy ${ac_tool_prefix}objdump; ac_word=$2 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8760$as_echo_n "checking for $ac_word... " >&6; } 8761if ${ac_cv_prog_OBJDUMP+:} false; then : 8762 $as_echo_n "(cached) " >&6 8763else 8764 if test -n "$OBJDUMP"; then 8765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8766else 8767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8768for as_dir in $PATH 8769do 8770 IFS=$as_save_IFS 8771 test -z "$as_dir" && as_dir=. 8772 for ac_exec_ext in '' $ac_executable_extensions; do 8773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8774 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8776 break 2 8777 fi 8778done 8779 done 8780IFS=$as_save_IFS 8781 8782fi 8783fi 8784OBJDUMP=$ac_cv_prog_OBJDUMP 8785if test -n "$OBJDUMP"; then 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8787$as_echo "$OBJDUMP" >&6; } 8788else 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8790$as_echo "no" >&6; } 8791fi 8792 8793 8794fi 8795if test -z "$ac_cv_prog_OBJDUMP"; then 8796 ac_ct_OBJDUMP=$OBJDUMP 8797 # Extract the first word of "objdump", so it can be a program name with args. 8798set dummy objdump; ac_word=$2 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8800$as_echo_n "checking for $ac_word... " >&6; } 8801if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8802 $as_echo_n "(cached) " >&6 8803else 8804 if test -n "$ac_ct_OBJDUMP"; then 8805 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8806else 8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8808for as_dir in $PATH 8809do 8810 IFS=$as_save_IFS 8811 test -z "$as_dir" && as_dir=. 8812 for ac_exec_ext in '' $ac_executable_extensions; do 8813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8814 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8816 break 2 8817 fi 8818done 8819 done 8820IFS=$as_save_IFS 8821 8822fi 8823fi 8824ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8825if test -n "$ac_ct_OBJDUMP"; then 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8827$as_echo "$ac_ct_OBJDUMP" >&6; } 8828else 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8830$as_echo "no" >&6; } 8831fi 8832 8833 if test "x$ac_ct_OBJDUMP" = x; then 8834 OBJDUMP="false" 8835 else 8836 case $cross_compiling:$ac_tool_warned in 8837yes:) 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8840ac_tool_warned=yes ;; 8841esac 8842 OBJDUMP=$ac_ct_OBJDUMP 8843 fi 8844else 8845 OBJDUMP="$ac_cv_prog_OBJDUMP" 8846fi 8847 8848 ;; 8849esac 8850 8851test -z "$AS" && AS=as 8852 8853 8854 8855 8856 8857test -z "$DLLTOOL" && DLLTOOL=dlltool 8858 8859 8860 8861 8862 8863test -z "$OBJDUMP" && OBJDUMP=objdump 8864 8865 8866 8867 8868 8869 8870 8871 enable_dlopen=no 8872 8873 8874 8875 # Check whether --enable-shared was given. 8876if test "${enable_shared+set}" = set; then : 8877 enableval=$enable_shared; p=${PACKAGE-default} 8878 case $enableval in 8879 yes) enable_shared=yes ;; 8880 no) enable_shared=no ;; 8881 *) 8882 enable_shared=no 8883 # Look at the argument we got. We use all the common list separators. 8884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8885 for pkg in $enableval; do 8886 IFS=$lt_save_ifs 8887 if test "X$pkg" = "X$p"; then 8888 enable_shared=yes 8889 fi 8890 done 8891 IFS=$lt_save_ifs 8892 ;; 8893 esac 8894else 8895 enable_shared=yes 8896fi 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 # Check whether --enable-static was given. 8907if test "${enable_static+set}" = set; then : 8908 enableval=$enable_static; p=${PACKAGE-default} 8909 case $enableval in 8910 yes) enable_static=yes ;; 8911 no) enable_static=no ;; 8912 *) 8913 enable_static=no 8914 # Look at the argument we got. We use all the common list separators. 8915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8916 for pkg in $enableval; do 8917 IFS=$lt_save_ifs 8918 if test "X$pkg" = "X$p"; then 8919 enable_static=yes 8920 fi 8921 done 8922 IFS=$lt_save_ifs 8923 ;; 8924 esac 8925else 8926 enable_static=yes 8927fi 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# Check whether --with-pic was given. 8939if test "${with_pic+set}" = set; then : 8940 withval=$with_pic; lt_p=${PACKAGE-default} 8941 case $withval in 8942 yes|no) pic_mode=$withval ;; 8943 *) 8944 pic_mode=default 8945 # Look at the argument we got. We use all the common list separators. 8946 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8947 for lt_pkg in $withval; do 8948 IFS=$lt_save_ifs 8949 if test "X$lt_pkg" = "X$lt_p"; then 8950 pic_mode=yes 8951 fi 8952 done 8953 IFS=$lt_save_ifs 8954 ;; 8955 esac 8956else 8957 pic_mode=default 8958fi 8959 8960 8961 8962 8963 8964 8965 8966 8967 # Check whether --enable-fast-install was given. 8968if test "${enable_fast_install+set}" = set; then : 8969 enableval=$enable_fast_install; p=${PACKAGE-default} 8970 case $enableval in 8971 yes) enable_fast_install=yes ;; 8972 no) enable_fast_install=no ;; 8973 *) 8974 enable_fast_install=no 8975 # Look at the argument we got. We use all the common list separators. 8976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8977 for pkg in $enableval; do 8978 IFS=$lt_save_ifs 8979 if test "X$pkg" = "X$p"; then 8980 enable_fast_install=yes 8981 fi 8982 done 8983 IFS=$lt_save_ifs 8984 ;; 8985 esac 8986else 8987 enable_fast_install=yes 8988fi 8989 8990 8991 8992 8993 8994 8995 8996 8997 shared_archive_member_spec= 8998case $host,$enable_shared in 8999power*-*-aix[5-9]*,yes) 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9001$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9002 9003# Check whether --with-aix-soname was given. 9004if test "${with_aix_soname+set}" = set; then : 9005 withval=$with_aix_soname; case $withval in 9006 aix|svr4|both) 9007 ;; 9008 *) 9009 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9010 ;; 9011 esac 9012 lt_cv_with_aix_soname=$with_aix_soname 9013else 9014 if ${lt_cv_with_aix_soname+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 lt_cv_with_aix_soname=aix 9018fi 9019 9020 with_aix_soname=$lt_cv_with_aix_soname 9021fi 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9024$as_echo "$with_aix_soname" >&6; } 9025 if test aix != "$with_aix_soname"; then 9026 # For the AIX way of multilib, we name the shared archive member 9027 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9028 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9029 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9030 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9031 if test 64 = "${OBJECT_MODE-32}"; then 9032 shared_archive_member_spec=shr_64 9033 else 9034 shared_archive_member_spec=shr 9035 fi 9036 fi 9037 ;; 9038*) 9039 with_aix_soname=aix 9040 ;; 9041esac 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052# This can be used to rebuild libtool when needed 9053LIBTOOL_DEPS=$ltmain 9054 9055# Always use our own libtool. 9056LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087test -z "$LN_S" && LN_S="ln -s" 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102if test -n "${ZSH_VERSION+set}"; then 9103 setopt NO_GLOB_SUBST 9104fi 9105 9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9107$as_echo_n "checking for objdir... " >&6; } 9108if ${lt_cv_objdir+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 rm -f .libs 2>/dev/null 9112mkdir .libs 2>/dev/null 9113if test -d .libs; then 9114 lt_cv_objdir=.libs 9115else 9116 # MS-DOS does not allow filenames that begin with a dot. 9117 lt_cv_objdir=_libs 9118fi 9119rmdir .libs 2>/dev/null 9120fi 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9122$as_echo "$lt_cv_objdir" >&6; } 9123objdir=$lt_cv_objdir 9124 9125 9126 9127 9128 9129cat >>confdefs.h <<_ACEOF 9130#define LT_OBJDIR "$lt_cv_objdir/" 9131_ACEOF 9132 9133 9134 9135 9136case $host_os in 9137aix3*) 9138 # AIX sometimes has problems with the GCC collect2 program. For some 9139 # reason, if we set the COLLECT_NAMES environment variable, the problems 9140 # vanish in a puff of smoke. 9141 if test set != "${COLLECT_NAMES+set}"; then 9142 COLLECT_NAMES= 9143 export COLLECT_NAMES 9144 fi 9145 ;; 9146esac 9147 9148# Global variables: 9149ofile=libtool 9150can_build_shared=yes 9151 9152# All known linkers require a '.a' archive for static linking (except MSVC, 9153# which needs '.lib'). 9154libext=a 9155 9156with_gnu_ld=$lt_cv_prog_gnu_ld 9157 9158old_CC=$CC 9159old_CFLAGS=$CFLAGS 9160 9161# Set sane defaults for various variables 9162test -z "$CC" && CC=cc 9163test -z "$LTCC" && LTCC=$CC 9164test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9165test -z "$LD" && LD=ld 9166test -z "$ac_objext" && ac_objext=o 9167 9168func_cc_basename $compiler 9169cc_basename=$func_cc_basename_result 9170 9171 9172# Only perform the check for file, if the check method requires it 9173test -z "$MAGIC_CMD" && MAGIC_CMD=file 9174case $deplibs_check_method in 9175file_magic*) 9176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9178$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9179if ${lt_cv_path_MAGIC_CMD+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 case $MAGIC_CMD in 9183[\\/*] | ?:[\\/]*) 9184 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9185 ;; 9186*) 9187 lt_save_MAGIC_CMD=$MAGIC_CMD 9188 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9190 for ac_dir in $ac_dummy; do 9191 IFS=$lt_save_ifs 9192 test -z "$ac_dir" && ac_dir=. 9193 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9194 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9195 if test -n "$file_magic_test_file"; then 9196 case $deplibs_check_method in 9197 "file_magic "*) 9198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9199 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9201 $EGREP "$file_magic_regex" > /dev/null; then 9202 : 9203 else 9204 cat <<_LT_EOF 1>&2 9205 9206*** Warning: the command libtool uses to detect shared libraries, 9207*** $file_magic_cmd, produces output that libtool cannot recognize. 9208*** The result is that libtool may fail to recognize shared libraries 9209*** as such. This will affect the creation of libtool libraries that 9210*** depend on shared libraries, but programs linked with such libtool 9211*** libraries will work regardless of this problem. Nevertheless, you 9212*** may want to report the problem to your system manager and/or to 9213*** bug-libtool@gnu.org 9214 9215_LT_EOF 9216 fi ;; 9217 esac 9218 fi 9219 break 9220 fi 9221 done 9222 IFS=$lt_save_ifs 9223 MAGIC_CMD=$lt_save_MAGIC_CMD 9224 ;; 9225esac 9226fi 9227 9228MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9229if test -n "$MAGIC_CMD"; then 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9231$as_echo "$MAGIC_CMD" >&6; } 9232else 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9234$as_echo "no" >&6; } 9235fi 9236 9237 9238 9239 9240 9241if test -z "$lt_cv_path_MAGIC_CMD"; then 9242 if test -n "$ac_tool_prefix"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9244$as_echo_n "checking for file... " >&6; } 9245if ${lt_cv_path_MAGIC_CMD+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 case $MAGIC_CMD in 9249[\\/*] | ?:[\\/]*) 9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9251 ;; 9252*) 9253 lt_save_MAGIC_CMD=$MAGIC_CMD 9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9256 for ac_dir in $ac_dummy; do 9257 IFS=$lt_save_ifs 9258 test -z "$ac_dir" && ac_dir=. 9259 if test -f "$ac_dir/file"; then 9260 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9261 if test -n "$file_magic_test_file"; then 9262 case $deplibs_check_method in 9263 "file_magic "*) 9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9267 $EGREP "$file_magic_regex" > /dev/null; then 9268 : 9269 else 9270 cat <<_LT_EOF 1>&2 9271 9272*** Warning: the command libtool uses to detect shared libraries, 9273*** $file_magic_cmd, produces output that libtool cannot recognize. 9274*** The result is that libtool may fail to recognize shared libraries 9275*** as such. This will affect the creation of libtool libraries that 9276*** depend on shared libraries, but programs linked with such libtool 9277*** libraries will work regardless of this problem. Nevertheless, you 9278*** may want to report the problem to your system manager and/or to 9279*** bug-libtool@gnu.org 9280 9281_LT_EOF 9282 fi ;; 9283 esac 9284 fi 9285 break 9286 fi 9287 done 9288 IFS=$lt_save_ifs 9289 MAGIC_CMD=$lt_save_MAGIC_CMD 9290 ;; 9291esac 9292fi 9293 9294MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9295if test -n "$MAGIC_CMD"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9297$as_echo "$MAGIC_CMD" >&6; } 9298else 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9300$as_echo "no" >&6; } 9301fi 9302 9303 9304 else 9305 MAGIC_CMD=: 9306 fi 9307fi 9308 9309 fi 9310 ;; 9311esac 9312 9313# Use C for the default configuration in the libtool script 9314 9315lt_save_CC=$CC 9316ac_ext=c 9317ac_cpp='$CPP $CPPFLAGS' 9318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9320ac_compiler_gnu=$ac_cv_c_compiler_gnu 9321 9322 9323# Source file extension for C test sources. 9324ac_ext=c 9325 9326# Object file extension for compiled C test sources. 9327objext=o 9328objext=$objext 9329 9330# Code to be used in simple compile tests 9331lt_simple_compile_test_code="int some_variable = 0;" 9332 9333# Code to be used in simple link tests 9334lt_simple_link_test_code='int main(){return(0);}' 9335 9336 9337 9338 9339 9340 9341 9342# If no C compiler was specified, use CC. 9343LTCC=${LTCC-"$CC"} 9344 9345# If no C compiler flags were specified, use CFLAGS. 9346LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9347 9348# Allow CC to be a program name with arguments. 9349compiler=$CC 9350 9351# Save the default compiler, since it gets overwritten when the other 9352# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9353compiler_DEFAULT=$CC 9354 9355# save warnings/boilerplate of simple test code 9356ac_outfile=conftest.$ac_objext 9357echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9359_lt_compiler_boilerplate=`cat conftest.err` 9360$RM conftest* 9361 9362ac_outfile=conftest.$ac_objext 9363echo "$lt_simple_link_test_code" >conftest.$ac_ext 9364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9365_lt_linker_boilerplate=`cat conftest.err` 9366$RM -r conftest* 9367 9368 9369## CAVEAT EMPTOR: 9370## There is no encapsulation within the following macros, do not change 9371## the running order or otherwise move them around unless you know exactly 9372## what you are doing... 9373if test -n "$compiler"; then 9374 9375lt_prog_compiler_no_builtin_flag= 9376 9377if test yes = "$GCC"; then 9378 case $cc_basename in 9379 nvcc*) 9380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9381 *) 9382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9383 esac 9384 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9386$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9387if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 lt_cv_prog_compiler_rtti_exceptions=no 9391 ac_outfile=conftest.$ac_objext 9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9393 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9394 # Insert the option either (1) after the last *FLAGS variable, or 9395 # (2) before a word containing "conftest.", or (3) at the end. 9396 # Note that $ac_compile itself does not contain backslashes and begins 9397 # with a dollar sign (not a hyphen), so the echo should work correctly. 9398 # The option is referenced via a variable to avoid confusing sed. 9399 lt_compile=`echo "$ac_compile" | $SED \ 9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9402 -e 's:$: $lt_compiler_flag:'` 9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9404 (eval "$lt_compile" 2>conftest.err) 9405 ac_status=$? 9406 cat conftest.err >&5 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 if (exit $ac_status) && test -s "$ac_outfile"; then 9409 # The compiler can only warn and ignore the option if not recognized 9410 # So say no if there are warnings other than the usual output. 9411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9414 lt_cv_prog_compiler_rtti_exceptions=yes 9415 fi 9416 fi 9417 $RM conftest* 9418 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9421$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9422 9423if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9425else 9426 : 9427fi 9428 9429fi 9430 9431 9432 9433 9434 9435 9436 lt_prog_compiler_wl= 9437lt_prog_compiler_pic= 9438lt_prog_compiler_static= 9439 9440 9441 if test yes = "$GCC"; then 9442 lt_prog_compiler_wl='-Wl,' 9443 lt_prog_compiler_static='-static' 9444 9445 case $host_os in 9446 aix*) 9447 # All AIX code is PIC. 9448 if test ia64 = "$host_cpu"; then 9449 # AIX 5 now supports IA64 processor 9450 lt_prog_compiler_static='-Bstatic' 9451 fi 9452 lt_prog_compiler_pic='-fPIC' 9453 ;; 9454 9455 amigaos*) 9456 case $host_cpu in 9457 powerpc) 9458 # see comment about AmigaOS4 .so support 9459 lt_prog_compiler_pic='-fPIC' 9460 ;; 9461 m68k) 9462 # FIXME: we need at least 68020 code to build shared libraries, but 9463 # adding the '-m68020' flag to GCC prevents building anything better, 9464 # like '-m68040'. 9465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9466 ;; 9467 esac 9468 ;; 9469 9470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9471 # PIC is the default for these OSes. 9472 ;; 9473 9474 mingw* | cygwin* | pw32* | os2* | cegcc*) 9475 # This hack is so that the source file can tell whether it is being 9476 # built for inclusion in a dll (and should export symbols for example). 9477 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9478 # (--disable-auto-import) libraries 9479 lt_prog_compiler_pic='-DDLL_EXPORT' 9480 case $host_os in 9481 os2*) 9482 lt_prog_compiler_static='$wl-static' 9483 ;; 9484 esac 9485 ;; 9486 9487 darwin* | rhapsody*) 9488 # PIC is the default on this platform 9489 # Common symbols not allowed in MH_DYLIB files 9490 lt_prog_compiler_pic='-fno-common' 9491 ;; 9492 9493 haiku*) 9494 # PIC is the default for Haiku. 9495 # The "-static" flag exists, but is broken. 9496 lt_prog_compiler_static= 9497 ;; 9498 9499 hpux*) 9500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9502 # sets the default TLS model and affects inlining. 9503 case $host_cpu in 9504 hppa*64*) 9505 # +Z the default 9506 ;; 9507 *) 9508 lt_prog_compiler_pic='-fPIC' 9509 ;; 9510 esac 9511 ;; 9512 9513 interix[3-9]*) 9514 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9515 # Instead, we relocate shared libraries at runtime. 9516 ;; 9517 9518 msdosdjgpp*) 9519 # Just because we use GCC doesn't mean we suddenly get shared libraries 9520 # on systems that don't support them. 9521 lt_prog_compiler_can_build_shared=no 9522 enable_shared=no 9523 ;; 9524 9525 *nto* | *qnx*) 9526 # QNX uses GNU C++, but need to define -shared option too, otherwise 9527 # it will coredump. 9528 lt_prog_compiler_pic='-fPIC -shared' 9529 ;; 9530 9531 sysv4*MP*) 9532 if test -d /usr/nec; then 9533 lt_prog_compiler_pic=-Kconform_pic 9534 fi 9535 ;; 9536 9537 *) 9538 lt_prog_compiler_pic='-fPIC' 9539 ;; 9540 esac 9541 9542 case $cc_basename in 9543 nvcc*) # Cuda Compiler Driver 2.2 9544 lt_prog_compiler_wl='-Xlinker ' 9545 if test -n "$lt_prog_compiler_pic"; then 9546 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9547 fi 9548 ;; 9549 esac 9550 else 9551 # PORTME Check for flag to pass linker flags through the system compiler. 9552 case $host_os in 9553 aix*) 9554 lt_prog_compiler_wl='-Wl,' 9555 if test ia64 = "$host_cpu"; then 9556 # AIX 5 now supports IA64 processor 9557 lt_prog_compiler_static='-Bstatic' 9558 else 9559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9560 fi 9561 ;; 9562 9563 darwin* | rhapsody*) 9564 # PIC is the default on this platform 9565 # Common symbols not allowed in MH_DYLIB files 9566 lt_prog_compiler_pic='-fno-common' 9567 case $cc_basename in 9568 nagfor*) 9569 # NAG Fortran compiler 9570 lt_prog_compiler_wl='-Wl,-Wl,,' 9571 lt_prog_compiler_pic='-PIC' 9572 lt_prog_compiler_static='-Bstatic' 9573 ;; 9574 esac 9575 ;; 9576 9577 mingw* | cygwin* | pw32* | os2* | cegcc*) 9578 # This hack is so that the source file can tell whether it is being 9579 # built for inclusion in a dll (and should export symbols for example). 9580 lt_prog_compiler_pic='-DDLL_EXPORT' 9581 case $host_os in 9582 os2*) 9583 lt_prog_compiler_static='$wl-static' 9584 ;; 9585 esac 9586 ;; 9587 9588 hpux9* | hpux10* | hpux11*) 9589 lt_prog_compiler_wl='-Wl,' 9590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9591 # not for PA HP-UX. 9592 case $host_cpu in 9593 hppa*64*|ia64*) 9594 # +Z the default 9595 ;; 9596 *) 9597 lt_prog_compiler_pic='+Z' 9598 ;; 9599 esac 9600 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9601 lt_prog_compiler_static='$wl-a ${wl}archive' 9602 ;; 9603 9604 irix5* | irix6* | nonstopux*) 9605 lt_prog_compiler_wl='-Wl,' 9606 # PIC (with -KPIC) is the default. 9607 lt_prog_compiler_static='-non_shared' 9608 ;; 9609 9610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9611 case $cc_basename in 9612 # old Intel for x86_64, which still supported -KPIC. 9613 ecc*) 9614 lt_prog_compiler_wl='-Wl,' 9615 lt_prog_compiler_pic='-KPIC' 9616 lt_prog_compiler_static='-static' 9617 ;; 9618 # icc used to be incompatible with GCC. 9619 # ICC 10 doesn't accept -KPIC any more. 9620 icc* | ifort*) 9621 lt_prog_compiler_wl='-Wl,' 9622 lt_prog_compiler_pic='-fPIC' 9623 lt_prog_compiler_static='-static' 9624 ;; 9625 # Lahey Fortran 8.1. 9626 lf95*) 9627 lt_prog_compiler_wl='-Wl,' 9628 lt_prog_compiler_pic='--shared' 9629 lt_prog_compiler_static='--static' 9630 ;; 9631 nagfor*) 9632 # NAG Fortran compiler 9633 lt_prog_compiler_wl='-Wl,-Wl,,' 9634 lt_prog_compiler_pic='-PIC' 9635 lt_prog_compiler_static='-Bstatic' 9636 ;; 9637 tcc*) 9638 # Fabrice Bellard et al's Tiny C Compiler 9639 lt_prog_compiler_wl='-Wl,' 9640 lt_prog_compiler_pic='-fPIC' 9641 lt_prog_compiler_static='-static' 9642 ;; 9643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9644 # Portland Group compilers (*not* the Pentium gcc compiler, 9645 # which looks to be a dead project) 9646 lt_prog_compiler_wl='-Wl,' 9647 lt_prog_compiler_pic='-fpic' 9648 lt_prog_compiler_static='-Bstatic' 9649 ;; 9650 ccc*) 9651 lt_prog_compiler_wl='-Wl,' 9652 # All Alpha code is PIC. 9653 lt_prog_compiler_static='-non_shared' 9654 ;; 9655 xl* | bgxl* | bgf* | mpixl*) 9656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9657 lt_prog_compiler_wl='-Wl,' 9658 lt_prog_compiler_pic='-qpic' 9659 lt_prog_compiler_static='-qstaticlink' 9660 ;; 9661 *) 9662 case `$CC -V 2>&1 | sed 5q` in 9663 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9664 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9665 lt_prog_compiler_pic='-KPIC' 9666 lt_prog_compiler_static='-Bstatic' 9667 lt_prog_compiler_wl='' 9668 ;; 9669 *Sun\ F* | *Sun*Fortran*) 9670 lt_prog_compiler_pic='-KPIC' 9671 lt_prog_compiler_static='-Bstatic' 9672 lt_prog_compiler_wl='-Qoption ld ' 9673 ;; 9674 *Sun\ C*) 9675 # Sun C 5.9 9676 lt_prog_compiler_pic='-KPIC' 9677 lt_prog_compiler_static='-Bstatic' 9678 lt_prog_compiler_wl='-Wl,' 9679 ;; 9680 *Intel*\ [CF]*Compiler*) 9681 lt_prog_compiler_wl='-Wl,' 9682 lt_prog_compiler_pic='-fPIC' 9683 lt_prog_compiler_static='-static' 9684 ;; 9685 *Portland\ Group*) 9686 lt_prog_compiler_wl='-Wl,' 9687 lt_prog_compiler_pic='-fpic' 9688 lt_prog_compiler_static='-Bstatic' 9689 ;; 9690 esac 9691 ;; 9692 esac 9693 ;; 9694 9695 newsos6) 9696 lt_prog_compiler_pic='-KPIC' 9697 lt_prog_compiler_static='-Bstatic' 9698 ;; 9699 9700 *nto* | *qnx*) 9701 # QNX uses GNU C++, but need to define -shared option too, otherwise 9702 # it will coredump. 9703 lt_prog_compiler_pic='-fPIC -shared' 9704 ;; 9705 9706 osf3* | osf4* | osf5*) 9707 lt_prog_compiler_wl='-Wl,' 9708 # All OSF/1 code is PIC. 9709 lt_prog_compiler_static='-non_shared' 9710 ;; 9711 9712 rdos*) 9713 lt_prog_compiler_static='-non_shared' 9714 ;; 9715 9716 solaris*) 9717 lt_prog_compiler_pic='-KPIC' 9718 lt_prog_compiler_static='-Bstatic' 9719 case $cc_basename in 9720 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9721 lt_prog_compiler_wl='-Qoption ld ';; 9722 *) 9723 lt_prog_compiler_wl='-Wl,';; 9724 esac 9725 ;; 9726 9727 sunos4*) 9728 lt_prog_compiler_wl='-Qoption ld ' 9729 lt_prog_compiler_pic='-PIC' 9730 lt_prog_compiler_static='-Bstatic' 9731 ;; 9732 9733 sysv4 | sysv4.2uw2* | sysv4.3*) 9734 lt_prog_compiler_wl='-Wl,' 9735 lt_prog_compiler_pic='-KPIC' 9736 lt_prog_compiler_static='-Bstatic' 9737 ;; 9738 9739 sysv4*MP*) 9740 if test -d /usr/nec; then 9741 lt_prog_compiler_pic='-Kconform_pic' 9742 lt_prog_compiler_static='-Bstatic' 9743 fi 9744 ;; 9745 9746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9747 lt_prog_compiler_wl='-Wl,' 9748 lt_prog_compiler_pic='-KPIC' 9749 lt_prog_compiler_static='-Bstatic' 9750 ;; 9751 9752 unicos*) 9753 lt_prog_compiler_wl='-Wl,' 9754 lt_prog_compiler_can_build_shared=no 9755 ;; 9756 9757 uts4*) 9758 lt_prog_compiler_pic='-pic' 9759 lt_prog_compiler_static='-Bstatic' 9760 ;; 9761 9762 *) 9763 lt_prog_compiler_can_build_shared=no 9764 ;; 9765 esac 9766 fi 9767 9768case $host_os in 9769 # For platforms that do not support PIC, -DPIC is meaningless: 9770 *djgpp*) 9771 lt_prog_compiler_pic= 9772 ;; 9773 *) 9774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9775 ;; 9776esac 9777 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9779$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9780if ${lt_cv_prog_compiler_pic+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9786$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9787lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9788 9789# 9790# Check to make sure the PIC flag actually works. 9791# 9792if test -n "$lt_prog_compiler_pic"; then 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9794$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9795if ${lt_cv_prog_compiler_pic_works+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 lt_cv_prog_compiler_pic_works=no 9799 ac_outfile=conftest.$ac_objext 9800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9802 # Insert the option either (1) after the last *FLAGS variable, or 9803 # (2) before a word containing "conftest.", or (3) at the end. 9804 # Note that $ac_compile itself does not contain backslashes and begins 9805 # with a dollar sign (not a hyphen), so the echo should work correctly. 9806 # The option is referenced via a variable to avoid confusing sed. 9807 lt_compile=`echo "$ac_compile" | $SED \ 9808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9810 -e 's:$: $lt_compiler_flag:'` 9811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9812 (eval "$lt_compile" 2>conftest.err) 9813 ac_status=$? 9814 cat conftest.err >&5 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 if (exit $ac_status) && test -s "$ac_outfile"; then 9817 # The compiler can only warn and ignore the option if not recognized 9818 # So say no if there are warnings other than the usual output. 9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9822 lt_cv_prog_compiler_pic_works=yes 9823 fi 9824 fi 9825 $RM conftest* 9826 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9829$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9830 9831if test yes = "$lt_cv_prog_compiler_pic_works"; then 9832 case $lt_prog_compiler_pic in 9833 "" | " "*) ;; 9834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9835 esac 9836else 9837 lt_prog_compiler_pic= 9838 lt_prog_compiler_can_build_shared=no 9839fi 9840 9841fi 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853# 9854# Check to make sure the static flag actually works. 9855# 9856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9859if ${lt_cv_prog_compiler_static_works+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 lt_cv_prog_compiler_static_works=no 9863 save_LDFLAGS=$LDFLAGS 9864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9865 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9867 # The linker can only warn and ignore the option if not recognized 9868 # So say no if there are warnings 9869 if test -s conftest.err; then 9870 # Append any errors to the config.log. 9871 cat conftest.err 1>&5 9872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9874 if diff conftest.exp conftest.er2 >/dev/null; then 9875 lt_cv_prog_compiler_static_works=yes 9876 fi 9877 else 9878 lt_cv_prog_compiler_static_works=yes 9879 fi 9880 fi 9881 $RM -r conftest* 9882 LDFLAGS=$save_LDFLAGS 9883 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9886$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9887 9888if test yes = "$lt_cv_prog_compiler_static_works"; then 9889 : 9890else 9891 lt_prog_compiler_static= 9892fi 9893 9894 9895 9896 9897 9898 9899 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9902if ${lt_cv_prog_compiler_c_o+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 lt_cv_prog_compiler_c_o=no 9906 $RM -r conftest 2>/dev/null 9907 mkdir conftest 9908 cd conftest 9909 mkdir out 9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9911 9912 lt_compiler_flag="-o out/conftest2.$ac_objext" 9913 # Insert the option either (1) after the last *FLAGS variable, or 9914 # (2) before a word containing "conftest.", or (3) at the end. 9915 # Note that $ac_compile itself does not contain backslashes and begins 9916 # with a dollar sign (not a hyphen), so the echo should work correctly. 9917 lt_compile=`echo "$ac_compile" | $SED \ 9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9920 -e 's:$: $lt_compiler_flag:'` 9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9922 (eval "$lt_compile" 2>out/conftest.err) 9923 ac_status=$? 9924 cat out/conftest.err >&5 9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9927 then 9928 # The compiler can only warn and ignore the option if not recognized 9929 # So say no if there are warnings 9930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9933 lt_cv_prog_compiler_c_o=yes 9934 fi 9935 fi 9936 chmod u+w . 2>&5 9937 $RM conftest* 9938 # SGI C++ compiler will create directory out/ii_files/ for 9939 # template instantiation 9940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9941 $RM out/* && rmdir out 9942 cd .. 9943 $RM -r conftest 9944 $RM conftest* 9945 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9948$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9949 9950 9951 9952 9953 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9957if ${lt_cv_prog_compiler_c_o+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 lt_cv_prog_compiler_c_o=no 9961 $RM -r conftest 2>/dev/null 9962 mkdir conftest 9963 cd conftest 9964 mkdir out 9965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9966 9967 lt_compiler_flag="-o out/conftest2.$ac_objext" 9968 # Insert the option either (1) after the last *FLAGS variable, or 9969 # (2) before a word containing "conftest.", or (3) at the end. 9970 # Note that $ac_compile itself does not contain backslashes and begins 9971 # with a dollar sign (not a hyphen), so the echo should work correctly. 9972 lt_compile=`echo "$ac_compile" | $SED \ 9973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9975 -e 's:$: $lt_compiler_flag:'` 9976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9977 (eval "$lt_compile" 2>out/conftest.err) 9978 ac_status=$? 9979 cat out/conftest.err >&5 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9982 then 9983 # The compiler can only warn and ignore the option if not recognized 9984 # So say no if there are warnings 9985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9988 lt_cv_prog_compiler_c_o=yes 9989 fi 9990 fi 9991 chmod u+w . 2>&5 9992 $RM conftest* 9993 # SGI C++ compiler will create directory out/ii_files/ for 9994 # template instantiation 9995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9996 $RM out/* && rmdir out 9997 cd .. 9998 $RM -r conftest 9999 $RM conftest* 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10003$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10004 10005 10006 10007 10008hard_links=nottested 10009if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10010 # do not overwrite the value of need_locks provided by the user 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10012$as_echo_n "checking if we can lock with hard links... " >&6; } 10013 hard_links=yes 10014 $RM conftest* 10015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10016 touch conftest.a 10017 ln conftest.a conftest.b 2>&5 || hard_links=no 10018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10020$as_echo "$hard_links" >&6; } 10021 if test no = "$hard_links"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10023$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10024 need_locks=warn 10025 fi 10026else 10027 need_locks=no 10028fi 10029 10030 10031 10032 10033 10034 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10037 10038 runpath_var= 10039 allow_undefined_flag= 10040 always_export_symbols=no 10041 archive_cmds= 10042 archive_expsym_cmds= 10043 compiler_needs_object=no 10044 enable_shared_with_static_runtimes=no 10045 export_dynamic_flag_spec= 10046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10047 hardcode_automatic=no 10048 hardcode_direct=no 10049 hardcode_direct_absolute=no 10050 hardcode_libdir_flag_spec= 10051 hardcode_libdir_separator= 10052 hardcode_minus_L=no 10053 hardcode_shlibpath_var=unsupported 10054 inherit_rpath=no 10055 link_all_deplibs=unknown 10056 module_cmds= 10057 module_expsym_cmds= 10058 old_archive_from_new_cmds= 10059 old_archive_from_expsyms_cmds= 10060 thread_safe_flag_spec= 10061 whole_archive_flag_spec= 10062 # include_expsyms should be a list of space-separated symbols to be *always* 10063 # included in the symbol list 10064 include_expsyms= 10065 # exclude_expsyms can be an extended regexp of symbols to exclude 10066 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10067 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10068 # as well as any symbol that contains 'd'. 10069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10071 # platforms (ab)use it in PIC code, but their linkers get confused if 10072 # the symbol is explicitly referenced. Since portable code cannot 10073 # rely on this symbol name, it's probably fine to never include it in 10074 # preloaded symbol tables. 10075 # Exclude shared library initialization/finalization symbols. 10076 extract_expsyms_cmds= 10077 10078 case $host_os in 10079 cygwin* | mingw* | pw32* | cegcc*) 10080 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10081 # When not using gcc, we currently assume that we are using 10082 # Microsoft Visual C++. 10083 if test yes != "$GCC"; then 10084 with_gnu_ld=no 10085 fi 10086 ;; 10087 interix*) 10088 # we just hope/assume this is gcc and not c89 (= MSVC++) 10089 with_gnu_ld=yes 10090 ;; 10091 openbsd* | bitrig*) 10092 with_gnu_ld=no 10093 ;; 10094 esac 10095 10096 ld_shlibs=yes 10097 10098 # On some targets, GNU ld is compatible enough with the native linker 10099 # that we're better off using the native interface for both. 10100 lt_use_gnu_ld_interface=no 10101 if test yes = "$with_gnu_ld"; then 10102 case $host_os in 10103 aix*) 10104 # The AIX port of GNU ld has always aspired to compatibility 10105 # with the native linker. However, as the warning in the GNU ld 10106 # block says, versions before 2.19.5* couldn't really create working 10107 # shared libraries, regardless of the interface used. 10108 case `$LD -v 2>&1` in 10109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10111 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10112 *) 10113 lt_use_gnu_ld_interface=yes 10114 ;; 10115 esac 10116 ;; 10117 *) 10118 lt_use_gnu_ld_interface=yes 10119 ;; 10120 esac 10121 fi 10122 10123 if test yes = "$lt_use_gnu_ld_interface"; then 10124 # If archive_cmds runs LD, not CC, wlarc should be empty 10125 wlarc='$wl' 10126 10127 # Set some defaults for GNU ld with shared library support. These 10128 # are reset later if shared libraries are not supported. Putting them 10129 # here allows them to be overridden if necessary. 10130 runpath_var=LD_RUN_PATH 10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10132 export_dynamic_flag_spec='$wl--export-dynamic' 10133 # ancient GNU ld didn't support --whole-archive et. al. 10134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10135 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10136 else 10137 whole_archive_flag_spec= 10138 fi 10139 supports_anon_versioning=no 10140 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10141 *GNU\ gold*) supports_anon_versioning=yes ;; 10142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10145 *\ 2.11.*) ;; # other 2.11 versions 10146 *) supports_anon_versioning=yes ;; 10147 esac 10148 10149 # See if GNU ld supports shared libraries. 10150 case $host_os in 10151 aix[3-9]*) 10152 # On AIX/PPC, the GNU linker is very broken 10153 if test ia64 != "$host_cpu"; then 10154 ld_shlibs=no 10155 cat <<_LT_EOF 1>&2 10156 10157*** Warning: the GNU linker, at least up to release 2.19, is reported 10158*** to be unable to reliably create shared libraries on AIX. 10159*** Therefore, libtool is disabling shared libraries support. If you 10160*** really care for shared libraries, you may want to install binutils 10161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10162*** You will then need to restart the configuration process. 10163 10164_LT_EOF 10165 fi 10166 ;; 10167 10168 amigaos*) 10169 case $host_cpu in 10170 powerpc) 10171 # see comment about AmigaOS4 .so support 10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10173 archive_expsym_cmds='' 10174 ;; 10175 m68k) 10176 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)' 10177 hardcode_libdir_flag_spec='-L$libdir' 10178 hardcode_minus_L=yes 10179 ;; 10180 esac 10181 ;; 10182 10183 beos*) 10184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10185 allow_undefined_flag=unsupported 10186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10187 # support --undefined. This deserves some investigation. FIXME 10188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 else 10190 ld_shlibs=no 10191 fi 10192 ;; 10193 10194 cygwin* | mingw* | pw32* | cegcc*) 10195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10196 # as there is no search path for DLLs. 10197 hardcode_libdir_flag_spec='-L$libdir' 10198 export_dynamic_flag_spec='$wl--export-all-symbols' 10199 allow_undefined_flag=unsupported 10200 always_export_symbols=no 10201 enable_shared_with_static_runtimes=yes 10202 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' 10203 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10204 10205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10207 # If the export-symbols file already is a .def file, use it as 10208 # is; otherwise, prepend EXPORTS... 10209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10210 cp $export_symbols $output_objdir/$soname.def; 10211 else 10212 echo EXPORTS > $output_objdir/$soname.def; 10213 cat $export_symbols >> $output_objdir/$soname.def; 10214 fi~ 10215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10216 else 10217 ld_shlibs=no 10218 fi 10219 ;; 10220 10221 haiku*) 10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10223 link_all_deplibs=yes 10224 ;; 10225 10226 os2*) 10227 hardcode_libdir_flag_spec='-L$libdir' 10228 hardcode_minus_L=yes 10229 allow_undefined_flag=unsupported 10230 shrext_cmds=.dll 10231 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10234 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10235 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10236 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10237 emximp -o $lib $output_objdir/$libname.def' 10238 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10239 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10240 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10241 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10242 prefix_cmds="$SED"~ 10243 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10244 prefix_cmds="$prefix_cmds -e 1d"; 10245 fi~ 10246 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10247 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10249 emximp -o $lib $output_objdir/$libname.def' 10250 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10251 enable_shared_with_static_runtimes=yes 10252 ;; 10253 10254 interix[3-9]*) 10255 hardcode_direct=no 10256 hardcode_shlibpath_var=no 10257 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10258 export_dynamic_flag_spec='$wl-E' 10259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10260 # Instead, shared libraries are loaded at an image base (0x10000000 by 10261 # default) and relocated if they conflict, which is a slow very memory 10262 # consuming and fragmenting process. To avoid this, we pick a random, 10263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10264 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10266 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' 10267 ;; 10268 10269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10270 tmp_diet=no 10271 if test linux-dietlibc = "$host_os"; then 10272 case $cc_basename in 10273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10274 esac 10275 fi 10276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10277 && test no = "$tmp_diet" 10278 then 10279 tmp_addflag=' $pic_flag' 10280 tmp_sharedflag='-shared' 10281 case $cc_basename,$host_cpu in 10282 pgcc*) # Portland Group C compiler 10283 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' 10284 tmp_addflag=' $pic_flag' 10285 ;; 10286 pgf77* | pgf90* | pgf95* | pgfortran*) 10287 # Portland Group f77 and f90 compilers 10288 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' 10289 tmp_addflag=' $pic_flag -Mnomain' ;; 10290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10291 tmp_addflag=' -i_dynamic' ;; 10292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10293 tmp_addflag=' -i_dynamic -nofor_main' ;; 10294 ifc* | ifort*) # Intel Fortran compiler 10295 tmp_addflag=' -nofor_main' ;; 10296 lf95*) # Lahey Fortran 8.1 10297 whole_archive_flag_spec= 10298 tmp_sharedflag='--shared' ;; 10299 nagfor*) # NAGFOR 5.3 10300 tmp_sharedflag='-Wl,-shared' ;; 10301 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10302 tmp_sharedflag='-qmkshrobj' 10303 tmp_addflag= ;; 10304 nvcc*) # Cuda Compiler Driver 2.2 10305 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' 10306 compiler_needs_object=yes 10307 ;; 10308 esac 10309 case `$CC -V 2>&1 | sed 5q` in 10310 *Sun\ C*) # Sun C 5.9 10311 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' 10312 compiler_needs_object=yes 10313 tmp_sharedflag='-G' ;; 10314 *Sun\ F*) # Sun Fortran 8.3 10315 tmp_sharedflag='-G' ;; 10316 esac 10317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10318 10319 if test yes = "$supports_anon_versioning"; then 10320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10322 echo "local: *; };" >> $output_objdir/$libname.ver~ 10323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10324 fi 10325 10326 case $cc_basename in 10327 tcc*) 10328 export_dynamic_flag_spec='-rdynamic' 10329 ;; 10330 xlf* | bgf* | bgxlf* | mpixlf*) 10331 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10332 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10334 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10335 if test yes = "$supports_anon_versioning"; then 10336 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10338 echo "local: *; };" >> $output_objdir/$libname.ver~ 10339 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10340 fi 10341 ;; 10342 esac 10343 else 10344 ld_shlibs=no 10345 fi 10346 ;; 10347 10348 netbsd*) 10349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10351 wlarc= 10352 else 10353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10355 fi 10356 ;; 10357 10358 solaris*) 10359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10360 ld_shlibs=no 10361 cat <<_LT_EOF 1>&2 10362 10363*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10364*** create shared libraries on Solaris systems. Therefore, libtool 10365*** is disabling shared libraries support. We urge you to upgrade GNU 10366*** binutils to release 2.9.1 or newer. Another option is to modify 10367*** your PATH or compiler configuration so that the native linker is 10368*** used, and then restart. 10369 10370_LT_EOF 10371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10374 else 10375 ld_shlibs=no 10376 fi 10377 ;; 10378 10379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10380 case `$LD -v 2>&1` in 10381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10382 ld_shlibs=no 10383 cat <<_LT_EOF 1>&2 10384 10385*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10386*** reliably create shared libraries on SCO systems. Therefore, libtool 10387*** is disabling shared libraries support. We urge you to upgrade GNU 10388*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10389*** your PATH or compiler configuration so that the native linker is 10390*** used, and then restart. 10391 10392_LT_EOF 10393 ;; 10394 *) 10395 # For security reasons, it is highly recommended that you always 10396 # use absolute paths for naming shared libraries, and exclude the 10397 # DT_RUNPATH tag from executables and libraries. But doing so 10398 # requires that you compile everything twice, which is a pain. 10399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10403 else 10404 ld_shlibs=no 10405 fi 10406 ;; 10407 esac 10408 ;; 10409 10410 sunos4*) 10411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10412 wlarc= 10413 hardcode_direct=yes 10414 hardcode_shlibpath_var=no 10415 ;; 10416 10417 *) 10418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10421 else 10422 ld_shlibs=no 10423 fi 10424 ;; 10425 esac 10426 10427 if test no = "$ld_shlibs"; then 10428 runpath_var= 10429 hardcode_libdir_flag_spec= 10430 export_dynamic_flag_spec= 10431 whole_archive_flag_spec= 10432 fi 10433 else 10434 # PORTME fill in a description of your system's linker (not GNU ld) 10435 case $host_os in 10436 aix3*) 10437 allow_undefined_flag=unsupported 10438 always_export_symbols=yes 10439 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' 10440 # Note: this linker hardcodes the directories in LIBPATH if there 10441 # are no directories specified by -L. 10442 hardcode_minus_L=yes 10443 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10444 # Neither direct hardcoding nor static linking is supported with a 10445 # broken collect2. 10446 hardcode_direct=unsupported 10447 fi 10448 ;; 10449 10450 aix[4-9]*) 10451 if test ia64 = "$host_cpu"; then 10452 # On IA64, the linker does run time linking by default, so we don't 10453 # have to do anything special. 10454 aix_use_runtimelinking=no 10455 exp_sym_flag='-Bexport' 10456 no_entry_flag= 10457 else 10458 # If we're using GNU nm, then we don't want the "-C" option. 10459 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10460 # Without the "-l" option, or with the "-B" option, AIX nm treats 10461 # weak defined symbols like other global defined symbols, whereas 10462 # GNU nm marks them as "W". 10463 # While the 'weak' keyword is ignored in the Export File, we need 10464 # it in the Import File for the 'aix-soname' feature, so we have 10465 # to replace the "-B" option with "-P" for AIX nm. 10466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10467 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' 10468 else 10469 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' 10470 fi 10471 aix_use_runtimelinking=no 10472 10473 # Test if we are trying to use run time linking or normal 10474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10475 # have runtime linking enabled, and use it for executables. 10476 # For shared libraries, we enable/disable runtime linking 10477 # depending on the kind of the shared library created - 10478 # when "with_aix_soname,aix_use_runtimelinking" is: 10479 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10480 # "aix,yes" lib.so shared, rtl:yes, for executables 10481 # lib.a static archive 10482 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10483 # lib.a(lib.so.V) shared, rtl:no, for executables 10484 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10485 # lib.a(lib.so.V) shared, rtl:no 10486 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10487 # lib.a static archive 10488 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10489 for ld_flag in $LDFLAGS; do 10490 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10491 aix_use_runtimelinking=yes 10492 break 10493 fi 10494 done 10495 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10496 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10497 # so we don't have lib.a shared libs to link our executables. 10498 # We have to force runtime linking in this case. 10499 aix_use_runtimelinking=yes 10500 LDFLAGS="$LDFLAGS -Wl,-brtl" 10501 fi 10502 ;; 10503 esac 10504 10505 exp_sym_flag='-bexport' 10506 no_entry_flag='-bnoentry' 10507 fi 10508 10509 # When large executables or shared objects are built, AIX ld can 10510 # have problems creating the table of contents. If linking a library 10511 # or program results in "error TOC overflow" add -mminimal-toc to 10512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10514 10515 archive_cmds='' 10516 hardcode_direct=yes 10517 hardcode_direct_absolute=yes 10518 hardcode_libdir_separator=':' 10519 link_all_deplibs=yes 10520 file_list_spec='$wl-f,' 10521 case $with_aix_soname,$aix_use_runtimelinking in 10522 aix,*) ;; # traditional, no import file 10523 svr4,* | *,yes) # use import file 10524 # The Import File defines what to hardcode. 10525 hardcode_direct=no 10526 hardcode_direct_absolute=no 10527 ;; 10528 esac 10529 10530 if test yes = "$GCC"; then 10531 case $host_os in aix4.[012]|aix4.[012].*) 10532 # We only want to do this on AIX 4.2 and lower, the check 10533 # below for broken collect2 doesn't work under 4.3+ 10534 collect2name=`$CC -print-prog-name=collect2` 10535 if test -f "$collect2name" && 10536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10537 then 10538 # We have reworked collect2 10539 : 10540 else 10541 # We have old collect2 10542 hardcode_direct=unsupported 10543 # It fails to find uninstalled libraries when the uninstalled 10544 # path is not listed in the libpath. Setting hardcode_minus_L 10545 # to unsupported forces relinking 10546 hardcode_minus_L=yes 10547 hardcode_libdir_flag_spec='-L$libdir' 10548 hardcode_libdir_separator= 10549 fi 10550 ;; 10551 esac 10552 shared_flag='-shared' 10553 if test yes = "$aix_use_runtimelinking"; then 10554 shared_flag="$shared_flag "'$wl-G' 10555 fi 10556 # Need to ensure runtime linking is disabled for the traditional 10557 # shared library, or the linker may eventually find shared libraries 10558 # /with/ Import File - we do not want to mix them. 10559 shared_flag_aix='-shared' 10560 shared_flag_svr4='-shared $wl-G' 10561 else 10562 # not using gcc 10563 if test ia64 = "$host_cpu"; then 10564 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10565 # chokes on -Wl,-G. The following line is correct: 10566 shared_flag='-G' 10567 else 10568 if test yes = "$aix_use_runtimelinking"; then 10569 shared_flag='$wl-G' 10570 else 10571 shared_flag='$wl-bM:SRE' 10572 fi 10573 shared_flag_aix='$wl-bM:SRE' 10574 shared_flag_svr4='$wl-G' 10575 fi 10576 fi 10577 10578 export_dynamic_flag_spec='$wl-bexpall' 10579 # It seems that -bexpall does not export symbols beginning with 10580 # underscore (_), so it is better to generate a list of symbols to export. 10581 always_export_symbols=yes 10582 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10583 # Warning - without using the other runtime loading flags (-brtl), 10584 # -berok will link without error, but may produce a broken library. 10585 allow_undefined_flag='-berok' 10586 # Determine the default libpath from the value encoded in an 10587 # empty executable. 10588 if test set = "${lt_cv_aix_libpath+set}"; then 10589 aix_libpath=$lt_cv_aix_libpath 10590else 10591 if ${lt_cv_aix_libpath_+:} false; then : 10592 $as_echo_n "(cached) " >&6 10593else 10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595/* end confdefs.h. */ 10596 10597int 10598main () 10599{ 10600 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_link "$LINENO"; then : 10606 10607 lt_aix_libpath_sed=' 10608 /Import File Strings/,/^$/ { 10609 /^0/ { 10610 s/^0 *\([^ ]*\) *$/\1/ 10611 p 10612 } 10613 }' 10614 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10615 # Check for a 64-bit object if we didn't find anything. 10616 if test -z "$lt_cv_aix_libpath_"; then 10617 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10618 fi 10619fi 10620rm -f core conftest.err conftest.$ac_objext \ 10621 conftest$ac_exeext conftest.$ac_ext 10622 if test -z "$lt_cv_aix_libpath_"; then 10623 lt_cv_aix_libpath_=/usr/lib:/lib 10624 fi 10625 10626fi 10627 10628 aix_libpath=$lt_cv_aix_libpath_ 10629fi 10630 10631 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10632 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 10633 else 10634 if test ia64 = "$host_cpu"; then 10635 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10636 allow_undefined_flag="-z nodefs" 10637 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" 10638 else 10639 # Determine the default libpath from the value encoded in an 10640 # empty executable. 10641 if test set = "${lt_cv_aix_libpath+set}"; then 10642 aix_libpath=$lt_cv_aix_libpath 10643else 10644 if ${lt_cv_aix_libpath_+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649 10650int 10651main () 10652{ 10653 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658if ac_fn_c_try_link "$LINENO"; then : 10659 10660 lt_aix_libpath_sed=' 10661 /Import File Strings/,/^$/ { 10662 /^0/ { 10663 s/^0 *\([^ ]*\) *$/\1/ 10664 p 10665 } 10666 }' 10667 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10668 # Check for a 64-bit object if we didn't find anything. 10669 if test -z "$lt_cv_aix_libpath_"; then 10670 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10671 fi 10672fi 10673rm -f core conftest.err conftest.$ac_objext \ 10674 conftest$ac_exeext conftest.$ac_ext 10675 if test -z "$lt_cv_aix_libpath_"; then 10676 lt_cv_aix_libpath_=/usr/lib:/lib 10677 fi 10678 10679fi 10680 10681 aix_libpath=$lt_cv_aix_libpath_ 10682fi 10683 10684 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10685 # Warning - without using the other run time loading flags, 10686 # -berok will link without error, but may produce a broken library. 10687 no_undefined_flag=' $wl-bernotok' 10688 allow_undefined_flag=' $wl-berok' 10689 if test yes = "$with_gnu_ld"; then 10690 # We only use this code for GNU lds that support --whole-archive. 10691 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10692 else 10693 # Exported symbols can be pulled into shared objects from archives 10694 whole_archive_flag_spec='$convenience' 10695 fi 10696 archive_cmds_need_lc=yes 10697 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10698 # -brtl affects multiple linker settings, -berok does not and is overridden later 10699 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10700 if test svr4 != "$with_aix_soname"; then 10701 # This is similar to how AIX traditionally builds its shared libraries. 10702 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' 10703 fi 10704 if test aix != "$with_aix_soname"; then 10705 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' 10706 else 10707 # used by -dlpreopen to get the symbols 10708 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10709 fi 10710 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10711 fi 10712 fi 10713 ;; 10714 10715 amigaos*) 10716 case $host_cpu in 10717 powerpc) 10718 # see comment about AmigaOS4 .so support 10719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10720 archive_expsym_cmds='' 10721 ;; 10722 m68k) 10723 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)' 10724 hardcode_libdir_flag_spec='-L$libdir' 10725 hardcode_minus_L=yes 10726 ;; 10727 esac 10728 ;; 10729 10730 bsdi[45]*) 10731 export_dynamic_flag_spec=-rdynamic 10732 ;; 10733 10734 cygwin* | mingw* | pw32* | cegcc*) 10735 # When not using gcc, we currently assume that we are using 10736 # Microsoft Visual C++. 10737 # hardcode_libdir_flag_spec is actually meaningless, as there is 10738 # no search path for DLLs. 10739 case $cc_basename in 10740 cl*) 10741 # Native MSVC 10742 hardcode_libdir_flag_spec=' ' 10743 allow_undefined_flag=unsupported 10744 always_export_symbols=yes 10745 file_list_spec='@' 10746 # Tell ltmain to make .lib files, not .a files. 10747 libext=lib 10748 # Tell ltmain to make .dll files, not .so files. 10749 shrext_cmds=.dll 10750 # FIXME: Setting linknames here is a bad hack. 10751 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10752 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10753 cp "$export_symbols" "$output_objdir/$soname.def"; 10754 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10755 else 10756 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10757 fi~ 10758 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10759 linknames=' 10760 # The linker will not automatically build a static lib if we build a DLL. 10761 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10762 enable_shared_with_static_runtimes=yes 10763 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10765 # Don't use ranlib 10766 old_postinstall_cmds='chmod 644 $oldlib' 10767 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10768 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10769 case $lt_outputfile in 10770 *.exe|*.EXE) ;; 10771 *) 10772 lt_outputfile=$lt_outputfile.exe 10773 lt_tool_outputfile=$lt_tool_outputfile.exe 10774 ;; 10775 esac~ 10776 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10777 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10778 $RM "$lt_outputfile.manifest"; 10779 fi' 10780 ;; 10781 *) 10782 # Assume MSVC wrapper 10783 hardcode_libdir_flag_spec=' ' 10784 allow_undefined_flag=unsupported 10785 # Tell ltmain to make .lib files, not .a files. 10786 libext=lib 10787 # Tell ltmain to make .dll files, not .so files. 10788 shrext_cmds=.dll 10789 # FIXME: Setting linknames here is a bad hack. 10790 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10791 # The linker will automatically build a .lib file if we build a DLL. 10792 old_archive_from_new_cmds='true' 10793 # FIXME: Should let the user specify the lib program. 10794 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10795 enable_shared_with_static_runtimes=yes 10796 ;; 10797 esac 10798 ;; 10799 10800 darwin* | rhapsody*) 10801 10802 10803 archive_cmds_need_lc=no 10804 hardcode_direct=no 10805 hardcode_automatic=yes 10806 hardcode_shlibpath_var=unsupported 10807 if test yes = "$lt_cv_ld_force_load"; then 10808 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\"`' 10809 10810 else 10811 whole_archive_flag_spec='' 10812 fi 10813 link_all_deplibs=yes 10814 allow_undefined_flag=$_lt_dar_allow_undefined 10815 case $cc_basename in 10816 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10817 *) _lt_dar_can_shared=$GCC ;; 10818 esac 10819 if test yes = "$_lt_dar_can_shared"; then 10820 output_verbose_link_cmd=func_echo_all 10821 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10822 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10823 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" 10824 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" 10825 10826 else 10827 ld_shlibs=no 10828 fi 10829 10830 ;; 10831 10832 dgux*) 10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10834 hardcode_libdir_flag_spec='-L$libdir' 10835 hardcode_shlibpath_var=no 10836 ;; 10837 10838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10839 # support. Future versions do this automatically, but an explicit c++rt0.o 10840 # does not break anything, and helps significantly (at the cost of a little 10841 # extra space). 10842 freebsd2.2*) 10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10844 hardcode_libdir_flag_spec='-R$libdir' 10845 hardcode_direct=yes 10846 hardcode_shlibpath_var=no 10847 ;; 10848 10849 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10850 freebsd2.*) 10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10852 hardcode_direct=yes 10853 hardcode_minus_L=yes 10854 hardcode_shlibpath_var=no 10855 ;; 10856 10857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10858 freebsd* | dragonfly*) 10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10860 hardcode_libdir_flag_spec='-R$libdir' 10861 hardcode_direct=yes 10862 hardcode_shlibpath_var=no 10863 ;; 10864 10865 hpux9*) 10866 if test yes = "$GCC"; then 10867 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' 10868 else 10869 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' 10870 fi 10871 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10872 hardcode_libdir_separator=: 10873 hardcode_direct=yes 10874 10875 # hardcode_minus_L: Not really in the search PATH, 10876 # but as the default location of the library. 10877 hardcode_minus_L=yes 10878 export_dynamic_flag_spec='$wl-E' 10879 ;; 10880 10881 hpux10*) 10882 if test yes,no = "$GCC,$with_gnu_ld"; then 10883 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10884 else 10885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10886 fi 10887 if test no = "$with_gnu_ld"; then 10888 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10889 hardcode_libdir_separator=: 10890 hardcode_direct=yes 10891 hardcode_direct_absolute=yes 10892 export_dynamic_flag_spec='$wl-E' 10893 # hardcode_minus_L: Not really in the search PATH, 10894 # but as the default location of the library. 10895 hardcode_minus_L=yes 10896 fi 10897 ;; 10898 10899 hpux11*) 10900 if test yes,no = "$GCC,$with_gnu_ld"; then 10901 case $host_cpu in 10902 hppa*64*) 10903 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10904 ;; 10905 ia64*) 10906 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10907 ;; 10908 *) 10909 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10910 ;; 10911 esac 10912 else 10913 case $host_cpu in 10914 hppa*64*) 10915 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10916 ;; 10917 ia64*) 10918 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10919 ;; 10920 *) 10921 10922 # Older versions of the 11.00 compiler do not understand -b yet 10923 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10925$as_echo_n "checking if $CC understands -b... " >&6; } 10926if ${lt_cv_prog_compiler__b+:} false; then : 10927 $as_echo_n "(cached) " >&6 10928else 10929 lt_cv_prog_compiler__b=no 10930 save_LDFLAGS=$LDFLAGS 10931 LDFLAGS="$LDFLAGS -b" 10932 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10934 # The linker can only warn and ignore the option if not recognized 10935 # So say no if there are warnings 10936 if test -s conftest.err; then 10937 # Append any errors to the config.log. 10938 cat conftest.err 1>&5 10939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10941 if diff conftest.exp conftest.er2 >/dev/null; then 10942 lt_cv_prog_compiler__b=yes 10943 fi 10944 else 10945 lt_cv_prog_compiler__b=yes 10946 fi 10947 fi 10948 $RM -r conftest* 10949 LDFLAGS=$save_LDFLAGS 10950 10951fi 10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10953$as_echo "$lt_cv_prog_compiler__b" >&6; } 10954 10955if test yes = "$lt_cv_prog_compiler__b"; then 10956 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10957else 10958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10959fi 10960 10961 ;; 10962 esac 10963 fi 10964 if test no = "$with_gnu_ld"; then 10965 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10966 hardcode_libdir_separator=: 10967 10968 case $host_cpu in 10969 hppa*64*|ia64*) 10970 hardcode_direct=no 10971 hardcode_shlibpath_var=no 10972 ;; 10973 *) 10974 hardcode_direct=yes 10975 hardcode_direct_absolute=yes 10976 export_dynamic_flag_spec='$wl-E' 10977 10978 # hardcode_minus_L: Not really in the search PATH, 10979 # but as the default location of the library. 10980 hardcode_minus_L=yes 10981 ;; 10982 esac 10983 fi 10984 ;; 10985 10986 irix5* | irix6* | nonstopux*) 10987 if test yes = "$GCC"; then 10988 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' 10989 # Try to use the -exported_symbol ld option, if it does not 10990 # work, assume that -exports_file does not work either and 10991 # implicitly export all symbols. 10992 # This should be the same for all languages, so no per-tag cache variable. 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10994$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10995if ${lt_cv_irix_exported_symbol+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 save_LDFLAGS=$LDFLAGS 10999 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002int foo (void) { return 0; } 11003_ACEOF 11004if ac_fn_c_try_link "$LINENO"; then : 11005 lt_cv_irix_exported_symbol=yes 11006else 11007 lt_cv_irix_exported_symbol=no 11008fi 11009rm -f core conftest.err conftest.$ac_objext \ 11010 conftest$ac_exeext conftest.$ac_ext 11011 LDFLAGS=$save_LDFLAGS 11012fi 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11014$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11015 if test yes = "$lt_cv_irix_exported_symbol"; then 11016 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' 11017 fi 11018 else 11019 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' 11020 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' 11021 fi 11022 archive_cmds_need_lc='no' 11023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11024 hardcode_libdir_separator=: 11025 inherit_rpath=yes 11026 link_all_deplibs=yes 11027 ;; 11028 11029 linux*) 11030 case $cc_basename in 11031 tcc*) 11032 # Fabrice Bellard et al's Tiny C Compiler 11033 ld_shlibs=yes 11034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11035 ;; 11036 esac 11037 ;; 11038 11039 netbsd*) 11040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11042 else 11043 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11044 fi 11045 hardcode_libdir_flag_spec='-R$libdir' 11046 hardcode_direct=yes 11047 hardcode_shlibpath_var=no 11048 ;; 11049 11050 newsos6) 11051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11052 hardcode_direct=yes 11053 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11054 hardcode_libdir_separator=: 11055 hardcode_shlibpath_var=no 11056 ;; 11057 11058 *nto* | *qnx*) 11059 ;; 11060 11061 openbsd* | bitrig*) 11062 if test -f /usr/libexec/ld.so; then 11063 hardcode_direct=yes 11064 hardcode_shlibpath_var=no 11065 hardcode_direct_absolute=yes 11066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11068 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11069 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11070 export_dynamic_flag_spec='$wl-E' 11071 else 11072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11074 fi 11075 else 11076 ld_shlibs=no 11077 fi 11078 ;; 11079 11080 os2*) 11081 hardcode_libdir_flag_spec='-L$libdir' 11082 hardcode_minus_L=yes 11083 allow_undefined_flag=unsupported 11084 shrext_cmds=.dll 11085 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11086 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11087 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11088 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11089 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11090 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11091 emximp -o $lib $output_objdir/$libname.def' 11092 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11093 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11094 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11095 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11096 prefix_cmds="$SED"~ 11097 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11098 prefix_cmds="$prefix_cmds -e 1d"; 11099 fi~ 11100 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11101 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11103 emximp -o $lib $output_objdir/$libname.def' 11104 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11105 enable_shared_with_static_runtimes=yes 11106 ;; 11107 11108 osf3*) 11109 if test yes = "$GCC"; then 11110 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11111 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' 11112 else 11113 allow_undefined_flag=' -expect_unresolved \*' 11114 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' 11115 fi 11116 archive_cmds_need_lc='no' 11117 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11118 hardcode_libdir_separator=: 11119 ;; 11120 11121 osf4* | osf5*) # as osf3* with the addition of -msym flag 11122 if test yes = "$GCC"; then 11123 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11124 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' 11125 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11126 else 11127 allow_undefined_flag=' -expect_unresolved \*' 11128 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' 11129 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~ 11130 $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' 11131 11132 # Both c and cxx compiler support -rpath directly 11133 hardcode_libdir_flag_spec='-rpath $libdir' 11134 fi 11135 archive_cmds_need_lc='no' 11136 hardcode_libdir_separator=: 11137 ;; 11138 11139 solaris*) 11140 no_undefined_flag=' -z defs' 11141 if test yes = "$GCC"; then 11142 wlarc='$wl' 11143 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11145 $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' 11146 else 11147 case `$CC -V 2>&1` in 11148 *"Compilers 5.0"*) 11149 wlarc='' 11150 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11152 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11153 ;; 11154 *) 11155 wlarc='$wl' 11156 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11158 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11159 ;; 11160 esac 11161 fi 11162 hardcode_libdir_flag_spec='-R$libdir' 11163 hardcode_shlibpath_var=no 11164 case $host_os in 11165 solaris2.[0-5] | solaris2.[0-5].*) ;; 11166 *) 11167 # The compiler driver will combine and reorder linker options, 11168 # but understands '-z linker_flag'. GCC discards it without '$wl', 11169 # but is careful enough not to reorder. 11170 # Supported since Solaris 2.6 (maybe 2.5.1?) 11171 if test yes = "$GCC"; then 11172 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11173 else 11174 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11175 fi 11176 ;; 11177 esac 11178 link_all_deplibs=yes 11179 ;; 11180 11181 sunos4*) 11182 if test sequent = "$host_vendor"; then 11183 # Use $CC to link under sequent, because it throws in some extra .o 11184 # files that make .init and .fini sections work. 11185 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11186 else 11187 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11188 fi 11189 hardcode_libdir_flag_spec='-L$libdir' 11190 hardcode_direct=yes 11191 hardcode_minus_L=yes 11192 hardcode_shlibpath_var=no 11193 ;; 11194 11195 sysv4) 11196 case $host_vendor in 11197 sni) 11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11199 hardcode_direct=yes # is this really true??? 11200 ;; 11201 siemens) 11202 ## LD is ld it makes a PLAMLIB 11203 ## CC just makes a GrossModule. 11204 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11205 reload_cmds='$CC -r -o $output$reload_objs' 11206 hardcode_direct=no 11207 ;; 11208 motorola) 11209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11210 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11211 ;; 11212 esac 11213 runpath_var='LD_RUN_PATH' 11214 hardcode_shlibpath_var=no 11215 ;; 11216 11217 sysv4.3*) 11218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11219 hardcode_shlibpath_var=no 11220 export_dynamic_flag_spec='-Bexport' 11221 ;; 11222 11223 sysv4*MP*) 11224 if test -d /usr/nec; then 11225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11226 hardcode_shlibpath_var=no 11227 runpath_var=LD_RUN_PATH 11228 hardcode_runpath_var=yes 11229 ld_shlibs=yes 11230 fi 11231 ;; 11232 11233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11234 no_undefined_flag='$wl-z,text' 11235 archive_cmds_need_lc=no 11236 hardcode_shlibpath_var=no 11237 runpath_var='LD_RUN_PATH' 11238 11239 if test yes = "$GCC"; then 11240 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11241 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11242 else 11243 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11244 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11245 fi 11246 ;; 11247 11248 sysv5* | sco3.2v5* | sco5v6*) 11249 # Note: We CANNOT use -z defs as we might desire, because we do not 11250 # link with -lc, and that would cause any symbols used from libc to 11251 # always be unresolved, which means just about no library would 11252 # ever link correctly. If we're not using GNU ld we use -z text 11253 # though, which does catch some bad symbols but isn't as heavy-handed 11254 # as -z defs. 11255 no_undefined_flag='$wl-z,text' 11256 allow_undefined_flag='$wl-z,nodefs' 11257 archive_cmds_need_lc=no 11258 hardcode_shlibpath_var=no 11259 hardcode_libdir_flag_spec='$wl-R,$libdir' 11260 hardcode_libdir_separator=':' 11261 link_all_deplibs=yes 11262 export_dynamic_flag_spec='$wl-Bexport' 11263 runpath_var='LD_RUN_PATH' 11264 11265 if test yes = "$GCC"; then 11266 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11267 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11268 else 11269 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11270 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11271 fi 11272 ;; 11273 11274 uts4*) 11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11276 hardcode_libdir_flag_spec='-L$libdir' 11277 hardcode_shlibpath_var=no 11278 ;; 11279 11280 *) 11281 ld_shlibs=no 11282 ;; 11283 esac 11284 11285 if test sni = "$host_vendor"; then 11286 case $host in 11287 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11288 export_dynamic_flag_spec='$wl-Blargedynsym' 11289 ;; 11290 esac 11291 fi 11292 fi 11293 11294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11295$as_echo "$ld_shlibs" >&6; } 11296test no = "$ld_shlibs" && can_build_shared=no 11297 11298with_gnu_ld=$with_gnu_ld 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314# 11315# Do we need to explicitly link libc? 11316# 11317case "x$archive_cmds_need_lc" in 11318x|xyes) 11319 # Assume -lc should be added 11320 archive_cmds_need_lc=yes 11321 11322 if test yes,yes = "$GCC,$enable_shared"; then 11323 case $archive_cmds in 11324 *'~'*) 11325 # FIXME: we may have to deal with multi-command sequences. 11326 ;; 11327 '$CC '*) 11328 # Test whether the compiler implicitly links with -lc since on some 11329 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11330 # to ld, don't add -lc before -lgcc. 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11332$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11333if ${lt_cv_archive_cmds_need_lc+:} false; then : 11334 $as_echo_n "(cached) " >&6 11335else 11336 $RM conftest* 11337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11338 11339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11340 (eval $ac_compile) 2>&5 11341 ac_status=$? 11342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11343 test $ac_status = 0; } 2>conftest.err; then 11344 soname=conftest 11345 lib=conftest 11346 libobjs=conftest.$ac_objext 11347 deplibs= 11348 wl=$lt_prog_compiler_wl 11349 pic_flag=$lt_prog_compiler_pic 11350 compiler_flags=-v 11351 linker_flags=-v 11352 verstring= 11353 output_objdir=. 11354 libname=conftest 11355 lt_save_allow_undefined_flag=$allow_undefined_flag 11356 allow_undefined_flag= 11357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11358 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11359 ac_status=$? 11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11361 test $ac_status = 0; } 11362 then 11363 lt_cv_archive_cmds_need_lc=no 11364 else 11365 lt_cv_archive_cmds_need_lc=yes 11366 fi 11367 allow_undefined_flag=$lt_save_allow_undefined_flag 11368 else 11369 cat conftest.err 1>&5 11370 fi 11371 $RM conftest* 11372 11373fi 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11375$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11376 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11377 ;; 11378 esac 11379 fi 11380 ;; 11381esac 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11535$as_echo_n "checking dynamic linker characteristics... " >&6; } 11536 11537if test yes = "$GCC"; then 11538 case $host_os in 11539 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11540 *) lt_awk_arg='/^libraries:/' ;; 11541 esac 11542 case $host_os in 11543 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11544 *) lt_sed_strip_eq='s|=/|/|g' ;; 11545 esac 11546 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11547 case $lt_search_path_spec in 11548 *\;*) 11549 # if the path contains ";" then we assume it to be the separator 11550 # otherwise default to the standard path separator (i.e. ":") - it is 11551 # assumed that no part of a normal pathname contains ";" but that should 11552 # okay in the real world where ";" in dirpaths is itself problematic. 11553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11554 ;; 11555 *) 11556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11557 ;; 11558 esac 11559 # Ok, now we have the path, separated by spaces, we can step through it 11560 # and add multilib dir if necessary... 11561 lt_tmp_lt_search_path_spec= 11562 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11563 # ...but if some path component already ends with the multilib dir we assume 11564 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11565 case "$lt_multi_os_dir; $lt_search_path_spec " in 11566 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11567 lt_multi_os_dir= 11568 ;; 11569 esac 11570 for lt_sys_path in $lt_search_path_spec; do 11571 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11573 elif test -n "$lt_multi_os_dir"; then 11574 test -d "$lt_sys_path" && \ 11575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11576 fi 11577 done 11578 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11579BEGIN {RS = " "; FS = "/|\n";} { 11580 lt_foo = ""; 11581 lt_count = 0; 11582 for (lt_i = NF; lt_i > 0; lt_i--) { 11583 if ($lt_i != "" && $lt_i != ".") { 11584 if ($lt_i == "..") { 11585 lt_count++; 11586 } else { 11587 if (lt_count == 0) { 11588 lt_foo = "/" $lt_i lt_foo; 11589 } else { 11590 lt_count--; 11591 } 11592 } 11593 } 11594 } 11595 if (lt_foo != "") { lt_freq[lt_foo]++; } 11596 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11597}'` 11598 # AWK program above erroneously prepends '/' to C:/dos/paths 11599 # for these hosts. 11600 case $host_os in 11601 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11602 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11603 esac 11604 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11605else 11606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11607fi 11608library_names_spec= 11609libname_spec='lib$name' 11610soname_spec= 11611shrext_cmds=.so 11612postinstall_cmds= 11613postuninstall_cmds= 11614finish_cmds= 11615finish_eval= 11616shlibpath_var= 11617shlibpath_overrides_runpath=unknown 11618version_type=none 11619dynamic_linker="$host_os ld.so" 11620sys_lib_dlsearch_path_spec="/lib /usr/lib" 11621need_lib_prefix=unknown 11622hardcode_into_libs=no 11623 11624# when you set need_version to no, make sure it does not cause -set_version 11625# flags to be left without arguments 11626need_version=unknown 11627 11628 11629 11630case $host_os in 11631aix3*) 11632 version_type=linux # correct to gnu/linux during the next big refactor 11633 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11634 shlibpath_var=LIBPATH 11635 11636 # AIX 3 has no versioning support, so we append a major version to the name. 11637 soname_spec='$libname$release$shared_ext$major' 11638 ;; 11639 11640aix[4-9]*) 11641 version_type=linux # correct to gnu/linux during the next big refactor 11642 need_lib_prefix=no 11643 need_version=no 11644 hardcode_into_libs=yes 11645 if test ia64 = "$host_cpu"; then 11646 # AIX 5 supports IA64 11647 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 else 11650 # With GCC up to 2.95.x, collect2 would create an import file 11651 # for dependence libraries. The import file would start with 11652 # the line '#! .'. This would cause the generated library to 11653 # depend on '.', always an invalid library. This was fixed in 11654 # development snapshots of GCC prior to 3.0. 11655 case $host_os in 11656 aix4 | aix4.[01] | aix4.[01].*) 11657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11658 echo ' yes ' 11659 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11660 : 11661 else 11662 can_build_shared=no 11663 fi 11664 ;; 11665 esac 11666 # Using Import Files as archive members, it is possible to support 11667 # filename-based versioning of shared library archives on AIX. While 11668 # this would work for both with and without runtime linking, it will 11669 # prevent static linking of such archives. So we do filename-based 11670 # shared library versioning with .so extension only, which is used 11671 # when both runtime linking and shared linking is enabled. 11672 # Unfortunately, runtime linking may impact performance, so we do 11673 # not want this to be the default eventually. Also, we use the 11674 # versioned .so libs for executables only if there is the -brtl 11675 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11676 # To allow for filename-based versioning support, we need to create 11677 # libNAME.so.V as an archive file, containing: 11678 # *) an Import File, referring to the versioned filename of the 11679 # archive as well as the shared archive member, telling the 11680 # bitwidth (32 or 64) of that shared object, and providing the 11681 # list of exported symbols of that shared object, eventually 11682 # decorated with the 'weak' keyword 11683 # *) the shared object with the F_LOADONLY flag set, to really avoid 11684 # it being seen by the linker. 11685 # At run time we better use the real file rather than another symlink, 11686 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11687 11688 case $with_aix_soname,$aix_use_runtimelinking in 11689 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11690 # soname into executable. Probably we can add versioning support to 11691 # collect2, so additional links can be useful in future. 11692 aix,yes) # traditional libtool 11693 dynamic_linker='AIX unversionable lib.so' 11694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11695 # instead of lib<name>.a to let people know that these are not 11696 # typical AIX shared libraries. 11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11698 ;; 11699 aix,no) # traditional AIX only 11700 dynamic_linker='AIX lib.a(lib.so.V)' 11701 # We preserve .a as extension for shared libraries through AIX4.2 11702 # and later when we are not doing run time linking. 11703 library_names_spec='$libname$release.a $libname.a' 11704 soname_spec='$libname$release$shared_ext$major' 11705 ;; 11706 svr4,*) # full svr4 only 11707 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11708 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11709 # We do not specify a path in Import Files, so LIBPATH fires. 11710 shlibpath_overrides_runpath=yes 11711 ;; 11712 *,yes) # both, prefer svr4 11713 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11714 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11715 # unpreferred sharedlib libNAME.a needs extra handling 11716 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"' 11717 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"' 11718 # We do not specify a path in Import Files, so LIBPATH fires. 11719 shlibpath_overrides_runpath=yes 11720 ;; 11721 *,no) # both, prefer aix 11722 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11723 library_names_spec='$libname$release.a $libname.a' 11724 soname_spec='$libname$release$shared_ext$major' 11725 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11726 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)' 11727 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"' 11728 ;; 11729 esac 11730 shlibpath_var=LIBPATH 11731 fi 11732 ;; 11733 11734amigaos*) 11735 case $host_cpu in 11736 powerpc) 11737 # Since July 2007 AmigaOS4 officially supports .so libraries. 11738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11740 ;; 11741 m68k) 11742 library_names_spec='$libname.ixlibrary $libname.a' 11743 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11744 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' 11745 ;; 11746 esac 11747 ;; 11748 11749beos*) 11750 library_names_spec='$libname$shared_ext' 11751 dynamic_linker="$host_os ld.so" 11752 shlibpath_var=LIBRARY_PATH 11753 ;; 11754 11755bsdi[45]*) 11756 version_type=linux # correct to gnu/linux during the next big refactor 11757 need_version=no 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11761 shlibpath_var=LD_LIBRARY_PATH 11762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11764 # the default ld.so.conf also contains /usr/contrib/lib and 11765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11766 # libtool to hard-code these into programs 11767 ;; 11768 11769cygwin* | mingw* | pw32* | cegcc*) 11770 version_type=windows 11771 shrext_cmds=.dll 11772 need_version=no 11773 need_lib_prefix=no 11774 11775 case $GCC,$cc_basename in 11776 yes,*) 11777 # gcc 11778 library_names_spec='$libname.dll.a' 11779 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11780 postinstall_cmds='base_file=`basename \$file`~ 11781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11782 dldir=$destdir/`dirname \$dlpath`~ 11783 test -d \$dldir || mkdir -p \$dldir~ 11784 $install_prog $dir/$dlname \$dldir/$dlname~ 11785 chmod a+x \$dldir/$dlname~ 11786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11788 fi' 11789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11790 dlpath=$dir/\$dldll~ 11791 $RM \$dlpath' 11792 shlibpath_overrides_runpath=yes 11793 11794 case $host_os in 11795 cygwin*) 11796 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11797 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11798 11799 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11800 ;; 11801 mingw* | cegcc*) 11802 # MinGW DLLs use traditional 'lib' prefix 11803 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11804 ;; 11805 pw32*) 11806 # pw32 DLLs use 'pw' prefix rather than 'lib' 11807 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11808 ;; 11809 esac 11810 dynamic_linker='Win32 ld.exe' 11811 ;; 11812 11813 *,cl*) 11814 # Native MSVC 11815 libname_spec='$name' 11816 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11817 library_names_spec='$libname.dll.lib' 11818 11819 case $build_os in 11820 mingw*) 11821 sys_lib_search_path_spec= 11822 lt_save_ifs=$IFS 11823 IFS=';' 11824 for lt_path in $LIB 11825 do 11826 IFS=$lt_save_ifs 11827 # Let DOS variable expansion print the short 8.3 style file name. 11828 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11829 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11830 done 11831 IFS=$lt_save_ifs 11832 # Convert to MSYS style. 11833 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11834 ;; 11835 cygwin*) 11836 # Convert to unix form, then to dos form, then back to unix form 11837 # but this time dos style (no spaces!) so that the unix form looks 11838 # like /cygdrive/c/PROGRA~1:/cygdr... 11839 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11840 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11841 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11842 ;; 11843 *) 11844 sys_lib_search_path_spec=$LIB 11845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11846 # It is most probably a Windows format PATH. 11847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11848 else 11849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11850 fi 11851 # FIXME: find the short name or the path components, as spaces are 11852 # common. (e.g. "Program Files" -> "PROGRA~1") 11853 ;; 11854 esac 11855 11856 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11857 postinstall_cmds='base_file=`basename \$file`~ 11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11859 dldir=$destdir/`dirname \$dlpath`~ 11860 test -d \$dldir || mkdir -p \$dldir~ 11861 $install_prog $dir/$dlname \$dldir/$dlname' 11862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11863 dlpath=$dir/\$dldll~ 11864 $RM \$dlpath' 11865 shlibpath_overrides_runpath=yes 11866 dynamic_linker='Win32 link.exe' 11867 ;; 11868 11869 *) 11870 # Assume MSVC wrapper 11871 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11872 dynamic_linker='Win32 ld.exe' 11873 ;; 11874 esac 11875 # FIXME: first we should search . and the directory the executable is in 11876 shlibpath_var=PATH 11877 ;; 11878 11879darwin* | rhapsody*) 11880 dynamic_linker="$host_os dyld" 11881 version_type=darwin 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11885 soname_spec='$libname$release$major$shared_ext' 11886 shlibpath_overrides_runpath=yes 11887 shlibpath_var=DYLD_LIBRARY_PATH 11888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11889 11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11892 ;; 11893 11894dgux*) 11895 version_type=linux # correct to gnu/linux during the next big refactor 11896 need_lib_prefix=no 11897 need_version=no 11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11899 soname_spec='$libname$release$shared_ext$major' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 ;; 11902 11903freebsd* | dragonfly*) 11904 # DragonFly does not have aout. When/if they implement a new 11905 # versioning mechanism, adjust this. 11906 if test -x /usr/bin/objformat; then 11907 objformat=`/usr/bin/objformat` 11908 else 11909 case $host_os in 11910 freebsd[23].*) objformat=aout ;; 11911 *) objformat=elf ;; 11912 esac 11913 fi 11914 version_type=freebsd-$objformat 11915 case $version_type in 11916 freebsd-elf*) 11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11918 soname_spec='$libname$release$shared_ext$major' 11919 need_version=no 11920 need_lib_prefix=no 11921 ;; 11922 freebsd-*) 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11924 need_version=yes 11925 ;; 11926 esac 11927 shlibpath_var=LD_LIBRARY_PATH 11928 case $host_os in 11929 freebsd2.*) 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 freebsd3.[01]* | freebsdelf3.[01]*) 11933 shlibpath_overrides_runpath=yes 11934 hardcode_into_libs=yes 11935 ;; 11936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11938 shlibpath_overrides_runpath=no 11939 hardcode_into_libs=yes 11940 ;; 11941 *) # from 4.6 on, and DragonFly 11942 shlibpath_overrides_runpath=yes 11943 hardcode_into_libs=yes 11944 ;; 11945 esac 11946 ;; 11947 11948haiku*) 11949 version_type=linux # correct to gnu/linux during the next big refactor 11950 need_lib_prefix=no 11951 need_version=no 11952 dynamic_linker="$host_os runtime_loader" 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11954 soname_spec='$libname$release$shared_ext$major' 11955 shlibpath_var=LIBRARY_PATH 11956 shlibpath_overrides_runpath=no 11957 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11958 hardcode_into_libs=yes 11959 ;; 11960 11961hpux9* | hpux10* | hpux11*) 11962 # Give a soname corresponding to the major version so that dld.sl refuses to 11963 # link against other versions. 11964 version_type=sunos 11965 need_lib_prefix=no 11966 need_version=no 11967 case $host_cpu in 11968 ia64*) 11969 shrext_cmds='.so' 11970 hardcode_into_libs=yes 11971 dynamic_linker="$host_os dld.so" 11972 shlibpath_var=LD_LIBRARY_PATH 11973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test 32 = "$HPUX_IA64_MODE"; then 11977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11978 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11979 else 11980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11981 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11982 fi 11983 ;; 11984 hppa*64*) 11985 shrext_cmds='.sl' 11986 hardcode_into_libs=yes 11987 dynamic_linker="$host_os dld.sl" 11988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11994 ;; 11995 *) 11996 shrext_cmds='.sl' 11997 dynamic_linker="$host_os dld.sl" 11998 shlibpath_var=SHLIB_PATH 11999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12001 soname_spec='$libname$release$shared_ext$major' 12002 ;; 12003 esac 12004 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12005 postinstall_cmds='chmod 555 $lib' 12006 # or fails outright, so override atomically: 12007 install_override_mode=555 12008 ;; 12009 12010interix[3-9]*) 12011 version_type=linux # correct to gnu/linux during the next big refactor 12012 need_lib_prefix=no 12013 need_version=no 12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12015 soname_spec='$libname$release$shared_ext$major' 12016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12017 shlibpath_var=LD_LIBRARY_PATH 12018 shlibpath_overrides_runpath=no 12019 hardcode_into_libs=yes 12020 ;; 12021 12022irix5* | irix6* | nonstopux*) 12023 case $host_os in 12024 nonstopux*) version_type=nonstopux ;; 12025 *) 12026 if test yes = "$lt_cv_prog_gnu_ld"; then 12027 version_type=linux # correct to gnu/linux during the next big refactor 12028 else 12029 version_type=irix 12030 fi ;; 12031 esac 12032 need_lib_prefix=no 12033 need_version=no 12034 soname_spec='$libname$release$shared_ext$major' 12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12036 case $host_os in 12037 irix5* | nonstopux*) 12038 libsuff= shlibsuff= 12039 ;; 12040 *) 12041 case $LD in # libtool.m4 will add one of these switches to LD 12042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12043 libsuff= shlibsuff= libmagic=32-bit;; 12044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12045 libsuff=32 shlibsuff=N32 libmagic=N32;; 12046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12047 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12048 *) libsuff= shlibsuff= libmagic=never-match;; 12049 esac 12050 ;; 12051 esac 12052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12053 shlibpath_overrides_runpath=no 12054 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12055 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12056 hardcode_into_libs=yes 12057 ;; 12058 12059# No shared lib support for Linux oldld, aout, or coff. 12060linux*oldld* | linux*aout* | linux*coff*) 12061 dynamic_linker=no 12062 ;; 12063 12064linux*android*) 12065 version_type=none # Android doesn't support versioned libraries. 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext' 12069 soname_spec='$libname$release$shared_ext' 12070 finish_cmds= 12071 shlibpath_var=LD_LIBRARY_PATH 12072 shlibpath_overrides_runpath=yes 12073 12074 # This implies no fast_install, which is unacceptable. 12075 # Some rework will be needed to allow for fast_install 12076 # before this can be enabled. 12077 hardcode_into_libs=yes 12078 12079 dynamic_linker='Android linker' 12080 # Don't embed -rpath directories since the linker doesn't support them. 12081 hardcode_libdir_flag_spec='-L$libdir' 12082 ;; 12083 12084# This must be glibc/ELF. 12085linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12086 version_type=linux # correct to gnu/linux during the next big refactor 12087 need_lib_prefix=no 12088 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12092 shlibpath_var=LD_LIBRARY_PATH 12093 shlibpath_overrides_runpath=no 12094 12095 # Some binutils ld are patched to set DT_RUNPATH 12096 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 lt_cv_shlibpath_overrides_runpath=no 12100 save_LDFLAGS=$LDFLAGS 12101 save_libdir=$libdir 12102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12105/* end confdefs.h. */ 12106 12107int 12108main () 12109{ 12110 12111 ; 12112 return 0; 12113} 12114_ACEOF 12115if ac_fn_c_try_link "$LINENO"; then : 12116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12117 lt_cv_shlibpath_overrides_runpath=yes 12118fi 12119fi 12120rm -f core conftest.err conftest.$ac_objext \ 12121 conftest$ac_exeext conftest.$ac_ext 12122 LDFLAGS=$save_LDFLAGS 12123 libdir=$save_libdir 12124 12125fi 12126 12127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12128 12129 # This implies no fast_install, which is unacceptable. 12130 # Some rework will be needed to allow for fast_install 12131 # before this can be enabled. 12132 hardcode_into_libs=yes 12133 12134 # Ideally, we could use ldconfig to report *all* directores which are 12135 # searched for libraries, however this is still not possible. Aside from not 12136 # being certain /sbin/ldconfig is available, command 12137 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12138 # even though it is searched at run-time. Try to do the best guess by 12139 # appending ld.so.conf contents (and includes) to the search path. 12140 if test -f /etc/ld.so.conf; then 12141 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' ' '` 12142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12143 fi 12144 12145 # We used to test for /lib/ld.so.1 and disable shared libraries on 12146 # powerpc, because MkLinux only supported shared libraries with the 12147 # GNU dynamic linker. Since this was broken with cross compilers, 12148 # most powerpc-linux boxes support dynamic linking these days and 12149 # people can always --disable-shared, the test was removed, and we 12150 # assume the GNU/Linux dynamic linker is in use. 12151 dynamic_linker='GNU/Linux ld.so' 12152 ;; 12153 12154netbsd*) 12155 version_type=sunos 12156 need_lib_prefix=no 12157 need_version=no 12158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12159 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12161 dynamic_linker='NetBSD (a.out) ld.so' 12162 else 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12164 soname_spec='$libname$release$shared_ext$major' 12165 dynamic_linker='NetBSD ld.elf_so' 12166 fi 12167 shlibpath_var=LD_LIBRARY_PATH 12168 shlibpath_overrides_runpath=yes 12169 hardcode_into_libs=yes 12170 ;; 12171 12172newsos6) 12173 version_type=linux # correct to gnu/linux during the next big refactor 12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12175 shlibpath_var=LD_LIBRARY_PATH 12176 shlibpath_overrides_runpath=yes 12177 ;; 12178 12179*nto* | *qnx*) 12180 version_type=qnx 12181 need_lib_prefix=no 12182 need_version=no 12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12184 soname_spec='$libname$release$shared_ext$major' 12185 shlibpath_var=LD_LIBRARY_PATH 12186 shlibpath_overrides_runpath=no 12187 hardcode_into_libs=yes 12188 dynamic_linker='ldqnx.so' 12189 ;; 12190 12191openbsd* | bitrig*) 12192 version_type=sunos 12193 sys_lib_dlsearch_path_spec=/usr/lib 12194 need_lib_prefix=no 12195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12196 need_version=no 12197 else 12198 need_version=yes 12199 fi 12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=yes 12204 ;; 12205 12206os2*) 12207 libname_spec='$name' 12208 version_type=windows 12209 shrext_cmds=.dll 12210 need_version=no 12211 need_lib_prefix=no 12212 # OS/2 can only load a DLL with a base name of 8 characters or less. 12213 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12214 v=$($ECHO $release$versuffix | tr -d .-); 12215 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12216 $ECHO $n$v`$shared_ext' 12217 library_names_spec='${libname}_dll.$libext' 12218 dynamic_linker='OS/2 ld.exe' 12219 shlibpath_var=BEGINLIBPATH 12220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12222 postinstall_cmds='base_file=`basename \$file`~ 12223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12224 dldir=$destdir/`dirname \$dlpath`~ 12225 test -d \$dldir || mkdir -p \$dldir~ 12226 $install_prog $dir/$dlname \$dldir/$dlname~ 12227 chmod a+x \$dldir/$dlname~ 12228 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12229 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12230 fi' 12231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12232 dlpath=$dir/\$dldll~ 12233 $RM \$dlpath' 12234 ;; 12235 12236osf3* | osf4* | osf5*) 12237 version_type=osf 12238 need_lib_prefix=no 12239 need_version=no 12240 soname_spec='$libname$release$shared_ext$major' 12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12242 shlibpath_var=LD_LIBRARY_PATH 12243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12245 ;; 12246 12247rdos*) 12248 dynamic_linker=no 12249 ;; 12250 12251solaris*) 12252 version_type=linux # correct to gnu/linux during the next big refactor 12253 need_lib_prefix=no 12254 need_version=no 12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12256 soname_spec='$libname$release$shared_ext$major' 12257 shlibpath_var=LD_LIBRARY_PATH 12258 shlibpath_overrides_runpath=yes 12259 hardcode_into_libs=yes 12260 # ldd complains unless libraries are executable 12261 postinstall_cmds='chmod +x $lib' 12262 ;; 12263 12264sunos4*) 12265 version_type=sunos 12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12268 shlibpath_var=LD_LIBRARY_PATH 12269 shlibpath_overrides_runpath=yes 12270 if test yes = "$with_gnu_ld"; then 12271 need_lib_prefix=no 12272 fi 12273 need_version=yes 12274 ;; 12275 12276sysv4 | sysv4.3*) 12277 version_type=linux # correct to gnu/linux during the next big refactor 12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12279 soname_spec='$libname$release$shared_ext$major' 12280 shlibpath_var=LD_LIBRARY_PATH 12281 case $host_vendor in 12282 sni) 12283 shlibpath_overrides_runpath=no 12284 need_lib_prefix=no 12285 runpath_var=LD_RUN_PATH 12286 ;; 12287 siemens) 12288 need_lib_prefix=no 12289 ;; 12290 motorola) 12291 need_lib_prefix=no 12292 need_version=no 12293 shlibpath_overrides_runpath=no 12294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12295 ;; 12296 esac 12297 ;; 12298 12299sysv4*MP*) 12300 if test -d /usr/nec; then 12301 version_type=linux # correct to gnu/linux during the next big refactor 12302 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12303 soname_spec='$libname$shared_ext.$major' 12304 shlibpath_var=LD_LIBRARY_PATH 12305 fi 12306 ;; 12307 12308sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12309 version_type=sco 12310 need_lib_prefix=no 12311 need_version=no 12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12313 soname_spec='$libname$release$shared_ext$major' 12314 shlibpath_var=LD_LIBRARY_PATH 12315 shlibpath_overrides_runpath=yes 12316 hardcode_into_libs=yes 12317 if test yes = "$with_gnu_ld"; then 12318 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12319 else 12320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12321 case $host_os in 12322 sco3.2v5*) 12323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12324 ;; 12325 esac 12326 fi 12327 sys_lib_dlsearch_path_spec='/usr/lib' 12328 ;; 12329 12330tpf*) 12331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12332 version_type=linux # correct to gnu/linux during the next big refactor 12333 need_lib_prefix=no 12334 need_version=no 12335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12336 shlibpath_var=LD_LIBRARY_PATH 12337 shlibpath_overrides_runpath=no 12338 hardcode_into_libs=yes 12339 ;; 12340 12341uts4*) 12342 version_type=linux # correct to gnu/linux during the next big refactor 12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12344 soname_spec='$libname$release$shared_ext$major' 12345 shlibpath_var=LD_LIBRARY_PATH 12346 ;; 12347 12348*) 12349 dynamic_linker=no 12350 ;; 12351esac 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12353$as_echo "$dynamic_linker" >&6; } 12354test no = "$dynamic_linker" && can_build_shared=no 12355 12356variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12357if test yes = "$GCC"; then 12358 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12359fi 12360 12361if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12362 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12363fi 12364 12365if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12366 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12367fi 12368 12369# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12370configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12371 12372# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12373func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12374 12375# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12376configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12475$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12476hardcode_action= 12477if test -n "$hardcode_libdir_flag_spec" || 12478 test -n "$runpath_var" || 12479 test yes = "$hardcode_automatic"; then 12480 12481 # We can hardcode non-existent directories. 12482 if test no != "$hardcode_direct" && 12483 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12484 # have to relink, otherwise we might link with an installed library 12485 # when we should be linking with a yet-to-be-installed one 12486 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12487 test no != "$hardcode_minus_L"; then 12488 # Linking always hardcodes the temporary library directory. 12489 hardcode_action=relink 12490 else 12491 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12492 hardcode_action=immediate 12493 fi 12494else 12495 # We cannot hardcode anything, or else we can only hardcode existing 12496 # directories. 12497 hardcode_action=unsupported 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12500$as_echo "$hardcode_action" >&6; } 12501 12502if test relink = "$hardcode_action" || 12503 test yes = "$inherit_rpath"; then 12504 # Fast installation is not supported 12505 enable_fast_install=no 12506elif test yes = "$shlibpath_overrides_runpath" || 12507 test no = "$enable_shared"; then 12508 # Fast installation is not necessary 12509 enable_fast_install=needless 12510fi 12511 12512 12513 12514 12515 12516 12517 if test yes != "$enable_dlopen"; then 12518 enable_dlopen=unknown 12519 enable_dlopen_self=unknown 12520 enable_dlopen_self_static=unknown 12521else 12522 lt_cv_dlopen=no 12523 lt_cv_dlopen_libs= 12524 12525 case $host_os in 12526 beos*) 12527 lt_cv_dlopen=load_add_on 12528 lt_cv_dlopen_libs= 12529 lt_cv_dlopen_self=yes 12530 ;; 12531 12532 mingw* | pw32* | cegcc*) 12533 lt_cv_dlopen=LoadLibrary 12534 lt_cv_dlopen_libs= 12535 ;; 12536 12537 cygwin*) 12538 lt_cv_dlopen=dlopen 12539 lt_cv_dlopen_libs= 12540 ;; 12541 12542 darwin*) 12543 # if libdl is installed we need to link against it 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12545$as_echo_n "checking for dlopen in -ldl... " >&6; } 12546if ${ac_cv_lib_dl_dlopen+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 ac_check_lib_save_LIBS=$LIBS 12550LIBS="-ldl $LIBS" 12551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553 12554/* Override any GCC internal prototype to avoid an error. 12555 Use char because int might match the return type of a GCC 12556 builtin and then its argument prototype would still apply. */ 12557#ifdef __cplusplus 12558extern "C" 12559#endif 12560char dlopen (); 12561int 12562main () 12563{ 12564return dlopen (); 12565 ; 12566 return 0; 12567} 12568_ACEOF 12569if ac_fn_c_try_link "$LINENO"; then : 12570 ac_cv_lib_dl_dlopen=yes 12571else 12572 ac_cv_lib_dl_dlopen=no 12573fi 12574rm -f core conftest.err conftest.$ac_objext \ 12575 conftest$ac_exeext conftest.$ac_ext 12576LIBS=$ac_check_lib_save_LIBS 12577fi 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12579$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12580if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12582else 12583 12584 lt_cv_dlopen=dyld 12585 lt_cv_dlopen_libs= 12586 lt_cv_dlopen_self=yes 12587 12588fi 12589 12590 ;; 12591 12592 tpf*) 12593 # Don't try to run any link tests for TPF. We know it's impossible 12594 # because TPF is a cross-compiler, and we know how we open DSOs. 12595 lt_cv_dlopen=dlopen 12596 lt_cv_dlopen_libs= 12597 lt_cv_dlopen_self=no 12598 ;; 12599 12600 *) 12601 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12602if test "x$ac_cv_func_shl_load" = xyes; then : 12603 lt_cv_dlopen=shl_load 12604else 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12606$as_echo_n "checking for shl_load in -ldld... " >&6; } 12607if ${ac_cv_lib_dld_shl_load+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609else 12610 ac_check_lib_save_LIBS=$LIBS 12611LIBS="-ldld $LIBS" 12612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12613/* end confdefs.h. */ 12614 12615/* Override any GCC internal prototype to avoid an error. 12616 Use char because int might match the return type of a GCC 12617 builtin and then its argument prototype would still apply. */ 12618#ifdef __cplusplus 12619extern "C" 12620#endif 12621char shl_load (); 12622int 12623main () 12624{ 12625return shl_load (); 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630if ac_fn_c_try_link "$LINENO"; then : 12631 ac_cv_lib_dld_shl_load=yes 12632else 12633 ac_cv_lib_dld_shl_load=no 12634fi 12635rm -f core conftest.err conftest.$ac_objext \ 12636 conftest$ac_exeext conftest.$ac_ext 12637LIBS=$ac_check_lib_save_LIBS 12638fi 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12640$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12641if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12642 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12643else 12644 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12645if test "x$ac_cv_func_dlopen" = xyes; then : 12646 lt_cv_dlopen=dlopen 12647else 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12649$as_echo_n "checking for dlopen in -ldl... " >&6; } 12650if ${ac_cv_lib_dl_dlopen+:} false; then : 12651 $as_echo_n "(cached) " >&6 12652else 12653 ac_check_lib_save_LIBS=$LIBS 12654LIBS="-ldl $LIBS" 12655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656/* end confdefs.h. */ 12657 12658/* Override any GCC internal prototype to avoid an error. 12659 Use char because int might match the return type of a GCC 12660 builtin and then its argument prototype would still apply. */ 12661#ifdef __cplusplus 12662extern "C" 12663#endif 12664char dlopen (); 12665int 12666main () 12667{ 12668return dlopen (); 12669 ; 12670 return 0; 12671} 12672_ACEOF 12673if ac_fn_c_try_link "$LINENO"; then : 12674 ac_cv_lib_dl_dlopen=yes 12675else 12676 ac_cv_lib_dl_dlopen=no 12677fi 12678rm -f core conftest.err conftest.$ac_objext \ 12679 conftest$ac_exeext conftest.$ac_ext 12680LIBS=$ac_check_lib_save_LIBS 12681fi 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12683$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12684if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12685 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12686else 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12688$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12689if ${ac_cv_lib_svld_dlopen+:} false; then : 12690 $as_echo_n "(cached) " >&6 12691else 12692 ac_check_lib_save_LIBS=$LIBS 12693LIBS="-lsvld $LIBS" 12694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12695/* end confdefs.h. */ 12696 12697/* Override any GCC internal prototype to avoid an error. 12698 Use char because int might match the return type of a GCC 12699 builtin and then its argument prototype would still apply. */ 12700#ifdef __cplusplus 12701extern "C" 12702#endif 12703char dlopen (); 12704int 12705main () 12706{ 12707return dlopen (); 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712if ac_fn_c_try_link "$LINENO"; then : 12713 ac_cv_lib_svld_dlopen=yes 12714else 12715 ac_cv_lib_svld_dlopen=no 12716fi 12717rm -f core conftest.err conftest.$ac_objext \ 12718 conftest$ac_exeext conftest.$ac_ext 12719LIBS=$ac_check_lib_save_LIBS 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12722$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12723if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12724 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12725else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12727$as_echo_n "checking for dld_link in -ldld... " >&6; } 12728if ${ac_cv_lib_dld_dld_link+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 ac_check_lib_save_LIBS=$LIBS 12732LIBS="-ldld $LIBS" 12733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12734/* end confdefs.h. */ 12735 12736/* Override any GCC internal prototype to avoid an error. 12737 Use char because int might match the return type of a GCC 12738 builtin and then its argument prototype would still apply. */ 12739#ifdef __cplusplus 12740extern "C" 12741#endif 12742char dld_link (); 12743int 12744main () 12745{ 12746return dld_link (); 12747 ; 12748 return 0; 12749} 12750_ACEOF 12751if ac_fn_c_try_link "$LINENO"; then : 12752 ac_cv_lib_dld_dld_link=yes 12753else 12754 ac_cv_lib_dld_dld_link=no 12755fi 12756rm -f core conftest.err conftest.$ac_objext \ 12757 conftest$ac_exeext conftest.$ac_ext 12758LIBS=$ac_check_lib_save_LIBS 12759fi 12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12761$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12762if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12763 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12764fi 12765 12766 12767fi 12768 12769 12770fi 12771 12772 12773fi 12774 12775 12776fi 12777 12778 12779fi 12780 12781 ;; 12782 esac 12783 12784 if test no = "$lt_cv_dlopen"; then 12785 enable_dlopen=no 12786 else 12787 enable_dlopen=yes 12788 fi 12789 12790 case $lt_cv_dlopen in 12791 dlopen) 12792 save_CPPFLAGS=$CPPFLAGS 12793 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12794 12795 save_LDFLAGS=$LDFLAGS 12796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12797 12798 save_LIBS=$LIBS 12799 LIBS="$lt_cv_dlopen_libs $LIBS" 12800 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12802$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12803if ${lt_cv_dlopen_self+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 if test yes = "$cross_compiling"; then : 12807 lt_cv_dlopen_self=cross 12808else 12809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12810 lt_status=$lt_dlunknown 12811 cat > conftest.$ac_ext <<_LT_EOF 12812#line $LINENO "configure" 12813#include "confdefs.h" 12814 12815#if HAVE_DLFCN_H 12816#include <dlfcn.h> 12817#endif 12818 12819#include <stdio.h> 12820 12821#ifdef RTLD_GLOBAL 12822# define LT_DLGLOBAL RTLD_GLOBAL 12823#else 12824# ifdef DL_GLOBAL 12825# define LT_DLGLOBAL DL_GLOBAL 12826# else 12827# define LT_DLGLOBAL 0 12828# endif 12829#endif 12830 12831/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12832 find out it does not work in some platform. */ 12833#ifndef LT_DLLAZY_OR_NOW 12834# ifdef RTLD_LAZY 12835# define LT_DLLAZY_OR_NOW RTLD_LAZY 12836# else 12837# ifdef DL_LAZY 12838# define LT_DLLAZY_OR_NOW DL_LAZY 12839# else 12840# ifdef RTLD_NOW 12841# define LT_DLLAZY_OR_NOW RTLD_NOW 12842# else 12843# ifdef DL_NOW 12844# define LT_DLLAZY_OR_NOW DL_NOW 12845# else 12846# define LT_DLLAZY_OR_NOW 0 12847# endif 12848# endif 12849# endif 12850# endif 12851#endif 12852 12853/* When -fvisibility=hidden is used, assume the code has been annotated 12854 correspondingly for the symbols needed. */ 12855#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12856int fnord () __attribute__((visibility("default"))); 12857#endif 12858 12859int fnord () { return 42; } 12860int main () 12861{ 12862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12863 int status = $lt_dlunknown; 12864 12865 if (self) 12866 { 12867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12868 else 12869 { 12870 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12871 else puts (dlerror ()); 12872 } 12873 /* dlclose (self); */ 12874 } 12875 else 12876 puts (dlerror ()); 12877 12878 return status; 12879} 12880_LT_EOF 12881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12882 (eval $ac_link) 2>&5 12883 ac_status=$? 12884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12885 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12886 (./conftest; exit; ) >&5 2>/dev/null 12887 lt_status=$? 12888 case x$lt_status in 12889 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12890 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12891 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12892 esac 12893 else : 12894 # compilation failed 12895 lt_cv_dlopen_self=no 12896 fi 12897fi 12898rm -fr conftest* 12899 12900 12901fi 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12903$as_echo "$lt_cv_dlopen_self" >&6; } 12904 12905 if test yes = "$lt_cv_dlopen_self"; then 12906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12908$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12909if ${lt_cv_dlopen_self_static+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911else 12912 if test yes = "$cross_compiling"; then : 12913 lt_cv_dlopen_self_static=cross 12914else 12915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12916 lt_status=$lt_dlunknown 12917 cat > conftest.$ac_ext <<_LT_EOF 12918#line $LINENO "configure" 12919#include "confdefs.h" 12920 12921#if HAVE_DLFCN_H 12922#include <dlfcn.h> 12923#endif 12924 12925#include <stdio.h> 12926 12927#ifdef RTLD_GLOBAL 12928# define LT_DLGLOBAL RTLD_GLOBAL 12929#else 12930# ifdef DL_GLOBAL 12931# define LT_DLGLOBAL DL_GLOBAL 12932# else 12933# define LT_DLGLOBAL 0 12934# endif 12935#endif 12936 12937/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12938 find out it does not work in some platform. */ 12939#ifndef LT_DLLAZY_OR_NOW 12940# ifdef RTLD_LAZY 12941# define LT_DLLAZY_OR_NOW RTLD_LAZY 12942# else 12943# ifdef DL_LAZY 12944# define LT_DLLAZY_OR_NOW DL_LAZY 12945# else 12946# ifdef RTLD_NOW 12947# define LT_DLLAZY_OR_NOW RTLD_NOW 12948# else 12949# ifdef DL_NOW 12950# define LT_DLLAZY_OR_NOW DL_NOW 12951# else 12952# define LT_DLLAZY_OR_NOW 0 12953# endif 12954# endif 12955# endif 12956# endif 12957#endif 12958 12959/* When -fvisibility=hidden is used, assume the code has been annotated 12960 correspondingly for the symbols needed. */ 12961#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12962int fnord () __attribute__((visibility("default"))); 12963#endif 12964 12965int fnord () { return 42; } 12966int main () 12967{ 12968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12969 int status = $lt_dlunknown; 12970 12971 if (self) 12972 { 12973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12974 else 12975 { 12976 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12977 else puts (dlerror ()); 12978 } 12979 /* dlclose (self); */ 12980 } 12981 else 12982 puts (dlerror ()); 12983 12984 return status; 12985} 12986_LT_EOF 12987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12988 (eval $ac_link) 2>&5 12989 ac_status=$? 12990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12991 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12992 (./conftest; exit; ) >&5 2>/dev/null 12993 lt_status=$? 12994 case x$lt_status in 12995 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12996 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12997 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12998 esac 12999 else : 13000 # compilation failed 13001 lt_cv_dlopen_self_static=no 13002 fi 13003fi 13004rm -fr conftest* 13005 13006 13007fi 13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13009$as_echo "$lt_cv_dlopen_self_static" >&6; } 13010 fi 13011 13012 CPPFLAGS=$save_CPPFLAGS 13013 LDFLAGS=$save_LDFLAGS 13014 LIBS=$save_LIBS 13015 ;; 13016 esac 13017 13018 case $lt_cv_dlopen_self in 13019 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13020 *) enable_dlopen_self=unknown ;; 13021 esac 13022 13023 case $lt_cv_dlopen_self_static in 13024 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13025 *) enable_dlopen_self_static=unknown ;; 13026 esac 13027fi 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045striplib= 13046old_striplib= 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13048$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13049if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13051 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13053$as_echo "yes" >&6; } 13054else 13055# FIXME - insert some real tests, host_os isn't really good enough 13056 case $host_os in 13057 darwin*) 13058 if test -n "$STRIP"; then 13059 striplib="$STRIP -x" 13060 old_striplib="$STRIP -S" 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13062$as_echo "yes" >&6; } 13063 else 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13065$as_echo "no" >&6; } 13066 fi 13067 ;; 13068 *) 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13070$as_echo "no" >&6; } 13071 ;; 13072 esac 13073fi 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 # Report what library types will actually be built 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13088$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13090$as_echo "$can_build_shared" >&6; } 13091 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13093$as_echo_n "checking whether to build shared libraries... " >&6; } 13094 test no = "$can_build_shared" && enable_shared=no 13095 13096 # On AIX, shared libraries and static libraries use the same namespace, and 13097 # are all built from PIC. 13098 case $host_os in 13099 aix3*) 13100 test yes = "$enable_shared" && enable_static=no 13101 if test -n "$RANLIB"; then 13102 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13103 postinstall_cmds='$RANLIB $lib' 13104 fi 13105 ;; 13106 13107 aix[4-9]*) 13108 if test ia64 != "$host_cpu"; then 13109 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13110 yes,aix,yes) ;; # shared object as lib.so file only 13111 yes,svr4,*) ;; # shared object as lib.so archive member only 13112 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13113 esac 13114 fi 13115 ;; 13116 esac 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13118$as_echo "$enable_shared" >&6; } 13119 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13121$as_echo_n "checking whether to build static libraries... " >&6; } 13122 # Make sure either enable_shared or enable_static is yes. 13123 test yes = "$enable_shared" || enable_static=yes 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13125$as_echo "$enable_static" >&6; } 13126 13127 13128 13129 13130fi 13131ac_ext=c 13132ac_cpp='$CPP $CPPFLAGS' 13133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13135ac_compiler_gnu=$ac_cv_c_compiler_gnu 13136 13137CC=$lt_save_CC 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 ac_config_commands="$ac_config_commands libtool" 13154 13155 13156 13157 13158# Only expand once: 13159 13160 13161ac_ext=cpp 13162ac_cpp='$CXXCPP $CPPFLAGS' 13163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13166if test -z "$CXX"; then 13167 if test -n "$CCC"; then 13168 CXX=$CCC 13169 else 13170 if test -n "$ac_tool_prefix"; then 13171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13172 do 13173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13174set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13176$as_echo_n "checking for $ac_word... " >&6; } 13177if ${ac_cv_prog_CXX+:} false; then : 13178 $as_echo_n "(cached) " >&6 13179else 13180 if test -n "$CXX"; then 13181 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13182else 13183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13184for as_dir in $PATH 13185do 13186 IFS=$as_save_IFS 13187 test -z "$as_dir" && as_dir=. 13188 for ac_exec_ext in '' $ac_executable_extensions; do 13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13192 break 2 13193 fi 13194done 13195 done 13196IFS=$as_save_IFS 13197 13198fi 13199fi 13200CXX=$ac_cv_prog_CXX 13201if test -n "$CXX"; then 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13203$as_echo "$CXX" >&6; } 13204else 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13206$as_echo "no" >&6; } 13207fi 13208 13209 13210 test -n "$CXX" && break 13211 done 13212fi 13213if test -z "$CXX"; then 13214 ac_ct_CXX=$CXX 13215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13216do 13217 # Extract the first word of "$ac_prog", so it can be a program name with args. 13218set dummy $ac_prog; ac_word=$2 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13220$as_echo_n "checking for $ac_word... " >&6; } 13221if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 if test -n "$ac_ct_CXX"; then 13225 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13226else 13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13228for as_dir in $PATH 13229do 13230 IFS=$as_save_IFS 13231 test -z "$as_dir" && as_dir=. 13232 for ac_exec_ext in '' $ac_executable_extensions; do 13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13234 ac_cv_prog_ac_ct_CXX="$ac_prog" 13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13236 break 2 13237 fi 13238done 13239 done 13240IFS=$as_save_IFS 13241 13242fi 13243fi 13244ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13245if test -n "$ac_ct_CXX"; then 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13247$as_echo "$ac_ct_CXX" >&6; } 13248else 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13250$as_echo "no" >&6; } 13251fi 13252 13253 13254 test -n "$ac_ct_CXX" && break 13255done 13256 13257 if test "x$ac_ct_CXX" = x; then 13258 CXX="g++" 13259 else 13260 case $cross_compiling:$ac_tool_warned in 13261yes:) 13262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13264ac_tool_warned=yes ;; 13265esac 13266 CXX=$ac_ct_CXX 13267 fi 13268fi 13269 13270 fi 13271fi 13272# Provide some information about the compiler. 13273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13274set X $ac_compile 13275ac_compiler=$2 13276for ac_option in --version -v -V -qversion; do 13277 { { ac_try="$ac_compiler $ac_option >&5" 13278case "(($ac_try" in 13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13280 *) ac_try_echo=$ac_try;; 13281esac 13282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13283$as_echo "$ac_try_echo"; } >&5 13284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13285 ac_status=$? 13286 if test -s conftest.err; then 13287 sed '10a\ 13288... rest of stderr output deleted ... 13289 10q' conftest.err >conftest.er1 13290 cat conftest.er1 >&5 13291 fi 13292 rm -f conftest.er1 conftest.err 13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13294 test $ac_status = 0; } 13295done 13296 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13298$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13299if ${ac_cv_cxx_compiler_gnu+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304 13305int 13306main () 13307{ 13308#ifndef __GNUC__ 13309 choke me 13310#endif 13311 13312 ; 13313 return 0; 13314} 13315_ACEOF 13316if ac_fn_cxx_try_compile "$LINENO"; then : 13317 ac_compiler_gnu=yes 13318else 13319 ac_compiler_gnu=no 13320fi 13321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13322ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13323 13324fi 13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13326$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13327if test $ac_compiler_gnu = yes; then 13328 GXX=yes 13329else 13330 GXX= 13331fi 13332ac_test_CXXFLAGS=${CXXFLAGS+set} 13333ac_save_CXXFLAGS=$CXXFLAGS 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13335$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13336if ${ac_cv_prog_cxx_g+:} false; then : 13337 $as_echo_n "(cached) " >&6 13338else 13339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13340 ac_cxx_werror_flag=yes 13341 ac_cv_prog_cxx_g=no 13342 CXXFLAGS="-g" 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346int 13347main () 13348{ 13349 13350 ; 13351 return 0; 13352} 13353_ACEOF 13354if ac_fn_cxx_try_compile "$LINENO"; then : 13355 ac_cv_prog_cxx_g=yes 13356else 13357 CXXFLAGS="" 13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13359/* end confdefs.h. */ 13360 13361int 13362main () 13363{ 13364 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_cxx_try_compile "$LINENO"; then : 13370 13371else 13372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13373 CXXFLAGS="-g" 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376 13377int 13378main () 13379{ 13380 13381 ; 13382 return 0; 13383} 13384_ACEOF 13385if ac_fn_cxx_try_compile "$LINENO"; then : 13386 ac_cv_prog_cxx_g=yes 13387fi 13388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13391fi 13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13396$as_echo "$ac_cv_prog_cxx_g" >&6; } 13397if test "$ac_test_CXXFLAGS" = set; then 13398 CXXFLAGS=$ac_save_CXXFLAGS 13399elif test $ac_cv_prog_cxx_g = yes; then 13400 if test "$GXX" = yes; then 13401 CXXFLAGS="-g -O2" 13402 else 13403 CXXFLAGS="-g" 13404 fi 13405else 13406 if test "$GXX" = yes; then 13407 CXXFLAGS="-O2" 13408 else 13409 CXXFLAGS= 13410 fi 13411fi 13412ac_ext=c 13413ac_cpp='$CPP $CPPFLAGS' 13414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13416ac_compiler_gnu=$ac_cv_c_compiler_gnu 13417 13418depcc="$CXX" am_compiler_list= 13419 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13421$as_echo_n "checking dependency style of $depcc... " >&6; } 13422if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13426 # We make a subdir and do the tests there. Otherwise we can end up 13427 # making bogus files that we don't know about and never remove. For 13428 # instance it was reported that on HP-UX the gcc test will end up 13429 # making a dummy file named 'D' -- because '-MD' means "put the output 13430 # in D". 13431 rm -rf conftest.dir 13432 mkdir conftest.dir 13433 # Copy depcomp to subdir because otherwise we won't find it if we're 13434 # using a relative directory. 13435 cp "$am_depcomp" conftest.dir 13436 cd conftest.dir 13437 # We will build objects and dependencies in a subdirectory because 13438 # it helps to detect inapplicable dependency modes. For instance 13439 # both Tru64's cc and ICC support -MD to output dependencies as a 13440 # side effect of compilation, but ICC will put the dependencies in 13441 # the current directory while Tru64 will put them in the object 13442 # directory. 13443 mkdir sub 13444 13445 am_cv_CXX_dependencies_compiler_type=none 13446 if test "$am_compiler_list" = ""; then 13447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13448 fi 13449 am__universal=false 13450 case " $depcc " in #( 13451 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13452 esac 13453 13454 for depmode in $am_compiler_list; do 13455 # Setup a source with many dependencies, because some compilers 13456 # like to wrap large dependency lists on column 80 (with \), and 13457 # we should not choose a depcomp mode which is confused by this. 13458 # 13459 # We need to recreate these files for each test, as the compiler may 13460 # overwrite some of them when testing with obscure command lines. 13461 # This happens at least with the AIX C compiler. 13462 : > sub/conftest.c 13463 for i in 1 2 3 4 5 6; do 13464 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13465 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13466 # Solaris 10 /bin/sh. 13467 echo '/* dummy */' > sub/conftst$i.h 13468 done 13469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13470 13471 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13472 # mode. It turns out that the SunPro C++ compiler does not properly 13473 # handle '-M -o', and we need to detect this. Also, some Intel 13474 # versions had trouble with output in subdirs. 13475 am__obj=sub/conftest.${OBJEXT-o} 13476 am__minus_obj="-o $am__obj" 13477 case $depmode in 13478 gcc) 13479 # This depmode causes a compiler race in universal mode. 13480 test "$am__universal" = false || continue 13481 ;; 13482 nosideeffect) 13483 # After this tag, mechanisms are not by side-effect, so they'll 13484 # only be used when explicitly requested. 13485 if test "x$enable_dependency_tracking" = xyes; then 13486 continue 13487 else 13488 break 13489 fi 13490 ;; 13491 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13492 # This compiler won't grok '-c -o', but also, the minuso test has 13493 # not run yet. These depmodes are late enough in the game, and 13494 # so weak that their functioning should not be impacted. 13495 am__obj=conftest.${OBJEXT-o} 13496 am__minus_obj= 13497 ;; 13498 none) break ;; 13499 esac 13500 if depmode=$depmode \ 13501 source=sub/conftest.c object=$am__obj \ 13502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13503 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13504 >/dev/null 2>conftest.err && 13505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13507 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13509 # icc doesn't choke on unknown options, it will just issue warnings 13510 # or remarks (even with -Werror). So we grep stderr for any message 13511 # that says an option was ignored or not supported. 13512 # When given -MP, icc 7.0 and 7.1 complain thusly: 13513 # icc: Command line warning: ignoring option '-M'; no argument required 13514 # The diagnosis changed in icc 8.0: 13515 # icc: Command line remark: option '-MP' not supported 13516 if (grep 'ignoring option' conftest.err || 13517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13518 am_cv_CXX_dependencies_compiler_type=$depmode 13519 break 13520 fi 13521 fi 13522 done 13523 13524 cd .. 13525 rm -rf conftest.dir 13526else 13527 am_cv_CXX_dependencies_compiler_type=none 13528fi 13529 13530fi 13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13532$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13533CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13534 13535 if 13536 test "x$enable_dependency_tracking" != xno \ 13537 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13538 am__fastdepCXX_TRUE= 13539 am__fastdepCXX_FALSE='#' 13540else 13541 am__fastdepCXX_TRUE='#' 13542 am__fastdepCXX_FALSE= 13543fi 13544 13545 13546 13547 13548 13549func_stripname_cnf () 13550{ 13551 case $2 in 13552 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13553 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13554 esac 13555} # func_stripname_cnf 13556 13557 if test -n "$CXX" && ( test no != "$CXX" && 13558 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13559 (test g++ != "$CXX"))); then 13560 ac_ext=cpp 13561ac_cpp='$CXXCPP $CPPFLAGS' 13562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13566$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13567if test -z "$CXXCPP"; then 13568 if ${ac_cv_prog_CXXCPP+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 # Double quotes because CXXCPP needs to be expanded 13572 for CXXCPP in "$CXX -E" "/lib/cpp" 13573 do 13574 ac_preproc_ok=false 13575for ac_cxx_preproc_warn_flag in '' yes 13576do 13577 # Use a header file that comes with gcc, so configuring glibc 13578 # with a fresh cross-compiler works. 13579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13580 # <limits.h> exists even on freestanding compilers. 13581 # On the NeXT, cc -E runs the code through the compiler's parser, 13582 # not just through cpp. "Syntax error" is here to catch this case. 13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13584/* end confdefs.h. */ 13585#ifdef __STDC__ 13586# include <limits.h> 13587#else 13588# include <assert.h> 13589#endif 13590 Syntax error 13591_ACEOF 13592if ac_fn_cxx_try_cpp "$LINENO"; then : 13593 13594else 13595 # Broken: fails on valid input. 13596continue 13597fi 13598rm -f conftest.err conftest.i conftest.$ac_ext 13599 13600 # OK, works on sane cases. Now check whether nonexistent headers 13601 # can be detected and how. 13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13603/* end confdefs.h. */ 13604#include <ac_nonexistent.h> 13605_ACEOF 13606if ac_fn_cxx_try_cpp "$LINENO"; then : 13607 # Broken: success on invalid input. 13608continue 13609else 13610 # Passes both tests. 13611ac_preproc_ok=: 13612break 13613fi 13614rm -f conftest.err conftest.i conftest.$ac_ext 13615 13616done 13617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13618rm -f conftest.i conftest.err conftest.$ac_ext 13619if $ac_preproc_ok; then : 13620 break 13621fi 13622 13623 done 13624 ac_cv_prog_CXXCPP=$CXXCPP 13625 13626fi 13627 CXXCPP=$ac_cv_prog_CXXCPP 13628else 13629 ac_cv_prog_CXXCPP=$CXXCPP 13630fi 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13632$as_echo "$CXXCPP" >&6; } 13633ac_preproc_ok=false 13634for ac_cxx_preproc_warn_flag in '' yes 13635do 13636 # Use a header file that comes with gcc, so configuring glibc 13637 # with a fresh cross-compiler works. 13638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13639 # <limits.h> exists even on freestanding compilers. 13640 # On the NeXT, cc -E runs the code through the compiler's parser, 13641 # not just through cpp. "Syntax error" is here to catch this case. 13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13643/* end confdefs.h. */ 13644#ifdef __STDC__ 13645# include <limits.h> 13646#else 13647# include <assert.h> 13648#endif 13649 Syntax error 13650_ACEOF 13651if ac_fn_cxx_try_cpp "$LINENO"; then : 13652 13653else 13654 # Broken: fails on valid input. 13655continue 13656fi 13657rm -f conftest.err conftest.i conftest.$ac_ext 13658 13659 # OK, works on sane cases. Now check whether nonexistent headers 13660 # can be detected and how. 13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13662/* end confdefs.h. */ 13663#include <ac_nonexistent.h> 13664_ACEOF 13665if ac_fn_cxx_try_cpp "$LINENO"; then : 13666 # Broken: success on invalid input. 13667continue 13668else 13669 # Passes both tests. 13670ac_preproc_ok=: 13671break 13672fi 13673rm -f conftest.err conftest.i conftest.$ac_ext 13674 13675done 13676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13677rm -f conftest.i conftest.err conftest.$ac_ext 13678if $ac_preproc_ok; then : 13679 13680else 13681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13683as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13684See \`config.log' for more details" "$LINENO" 5; } 13685fi 13686 13687ac_ext=c 13688ac_cpp='$CPP $CPPFLAGS' 13689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13691ac_compiler_gnu=$ac_cv_c_compiler_gnu 13692 13693else 13694 _lt_caught_CXX_error=yes 13695fi 13696 13697ac_ext=cpp 13698ac_cpp='$CXXCPP $CPPFLAGS' 13699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13702 13703archive_cmds_need_lc_CXX=no 13704allow_undefined_flag_CXX= 13705always_export_symbols_CXX=no 13706archive_expsym_cmds_CXX= 13707compiler_needs_object_CXX=no 13708export_dynamic_flag_spec_CXX= 13709hardcode_direct_CXX=no 13710hardcode_direct_absolute_CXX=no 13711hardcode_libdir_flag_spec_CXX= 13712hardcode_libdir_separator_CXX= 13713hardcode_minus_L_CXX=no 13714hardcode_shlibpath_var_CXX=unsupported 13715hardcode_automatic_CXX=no 13716inherit_rpath_CXX=no 13717module_cmds_CXX= 13718module_expsym_cmds_CXX= 13719link_all_deplibs_CXX=unknown 13720old_archive_cmds_CXX=$old_archive_cmds 13721reload_flag_CXX=$reload_flag 13722reload_cmds_CXX=$reload_cmds 13723no_undefined_flag_CXX= 13724whole_archive_flag_spec_CXX= 13725enable_shared_with_static_runtimes_CXX=no 13726 13727# Source file extension for C++ test sources. 13728ac_ext=cpp 13729 13730# Object file extension for compiled C++ test sources. 13731objext=o 13732objext_CXX=$objext 13733 13734# No sense in running all these tests if we already determined that 13735# the CXX compiler isn't working. Some variables (like enable_shared) 13736# are currently assumed to apply to all compilers on this platform, 13737# and will be corrupted by setting them based on a non-working compiler. 13738if test yes != "$_lt_caught_CXX_error"; then 13739 # Code to be used in simple compile tests 13740 lt_simple_compile_test_code="int some_variable = 0;" 13741 13742 # Code to be used in simple link tests 13743 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13744 13745 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13746 13747 13748 13749 13750 13751 13752# If no C compiler was specified, use CC. 13753LTCC=${LTCC-"$CC"} 13754 13755# If no C compiler flags were specified, use CFLAGS. 13756LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13757 13758# Allow CC to be a program name with arguments. 13759compiler=$CC 13760 13761 13762 # save warnings/boilerplate of simple test code 13763 ac_outfile=conftest.$ac_objext 13764echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13766_lt_compiler_boilerplate=`cat conftest.err` 13767$RM conftest* 13768 13769 ac_outfile=conftest.$ac_objext 13770echo "$lt_simple_link_test_code" >conftest.$ac_ext 13771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13772_lt_linker_boilerplate=`cat conftest.err` 13773$RM -r conftest* 13774 13775 13776 # Allow CC to be a program name with arguments. 13777 lt_save_CC=$CC 13778 lt_save_CFLAGS=$CFLAGS 13779 lt_save_LD=$LD 13780 lt_save_GCC=$GCC 13781 GCC=$GXX 13782 lt_save_with_gnu_ld=$with_gnu_ld 13783 lt_save_path_LD=$lt_cv_path_LD 13784 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13785 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13786 else 13787 $as_unset lt_cv_prog_gnu_ld 13788 fi 13789 if test -n "${lt_cv_path_LDCXX+set}"; then 13790 lt_cv_path_LD=$lt_cv_path_LDCXX 13791 else 13792 $as_unset lt_cv_path_LD 13793 fi 13794 test -z "${LDCXX+set}" || LD=$LDCXX 13795 CC=${CXX-"c++"} 13796 CFLAGS=$CXXFLAGS 13797 compiler=$CC 13798 compiler_CXX=$CC 13799 func_cc_basename $compiler 13800cc_basename=$func_cc_basename_result 13801 13802 13803 if test -n "$compiler"; then 13804 # We don't want -fno-exception when compiling C++ code, so set the 13805 # no_builtin_flag separately 13806 if test yes = "$GXX"; then 13807 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13808 else 13809 lt_prog_compiler_no_builtin_flag_CXX= 13810 fi 13811 13812 if test yes = "$GXX"; then 13813 # Set up default GNU C++ configuration 13814 13815 13816 13817# Check whether --with-gnu-ld was given. 13818if test "${with_gnu_ld+set}" = set; then : 13819 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13820else 13821 with_gnu_ld=no 13822fi 13823 13824ac_prog=ld 13825if test yes = "$GCC"; then 13826 # Check if gcc -print-prog-name=ld gives a path. 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13828$as_echo_n "checking for ld used by $CC... " >&6; } 13829 case $host in 13830 *-*-mingw*) 13831 # gcc leaves a trailing carriage return, which upsets mingw 13832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13833 *) 13834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13835 esac 13836 case $ac_prog in 13837 # Accept absolute paths. 13838 [\\/]* | ?:[\\/]*) 13839 re_direlt='/[^/][^/]*/\.\./' 13840 # Canonicalize the pathname of ld 13841 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13842 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13843 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13844 done 13845 test -z "$LD" && LD=$ac_prog 13846 ;; 13847 "") 13848 # If it fails, then pretend we aren't using GCC. 13849 ac_prog=ld 13850 ;; 13851 *) 13852 # If it is relative, then search for the first ld in PATH. 13853 with_gnu_ld=unknown 13854 ;; 13855 esac 13856elif test yes = "$with_gnu_ld"; then 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13858$as_echo_n "checking for GNU ld... " >&6; } 13859else 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13861$as_echo_n "checking for non-GNU ld... " >&6; } 13862fi 13863if ${lt_cv_path_LD+:} false; then : 13864 $as_echo_n "(cached) " >&6 13865else 13866 if test -z "$LD"; then 13867 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13868 for ac_dir in $PATH; do 13869 IFS=$lt_save_ifs 13870 test -z "$ac_dir" && ac_dir=. 13871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13872 lt_cv_path_LD=$ac_dir/$ac_prog 13873 # Check to see if the program is GNU ld. I'd rather use --version, 13874 # but apparently some variants of GNU ld only accept -v. 13875 # Break only if it was the GNU/non-GNU ld that we prefer. 13876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13877 *GNU* | *'with BFD'*) 13878 test no != "$with_gnu_ld" && break 13879 ;; 13880 *) 13881 test yes != "$with_gnu_ld" && break 13882 ;; 13883 esac 13884 fi 13885 done 13886 IFS=$lt_save_ifs 13887else 13888 lt_cv_path_LD=$LD # Let the user override the test with a path. 13889fi 13890fi 13891 13892LD=$lt_cv_path_LD 13893if test -n "$LD"; then 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13895$as_echo "$LD" >&6; } 13896else 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13898$as_echo "no" >&6; } 13899fi 13900test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13902$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13903if ${lt_cv_prog_gnu_ld+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13907case `$LD -v 2>&1 </dev/null` in 13908*GNU* | *'with BFD'*) 13909 lt_cv_prog_gnu_ld=yes 13910 ;; 13911*) 13912 lt_cv_prog_gnu_ld=no 13913 ;; 13914esac 13915fi 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13917$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13918with_gnu_ld=$lt_cv_prog_gnu_ld 13919 13920 13921 13922 13923 13924 13925 13926 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13927 # archiving commands below assume that GNU ld is being used. 13928 if test yes = "$with_gnu_ld"; then 13929 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13930 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' 13931 13932 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13933 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13934 13935 # If archive_cmds runs LD, not CC, wlarc should be empty 13936 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13937 # investigate it a little bit more. (MM) 13938 wlarc='$wl' 13939 13940 # ancient GNU ld didn't support --whole-archive et. al. 13941 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13942 $GREP 'no-whole-archive' > /dev/null; then 13943 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13944 else 13945 whole_archive_flag_spec_CXX= 13946 fi 13947 else 13948 with_gnu_ld=no 13949 wlarc= 13950 13951 # A generic and very simple default shared library creation 13952 # command for GNU C++ for the case where it uses the native 13953 # linker, instead of GNU ld. If possible, this setting should 13954 # overridden to take advantage of the native linker features on 13955 # the platform it is being used on. 13956 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13957 fi 13958 13959 # Commands to make compiler produce verbose output that lists 13960 # what "hidden" libraries, object files and flags are used when 13961 # linking a shared library. 13962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13963 13964 else 13965 GXX=no 13966 with_gnu_ld=no 13967 wlarc= 13968 fi 13969 13970 # PORTME: fill in a description of your system's C++ link characteristics 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13972$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13973 ld_shlibs_CXX=yes 13974 case $host_os in 13975 aix3*) 13976 # FIXME: insert proper C++ library support 13977 ld_shlibs_CXX=no 13978 ;; 13979 aix[4-9]*) 13980 if test ia64 = "$host_cpu"; then 13981 # On IA64, the linker does run time linking by default, so we don't 13982 # have to do anything special. 13983 aix_use_runtimelinking=no 13984 exp_sym_flag='-Bexport' 13985 no_entry_flag= 13986 else 13987 aix_use_runtimelinking=no 13988 13989 # Test if we are trying to use run time linking or normal 13990 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13991 # have runtime linking enabled, and use it for executables. 13992 # For shared libraries, we enable/disable runtime linking 13993 # depending on the kind of the shared library created - 13994 # when "with_aix_soname,aix_use_runtimelinking" is: 13995 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13996 # "aix,yes" lib.so shared, rtl:yes, for executables 13997 # lib.a static archive 13998 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13999 # lib.a(lib.so.V) shared, rtl:no, for executables 14000 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14001 # lib.a(lib.so.V) shared, rtl:no 14002 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14003 # lib.a static archive 14004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14005 for ld_flag in $LDFLAGS; do 14006 case $ld_flag in 14007 *-brtl*) 14008 aix_use_runtimelinking=yes 14009 break 14010 ;; 14011 esac 14012 done 14013 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14014 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14015 # so we don't have lib.a shared libs to link our executables. 14016 # We have to force runtime linking in this case. 14017 aix_use_runtimelinking=yes 14018 LDFLAGS="$LDFLAGS -Wl,-brtl" 14019 fi 14020 ;; 14021 esac 14022 14023 exp_sym_flag='-bexport' 14024 no_entry_flag='-bnoentry' 14025 fi 14026 14027 # When large executables or shared objects are built, AIX ld can 14028 # have problems creating the table of contents. If linking a library 14029 # or program results in "error TOC overflow" add -mminimal-toc to 14030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14032 14033 archive_cmds_CXX='' 14034 hardcode_direct_CXX=yes 14035 hardcode_direct_absolute_CXX=yes 14036 hardcode_libdir_separator_CXX=':' 14037 link_all_deplibs_CXX=yes 14038 file_list_spec_CXX='$wl-f,' 14039 case $with_aix_soname,$aix_use_runtimelinking in 14040 aix,*) ;; # no import file 14041 svr4,* | *,yes) # use import file 14042 # The Import File defines what to hardcode. 14043 hardcode_direct_CXX=no 14044 hardcode_direct_absolute_CXX=no 14045 ;; 14046 esac 14047 14048 if test yes = "$GXX"; then 14049 case $host_os in aix4.[012]|aix4.[012].*) 14050 # We only want to do this on AIX 4.2 and lower, the check 14051 # below for broken collect2 doesn't work under 4.3+ 14052 collect2name=`$CC -print-prog-name=collect2` 14053 if test -f "$collect2name" && 14054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14055 then 14056 # We have reworked collect2 14057 : 14058 else 14059 # We have old collect2 14060 hardcode_direct_CXX=unsupported 14061 # It fails to find uninstalled libraries when the uninstalled 14062 # path is not listed in the libpath. Setting hardcode_minus_L 14063 # to unsupported forces relinking 14064 hardcode_minus_L_CXX=yes 14065 hardcode_libdir_flag_spec_CXX='-L$libdir' 14066 hardcode_libdir_separator_CXX= 14067 fi 14068 esac 14069 shared_flag='-shared' 14070 if test yes = "$aix_use_runtimelinking"; then 14071 shared_flag=$shared_flag' $wl-G' 14072 fi 14073 # Need to ensure runtime linking is disabled for the traditional 14074 # shared library, or the linker may eventually find shared libraries 14075 # /with/ Import File - we do not want to mix them. 14076 shared_flag_aix='-shared' 14077 shared_flag_svr4='-shared $wl-G' 14078 else 14079 # not using gcc 14080 if test ia64 = "$host_cpu"; then 14081 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14082 # chokes on -Wl,-G. The following line is correct: 14083 shared_flag='-G' 14084 else 14085 if test yes = "$aix_use_runtimelinking"; then 14086 shared_flag='$wl-G' 14087 else 14088 shared_flag='$wl-bM:SRE' 14089 fi 14090 shared_flag_aix='$wl-bM:SRE' 14091 shared_flag_svr4='$wl-G' 14092 fi 14093 fi 14094 14095 export_dynamic_flag_spec_CXX='$wl-bexpall' 14096 # It seems that -bexpall does not export symbols beginning with 14097 # underscore (_), so it is better to generate a list of symbols to 14098 # export. 14099 always_export_symbols_CXX=yes 14100 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14101 # Warning - without using the other runtime loading flags (-brtl), 14102 # -berok will link without error, but may produce a broken library. 14103 # The "-G" linker flag allows undefined symbols. 14104 no_undefined_flag_CXX='-bernotok' 14105 # Determine the default libpath from the value encoded in an empty 14106 # executable. 14107 if test set = "${lt_cv_aix_libpath+set}"; then 14108 aix_libpath=$lt_cv_aix_libpath 14109else 14110 if ${lt_cv_aix_libpath__CXX+:} false; then : 14111 $as_echo_n "(cached) " >&6 14112else 14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14114/* end confdefs.h. */ 14115 14116int 14117main () 14118{ 14119 14120 ; 14121 return 0; 14122} 14123_ACEOF 14124if ac_fn_cxx_try_link "$LINENO"; then : 14125 14126 lt_aix_libpath_sed=' 14127 /Import File Strings/,/^$/ { 14128 /^0/ { 14129 s/^0 *\([^ ]*\) *$/\1/ 14130 p 14131 } 14132 }' 14133 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14134 # Check for a 64-bit object if we didn't find anything. 14135 if test -z "$lt_cv_aix_libpath__CXX"; then 14136 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14137 fi 14138fi 14139rm -f core conftest.err conftest.$ac_objext \ 14140 conftest$ac_exeext conftest.$ac_ext 14141 if test -z "$lt_cv_aix_libpath__CXX"; then 14142 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14143 fi 14144 14145fi 14146 14147 aix_libpath=$lt_cv_aix_libpath__CXX 14148fi 14149 14150 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14151 14152 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 14153 else 14154 if test ia64 = "$host_cpu"; then 14155 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14156 allow_undefined_flag_CXX="-z nodefs" 14157 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" 14158 else 14159 # Determine the default libpath from the value encoded in an 14160 # empty executable. 14161 if test set = "${lt_cv_aix_libpath+set}"; then 14162 aix_libpath=$lt_cv_aix_libpath 14163else 14164 if ${lt_cv_aix_libpath__CXX+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169 14170int 14171main () 14172{ 14173 14174 ; 14175 return 0; 14176} 14177_ACEOF 14178if ac_fn_cxx_try_link "$LINENO"; then : 14179 14180 lt_aix_libpath_sed=' 14181 /Import File Strings/,/^$/ { 14182 /^0/ { 14183 s/^0 *\([^ ]*\) *$/\1/ 14184 p 14185 } 14186 }' 14187 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14188 # Check for a 64-bit object if we didn't find anything. 14189 if test -z "$lt_cv_aix_libpath__CXX"; then 14190 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14191 fi 14192fi 14193rm -f core conftest.err conftest.$ac_objext \ 14194 conftest$ac_exeext conftest.$ac_ext 14195 if test -z "$lt_cv_aix_libpath__CXX"; then 14196 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14197 fi 14198 14199fi 14200 14201 aix_libpath=$lt_cv_aix_libpath__CXX 14202fi 14203 14204 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14205 # Warning - without using the other run time loading flags, 14206 # -berok will link without error, but may produce a broken library. 14207 no_undefined_flag_CXX=' $wl-bernotok' 14208 allow_undefined_flag_CXX=' $wl-berok' 14209 if test yes = "$with_gnu_ld"; then 14210 # We only use this code for GNU lds that support --whole-archive. 14211 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14212 else 14213 # Exported symbols can be pulled into shared objects from archives 14214 whole_archive_flag_spec_CXX='$convenience' 14215 fi 14216 archive_cmds_need_lc_CXX=yes 14217 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14218 # -brtl affects multiple linker settings, -berok does not and is overridden later 14219 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14220 if test svr4 != "$with_aix_soname"; then 14221 # This is similar to how AIX traditionally builds its shared 14222 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14223 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' 14224 fi 14225 if test aix != "$with_aix_soname"; then 14226 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' 14227 else 14228 # used by -dlpreopen to get the symbols 14229 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14230 fi 14231 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14232 fi 14233 fi 14234 ;; 14235 14236 beos*) 14237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14238 allow_undefined_flag_CXX=unsupported 14239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14240 # support --undefined. This deserves some investigation. FIXME 14241 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14242 else 14243 ld_shlibs_CXX=no 14244 fi 14245 ;; 14246 14247 chorus*) 14248 case $cc_basename in 14249 *) 14250 # FIXME: insert proper C++ library support 14251 ld_shlibs_CXX=no 14252 ;; 14253 esac 14254 ;; 14255 14256 cygwin* | mingw* | pw32* | cegcc*) 14257 case $GXX,$cc_basename in 14258 ,cl* | no,cl*) 14259 # Native MSVC 14260 # hardcode_libdir_flag_spec is actually meaningless, as there is 14261 # no search path for DLLs. 14262 hardcode_libdir_flag_spec_CXX=' ' 14263 allow_undefined_flag_CXX=unsupported 14264 always_export_symbols_CXX=yes 14265 file_list_spec_CXX='@' 14266 # Tell ltmain to make .lib files, not .a files. 14267 libext=lib 14268 # Tell ltmain to make .dll files, not .so files. 14269 shrext_cmds=.dll 14270 # FIXME: Setting linknames here is a bad hack. 14271 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14272 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14273 cp "$export_symbols" "$output_objdir/$soname.def"; 14274 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14275 else 14276 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14277 fi~ 14278 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14279 linknames=' 14280 # The linker will not automatically build a static lib if we build a DLL. 14281 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14282 enable_shared_with_static_runtimes_CXX=yes 14283 # Don't use ranlib 14284 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14285 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14286 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14287 case $lt_outputfile in 14288 *.exe|*.EXE) ;; 14289 *) 14290 lt_outputfile=$lt_outputfile.exe 14291 lt_tool_outputfile=$lt_tool_outputfile.exe 14292 ;; 14293 esac~ 14294 func_to_tool_file "$lt_outputfile"~ 14295 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14296 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14297 $RM "$lt_outputfile.manifest"; 14298 fi' 14299 ;; 14300 *) 14301 # g++ 14302 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14303 # as there is no search path for DLLs. 14304 hardcode_libdir_flag_spec_CXX='-L$libdir' 14305 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14306 allow_undefined_flag_CXX=unsupported 14307 always_export_symbols_CXX=no 14308 enable_shared_with_static_runtimes_CXX=yes 14309 14310 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14311 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' 14312 # If the export-symbols file already is a .def file, use it as 14313 # is; otherwise, prepend EXPORTS... 14314 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14315 cp $export_symbols $output_objdir/$soname.def; 14316 else 14317 echo EXPORTS > $output_objdir/$soname.def; 14318 cat $export_symbols >> $output_objdir/$soname.def; 14319 fi~ 14320 $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' 14321 else 14322 ld_shlibs_CXX=no 14323 fi 14324 ;; 14325 esac 14326 ;; 14327 darwin* | rhapsody*) 14328 14329 14330 archive_cmds_need_lc_CXX=no 14331 hardcode_direct_CXX=no 14332 hardcode_automatic_CXX=yes 14333 hardcode_shlibpath_var_CXX=unsupported 14334 if test yes = "$lt_cv_ld_force_load"; then 14335 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\"`' 14336 14337 else 14338 whole_archive_flag_spec_CXX='' 14339 fi 14340 link_all_deplibs_CXX=yes 14341 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14342 case $cc_basename in 14343 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14344 *) _lt_dar_can_shared=$GCC ;; 14345 esac 14346 if test yes = "$_lt_dar_can_shared"; then 14347 output_verbose_link_cmd=func_echo_all 14348 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" 14349 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14350 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" 14351 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" 14352 if test yes != "$lt_cv_apple_cc_single_mod"; then 14353 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" 14354 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" 14355 fi 14356 14357 else 14358 ld_shlibs_CXX=no 14359 fi 14360 14361 ;; 14362 14363 os2*) 14364 hardcode_libdir_flag_spec_CXX='-L$libdir' 14365 hardcode_minus_L_CXX=yes 14366 allow_undefined_flag_CXX=unsupported 14367 shrext_cmds=.dll 14368 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14369 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14370 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14371 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14372 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14373 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14374 emximp -o $lib $output_objdir/$libname.def' 14375 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14376 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14377 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14378 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14379 prefix_cmds="$SED"~ 14380 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14381 prefix_cmds="$prefix_cmds -e 1d"; 14382 fi~ 14383 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14384 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14385 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14386 emximp -o $lib $output_objdir/$libname.def' 14387 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14388 enable_shared_with_static_runtimes_CXX=yes 14389 ;; 14390 14391 dgux*) 14392 case $cc_basename in 14393 ec++*) 14394 # FIXME: insert proper C++ library support 14395 ld_shlibs_CXX=no 14396 ;; 14397 ghcx*) 14398 # Green Hills C++ Compiler 14399 # FIXME: insert proper C++ library support 14400 ld_shlibs_CXX=no 14401 ;; 14402 *) 14403 # FIXME: insert proper C++ library support 14404 ld_shlibs_CXX=no 14405 ;; 14406 esac 14407 ;; 14408 14409 freebsd2.*) 14410 # C++ shared libraries reported to be fairly broken before 14411 # switch to ELF 14412 ld_shlibs_CXX=no 14413 ;; 14414 14415 freebsd-elf*) 14416 archive_cmds_need_lc_CXX=no 14417 ;; 14418 14419 freebsd* | dragonfly*) 14420 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14421 # conventions 14422 ld_shlibs_CXX=yes 14423 ;; 14424 14425 haiku*) 14426 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14427 link_all_deplibs_CXX=yes 14428 ;; 14429 14430 hpux9*) 14431 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14432 hardcode_libdir_separator_CXX=: 14433 export_dynamic_flag_spec_CXX='$wl-E' 14434 hardcode_direct_CXX=yes 14435 hardcode_minus_L_CXX=yes # Not in the search PATH, 14436 # but as the default 14437 # location of the library. 14438 14439 case $cc_basename in 14440 CC*) 14441 # FIXME: insert proper C++ library support 14442 ld_shlibs_CXX=no 14443 ;; 14444 aCC*) 14445 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' 14446 # Commands to make compiler produce verbose output that lists 14447 # what "hidden" libraries, object files and flags are used when 14448 # linking a shared library. 14449 # 14450 # There doesn't appear to be a way to prevent this compiler from 14451 # explicitly linking system object files so we need to strip them 14452 # from the output so that they don't get included in the library 14453 # dependencies. 14454 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"' 14455 ;; 14456 *) 14457 if test yes = "$GXX"; then 14458 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' 14459 else 14460 # FIXME: insert proper C++ library support 14461 ld_shlibs_CXX=no 14462 fi 14463 ;; 14464 esac 14465 ;; 14466 14467 hpux10*|hpux11*) 14468 if test no = "$with_gnu_ld"; then 14469 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14470 hardcode_libdir_separator_CXX=: 14471 14472 case $host_cpu in 14473 hppa*64*|ia64*) 14474 ;; 14475 *) 14476 export_dynamic_flag_spec_CXX='$wl-E' 14477 ;; 14478 esac 14479 fi 14480 case $host_cpu in 14481 hppa*64*|ia64*) 14482 hardcode_direct_CXX=no 14483 hardcode_shlibpath_var_CXX=no 14484 ;; 14485 *) 14486 hardcode_direct_CXX=yes 14487 hardcode_direct_absolute_CXX=yes 14488 hardcode_minus_L_CXX=yes # Not in the search PATH, 14489 # but as the default 14490 # location of the library. 14491 ;; 14492 esac 14493 14494 case $cc_basename in 14495 CC*) 14496 # FIXME: insert proper C++ library support 14497 ld_shlibs_CXX=no 14498 ;; 14499 aCC*) 14500 case $host_cpu in 14501 hppa*64*) 14502 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14503 ;; 14504 ia64*) 14505 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14506 ;; 14507 *) 14508 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14509 ;; 14510 esac 14511 # Commands to make compiler produce verbose output that lists 14512 # what "hidden" libraries, object files and flags are used when 14513 # linking a shared library. 14514 # 14515 # There doesn't appear to be a way to prevent this compiler from 14516 # explicitly linking system object files so we need to strip them 14517 # from the output so that they don't get included in the library 14518 # dependencies. 14519 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"' 14520 ;; 14521 *) 14522 if test yes = "$GXX"; then 14523 if test no = "$with_gnu_ld"; then 14524 case $host_cpu in 14525 hppa*64*) 14526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14527 ;; 14528 ia64*) 14529 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14530 ;; 14531 *) 14532 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' 14533 ;; 14534 esac 14535 fi 14536 else 14537 # FIXME: insert proper C++ library support 14538 ld_shlibs_CXX=no 14539 fi 14540 ;; 14541 esac 14542 ;; 14543 14544 interix[3-9]*) 14545 hardcode_direct_CXX=no 14546 hardcode_shlibpath_var_CXX=no 14547 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14548 export_dynamic_flag_spec_CXX='$wl-E' 14549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14550 # Instead, shared libraries are loaded at an image base (0x10000000 by 14551 # default) and relocated if they conflict, which is a slow very memory 14552 # consuming and fragmenting process. To avoid this, we pick a random, 14553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14554 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14555 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' 14556 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' 14557 ;; 14558 irix5* | irix6*) 14559 case $cc_basename in 14560 CC*) 14561 # SGI C++ 14562 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' 14563 14564 # Archives containing C++ object files must be created using 14565 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14566 # necessary to make sure instantiated templates are included 14567 # in the archive. 14568 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14569 ;; 14570 *) 14571 if test yes = "$GXX"; then 14572 if test no = "$with_gnu_ld"; then 14573 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' 14574 else 14575 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' 14576 fi 14577 fi 14578 link_all_deplibs_CXX=yes 14579 ;; 14580 esac 14581 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14582 hardcode_libdir_separator_CXX=: 14583 inherit_rpath_CXX=yes 14584 ;; 14585 14586 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14587 case $cc_basename in 14588 KCC*) 14589 # Kuck and Associates, Inc. (KAI) C++ Compiler 14590 14591 # KCC will only create a shared library if the output file 14592 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14593 # to its proper name (with version) after linking. 14594 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' 14595 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' 14596 # Commands to make compiler produce verbose output that lists 14597 # what "hidden" libraries, object files and flags are used when 14598 # linking a shared library. 14599 # 14600 # There doesn't appear to be a way to prevent this compiler from 14601 # explicitly linking system object files so we need to strip them 14602 # from the output so that they don't get included in the library 14603 # dependencies. 14604 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"' 14605 14606 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14607 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14608 14609 # Archives containing C++ object files must be created using 14610 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14611 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14612 ;; 14613 icpc* | ecpc* ) 14614 # Intel C++ 14615 with_gnu_ld=yes 14616 # version 8.0 and above of icpc choke on multiply defined symbols 14617 # if we add $predep_objects and $postdep_objects, however 7.1 and 14618 # earlier do not add the objects themselves. 14619 case `$CC -V 2>&1` in 14620 *"Version 7."*) 14621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14622 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' 14623 ;; 14624 *) # Version 8.0 or newer 14625 tmp_idyn= 14626 case $host_cpu in 14627 ia64*) tmp_idyn=' -i_dynamic';; 14628 esac 14629 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14630 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' 14631 ;; 14632 esac 14633 archive_cmds_need_lc_CXX=no 14634 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14635 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14636 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14637 ;; 14638 pgCC* | pgcpp*) 14639 # Portland Group C++ compiler 14640 case `$CC -V` in 14641 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14642 prelink_cmds_CXX='tpldir=Template.dir~ 14643 rm -rf $tpldir~ 14644 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14645 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14646 old_archive_cmds_CXX='tpldir=Template.dir~ 14647 rm -rf $tpldir~ 14648 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14649 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14650 $RANLIB $oldlib' 14651 archive_cmds_CXX='tpldir=Template.dir~ 14652 rm -rf $tpldir~ 14653 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14654 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14655 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14656 rm -rf $tpldir~ 14657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14658 $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' 14659 ;; 14660 *) # Version 6 and above use weak symbols 14661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14662 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' 14663 ;; 14664 esac 14665 14666 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14667 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14668 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' 14669 ;; 14670 cxx*) 14671 # Compaq C++ 14672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14673 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' 14674 14675 runpath_var=LD_RUN_PATH 14676 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14677 hardcode_libdir_separator_CXX=: 14678 14679 # Commands to make compiler produce verbose output that lists 14680 # what "hidden" libraries, object files and flags are used when 14681 # linking a shared library. 14682 # 14683 # There doesn't appear to be a way to prevent this compiler from 14684 # explicitly linking system object files so we need to strip them 14685 # from the output so that they don't get included in the library 14686 # dependencies. 14687 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' 14688 ;; 14689 xl* | mpixl* | bgxl*) 14690 # IBM XL 8.0 on PPC, with GNU ld 14691 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14692 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14693 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14694 if test yes = "$supports_anon_versioning"; then 14695 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14697 echo "local: *; };" >> $output_objdir/$libname.ver~ 14698 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14699 fi 14700 ;; 14701 *) 14702 case `$CC -V 2>&1 | sed 5q` in 14703 *Sun\ C*) 14704 # Sun C++ 5.9 14705 no_undefined_flag_CXX=' -zdefs' 14706 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14707 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' 14708 hardcode_libdir_flag_spec_CXX='-R$libdir' 14709 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' 14710 compiler_needs_object_CXX=yes 14711 14712 # Not sure whether something based on 14713 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14714 # would be better. 14715 output_verbose_link_cmd='func_echo_all' 14716 14717 # Archives containing C++ object files must be created using 14718 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14719 # necessary to make sure instantiated templates are included 14720 # in the archive. 14721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14722 ;; 14723 esac 14724 ;; 14725 esac 14726 ;; 14727 14728 lynxos*) 14729 # FIXME: insert proper C++ library support 14730 ld_shlibs_CXX=no 14731 ;; 14732 14733 m88k*) 14734 # FIXME: insert proper C++ library support 14735 ld_shlibs_CXX=no 14736 ;; 14737 14738 mvs*) 14739 case $cc_basename in 14740 cxx*) 14741 # FIXME: insert proper C++ library support 14742 ld_shlibs_CXX=no 14743 ;; 14744 *) 14745 # FIXME: insert proper C++ library support 14746 ld_shlibs_CXX=no 14747 ;; 14748 esac 14749 ;; 14750 14751 netbsd*) 14752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14753 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14754 wlarc= 14755 hardcode_libdir_flag_spec_CXX='-R$libdir' 14756 hardcode_direct_CXX=yes 14757 hardcode_shlibpath_var_CXX=no 14758 fi 14759 # Workaround some broken pre-1.5 toolchains 14760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14761 ;; 14762 14763 *nto* | *qnx*) 14764 ld_shlibs_CXX=yes 14765 ;; 14766 14767 openbsd* | bitrig*) 14768 if test -f /usr/libexec/ld.so; then 14769 hardcode_direct_CXX=yes 14770 hardcode_shlibpath_var_CXX=no 14771 hardcode_direct_absolute_CXX=yes 14772 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14773 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14775 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14776 export_dynamic_flag_spec_CXX='$wl-E' 14777 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14778 fi 14779 output_verbose_link_cmd=func_echo_all 14780 else 14781 ld_shlibs_CXX=no 14782 fi 14783 ;; 14784 14785 osf3* | osf4* | osf5*) 14786 case $cc_basename in 14787 KCC*) 14788 # Kuck and Associates, Inc. (KAI) C++ Compiler 14789 14790 # KCC will only create a shared library if the output file 14791 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14792 # to its proper name (with version) after linking. 14793 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' 14794 14795 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14796 hardcode_libdir_separator_CXX=: 14797 14798 # Archives containing C++ object files must be created using 14799 # the KAI C++ compiler. 14800 case $host in 14801 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14802 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14803 esac 14804 ;; 14805 RCC*) 14806 # Rational C++ 2.4.1 14807 # FIXME: insert proper C++ library support 14808 ld_shlibs_CXX=no 14809 ;; 14810 cxx*) 14811 case $host in 14812 osf3*) 14813 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14814 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' 14815 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14816 ;; 14817 *) 14818 allow_undefined_flag_CXX=' -expect_unresolved \*' 14819 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' 14820 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14821 echo "-hidden">> $lib.exp~ 14822 $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~ 14823 $RM $lib.exp' 14824 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14825 ;; 14826 esac 14827 14828 hardcode_libdir_separator_CXX=: 14829 14830 # Commands to make compiler produce verbose output that lists 14831 # what "hidden" libraries, object files and flags are used when 14832 # linking a shared library. 14833 # 14834 # There doesn't appear to be a way to prevent this compiler from 14835 # explicitly linking system object files so we need to strip them 14836 # from the output so that they don't get included in the library 14837 # dependencies. 14838 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"' 14839 ;; 14840 *) 14841 if test yes,no = "$GXX,$with_gnu_ld"; then 14842 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14843 case $host in 14844 osf3*) 14845 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' 14846 ;; 14847 *) 14848 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' 14849 ;; 14850 esac 14851 14852 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14853 hardcode_libdir_separator_CXX=: 14854 14855 # Commands to make compiler produce verbose output that lists 14856 # what "hidden" libraries, object files and flags are used when 14857 # linking a shared library. 14858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14859 14860 else 14861 # FIXME: insert proper C++ library support 14862 ld_shlibs_CXX=no 14863 fi 14864 ;; 14865 esac 14866 ;; 14867 14868 psos*) 14869 # FIXME: insert proper C++ library support 14870 ld_shlibs_CXX=no 14871 ;; 14872 14873 sunos4*) 14874 case $cc_basename in 14875 CC*) 14876 # Sun C++ 4.x 14877 # FIXME: insert proper C++ library support 14878 ld_shlibs_CXX=no 14879 ;; 14880 lcc*) 14881 # Lucid 14882 # FIXME: insert proper C++ library support 14883 ld_shlibs_CXX=no 14884 ;; 14885 *) 14886 # FIXME: insert proper C++ library support 14887 ld_shlibs_CXX=no 14888 ;; 14889 esac 14890 ;; 14891 14892 solaris*) 14893 case $cc_basename in 14894 CC* | sunCC*) 14895 # Sun C++ 4.2, 5.x and Centerline C++ 14896 archive_cmds_need_lc_CXX=yes 14897 no_undefined_flag_CXX=' -zdefs' 14898 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14899 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14900 $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' 14901 14902 hardcode_libdir_flag_spec_CXX='-R$libdir' 14903 hardcode_shlibpath_var_CXX=no 14904 case $host_os in 14905 solaris2.[0-5] | solaris2.[0-5].*) ;; 14906 *) 14907 # The compiler driver will combine and reorder linker options, 14908 # but understands '-z linker_flag'. 14909 # Supported since Solaris 2.6 (maybe 2.5.1?) 14910 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14911 ;; 14912 esac 14913 link_all_deplibs_CXX=yes 14914 14915 output_verbose_link_cmd='func_echo_all' 14916 14917 # Archives containing C++ object files must be created using 14918 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14919 # necessary to make sure instantiated templates are included 14920 # in the archive. 14921 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14922 ;; 14923 gcx*) 14924 # Green Hills C++ Compiler 14925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14926 14927 # The C++ compiler must be used to create the archive. 14928 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14929 ;; 14930 *) 14931 # GNU C++ compiler with Solaris linker 14932 if test yes,no = "$GXX,$with_gnu_ld"; then 14933 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14934 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14935 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14936 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14937 $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' 14938 14939 # Commands to make compiler produce verbose output that lists 14940 # what "hidden" libraries, object files and flags are used when 14941 # linking a shared library. 14942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14943 else 14944 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14945 # platform. 14946 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14948 $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' 14949 14950 # Commands to make compiler produce verbose output that lists 14951 # what "hidden" libraries, object files and flags are used when 14952 # linking a shared library. 14953 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14954 fi 14955 14956 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14957 case $host_os in 14958 solaris2.[0-5] | solaris2.[0-5].*) ;; 14959 *) 14960 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14961 ;; 14962 esac 14963 fi 14964 ;; 14965 esac 14966 ;; 14967 14968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14969 no_undefined_flag_CXX='$wl-z,text' 14970 archive_cmds_need_lc_CXX=no 14971 hardcode_shlibpath_var_CXX=no 14972 runpath_var='LD_RUN_PATH' 14973 14974 case $cc_basename in 14975 CC*) 14976 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14977 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14978 ;; 14979 *) 14980 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14981 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14982 ;; 14983 esac 14984 ;; 14985 14986 sysv5* | sco3.2v5* | sco5v6*) 14987 # Note: We CANNOT use -z defs as we might desire, because we do not 14988 # link with -lc, and that would cause any symbols used from libc to 14989 # always be unresolved, which means just about no library would 14990 # ever link correctly. If we're not using GNU ld we use -z text 14991 # though, which does catch some bad symbols but isn't as heavy-handed 14992 # as -z defs. 14993 no_undefined_flag_CXX='$wl-z,text' 14994 allow_undefined_flag_CXX='$wl-z,nodefs' 14995 archive_cmds_need_lc_CXX=no 14996 hardcode_shlibpath_var_CXX=no 14997 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14998 hardcode_libdir_separator_CXX=':' 14999 link_all_deplibs_CXX=yes 15000 export_dynamic_flag_spec_CXX='$wl-Bexport' 15001 runpath_var='LD_RUN_PATH' 15002 15003 case $cc_basename in 15004 CC*) 15005 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15006 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15007 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15008 '"$old_archive_cmds_CXX" 15009 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15010 '"$reload_cmds_CXX" 15011 ;; 15012 *) 15013 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15014 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15015 ;; 15016 esac 15017 ;; 15018 15019 tandem*) 15020 case $cc_basename in 15021 NCC*) 15022 # NonStop-UX NCC 3.20 15023 # FIXME: insert proper C++ library support 15024 ld_shlibs_CXX=no 15025 ;; 15026 *) 15027 # FIXME: insert proper C++ library support 15028 ld_shlibs_CXX=no 15029 ;; 15030 esac 15031 ;; 15032 15033 vxworks*) 15034 # FIXME: insert proper C++ library support 15035 ld_shlibs_CXX=no 15036 ;; 15037 15038 *) 15039 # FIXME: insert proper C++ library support 15040 ld_shlibs_CXX=no 15041 ;; 15042 esac 15043 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15045$as_echo "$ld_shlibs_CXX" >&6; } 15046 test no = "$ld_shlibs_CXX" && can_build_shared=no 15047 15048 GCC_CXX=$GXX 15049 LD_CXX=$LD 15050 15051 ## CAVEAT EMPTOR: 15052 ## There is no encapsulation within the following macros, do not change 15053 ## the running order or otherwise move them around unless you know exactly 15054 ## what you are doing... 15055 # Dependencies to place before and after the object being linked: 15056predep_objects_CXX= 15057postdep_objects_CXX= 15058predeps_CXX= 15059postdeps_CXX= 15060compiler_lib_search_path_CXX= 15061 15062cat > conftest.$ac_ext <<_LT_EOF 15063class Foo 15064{ 15065public: 15066 Foo (void) { a = 0; } 15067private: 15068 int a; 15069}; 15070_LT_EOF 15071 15072 15073_lt_libdeps_save_CFLAGS=$CFLAGS 15074case "$CC $CFLAGS " in #( 15075*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15076*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15077*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15078esac 15079 15080if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15081 (eval $ac_compile) 2>&5 15082 ac_status=$? 15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15084 test $ac_status = 0; }; then 15085 # Parse the compiler output and extract the necessary 15086 # objects, libraries and library flags. 15087 15088 # Sentinel used to keep track of whether or not we are before 15089 # the conftest object file. 15090 pre_test_object_deps_done=no 15091 15092 for p in `eval "$output_verbose_link_cmd"`; do 15093 case $prev$p in 15094 15095 -L* | -R* | -l*) 15096 # Some compilers place space between "-{L,R}" and the path. 15097 # Remove the space. 15098 if test x-L = "$p" || 15099 test x-R = "$p"; then 15100 prev=$p 15101 continue 15102 fi 15103 15104 # Expand the sysroot to ease extracting the directories later. 15105 if test -z "$prev"; then 15106 case $p in 15107 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15108 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15109 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15110 esac 15111 fi 15112 case $p in 15113 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15114 esac 15115 if test no = "$pre_test_object_deps_done"; then 15116 case $prev in 15117 -L | -R) 15118 # Internal compiler library paths should come after those 15119 # provided the user. The postdeps already come after the 15120 # user supplied libs so there is no need to process them. 15121 if test -z "$compiler_lib_search_path_CXX"; then 15122 compiler_lib_search_path_CXX=$prev$p 15123 else 15124 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15125 fi 15126 ;; 15127 # The "-l" case would never come before the object being 15128 # linked, so don't bother handling this case. 15129 esac 15130 else 15131 if test -z "$postdeps_CXX"; then 15132 postdeps_CXX=$prev$p 15133 else 15134 postdeps_CXX="${postdeps_CXX} $prev$p" 15135 fi 15136 fi 15137 prev= 15138 ;; 15139 15140 *.lto.$objext) ;; # Ignore GCC LTO objects 15141 *.$objext) 15142 # This assumes that the test object file only shows up 15143 # once in the compiler output. 15144 if test "$p" = "conftest.$objext"; then 15145 pre_test_object_deps_done=yes 15146 continue 15147 fi 15148 15149 if test no = "$pre_test_object_deps_done"; then 15150 if test -z "$predep_objects_CXX"; then 15151 predep_objects_CXX=$p 15152 else 15153 predep_objects_CXX="$predep_objects_CXX $p" 15154 fi 15155 else 15156 if test -z "$postdep_objects_CXX"; then 15157 postdep_objects_CXX=$p 15158 else 15159 postdep_objects_CXX="$postdep_objects_CXX $p" 15160 fi 15161 fi 15162 ;; 15163 15164 *) ;; # Ignore the rest. 15165 15166 esac 15167 done 15168 15169 # Clean up. 15170 rm -f a.out a.exe 15171else 15172 echo "libtool.m4: error: problem compiling CXX test program" 15173fi 15174 15175$RM -f confest.$objext 15176CFLAGS=$_lt_libdeps_save_CFLAGS 15177 15178# PORTME: override above test on systems where it is broken 15179case $host_os in 15180interix[3-9]*) 15181 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15182 # hack all around it, let's just trust "g++" to DTRT. 15183 predep_objects_CXX= 15184 postdep_objects_CXX= 15185 postdeps_CXX= 15186 ;; 15187esac 15188 15189 15190case " $postdeps_CXX " in 15191*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15192esac 15193 compiler_lib_search_dirs_CXX= 15194if test -n "${compiler_lib_search_path_CXX}"; then 15195 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15196fi 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 lt_prog_compiler_wl_CXX= 15229lt_prog_compiler_pic_CXX= 15230lt_prog_compiler_static_CXX= 15231 15232 15233 # C++ specific cases for pic, static, wl, etc. 15234 if test yes = "$GXX"; then 15235 lt_prog_compiler_wl_CXX='-Wl,' 15236 lt_prog_compiler_static_CXX='-static' 15237 15238 case $host_os in 15239 aix*) 15240 # All AIX code is PIC. 15241 if test ia64 = "$host_cpu"; then 15242 # AIX 5 now supports IA64 processor 15243 lt_prog_compiler_static_CXX='-Bstatic' 15244 fi 15245 lt_prog_compiler_pic_CXX='-fPIC' 15246 ;; 15247 15248 amigaos*) 15249 case $host_cpu in 15250 powerpc) 15251 # see comment about AmigaOS4 .so support 15252 lt_prog_compiler_pic_CXX='-fPIC' 15253 ;; 15254 m68k) 15255 # FIXME: we need at least 68020 code to build shared libraries, but 15256 # adding the '-m68020' flag to GCC prevents building anything better, 15257 # like '-m68040'. 15258 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15259 ;; 15260 esac 15261 ;; 15262 15263 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15264 # PIC is the default for these OSes. 15265 ;; 15266 mingw* | cygwin* | os2* | pw32* | cegcc*) 15267 # This hack is so that the source file can tell whether it is being 15268 # built for inclusion in a dll (and should export symbols for example). 15269 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15270 # (--disable-auto-import) libraries 15271 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15272 case $host_os in 15273 os2*) 15274 lt_prog_compiler_static_CXX='$wl-static' 15275 ;; 15276 esac 15277 ;; 15278 darwin* | rhapsody*) 15279 # PIC is the default on this platform 15280 # Common symbols not allowed in MH_DYLIB files 15281 lt_prog_compiler_pic_CXX='-fno-common' 15282 ;; 15283 *djgpp*) 15284 # DJGPP does not support shared libraries at all 15285 lt_prog_compiler_pic_CXX= 15286 ;; 15287 haiku*) 15288 # PIC is the default for Haiku. 15289 # The "-static" flag exists, but is broken. 15290 lt_prog_compiler_static_CXX= 15291 ;; 15292 interix[3-9]*) 15293 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15294 # Instead, we relocate shared libraries at runtime. 15295 ;; 15296 sysv4*MP*) 15297 if test -d /usr/nec; then 15298 lt_prog_compiler_pic_CXX=-Kconform_pic 15299 fi 15300 ;; 15301 hpux*) 15302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15304 # sets the default TLS model and affects inlining. 15305 case $host_cpu in 15306 hppa*64*) 15307 ;; 15308 *) 15309 lt_prog_compiler_pic_CXX='-fPIC' 15310 ;; 15311 esac 15312 ;; 15313 *qnx* | *nto*) 15314 # QNX uses GNU C++, but need to define -shared option too, otherwise 15315 # it will coredump. 15316 lt_prog_compiler_pic_CXX='-fPIC -shared' 15317 ;; 15318 *) 15319 lt_prog_compiler_pic_CXX='-fPIC' 15320 ;; 15321 esac 15322 else 15323 case $host_os in 15324 aix[4-9]*) 15325 # All AIX code is PIC. 15326 if test ia64 = "$host_cpu"; then 15327 # AIX 5 now supports IA64 processor 15328 lt_prog_compiler_static_CXX='-Bstatic' 15329 else 15330 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15331 fi 15332 ;; 15333 chorus*) 15334 case $cc_basename in 15335 cxch68*) 15336 # Green Hills C++ Compiler 15337 # _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" 15338 ;; 15339 esac 15340 ;; 15341 mingw* | cygwin* | os2* | pw32* | cegcc*) 15342 # This hack is so that the source file can tell whether it is being 15343 # built for inclusion in a dll (and should export symbols for example). 15344 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15345 ;; 15346 dgux*) 15347 case $cc_basename in 15348 ec++*) 15349 lt_prog_compiler_pic_CXX='-KPIC' 15350 ;; 15351 ghcx*) 15352 # Green Hills C++ Compiler 15353 lt_prog_compiler_pic_CXX='-pic' 15354 ;; 15355 *) 15356 ;; 15357 esac 15358 ;; 15359 freebsd* | dragonfly*) 15360 # FreeBSD uses GNU C++ 15361 ;; 15362 hpux9* | hpux10* | hpux11*) 15363 case $cc_basename in 15364 CC*) 15365 lt_prog_compiler_wl_CXX='-Wl,' 15366 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15367 if test ia64 != "$host_cpu"; then 15368 lt_prog_compiler_pic_CXX='+Z' 15369 fi 15370 ;; 15371 aCC*) 15372 lt_prog_compiler_wl_CXX='-Wl,' 15373 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15374 case $host_cpu in 15375 hppa*64*|ia64*) 15376 # +Z the default 15377 ;; 15378 *) 15379 lt_prog_compiler_pic_CXX='+Z' 15380 ;; 15381 esac 15382 ;; 15383 *) 15384 ;; 15385 esac 15386 ;; 15387 interix*) 15388 # This is c89, which is MS Visual C++ (no shared libs) 15389 # Anyone wants to do a port? 15390 ;; 15391 irix5* | irix6* | nonstopux*) 15392 case $cc_basename in 15393 CC*) 15394 lt_prog_compiler_wl_CXX='-Wl,' 15395 lt_prog_compiler_static_CXX='-non_shared' 15396 # CC pic flag -KPIC is the default. 15397 ;; 15398 *) 15399 ;; 15400 esac 15401 ;; 15402 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15403 case $cc_basename in 15404 KCC*) 15405 # KAI C++ Compiler 15406 lt_prog_compiler_wl_CXX='--backend -Wl,' 15407 lt_prog_compiler_pic_CXX='-fPIC' 15408 ;; 15409 ecpc* ) 15410 # old Intel C++ for x86_64, which still supported -KPIC. 15411 lt_prog_compiler_wl_CXX='-Wl,' 15412 lt_prog_compiler_pic_CXX='-KPIC' 15413 lt_prog_compiler_static_CXX='-static' 15414 ;; 15415 icpc* ) 15416 # Intel C++, used to be incompatible with GCC. 15417 # ICC 10 doesn't accept -KPIC any more. 15418 lt_prog_compiler_wl_CXX='-Wl,' 15419 lt_prog_compiler_pic_CXX='-fPIC' 15420 lt_prog_compiler_static_CXX='-static' 15421 ;; 15422 pgCC* | pgcpp*) 15423 # Portland Group C++ compiler 15424 lt_prog_compiler_wl_CXX='-Wl,' 15425 lt_prog_compiler_pic_CXX='-fpic' 15426 lt_prog_compiler_static_CXX='-Bstatic' 15427 ;; 15428 cxx*) 15429 # Compaq C++ 15430 # Make sure the PIC flag is empty. It appears that all Alpha 15431 # Linux and Compaq Tru64 Unix objects are PIC. 15432 lt_prog_compiler_pic_CXX= 15433 lt_prog_compiler_static_CXX='-non_shared' 15434 ;; 15435 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15436 # IBM XL 8.0, 9.0 on PPC and BlueGene 15437 lt_prog_compiler_wl_CXX='-Wl,' 15438 lt_prog_compiler_pic_CXX='-qpic' 15439 lt_prog_compiler_static_CXX='-qstaticlink' 15440 ;; 15441 *) 15442 case `$CC -V 2>&1 | sed 5q` in 15443 *Sun\ C*) 15444 # Sun C++ 5.9 15445 lt_prog_compiler_pic_CXX='-KPIC' 15446 lt_prog_compiler_static_CXX='-Bstatic' 15447 lt_prog_compiler_wl_CXX='-Qoption ld ' 15448 ;; 15449 esac 15450 ;; 15451 esac 15452 ;; 15453 lynxos*) 15454 ;; 15455 m88k*) 15456 ;; 15457 mvs*) 15458 case $cc_basename in 15459 cxx*) 15460 lt_prog_compiler_pic_CXX='-W c,exportall' 15461 ;; 15462 *) 15463 ;; 15464 esac 15465 ;; 15466 netbsd*) 15467 ;; 15468 *qnx* | *nto*) 15469 # QNX uses GNU C++, but need to define -shared option too, otherwise 15470 # it will coredump. 15471 lt_prog_compiler_pic_CXX='-fPIC -shared' 15472 ;; 15473 osf3* | osf4* | osf5*) 15474 case $cc_basename in 15475 KCC*) 15476 lt_prog_compiler_wl_CXX='--backend -Wl,' 15477 ;; 15478 RCC*) 15479 # Rational C++ 2.4.1 15480 lt_prog_compiler_pic_CXX='-pic' 15481 ;; 15482 cxx*) 15483 # Digital/Compaq C++ 15484 lt_prog_compiler_wl_CXX='-Wl,' 15485 # Make sure the PIC flag is empty. It appears that all Alpha 15486 # Linux and Compaq Tru64 Unix objects are PIC. 15487 lt_prog_compiler_pic_CXX= 15488 lt_prog_compiler_static_CXX='-non_shared' 15489 ;; 15490 *) 15491 ;; 15492 esac 15493 ;; 15494 psos*) 15495 ;; 15496 solaris*) 15497 case $cc_basename in 15498 CC* | sunCC*) 15499 # Sun C++ 4.2, 5.x and Centerline C++ 15500 lt_prog_compiler_pic_CXX='-KPIC' 15501 lt_prog_compiler_static_CXX='-Bstatic' 15502 lt_prog_compiler_wl_CXX='-Qoption ld ' 15503 ;; 15504 gcx*) 15505 # Green Hills C++ Compiler 15506 lt_prog_compiler_pic_CXX='-PIC' 15507 ;; 15508 *) 15509 ;; 15510 esac 15511 ;; 15512 sunos4*) 15513 case $cc_basename in 15514 CC*) 15515 # Sun C++ 4.x 15516 lt_prog_compiler_pic_CXX='-pic' 15517 lt_prog_compiler_static_CXX='-Bstatic' 15518 ;; 15519 lcc*) 15520 # Lucid 15521 lt_prog_compiler_pic_CXX='-pic' 15522 ;; 15523 *) 15524 ;; 15525 esac 15526 ;; 15527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15528 case $cc_basename in 15529 CC*) 15530 lt_prog_compiler_wl_CXX='-Wl,' 15531 lt_prog_compiler_pic_CXX='-KPIC' 15532 lt_prog_compiler_static_CXX='-Bstatic' 15533 ;; 15534 esac 15535 ;; 15536 tandem*) 15537 case $cc_basename in 15538 NCC*) 15539 # NonStop-UX NCC 3.20 15540 lt_prog_compiler_pic_CXX='-KPIC' 15541 ;; 15542 *) 15543 ;; 15544 esac 15545 ;; 15546 vxworks*) 15547 ;; 15548 *) 15549 lt_prog_compiler_can_build_shared_CXX=no 15550 ;; 15551 esac 15552 fi 15553 15554case $host_os in 15555 # For platforms that do not support PIC, -DPIC is meaningless: 15556 *djgpp*) 15557 lt_prog_compiler_pic_CXX= 15558 ;; 15559 *) 15560 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15561 ;; 15562esac 15563 15564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15565$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15566if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15570fi 15571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15572$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15573lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15574 15575# 15576# Check to make sure the PIC flag actually works. 15577# 15578if test -n "$lt_prog_compiler_pic_CXX"; then 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15580$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15581if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583else 15584 lt_cv_prog_compiler_pic_works_CXX=no 15585 ac_outfile=conftest.$ac_objext 15586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15587 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15588 # Insert the option either (1) after the last *FLAGS variable, or 15589 # (2) before a word containing "conftest.", or (3) at the end. 15590 # Note that $ac_compile itself does not contain backslashes and begins 15591 # with a dollar sign (not a hyphen), so the echo should work correctly. 15592 # The option is referenced via a variable to avoid confusing sed. 15593 lt_compile=`echo "$ac_compile" | $SED \ 15594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15596 -e 's:$: $lt_compiler_flag:'` 15597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15598 (eval "$lt_compile" 2>conftest.err) 15599 ac_status=$? 15600 cat conftest.err >&5 15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15602 if (exit $ac_status) && test -s "$ac_outfile"; then 15603 # The compiler can only warn and ignore the option if not recognized 15604 # So say no if there are warnings other than the usual output. 15605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15608 lt_cv_prog_compiler_pic_works_CXX=yes 15609 fi 15610 fi 15611 $RM conftest* 15612 15613fi 15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15615$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15616 15617if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15618 case $lt_prog_compiler_pic_CXX in 15619 "" | " "*) ;; 15620 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15621 esac 15622else 15623 lt_prog_compiler_pic_CXX= 15624 lt_prog_compiler_can_build_shared_CXX=no 15625fi 15626 15627fi 15628 15629 15630 15631 15632 15633# 15634# Check to make sure the static flag actually works. 15635# 15636wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15638$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15639if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15640 $as_echo_n "(cached) " >&6 15641else 15642 lt_cv_prog_compiler_static_works_CXX=no 15643 save_LDFLAGS=$LDFLAGS 15644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15645 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15647 # The linker can only warn and ignore the option if not recognized 15648 # So say no if there are warnings 15649 if test -s conftest.err; then 15650 # Append any errors to the config.log. 15651 cat conftest.err 1>&5 15652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15654 if diff conftest.exp conftest.er2 >/dev/null; then 15655 lt_cv_prog_compiler_static_works_CXX=yes 15656 fi 15657 else 15658 lt_cv_prog_compiler_static_works_CXX=yes 15659 fi 15660 fi 15661 $RM -r conftest* 15662 LDFLAGS=$save_LDFLAGS 15663 15664fi 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15666$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15667 15668if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15669 : 15670else 15671 lt_prog_compiler_static_CXX= 15672fi 15673 15674 15675 15676 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15678$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15679if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15680 $as_echo_n "(cached) " >&6 15681else 15682 lt_cv_prog_compiler_c_o_CXX=no 15683 $RM -r conftest 2>/dev/null 15684 mkdir conftest 15685 cd conftest 15686 mkdir out 15687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15688 15689 lt_compiler_flag="-o out/conftest2.$ac_objext" 15690 # Insert the option either (1) after the last *FLAGS variable, or 15691 # (2) before a word containing "conftest.", or (3) at the end. 15692 # Note that $ac_compile itself does not contain backslashes and begins 15693 # with a dollar sign (not a hyphen), so the echo should work correctly. 15694 lt_compile=`echo "$ac_compile" | $SED \ 15695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15697 -e 's:$: $lt_compiler_flag:'` 15698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15699 (eval "$lt_compile" 2>out/conftest.err) 15700 ac_status=$? 15701 cat out/conftest.err >&5 15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15703 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15704 then 15705 # The compiler can only warn and ignore the option if not recognized 15706 # So say no if there are warnings 15707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15710 lt_cv_prog_compiler_c_o_CXX=yes 15711 fi 15712 fi 15713 chmod u+w . 2>&5 15714 $RM conftest* 15715 # SGI C++ compiler will create directory out/ii_files/ for 15716 # template instantiation 15717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15718 $RM out/* && rmdir out 15719 cd .. 15720 $RM -r conftest 15721 $RM conftest* 15722 15723fi 15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15725$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15726 15727 15728 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15731if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15732 $as_echo_n "(cached) " >&6 15733else 15734 lt_cv_prog_compiler_c_o_CXX=no 15735 $RM -r conftest 2>/dev/null 15736 mkdir conftest 15737 cd conftest 15738 mkdir out 15739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15740 15741 lt_compiler_flag="-o out/conftest2.$ac_objext" 15742 # Insert the option either (1) after the last *FLAGS variable, or 15743 # (2) before a word containing "conftest.", or (3) at the end. 15744 # Note that $ac_compile itself does not contain backslashes and begins 15745 # with a dollar sign (not a hyphen), so the echo should work correctly. 15746 lt_compile=`echo "$ac_compile" | $SED \ 15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15749 -e 's:$: $lt_compiler_flag:'` 15750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15751 (eval "$lt_compile" 2>out/conftest.err) 15752 ac_status=$? 15753 cat out/conftest.err >&5 15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15756 then 15757 # The compiler can only warn and ignore the option if not recognized 15758 # So say no if there are warnings 15759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15762 lt_cv_prog_compiler_c_o_CXX=yes 15763 fi 15764 fi 15765 chmod u+w . 2>&5 15766 $RM conftest* 15767 # SGI C++ compiler will create directory out/ii_files/ for 15768 # template instantiation 15769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15770 $RM out/* && rmdir out 15771 cd .. 15772 $RM -r conftest 15773 $RM conftest* 15774 15775fi 15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15777$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15778 15779 15780 15781 15782hard_links=nottested 15783if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15784 # do not overwrite the value of need_locks provided by the user 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15786$as_echo_n "checking if we can lock with hard links... " >&6; } 15787 hard_links=yes 15788 $RM conftest* 15789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15790 touch conftest.a 15791 ln conftest.a conftest.b 2>&5 || hard_links=no 15792 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15794$as_echo "$hard_links" >&6; } 15795 if test no = "$hard_links"; then 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15797$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15798 need_locks=warn 15799 fi 15800else 15801 need_locks=no 15802fi 15803 15804 15805 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15808 15809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15810 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15811 case $host_os in 15812 aix[4-9]*) 15813 # If we're using GNU nm, then we don't want the "-C" option. 15814 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15815 # Without the "-l" option, or with the "-B" option, AIX nm treats 15816 # weak defined symbols like other global defined symbols, whereas 15817 # GNU nm marks them as "W". 15818 # While the 'weak' keyword is ignored in the Export File, we need 15819 # it in the Import File for the 'aix-soname' feature, so we have 15820 # to replace the "-B" option with "-P" for AIX nm. 15821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15822 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' 15823 else 15824 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' 15825 fi 15826 ;; 15827 pw32*) 15828 export_symbols_cmds_CXX=$ltdll_cmds 15829 ;; 15830 cygwin* | mingw* | cegcc*) 15831 case $cc_basename in 15832 cl*) 15833 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15834 ;; 15835 *) 15836 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' 15837 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15838 ;; 15839 esac 15840 ;; 15841 *) 15842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15843 ;; 15844 esac 15845 15846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15847$as_echo "$ld_shlibs_CXX" >&6; } 15848test no = "$ld_shlibs_CXX" && can_build_shared=no 15849 15850with_gnu_ld_CXX=$with_gnu_ld 15851 15852 15853 15854 15855 15856 15857# 15858# Do we need to explicitly link libc? 15859# 15860case "x$archive_cmds_need_lc_CXX" in 15861x|xyes) 15862 # Assume -lc should be added 15863 archive_cmds_need_lc_CXX=yes 15864 15865 if test yes,yes = "$GCC,$enable_shared"; then 15866 case $archive_cmds_CXX in 15867 *'~'*) 15868 # FIXME: we may have to deal with multi-command sequences. 15869 ;; 15870 '$CC '*) 15871 # Test whether the compiler implicitly links with -lc since on some 15872 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15873 # to ld, don't add -lc before -lgcc. 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15875$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15876if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 $RM conftest* 15880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15881 15882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15883 (eval $ac_compile) 2>&5 15884 ac_status=$? 15885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15886 test $ac_status = 0; } 2>conftest.err; then 15887 soname=conftest 15888 lib=conftest 15889 libobjs=conftest.$ac_objext 15890 deplibs= 15891 wl=$lt_prog_compiler_wl_CXX 15892 pic_flag=$lt_prog_compiler_pic_CXX 15893 compiler_flags=-v 15894 linker_flags=-v 15895 verstring= 15896 output_objdir=. 15897 libname=conftest 15898 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15899 allow_undefined_flag_CXX= 15900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15901 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15902 ac_status=$? 15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15904 test $ac_status = 0; } 15905 then 15906 lt_cv_archive_cmds_need_lc_CXX=no 15907 else 15908 lt_cv_archive_cmds_need_lc_CXX=yes 15909 fi 15910 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15911 else 15912 cat conftest.err 1>&5 15913 fi 15914 $RM conftest* 15915 15916fi 15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15918$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15919 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15920 ;; 15921 esac 15922 fi 15923 ;; 15924esac 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15988$as_echo_n "checking dynamic linker characteristics... " >&6; } 15989 15990library_names_spec= 15991libname_spec='lib$name' 15992soname_spec= 15993shrext_cmds=.so 15994postinstall_cmds= 15995postuninstall_cmds= 15996finish_cmds= 15997finish_eval= 15998shlibpath_var= 15999shlibpath_overrides_runpath=unknown 16000version_type=none 16001dynamic_linker="$host_os ld.so" 16002sys_lib_dlsearch_path_spec="/lib /usr/lib" 16003need_lib_prefix=unknown 16004hardcode_into_libs=no 16005 16006# when you set need_version to no, make sure it does not cause -set_version 16007# flags to be left without arguments 16008need_version=unknown 16009 16010 16011 16012case $host_os in 16013aix3*) 16014 version_type=linux # correct to gnu/linux during the next big refactor 16015 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16016 shlibpath_var=LIBPATH 16017 16018 # AIX 3 has no versioning support, so we append a major version to the name. 16019 soname_spec='$libname$release$shared_ext$major' 16020 ;; 16021 16022aix[4-9]*) 16023 version_type=linux # correct to gnu/linux during the next big refactor 16024 need_lib_prefix=no 16025 need_version=no 16026 hardcode_into_libs=yes 16027 if test ia64 = "$host_cpu"; then 16028 # AIX 5 supports IA64 16029 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16030 shlibpath_var=LD_LIBRARY_PATH 16031 else 16032 # With GCC up to 2.95.x, collect2 would create an import file 16033 # for dependence libraries. The import file would start with 16034 # the line '#! .'. This would cause the generated library to 16035 # depend on '.', always an invalid library. This was fixed in 16036 # development snapshots of GCC prior to 3.0. 16037 case $host_os in 16038 aix4 | aix4.[01] | aix4.[01].*) 16039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16040 echo ' yes ' 16041 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16042 : 16043 else 16044 can_build_shared=no 16045 fi 16046 ;; 16047 esac 16048 # Using Import Files as archive members, it is possible to support 16049 # filename-based versioning of shared library archives on AIX. While 16050 # this would work for both with and without runtime linking, it will 16051 # prevent static linking of such archives. So we do filename-based 16052 # shared library versioning with .so extension only, which is used 16053 # when both runtime linking and shared linking is enabled. 16054 # Unfortunately, runtime linking may impact performance, so we do 16055 # not want this to be the default eventually. Also, we use the 16056 # versioned .so libs for executables only if there is the -brtl 16057 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16058 # To allow for filename-based versioning support, we need to create 16059 # libNAME.so.V as an archive file, containing: 16060 # *) an Import File, referring to the versioned filename of the 16061 # archive as well as the shared archive member, telling the 16062 # bitwidth (32 or 64) of that shared object, and providing the 16063 # list of exported symbols of that shared object, eventually 16064 # decorated with the 'weak' keyword 16065 # *) the shared object with the F_LOADONLY flag set, to really avoid 16066 # it being seen by the linker. 16067 # At run time we better use the real file rather than another symlink, 16068 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16069 16070 case $with_aix_soname,$aix_use_runtimelinking in 16071 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16072 # soname into executable. Probably we can add versioning support to 16073 # collect2, so additional links can be useful in future. 16074 aix,yes) # traditional libtool 16075 dynamic_linker='AIX unversionable lib.so' 16076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16077 # instead of lib<name>.a to let people know that these are not 16078 # typical AIX shared libraries. 16079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16080 ;; 16081 aix,no) # traditional AIX only 16082 dynamic_linker='AIX lib.a(lib.so.V)' 16083 # We preserve .a as extension for shared libraries through AIX4.2 16084 # and later when we are not doing run time linking. 16085 library_names_spec='$libname$release.a $libname.a' 16086 soname_spec='$libname$release$shared_ext$major' 16087 ;; 16088 svr4,*) # full svr4 only 16089 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16090 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16091 # We do not specify a path in Import Files, so LIBPATH fires. 16092 shlibpath_overrides_runpath=yes 16093 ;; 16094 *,yes) # both, prefer svr4 16095 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16096 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16097 # unpreferred sharedlib libNAME.a needs extra handling 16098 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"' 16099 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"' 16100 # We do not specify a path in Import Files, so LIBPATH fires. 16101 shlibpath_overrides_runpath=yes 16102 ;; 16103 *,no) # both, prefer aix 16104 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16105 library_names_spec='$libname$release.a $libname.a' 16106 soname_spec='$libname$release$shared_ext$major' 16107 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16108 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)' 16109 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"' 16110 ;; 16111 esac 16112 shlibpath_var=LIBPATH 16113 fi 16114 ;; 16115 16116amigaos*) 16117 case $host_cpu in 16118 powerpc) 16119 # Since July 2007 AmigaOS4 officially supports .so libraries. 16120 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16122 ;; 16123 m68k) 16124 library_names_spec='$libname.ixlibrary $libname.a' 16125 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16126 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' 16127 ;; 16128 esac 16129 ;; 16130 16131beos*) 16132 library_names_spec='$libname$shared_ext' 16133 dynamic_linker="$host_os ld.so" 16134 shlibpath_var=LIBRARY_PATH 16135 ;; 16136 16137bsdi[45]*) 16138 version_type=linux # correct to gnu/linux during the next big refactor 16139 need_version=no 16140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16141 soname_spec='$libname$release$shared_ext$major' 16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16146 # the default ld.so.conf also contains /usr/contrib/lib and 16147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16148 # libtool to hard-code these into programs 16149 ;; 16150 16151cygwin* | mingw* | pw32* | cegcc*) 16152 version_type=windows 16153 shrext_cmds=.dll 16154 need_version=no 16155 need_lib_prefix=no 16156 16157 case $GCC,$cc_basename in 16158 yes,*) 16159 # gcc 16160 library_names_spec='$libname.dll.a' 16161 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16162 postinstall_cmds='base_file=`basename \$file`~ 16163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16164 dldir=$destdir/`dirname \$dlpath`~ 16165 test -d \$dldir || mkdir -p \$dldir~ 16166 $install_prog $dir/$dlname \$dldir/$dlname~ 16167 chmod a+x \$dldir/$dlname~ 16168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16169 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16170 fi' 16171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16172 dlpath=$dir/\$dldll~ 16173 $RM \$dlpath' 16174 shlibpath_overrides_runpath=yes 16175 16176 case $host_os in 16177 cygwin*) 16178 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16179 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16180 16181 ;; 16182 mingw* | cegcc*) 16183 # MinGW DLLs use traditional 'lib' prefix 16184 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16185 ;; 16186 pw32*) 16187 # pw32 DLLs use 'pw' prefix rather than 'lib' 16188 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16189 ;; 16190 esac 16191 dynamic_linker='Win32 ld.exe' 16192 ;; 16193 16194 *,cl*) 16195 # Native MSVC 16196 libname_spec='$name' 16197 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16198 library_names_spec='$libname.dll.lib' 16199 16200 case $build_os in 16201 mingw*) 16202 sys_lib_search_path_spec= 16203 lt_save_ifs=$IFS 16204 IFS=';' 16205 for lt_path in $LIB 16206 do 16207 IFS=$lt_save_ifs 16208 # Let DOS variable expansion print the short 8.3 style file name. 16209 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16210 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16211 done 16212 IFS=$lt_save_ifs 16213 # Convert to MSYS style. 16214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16215 ;; 16216 cygwin*) 16217 # Convert to unix form, then to dos form, then back to unix form 16218 # but this time dos style (no spaces!) so that the unix form looks 16219 # like /cygdrive/c/PROGRA~1:/cygdr... 16220 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16221 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16222 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16223 ;; 16224 *) 16225 sys_lib_search_path_spec=$LIB 16226 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16227 # It is most probably a Windows format PATH. 16228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16229 else 16230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16231 fi 16232 # FIXME: find the short name or the path components, as spaces are 16233 # common. (e.g. "Program Files" -> "PROGRA~1") 16234 ;; 16235 esac 16236 16237 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16238 postinstall_cmds='base_file=`basename \$file`~ 16239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16240 dldir=$destdir/`dirname \$dlpath`~ 16241 test -d \$dldir || mkdir -p \$dldir~ 16242 $install_prog $dir/$dlname \$dldir/$dlname' 16243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16244 dlpath=$dir/\$dldll~ 16245 $RM \$dlpath' 16246 shlibpath_overrides_runpath=yes 16247 dynamic_linker='Win32 link.exe' 16248 ;; 16249 16250 *) 16251 # Assume MSVC wrapper 16252 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16253 dynamic_linker='Win32 ld.exe' 16254 ;; 16255 esac 16256 # FIXME: first we should search . and the directory the executable is in 16257 shlibpath_var=PATH 16258 ;; 16259 16260darwin* | rhapsody*) 16261 dynamic_linker="$host_os dyld" 16262 version_type=darwin 16263 need_lib_prefix=no 16264 need_version=no 16265 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16266 soname_spec='$libname$release$major$shared_ext' 16267 shlibpath_overrides_runpath=yes 16268 shlibpath_var=DYLD_LIBRARY_PATH 16269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16270 16271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16272 ;; 16273 16274dgux*) 16275 version_type=linux # correct to gnu/linux during the next big refactor 16276 need_lib_prefix=no 16277 need_version=no 16278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16279 soname_spec='$libname$release$shared_ext$major' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 ;; 16282 16283freebsd* | dragonfly*) 16284 # DragonFly does not have aout. When/if they implement a new 16285 # versioning mechanism, adjust this. 16286 if test -x /usr/bin/objformat; then 16287 objformat=`/usr/bin/objformat` 16288 else 16289 case $host_os in 16290 freebsd[23].*) objformat=aout ;; 16291 *) objformat=elf ;; 16292 esac 16293 fi 16294 version_type=freebsd-$objformat 16295 case $version_type in 16296 freebsd-elf*) 16297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16298 soname_spec='$libname$release$shared_ext$major' 16299 need_version=no 16300 need_lib_prefix=no 16301 ;; 16302 freebsd-*) 16303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16304 need_version=yes 16305 ;; 16306 esac 16307 shlibpath_var=LD_LIBRARY_PATH 16308 case $host_os in 16309 freebsd2.*) 16310 shlibpath_overrides_runpath=yes 16311 ;; 16312 freebsd3.[01]* | freebsdelf3.[01]*) 16313 shlibpath_overrides_runpath=yes 16314 hardcode_into_libs=yes 16315 ;; 16316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16318 shlibpath_overrides_runpath=no 16319 hardcode_into_libs=yes 16320 ;; 16321 *) # from 4.6 on, and DragonFly 16322 shlibpath_overrides_runpath=yes 16323 hardcode_into_libs=yes 16324 ;; 16325 esac 16326 ;; 16327 16328haiku*) 16329 version_type=linux # correct to gnu/linux during the next big refactor 16330 need_lib_prefix=no 16331 need_version=no 16332 dynamic_linker="$host_os runtime_loader" 16333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16334 soname_spec='$libname$release$shared_ext$major' 16335 shlibpath_var=LIBRARY_PATH 16336 shlibpath_overrides_runpath=no 16337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16338 hardcode_into_libs=yes 16339 ;; 16340 16341hpux9* | hpux10* | hpux11*) 16342 # Give a soname corresponding to the major version so that dld.sl refuses to 16343 # link against other versions. 16344 version_type=sunos 16345 need_lib_prefix=no 16346 need_version=no 16347 case $host_cpu in 16348 ia64*) 16349 shrext_cmds='.so' 16350 hardcode_into_libs=yes 16351 dynamic_linker="$host_os dld.so" 16352 shlibpath_var=LD_LIBRARY_PATH 16353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16355 soname_spec='$libname$release$shared_ext$major' 16356 if test 32 = "$HPUX_IA64_MODE"; then 16357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16358 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16359 else 16360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16361 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16362 fi 16363 ;; 16364 hppa*64*) 16365 shrext_cmds='.sl' 16366 hardcode_into_libs=yes 16367 dynamic_linker="$host_os dld.sl" 16368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16371 soname_spec='$libname$release$shared_ext$major' 16372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16374 ;; 16375 *) 16376 shrext_cmds='.sl' 16377 dynamic_linker="$host_os dld.sl" 16378 shlibpath_var=SHLIB_PATH 16379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16381 soname_spec='$libname$release$shared_ext$major' 16382 ;; 16383 esac 16384 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16385 postinstall_cmds='chmod 555 $lib' 16386 # or fails outright, so override atomically: 16387 install_override_mode=555 16388 ;; 16389 16390interix[3-9]*) 16391 version_type=linux # correct to gnu/linux during the next big refactor 16392 need_lib_prefix=no 16393 need_version=no 16394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16395 soname_spec='$libname$release$shared_ext$major' 16396 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16397 shlibpath_var=LD_LIBRARY_PATH 16398 shlibpath_overrides_runpath=no 16399 hardcode_into_libs=yes 16400 ;; 16401 16402irix5* | irix6* | nonstopux*) 16403 case $host_os in 16404 nonstopux*) version_type=nonstopux ;; 16405 *) 16406 if test yes = "$lt_cv_prog_gnu_ld"; then 16407 version_type=linux # correct to gnu/linux during the next big refactor 16408 else 16409 version_type=irix 16410 fi ;; 16411 esac 16412 need_lib_prefix=no 16413 need_version=no 16414 soname_spec='$libname$release$shared_ext$major' 16415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16416 case $host_os in 16417 irix5* | nonstopux*) 16418 libsuff= shlibsuff= 16419 ;; 16420 *) 16421 case $LD in # libtool.m4 will add one of these switches to LD 16422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16423 libsuff= shlibsuff= libmagic=32-bit;; 16424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16425 libsuff=32 shlibsuff=N32 libmagic=N32;; 16426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16427 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16428 *) libsuff= shlibsuff= libmagic=never-match;; 16429 esac 16430 ;; 16431 esac 16432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16433 shlibpath_overrides_runpath=no 16434 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16435 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16436 hardcode_into_libs=yes 16437 ;; 16438 16439# No shared lib support for Linux oldld, aout, or coff. 16440linux*oldld* | linux*aout* | linux*coff*) 16441 dynamic_linker=no 16442 ;; 16443 16444linux*android*) 16445 version_type=none # Android doesn't support versioned libraries. 16446 need_lib_prefix=no 16447 need_version=no 16448 library_names_spec='$libname$release$shared_ext' 16449 soname_spec='$libname$release$shared_ext' 16450 finish_cmds= 16451 shlibpath_var=LD_LIBRARY_PATH 16452 shlibpath_overrides_runpath=yes 16453 16454 # This implies no fast_install, which is unacceptable. 16455 # Some rework will be needed to allow for fast_install 16456 # before this can be enabled. 16457 hardcode_into_libs=yes 16458 16459 dynamic_linker='Android linker' 16460 # Don't embed -rpath directories since the linker doesn't support them. 16461 hardcode_libdir_flag_spec_CXX='-L$libdir' 16462 ;; 16463 16464# This must be glibc/ELF. 16465linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16466 version_type=linux # correct to gnu/linux during the next big refactor 16467 need_lib_prefix=no 16468 need_version=no 16469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16470 soname_spec='$libname$release$shared_ext$major' 16471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16472 shlibpath_var=LD_LIBRARY_PATH 16473 shlibpath_overrides_runpath=no 16474 16475 # Some binutils ld are patched to set DT_RUNPATH 16476 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16477 $as_echo_n "(cached) " >&6 16478else 16479 lt_cv_shlibpath_overrides_runpath=no 16480 save_LDFLAGS=$LDFLAGS 16481 save_libdir=$libdir 16482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485/* end confdefs.h. */ 16486 16487int 16488main () 16489{ 16490 16491 ; 16492 return 0; 16493} 16494_ACEOF 16495if ac_fn_cxx_try_link "$LINENO"; then : 16496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16497 lt_cv_shlibpath_overrides_runpath=yes 16498fi 16499fi 16500rm -f core conftest.err conftest.$ac_objext \ 16501 conftest$ac_exeext conftest.$ac_ext 16502 LDFLAGS=$save_LDFLAGS 16503 libdir=$save_libdir 16504 16505fi 16506 16507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16508 16509 # This implies no fast_install, which is unacceptable. 16510 # Some rework will be needed to allow for fast_install 16511 # before this can be enabled. 16512 hardcode_into_libs=yes 16513 16514 # Ideally, we could use ldconfig to report *all* directores which are 16515 # searched for libraries, however this is still not possible. Aside from not 16516 # being certain /sbin/ldconfig is available, command 16517 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16518 # even though it is searched at run-time. Try to do the best guess by 16519 # appending ld.so.conf contents (and includes) to the search path. 16520 if test -f /etc/ld.so.conf; then 16521 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' ' '` 16522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16523 fi 16524 16525 # We used to test for /lib/ld.so.1 and disable shared libraries on 16526 # powerpc, because MkLinux only supported shared libraries with the 16527 # GNU dynamic linker. Since this was broken with cross compilers, 16528 # most powerpc-linux boxes support dynamic linking these days and 16529 # people can always --disable-shared, the test was removed, and we 16530 # assume the GNU/Linux dynamic linker is in use. 16531 dynamic_linker='GNU/Linux ld.so' 16532 ;; 16533 16534netbsd*) 16535 version_type=sunos 16536 need_lib_prefix=no 16537 need_version=no 16538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16539 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16541 dynamic_linker='NetBSD (a.out) ld.so' 16542 else 16543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16544 soname_spec='$libname$release$shared_ext$major' 16545 dynamic_linker='NetBSD ld.elf_so' 16546 fi 16547 shlibpath_var=LD_LIBRARY_PATH 16548 shlibpath_overrides_runpath=yes 16549 hardcode_into_libs=yes 16550 ;; 16551 16552newsos6) 16553 version_type=linux # correct to gnu/linux during the next big refactor 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=yes 16557 ;; 16558 16559*nto* | *qnx*) 16560 version_type=qnx 16561 need_lib_prefix=no 16562 need_version=no 16563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16564 soname_spec='$libname$release$shared_ext$major' 16565 shlibpath_var=LD_LIBRARY_PATH 16566 shlibpath_overrides_runpath=no 16567 hardcode_into_libs=yes 16568 dynamic_linker='ldqnx.so' 16569 ;; 16570 16571openbsd* | bitrig*) 16572 version_type=sunos 16573 sys_lib_dlsearch_path_spec=/usr/lib 16574 need_lib_prefix=no 16575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16576 need_version=no 16577 else 16578 need_version=yes 16579 fi 16580 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16582 shlibpath_var=LD_LIBRARY_PATH 16583 shlibpath_overrides_runpath=yes 16584 ;; 16585 16586os2*) 16587 libname_spec='$name' 16588 version_type=windows 16589 shrext_cmds=.dll 16590 need_version=no 16591 need_lib_prefix=no 16592 # OS/2 can only load a DLL with a base name of 8 characters or less. 16593 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16594 v=$($ECHO $release$versuffix | tr -d .-); 16595 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16596 $ECHO $n$v`$shared_ext' 16597 library_names_spec='${libname}_dll.$libext' 16598 dynamic_linker='OS/2 ld.exe' 16599 shlibpath_var=BEGINLIBPATH 16600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16602 postinstall_cmds='base_file=`basename \$file`~ 16603 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16604 dldir=$destdir/`dirname \$dlpath`~ 16605 test -d \$dldir || mkdir -p \$dldir~ 16606 $install_prog $dir/$dlname \$dldir/$dlname~ 16607 chmod a+x \$dldir/$dlname~ 16608 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16609 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16610 fi' 16611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16612 dlpath=$dir/\$dldll~ 16613 $RM \$dlpath' 16614 ;; 16615 16616osf3* | osf4* | osf5*) 16617 version_type=osf 16618 need_lib_prefix=no 16619 need_version=no 16620 soname_spec='$libname$release$shared_ext$major' 16621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16622 shlibpath_var=LD_LIBRARY_PATH 16623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16625 ;; 16626 16627rdos*) 16628 dynamic_linker=no 16629 ;; 16630 16631solaris*) 16632 version_type=linux # correct to gnu/linux during the next big refactor 16633 need_lib_prefix=no 16634 need_version=no 16635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16636 soname_spec='$libname$release$shared_ext$major' 16637 shlibpath_var=LD_LIBRARY_PATH 16638 shlibpath_overrides_runpath=yes 16639 hardcode_into_libs=yes 16640 # ldd complains unless libraries are executable 16641 postinstall_cmds='chmod +x $lib' 16642 ;; 16643 16644sunos4*) 16645 version_type=sunos 16646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16648 shlibpath_var=LD_LIBRARY_PATH 16649 shlibpath_overrides_runpath=yes 16650 if test yes = "$with_gnu_ld"; then 16651 need_lib_prefix=no 16652 fi 16653 need_version=yes 16654 ;; 16655 16656sysv4 | sysv4.3*) 16657 version_type=linux # correct to gnu/linux during the next big refactor 16658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16659 soname_spec='$libname$release$shared_ext$major' 16660 shlibpath_var=LD_LIBRARY_PATH 16661 case $host_vendor in 16662 sni) 16663 shlibpath_overrides_runpath=no 16664 need_lib_prefix=no 16665 runpath_var=LD_RUN_PATH 16666 ;; 16667 siemens) 16668 need_lib_prefix=no 16669 ;; 16670 motorola) 16671 need_lib_prefix=no 16672 need_version=no 16673 shlibpath_overrides_runpath=no 16674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16675 ;; 16676 esac 16677 ;; 16678 16679sysv4*MP*) 16680 if test -d /usr/nec; then 16681 version_type=linux # correct to gnu/linux during the next big refactor 16682 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16683 soname_spec='$libname$shared_ext.$major' 16684 shlibpath_var=LD_LIBRARY_PATH 16685 fi 16686 ;; 16687 16688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16689 version_type=sco 16690 need_lib_prefix=no 16691 need_version=no 16692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16693 soname_spec='$libname$release$shared_ext$major' 16694 shlibpath_var=LD_LIBRARY_PATH 16695 shlibpath_overrides_runpath=yes 16696 hardcode_into_libs=yes 16697 if test yes = "$with_gnu_ld"; then 16698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16699 else 16700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16701 case $host_os in 16702 sco3.2v5*) 16703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16704 ;; 16705 esac 16706 fi 16707 sys_lib_dlsearch_path_spec='/usr/lib' 16708 ;; 16709 16710tpf*) 16711 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16712 version_type=linux # correct to gnu/linux during the next big refactor 16713 need_lib_prefix=no 16714 need_version=no 16715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16716 shlibpath_var=LD_LIBRARY_PATH 16717 shlibpath_overrides_runpath=no 16718 hardcode_into_libs=yes 16719 ;; 16720 16721uts4*) 16722 version_type=linux # correct to gnu/linux during the next big refactor 16723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16724 soname_spec='$libname$release$shared_ext$major' 16725 shlibpath_var=LD_LIBRARY_PATH 16726 ;; 16727 16728*) 16729 dynamic_linker=no 16730 ;; 16731esac 16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16733$as_echo "$dynamic_linker" >&6; } 16734test no = "$dynamic_linker" && can_build_shared=no 16735 16736variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16737if test yes = "$GCC"; then 16738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16739fi 16740 16741if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16742 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16743fi 16744 16745if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16746 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16747fi 16748 16749# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16750configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16751 16752# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16753func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16754 16755# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16756configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16798$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16799hardcode_action_CXX= 16800if test -n "$hardcode_libdir_flag_spec_CXX" || 16801 test -n "$runpath_var_CXX" || 16802 test yes = "$hardcode_automatic_CXX"; then 16803 16804 # We can hardcode non-existent directories. 16805 if test no != "$hardcode_direct_CXX" && 16806 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16807 # have to relink, otherwise we might link with an installed library 16808 # when we should be linking with a yet-to-be-installed one 16809 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16810 test no != "$hardcode_minus_L_CXX"; then 16811 # Linking always hardcodes the temporary library directory. 16812 hardcode_action_CXX=relink 16813 else 16814 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16815 hardcode_action_CXX=immediate 16816 fi 16817else 16818 # We cannot hardcode anything, or else we can only hardcode existing 16819 # directories. 16820 hardcode_action_CXX=unsupported 16821fi 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16823$as_echo "$hardcode_action_CXX" >&6; } 16824 16825if test relink = "$hardcode_action_CXX" || 16826 test yes = "$inherit_rpath_CXX"; then 16827 # Fast installation is not supported 16828 enable_fast_install=no 16829elif test yes = "$shlibpath_overrides_runpath" || 16830 test no = "$enable_shared"; then 16831 # Fast installation is not necessary 16832 enable_fast_install=needless 16833fi 16834 16835 16836 16837 16838 16839 16840 16841 fi # test -n "$compiler" 16842 16843 CC=$lt_save_CC 16844 CFLAGS=$lt_save_CFLAGS 16845 LDCXX=$LD 16846 LD=$lt_save_LD 16847 GCC=$lt_save_GCC 16848 with_gnu_ld=$lt_save_with_gnu_ld 16849 lt_cv_path_LDCXX=$lt_cv_path_LD 16850 lt_cv_path_LD=$lt_save_path_LD 16851 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16852 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16853fi # test yes != "$_lt_caught_CXX_error" 16854 16855ac_ext=c 16856ac_cpp='$CPP $CPPFLAGS' 16857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16859ac_compiler_gnu=$ac_cv_c_compiler_gnu 16860 16861 16862 16863# Enable support for silent build rules 16864# Check whether --enable-silent-rules was given. 16865if test "${enable_silent_rules+set}" = set; then : 16866 enableval=$enable_silent_rules; 16867fi 16868 16869case $enable_silent_rules in # ((( 16870 yes) AM_DEFAULT_VERBOSITY=0;; 16871 no) AM_DEFAULT_VERBOSITY=1;; 16872 *) AM_DEFAULT_VERBOSITY=1;; 16873esac 16874am_make=${MAKE-make} 16875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16876$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16877if ${am_cv_make_support_nested_variables+:} false; then : 16878 $as_echo_n "(cached) " >&6 16879else 16880 if $as_echo 'TRUE=$(BAR$(V)) 16881BAR0=false 16882BAR1=true 16883V=1 16884am__doit: 16885 @$(TRUE) 16886.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16887 am_cv_make_support_nested_variables=yes 16888else 16889 am_cv_make_support_nested_variables=no 16890fi 16891fi 16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16893$as_echo "$am_cv_make_support_nested_variables" >&6; } 16894if test $am_cv_make_support_nested_variables = yes; then 16895 AM_V='$(V)' 16896 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16897else 16898 AM_V=$AM_DEFAULT_VERBOSITY 16899 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16900fi 16901AM_BACKSLASH='\' 16902 16903 16904tiff_libs_private= 16905 16906 16907case "${host_os}" in 16908 cygwin* | mingw32* | beos* | darwin*) 16909 ;; 16910 *) 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16912$as_echo_n "checking for sin in -lm... " >&6; } 16913if ${ac_cv_lib_m_sin+:} false; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 ac_check_lib_save_LIBS=$LIBS 16917LIBS="-lm $LIBS" 16918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920 16921/* Override any GCC internal prototype to avoid an error. 16922 Use char because int might match the return type of a GCC 16923 builtin and then its argument prototype would still apply. */ 16924#ifdef __cplusplus 16925extern "C" 16926#endif 16927char sin (); 16928int 16929main () 16930{ 16931return sin (); 16932 ; 16933 return 0; 16934} 16935_ACEOF 16936if ac_fn_c_try_link "$LINENO"; then : 16937 ac_cv_lib_m_sin=yes 16938else 16939 ac_cv_lib_m_sin=no 16940fi 16941rm -f core conftest.err conftest.$ac_objext \ 16942 conftest$ac_exeext conftest.$ac_ext 16943LIBS=$ac_check_lib_save_LIBS 16944fi 16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16946$as_echo "$ac_cv_lib_m_sin" >&6; } 16947if test "x$ac_cv_lib_m_sin" = xyes; then : 16948 libm_lib=yes 16949else 16950 libm_lib=no 16951fi 16952 16953 if test "x$libm_lib" = "xyes" ; then 16954 LIBS="-lm $LIBS" 16955 tiff_libs_private="-lm ${tiff_libs_private}" 16956 fi 16957 ;; 16958esac 16959 16960for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16961do : 16962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16965 cat >>confdefs.h <<_ACEOF 16966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16967_ACEOF 16968 16969fi 16970 16971done 16972 16973 16974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16975$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16976if ${ac_cv_c_const+:} false; then : 16977 $as_echo_n "(cached) " >&6 16978else 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981 16982int 16983main () 16984{ 16985 16986#ifndef __cplusplus 16987 /* Ultrix mips cc rejects this sort of thing. */ 16988 typedef int charset[2]; 16989 const charset cs = { 0, 0 }; 16990 /* SunOS 4.1.1 cc rejects this. */ 16991 char const *const *pcpcc; 16992 char **ppc; 16993 /* NEC SVR4.0.2 mips cc rejects this. */ 16994 struct point {int x, y;}; 16995 static struct point const zero = {0,0}; 16996 /* AIX XL C 1.02.0.0 rejects this. 16997 It does not let you subtract one const X* pointer from another in 16998 an arm of an if-expression whose if-part is not a constant 16999 expression */ 17000 const char *g = "string"; 17001 pcpcc = &g + (g ? g-g : 0); 17002 /* HPUX 7.0 cc rejects these. */ 17003 ++pcpcc; 17004 ppc = (char**) pcpcc; 17005 pcpcc = (char const *const *) ppc; 17006 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17007 char tx; 17008 char *t = &tx; 17009 char const *s = 0 ? (char *) 0 : (char const *) 0; 17010 17011 *t++ = 0; 17012 if (s) return 0; 17013 } 17014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17015 int x[] = {25, 17}; 17016 const int *foo = &x[0]; 17017 ++foo; 17018 } 17019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17020 typedef const int *iptr; 17021 iptr p = 0; 17022 ++p; 17023 } 17024 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17026 struct s { int j; const int *ap[3]; } bx; 17027 struct s *b = &bx; b->j = 5; 17028 } 17029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17030 const int foo = 10; 17031 if (!foo) return 0; 17032 } 17033 return !cs[0] && !zero.x; 17034#endif 17035 17036 ; 17037 return 0; 17038} 17039_ACEOF 17040if ac_fn_c_try_compile "$LINENO"; then : 17041 ac_cv_c_const=yes 17042else 17043 ac_cv_c_const=no 17044fi 17045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17046fi 17047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17048$as_echo "$ac_cv_c_const" >&6; } 17049if test $ac_cv_c_const = no; then 17050 17051$as_echo "#define const /**/" >>confdefs.h 17052 17053fi 17054 17055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17056$as_echo_n "checking for inline... " >&6; } 17057if ${ac_cv_c_inline+:} false; then : 17058 $as_echo_n "(cached) " >&6 17059else 17060 ac_cv_c_inline=no 17061for ac_kw in inline __inline__ __inline; do 17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064#ifndef __cplusplus 17065typedef int foo_t; 17066static $ac_kw foo_t static_foo () {return 0; } 17067$ac_kw foo_t foo () {return 0; } 17068#endif 17069 17070_ACEOF 17071if ac_fn_c_try_compile "$LINENO"; then : 17072 ac_cv_c_inline=$ac_kw 17073fi 17074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17075 test "$ac_cv_c_inline" != no && break 17076done 17077 17078fi 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17080$as_echo "$ac_cv_c_inline" >&6; } 17081 17082case $ac_cv_c_inline in 17083 inline | yes) ;; 17084 *) 17085 case $ac_cv_c_inline in 17086 no) ac_val=;; 17087 *) ac_val=$ac_cv_c_inline;; 17088 esac 17089 cat >>confdefs.h <<_ACEOF 17090#ifndef __cplusplus 17091#define inline $ac_val 17092#endif 17093_ACEOF 17094 ;; 17095esac 17096 17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17098$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17099if ${ac_cv_c_bigendian+:} false; then : 17100 $as_echo_n "(cached) " >&6 17101else 17102 ac_cv_c_bigendian=unknown 17103 # See if we're dealing with a universal compiler. 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17105/* end confdefs.h. */ 17106#ifndef __APPLE_CC__ 17107 not a universal capable compiler 17108 #endif 17109 typedef int dummy; 17110 17111_ACEOF 17112if ac_fn_c_try_compile "$LINENO"; then : 17113 17114 # Check for potential -arch flags. It is not universal unless 17115 # there are at least two -arch flags with different values. 17116 ac_arch= 17117 ac_prev= 17118 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17119 if test -n "$ac_prev"; then 17120 case $ac_word in 17121 i?86 | x86_64 | ppc | ppc64) 17122 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17123 ac_arch=$ac_word 17124 else 17125 ac_cv_c_bigendian=universal 17126 break 17127 fi 17128 ;; 17129 esac 17130 ac_prev= 17131 elif test "x$ac_word" = "x-arch"; then 17132 ac_prev=arch 17133 fi 17134 done 17135fi 17136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17137 if test $ac_cv_c_bigendian = unknown; then 17138 # See if sys/param.h defines the BYTE_ORDER macro. 17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141#include <sys/types.h> 17142 #include <sys/param.h> 17143 17144int 17145main () 17146{ 17147#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17148 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17149 && LITTLE_ENDIAN) 17150 bogus endian macros 17151 #endif 17152 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157if ac_fn_c_try_compile "$LINENO"; then : 17158 # It does; now see whether it defined to BIG_ENDIAN or not. 17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17160/* end confdefs.h. */ 17161#include <sys/types.h> 17162 #include <sys/param.h> 17163 17164int 17165main () 17166{ 17167#if BYTE_ORDER != BIG_ENDIAN 17168 not big endian 17169 #endif 17170 17171 ; 17172 return 0; 17173} 17174_ACEOF 17175if ac_fn_c_try_compile "$LINENO"; then : 17176 ac_cv_c_bigendian=yes 17177else 17178 ac_cv_c_bigendian=no 17179fi 17180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17181fi 17182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17183 fi 17184 if test $ac_cv_c_bigendian = unknown; then 17185 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187/* end confdefs.h. */ 17188#include <limits.h> 17189 17190int 17191main () 17192{ 17193#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17194 bogus endian macros 17195 #endif 17196 17197 ; 17198 return 0; 17199} 17200_ACEOF 17201if ac_fn_c_try_compile "$LINENO"; then : 17202 # It does; now see whether it defined to _BIG_ENDIAN or not. 17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17204/* end confdefs.h. */ 17205#include <limits.h> 17206 17207int 17208main () 17209{ 17210#ifndef _BIG_ENDIAN 17211 not big endian 17212 #endif 17213 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_compile "$LINENO"; then : 17219 ac_cv_c_bigendian=yes 17220else 17221 ac_cv_c_bigendian=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17224fi 17225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17226 fi 17227 if test $ac_cv_c_bigendian = unknown; then 17228 # Compile a test program. 17229 if test "$cross_compiling" = yes; then : 17230 # Try to guess by grepping values from an object file. 17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233short int ascii_mm[] = 17234 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17235 short int ascii_ii[] = 17236 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17237 int use_ascii (int i) { 17238 return ascii_mm[i] + ascii_ii[i]; 17239 } 17240 short int ebcdic_ii[] = 17241 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17242 short int ebcdic_mm[] = 17243 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17244 int use_ebcdic (int i) { 17245 return ebcdic_mm[i] + ebcdic_ii[i]; 17246 } 17247 extern int foo; 17248 17249int 17250main () 17251{ 17252return use_ascii (foo) == use_ebcdic (foo); 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257if ac_fn_c_try_compile "$LINENO"; then : 17258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17259 ac_cv_c_bigendian=yes 17260 fi 17261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17262 if test "$ac_cv_c_bigendian" = unknown; then 17263 ac_cv_c_bigendian=no 17264 else 17265 # finding both strings is unlikely to happen, but who knows? 17266 ac_cv_c_bigendian=unknown 17267 fi 17268 fi 17269fi 17270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17271else 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17273/* end confdefs.h. */ 17274$ac_includes_default 17275int 17276main () 17277{ 17278 17279 /* Are we little or big endian? From Harbison&Steele. */ 17280 union 17281 { 17282 long int l; 17283 char c[sizeof (long int)]; 17284 } u; 17285 u.l = 1; 17286 return u.c[sizeof (long int) - 1] == 1; 17287 17288 ; 17289 return 0; 17290} 17291_ACEOF 17292if ac_fn_c_try_run "$LINENO"; then : 17293 ac_cv_c_bigendian=no 17294else 17295 ac_cv_c_bigendian=yes 17296fi 17297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17298 conftest.$ac_objext conftest.beam conftest.$ac_ext 17299fi 17300 17301 fi 17302fi 17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17304$as_echo "$ac_cv_c_bigendian" >&6; } 17305 case $ac_cv_c_bigendian in #( 17306 yes) 17307 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17308;; #( 17309 no) 17310 ;; #( 17311 universal) 17312 17313$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17314 17315 ;; #( 17316 *) 17317 as_fn_error $? "unknown endianness 17318 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17319 esac 17320 17321ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17322if test "x$ac_cv_type_off_t" = xyes; then : 17323 17324else 17325 17326cat >>confdefs.h <<_ACEOF 17327#define off_t long int 17328_ACEOF 17329 17330fi 17331 17332ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17333if test "x$ac_cv_type_size_t" = xyes; then : 17334 17335else 17336 17337cat >>confdefs.h <<_ACEOF 17338#define size_t unsigned int 17339_ACEOF 17340 17341fi 17342 17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17344$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17345if ${ac_cv_header_time+:} false; then : 17346 $as_echo_n "(cached) " >&6 17347else 17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17349/* end confdefs.h. */ 17350#include <sys/types.h> 17351#include <sys/time.h> 17352#include <time.h> 17353 17354int 17355main () 17356{ 17357if ((struct tm *) 0) 17358return 0; 17359 ; 17360 return 0; 17361} 17362_ACEOF 17363if ac_fn_c_try_compile "$LINENO"; then : 17364 ac_cv_header_time=yes 17365else 17366 ac_cv_header_time=no 17367fi 17368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17369fi 17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17371$as_echo "$ac_cv_header_time" >&6; } 17372if test $ac_cv_header_time = yes; then 17373 17374$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17375 17376fi 17377 17378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17379$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17380if ${ac_cv_struct_tm+:} false; then : 17381 $as_echo_n "(cached) " >&6 17382else 17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17384/* end confdefs.h. */ 17385#include <sys/types.h> 17386#include <time.h> 17387 17388int 17389main () 17390{ 17391struct tm tm; 17392 int *p = &tm.tm_sec; 17393 return !p; 17394 ; 17395 return 0; 17396} 17397_ACEOF 17398if ac_fn_c_try_compile "$LINENO"; then : 17399 ac_cv_struct_tm=time.h 17400else 17401 ac_cv_struct_tm=sys/time.h 17402fi 17403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17404fi 17405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17406$as_echo "$ac_cv_struct_tm" >&6; } 17407if test $ac_cv_struct_tm = sys/time.h; then 17408 17409$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17410 17411fi 17412 17413 17414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17415$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17416if ${ac_cv_sys_largefile_source+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 while :; do 17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17421/* end confdefs.h. */ 17422#include <sys/types.h> /* for off_t */ 17423 #include <stdio.h> 17424int 17425main () 17426{ 17427int (*fp) (FILE *, off_t, int) = fseeko; 17428 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17429 ; 17430 return 0; 17431} 17432_ACEOF 17433if ac_fn_c_try_link "$LINENO"; then : 17434 ac_cv_sys_largefile_source=no; break 17435fi 17436rm -f core conftest.err conftest.$ac_objext \ 17437 conftest$ac_exeext conftest.$ac_ext 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440#define _LARGEFILE_SOURCE 1 17441#include <sys/types.h> /* for off_t */ 17442 #include <stdio.h> 17443int 17444main () 17445{ 17446int (*fp) (FILE *, off_t, int) = fseeko; 17447 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17448 ; 17449 return 0; 17450} 17451_ACEOF 17452if ac_fn_c_try_link "$LINENO"; then : 17453 ac_cv_sys_largefile_source=1; break 17454fi 17455rm -f core conftest.err conftest.$ac_objext \ 17456 conftest$ac_exeext conftest.$ac_ext 17457 ac_cv_sys_largefile_source=unknown 17458 break 17459done 17460fi 17461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17462$as_echo "$ac_cv_sys_largefile_source" >&6; } 17463case $ac_cv_sys_largefile_source in #( 17464 no | unknown) ;; 17465 *) 17466cat >>confdefs.h <<_ACEOF 17467#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 17468_ACEOF 17469;; 17470esac 17471rm -rf conftest* 17472 17473# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17474# in glibc 2.1.3, but that breaks too many other things. 17475# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17476if test $ac_cv_sys_largefile_source != unknown; then 17477 17478$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 17479 17480fi 17481 17482 17483ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" 17484if test "x$ac_cv_have_decl_optarg" = xyes; then : 17485 ac_have_decl=1 17486else 17487 ac_have_decl=0 17488fi 17489 17490cat >>confdefs.h <<_ACEOF 17491#define HAVE_DECL_OPTARG $ac_have_decl 17492_ACEOF 17493 17494 17495 17496# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 17497# The cast to long int works around a bug in the HP C Compiler 17498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17500# This bug is HP SR number 8606223364. 17501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 17502$as_echo_n "checking size of signed short... " >&6; } 17503if ${ac_cv_sizeof_signed_short+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 17507 17508else 17509 if test "$ac_cv_type_signed_short" = yes; then 17510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17512as_fn_error 77 "cannot compute sizeof (signed short) 17513See \`config.log' for more details" "$LINENO" 5; } 17514 else 17515 ac_cv_sizeof_signed_short=0 17516 fi 17517fi 17518 17519fi 17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 17521$as_echo "$ac_cv_sizeof_signed_short" >&6; } 17522 17523 17524 17525cat >>confdefs.h <<_ACEOF 17526#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 17527_ACEOF 17528 17529 17530 17531# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 17532# The cast to long int works around a bug in the HP C Compiler 17533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17535# This bug is HP SR number 8606223364. 17536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 17537$as_echo_n "checking size of unsigned short... " >&6; } 17538if ${ac_cv_sizeof_unsigned_short+:} false; then : 17539 $as_echo_n "(cached) " >&6 17540else 17541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 17542 17543else 17544 if test "$ac_cv_type_unsigned_short" = yes; then 17545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17547as_fn_error 77 "cannot compute sizeof (unsigned short) 17548See \`config.log' for more details" "$LINENO" 5; } 17549 else 17550 ac_cv_sizeof_unsigned_short=0 17551 fi 17552fi 17553 17554fi 17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 17556$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 17557 17558 17559 17560cat >>confdefs.h <<_ACEOF 17561#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 17562_ACEOF 17563 17564 17565 17566# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 17567# The cast to long int works around a bug in the HP C Compiler 17568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17570# This bug is HP SR number 8606223364. 17571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 17572$as_echo_n "checking size of signed int... " >&6; } 17573if ${ac_cv_sizeof_signed_int+:} false; then : 17574 $as_echo_n "(cached) " >&6 17575else 17576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 17577 17578else 17579 if test "$ac_cv_type_signed_int" = yes; then 17580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17582as_fn_error 77 "cannot compute sizeof (signed int) 17583See \`config.log' for more details" "$LINENO" 5; } 17584 else 17585 ac_cv_sizeof_signed_int=0 17586 fi 17587fi 17588 17589fi 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 17591$as_echo "$ac_cv_sizeof_signed_int" >&6; } 17592 17593 17594 17595cat >>confdefs.h <<_ACEOF 17596#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 17597_ACEOF 17598 17599 17600 17601# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 17602# The cast to long int works around a bug in the HP C Compiler 17603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17605# This bug is HP SR number 8606223364. 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 17607$as_echo_n "checking size of unsigned int... " >&6; } 17608if ${ac_cv_sizeof_unsigned_int+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610else 17611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 17612 17613else 17614 if test "$ac_cv_type_unsigned_int" = yes; then 17615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17617as_fn_error 77 "cannot compute sizeof (unsigned int) 17618See \`config.log' for more details" "$LINENO" 5; } 17619 else 17620 ac_cv_sizeof_unsigned_int=0 17621 fi 17622fi 17623 17624fi 17625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 17626$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 17627 17628 17629 17630cat >>confdefs.h <<_ACEOF 17631#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 17632_ACEOF 17633 17634 17635 17636# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 17637# The cast to long int works around a bug in the HP C Compiler 17638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17640# This bug is HP SR number 8606223364. 17641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 17642$as_echo_n "checking size of signed long... " >&6; } 17643if ${ac_cv_sizeof_signed_long+:} false; then : 17644 $as_echo_n "(cached) " >&6 17645else 17646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 17647 17648else 17649 if test "$ac_cv_type_signed_long" = yes; then 17650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17652as_fn_error 77 "cannot compute sizeof (signed long) 17653See \`config.log' for more details" "$LINENO" 5; } 17654 else 17655 ac_cv_sizeof_signed_long=0 17656 fi 17657fi 17658 17659fi 17660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 17661$as_echo "$ac_cv_sizeof_signed_long" >&6; } 17662 17663 17664 17665cat >>confdefs.h <<_ACEOF 17666#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 17667_ACEOF 17668 17669 17670 17671# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 17672# The cast to long int works around a bug in the HP C Compiler 17673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17675# This bug is HP SR number 8606223364. 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 17677$as_echo_n "checking size of unsigned long... " >&6; } 17678if ${ac_cv_sizeof_unsigned_long+:} false; then : 17679 $as_echo_n "(cached) " >&6 17680else 17681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 17682 17683else 17684 if test "$ac_cv_type_unsigned_long" = yes; then 17685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17687as_fn_error 77 "cannot compute sizeof (unsigned long) 17688See \`config.log' for more details" "$LINENO" 5; } 17689 else 17690 ac_cv_sizeof_unsigned_long=0 17691 fi 17692fi 17693 17694fi 17695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 17696$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 17697 17698 17699 17700cat >>confdefs.h <<_ACEOF 17701#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 17702_ACEOF 17703 17704 17705 17706# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 17707# If 'long long' is not supported then the value defined is zero. 17708# The cast to long int works around a bug in the HP C Compiler 17709# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17710# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17711# This bug is HP SR number 8606223364. 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 17713$as_echo_n "checking size of signed long long... " >&6; } 17714if ${ac_cv_sizeof_signed_long_long+:} false; then : 17715 $as_echo_n "(cached) " >&6 17716else 17717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 17718 17719else 17720 if test "$ac_cv_type_signed_long_long" = yes; then 17721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17723as_fn_error 77 "cannot compute sizeof (signed long long) 17724See \`config.log' for more details" "$LINENO" 5; } 17725 else 17726 ac_cv_sizeof_signed_long_long=0 17727 fi 17728fi 17729 17730fi 17731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 17732$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 17733 17734 17735 17736cat >>confdefs.h <<_ACEOF 17737#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 17738_ACEOF 17739 17740 17741 17742# Obtain size of a 'unsigned long long' and define as 17743# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 17744# supported then the value defined is zero. 17745# The cast to long int works around a bug in the HP C Compiler 17746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17748# This bug is HP SR number 8606223364. 17749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 17750$as_echo_n "checking size of unsigned long long... " >&6; } 17751if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 17752 $as_echo_n "(cached) " >&6 17753else 17754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 17755 17756else 17757 if test "$ac_cv_type_unsigned_long_long" = yes; then 17758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17760as_fn_error 77 "cannot compute sizeof (unsigned long long) 17761See \`config.log' for more details" "$LINENO" 5; } 17762 else 17763 ac_cv_sizeof_unsigned_long_long=0 17764 fi 17765fi 17766 17767fi 17768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 17769$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 17770 17771 17772 17773cat >>confdefs.h <<_ACEOF 17774#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 17775_ACEOF 17776 17777 17778 17779# Obtain the size of an 'unsigned char *' and define as 17780# SIZEOF_UNSIGNED_CHAR_P. Result is available in 17781# ac_cv_sizeof_unsigned_char_p. 17782# The cast to long int works around a bug in the HP C Compiler 17783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17785# This bug is HP SR number 8606223364. 17786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 17787$as_echo_n "checking size of unsigned char *... " >&6; } 17788if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 17789 $as_echo_n "(cached) " >&6 17790else 17791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 17792 17793else 17794 if test "$ac_cv_type_unsigned_char_p" = yes; then 17795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17797as_fn_error 77 "cannot compute sizeof (unsigned char *) 17798See \`config.log' for more details" "$LINENO" 5; } 17799 else 17800 ac_cv_sizeof_unsigned_char_p=0 17801 fi 17802fi 17803 17804fi 17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 17806$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 17807 17808 17809 17810cat >>confdefs.h <<_ACEOF 17811#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 17812_ACEOF 17813 17814 17815 17816# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T. Result is 17817# available in ac_cv_sizeof_size_t 17818# The cast to long int works around a bug in the HP C Compiler 17819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17821# This bug is HP SR number 8606223364. 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 17823$as_echo_n "checking size of size_t... " >&6; } 17824if ${ac_cv_sizeof_size_t+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826else 17827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 17828 17829else 17830 if test "$ac_cv_type_size_t" = yes; then 17831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17833as_fn_error 77 "cannot compute sizeof (size_t) 17834See \`config.log' for more details" "$LINENO" 5; } 17835 else 17836 ac_cv_sizeof_size_t=0 17837 fi 17838fi 17839 17840fi 17841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 17842$as_echo "$ac_cv_sizeof_size_t" >&6; } 17843 17844 17845 17846cat >>confdefs.h <<_ACEOF 17847#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 17848_ACEOF 17849 17850 17851 17852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 17853$as_echo_n "checking for signed 8-bit type... " >&6; } 17854INT8_T='signed char' 17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 17856$as_echo "$INT8_T" >&6; } 17857 17858cat >>confdefs.h <<_ACEOF 17859#define TIFF_INT8_T $INT8_T 17860_ACEOF 17861 17862 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 17864$as_echo_n "checking for unsigned 8-bit type... " >&6; } 17865UINT8_T='unsigned char' 17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 17867$as_echo "$UINT8_T" >&6; } 17868 17869cat >>confdefs.h <<_ACEOF 17870#define TIFF_UINT8_T $UINT8_T 17871_ACEOF 17872 17873 17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 17875$as_echo_n "checking for signed 16-bit type... " >&6; } 17876INT16_T='signed short' 17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 17878$as_echo "$INT16_T" >&6; } 17879 17880cat >>confdefs.h <<_ACEOF 17881#define TIFF_INT16_T $INT16_T 17882_ACEOF 17883 17884 17885 17886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 17887$as_echo_n "checking for unsigned 16-bit type... " >&6; } 17888UINT16_T='unsigned short' 17889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 17890$as_echo "$UINT16_T" >&6; } 17891 17892cat >>confdefs.h <<_ACEOF 17893#define TIFF_UINT16_T $UINT16_T 17894_ACEOF 17895 17896 17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 17898$as_echo_n "checking for signed 32-bit type... " >&6; } 17899INT32_T='none' 17900INT32_FORMAT='none' 17901if test $ac_cv_sizeof_signed_int -eq 4 17902then 17903 INT32_T='signed int' 17904 INT32_FORMAT='"%d"' 17905elif test $ac_cv_sizeof_signed_long -eq 4 17906then 17907 INT32_T='signed long' 17908 INT32_FORMAT='"%ld"' 17909fi 17910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 17911$as_echo "$INT32_T" >&6; } 17912 17913cat >>confdefs.h <<_ACEOF 17914#define TIFF_INT32_T $INT32_T 17915_ACEOF 17916 17917 17918cat >>confdefs.h <<_ACEOF 17919#define TIFF_INT32_FORMAT $INT32_FORMAT 17920_ACEOF 17921 17922 17923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 17924$as_echo_n "checking for unsigned 32-bit type... " >&6; } 17925UINT32_T='none' 17926UINT32_FORMAT='none' 17927if test $ac_cv_sizeof_unsigned_int -eq 4 17928then 17929 UINT32_T='unsigned int' 17930 UINT32_FORMAT='"%u"' 17931elif test $ac_cv_sizeof_unsigned_long -eq 4 17932then 17933 UINT32_T='unsigned long' 17934 UINT32_FORMAT='"%lu"' 17935fi 17936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 17937$as_echo "$UINT32_T" >&6; } 17938 17939cat >>confdefs.h <<_ACEOF 17940#define TIFF_UINT32_T $UINT32_T 17941_ACEOF 17942 17943 17944cat >>confdefs.h <<_ACEOF 17945#define TIFF_UINT32_FORMAT $UINT32_FORMAT 17946_ACEOF 17947 17948 17949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 17950$as_echo_n "checking for signed 64-bit type... " >&6; } 17951INT64_T='none' 17952INT64_FORMAT='none' 17953if test $ac_cv_sizeof_signed_long -eq 8 17954then 17955 INT64_T='signed long' 17956 INT64_FORMAT='"%ld"' 17957elif test $ac_cv_sizeof_signed_long_long -eq 8 17958then 17959 INT64_T='signed long long' 17960 case "${host_os}" in 17961 mingw32*) 17962 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17963 INT64_FORMAT='"%I64d"' 17964 ;; 17965 *) 17966 INT64_FORMAT='"%lld"' 17967 ;; 17968 esac 17969fi 17970 17971 17972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 17973$as_echo "$INT64_T" >&6; } 17974 17975cat >>confdefs.h <<_ACEOF 17976#define TIFF_INT64_T $INT64_T 17977_ACEOF 17978 17979 17980cat >>confdefs.h <<_ACEOF 17981#define TIFF_INT64_FORMAT $INT64_FORMAT 17982_ACEOF 17983 17984 17985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 17986$as_echo_n "checking for unsigned 64-bit type... " >&6; } 17987UINT64_T='none' 17988UINT64_FORMAT='none' 17989if test $ac_cv_sizeof_unsigned_long -eq 8 17990then 17991 UINT64_T='unsigned long' 17992 UINT64_FORMAT='"%lu"' 17993elif test $ac_cv_sizeof_unsigned_long_long -eq 8 17994then 17995 UINT64_T='unsigned long long' 17996 case "${host_os}" in 17997 mingw32*) 17998 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17999 UINT64_FORMAT='"%I64u"' 18000 ;; 18001 *) 18002 UINT64_FORMAT='"%llu"' 18003 ;; 18004 esac 18005fi 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 18007$as_echo "$UINT64_T" >&6; } 18008 18009cat >>confdefs.h <<_ACEOF 18010#define TIFF_UINT64_T $UINT64_T 18011_ACEOF 18012 18013 18014cat >>confdefs.h <<_ACEOF 18015#define TIFF_UINT64_FORMAT $UINT64_FORMAT 18016_ACEOF 18017 18018 18019# Determine formatting specifier for 'size_t'. While the size should 18020# be precise, the type determined may not match the system definition. 18021# A named type is provided to allow casting to the type we determined 18022# without changing the actual size. 18023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'size_t' format specifier" >&5 18024$as_echo_n "checking for 'size_t' format specifier... " >&6; } 18025SIZE_T='unknown' 18026SIZE_FORMAT='unknown' 18027if test $ac_cv_sizeof_unsigned_int -eq $ac_cv_sizeof_size_t 18028then 18029 SIZE_T='unsigned int' 18030 SIZE_FORMAT='"%u"' 18031elif test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_size_t 18032then 18033 SIZE_T='unsigned long' 18034 SIZE_FORMAT='"%lu"' 18035elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_size_t 18036then 18037 SIZE_T='unsigned long long' 18038 case "${host_os}" in 18039 mingw32*) 18040 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 18041 SIZE_FORMAT='"%I64u"' 18042 ;; 18043 *) 18044 SIZE_FORMAT='"%llu"' 18045 ;; 18046 esac 18047fi 18048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIZE_FORMAT" >&5 18049$as_echo "$SIZE_FORMAT" >&6; } 18050 18051cat >>confdefs.h <<_ACEOF 18052#define TIFF_SIZE_T $SIZE_T 18053_ACEOF 18054 18055 18056cat >>confdefs.h <<_ACEOF 18057#define TIFF_SIZE_FORMAT $SIZE_FORMAT 18058_ACEOF 18059 18060 18061# Determine TIFF equivalent of ssize_t 18062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 18063$as_echo_n "checking for signed size type... " >&6; } 18064SSIZE_T='unknown' 18065SSIZE_FORMAT='unknown' 18066if test $ac_cv_sizeof_signed_int -eq $ac_cv_sizeof_unsigned_char_p 18067then 18068 SSIZE_T='signed int' 18069 SSIZE_FORMAT='"%d"' 18070elif test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 18071then 18072 SSIZE_T='signed long' 18073 SSIZE_FORMAT='"%ld"' 18074elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 18075then 18076 SSIZE_T='signed long long' 18077 case "${host_os}" in 18078 mingw32*) 18079 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 18080 SSIZE_FORMAT='"%I64d"' 18081 ;; 18082 *) 18083 SSIZE_FORMAT='"%lld"' 18084 ;; 18085 esac 18086fi 18087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 18088$as_echo "$SSIZE_T" >&6; } 18089 18090cat >>confdefs.h <<_ACEOF 18091#define TIFF_SSIZE_T $SSIZE_T 18092_ACEOF 18093 18094 18095cat >>confdefs.h <<_ACEOF 18096#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 18097_ACEOF 18098 18099 18100# Determine the type to use for the difference between two pointers. 18101# We will default to the POSIX ptrdiff_t if it is available, but will 18102# be prepared for the case when it is not. 18103PTRDIFF_T='unknown' 18104PTRDIFF_FORMAT='"%ld"' 18105ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 18106if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 18107 PTRDIFF_T=ptrdiff_t 18108fi 18109 18110if test $PTRDIFF_T = unknown 18111then 18112 PTRDIFF_T=$SSIZE_T 18113 PTRDIFF_FORMAT=$SSIZE_FORMAT 18114fi 18115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 18116$as_echo_n "checking for pointer difference type... " >&6; } 18117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 18118$as_echo "$PTRDIFF_T" >&6; } 18119 18120cat >>confdefs.h <<_ACEOF 18121#define TIFF_PTRDIFF_T $PTRDIFF_T 18122_ACEOF 18123 18124 18125cat >>confdefs.h <<_ACEOF 18126#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 18127_ACEOF 18128 18129 18130ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 18131#if HAVE_INTTYPES_H 18132# include <inttypes.h> 18133#endif 18134 18135" 18136if test "x$ac_cv_type_int8" = xyes; then : 18137 18138cat >>confdefs.h <<_ACEOF 18139#define HAVE_INT8 1 18140_ACEOF 18141 18142 18143fi 18144ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 18145#if HAVE_INTTYPES_H 18146# include <inttypes.h> 18147#endif 18148 18149" 18150if test "x$ac_cv_type_int16" = xyes; then : 18151 18152cat >>confdefs.h <<_ACEOF 18153#define HAVE_INT16 1 18154_ACEOF 18155 18156 18157fi 18158ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 18159#if HAVE_INTTYPES_H 18160# include <inttypes.h> 18161#endif 18162 18163" 18164if test "x$ac_cv_type_int32" = xyes; then : 18165 18166cat >>confdefs.h <<_ACEOF 18167#define HAVE_INT32 1 18168_ACEOF 18169 18170 18171fi 18172 18173 18174for ac_func in floor isascii memmove memset mmap pow setmode snprintf sqrt \ 18175strchr strrchr strstr strtol strtoul strtoull 18176do : 18177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18178ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18179if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18180 cat >>confdefs.h <<_ACEOF 18181#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18182_ACEOF 18183 18184fi 18185done 18186 18187 18188ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 18189if test "x$ac_cv_func_getopt" = xyes; then : 18190 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 18191 18192else 18193 case " $LIBOBJS " in 18194 *" getopt.$ac_objext "* ) ;; 18195 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 18196 ;; 18197esac 18198 18199fi 18200 18201 18202ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18203if test "x$ac_cv_func_snprintf" = xyes; then : 18204 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18205 18206else 18207 case " $LIBOBJS " in 18208 *" snprintf.$ac_objext "* ) ;; 18209 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18210 ;; 18211esac 18212 18213fi 18214 18215 18216ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18217if test "x$ac_cv_func_strcasecmp" = xyes; then : 18218 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 18219 18220else 18221 case " $LIBOBJS " in 18222 *" strcasecmp.$ac_objext "* ) ;; 18223 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 18224 ;; 18225esac 18226 18227fi 18228 18229 18230ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 18231if test "x$ac_cv_func_strtoul" = xyes; then : 18232 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 18233 18234else 18235 case " $LIBOBJS " in 18236 *" strtoul.$ac_objext "* ) ;; 18237 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 18238 ;; 18239esac 18240 18241fi 18242 18243 18244ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 18245if test "x$ac_cv_func_strtoull" = xyes; then : 18246 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 18247 18248else 18249 case " $LIBOBJS " in 18250 *" strtoull.$ac_objext "* ) ;; 18251 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 18252 ;; 18253esac 18254 18255fi 18256 18257 18258ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 18259if test "x$ac_cv_func_lfind" = xyes; then : 18260 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 18261 18262else 18263 case " $LIBOBJS " in 18264 *" lfind.$ac_objext "* ) ;; 18265 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 18266 ;; 18267esac 18268 18269fi 18270 18271 18272 18273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 18274$as_echo_n "checking native cpu bit order... " >&6; } 18275case "$host_cpu" in 18276 i*86*|x86_64*) 18277 HOST_FILLORDER=FILLORDER_LSB2MSB 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 18279$as_echo "lsb2msb" >&6; } 18280 ;; 18281 *) 18282 HOST_FILLORDER=FILLORDER_MSB2LSB 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 18284$as_echo "msb2lsb" >&6; } 18285 ;; 18286esac 18287 18288cat >>confdefs.h <<_ACEOF 18289#define HOST_FILLORDER $HOST_FILLORDER 18290_ACEOF 18291 18292 18293if test "$ac_cv_c_bigendian" = yes ; then 18294 HOST_BIGENDIAN=1 18295else 18296 HOST_BIGENDIAN=0 18297fi 18298 18299cat >>confdefs.h <<_ACEOF 18300#define HOST_BIGENDIAN $HOST_BIGENDIAN 18301_ACEOF 18302 18303 18304#_POSIX_C_SOURCE=2 18305#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 18306 18307HAVE_IEEEFP=1 18308 18309cat >>confdefs.h <<_ACEOF 18310#define HAVE_IEEEFP $HAVE_IEEEFP 18311_ACEOF 18312 18313 18314 18315# Check whether --enable-rpath was given. 18316if test "${enable_rpath+set}" = set; then : 18317 enableval=$enable_rpath; HAVE_RPATH=$enableval 18318else 18319 HAVE_RPATH=no 18320fi 18321 18322 if test "$HAVE_RPATH" = "yes"; then 18323 HAVE_RPATH_TRUE= 18324 HAVE_RPATH_FALSE='#' 18325else 18326 HAVE_RPATH_TRUE='#' 18327 HAVE_RPATH_FALSE= 18328fi 18329 18330 18331 18332# Check whether --enable-largefile was given. 18333if test "${enable_largefile+set}" = set; then : 18334 enableval=$enable_largefile; 18335fi 18336 18337if test "$enable_largefile" != no; then 18338 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18340$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18341if ${ac_cv_sys_largefile_CC+:} false; then : 18342 $as_echo_n "(cached) " >&6 18343else 18344 ac_cv_sys_largefile_CC=no 18345 if test "$GCC" != yes; then 18346 ac_save_CC=$CC 18347 while :; do 18348 # IRIX 6.2 and later do not support large files by default, 18349 # so use the C compiler's -n32 option if that helps. 18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18351/* end confdefs.h. */ 18352#include <sys/types.h> 18353 /* Check that off_t can represent 2**63 - 1 correctly. 18354 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18355 since some C++ compilers masquerading as C compilers 18356 incorrectly reject 9223372036854775807. */ 18357#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18359 && LARGE_OFF_T % 2147483647 == 1) 18360 ? 1 : -1]; 18361int 18362main () 18363{ 18364 18365 ; 18366 return 0; 18367} 18368_ACEOF 18369 if ac_fn_c_try_compile "$LINENO"; then : 18370 break 18371fi 18372rm -f core conftest.err conftest.$ac_objext 18373 CC="$CC -n32" 18374 if ac_fn_c_try_compile "$LINENO"; then : 18375 ac_cv_sys_largefile_CC=' -n32'; break 18376fi 18377rm -f core conftest.err conftest.$ac_objext 18378 break 18379 done 18380 CC=$ac_save_CC 18381 rm -f conftest.$ac_ext 18382 fi 18383fi 18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18385$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18386 if test "$ac_cv_sys_largefile_CC" != no; then 18387 CC=$CC$ac_cv_sys_largefile_CC 18388 fi 18389 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18391$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18392if ${ac_cv_sys_file_offset_bits+:} false; then : 18393 $as_echo_n "(cached) " >&6 18394else 18395 while :; do 18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18397/* end confdefs.h. */ 18398#include <sys/types.h> 18399 /* Check that off_t can represent 2**63 - 1 correctly. 18400 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18401 since some C++ compilers masquerading as C compilers 18402 incorrectly reject 9223372036854775807. */ 18403#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18405 && LARGE_OFF_T % 2147483647 == 1) 18406 ? 1 : -1]; 18407int 18408main () 18409{ 18410 18411 ; 18412 return 0; 18413} 18414_ACEOF 18415if ac_fn_c_try_compile "$LINENO"; then : 18416 ac_cv_sys_file_offset_bits=no; break 18417fi 18418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18420/* end confdefs.h. */ 18421#define _FILE_OFFSET_BITS 64 18422#include <sys/types.h> 18423 /* Check that off_t can represent 2**63 - 1 correctly. 18424 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18425 since some C++ compilers masquerading as C compilers 18426 incorrectly reject 9223372036854775807. */ 18427#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18429 && LARGE_OFF_T % 2147483647 == 1) 18430 ? 1 : -1]; 18431int 18432main () 18433{ 18434 18435 ; 18436 return 0; 18437} 18438_ACEOF 18439if ac_fn_c_try_compile "$LINENO"; then : 18440 ac_cv_sys_file_offset_bits=64; break 18441fi 18442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18443 ac_cv_sys_file_offset_bits=unknown 18444 break 18445done 18446fi 18447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18448$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18449case $ac_cv_sys_file_offset_bits in #( 18450 no | unknown) ;; 18451 *) 18452cat >>confdefs.h <<_ACEOF 18453#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18454_ACEOF 18455;; 18456esac 18457rm -rf conftest* 18458 if test $ac_cv_sys_file_offset_bits = unknown; then 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18460$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18461if ${ac_cv_sys_large_files+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 while :; do 18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18466/* end confdefs.h. */ 18467#include <sys/types.h> 18468 /* Check that off_t can represent 2**63 - 1 correctly. 18469 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18470 since some C++ compilers masquerading as C compilers 18471 incorrectly reject 9223372036854775807. */ 18472#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18474 && LARGE_OFF_T % 2147483647 == 1) 18475 ? 1 : -1]; 18476int 18477main () 18478{ 18479 18480 ; 18481 return 0; 18482} 18483_ACEOF 18484if ac_fn_c_try_compile "$LINENO"; then : 18485 ac_cv_sys_large_files=no; break 18486fi 18487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18489/* end confdefs.h. */ 18490#define _LARGE_FILES 1 18491#include <sys/types.h> 18492 /* Check that off_t can represent 2**63 - 1 correctly. 18493 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18494 since some C++ compilers masquerading as C compilers 18495 incorrectly reject 9223372036854775807. */ 18496#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18498 && LARGE_OFF_T % 2147483647 == 1) 18499 ? 1 : -1]; 18500int 18501main () 18502{ 18503 18504 ; 18505 return 0; 18506} 18507_ACEOF 18508if ac_fn_c_try_compile "$LINENO"; then : 18509 ac_cv_sys_large_files=1; break 18510fi 18511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18512 ac_cv_sys_large_files=unknown 18513 break 18514done 18515fi 18516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18517$as_echo "$ac_cv_sys_large_files" >&6; } 18518case $ac_cv_sys_large_files in #( 18519 no | unknown) ;; 18520 *) 18521cat >>confdefs.h <<_ACEOF 18522#define _LARGE_FILES $ac_cv_sys_large_files 18523_ACEOF 18524;; 18525esac 18526rm -rf conftest* 18527 fi 18528 18529 18530fi 18531 18532 18533 18534LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 18535 18536 18537# Check whether --with-docdir was given. 18538if test "${with_docdir+set}" = set; then : 18539 withval=$with_docdir; 18540fi 18541 18542if test "x$with_docdir" != "x" ; then 18543 LIBTIFF_DOCDIR=$with_docdir 18544fi 18545 18546 18547 18548 18549# Check whether --enable-ccitt was given. 18550if test "${enable_ccitt+set}" = set; then : 18551 enableval=$enable_ccitt; HAVE_CCITT=$enableval 18552else 18553 HAVE_CCITT=yes 18554fi 18555 18556 18557if test "$HAVE_CCITT" = "yes" ; then 18558 18559$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 18560 18561fi 18562 18563# Check whether --enable-packbits was given. 18564if test "${enable_packbits+set}" = set; then : 18565 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 18566else 18567 HAVE_PACKBITS=yes 18568fi 18569 18570 18571if test "$HAVE_PACKBITS" = "yes" ; then 18572 18573$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 18574 18575fi 18576 18577# Check whether --enable-lzw was given. 18578if test "${enable_lzw+set}" = set; then : 18579 enableval=$enable_lzw; HAVE_LZW=$enableval 18580else 18581 HAVE_LZW=yes 18582fi 18583 18584 18585if test "$HAVE_LZW" = "yes" ; then 18586 18587$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 18588 18589fi 18590 18591# Check whether --enable-thunder was given. 18592if test "${enable_thunder+set}" = set; then : 18593 enableval=$enable_thunder; HAVE_THUNDER=$enableval 18594else 18595 HAVE_THUNDER=yes 18596fi 18597 18598 18599if test "$HAVE_THUNDER" = "yes" ; then 18600 18601$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 18602 18603fi 18604 18605HAVE_NEXT=yes 18606 18607# Check whether --enable-next was given. 18608if test "${enable_next+set}" = set; then : 18609 enableval=$enable_next; HAVE_NEXT=$enableval 18610else 18611 HAVE_NEXT=yes 18612fi 18613 18614 18615if test "$HAVE_NEXT" = "yes" ; then 18616 18617$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 18618 18619fi 18620 18621# Check whether --enable-logluv was given. 18622if test "${enable_logluv+set}" = set; then : 18623 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 18624else 18625 HAVE_LOGLUV=yes 18626fi 18627 18628 18629if test "$HAVE_LOGLUV" = "yes" ; then 18630 18631$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 18632 18633fi 18634 18635 18636# Check whether --enable-mdi was given. 18637if test "${enable_mdi+set}" = set; then : 18638 enableval=$enable_mdi; HAVE_MDI=$enableval 18639else 18640 HAVE_MDI=yes 18641fi 18642 18643 18644if test "$HAVE_MDI" = "yes" ; then 18645 18646$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 18647 18648fi 18649 18650 18651HAVE_ZLIB=no 18652 18653# Check whether --enable-zlib was given. 18654if test "${enable_zlib+set}" = set; then : 18655 enableval=$enable_zlib; 18656fi 18657 18658 18659# Check whether --with-zlib-include-dir was given. 18660if test "${with_zlib_include_dir+set}" = set; then : 18661 withval=$with_zlib_include_dir; 18662fi 18663 18664 18665# Check whether --with-zlib-lib-dir was given. 18666if test "${with_zlib_lib_dir+set}" = set; then : 18667 withval=$with_zlib_lib_dir; 18668fi 18669 18670 18671if test "x$enable_zlib" != "xno" ; then 18672 18673 if test "x$with_zlib_lib_dir" != "x" ; then 18674 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 18675 fi 18676 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18678$as_echo_n "checking for inflateEnd in -lz... " >&6; } 18679if ${ac_cv_lib_z_inflateEnd+:} false; then : 18680 $as_echo_n "(cached) " >&6 18681else 18682 ac_check_lib_save_LIBS=$LIBS 18683LIBS="-lz $LIBS" 18684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18685/* end confdefs.h. */ 18686 18687/* Override any GCC internal prototype to avoid an error. 18688 Use char because int might match the return type of a GCC 18689 builtin and then its argument prototype would still apply. */ 18690#ifdef __cplusplus 18691extern "C" 18692#endif 18693char inflateEnd (); 18694int 18695main () 18696{ 18697return inflateEnd (); 18698 ; 18699 return 0; 18700} 18701_ACEOF 18702if ac_fn_c_try_link "$LINENO"; then : 18703 ac_cv_lib_z_inflateEnd=yes 18704else 18705 ac_cv_lib_z_inflateEnd=no 18706fi 18707rm -f core conftest.err conftest.$ac_objext \ 18708 conftest$ac_exeext conftest.$ac_ext 18709LIBS=$ac_check_lib_save_LIBS 18710fi 18711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18712$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18713if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18714 zlib_lib=yes 18715else 18716 zlib_lib=no 18717fi 18718 18719 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 18720 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 18721 fi 18722 18723 if test "x$with_zlib_include_dir" != "x" ; then 18724 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 18725 fi 18726 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18727if test "x$ac_cv_header_zlib_h" = xyes; then : 18728 zlib_h=yes 18729else 18730 zlib_h=no 18731fi 18732 18733 18734 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 18735 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 18736 fi 18737 18738 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 18739 HAVE_ZLIB=yes 18740 fi 18741 18742fi 18743 18744if test "$HAVE_ZLIB" = "yes" ; then 18745 18746$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 18747 18748 LIBS="-lz $LIBS" 18749 tiff_libs_private="-lz ${tiff_libs_private}" 18750 18751 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 18752 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 18753 fi 18754 18755fi 18756 18757 18758# Check whether --enable-pixarlog was given. 18759if test "${enable_pixarlog+set}" = set; then : 18760 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 18761else 18762 HAVE_PIXARLOG=yes 18763fi 18764 18765 18766if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 18767 18768$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 18769 18770else 18771 HAVE_PIXARLOG=no 18772fi 18773 18774 18775HAVE_JPEG=no 18776 18777# Check whether --enable-jpeg was given. 18778if test "${enable_jpeg+set}" = set; then : 18779 enableval=$enable_jpeg; 18780fi 18781 18782 18783# Check whether --with-jpeg-include-dir was given. 18784if test "${with_jpeg_include_dir+set}" = set; then : 18785 withval=$with_jpeg_include_dir; 18786fi 18787 18788 18789# Check whether --with-jpeg-lib-dir was given. 18790if test "${with_jpeg_lib_dir+set}" = set; then : 18791 withval=$with_jpeg_lib_dir; 18792fi 18793 18794 18795if test "x$enable_jpeg" != "xno" ; then 18796 18797 if test "x$with_jpeg_lib_dir" != "x" ; then 18798 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 18799 18800 fi 18801 18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 18803$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 18804if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 18805 $as_echo_n "(cached) " >&6 18806else 18807 ac_check_lib_save_LIBS=$LIBS 18808LIBS="-ljpeg $LIBS" 18809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18810/* end confdefs.h. */ 18811 18812/* Override any GCC internal prototype to avoid an error. 18813 Use char because int might match the return type of a GCC 18814 builtin and then its argument prototype would still apply. */ 18815#ifdef __cplusplus 18816extern "C" 18817#endif 18818char jpeg_read_scanlines (); 18819int 18820main () 18821{ 18822return jpeg_read_scanlines (); 18823 ; 18824 return 0; 18825} 18826_ACEOF 18827if ac_fn_c_try_link "$LINENO"; then : 18828 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18829else 18830 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18831fi 18832rm -f core conftest.err conftest.$ac_objext \ 18833 conftest$ac_exeext conftest.$ac_ext 18834LIBS=$ac_check_lib_save_LIBS 18835fi 18836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18837$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18838if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18839 jpeg_lib=yes 18840else 18841 jpeg_lib=no 18842fi 18843 18844 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18845 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18846 fi 18847 18848 if test "x$with_jpeg_include_dir" != "x" ; then 18849 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18850 fi 18851 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18852if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18853 jpeg_h=yes 18854else 18855 jpeg_h=no 18856fi 18857 18858 18859 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18860 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18861 fi 18862 18863 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18864 HAVE_JPEG=yes 18865 fi 18866 18867fi 18868 18869if test "$HAVE_JPEG" = "yes" ; then 18870 18871$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18872 18873 LIBS="-ljpeg $LIBS" 18874 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18875 18876 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18877 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18878 fi 18879 18880fi 18881 18882 if test "$HAVE_JPEG" = 'yes'; then 18883 HAVE_JPEG_TRUE= 18884 HAVE_JPEG_FALSE='#' 18885else 18886 HAVE_JPEG_TRUE='#' 18887 HAVE_JPEG_FALSE= 18888fi 18889 18890 18891 18892# Check whether --enable-old-jpeg was given. 18893if test "${enable_old_jpeg+set}" = set; then : 18894 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18895else 18896 HAVE_OJPEG=yes 18897fi 18898 18899 18900if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18901 18902$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18903 18904else 18905 HAVE_OJPEG=no 18906fi 18907 18908 18909HAVE_JBIG=no 18910 18911# Check whether --enable-jbig was given. 18912if test "${enable_jbig+set}" = set; then : 18913 enableval=$enable_jbig; 18914fi 18915 18916 18917# Check whether --with-jbig-include-dir was given. 18918if test "${with_jbig_include_dir+set}" = set; then : 18919 withval=$with_jbig_include_dir; 18920fi 18921 18922 18923# Check whether --with-jbig-lib-dir was given. 18924if test "${with_jbig_lib_dir+set}" = set; then : 18925 withval=$with_jbig_lib_dir; 18926fi 18927 18928 18929if test "x$enable_jbig" != "xno" ; then 18930 18931 if test "x$with_jbig_lib_dir" != "x" ; then 18932 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18933 18934 fi 18935 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18937$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18938if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18939 $as_echo_n "(cached) " >&6 18940else 18941 ac_check_lib_save_LIBS=$LIBS 18942LIBS="-ljbig $LIBS" 18943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18944/* end confdefs.h. */ 18945 18946/* Override any GCC internal prototype to avoid an error. 18947 Use char because int might match the return type of a GCC 18948 builtin and then its argument prototype would still apply. */ 18949#ifdef __cplusplus 18950extern "C" 18951#endif 18952char jbg_dec_init (); 18953int 18954main () 18955{ 18956return jbg_dec_init (); 18957 ; 18958 return 0; 18959} 18960_ACEOF 18961if ac_fn_c_try_link "$LINENO"; then : 18962 ac_cv_lib_jbig_jbg_dec_init=yes 18963else 18964 ac_cv_lib_jbig_jbg_dec_init=no 18965fi 18966rm -f core conftest.err conftest.$ac_objext \ 18967 conftest$ac_exeext conftest.$ac_ext 18968LIBS=$ac_check_lib_save_LIBS 18969fi 18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18971$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18972if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18973 jbig_lib=yes 18974else 18975 jbig_lib=no 18976fi 18977 18978 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18979 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18980 fi 18981 18982 if test "x$with_jbig_include_dir" != "x" ; then 18983 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18984 fi 18985 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18986if test "x$ac_cv_header_jbig_h" = xyes; then : 18987 jbig_h=yes 18988else 18989 jbig_h=no 18990fi 18991 18992 18993 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18994 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18995 fi 18996 18997 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18998 HAVE_JBIG=yes 18999 fi 19000 19001fi 19002 19003if test "$HAVE_JBIG" = "yes" ; then 19004 19005$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 19006 19007 LIBS="-ljbig $LIBS" 19008 tiff_libs_private="-ljbig ${tiff_libs_private}" 19009 19010 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 19011 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 19012 fi 19013 19014 # Older versions of jbigkit lack jbg_newlen 19015 for ac_func in jbg_newlen 19016do : 19017 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 19018if test "x$ac_cv_func_jbg_newlen" = xyes; then : 19019 cat >>confdefs.h <<_ACEOF 19020#define HAVE_JBG_NEWLEN 1 19021_ACEOF 19022 19023fi 19024done 19025 19026 19027fi 19028 19029 if test "$HAVE_JBIG" = 'yes'; then 19030 HAVE_JBIG_TRUE= 19031 HAVE_JBIG_FALSE='#' 19032else 19033 HAVE_JBIG_TRUE='#' 19034 HAVE_JBIG_FALSE= 19035fi 19036 19037 19038 19039HAVE_LZMA=no 19040 19041# Check whether --enable-lzma was given. 19042if test "${enable_lzma+set}" = set; then : 19043 enableval=$enable_lzma; 19044fi 19045 19046 19047# Check whether --with-lzma-include-dir was given. 19048if test "${with_lzma_include_dir+set}" = set; then : 19049 withval=$with_lzma_include_dir; 19050fi 19051 19052 19053# Check whether --with-lzma-lib-dir was given. 19054if test "${with_lzma_lib_dir+set}" = set; then : 19055 withval=$with_lzma_lib_dir; 19056fi 19057 19058 19059if test "x$enable_lzma" != "xno" ; then 19060 19061 if test "x$with_lzma_lib_dir" != "x" ; then 19062 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 19063 fi 19064 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 19066$as_echo_n "checking for lzma_code in -llzma... " >&6; } 19067if ${ac_cv_lib_lzma_lzma_code+:} false; then : 19068 $as_echo_n "(cached) " >&6 19069else 19070 ac_check_lib_save_LIBS=$LIBS 19071LIBS="-llzma $LIBS" 19072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19073/* end confdefs.h. */ 19074 19075/* Override any GCC internal prototype to avoid an error. 19076 Use char because int might match the return type of a GCC 19077 builtin and then its argument prototype would still apply. */ 19078#ifdef __cplusplus 19079extern "C" 19080#endif 19081char lzma_code (); 19082int 19083main () 19084{ 19085return lzma_code (); 19086 ; 19087 return 0; 19088} 19089_ACEOF 19090if ac_fn_c_try_link "$LINENO"; then : 19091 ac_cv_lib_lzma_lzma_code=yes 19092else 19093 ac_cv_lib_lzma_lzma_code=no 19094fi 19095rm -f core conftest.err conftest.$ac_objext \ 19096 conftest$ac_exeext conftest.$ac_ext 19097LIBS=$ac_check_lib_save_LIBS 19098fi 19099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 19100$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 19101if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 19102 lzma_lib=yes 19103else 19104 lzma_lib=no 19105fi 19106 19107 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 19108 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 19109 fi 19110 19111 if test "x$with_lzma_include_dir" != "x" ; then 19112 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 19113 fi 19114 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 19115if test "x$ac_cv_header_lzma_h" = xyes; then : 19116 lzma_h=yes 19117else 19118 lzma_h=no 19119fi 19120 19121 19122 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 19123 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 19124 fi 19125 19126 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 19127 HAVE_LZMA=yes 19128 fi 19129 19130fi 19131 19132if test "$HAVE_LZMA" = "yes" ; then 19133 19134$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 19135 19136 LIBS="-llzma $LIBS" 19137 tiff_libs_private="-llzma ${tiff_libs_private}" 19138 19139 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 19140 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 19141 fi 19142 19143fi 19144 19145 if test "$HAVE_LZMA" = 'yes'; then 19146 HAVE_LZMA_TRUE= 19147 HAVE_LZMA_FALSE='#' 19148else 19149 HAVE_LZMA_TRUE='#' 19150 HAVE_LZMA_FALSE= 19151fi 19152 19153 19154 19155HAVE_JPEG12=no 19156 19157# Check whether --enable-jpeg12 was given. 19158if test "${enable_jpeg12+set}" = set; then : 19159 enableval=$enable_jpeg12; 19160fi 19161 19162 19163# Check whether --with-jpeg12-include-dir was given. 19164if test "${with_jpeg12_include_dir+set}" = set; then : 19165 withval=$with_jpeg12_include_dir; 19166fi 19167 19168 19169# Check whether --with-jpeg12-lib was given. 19170if test "${with_jpeg12_lib+set}" = set; then : 19171 withval=$with_jpeg12_lib; 19172fi 19173 19174 19175if test "x$enable_jpeg12" = "xyes" ; then 19176 19177 if test "x$with_jpeg12_lib" != "x" ; then 19178 LIBS="$with_jpeg12_lib $LIBS" 19179 fi 19180 19181 HAVE_JPEG12=yes 19182 19183 19184$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 19185 19186 if test "x$with_jpeg12_include_dir" != "x" ; then 19187 19188cat >>confdefs.h <<_ACEOF 19189#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 19190_ACEOF 19191 19192 fi 19193fi 19194 19195 19196 19197# Check whether --enable-cxx was given. 19198if test "${enable_cxx+set}" = set; then : 19199 enableval=$enable_cxx; HAVE_CXX=$enableval 19200else 19201 HAVE_CXX=yes 19202fi 19203 19204 19205if test "$HAVE_CXX" = "yes" ; then 19206 19207$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 19208 19209else 19210 HAVE_CXX=no 19211fi 19212 19213 if test "$HAVE_CXX" = "yes"; then 19214 HAVE_CXX_TRUE= 19215 HAVE_CXX_FALSE='#' 19216else 19217 HAVE_CXX_TRUE='#' 19218 HAVE_CXX_FALSE= 19219fi 19220 19221 19222 19223HAVE_OPENGL=no 19224 19225 19226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19227$as_echo_n "checking for X... " >&6; } 19228 19229 19230# Check whether --with-x was given. 19231if test "${with_x+set}" = set; then : 19232 withval=$with_x; 19233fi 19234 19235# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19236if test "x$with_x" = xno; then 19237 # The user explicitly disabled X. 19238 have_x=disabled 19239else 19240 case $x_includes,$x_libraries in #( 19241 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19242 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19243 $as_echo_n "(cached) " >&6 19244else 19245 # One or both of the vars are not set, and there is no cached value. 19246ac_x_includes=no ac_x_libraries=no 19247rm -f -r conftest.dir 19248if mkdir conftest.dir; then 19249 cd conftest.dir 19250 cat >Imakefile <<'_ACEOF' 19251incroot: 19252 @echo incroot='${INCROOT}' 19253usrlibdir: 19254 @echo usrlibdir='${USRLIBDIR}' 19255libdir: 19256 @echo libdir='${LIBDIR}' 19257_ACEOF 19258 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19260 for ac_var in incroot usrlibdir libdir; do 19261 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19262 done 19263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19264 for ac_extension in a so sl dylib la dll; do 19265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19266 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19267 ac_im_usrlibdir=$ac_im_libdir; break 19268 fi 19269 done 19270 # Screen out bogus values from the imake configuration. They are 19271 # bogus both because they are the default anyway, and because 19272 # using them would break gcc on systems where it needs fixed includes. 19273 case $ac_im_incroot in 19274 /usr/include) ac_x_includes= ;; 19275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19276 esac 19277 case $ac_im_usrlibdir in 19278 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19280 esac 19281 fi 19282 cd .. 19283 rm -f -r conftest.dir 19284fi 19285 19286# Standard set of common directories for X headers. 19287# Check X11 before X11Rn because it is often a symlink to the current release. 19288ac_x_header_dirs=' 19289/usr/X11/include 19290/usr/X11R7/include 19291/usr/X11R6/include 19292/usr/X11R5/include 19293/usr/X11R4/include 19294 19295/usr/include/X11 19296/usr/include/X11R7 19297/usr/include/X11R6 19298/usr/include/X11R5 19299/usr/include/X11R4 19300 19301/usr/local/X11/include 19302/usr/local/X11R7/include 19303/usr/local/X11R6/include 19304/usr/local/X11R5/include 19305/usr/local/X11R4/include 19306 19307/usr/local/include/X11 19308/usr/local/include/X11R7 19309/usr/local/include/X11R6 19310/usr/local/include/X11R5 19311/usr/local/include/X11R4 19312 19313/usr/X386/include 19314/usr/x386/include 19315/usr/XFree86/include/X11 19316 19317/usr/include 19318/usr/local/include 19319/usr/unsupported/include 19320/usr/athena/include 19321/usr/local/x11r5/include 19322/usr/lpp/Xamples/include 19323 19324/usr/openwin/include 19325/usr/openwin/share/include' 19326 19327if test "$ac_x_includes" = no; then 19328 # Guess where to find include files, by looking for Xlib.h. 19329 # First, try using that file with no special directory specified. 19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19331/* end confdefs.h. */ 19332#include <X11/Xlib.h> 19333_ACEOF 19334if ac_fn_c_try_cpp "$LINENO"; then : 19335 # We can compile using X headers with no special include directory. 19336ac_x_includes= 19337else 19338 for ac_dir in $ac_x_header_dirs; do 19339 if test -r "$ac_dir/X11/Xlib.h"; then 19340 ac_x_includes=$ac_dir 19341 break 19342 fi 19343done 19344fi 19345rm -f conftest.err conftest.i conftest.$ac_ext 19346fi # $ac_x_includes = no 19347 19348if test "$ac_x_libraries" = no; then 19349 # Check for the libraries. 19350 # See if we find them without any special options. 19351 # Don't add to $LIBS permanently. 19352 ac_save_LIBS=$LIBS 19353 LIBS="-lX11 $LIBS" 19354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19355/* end confdefs.h. */ 19356#include <X11/Xlib.h> 19357int 19358main () 19359{ 19360XrmInitialize () 19361 ; 19362 return 0; 19363} 19364_ACEOF 19365if ac_fn_c_try_link "$LINENO"; then : 19366 LIBS=$ac_save_LIBS 19367# We can link X programs with no special library path. 19368ac_x_libraries= 19369else 19370 LIBS=$ac_save_LIBS 19371for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19372do 19373 # Don't even attempt the hair of trying to link an X program! 19374 for ac_extension in a so sl dylib la dll; do 19375 if test -r "$ac_dir/libX11.$ac_extension"; then 19376 ac_x_libraries=$ac_dir 19377 break 2 19378 fi 19379 done 19380done 19381fi 19382rm -f core conftest.err conftest.$ac_objext \ 19383 conftest$ac_exeext conftest.$ac_ext 19384fi # $ac_x_libraries = no 19385 19386case $ac_x_includes,$ac_x_libraries in #( 19387 no,* | *,no | *\'*) 19388 # Didn't find X, or a directory has "'" in its name. 19389 ac_cv_have_x="have_x=no";; #( 19390 *) 19391 # Record where we found X for the cache. 19392 ac_cv_have_x="have_x=yes\ 19393 ac_x_includes='$ac_x_includes'\ 19394 ac_x_libraries='$ac_x_libraries'" 19395esac 19396fi 19397;; #( 19398 *) have_x=yes;; 19399 esac 19400 eval "$ac_cv_have_x" 19401fi # $with_x != no 19402 19403if test "$have_x" != yes; then 19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19405$as_echo "$have_x" >&6; } 19406 no_x=yes 19407else 19408 # If each of the values was on the command line, it overrides each guess. 19409 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19410 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19411 # Update the cache value to reflect the command line values. 19412 ac_cv_have_x="have_x=yes\ 19413 ac_x_includes='$x_includes'\ 19414 ac_x_libraries='$x_libraries'" 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19416$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19417fi 19418 19419if test "$no_x" = yes; then 19420 # Not all programs may use this symbol, but it does not hurt to define it. 19421 19422$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19423 19424 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19425else 19426 if test -n "$x_includes"; then 19427 X_CFLAGS="$X_CFLAGS -I$x_includes" 19428 fi 19429 19430 # It would also be nice to do this for all -L options, not just this one. 19431 if test -n "$x_libraries"; then 19432 X_LIBS="$X_LIBS -L$x_libraries" 19433 # For Solaris; some versions of Sun CC require a space after -R and 19434 # others require no space. Words are not sufficient . . . . 19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19436$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19437 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19438 ac_xsave_c_werror_flag=$ac_c_werror_flag 19439 ac_c_werror_flag=yes 19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19441/* end confdefs.h. */ 19442 19443int 19444main () 19445{ 19446 19447 ; 19448 return 0; 19449} 19450_ACEOF 19451if ac_fn_c_try_link "$LINENO"; then : 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19453$as_echo "no" >&6; } 19454 X_LIBS="$X_LIBS -R$x_libraries" 19455else 19456 LIBS="$ac_xsave_LIBS -R $x_libraries" 19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19458/* end confdefs.h. */ 19459 19460int 19461main () 19462{ 19463 19464 ; 19465 return 0; 19466} 19467_ACEOF 19468if ac_fn_c_try_link "$LINENO"; then : 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19470$as_echo "yes" >&6; } 19471 X_LIBS="$X_LIBS -R $x_libraries" 19472else 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19474$as_echo "neither works" >&6; } 19475fi 19476rm -f core conftest.err conftest.$ac_objext \ 19477 conftest$ac_exeext conftest.$ac_ext 19478fi 19479rm -f core conftest.err conftest.$ac_objext \ 19480 conftest$ac_exeext conftest.$ac_ext 19481 ac_c_werror_flag=$ac_xsave_c_werror_flag 19482 LIBS=$ac_xsave_LIBS 19483 fi 19484 19485 # Check for system-dependent libraries X programs must link with. 19486 # Do this before checking for the system-independent R6 libraries 19487 # (-lICE), since we may need -lsocket or whatever for X linking. 19488 19489 if test "$ISC" = yes; then 19490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19491 else 19492 # Martyn Johnson says this is needed for Ultrix, if the X 19493 # libraries were built with DECnet support. And Karl Berry says 19494 # the Alpha needs dnet_stub (dnet does not exist). 19495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19497/* end confdefs.h. */ 19498 19499/* Override any GCC internal prototype to avoid an error. 19500 Use char because int might match the return type of a GCC 19501 builtin and then its argument prototype would still apply. */ 19502#ifdef __cplusplus 19503extern "C" 19504#endif 19505char XOpenDisplay (); 19506int 19507main () 19508{ 19509return XOpenDisplay (); 19510 ; 19511 return 0; 19512} 19513_ACEOF 19514if ac_fn_c_try_link "$LINENO"; then : 19515 19516else 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19518$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19519if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19520 $as_echo_n "(cached) " >&6 19521else 19522 ac_check_lib_save_LIBS=$LIBS 19523LIBS="-ldnet $LIBS" 19524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19525/* end confdefs.h. */ 19526 19527/* Override any GCC internal prototype to avoid an error. 19528 Use char because int might match the return type of a GCC 19529 builtin and then its argument prototype would still apply. */ 19530#ifdef __cplusplus 19531extern "C" 19532#endif 19533char dnet_ntoa (); 19534int 19535main () 19536{ 19537return dnet_ntoa (); 19538 ; 19539 return 0; 19540} 19541_ACEOF 19542if ac_fn_c_try_link "$LINENO"; then : 19543 ac_cv_lib_dnet_dnet_ntoa=yes 19544else 19545 ac_cv_lib_dnet_dnet_ntoa=no 19546fi 19547rm -f core conftest.err conftest.$ac_objext \ 19548 conftest$ac_exeext conftest.$ac_ext 19549LIBS=$ac_check_lib_save_LIBS 19550fi 19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19552$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19553if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19554 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19555fi 19556 19557 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19559$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19560if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19561 $as_echo_n "(cached) " >&6 19562else 19563 ac_check_lib_save_LIBS=$LIBS 19564LIBS="-ldnet_stub $LIBS" 19565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19566/* end confdefs.h. */ 19567 19568/* Override any GCC internal prototype to avoid an error. 19569 Use char because int might match the return type of a GCC 19570 builtin and then its argument prototype would still apply. */ 19571#ifdef __cplusplus 19572extern "C" 19573#endif 19574char dnet_ntoa (); 19575int 19576main () 19577{ 19578return dnet_ntoa (); 19579 ; 19580 return 0; 19581} 19582_ACEOF 19583if ac_fn_c_try_link "$LINENO"; then : 19584 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19585else 19586 ac_cv_lib_dnet_stub_dnet_ntoa=no 19587fi 19588rm -f core conftest.err conftest.$ac_objext \ 19589 conftest$ac_exeext conftest.$ac_ext 19590LIBS=$ac_check_lib_save_LIBS 19591fi 19592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19593$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19594if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19596fi 19597 19598 fi 19599fi 19600rm -f core conftest.err conftest.$ac_objext \ 19601 conftest$ac_exeext conftest.$ac_ext 19602 LIBS="$ac_xsave_LIBS" 19603 19604 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 19605 # to get the SysV transport functions. 19606 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19607 # needs -lnsl. 19608 # The nsl library prevents programs from opening the X display 19609 # on Irix 5.2, according to T.E. Dickey. 19610 # The functions gethostbyname, getservbyname, and inet_addr are 19611 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19612 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19613if test "x$ac_cv_func_gethostbyname" = xyes; then : 19614 19615fi 19616 19617 if test $ac_cv_func_gethostbyname = no; then 19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19619$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19620if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19621 $as_echo_n "(cached) " >&6 19622else 19623 ac_check_lib_save_LIBS=$LIBS 19624LIBS="-lnsl $LIBS" 19625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19626/* end confdefs.h. */ 19627 19628/* Override any GCC internal prototype to avoid an error. 19629 Use char because int might match the return type of a GCC 19630 builtin and then its argument prototype would still apply. */ 19631#ifdef __cplusplus 19632extern "C" 19633#endif 19634char gethostbyname (); 19635int 19636main () 19637{ 19638return gethostbyname (); 19639 ; 19640 return 0; 19641} 19642_ACEOF 19643if ac_fn_c_try_link "$LINENO"; then : 19644 ac_cv_lib_nsl_gethostbyname=yes 19645else 19646 ac_cv_lib_nsl_gethostbyname=no 19647fi 19648rm -f core conftest.err conftest.$ac_objext \ 19649 conftest$ac_exeext conftest.$ac_ext 19650LIBS=$ac_check_lib_save_LIBS 19651fi 19652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19653$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19654if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19656fi 19657 19658 if test $ac_cv_lib_nsl_gethostbyname = no; then 19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19660$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19661if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19662 $as_echo_n "(cached) " >&6 19663else 19664 ac_check_lib_save_LIBS=$LIBS 19665LIBS="-lbsd $LIBS" 19666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19667/* end confdefs.h. */ 19668 19669/* Override any GCC internal prototype to avoid an error. 19670 Use char because int might match the return type of a GCC 19671 builtin and then its argument prototype would still apply. */ 19672#ifdef __cplusplus 19673extern "C" 19674#endif 19675char gethostbyname (); 19676int 19677main () 19678{ 19679return gethostbyname (); 19680 ; 19681 return 0; 19682} 19683_ACEOF 19684if ac_fn_c_try_link "$LINENO"; then : 19685 ac_cv_lib_bsd_gethostbyname=yes 19686else 19687 ac_cv_lib_bsd_gethostbyname=no 19688fi 19689rm -f core conftest.err conftest.$ac_objext \ 19690 conftest$ac_exeext conftest.$ac_ext 19691LIBS=$ac_check_lib_save_LIBS 19692fi 19693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19694$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19695if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19697fi 19698 19699 fi 19700 fi 19701 19702 # lieder@skyler.mavd.honeywell.com says without -lsocket, 19703 # socket/setsockopt and other routines are undefined under SCO ODT 19704 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19705 # on later versions), says Simon Leinen: it contains gethostby* 19706 # variants that don't use the name server (or something). -lsocket 19707 # must be given before -lnsl if both are needed. We assume that 19708 # if connect needs -lnsl, so does gethostbyname. 19709 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19710if test "x$ac_cv_func_connect" = xyes; then : 19711 19712fi 19713 19714 if test $ac_cv_func_connect = no; then 19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19716$as_echo_n "checking for connect in -lsocket... " >&6; } 19717if ${ac_cv_lib_socket_connect+:} false; then : 19718 $as_echo_n "(cached) " >&6 19719else 19720 ac_check_lib_save_LIBS=$LIBS 19721LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19723/* end confdefs.h. */ 19724 19725/* Override any GCC internal prototype to avoid an error. 19726 Use char because int might match the return type of a GCC 19727 builtin and then its argument prototype would still apply. */ 19728#ifdef __cplusplus 19729extern "C" 19730#endif 19731char connect (); 19732int 19733main () 19734{ 19735return connect (); 19736 ; 19737 return 0; 19738} 19739_ACEOF 19740if ac_fn_c_try_link "$LINENO"; then : 19741 ac_cv_lib_socket_connect=yes 19742else 19743 ac_cv_lib_socket_connect=no 19744fi 19745rm -f core conftest.err conftest.$ac_objext \ 19746 conftest$ac_exeext conftest.$ac_ext 19747LIBS=$ac_check_lib_save_LIBS 19748fi 19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19750$as_echo "$ac_cv_lib_socket_connect" >&6; } 19751if test "x$ac_cv_lib_socket_connect" = xyes; then : 19752 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19753fi 19754 19755 fi 19756 19757 # Guillermo Gomez says -lposix is necessary on A/UX. 19758 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19759if test "x$ac_cv_func_remove" = xyes; then : 19760 19761fi 19762 19763 if test $ac_cv_func_remove = no; then 19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19765$as_echo_n "checking for remove in -lposix... " >&6; } 19766if ${ac_cv_lib_posix_remove+:} false; then : 19767 $as_echo_n "(cached) " >&6 19768else 19769 ac_check_lib_save_LIBS=$LIBS 19770LIBS="-lposix $LIBS" 19771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19772/* end confdefs.h. */ 19773 19774/* Override any GCC internal prototype to avoid an error. 19775 Use char because int might match the return type of a GCC 19776 builtin and then its argument prototype would still apply. */ 19777#ifdef __cplusplus 19778extern "C" 19779#endif 19780char remove (); 19781int 19782main () 19783{ 19784return remove (); 19785 ; 19786 return 0; 19787} 19788_ACEOF 19789if ac_fn_c_try_link "$LINENO"; then : 19790 ac_cv_lib_posix_remove=yes 19791else 19792 ac_cv_lib_posix_remove=no 19793fi 19794rm -f core conftest.err conftest.$ac_objext \ 19795 conftest$ac_exeext conftest.$ac_ext 19796LIBS=$ac_check_lib_save_LIBS 19797fi 19798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19799$as_echo "$ac_cv_lib_posix_remove" >&6; } 19800if test "x$ac_cv_lib_posix_remove" = xyes; then : 19801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19802fi 19803 19804 fi 19805 19806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19807 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19808if test "x$ac_cv_func_shmat" = xyes; then : 19809 19810fi 19811 19812 if test $ac_cv_func_shmat = no; then 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19814$as_echo_n "checking for shmat in -lipc... " >&6; } 19815if ${ac_cv_lib_ipc_shmat+:} false; then : 19816 $as_echo_n "(cached) " >&6 19817else 19818 ac_check_lib_save_LIBS=$LIBS 19819LIBS="-lipc $LIBS" 19820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19821/* end confdefs.h. */ 19822 19823/* Override any GCC internal prototype to avoid an error. 19824 Use char because int might match the return type of a GCC 19825 builtin and then its argument prototype would still apply. */ 19826#ifdef __cplusplus 19827extern "C" 19828#endif 19829char shmat (); 19830int 19831main () 19832{ 19833return shmat (); 19834 ; 19835 return 0; 19836} 19837_ACEOF 19838if ac_fn_c_try_link "$LINENO"; then : 19839 ac_cv_lib_ipc_shmat=yes 19840else 19841 ac_cv_lib_ipc_shmat=no 19842fi 19843rm -f core conftest.err conftest.$ac_objext \ 19844 conftest$ac_exeext conftest.$ac_ext 19845LIBS=$ac_check_lib_save_LIBS 19846fi 19847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19848$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19849if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19851fi 19852 19853 fi 19854 fi 19855 19856 # Check for libraries that X11R6 Xt/Xaw programs need. 19857 ac_save_LDFLAGS=$LDFLAGS 19858 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19859 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19860 # check for ICE first), but we must link in the order -lSM -lICE or 19861 # we get undefined symbols. So assume we have SM if we have ICE. 19862 # These have to be linked with before -lX11, unlike the other 19863 # libraries we check for below, so use a different variable. 19864 # John Interrante, Karl Berry 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19866$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19867if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19868 $as_echo_n "(cached) " >&6 19869else 19870 ac_check_lib_save_LIBS=$LIBS 19871LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19873/* end confdefs.h. */ 19874 19875/* Override any GCC internal prototype to avoid an error. 19876 Use char because int might match the return type of a GCC 19877 builtin and then its argument prototype would still apply. */ 19878#ifdef __cplusplus 19879extern "C" 19880#endif 19881char IceConnectionNumber (); 19882int 19883main () 19884{ 19885return IceConnectionNumber (); 19886 ; 19887 return 0; 19888} 19889_ACEOF 19890if ac_fn_c_try_link "$LINENO"; then : 19891 ac_cv_lib_ICE_IceConnectionNumber=yes 19892else 19893 ac_cv_lib_ICE_IceConnectionNumber=no 19894fi 19895rm -f core conftest.err conftest.$ac_objext \ 19896 conftest$ac_exeext conftest.$ac_ext 19897LIBS=$ac_check_lib_save_LIBS 19898fi 19899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19900$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19901if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19902 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19903fi 19904 19905 LDFLAGS=$ac_save_LDFLAGS 19906 19907fi 19908 19909 19910 19911 19912 19913ac_ext=c 19914ac_cpp='$CPP $CPPFLAGS' 19915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19917ac_compiler_gnu=$ac_cv_c_compiler_gnu 19918 19919ax_pthread_ok=no 19920 19921 19922if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 19923 save_CFLAGS="$CFLAGS" 19924 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19925 save_LIBS="$LIBS" 19926 LIBS="$PTHREAD_LIBS $LIBS" 19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 19928$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19930/* end confdefs.h. */ 19931 19932/* Override any GCC internal prototype to avoid an error. 19933 Use char because int might match the return type of a GCC 19934 builtin and then its argument prototype would still apply. */ 19935#ifdef __cplusplus 19936extern "C" 19937#endif 19938char pthread_join (); 19939int 19940main () 19941{ 19942return pthread_join (); 19943 ; 19944 return 0; 19945} 19946_ACEOF 19947if ac_fn_c_try_link "$LINENO"; then : 19948 ax_pthread_ok=yes 19949fi 19950rm -f core conftest.err conftest.$ac_objext \ 19951 conftest$ac_exeext conftest.$ac_ext 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19953$as_echo "$ax_pthread_ok" >&6; } 19954 if test x"$ax_pthread_ok" = xno; then 19955 PTHREAD_LIBS="" 19956 PTHREAD_CFLAGS="" 19957 fi 19958 LIBS="$save_LIBS" 19959 CFLAGS="$save_CFLAGS" 19960fi 19961 19962 19963 19964ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19965 19966 19967 19968case "${host_cpu}-${host_os}" in 19969 *solaris*) 19970 19971 19972 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 19973 ;; 19974 19975 *-darwin*) 19976 ax_pthread_flags="-pthread $ax_pthread_flags" 19977 ;; 19978esac 19979 19980if test x"$ax_pthread_ok" = xno; then 19981for flag in $ax_pthread_flags; do 19982 19983 case $flag in 19984 none) 19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19986$as_echo_n "checking whether pthreads work without any flags... " >&6; } 19987 ;; 19988 19989 -*) 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 19991$as_echo_n "checking whether pthreads work with $flag... " >&6; } 19992 PTHREAD_CFLAGS="$flag" 19993 ;; 19994 19995 pthread-config) 19996 # Extract the first word of "pthread-config", so it can be a program name with args. 19997set dummy pthread-config; ac_word=$2 19998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19999$as_echo_n "checking for $ac_word... " >&6; } 20000if ${ac_cv_prog_ax_pthread_config+:} false; then : 20001 $as_echo_n "(cached) " >&6 20002else 20003 if test -n "$ax_pthread_config"; then 20004 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 20005else 20006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20007for as_dir in $PATH 20008do 20009 IFS=$as_save_IFS 20010 test -z "$as_dir" && as_dir=. 20011 for ac_exec_ext in '' $ac_executable_extensions; do 20012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20013 ac_cv_prog_ax_pthread_config="yes" 20014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20015 break 2 20016 fi 20017done 20018 done 20019IFS=$as_save_IFS 20020 20021 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 20022fi 20023fi 20024ax_pthread_config=$ac_cv_prog_ax_pthread_config 20025if test -n "$ax_pthread_config"; then 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 20027$as_echo "$ax_pthread_config" >&6; } 20028else 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20030$as_echo "no" >&6; } 20031fi 20032 20033 20034 if test x"$ax_pthread_config" = xno; then continue; fi 20035 PTHREAD_CFLAGS="`pthread-config --cflags`" 20036 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 20037 ;; 20038 20039 *) 20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 20041$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 20042 PTHREAD_LIBS="-l$flag" 20043 ;; 20044 esac 20045 20046 save_LIBS="$LIBS" 20047 save_CFLAGS="$CFLAGS" 20048 LIBS="$PTHREAD_LIBS $LIBS" 20049 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20050 20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20052/* end confdefs.h. */ 20053#include <pthread.h> 20054 static void routine(void* a) {a=0;} 20055 static void* start_routine(void* a) {return a;} 20056int 20057main () 20058{ 20059pthread_t th; pthread_attr_t attr; 20060 pthread_create(&th,0,start_routine,0); 20061 pthread_join(th, 0); 20062 pthread_attr_init(&attr); 20063 pthread_cleanup_push(routine, 0); 20064 pthread_cleanup_pop(0); 20065 ; 20066 return 0; 20067} 20068_ACEOF 20069if ac_fn_c_try_link "$LINENO"; then : 20070 ax_pthread_ok=yes 20071fi 20072rm -f core conftest.err conftest.$ac_objext \ 20073 conftest$ac_exeext conftest.$ac_ext 20074 20075 LIBS="$save_LIBS" 20076 CFLAGS="$save_CFLAGS" 20077 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20079$as_echo "$ax_pthread_ok" >&6; } 20080 if test "x$ax_pthread_ok" = xyes; then 20081 break; 20082 fi 20083 20084 PTHREAD_LIBS="" 20085 PTHREAD_CFLAGS="" 20086done 20087fi 20088 20089if test "x$ax_pthread_ok" = xyes; then 20090 save_LIBS="$LIBS" 20091 LIBS="$PTHREAD_LIBS $LIBS" 20092 save_CFLAGS="$CFLAGS" 20093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20094 20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 20096$as_echo_n "checking for joinable pthread attribute... " >&6; } 20097 attr_name=unknown 20098 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20100/* end confdefs.h. */ 20101#include <pthread.h> 20102int 20103main () 20104{ 20105int attr=$attr; return attr; 20106 ; 20107 return 0; 20108} 20109_ACEOF 20110if ac_fn_c_try_link "$LINENO"; then : 20111 attr_name=$attr; break 20112fi 20113rm -f core conftest.err conftest.$ac_objext \ 20114 conftest$ac_exeext conftest.$ac_ext 20115 done 20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 20117$as_echo "$attr_name" >&6; } 20118 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 20119 20120cat >>confdefs.h <<_ACEOF 20121#define PTHREAD_CREATE_JOINABLE $attr_name 20122_ACEOF 20123 20124 fi 20125 20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 20127$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 20128 flag=no 20129 case "${host_cpu}-${host_os}" in 20130 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 20131 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 20132 esac 20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 20134$as_echo "${flag}" >&6; } 20135 if test "x$flag" != xno; then 20136 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 20137 fi 20138 20139 LIBS="$save_LIBS" 20140 CFLAGS="$save_CFLAGS" 20141 20142 if test x"$GCC" != xyes; then 20143 for ac_prog in xlc_r cc_r 20144do 20145 # Extract the first word of "$ac_prog", so it can be a program name with args. 20146set dummy $ac_prog; ac_word=$2 20147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20148$as_echo_n "checking for $ac_word... " >&6; } 20149if ${ac_cv_prog_PTHREAD_CC+:} false; then : 20150 $as_echo_n "(cached) " >&6 20151else 20152 if test -n "$PTHREAD_CC"; then 20153 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 20154else 20155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20156for as_dir in $PATH 20157do 20158 IFS=$as_save_IFS 20159 test -z "$as_dir" && as_dir=. 20160 for ac_exec_ext in '' $ac_executable_extensions; do 20161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20162 ac_cv_prog_PTHREAD_CC="$ac_prog" 20163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20164 break 2 20165 fi 20166done 20167 done 20168IFS=$as_save_IFS 20169 20170fi 20171fi 20172PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 20173if test -n "$PTHREAD_CC"; then 20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 20175$as_echo "$PTHREAD_CC" >&6; } 20176else 20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20178$as_echo "no" >&6; } 20179fi 20180 20181 20182 test -n "$PTHREAD_CC" && break 20183done 20184test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 20185 20186 else 20187 PTHREAD_CC=$CC 20188 fi 20189else 20190 PTHREAD_CC="$CC" 20191fi 20192 20193 20194 20195 20196 20197if test x"$ax_pthread_ok" = xyes; then 20198 20199$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 20200 20201 : 20202else 20203 ax_pthread_ok=no 20204 20205fi 20206ac_ext=c 20207ac_cpp='$CPP $CPPFLAGS' 20208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20210ac_compiler_gnu=$ac_cv_c_compiler_gnu 20211 20212 20213 20214 20215ac_ext=c 20216ac_cpp='$CPP $CPPFLAGS' 20217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20219ac_compiler_gnu=$ac_cv_c_compiler_gnu 20220 20221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 20222$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 20223if ${ax_cv_c_compiler_ms+:} false; then : 20224 $as_echo_n "(cached) " >&6 20225else 20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20227/* end confdefs.h. */ 20228 20229int 20230main () 20231{ 20232#ifndef _MSC_VER 20233 choke me 20234#endif 20235 20236 ; 20237 return 0; 20238} 20239_ACEOF 20240if ac_fn_c_try_compile "$LINENO"; then : 20241 ax_compiler_ms=yes 20242else 20243 ax_compiler_ms=no 20244fi 20245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20246ax_cv_c_compiler_ms=$ax_compiler_ms 20247 20248fi 20249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 20250$as_echo "$ax_cv_c_compiler_ms" >&6; } 20251if test X$ax_compiler_ms = Xno; then : 20252 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 20253fi 20254 20255if test "X$no_x" != "Xyes"; then : 20256 if test -n "$x_includes"; then : 20257 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 20258fi 20259 if test -n "$x_libraries"; then : 20260 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 20261fi 20262fi 20263 20264ax_save_CPPFLAGS="${CPPFLAGS}" 20265CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20266for ac_header in GL/gl.h OpenGL/gl.h 20267do : 20268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20269ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20270if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20271 cat >>confdefs.h <<_ACEOF 20272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20273_ACEOF 20274 20275fi 20276 20277done 20278 20279CPPFLAGS="${ax_save_CPPFLAGS}" 20280 20281for ac_header in windows.h 20282do : 20283 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 20284if test "x$ac_cv_header_windows_h" = xyes; then : 20285 cat >>confdefs.h <<_ACEOF 20286#define HAVE_WINDOWS_H 1 20287_ACEOF 20288 20289fi 20290 20291done 20292 20293 20294 20295 20296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 20297$as_echo_n "checking for OpenGL library... " >&6; } 20298if ${ax_cv_check_gl_libgl+:} false; then : 20299 $as_echo_n "(cached) " >&6 20300else 20301 ax_cv_check_gl_libgl="no" 20302case $host_cpu in 20303 x86_64) ax_check_gl_libdir=lib64 ;; 20304 *) ax_check_gl_libdir=lib ;; 20305esac 20306ax_save_CPPFLAGS="${CPPFLAGS}" 20307CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20308ax_save_LIBS="${LIBS}" 20309LIBS="" 20310ax_check_libs="-lopengl32 -lGL" 20311for ax_lib in ${ax_check_libs}; do 20312 if test X$ax_compiler_ms = Xyes; then : 20313 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20314else 20315 ax_try_lib="${ax_lib}" 20316fi 20317 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319/* end confdefs.h. */ 20320 20321# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20322# include <windows.h> 20323# endif 20324# ifdef HAVE_GL_GL_H 20325# include <GL/gl.h> 20326# elif defined(HAVE_OPENGL_GL_H) 20327# include <OpenGL/gl.h> 20328# else 20329# error no gl.h 20330# endif 20331int 20332main () 20333{ 20334glBegin(0) 20335 ; 20336 return 0; 20337} 20338_ACEOF 20339if ac_fn_c_try_link "$LINENO"; then : 20340 ax_cv_check_gl_libgl="${ax_try_lib}"; break 20341else 20342 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}" 20343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20344/* end confdefs.h. */ 20345 20346# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20347# include <windows.h> 20348# endif 20349# ifdef HAVE_GL_GL_H 20350# include <GL/gl.h> 20351# elif defined(HAVE_OPENGL_GL_H) 20352# include <OpenGL/gl.h> 20353# else 20354# error no gl.h 20355# endif 20356int 20357main () 20358{ 20359glBegin(0) 20360 ; 20361 return 0; 20362} 20363_ACEOF 20364if ac_fn_c_try_link "$LINENO"; then : 20365 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 20366else 20367 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}" 20368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20369/* end confdefs.h. */ 20370 20371# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20372# include <windows.h> 20373# endif 20374# ifdef HAVE_GL_GL_H 20375# include <GL/gl.h> 20376# elif defined(HAVE_OPENGL_GL_H) 20377# include <OpenGL/gl.h> 20378# else 20379# error no gl.h 20380# endif 20381int 20382main () 20383{ 20384glBegin(0) 20385 ; 20386 return 0; 20387} 20388_ACEOF 20389if ac_fn_c_try_link "$LINENO"; then : 20390 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 20391fi 20392rm -f core conftest.err conftest.$ac_objext \ 20393 conftest$ac_exeext conftest.$ac_ext 20394fi 20395rm -f core conftest.err conftest.$ac_objext \ 20396 conftest$ac_exeext conftest.$ac_ext 20397fi 20398rm -f core conftest.err conftest.$ac_objext \ 20399 conftest$ac_exeext conftest.$ac_ext 20400done 20401 20402if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 20403 LIBS='-framework OpenGL' 20404cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20405/* end confdefs.h. */ 20406 20407# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20408# include <windows.h> 20409# endif 20410# ifdef HAVE_GL_GL_H 20411# include <GL/gl.h> 20412# elif defined(HAVE_OPENGL_GL_H) 20413# include <OpenGL/gl.h> 20414# else 20415# error no gl.h 20416# endif 20417int 20418main () 20419{ 20420glBegin(0) 20421 ; 20422 return 0; 20423} 20424_ACEOF 20425if ac_fn_c_try_link "$LINENO"; then : 20426 ax_cv_check_gl_libgl="$LIBS" 20427fi 20428rm -f core conftest.err conftest.$ac_objext \ 20429 conftest$ac_exeext conftest.$ac_ext 20430fi 20431 20432LIBS=${ax_save_LIBS} 20433CPPFLAGS=${ax_save_CPPFLAGS} 20434fi 20435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 20436$as_echo "$ax_cv_check_gl_libgl" >&6; } 20437 20438if test "X$ax_cv_check_gl_libgl" = Xno; then : 20439 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 20440else 20441 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 20442fi 20443ac_ext=c 20444ac_cpp='$CPP $CPPFLAGS' 20445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20447ac_compiler_gnu=$ac_cv_c_compiler_gnu 20448 20449 20450 20451 20452 20453 20454GLU_CFLAGS="${GL_CFLAGS}" 20455 20456ax_save_CPPFLAGS="${CPPFLAGS}" 20457CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20458for ac_header in GL/glu.h OpenGL/glu.h 20459do : 20460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20461ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20463 cat >>confdefs.h <<_ACEOF 20464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20465_ACEOF 20466 20467fi 20468 20469done 20470 20471CPPFLAGS="${ax_save_CPPFLAGS}" 20472 20473 20474 20475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 20476$as_echo_n "checking for OpenGL Utility library... " >&6; } 20477if ${ax_cv_check_glu_libglu+:} false; then : 20478 $as_echo_n "(cached) " >&6 20479else 20480 ax_cv_check_glu_libglu="no" 20481ax_save_CPPFLAGS="${CPPFLAGS}" 20482CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20483ax_save_LIBS="${LIBS}" 20484 20485LIBS="${GL_LIBS} ${ax_save_LIBS}" 20486ac_ext=cpp 20487ac_cpp='$CXXCPP $CPPFLAGS' 20488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20491 20492if test X$ax_compiler_ms = Xyes; then : 20493 ac_ext=c 20494ac_cpp='$CPP $CPPFLAGS' 20495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20497ac_compiler_gnu=$ac_cv_c_compiler_gnu 20498 20499fi 20500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20501/* end confdefs.h. */ 20502 20503# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20504# include <windows.h> 20505# endif 20506# ifdef HAVE_GL_GLU_H 20507# include <GL/glu.h> 20508# elif defined(HAVE_OPENGL_GLU_H) 20509# include <OpenGL/glu.h> 20510# else 20511# error no glu.h 20512# endif 20513int 20514main () 20515{ 20516gluBeginCurve(0) 20517 ; 20518 return 0; 20519} 20520_ACEOF 20521if ac_fn_c_try_link "$LINENO"; then : 20522 ax_cv_check_glu_libglu=yes 20523else 20524 LIBS="" 20525ax_check_libs="-lglu32 -lGLU" 20526for ax_lib in ${ax_check_libs}; do 20527 if test X$ax_compiler_ms = Xyes; then : 20528 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20529else 20530 ax_try_lib="${ax_lib}" 20531fi 20532 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20534/* end confdefs.h. */ 20535 20536# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20537# include <windows.h> 20538# endif 20539# ifdef HAVE_GL_GLU_H 20540# include <GL/glu.h> 20541# elif defined(HAVE_OPENGL_GLU_H) 20542# include <OpenGL/glu.h> 20543# else 20544# error no glu.h 20545# endif 20546int 20547main () 20548{ 20549gluBeginCurve(0) 20550 ; 20551 return 0; 20552} 20553_ACEOF 20554if ac_fn_c_try_link "$LINENO"; then : 20555 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20556fi 20557rm -f core conftest.err conftest.$ac_objext \ 20558 conftest$ac_exeext conftest.$ac_ext 20559done 20560 20561fi 20562rm -f core conftest.err conftest.$ac_objext \ 20563 conftest$ac_exeext conftest.$ac_ext 20564if test X$ax_compiler_ms = Xyes; then : 20565 ac_ext=cpp 20566ac_cpp='$CXXCPP $CPPFLAGS' 20567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20570 20571fi 20572ac_ext=c 20573ac_cpp='$CPP $CPPFLAGS' 20574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20576ac_compiler_gnu=$ac_cv_c_compiler_gnu 20577 20578 20579LIBS=${ax_save_LIBS} 20580CPPFLAGS=${ax_save_CPPFLAGS} 20581fi 20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 20583$as_echo "$ax_cv_check_glu_libglu" >&6; } 20584if test "X$ax_cv_check_glu_libglu" = Xno; then : 20585 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 20586else 20587 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 20588 GLU_LIBS="$GL_LIBS" 20589else 20590 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 20591fi 20592fi 20593 20594 20595 20596if test "X$ax_cv_check_glu_libglu" != Xno; then : 20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 20598$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 20599if ${ax_cv_varargs_glu_tesscb+:} false; then : 20600 $as_echo_n "(cached) " >&6 20601else 20602 ax_cv_varargs_glu_tesscb=no 20603ax_save_CFLAGS="$CFLAGS" 20604CFLAGS="$GL_CFLAGS $CFLAGS" 20605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20606/* end confdefs.h. */ 20607 20608# ifdef HAVE_GL_GLU_H 20609# include <GL/glu.h> 20610# else 20611# include <OpenGL/glu.h> 20612# endif 20613int 20614main () 20615{ 20616GLvoid (*func)(...); gluTessCallback(0, 0, func) 20617 ; 20618 return 0; 20619} 20620_ACEOF 20621if ac_fn_c_try_compile "$LINENO"; then : 20622 ax_cv_varargs_glu_tesscb=yes 20623fi 20624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20625CFLAGS="$ax_save_CFLAGS" 20626fi 20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 20628$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 20629if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 20630 20631$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 20632 20633fi 20634fi 20635 20636 20637 20638ax_save_CPPFLAGS="${CPPFLAGS}" 20639CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 20640for ac_header in GL/glut.h GLUT/glut.h 20641do : 20642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20643ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20644if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20645 cat >>confdefs.h <<_ACEOF 20646#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20647_ACEOF 20648 20649fi 20650 20651done 20652 20653CPPFLAGS="${ax_save_CPPFLAGS}" 20654 20655GLUT_CFLAGS=${GLU_CFLAGS} 20656GLUT_LIBS=${GLU_LIBS} 20657 20658 20659 20660if test X$no_x != Xyes; then : 20661 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 20662fi 20663 20664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 20665$as_echo_n "checking for GLUT library... " >&6; } 20666if ${ax_cv_check_glut_libglut+:} false; then : 20667 $as_echo_n "(cached) " >&6 20668else 20669 ax_cv_check_glut_libglut="no" 20670ac_ext=c 20671ac_cpp='$CPP $CPPFLAGS' 20672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20674ac_compiler_gnu=$ac_cv_c_compiler_gnu 20675 20676ax_save_CPPFLAGS="${CPPFLAGS}" 20677CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 20678ax_save_LIBS="${LIBS}" 20679LIBS="" 20680ax_check_libs="-lglut32 -lglut" 20681for ax_lib in ${ax_check_libs}; do 20682 if test X$ax_compiler_ms = Xyes; then : 20683 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20684else 20685 ax_try_lib="${ax_lib}" 20686fi 20687 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20689/* end confdefs.h. */ 20690 20691# if HAVE_WINDOWS_H && defined(_WIN32) 20692# include <windows.h> 20693# endif 20694# ifdef HAVE_GL_GLUT_H 20695# include <GL/glut.h> 20696# elif defined(HAVE_GLUT_GLUT_H) 20697# include <GLUT/glut.h> 20698# else 20699# error no glut.h 20700# endif 20701int 20702main () 20703{ 20704glutMainLoop() 20705 ; 20706 return 0; 20707} 20708_ACEOF 20709if ac_fn_c_try_link "$LINENO"; then : 20710 ax_cv_check_glut_libglut="${ax_try_lib}"; break 20711fi 20712rm -f core conftest.err conftest.$ac_objext \ 20713 conftest$ac_exeext conftest.$ac_ext 20714done 20715 20716if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 20717 LIBS='-framework GLUT' 20718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20719/* end confdefs.h. */ 20720 20721# if HAVE_WINDOWS_H && defined(_WIN32) 20722# include <windows.h> 20723# endif 20724# ifdef HAVE_GL_GLUT_H 20725# include <GL/glut.h> 20726# elif defined(HAVE_GLUT_GLUT_H) 20727# include <GLUT/glut.h> 20728# else 20729# error no glut.h 20730# endif 20731int 20732main () 20733{ 20734glutMainLoop() 20735 ; 20736 return 0; 20737} 20738_ACEOF 20739if ac_fn_c_try_link "$LINENO"; then : 20740 ax_cv_check_glut_libglut="$LIBS" 20741fi 20742rm -f core conftest.err conftest.$ac_objext \ 20743 conftest$ac_exeext conftest.$ac_ext 20744fi 20745 20746CPPFLAGS="${ax_save_CPPFLAGS}" 20747LIBS="${ax_save_LIBS}" 20748ac_ext=c 20749ac_cpp='$CPP $CPPFLAGS' 20750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20752ac_compiler_gnu=$ac_cv_c_compiler_gnu 20753 20754fi 20755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 20756$as_echo "$ax_cv_check_glut_libglut" >&6; } 20757 20758if test "X$ax_cv_check_glut_libglut" = Xno; then : 20759 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 20760else 20761 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 20762fi 20763 20764 20765 20766 20767 20768if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 20769 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 20770 HAVE_OPENGL=yes 20771fi 20772 20773 if test "$HAVE_OPENGL" = "yes"; then 20774 HAVE_OPENGL_TRUE= 20775 HAVE_OPENGL_FALSE='#' 20776else 20777 HAVE_OPENGL_TRUE='#' 20778 HAVE_OPENGL_FALSE= 20779fi 20780 20781 20782 20783# Check whether --enable-win32-io was given. 20784if test "${enable_win32_io+set}" = set; then : 20785 enableval=$enable_win32_io; 20786fi 20787 20788 20789win32_io_ok=no 20790case "${host_os}" in 20791 cygwin*) 20792 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then 20793 win32_io_ok=yes 20794 fi 20795 ;; 20796 *) 20797 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then 20798 win32_io_ok=yes 20799 fi 20800 ;; 20801esac 20802 20803if test "$win32_io_ok" = "yes" ; then 20804 20805$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 20806 20807fi 20808 20809 if test "$win32_io_ok" = yes; then 20810 WIN32_IO_TRUE= 20811 WIN32_IO_FALSE='#' 20812else 20813 WIN32_IO_TRUE='#' 20814 WIN32_IO_FALSE= 20815fi 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825# Check whether --enable-strip-chopping was given. 20826if test "${enable_strip_chopping+set}" = set; then : 20827 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 20828else 20829 HAVE_STRIPCHOP=yes 20830fi 20831 20832 20833# Check whether --with-default-strip-size was given. 20834if test "${with_default_strip_size+set}" = set; then : 20835 withval=$with_default_strip_size; 20836fi 20837 20838 20839if test "$HAVE_STRIPCHOP" = "yes" \ 20840 -a "x$with_default_strip_size" != "xno"; then 20841 20842$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 20843 20844 20845 if test "x$with_default_strip_size" = "x" \ 20846 -o "x$with_default_strip_size" = "xyes"; then 20847 with_default_strip_size="8192" 20848 fi 20849 20850 20851cat >>confdefs.h <<_ACEOF 20852#define STRIP_SIZE_DEFAULT $with_default_strip_size 20853_ACEOF 20854 20855 20856fi 20857 20858 20859# Check whether --enable-defer-strile-load was given. 20860if test "${enable_defer_strile_load+set}" = set; then : 20861 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20862else 20863 HAVE_DEFER_STRILE_LOAD=no 20864fi 20865 20866 20867if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20868 20869$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20870 20871 20872fi 20873 20874 20875# Check whether --enable-chunky-strip-read was given. 20876if test "${enable_chunky_strip_read+set}" = set; then : 20877 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20878else 20879 HAVE_CHUNKY_STRIP_READ=no 20880fi 20881 20882 20883if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20884 20885$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20886 20887 20888fi 20889 20890 20891$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20892 20893 20894 20895# Check whether --enable-extrasample-as-alpha was given. 20896if test "${enable_extrasample_as_alpha+set}" = set; then : 20897 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20898else 20899 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20900fi 20901 20902 20903if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20904 20905$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20906 20907fi 20908 20909 20910# Check whether --enable-check-ycbcr-subsampling was given. 20911if test "${enable_check_ycbcr_subsampling+set}" = set; then : 20912 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 20913else 20914 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 20915fi 20916 20917 20918if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 20919 20920$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 20921 20922fi 20923 20924 20925 20926 20927ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 20928 20929 20930ac_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" 20931 20932cat >confcache <<\_ACEOF 20933# This file is a shell script that caches the results of configure 20934# tests run on this system so they can be shared between configure 20935# scripts and configure runs, see configure's option --config-cache. 20936# It is not useful on other systems. If it contains results you don't 20937# want to keep, you may remove or edit it. 20938# 20939# config.status only pays attention to the cache file if you give it 20940# the --recheck option to rerun configure. 20941# 20942# `ac_cv_env_foo' variables (set or unset) will be overridden when 20943# loading this file, other *unset* `ac_cv_foo' will be assigned the 20944# following values. 20945 20946_ACEOF 20947 20948# The following way of writing the cache mishandles newlines in values, 20949# but we know of no workaround that is simple, portable, and efficient. 20950# So, we kill variables containing newlines. 20951# Ultrix sh set writes to stderr and can't be redirected directly, 20952# and sets the high bit in the cache file unless we assign to the vars. 20953( 20954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20955 eval ac_val=\$$ac_var 20956 case $ac_val in #( 20957 *${as_nl}*) 20958 case $ac_var in #( 20959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20960$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20961 esac 20962 case $ac_var in #( 20963 _ | IFS | as_nl) ;; #( 20964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20965 *) { eval $ac_var=; unset $ac_var;} ;; 20966 esac ;; 20967 esac 20968 done 20969 20970 (set) 2>&1 | 20971 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20972 *${as_nl}ac_space=\ *) 20973 # `set' does not quote correctly, so add quotes: double-quote 20974 # substitution turns \\\\ into \\, and sed turns \\ into \. 20975 sed -n \ 20976 "s/'/'\\\\''/g; 20977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20978 ;; #( 20979 *) 20980 # `set' quotes correctly as required by POSIX, so do not add quotes. 20981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20982 ;; 20983 esac | 20984 sort 20985) | 20986 sed ' 20987 /^ac_cv_env_/b end 20988 t clear 20989 :clear 20990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20991 t end 20992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20993 :end' >>confcache 20994if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20995 if test -w "$cache_file"; then 20996 if test "x$cache_file" != "x/dev/null"; then 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20998$as_echo "$as_me: updating cache $cache_file" >&6;} 20999 if test ! -f "$cache_file" || test -h "$cache_file"; then 21000 cat confcache >"$cache_file" 21001 else 21002 case $cache_file in #( 21003 */* | ?:*) 21004 mv -f confcache "$cache_file"$$ && 21005 mv -f "$cache_file"$$ "$cache_file" ;; #( 21006 *) 21007 mv -f confcache "$cache_file" ;; 21008 esac 21009 fi 21010 fi 21011 else 21012 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21013$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21014 fi 21015fi 21016rm -f confcache 21017 21018test "x$prefix" = xNONE && prefix=$ac_default_prefix 21019# Let make expand exec_prefix. 21020test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21021 21022DEFS=-DHAVE_CONFIG_H 21023 21024ac_libobjs= 21025ac_ltlibobjs= 21026U= 21027for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21028 # 1. Remove the extension, and $U if already installed. 21029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21032 # will be set to the directory where LIBOBJS objects are built. 21033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21035done 21036LIBOBJS=$ac_libobjs 21037 21038LTLIBOBJS=$ac_ltlibobjs 21039 21040 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21042$as_echo_n "checking that generated files are newer than configure... " >&6; } 21043 if test -n "$am_sleep_pid"; then 21044 # Hide warnings about reused PIDs. 21045 wait $am_sleep_pid 2>/dev/null 21046 fi 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21048$as_echo "done" >&6; } 21049 if test -n "$EXEEXT"; then 21050 am__EXEEXT_TRUE= 21051 am__EXEEXT_FALSE='#' 21052else 21053 am__EXEEXT_TRUE='#' 21054 am__EXEEXT_FALSE= 21055fi 21056 21057if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21058 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 21059Usually this means the macro was only invoked conditionally." "$LINENO" 5 21060fi 21061if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21062 as_fn_error $? "conditional \"AMDEP\" was never defined. 21063Usually this means the macro was only invoked conditionally." "$LINENO" 5 21064fi 21065if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21066 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21067Usually this means the macro was only invoked conditionally." "$LINENO" 5 21068fi 21069if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 21070 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 21071Usually this means the macro was only invoked conditionally." "$LINENO" 5 21072fi 21073if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21074 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21075Usually this means the macro was only invoked conditionally." "$LINENO" 5 21076fi 21077 21078if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 21079 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 21080Usually this means the macro was only invoked conditionally." "$LINENO" 5 21081fi 21082if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then 21083 as_fn_error $? "conditional \"HAVE_JPEG\" was never defined. 21084Usually this means the macro was only invoked conditionally." "$LINENO" 5 21085fi 21086if test -z "${HAVE_JBIG_TRUE}" && test -z "${HAVE_JBIG_FALSE}"; then 21087 as_fn_error $? "conditional \"HAVE_JBIG\" was never defined. 21088Usually this means the macro was only invoked conditionally." "$LINENO" 5 21089fi 21090if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then 21091 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined. 21092Usually this means the macro was only invoked conditionally." "$LINENO" 5 21093fi 21094if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 21095 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 21096Usually this means the macro was only invoked conditionally." "$LINENO" 5 21097fi 21098if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 21099 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 21100Usually this means the macro was only invoked conditionally." "$LINENO" 5 21101fi 21102if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 21103 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 21104Usually this means the macro was only invoked conditionally." "$LINENO" 5 21105fi 21106 21107: "${CONFIG_STATUS=./config.status}" 21108ac_write_fail=0 21109ac_clean_files_save=$ac_clean_files 21110ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21111{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21112$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21113as_write_fail=0 21114cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21115#! $SHELL 21116# Generated by $as_me. 21117# Run this file to recreate the current configuration. 21118# Compiler output produced by configure, useful for debugging 21119# configure, is in config.log if it exists. 21120 21121debug=false 21122ac_cs_recheck=false 21123ac_cs_silent=false 21124 21125SHELL=\${CONFIG_SHELL-$SHELL} 21126export SHELL 21127_ASEOF 21128cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21129## -------------------- ## 21130## M4sh Initialization. ## 21131## -------------------- ## 21132 21133# Be more Bourne compatible 21134DUALCASE=1; export DUALCASE # for MKS sh 21135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21136 emulate sh 21137 NULLCMD=: 21138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21139 # is contrary to our usage. Disable this feature. 21140 alias -g '${1+"$@"}'='"$@"' 21141 setopt NO_GLOB_SUBST 21142else 21143 case `(set -o) 2>/dev/null` in #( 21144 *posix*) : 21145 set -o posix ;; #( 21146 *) : 21147 ;; 21148esac 21149fi 21150 21151 21152as_nl=' 21153' 21154export as_nl 21155# Printing a long string crashes Solaris 7 /usr/bin/printf. 21156as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21159# Prefer a ksh shell builtin over an external printf program on Solaris, 21160# but without wasting forks for bash or zsh. 21161if test -z "$BASH_VERSION$ZSH_VERSION" \ 21162 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21163 as_echo='print -r --' 21164 as_echo_n='print -rn --' 21165elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21166 as_echo='printf %s\n' 21167 as_echo_n='printf %s' 21168else 21169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21170 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21171 as_echo_n='/usr/ucb/echo -n' 21172 else 21173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21174 as_echo_n_body='eval 21175 arg=$1; 21176 case $arg in #( 21177 *"$as_nl"*) 21178 expr "X$arg" : "X\\(.*\\)$as_nl"; 21179 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21180 esac; 21181 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21182 ' 21183 export as_echo_n_body 21184 as_echo_n='sh -c $as_echo_n_body as_echo' 21185 fi 21186 export as_echo_body 21187 as_echo='sh -c $as_echo_body as_echo' 21188fi 21189 21190# The user is always right. 21191if test "${PATH_SEPARATOR+set}" != set; then 21192 PATH_SEPARATOR=: 21193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21195 PATH_SEPARATOR=';' 21196 } 21197fi 21198 21199 21200# IFS 21201# We need space, tab and new line, in precisely that order. Quoting is 21202# there to prevent editors from complaining about space-tab. 21203# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21204# splitting by setting IFS to empty value.) 21205IFS=" "" $as_nl" 21206 21207# Find who we are. Look in the path if we contain no directory separator. 21208as_myself= 21209case $0 in #(( 21210 *[\\/]* ) as_myself=$0 ;; 21211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21212for as_dir in $PATH 21213do 21214 IFS=$as_save_IFS 21215 test -z "$as_dir" && as_dir=. 21216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21217 done 21218IFS=$as_save_IFS 21219 21220 ;; 21221esac 21222# We did not find ourselves, most probably we were run as `sh COMMAND' 21223# in which case we are not to be found in the path. 21224if test "x$as_myself" = x; then 21225 as_myself=$0 21226fi 21227if test ! -f "$as_myself"; then 21228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21229 exit 1 21230fi 21231 21232# Unset variables that we do not need and which cause bugs (e.g. in 21233# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21234# suppresses any "Segmentation fault" message there. '((' could 21235# trigger a bug in pdksh 5.2.14. 21236for as_var in BASH_ENV ENV MAIL MAILPATH 21237do eval test x\${$as_var+set} = xset \ 21238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21239done 21240PS1='$ ' 21241PS2='> ' 21242PS4='+ ' 21243 21244# NLS nuisances. 21245LC_ALL=C 21246export LC_ALL 21247LANGUAGE=C 21248export LANGUAGE 21249 21250# CDPATH. 21251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21252 21253 21254# as_fn_error STATUS ERROR [LINENO LOG_FD] 21255# ---------------------------------------- 21256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21258# script with STATUS, using 1 if that was 0. 21259as_fn_error () 21260{ 21261 as_status=$1; test $as_status -eq 0 && as_status=1 21262 if test "$4"; then 21263 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21265 fi 21266 $as_echo "$as_me: error: $2" >&2 21267 as_fn_exit $as_status 21268} # as_fn_error 21269 21270 21271# as_fn_set_status STATUS 21272# ----------------------- 21273# Set $? to STATUS, without forking. 21274as_fn_set_status () 21275{ 21276 return $1 21277} # as_fn_set_status 21278 21279# as_fn_exit STATUS 21280# ----------------- 21281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21282as_fn_exit () 21283{ 21284 set +e 21285 as_fn_set_status $1 21286 exit $1 21287} # as_fn_exit 21288 21289# as_fn_unset VAR 21290# --------------- 21291# Portably unset VAR. 21292as_fn_unset () 21293{ 21294 { eval $1=; unset $1;} 21295} 21296as_unset=as_fn_unset 21297# as_fn_append VAR VALUE 21298# ---------------------- 21299# Append the text in VALUE to the end of the definition contained in VAR. Take 21300# advantage of any shell optimizations that allow amortized linear growth over 21301# repeated appends, instead of the typical quadratic growth present in naive 21302# implementations. 21303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21304 eval 'as_fn_append () 21305 { 21306 eval $1+=\$2 21307 }' 21308else 21309 as_fn_append () 21310 { 21311 eval $1=\$$1\$2 21312 } 21313fi # as_fn_append 21314 21315# as_fn_arith ARG... 21316# ------------------ 21317# Perform arithmetic evaluation on the ARGs, and store the result in the 21318# global $as_val. Take advantage of shells that can avoid forks. The arguments 21319# must be portable across $(()) and expr. 21320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21321 eval 'as_fn_arith () 21322 { 21323 as_val=$(( $* )) 21324 }' 21325else 21326 as_fn_arith () 21327 { 21328 as_val=`expr "$@" || test $? -eq 1` 21329 } 21330fi # as_fn_arith 21331 21332 21333if expr a : '\(a\)' >/dev/null 2>&1 && 21334 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21335 as_expr=expr 21336else 21337 as_expr=false 21338fi 21339 21340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21341 as_basename=basename 21342else 21343 as_basename=false 21344fi 21345 21346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21347 as_dirname=dirname 21348else 21349 as_dirname=false 21350fi 21351 21352as_me=`$as_basename -- "$0" || 21353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21354 X"$0" : 'X\(//\)$' \| \ 21355 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21356$as_echo X/"$0" | 21357 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21358 s//\1/ 21359 q 21360 } 21361 /^X\/\(\/\/\)$/{ 21362 s//\1/ 21363 q 21364 } 21365 /^X\/\(\/\).*/{ 21366 s//\1/ 21367 q 21368 } 21369 s/.*/./; q'` 21370 21371# Avoid depending upon Character Ranges. 21372as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21374as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21375as_cr_digits='0123456789' 21376as_cr_alnum=$as_cr_Letters$as_cr_digits 21377 21378ECHO_C= ECHO_N= ECHO_T= 21379case `echo -n x` in #((((( 21380-n*) 21381 case `echo 'xy\c'` in 21382 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21383 xy) ECHO_C='\c';; 21384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21385 ECHO_T=' ';; 21386 esac;; 21387*) 21388 ECHO_N='-n';; 21389esac 21390 21391rm -f conf$$ conf$$.exe conf$$.file 21392if test -d conf$$.dir; then 21393 rm -f conf$$.dir/conf$$.file 21394else 21395 rm -f conf$$.dir 21396 mkdir conf$$.dir 2>/dev/null 21397fi 21398if (echo >conf$$.file) 2>/dev/null; then 21399 if ln -s conf$$.file conf$$ 2>/dev/null; then 21400 as_ln_s='ln -s' 21401 # ... but there are two gotchas: 21402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21404 # In both cases, we have to default to `cp -pR'. 21405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21406 as_ln_s='cp -pR' 21407 elif ln conf$$.file conf$$ 2>/dev/null; then 21408 as_ln_s=ln 21409 else 21410 as_ln_s='cp -pR' 21411 fi 21412else 21413 as_ln_s='cp -pR' 21414fi 21415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21416rmdir conf$$.dir 2>/dev/null 21417 21418 21419# as_fn_mkdir_p 21420# ------------- 21421# Create "$as_dir" as a directory, including parents if necessary. 21422as_fn_mkdir_p () 21423{ 21424 21425 case $as_dir in #( 21426 -*) as_dir=./$as_dir;; 21427 esac 21428 test -d "$as_dir" || eval $as_mkdir_p || { 21429 as_dirs= 21430 while :; do 21431 case $as_dir in #( 21432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21433 *) as_qdir=$as_dir;; 21434 esac 21435 as_dirs="'$as_qdir' $as_dirs" 21436 as_dir=`$as_dirname -- "$as_dir" || 21437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21438 X"$as_dir" : 'X\(//\)[^/]' \| \ 21439 X"$as_dir" : 'X\(//\)$' \| \ 21440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21441$as_echo X"$as_dir" | 21442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21443 s//\1/ 21444 q 21445 } 21446 /^X\(\/\/\)[^/].*/{ 21447 s//\1/ 21448 q 21449 } 21450 /^X\(\/\/\)$/{ 21451 s//\1/ 21452 q 21453 } 21454 /^X\(\/\).*/{ 21455 s//\1/ 21456 q 21457 } 21458 s/.*/./; q'` 21459 test -d "$as_dir" && break 21460 done 21461 test -z "$as_dirs" || eval "mkdir $as_dirs" 21462 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21463 21464 21465} # as_fn_mkdir_p 21466if mkdir -p . 2>/dev/null; then 21467 as_mkdir_p='mkdir -p "$as_dir"' 21468else 21469 test -d ./-p && rmdir ./-p 21470 as_mkdir_p=false 21471fi 21472 21473 21474# as_fn_executable_p FILE 21475# ----------------------- 21476# Test if FILE is an executable regular file. 21477as_fn_executable_p () 21478{ 21479 test -f "$1" && test -x "$1" 21480} # as_fn_executable_p 21481as_test_x='test -x' 21482as_executable_p=as_fn_executable_p 21483 21484# Sed expression to map a string onto a valid CPP name. 21485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21486 21487# Sed expression to map a string onto a valid variable name. 21488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21489 21490 21491exec 6>&1 21492## ----------------------------------- ## 21493## Main body of $CONFIG_STATUS script. ## 21494## ----------------------------------- ## 21495_ASEOF 21496test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21497 21498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21499# Save the log message, to keep $0 and so on meaningful, and to 21500# report actual input values of CONFIG_FILES etc. instead of their 21501# values after options handling. 21502ac_log=" 21503This file was extended by LibTIFF Software $as_me 4.0.6, which was 21504generated by GNU Autoconf 2.69. Invocation command line was 21505 21506 CONFIG_FILES = $CONFIG_FILES 21507 CONFIG_HEADERS = $CONFIG_HEADERS 21508 CONFIG_LINKS = $CONFIG_LINKS 21509 CONFIG_COMMANDS = $CONFIG_COMMANDS 21510 $ $0 $@ 21511 21512on `(hostname || uname -n) 2>/dev/null | sed 1q` 21513" 21514 21515_ACEOF 21516 21517case $ac_config_files in *" 21518"*) set x $ac_config_files; shift; ac_config_files=$*;; 21519esac 21520 21521case $ac_config_headers in *" 21522"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21523esac 21524 21525 21526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21527# Files that config.status was made for. 21528config_files="$ac_config_files" 21529config_headers="$ac_config_headers" 21530config_commands="$ac_config_commands" 21531 21532_ACEOF 21533 21534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21535ac_cs_usage="\ 21536\`$as_me' instantiates files and other configuration actions 21537from templates according to the current configuration. Unless the files 21538and actions are specified as TAGs, all are instantiated by default. 21539 21540Usage: $0 [OPTION]... [TAG]... 21541 21542 -h, --help print this help, then exit 21543 -V, --version print version number and configuration settings, then exit 21544 --config print configuration, then exit 21545 -q, --quiet, --silent 21546 do not print progress messages 21547 -d, --debug don't remove temporary files 21548 --recheck update $as_me by reconfiguring in the same conditions 21549 --file=FILE[:TEMPLATE] 21550 instantiate the configuration file FILE 21551 --header=FILE[:TEMPLATE] 21552 instantiate the configuration header FILE 21553 21554Configuration files: 21555$config_files 21556 21557Configuration headers: 21558$config_headers 21559 21560Configuration commands: 21561$config_commands 21562 21563Report bugs to <tiff@lists.maptools.org>." 21564 21565_ACEOF 21566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21568ac_cs_version="\\ 21569LibTIFF Software config.status 4.0.6 21570configured by $0, generated by GNU Autoconf 2.69, 21571 with options \\"\$ac_cs_config\\" 21572 21573Copyright (C) 2012 Free Software Foundation, Inc. 21574This config.status script is free software; the Free Software Foundation 21575gives unlimited permission to copy, distribute and modify it." 21576 21577ac_pwd='$ac_pwd' 21578srcdir='$srcdir' 21579INSTALL='$INSTALL' 21580MKDIR_P='$MKDIR_P' 21581AWK='$AWK' 21582test -n "\$AWK" || AWK=awk 21583_ACEOF 21584 21585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21586# The default lists apply if the user does not specify any file. 21587ac_need_defaults=: 21588while test $# != 0 21589do 21590 case $1 in 21591 --*=?*) 21592 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21594 ac_shift=: 21595 ;; 21596 --*=) 21597 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21598 ac_optarg= 21599 ac_shift=: 21600 ;; 21601 *) 21602 ac_option=$1 21603 ac_optarg=$2 21604 ac_shift=shift 21605 ;; 21606 esac 21607 21608 case $ac_option in 21609 # Handling of the options. 21610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21611 ac_cs_recheck=: ;; 21612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21613 $as_echo "$ac_cs_version"; exit ;; 21614 --config | --confi | --conf | --con | --co | --c ) 21615 $as_echo "$ac_cs_config"; exit ;; 21616 --debug | --debu | --deb | --de | --d | -d ) 21617 debug=: ;; 21618 --file | --fil | --fi | --f ) 21619 $ac_shift 21620 case $ac_optarg in 21621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21622 '') as_fn_error $? "missing file argument" ;; 21623 esac 21624 as_fn_append CONFIG_FILES " '$ac_optarg'" 21625 ac_need_defaults=false;; 21626 --header | --heade | --head | --hea ) 21627 $ac_shift 21628 case $ac_optarg in 21629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21630 esac 21631 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21632 ac_need_defaults=false;; 21633 --he | --h) 21634 # Conflict between --help and --header 21635 as_fn_error $? "ambiguous option: \`$1' 21636Try \`$0 --help' for more information.";; 21637 --help | --hel | -h ) 21638 $as_echo "$ac_cs_usage"; exit ;; 21639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21640 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21641 ac_cs_silent=: ;; 21642 21643 # This is an error. 21644 -*) as_fn_error $? "unrecognized option: \`$1' 21645Try \`$0 --help' for more information." ;; 21646 21647 *) as_fn_append ac_config_targets " $1" 21648 ac_need_defaults=false ;; 21649 21650 esac 21651 shift 21652done 21653 21654ac_configure_extra_args= 21655 21656if $ac_cs_silent; then 21657 exec 6>/dev/null 21658 ac_configure_extra_args="$ac_configure_extra_args --silent" 21659fi 21660 21661_ACEOF 21662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21663if \$ac_cs_recheck; then 21664 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21665 shift 21666 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21667 CONFIG_SHELL='$SHELL' 21668 export CONFIG_SHELL 21669 exec "\$@" 21670fi 21671 21672_ACEOF 21673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21674exec 5>>config.log 21675{ 21676 echo 21677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21678## Running $as_me. ## 21679_ASBOX 21680 $as_echo "$ac_log" 21681} >&5 21682 21683_ACEOF 21684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21685# 21686# INIT-COMMANDS 21687# 21688AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21689 21690 21691# The HP-UX ksh and POSIX shell print the target directory to stdout 21692# if CDPATH is set. 21693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21694 21695sed_quote_subst='$sed_quote_subst' 21696double_quote_subst='$double_quote_subst' 21697delay_variable_subst='$delay_variable_subst' 21698macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21699macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21700AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21701DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21702OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21703enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21704enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21705pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21706enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21707shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21708SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21709ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21710PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21711host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21712host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21713host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21714build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21715build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21716build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21717SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21718Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21719GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21720EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21721FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21722LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21723NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21724LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21725max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21726ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21727exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21728lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21729lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21730lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21731lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21732lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21733reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21734reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21735deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21736file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21737file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21738want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21739sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21740AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21741AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21742archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21743STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21744RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21745old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21746old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21747old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21748lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21749CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21750CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21751compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21752GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21753lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21754lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21755lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21756lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21757lt_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"`' 21758lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21759nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21760lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21761lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21762objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21763MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21764lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21765lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21766lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21767lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21768lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21769need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21770MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21771DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21772NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21773LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21774OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21775OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21776libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21777shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21778extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21779archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21780enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21781export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21782whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21783compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21784old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21785old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21786archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21787archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21788module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21789module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21790with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21791allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21792no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21793hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21794hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21795hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21796hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21797hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21798hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21799hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21800inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21801link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21802always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21803export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21804exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21805include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21806prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21807postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21808file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21809variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21810need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21811need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21812version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21813runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21814shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21815shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21816libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21817library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21818soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21819install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21820postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21821postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21822finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21823finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21824hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21825sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21826configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21827configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21828hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21829enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21830enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21831enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21832old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21833striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21834compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21835predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21836postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21837predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21838postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21839compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21840LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21841reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21842reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21843old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21844compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21845GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21846lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21847lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21848lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21849lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21850lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21851archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21852enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21853export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21854whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21855compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21856old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21857old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21858archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21859archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21860module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21861module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21862with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21863allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21864no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21865hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21866hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21867hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21868hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21869hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21870hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21871hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21872inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21873link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21874always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21875export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21876exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21877include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21878prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21879postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21880file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21881hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21882compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21883predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21884postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21885predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21886postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21887compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21888 21889LTCC='$LTCC' 21890LTCFLAGS='$LTCFLAGS' 21891compiler='$compiler_DEFAULT' 21892 21893# A function that is used when there is no print builtin or printf. 21894func_fallback_echo () 21895{ 21896 eval 'cat <<_LTECHO_EOF 21897\$1 21898_LTECHO_EOF' 21899} 21900 21901# Quote evaled strings. 21902for var in AS \ 21903DLLTOOL \ 21904OBJDUMP \ 21905SHELL \ 21906ECHO \ 21907PATH_SEPARATOR \ 21908SED \ 21909GREP \ 21910EGREP \ 21911FGREP \ 21912LD \ 21913NM \ 21914LN_S \ 21915lt_SP2NL \ 21916lt_NL2SP \ 21917reload_flag \ 21918deplibs_check_method \ 21919file_magic_cmd \ 21920file_magic_glob \ 21921want_nocaseglob \ 21922sharedlib_from_linklib_cmd \ 21923AR \ 21924AR_FLAGS \ 21925archiver_list_spec \ 21926STRIP \ 21927RANLIB \ 21928CC \ 21929CFLAGS \ 21930compiler \ 21931lt_cv_sys_global_symbol_pipe \ 21932lt_cv_sys_global_symbol_to_cdecl \ 21933lt_cv_sys_global_symbol_to_import \ 21934lt_cv_sys_global_symbol_to_c_name_address \ 21935lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21936lt_cv_nm_interface \ 21937nm_file_list_spec \ 21938lt_cv_truncate_bin \ 21939lt_prog_compiler_no_builtin_flag \ 21940lt_prog_compiler_pic \ 21941lt_prog_compiler_wl \ 21942lt_prog_compiler_static \ 21943lt_cv_prog_compiler_c_o \ 21944need_locks \ 21945MANIFEST_TOOL \ 21946DSYMUTIL \ 21947NMEDIT \ 21948LIPO \ 21949OTOOL \ 21950OTOOL64 \ 21951shrext_cmds \ 21952export_dynamic_flag_spec \ 21953whole_archive_flag_spec \ 21954compiler_needs_object \ 21955with_gnu_ld \ 21956allow_undefined_flag \ 21957no_undefined_flag \ 21958hardcode_libdir_flag_spec \ 21959hardcode_libdir_separator \ 21960exclude_expsyms \ 21961include_expsyms \ 21962file_list_spec \ 21963variables_saved_for_relink \ 21964libname_spec \ 21965library_names_spec \ 21966soname_spec \ 21967install_override_mode \ 21968finish_eval \ 21969old_striplib \ 21970striplib \ 21971compiler_lib_search_dirs \ 21972predep_objects \ 21973postdep_objects \ 21974predeps \ 21975postdeps \ 21976compiler_lib_search_path \ 21977LD_CXX \ 21978reload_flag_CXX \ 21979compiler_CXX \ 21980lt_prog_compiler_no_builtin_flag_CXX \ 21981lt_prog_compiler_pic_CXX \ 21982lt_prog_compiler_wl_CXX \ 21983lt_prog_compiler_static_CXX \ 21984lt_cv_prog_compiler_c_o_CXX \ 21985export_dynamic_flag_spec_CXX \ 21986whole_archive_flag_spec_CXX \ 21987compiler_needs_object_CXX \ 21988with_gnu_ld_CXX \ 21989allow_undefined_flag_CXX \ 21990no_undefined_flag_CXX \ 21991hardcode_libdir_flag_spec_CXX \ 21992hardcode_libdir_separator_CXX \ 21993exclude_expsyms_CXX \ 21994include_expsyms_CXX \ 21995file_list_spec_CXX \ 21996compiler_lib_search_dirs_CXX \ 21997predep_objects_CXX \ 21998postdep_objects_CXX \ 21999predeps_CXX \ 22000postdeps_CXX \ 22001compiler_lib_search_path_CXX; do 22002 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22003 *[\\\\\\\`\\"\\\$]*) 22004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22005 ;; 22006 *) 22007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22008 ;; 22009 esac 22010done 22011 22012# Double-quote double-evaled strings. 22013for var in reload_cmds \ 22014old_postinstall_cmds \ 22015old_postuninstall_cmds \ 22016old_archive_cmds \ 22017extract_expsyms_cmds \ 22018old_archive_from_new_cmds \ 22019old_archive_from_expsyms_cmds \ 22020archive_cmds \ 22021archive_expsym_cmds \ 22022module_cmds \ 22023module_expsym_cmds \ 22024export_symbols_cmds \ 22025prelink_cmds \ 22026postlink_cmds \ 22027postinstall_cmds \ 22028postuninstall_cmds \ 22029finish_cmds \ 22030sys_lib_search_path_spec \ 22031configure_time_dlsearch_path \ 22032configure_time_lt_sys_library_path \ 22033reload_cmds_CXX \ 22034old_archive_cmds_CXX \ 22035old_archive_from_new_cmds_CXX \ 22036old_archive_from_expsyms_cmds_CXX \ 22037archive_cmds_CXX \ 22038archive_expsym_cmds_CXX \ 22039module_cmds_CXX \ 22040module_expsym_cmds_CXX \ 22041export_symbols_cmds_CXX \ 22042prelink_cmds_CXX \ 22043postlink_cmds_CXX; do 22044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22045 *[\\\\\\\`\\"\\\$]*) 22046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22047 ;; 22048 *) 22049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22050 ;; 22051 esac 22052done 22053 22054ac_aux_dir='$ac_aux_dir' 22055 22056# See if we are running on zsh, and set the options that allow our 22057# commands through without removal of \ escapes INIT. 22058if test -n "\${ZSH_VERSION+set}"; then 22059 setopt NO_GLOB_SUBST 22060fi 22061 22062 22063 PACKAGE='$PACKAGE' 22064 VERSION='$VERSION' 22065 RM='$RM' 22066 ofile='$ofile' 22067 22068 22069 22070 22071 22072 22073_ACEOF 22074 22075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22076 22077# Handling of arguments. 22078for ac_config_target in $ac_config_targets 22079do 22080 case $ac_config_target in 22081 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22082 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22083 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 22084 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 22085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22086 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 22087 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 22088 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 22089 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 22090 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 22091 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 22092 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 22093 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 22094 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 22095 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 22096 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 22097 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 22098 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 22099 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 22100 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 22101 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 22102 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 22103 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22104 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 22105 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22106 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22107 22108 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22109 esac 22110done 22111 22112 22113# If the user did not use the arguments to specify the items to instantiate, 22114# then the envvar interface is used. Set only those that are not. 22115# We use the long form for the default assignment because of an extremely 22116# bizarre bug on SunOS 4.1.3. 22117if $ac_need_defaults; then 22118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22121fi 22122 22123# Have a temporary directory for convenience. Make it in the build tree 22124# simply because there is no reason against having it here, and in addition, 22125# creating and moving files from /tmp can sometimes cause problems. 22126# Hook for its removal unless debugging. 22127# Note that there is a small window in which the directory will not be cleaned: 22128# after its creation but before its name has been assigned to `$tmp'. 22129$debug || 22130{ 22131 tmp= ac_tmp= 22132 trap 'exit_status=$? 22133 : "${ac_tmp:=$tmp}" 22134 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22135' 0 22136 trap 'as_fn_exit 1' 1 2 13 15 22137} 22138# Create a (secure) tmp directory for tmp files. 22139 22140{ 22141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22142 test -d "$tmp" 22143} || 22144{ 22145 tmp=./conf$$-$RANDOM 22146 (umask 077 && mkdir "$tmp") 22147} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22148ac_tmp=$tmp 22149 22150# Set up the scripts for CONFIG_FILES section. 22151# No need to generate them if there are no CONFIG_FILES. 22152# This happens for instance with `./config.status config.h'. 22153if test -n "$CONFIG_FILES"; then 22154 22155 22156ac_cr=`echo X | tr X '\015'` 22157# On cygwin, bash can eat \r inside `` if the user requested igncr. 22158# But we know of no other shell where ac_cr would be empty at this 22159# point, so we can use a bashism as a fallback. 22160if test "x$ac_cr" = x; then 22161 eval ac_cr=\$\'\\r\' 22162fi 22163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22165 ac_cs_awk_cr='\\r' 22166else 22167 ac_cs_awk_cr=$ac_cr 22168fi 22169 22170echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22171_ACEOF 22172 22173 22174{ 22175 echo "cat >conf$$subs.awk <<_ACEOF" && 22176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22177 echo "_ACEOF" 22178} >conf$$subs.sh || 22179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22180ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22181ac_delim='%!_!# ' 22182for ac_last_try in false false false false false :; do 22183 . ./conf$$subs.sh || 22184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22185 22186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22187 if test $ac_delim_n = $ac_delim_num; then 22188 break 22189 elif $ac_last_try; then 22190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22191 else 22192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22193 fi 22194done 22195rm -f conf$$subs.sh 22196 22197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22198cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22199_ACEOF 22200sed -n ' 22201h 22202s/^/S["/; s/!.*/"]=/ 22203p 22204g 22205s/^[^!]*!// 22206:repl 22207t repl 22208s/'"$ac_delim"'$// 22209t delim 22210:nl 22211h 22212s/\(.\{148\}\)..*/\1/ 22213t more1 22214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22215p 22216n 22217b repl 22218:more1 22219s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22220p 22221g 22222s/.\{148\}// 22223t nl 22224:delim 22225h 22226s/\(.\{148\}\)..*/\1/ 22227t more2 22228s/["\\]/\\&/g; s/^/"/; s/$/"/ 22229p 22230b 22231:more2 22232s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22233p 22234g 22235s/.\{148\}// 22236t delim 22237' <conf$$subs.awk | sed ' 22238/^[^""]/{ 22239 N 22240 s/\n// 22241} 22242' >>$CONFIG_STATUS || ac_write_fail=1 22243rm -f conf$$subs.awk 22244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22245_ACAWK 22246cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22247 for (key in S) S_is_set[key] = 1 22248 FS = "" 22249 22250} 22251{ 22252 line = $ 0 22253 nfields = split(line, field, "@") 22254 substed = 0 22255 len = length(field[1]) 22256 for (i = 2; i < nfields; i++) { 22257 key = field[i] 22258 keylen = length(key) 22259 if (S_is_set[key]) { 22260 value = S[key] 22261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22262 len += length(value) + length(field[++i]) 22263 substed = 1 22264 } else 22265 len += 1 + keylen 22266 } 22267 22268 print line 22269} 22270 22271_ACAWK 22272_ACEOF 22273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22276else 22277 cat 22278fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22280_ACEOF 22281 22282# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22283# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22284# trailing colons and then remove the whole line if VPATH becomes empty 22285# (actually we leave an empty line to preserve line numbers). 22286if test "x$srcdir" = x.; then 22287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22288h 22289s/// 22290s/^/:/ 22291s/[ ]*$/:/ 22292s/:\$(srcdir):/:/g 22293s/:\${srcdir}:/:/g 22294s/:@srcdir@:/:/g 22295s/^:*// 22296s/:*$// 22297x 22298s/\(=[ ]*\).*/\1/ 22299G 22300s/\n// 22301s/^[^=]*=[ ]*$// 22302}' 22303fi 22304 22305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22306fi # test -n "$CONFIG_FILES" 22307 22308# Set up the scripts for CONFIG_HEADERS section. 22309# No need to generate them if there are no CONFIG_HEADERS. 22310# This happens for instance with `./config.status Makefile'. 22311if test -n "$CONFIG_HEADERS"; then 22312cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22313BEGIN { 22314_ACEOF 22315 22316# Transform confdefs.h into an awk script `defines.awk', embedded as 22317# here-document in config.status, that substitutes the proper values into 22318# config.h.in to produce config.h. 22319 22320# Create a delimiter string that does not exist in confdefs.h, to ease 22321# handling of long lines. 22322ac_delim='%!_!# ' 22323for ac_last_try in false false :; do 22324 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22325 if test -z "$ac_tt"; then 22326 break 22327 elif $ac_last_try; then 22328 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22329 else 22330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22331 fi 22332done 22333 22334# For the awk script, D is an array of macro values keyed by name, 22335# likewise P contains macro parameters if any. Preserve backslash 22336# newline sequences. 22337 22338ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22339sed -n ' 22340s/.\{148\}/&'"$ac_delim"'/g 22341t rset 22342:rset 22343s/^[ ]*#[ ]*define[ ][ ]*/ / 22344t def 22345d 22346:def 22347s/\\$// 22348t bsnl 22349s/["\\]/\\&/g 22350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22351D["\1"]=" \3"/p 22352s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22353d 22354:bsnl 22355s/["\\]/\\&/g 22356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22357D["\1"]=" \3\\\\\\n"\\/p 22358t cont 22359s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22360t cont 22361d 22362:cont 22363n 22364s/.\{148\}/&'"$ac_delim"'/g 22365t clear 22366:clear 22367s/\\$// 22368t bsnlc 22369s/["\\]/\\&/g; s/^/"/; s/$/"/p 22370d 22371:bsnlc 22372s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22373b cont 22374' <confdefs.h | sed ' 22375s/'"$ac_delim"'/"\\\ 22376"/g' >>$CONFIG_STATUS || ac_write_fail=1 22377 22378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22379 for (key in D) D_is_set[key] = 1 22380 FS = "" 22381} 22382/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22383 line = \$ 0 22384 split(line, arg, " ") 22385 if (arg[1] == "#") { 22386 defundef = arg[2] 22387 mac1 = arg[3] 22388 } else { 22389 defundef = substr(arg[1], 2) 22390 mac1 = arg[2] 22391 } 22392 split(mac1, mac2, "(") #) 22393 macro = mac2[1] 22394 prefix = substr(line, 1, index(line, defundef) - 1) 22395 if (D_is_set[macro]) { 22396 # Preserve the white space surrounding the "#". 22397 print prefix "define", macro P[macro] D[macro] 22398 next 22399 } else { 22400 # Replace #undef with comments. This is necessary, for example, 22401 # in the case of _POSIX_SOURCE, which is predefined and required 22402 # on some systems where configure will not decide to define it. 22403 if (defundef == "undef") { 22404 print "/*", prefix defundef, macro, "*/" 22405 next 22406 } 22407 } 22408} 22409{ print } 22410_ACAWK 22411_ACEOF 22412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22413 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22414fi # test -n "$CONFIG_HEADERS" 22415 22416 22417eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22418shift 22419for ac_tag 22420do 22421 case $ac_tag in 22422 :[FHLC]) ac_mode=$ac_tag; continue;; 22423 esac 22424 case $ac_mode$ac_tag in 22425 :[FHL]*:*);; 22426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22427 :[FH]-) ac_tag=-:-;; 22428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22429 esac 22430 ac_save_IFS=$IFS 22431 IFS=: 22432 set x $ac_tag 22433 IFS=$ac_save_IFS 22434 shift 22435 ac_file=$1 22436 shift 22437 22438 case $ac_mode in 22439 :L) ac_source=$1;; 22440 :[FH]) 22441 ac_file_inputs= 22442 for ac_f 22443 do 22444 case $ac_f in 22445 -) ac_f="$ac_tmp/stdin";; 22446 *) # Look for the file first in the build tree, then in the source tree 22447 # (if the path is not absolute). The absolute path cannot be DOS-style, 22448 # because $ac_f cannot contain `:'. 22449 test -f "$ac_f" || 22450 case $ac_f in 22451 [\\/$]*) false;; 22452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22453 esac || 22454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22455 esac 22456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22457 as_fn_append ac_file_inputs " '$ac_f'" 22458 done 22459 22460 # Let's still pretend it is `configure' which instantiates (i.e., don't 22461 # use $as_me), people would be surprised to read: 22462 # /* config.h. Generated by config.status. */ 22463 configure_input='Generated from '` 22464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22465 `' by configure.' 22466 if test x"$ac_file" != x-; then 22467 configure_input="$ac_file. $configure_input" 22468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22469$as_echo "$as_me: creating $ac_file" >&6;} 22470 fi 22471 # Neutralize special characters interpreted by sed in replacement strings. 22472 case $configure_input in #( 22473 *\&* | *\|* | *\\* ) 22474 ac_sed_conf_input=`$as_echo "$configure_input" | 22475 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22476 *) ac_sed_conf_input=$configure_input;; 22477 esac 22478 22479 case $ac_tag in 22480 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22482 esac 22483 ;; 22484 esac 22485 22486 ac_dir=`$as_dirname -- "$ac_file" || 22487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22488 X"$ac_file" : 'X\(//\)[^/]' \| \ 22489 X"$ac_file" : 'X\(//\)$' \| \ 22490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22491$as_echo X"$ac_file" | 22492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22493 s//\1/ 22494 q 22495 } 22496 /^X\(\/\/\)[^/].*/{ 22497 s//\1/ 22498 q 22499 } 22500 /^X\(\/\/\)$/{ 22501 s//\1/ 22502 q 22503 } 22504 /^X\(\/\).*/{ 22505 s//\1/ 22506 q 22507 } 22508 s/.*/./; q'` 22509 as_dir="$ac_dir"; as_fn_mkdir_p 22510 ac_builddir=. 22511 22512case "$ac_dir" in 22513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22514*) 22515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22516 # A ".." for each directory in $ac_dir_suffix. 22517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22518 case $ac_top_builddir_sub in 22519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22521 esac ;; 22522esac 22523ac_abs_top_builddir=$ac_pwd 22524ac_abs_builddir=$ac_pwd$ac_dir_suffix 22525# for backward compatibility: 22526ac_top_builddir=$ac_top_build_prefix 22527 22528case $srcdir in 22529 .) # We are building in place. 22530 ac_srcdir=. 22531 ac_top_srcdir=$ac_top_builddir_sub 22532 ac_abs_top_srcdir=$ac_pwd ;; 22533 [\\/]* | ?:[\\/]* ) # Absolute name. 22534 ac_srcdir=$srcdir$ac_dir_suffix; 22535 ac_top_srcdir=$srcdir 22536 ac_abs_top_srcdir=$srcdir ;; 22537 *) # Relative name. 22538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22539 ac_top_srcdir=$ac_top_build_prefix$srcdir 22540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22541esac 22542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22543 22544 22545 case $ac_mode in 22546 :F) 22547 # 22548 # CONFIG_FILE 22549 # 22550 22551 case $INSTALL in 22552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22554 esac 22555 ac_MKDIR_P=$MKDIR_P 22556 case $MKDIR_P in 22557 [\\/$]* | ?:[\\/]* ) ;; 22558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22559 esac 22560_ACEOF 22561 22562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22563# If the template does not know about datarootdir, expand it. 22564# FIXME: This hack should be removed a few years after 2.60. 22565ac_datarootdir_hack=; ac_datarootdir_seen= 22566ac_sed_dataroot=' 22567/datarootdir/ { 22568 p 22569 q 22570} 22571/@datadir@/p 22572/@docdir@/p 22573/@infodir@/p 22574/@localedir@/p 22575/@mandir@/p' 22576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22577*datarootdir*) ac_datarootdir_seen=yes;; 22578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22580$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22581_ACEOF 22582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22583 ac_datarootdir_hack=' 22584 s&@datadir@&$datadir&g 22585 s&@docdir@&$docdir&g 22586 s&@infodir@&$infodir&g 22587 s&@localedir@&$localedir&g 22588 s&@mandir@&$mandir&g 22589 s&\\\${datarootdir}&$datarootdir&g' ;; 22590esac 22591_ACEOF 22592 22593# Neutralize VPATH when `$srcdir' = `.'. 22594# Shell code in configure.ac might set extrasub. 22595# FIXME: do we really want to maintain this feature? 22596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22597ac_sed_extra="$ac_vpsub 22598$extrasub 22599_ACEOF 22600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22601:t 22602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22603s|@configure_input@|$ac_sed_conf_input|;t t 22604s&@top_builddir@&$ac_top_builddir_sub&;t t 22605s&@top_build_prefix@&$ac_top_build_prefix&;t t 22606s&@srcdir@&$ac_srcdir&;t t 22607s&@abs_srcdir@&$ac_abs_srcdir&;t t 22608s&@top_srcdir@&$ac_top_srcdir&;t t 22609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22610s&@builddir@&$ac_builddir&;t t 22611s&@abs_builddir@&$ac_abs_builddir&;t t 22612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22613s&@INSTALL@&$ac_INSTALL&;t t 22614s&@MKDIR_P@&$ac_MKDIR_P&;t t 22615$ac_datarootdir_hack 22616" 22617eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22619 22620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22623 "$ac_tmp/out"`; test -z "$ac_out"; } && 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22625which seems to be undefined. Please make sure it is defined" >&5 22626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22627which seems to be undefined. Please make sure it is defined" >&2;} 22628 22629 rm -f "$ac_tmp/stdin" 22630 case $ac_file in 22631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22633 esac \ 22634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22635 ;; 22636 :H) 22637 # 22638 # CONFIG_HEADER 22639 # 22640 if test x"$ac_file" != x-; then 22641 { 22642 $as_echo "/* $configure_input */" \ 22643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22644 } >"$ac_tmp/config.h" \ 22645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22648$as_echo "$as_me: $ac_file is unchanged" >&6;} 22649 else 22650 rm -f "$ac_file" 22651 mv "$ac_tmp/config.h" "$ac_file" \ 22652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22653 fi 22654 else 22655 $as_echo "/* $configure_input */" \ 22656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22657 || as_fn_error $? "could not create -" "$LINENO" 5 22658 fi 22659# Compute "$ac_file"'s index in $config_headers. 22660_am_arg="$ac_file" 22661_am_stamp_count=1 22662for _am_header in $config_headers :; do 22663 case $_am_header in 22664 $_am_arg | $_am_arg:* ) 22665 break ;; 22666 * ) 22667 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22668 esac 22669done 22670echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22671$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22672 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22673 X"$_am_arg" : 'X\(//\)$' \| \ 22674 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22675$as_echo X"$_am_arg" | 22676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22677 s//\1/ 22678 q 22679 } 22680 /^X\(\/\/\)[^/].*/{ 22681 s//\1/ 22682 q 22683 } 22684 /^X\(\/\/\)$/{ 22685 s//\1/ 22686 q 22687 } 22688 /^X\(\/\).*/{ 22689 s//\1/ 22690 q 22691 } 22692 s/.*/./; q'`/stamp-h$_am_stamp_count 22693 ;; 22694 22695 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22696$as_echo "$as_me: executing $ac_file commands" >&6;} 22697 ;; 22698 esac 22699 22700 22701 case $ac_file$ac_mode in 22702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22703 # Older Autoconf quotes --file arguments for eval, but not when files 22704 # are listed without --file. Let's play safe and only enable the eval 22705 # if we detect the quoting. 22706 case $CONFIG_FILES in 22707 *\'*) eval set x "$CONFIG_FILES" ;; 22708 *) set x $CONFIG_FILES ;; 22709 esac 22710 shift 22711 for mf 22712 do 22713 # Strip MF so we end up with the name of the file. 22714 mf=`echo "$mf" | sed -e 's/:.*$//'` 22715 # Check whether this is an Automake generated Makefile or not. 22716 # We used to match only the files named 'Makefile.in', but 22717 # some people rename them; so instead we look at the file content. 22718 # Grep'ing the first line is not enough: some people post-process 22719 # each Makefile.in and add a new line on top of each file to say so. 22720 # Grep'ing the whole file is not good either: AIX grep has a line 22721 # limit of 2048, but all sed's we know have understand at least 4000. 22722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22723 dirpart=`$as_dirname -- "$mf" || 22724$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22725 X"$mf" : 'X\(//\)[^/]' \| \ 22726 X"$mf" : 'X\(//\)$' \| \ 22727 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22728$as_echo X"$mf" | 22729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22730 s//\1/ 22731 q 22732 } 22733 /^X\(\/\/\)[^/].*/{ 22734 s//\1/ 22735 q 22736 } 22737 /^X\(\/\/\)$/{ 22738 s//\1/ 22739 q 22740 } 22741 /^X\(\/\).*/{ 22742 s//\1/ 22743 q 22744 } 22745 s/.*/./; q'` 22746 else 22747 continue 22748 fi 22749 # Extract the definition of DEPDIR, am__include, and am__quote 22750 # from the Makefile without running 'make'. 22751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22752 test -z "$DEPDIR" && continue 22753 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22754 test -z "$am__include" && continue 22755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22756 # Find all dependency output files, they are included files with 22757 # $(DEPDIR) in their names. We invoke sed twice because it is the 22758 # simplest approach to changing $(DEPDIR) to its actual value in the 22759 # expansion. 22760 for file in `sed -n " 22761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22763 # Make sure the directory exists. 22764 test -f "$dirpart/$file" && continue 22765 fdir=`$as_dirname -- "$file" || 22766$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22767 X"$file" : 'X\(//\)[^/]' \| \ 22768 X"$file" : 'X\(//\)$' \| \ 22769 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22770$as_echo X"$file" | 22771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22772 s//\1/ 22773 q 22774 } 22775 /^X\(\/\/\)[^/].*/{ 22776 s//\1/ 22777 q 22778 } 22779 /^X\(\/\/\)$/{ 22780 s//\1/ 22781 q 22782 } 22783 /^X\(\/\).*/{ 22784 s//\1/ 22785 q 22786 } 22787 s/.*/./; q'` 22788 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22789 # echo "creating $dirpart/$file" 22790 echo '# dummy' > "$dirpart/$file" 22791 done 22792 done 22793} 22794 ;; 22795 "libtool":C) 22796 22797 # See if we are running on zsh, and set the options that allow our 22798 # commands through without removal of \ escapes. 22799 if test -n "${ZSH_VERSION+set}"; then 22800 setopt NO_GLOB_SUBST 22801 fi 22802 22803 cfgfile=${ofile}T 22804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22805 $RM "$cfgfile" 22806 22807 cat <<_LT_EOF >> "$cfgfile" 22808#! $SHELL 22809# Generated automatically by $as_me ($PACKAGE) $VERSION 22810# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22811# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22812 22813# Provide generalized library-building support services. 22814# Written by Gordon Matzigkeit, 1996 22815 22816# Copyright (C) 2014 Free Software Foundation, Inc. 22817# This is free software; see the source for copying conditions. There is NO 22818# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22819 22820# GNU Libtool is free software; you can redistribute it and/or modify 22821# it under the terms of the GNU General Public License as published by 22822# the Free Software Foundation; either version 2 of of the License, or 22823# (at your option) any later version. 22824# 22825# As a special exception to the GNU General Public License, if you 22826# distribute this file as part of a program or library that is built 22827# using GNU Libtool, you may include this file under the same 22828# distribution terms that you use for the rest of that program. 22829# 22830# GNU Libtool is distributed in the hope that it will be useful, but 22831# WITHOUT ANY WARRANTY; without even the implied warranty of 22832# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22833# GNU General Public License for more details. 22834# 22835# You should have received a copy of the GNU General Public License 22836# along with this program. If not, see <http://www.gnu.org/licenses/>. 22837 22838 22839# The names of the tagged configurations supported by this script. 22840available_tags='CXX ' 22841 22842# Configured defaults for sys_lib_dlsearch_path munging. 22843: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22844 22845# ### BEGIN LIBTOOL CONFIG 22846 22847# Which release of libtool.m4 was used? 22848macro_version=$macro_version 22849macro_revision=$macro_revision 22850 22851# Assembler program. 22852AS=$lt_AS 22853 22854# DLL creation program. 22855DLLTOOL=$lt_DLLTOOL 22856 22857# Object dumper program. 22858OBJDUMP=$lt_OBJDUMP 22859 22860# Whether or not to build shared libraries. 22861build_libtool_libs=$enable_shared 22862 22863# Whether or not to build static libraries. 22864build_old_libs=$enable_static 22865 22866# What type of objects to build. 22867pic_mode=$pic_mode 22868 22869# Whether or not to optimize for fast installation. 22870fast_install=$enable_fast_install 22871 22872# Shared archive member basename,for filename based shared library versioning on AIX. 22873shared_archive_member_spec=$shared_archive_member_spec 22874 22875# Shell to use when invoking shell scripts. 22876SHELL=$lt_SHELL 22877 22878# An echo program that protects backslashes. 22879ECHO=$lt_ECHO 22880 22881# The PATH separator for the build system. 22882PATH_SEPARATOR=$lt_PATH_SEPARATOR 22883 22884# The host system. 22885host_alias=$host_alias 22886host=$host 22887host_os=$host_os 22888 22889# The build system. 22890build_alias=$build_alias 22891build=$build 22892build_os=$build_os 22893 22894# A sed program that does not truncate output. 22895SED=$lt_SED 22896 22897# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22898Xsed="\$SED -e 1s/^X//" 22899 22900# A grep program that handles long lines. 22901GREP=$lt_GREP 22902 22903# An ERE matcher. 22904EGREP=$lt_EGREP 22905 22906# A literal string matcher. 22907FGREP=$lt_FGREP 22908 22909# A BSD- or MS-compatible name lister. 22910NM=$lt_NM 22911 22912# Whether we need soft or hard links. 22913LN_S=$lt_LN_S 22914 22915# What is the maximum length of a command? 22916max_cmd_len=$max_cmd_len 22917 22918# Object file suffix (normally "o"). 22919objext=$ac_objext 22920 22921# Executable file suffix (normally ""). 22922exeext=$exeext 22923 22924# whether the shell understands "unset". 22925lt_unset=$lt_unset 22926 22927# turn spaces into newlines. 22928SP2NL=$lt_lt_SP2NL 22929 22930# turn newlines into spaces. 22931NL2SP=$lt_lt_NL2SP 22932 22933# convert \$build file names to \$host format. 22934to_host_file_cmd=$lt_cv_to_host_file_cmd 22935 22936# convert \$build files to toolchain format. 22937to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22938 22939# Method to check whether dependent libraries are shared objects. 22940deplibs_check_method=$lt_deplibs_check_method 22941 22942# Command to use when deplibs_check_method = "file_magic". 22943file_magic_cmd=$lt_file_magic_cmd 22944 22945# How to find potential files when deplibs_check_method = "file_magic". 22946file_magic_glob=$lt_file_magic_glob 22947 22948# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22949want_nocaseglob=$lt_want_nocaseglob 22950 22951# Command to associate shared and link libraries. 22952sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22953 22954# The archiver. 22955AR=$lt_AR 22956 22957# Flags to create an archive. 22958AR_FLAGS=$lt_AR_FLAGS 22959 22960# How to feed a file listing to the archiver. 22961archiver_list_spec=$lt_archiver_list_spec 22962 22963# A symbol stripping program. 22964STRIP=$lt_STRIP 22965 22966# Commands used to install an old-style archive. 22967RANLIB=$lt_RANLIB 22968old_postinstall_cmds=$lt_old_postinstall_cmds 22969old_postuninstall_cmds=$lt_old_postuninstall_cmds 22970 22971# Whether to use a lock for old archive extraction. 22972lock_old_archive_extraction=$lock_old_archive_extraction 22973 22974# A C compiler. 22975LTCC=$lt_CC 22976 22977# LTCC compiler flags. 22978LTCFLAGS=$lt_CFLAGS 22979 22980# Take the output of nm and produce a listing of raw symbols and C names. 22981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22982 22983# Transform the output of nm in a proper C declaration. 22984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22985 22986# Transform the output of nm into a list of symbols to manually relocate. 22987global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22988 22989# Transform the output of nm in a C name address pair. 22990global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22991 22992# Transform the output of nm in a C name address pair when lib prefix is needed. 22993global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22994 22995# The name lister interface. 22996nm_interface=$lt_lt_cv_nm_interface 22997 22998# Specify filename containing input files for \$NM. 22999nm_file_list_spec=$lt_nm_file_list_spec 23000 23001# The root where to search for dependent libraries,and where our libraries should be installed. 23002lt_sysroot=$lt_sysroot 23003 23004# Command to truncate a binary pipe. 23005lt_truncate_bin=$lt_lt_cv_truncate_bin 23006 23007# The name of the directory that contains temporary libtool files. 23008objdir=$objdir 23009 23010# Used to examine libraries when file_magic_cmd begins with "file". 23011MAGIC_CMD=$MAGIC_CMD 23012 23013# Must we lock files when doing compilation? 23014need_locks=$lt_need_locks 23015 23016# Manifest tool. 23017MANIFEST_TOOL=$lt_MANIFEST_TOOL 23018 23019# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23020DSYMUTIL=$lt_DSYMUTIL 23021 23022# Tool to change global to local symbols on Mac OS X. 23023NMEDIT=$lt_NMEDIT 23024 23025# Tool to manipulate fat objects and archives on Mac OS X. 23026LIPO=$lt_LIPO 23027 23028# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23029OTOOL=$lt_OTOOL 23030 23031# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23032OTOOL64=$lt_OTOOL64 23033 23034# Old archive suffix (normally "a"). 23035libext=$libext 23036 23037# Shared library suffix (normally ".so"). 23038shrext_cmds=$lt_shrext_cmds 23039 23040# The commands to extract the exported symbol list from a shared archive. 23041extract_expsyms_cmds=$lt_extract_expsyms_cmds 23042 23043# Variables whose values should be saved in libtool wrapper scripts and 23044# restored at link time. 23045variables_saved_for_relink=$lt_variables_saved_for_relink 23046 23047# Do we need the "lib" prefix for modules? 23048need_lib_prefix=$need_lib_prefix 23049 23050# Do we need a version for libraries? 23051need_version=$need_version 23052 23053# Library versioning type. 23054version_type=$version_type 23055 23056# Shared library runtime path variable. 23057runpath_var=$runpath_var 23058 23059# Shared library path variable. 23060shlibpath_var=$shlibpath_var 23061 23062# Is shlibpath searched before the hard-coded library search path? 23063shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23064 23065# Format of library name prefix. 23066libname_spec=$lt_libname_spec 23067 23068# List of archive names. First name is the real one, the rest are links. 23069# The last name is the one that the linker finds with -lNAME 23070library_names_spec=$lt_library_names_spec 23071 23072# The coded name of the library, if different from the real name. 23073soname_spec=$lt_soname_spec 23074 23075# Permission mode override for installation of shared libraries. 23076install_override_mode=$lt_install_override_mode 23077 23078# Command to use after installation of a shared archive. 23079postinstall_cmds=$lt_postinstall_cmds 23080 23081# Command to use after uninstallation of a shared archive. 23082postuninstall_cmds=$lt_postuninstall_cmds 23083 23084# Commands used to finish a libtool library installation in a directory. 23085finish_cmds=$lt_finish_cmds 23086 23087# As "finish_cmds", except a single script fragment to be evaled but 23088# not shown. 23089finish_eval=$lt_finish_eval 23090 23091# Whether we should hardcode library paths into libraries. 23092hardcode_into_libs=$hardcode_into_libs 23093 23094# Compile-time system search path for libraries. 23095sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23096 23097# Detected run-time system search path for libraries. 23098sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23099 23100# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23101configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23102 23103# Whether dlopen is supported. 23104dlopen_support=$enable_dlopen 23105 23106# Whether dlopen of programs is supported. 23107dlopen_self=$enable_dlopen_self 23108 23109# Whether dlopen of statically linked programs is supported. 23110dlopen_self_static=$enable_dlopen_self_static 23111 23112# Commands to strip libraries. 23113old_striplib=$lt_old_striplib 23114striplib=$lt_striplib 23115 23116 23117# The linker used to build libraries. 23118LD=$lt_LD 23119 23120# How to create reloadable object files. 23121reload_flag=$lt_reload_flag 23122reload_cmds=$lt_reload_cmds 23123 23124# Commands used to build an old-style archive. 23125old_archive_cmds=$lt_old_archive_cmds 23126 23127# A language specific compiler. 23128CC=$lt_compiler 23129 23130# Is the compiler the GNU compiler? 23131with_gcc=$GCC 23132 23133# Compiler flag to turn off builtin functions. 23134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23135 23136# Additional compiler flags for building library objects. 23137pic_flag=$lt_lt_prog_compiler_pic 23138 23139# How to pass a linker flag through the compiler. 23140wl=$lt_lt_prog_compiler_wl 23141 23142# Compiler flag to prevent dynamic linking. 23143link_static_flag=$lt_lt_prog_compiler_static 23144 23145# Does compiler simultaneously support -c and -o options? 23146compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23147 23148# Whether or not to add -lc for building shared libraries. 23149build_libtool_need_lc=$archive_cmds_need_lc 23150 23151# Whether or not to disallow shared libs when runtime libs are static. 23152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23153 23154# Compiler flag to allow reflexive dlopens. 23155export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23156 23157# Compiler flag to generate shared objects directly from archives. 23158whole_archive_flag_spec=$lt_whole_archive_flag_spec 23159 23160# Whether the compiler copes with passing no objects directly. 23161compiler_needs_object=$lt_compiler_needs_object 23162 23163# Create an old-style archive from a shared archive. 23164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23165 23166# Create a temporary old-style archive to link instead of a shared archive. 23167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23168 23169# Commands used to build a shared archive. 23170archive_cmds=$lt_archive_cmds 23171archive_expsym_cmds=$lt_archive_expsym_cmds 23172 23173# Commands used to build a loadable module if different from building 23174# a shared archive. 23175module_cmds=$lt_module_cmds 23176module_expsym_cmds=$lt_module_expsym_cmds 23177 23178# Whether we are building with GNU ld or not. 23179with_gnu_ld=$lt_with_gnu_ld 23180 23181# Flag that allows shared libraries with undefined symbols to be built. 23182allow_undefined_flag=$lt_allow_undefined_flag 23183 23184# Flag that enforces no undefined symbols. 23185no_undefined_flag=$lt_no_undefined_flag 23186 23187# Flag to hardcode \$libdir into a binary during linking. 23188# This must work even if \$libdir does not exist 23189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23190 23191# Whether we need a single "-rpath" flag with a separated argument. 23192hardcode_libdir_separator=$lt_hardcode_libdir_separator 23193 23194# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23195# DIR into the resulting binary. 23196hardcode_direct=$hardcode_direct 23197 23198# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23199# DIR into the resulting binary and the resulting library dependency is 23200# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23201# library is relocated. 23202hardcode_direct_absolute=$hardcode_direct_absolute 23203 23204# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23205# into the resulting binary. 23206hardcode_minus_L=$hardcode_minus_L 23207 23208# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23209# into the resulting binary. 23210hardcode_shlibpath_var=$hardcode_shlibpath_var 23211 23212# Set to "yes" if building a shared library automatically hardcodes DIR 23213# into the library and all subsequent libraries and executables linked 23214# against it. 23215hardcode_automatic=$hardcode_automatic 23216 23217# Set to yes if linker adds runtime paths of dependent libraries 23218# to runtime path list. 23219inherit_rpath=$inherit_rpath 23220 23221# Whether libtool must link a program against all its dependency libraries. 23222link_all_deplibs=$link_all_deplibs 23223 23224# Set to "yes" if exported symbols are required. 23225always_export_symbols=$always_export_symbols 23226 23227# The commands to list exported symbols. 23228export_symbols_cmds=$lt_export_symbols_cmds 23229 23230# Symbols that should not be listed in the preloaded symbols. 23231exclude_expsyms=$lt_exclude_expsyms 23232 23233# Symbols that must always be exported. 23234include_expsyms=$lt_include_expsyms 23235 23236# Commands necessary for linking programs (against libraries) with templates. 23237prelink_cmds=$lt_prelink_cmds 23238 23239# Commands necessary for finishing linking programs. 23240postlink_cmds=$lt_postlink_cmds 23241 23242# Specify filename containing input files. 23243file_list_spec=$lt_file_list_spec 23244 23245# How to hardcode a shared library path into an executable. 23246hardcode_action=$hardcode_action 23247 23248# The directories searched by this compiler when creating a shared library. 23249compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23250 23251# Dependencies to place before and after the objects being linked to 23252# create a shared library. 23253predep_objects=$lt_predep_objects 23254postdep_objects=$lt_postdep_objects 23255predeps=$lt_predeps 23256postdeps=$lt_postdeps 23257 23258# The library search path used internally by the compiler when linking 23259# a shared library. 23260compiler_lib_search_path=$lt_compiler_lib_search_path 23261 23262# ### END LIBTOOL CONFIG 23263 23264_LT_EOF 23265 23266 cat <<'_LT_EOF' >> "$cfgfile" 23267 23268# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23269 23270# func_munge_path_list VARIABLE PATH 23271# ----------------------------------- 23272# VARIABLE is name of variable containing _space_ separated list of 23273# directories to be munged by the contents of PATH, which is string 23274# having a format: 23275# "DIR[:DIR]:" 23276# string "DIR[ DIR]" will be prepended to VARIABLE 23277# ":DIR[:DIR]" 23278# string "DIR[ DIR]" will be appended to VARIABLE 23279# "DIRP[:DIRP]::[DIRA:]DIRA" 23280# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23281# "DIRA[ DIRA]" will be appended to VARIABLE 23282# "DIR[:DIR]" 23283# VARIABLE will be replaced by "DIR[ DIR]" 23284func_munge_path_list () 23285{ 23286 case x$2 in 23287 x) 23288 ;; 23289 *:) 23290 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23291 ;; 23292 x:*) 23293 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23294 ;; 23295 *::*) 23296 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23297 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23298 ;; 23299 *) 23300 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23301 ;; 23302 esac 23303} 23304 23305 23306# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23307func_cc_basename () 23308{ 23309 for cc_temp in $*""; do 23310 case $cc_temp in 23311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23313 \-*) ;; 23314 *) break;; 23315 esac 23316 done 23317 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23318} 23319 23320 23321# ### END FUNCTIONS SHARED WITH CONFIGURE 23322 23323_LT_EOF 23324 23325 case $host_os in 23326 aix3*) 23327 cat <<\_LT_EOF >> "$cfgfile" 23328# AIX sometimes has problems with the GCC collect2 program. For some 23329# reason, if we set the COLLECT_NAMES environment variable, the problems 23330# vanish in a puff of smoke. 23331if test set != "${COLLECT_NAMES+set}"; then 23332 COLLECT_NAMES= 23333 export COLLECT_NAMES 23334fi 23335_LT_EOF 23336 ;; 23337 esac 23338 23339 23340ltmain=$ac_aux_dir/ltmain.sh 23341 23342 23343 # We use sed instead of cat because bash on DJGPP gets confused if 23344 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23345 # text mode, it properly converts lines to CR/LF. This bash problem 23346 # is reportedly fixed, but why not run on old versions too? 23347 sed '$q' "$ltmain" >> "$cfgfile" \ 23348 || (rm -f "$cfgfile"; exit 1) 23349 23350 mv -f "$cfgfile" "$ofile" || 23351 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23352 chmod +x "$ofile" 23353 23354 23355 cat <<_LT_EOF >> "$ofile" 23356 23357# ### BEGIN LIBTOOL TAG CONFIG: CXX 23358 23359# The linker used to build libraries. 23360LD=$lt_LD_CXX 23361 23362# How to create reloadable object files. 23363reload_flag=$lt_reload_flag_CXX 23364reload_cmds=$lt_reload_cmds_CXX 23365 23366# Commands used to build an old-style archive. 23367old_archive_cmds=$lt_old_archive_cmds_CXX 23368 23369# A language specific compiler. 23370CC=$lt_compiler_CXX 23371 23372# Is the compiler the GNU compiler? 23373with_gcc=$GCC_CXX 23374 23375# Compiler flag to turn off builtin functions. 23376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23377 23378# Additional compiler flags for building library objects. 23379pic_flag=$lt_lt_prog_compiler_pic_CXX 23380 23381# How to pass a linker flag through the compiler. 23382wl=$lt_lt_prog_compiler_wl_CXX 23383 23384# Compiler flag to prevent dynamic linking. 23385link_static_flag=$lt_lt_prog_compiler_static_CXX 23386 23387# Does compiler simultaneously support -c and -o options? 23388compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23389 23390# Whether or not to add -lc for building shared libraries. 23391build_libtool_need_lc=$archive_cmds_need_lc_CXX 23392 23393# Whether or not to disallow shared libs when runtime libs are static. 23394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23395 23396# Compiler flag to allow reflexive dlopens. 23397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23398 23399# Compiler flag to generate shared objects directly from archives. 23400whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23401 23402# Whether the compiler copes with passing no objects directly. 23403compiler_needs_object=$lt_compiler_needs_object_CXX 23404 23405# Create an old-style archive from a shared archive. 23406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23407 23408# Create a temporary old-style archive to link instead of a shared archive. 23409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23410 23411# Commands used to build a shared archive. 23412archive_cmds=$lt_archive_cmds_CXX 23413archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23414 23415# Commands used to build a loadable module if different from building 23416# a shared archive. 23417module_cmds=$lt_module_cmds_CXX 23418module_expsym_cmds=$lt_module_expsym_cmds_CXX 23419 23420# Whether we are building with GNU ld or not. 23421with_gnu_ld=$lt_with_gnu_ld_CXX 23422 23423# Flag that allows shared libraries with undefined symbols to be built. 23424allow_undefined_flag=$lt_allow_undefined_flag_CXX 23425 23426# Flag that enforces no undefined symbols. 23427no_undefined_flag=$lt_no_undefined_flag_CXX 23428 23429# Flag to hardcode \$libdir into a binary during linking. 23430# This must work even if \$libdir does not exist 23431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23432 23433# Whether we need a single "-rpath" flag with a separated argument. 23434hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23435 23436# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23437# DIR into the resulting binary. 23438hardcode_direct=$hardcode_direct_CXX 23439 23440# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23441# DIR into the resulting binary and the resulting library dependency is 23442# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23443# library is relocated. 23444hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23445 23446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23447# into the resulting binary. 23448hardcode_minus_L=$hardcode_minus_L_CXX 23449 23450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23451# into the resulting binary. 23452hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23453 23454# Set to "yes" if building a shared library automatically hardcodes DIR 23455# into the library and all subsequent libraries and executables linked 23456# against it. 23457hardcode_automatic=$hardcode_automatic_CXX 23458 23459# Set to yes if linker adds runtime paths of dependent libraries 23460# to runtime path list. 23461inherit_rpath=$inherit_rpath_CXX 23462 23463# Whether libtool must link a program against all its dependency libraries. 23464link_all_deplibs=$link_all_deplibs_CXX 23465 23466# Set to "yes" if exported symbols are required. 23467always_export_symbols=$always_export_symbols_CXX 23468 23469# The commands to list exported symbols. 23470export_symbols_cmds=$lt_export_symbols_cmds_CXX 23471 23472# Symbols that should not be listed in the preloaded symbols. 23473exclude_expsyms=$lt_exclude_expsyms_CXX 23474 23475# Symbols that must always be exported. 23476include_expsyms=$lt_include_expsyms_CXX 23477 23478# Commands necessary for linking programs (against libraries) with templates. 23479prelink_cmds=$lt_prelink_cmds_CXX 23480 23481# Commands necessary for finishing linking programs. 23482postlink_cmds=$lt_postlink_cmds_CXX 23483 23484# Specify filename containing input files. 23485file_list_spec=$lt_file_list_spec_CXX 23486 23487# How to hardcode a shared library path into an executable. 23488hardcode_action=$hardcode_action_CXX 23489 23490# The directories searched by this compiler when creating a shared library. 23491compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23492 23493# Dependencies to place before and after the objects being linked to 23494# create a shared library. 23495predep_objects=$lt_predep_objects_CXX 23496postdep_objects=$lt_postdep_objects_CXX 23497predeps=$lt_predeps_CXX 23498postdeps=$lt_postdeps_CXX 23499 23500# The library search path used internally by the compiler when linking 23501# a shared library. 23502compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23503 23504# ### END LIBTOOL TAG CONFIG: CXX 23505_LT_EOF 23506 23507 ;; 23508 23509 esac 23510done # for ac_tag 23511 23512 23513as_fn_exit 0 23514_ACEOF 23515ac_clean_files=$ac_clean_files_save 23516 23517test $ac_write_fail = 0 || 23518 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23519 23520 23521# configure is writing to config.log, and then calls config.status. 23522# config.status does its own redirection, appending to config.log. 23523# Unfortunately, on DOS this fails, as config.log is still kept open 23524# by configure, so config.status won't be able to write to it; its 23525# output is simply discarded. So we exec the FD to /dev/null, 23526# effectively closing config.log, so it can be properly (re)opened and 23527# appended to by config.status. When coming back to configure, we 23528# need to make the FD available again. 23529if test "$no_create" != yes; then 23530 ac_cs_success=: 23531 ac_config_status_args= 23532 test "$silent" = yes && 23533 ac_config_status_args="$ac_config_status_args --quiet" 23534 exec 5>/dev/null 23535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23536 exec 5>>config.log 23537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23538 # would make configure fail if this is the last instruction. 23539 $ac_cs_success || as_fn_exit 1 23540fi 23541if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23543$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23544fi 23545 23546 23547 23548echo "" 23549echo "Libtiff is now configured for ${host}" 23550echo "" 23551echo " Installation directory: ${prefix}" 23552echo " Documentation directory: ${LIBTIFF_DOCDIR}" 23553echo " C compiler: ${CC} ${CFLAGS}" 23554echo " C++ compiler: ${CXX} ${CXXFLAGS}" 23555echo " Enable runtime linker paths: ${HAVE_RPATH}" 23556echo " Enable linker symbol versioning: ${have_ld_version_script}" 23557echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 23558echo " Use win32 IO: ${win32_io_ok}" 23559echo "" 23560echo " Support for internal codecs:" 23561echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 23562echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 23563echo " LZW algorithm: ${HAVE_LZW}" 23564echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 23565echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 23566echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 23567echo "" 23568echo " Support for external codecs:" 23569echo " ZLIB support: ${HAVE_ZLIB}" 23570echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 23571echo " JPEG support: ${HAVE_JPEG}" 23572echo " Old JPEG support: ${HAVE_OJPEG}" 23573echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 23574echo " ISO JBIG support: ${HAVE_JBIG}" 23575echo " LZMA2 support: ${HAVE_LZMA}" 23576echo "" 23577echo " C++ support: ${HAVE_CXX}" 23578echo "" 23579echo " OpenGL support: ${HAVE_OPENGL}" 23580echo "" 23581 23582