1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.4beta. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: [email protected] about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='LibTIFF Software' 592PACKAGE_TARNAME='tiff' 593PACKAGE_VERSION='4.0.4beta' 594PACKAGE_STRING='LibTIFF Software 4.0.4beta' 595PACKAGE_BUGREPORT='[email protected]' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBDIR 638WIN32_IO_FALSE 639WIN32_IO_TRUE 640HAVE_OPENGL_FALSE 641HAVE_OPENGL_TRUE 642GLUT_LIBS 643GLUT_CFLAGS 644GLU_LIBS 645GLU_CFLAGS 646GL_LIBS 647GL_CFLAGS 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651ax_pthread_config 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657HAVE_CXX_FALSE 658HAVE_CXX_TRUE 659LIBTIFF_DOCDIR 660HAVE_RPATH_FALSE 661HAVE_RPATH_TRUE 662LIBOBJS 663tiff_libs_private 664CXXCPP 665am__fastdepCXX_FALSE 666am__fastdepCXX_TRUE 667CXXDEPMODE 668ac_ct_CXX 669CXXFLAGS 670CXX 671CPP 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681NM 682ac_ct_DUMPBIN 683DUMPBIN 684LD 685FGREP 686EGREP 687GREP 688SED 689LIBTOOL 690OBJDUMP 691DLLTOOL 692AS 693HAVE_LD_VERSION_SCRIPT_FALSE 694HAVE_LD_VERSION_SCRIPT_TRUE 695LN_S 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713LIBTIFF_RELEASE_DATE 714LIBTIFF_VERSION_INFO 715LIBTIFF_VERSION 716LIBTIFF_ALPHA_VERSION 717LIBTIFF_MICRO_VERSION 718LIBTIFF_MINOR_VERSION 719LIBTIFF_MAJOR_VERSION 720MAINT 721MAINTAINER_MODE_FALSE 722MAINTAINER_MODE_TRUE 723AM_BACKSLASH 724AM_DEFAULT_VERBOSITY 725AM_DEFAULT_V 726AM_V 727am__untar 728am__tar 729AMTAR 730am__leading_dot 731SET_MAKE 732AWK 733mkdir_p 734MKDIR_P 735INSTALL_STRIP_PROGRAM 736STRIP 737install_sh 738MAKEINFO 739AUTOHEADER 740AUTOMAKE 741AUTOCONF 742ACLOCAL 743VERSION 744PACKAGE 745CYGPATH_W 746am__isrc 747INSTALL_DATA 748INSTALL_SCRIPT 749INSTALL_PROGRAM 750host_os 751host_vendor 752host_cpu 753host 754build_os 755build_vendor 756build_cpu 757build 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_maintainer_mode 801enable_dependency_tracking 802enable_ld_version_script 803enable_shared 804enable_static 805with_pic 806enable_fast_install 807with_aix_soname 808with_gnu_ld 809with_sysroot 810enable_libtool_lock 811enable_rpath 812enable_largefile 813with_docdir 814enable_ccitt 815enable_packbits 816enable_lzw 817enable_thunder 818enable_next 819enable_logluv 820enable_mdi 821enable_zlib 822with_zlib_include_dir 823with_zlib_lib_dir 824enable_pixarlog 825enable_jpeg 826with_jpeg_include_dir 827with_jpeg_lib_dir 828enable_old_jpeg 829enable_jbig 830with_jbig_include_dir 831with_jbig_lib_dir 832enable_lzma 833with_lzma_include_dir 834with_lzma_lib_dir 835enable_jpeg12 836with_jpeg12_include_dir 837with_jpeg12_lib 838enable_cxx 839with_x 840enable_win32_io 841enable_strip_chopping 842with_default_strip_size 843enable_defer_strile_load 844enable_chunky_strip_read 845enable_extrasample_as_alpha 846enable_check_ycbcr_subsampling 847' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856CPP 857CXX 858CXXFLAGS 859CCC 860CXXCPP 861XMKMF' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures LibTIFF Software 4.0.4beta to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464X features: 1465 --x-includes=DIR X include files are in DIR 1466 --x-libraries=DIR X library files are in DIR 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of LibTIFF Software 4.0.4beta:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-option-checking ignore unrecognized --enable/--with options 1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-maintainer-mode 1487 enable make rules and dependencies not useful (and 1488 sometimes confusing) to the casual installer 1489 --enable-dependency-tracking 1490 do not reject slow dependency extractors 1491 --disable-dependency-tracking 1492 speeds up one-time build 1493 --enable-ld-version-script 1494 enable linker version script (default is disabled) 1495 --enable-shared[=PKGS] build shared libraries [default=yes] 1496 --enable-static[=PKGS] build static libraries [default=yes] 1497 --enable-fast-install[=PKGS] 1498 optimize for fast installation [default=yes] 1499 --disable-libtool-lock avoid locking (might break parallel builds) 1500 --enable-rpath Enable runtime linker paths (-R libtool option) 1501 --disable-largefile omit support for large files 1502 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1503 --disable-packbits disable support for Macintosh PackBits algorithm 1504 --disable-lzw disable support for LZW algorithm 1505 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1506 --disable-next disable support for NeXT 2-bit RLE algorithm 1507 --disable-logluv disable support for LogLuv high dynamic range 1508 encoding 1509 --disable-mdi disable support for Microsoft Document Imaging 1510 --disable-zlib disable Zlib usage (required for Deflate 1511 compression, enabled by default) 1512 --disable-pixarlog disable support for Pixar log-format algorithm 1513 (requires Zlib) 1514 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1515 compression, enabled by default) 1516 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1517 enabled by default) 1518 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1519 compression, enabled by default) 1520 --disable-lzma disable liblzma usage (required for LZMA2 1521 compression, enabled by default) 1522 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1523 --enable-cxx enable C++ stream API building (requires C++ 1524 compiler) 1525 --disable-win32-io disable Win32 I/O (Windows only, enabled by default 1526 except for Cygwin) 1527 --disable-strip-chopping 1528 disable support for strip chopping (whether or not 1529 to convert single-strip uncompressed images to 1530 mutiple strips of specified size to reduce memory 1531 usage) 1532 --enable-defer-strile-load 1533 enable deferred strip/tile offset/size loading 1534 (experimental) 1535 --enable-chunky-strip-read 1536 enable reading large strips in chunks for 1537 TIFFReadScanline() (experimental) 1538 --disable-extrasample-as-alpha 1539 the RGBA interface will treat a fourth sample with 1540 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1541 packages produce RGBA files but don't mark the alpha 1542 properly 1543 --disable-check-ycbcr-subsampling 1544 disable picking up YCbCr subsampling info from the 1545 JPEG data stream to support files lacking the tag 1546 1547Optional Packages: 1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1551 both] 1552 --with-aix-soname=aix|svr4|both 1553 shared library versioning (aka "SONAME") variant to 1554 provide on AIX, [default=aix]. 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1557 compiler's sysroot if not specified). 1558 --with-docdir=DIR directory where documentation should be installed 1559 --with-zlib-include-dir=DIR 1560 location of Zlib headers 1561 --with-zlib-lib-dir=DIR location of Zlib library binary 1562 --with-jpeg-include-dir=DIR 1563 location of IJG JPEG library headers 1564 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1565 --with-jbig-include-dir=DIR 1566 location of JBIG-KIT headers 1567 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1568 --with-lzma-include-dir=DIR 1569 location of liblzma headers 1570 --with-lzma-lib-dir=DIR location of liblzma library binary 1571 --with-jpeg12-include-dir=DIR 1572 location of libjpeg 12bit headers 1573 --with-jpeg12-lib=LIBRARY 1574 path to libjpeg 12bit library 1575 --with-x use the X Window System 1576 --with-default-strip-size=SIZE 1577 default size of the strip in bytes (when strip 1578 chopping enabled) [[default=8192]] 1579 1580Some influential environment variables: 1581 CC C compiler command 1582 CFLAGS C compiler flags 1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1584 nonstandard directory <lib dir> 1585 LIBS libraries to pass to the linker, e.g. -l<library> 1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1587 you have headers in a nonstandard directory <include dir> 1588 CPP C preprocessor 1589 CXX C++ compiler command 1590 CXXFLAGS C++ compiler flags 1591 CXXCPP C++ preprocessor 1592 XMKMF Path to xmkmf, Makefile generator for X Window System 1593 1594Use these variables to override the choices made by `configure' or to help 1595it to find libraries and programs with nonstandard names/locations. 1596 1597Report bugs to <[email protected]>. 1598_ACEOF 1599ac_status=$? 1600fi 1601 1602if test "$ac_init_help" = "recursive"; then 1603 # If there are subdirs, report their specific --help. 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1605 test -d "$ac_dir" || 1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1607 continue 1608 ac_builddir=. 1609 1610case "$ac_dir" in 1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1612*) 1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1614 # A ".." for each directory in $ac_dir_suffix. 1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1616 case $ac_top_builddir_sub in 1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1619 esac ;; 1620esac 1621ac_abs_top_builddir=$ac_pwd 1622ac_abs_builddir=$ac_pwd$ac_dir_suffix 1623# for backward compatibility: 1624ac_top_builddir=$ac_top_build_prefix 1625 1626case $srcdir in 1627 .) # We are building in place. 1628 ac_srcdir=. 1629 ac_top_srcdir=$ac_top_builddir_sub 1630 ac_abs_top_srcdir=$ac_pwd ;; 1631 [\\/]* | ?:[\\/]* ) # Absolute name. 1632 ac_srcdir=$srcdir$ac_dir_suffix; 1633 ac_top_srcdir=$srcdir 1634 ac_abs_top_srcdir=$srcdir ;; 1635 *) # Relative name. 1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1637 ac_top_srcdir=$ac_top_build_prefix$srcdir 1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1639esac 1640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1641 1642 cd "$ac_dir" || { ac_status=$?; continue; } 1643 # Check for guested configure. 1644 if test -f "$ac_srcdir/configure.gnu"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1647 elif test -f "$ac_srcdir/configure"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure" --help=recursive 1650 else 1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1652 fi || ac_status=$? 1653 cd "$ac_pwd" || { ac_status=$?; break; } 1654 done 1655fi 1656 1657test -n "$ac_init_help" && exit $ac_status 1658if $ac_init_version; then 1659 cat <<\_ACEOF 1660LibTIFF Software configure 4.0.4beta 1661generated by GNU Autoconf 2.69 1662 1663Copyright (C) 2012 Free Software Foundation, Inc. 1664This configure script is free software; the Free Software Foundation 1665gives unlimited permission to copy, distribute and modify it. 1666_ACEOF 1667 exit 1668fi 1669 1670## ------------------------ ## 1671## Autoconf initialization. ## 1672## ------------------------ ## 1673 1674# ac_fn_c_try_compile LINENO 1675# -------------------------- 1676# Try to compile conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_compile () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext 1681 if { { ac_try="$ac_compile" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_compile") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest.$ac_objext; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_compile 1711 1712# ac_fn_c_try_link LINENO 1713# ----------------------- 1714# Try to link conftest.$ac_ext, and return whether this succeeded. 1715ac_fn_c_try_link () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 rm -f conftest.$ac_objext conftest$ac_exeext 1719 if { { ac_try="$ac_link" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>conftest.err 1727 ac_status=$? 1728 if test -s conftest.err; then 1729 grep -v '^ *+' conftest.err >conftest.er1 1730 cat conftest.er1 >&5 1731 mv -f conftest.er1 conftest.err 1732 fi 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { 1735 test -z "$ac_c_werror_flag" || 1736 test ! -s conftest.err 1737 } && test -s conftest$ac_exeext && { 1738 test "$cross_compiling" = yes || 1739 test -x conftest$ac_exeext 1740 }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747fi 1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1750 # interfere with the next link command; also delete a directory that is 1751 # left behind by Apple's compiler. We do this before executing the actions. 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_link 1757 1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1759# ------------------------------------------------------- 1760# Tests whether HEADER exists and can be compiled using the include files in 1761# INCLUDES, setting the cache variable VAR accordingly. 1762ac_fn_c_check_header_compile () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773#include <$2> 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 eval "$3=yes" 1777else 1778 eval "$3=no" 1779fi 1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_header_compile 1788 1789# ac_fn_c_try_cpp LINENO 1790# ---------------------- 1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1792ac_fn_c_try_cpp () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_cpp conftest.$ac_ext" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } > conftest.i && { 1811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_cpp 1825 1826# ac_fn_c_try_run LINENO 1827# ---------------------- 1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1829# that executables *can* be run. 1830ac_fn_c_try_run () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if { { ac_try="$ac_link" 1834case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_link") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1844 { { case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_try") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; }; }; then : 1854 ac_retval=0 1855else 1856 $as_echo "$as_me: program exited with status $ac_status" >&5 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=$ac_status 1861fi 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_c_try_run 1867 1868# ac_fn_c_check_func LINENO FUNC VAR 1869# ---------------------------------- 1870# Tests whether FUNC exists, setting the cache variable VAR accordingly 1871ac_fn_c_check_func () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1883#define $2 innocuous_$2 1884 1885/* System header to define __stub macros and hopefully few prototypes, 1886 which can conflict with char $2 (); below. 1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1888 <limits.h> exists even on freestanding compilers. */ 1889 1890#ifdef __STDC__ 1891# include <limits.h> 1892#else 1893# include <assert.h> 1894#endif 1895 1896#undef $2 1897 1898/* Override any GCC internal prototype to avoid an error. 1899 Use char because int might match the return type of a GCC 1900 builtin and then its argument prototype would still apply. */ 1901#ifdef __cplusplus 1902extern "C" 1903#endif 1904char $2 (); 1905/* The GNU C library defines this for functions which it implements 1906 to always fail with ENOSYS. Some functions are actually named 1907 something starting with __ and the normal name is an alias. */ 1908#if defined __stub_$2 || defined __stub___$2 1909choke me 1910#endif 1911 1912int 1913main () 1914{ 1915return $2 (); 1916 ; 1917 return 0; 1918} 1919_ACEOF 1920if ac_fn_c_try_link "$LINENO"; then : 1921 eval "$3=yes" 1922else 1923 eval "$3=no" 1924fi 1925rm -f core conftest.err conftest.$ac_objext \ 1926 conftest$ac_exeext conftest.$ac_ext 1927fi 1928eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930$as_echo "$ac_res" >&6; } 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932 1933} # ac_fn_c_check_func 1934 1935# ac_fn_cxx_try_compile LINENO 1936# ---------------------------- 1937# Try to compile conftest.$ac_ext, and return whether this succeeded. 1938ac_fn_cxx_try_compile () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 rm -f conftest.$ac_objext 1942 if { { ac_try="$ac_compile" 1943case "(($ac_try" in 1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1945 *) ac_try_echo=$ac_try;; 1946esac 1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1948$as_echo "$ac_try_echo"; } >&5 1949 (eval "$ac_compile") 2>conftest.err 1950 ac_status=$? 1951 if test -s conftest.err; then 1952 grep -v '^ *+' conftest.err >conftest.er1 1953 cat conftest.er1 >&5 1954 mv -f conftest.er1 conftest.err 1955 fi 1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1957 test $ac_status = 0; } && { 1958 test -z "$ac_cxx_werror_flag" || 1959 test ! -s conftest.err 1960 } && test -s conftest.$ac_objext; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: failed program was:" >&5 1964sed 's/^/| /' conftest.$ac_ext >&5 1965 1966 ac_retval=1 1967fi 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 as_fn_set_status $ac_retval 1970 1971} # ac_fn_cxx_try_compile 1972 1973# ac_fn_cxx_try_cpp LINENO 1974# ------------------------ 1975# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1976ac_fn_cxx_try_cpp () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 if { { ac_try="$ac_cpp conftest.$ac_ext" 1980case "(($ac_try" in 1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1982 *) ac_try_echo=$ac_try;; 1983esac 1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1985$as_echo "$ac_try_echo"; } >&5 1986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1987 ac_status=$? 1988 if test -s conftest.err; then 1989 grep -v '^ *+' conftest.err >conftest.er1 1990 cat conftest.er1 >&5 1991 mv -f conftest.er1 conftest.err 1992 fi 1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1994 test $ac_status = 0; } > conftest.i && { 1995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1996 test ! -s conftest.err 1997 }; then : 1998 ac_retval=0 1999else 2000 $as_echo "$as_me: failed program was:" >&5 2001sed 's/^/| /' conftest.$ac_ext >&5 2002 2003 ac_retval=1 2004fi 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_cxx_try_cpp 2009 2010# ac_fn_cxx_try_link LINENO 2011# ------------------------- 2012# Try to link conftest.$ac_ext, and return whether this succeeded. 2013ac_fn_cxx_try_link () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 rm -f conftest.$ac_objext conftest$ac_exeext 2017 if { { ac_try="$ac_link" 2018case "(($ac_try" in 2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2020 *) ac_try_echo=$ac_try;; 2021esac 2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2023$as_echo "$ac_try_echo"; } >&5 2024 (eval "$ac_link") 2>conftest.err 2025 ac_status=$? 2026 if test -s conftest.err; then 2027 grep -v '^ *+' conftest.err >conftest.er1 2028 cat conftest.er1 >&5 2029 mv -f conftest.er1 conftest.err 2030 fi 2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2032 test $ac_status = 0; } && { 2033 test -z "$ac_cxx_werror_flag" || 2034 test ! -s conftest.err 2035 } && test -s conftest$ac_exeext && { 2036 test "$cross_compiling" = yes || 2037 test -x conftest$ac_exeext 2038 }; then : 2039 ac_retval=0 2040else 2041 $as_echo "$as_me: failed program was:" >&5 2042sed 's/^/| /' conftest.$ac_ext >&5 2043 2044 ac_retval=1 2045fi 2046 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2047 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2048 # interfere with the next link command; also delete a directory that is 2049 # left behind by Apple's compiler. We do this before executing the actions. 2050 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 as_fn_set_status $ac_retval 2053 2054} # ac_fn_cxx_try_link 2055 2056# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2057# ------------------------------------------------------- 2058# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2059# the include files in INCLUDES and setting the cache variable VAR 2060# accordingly. 2061ac_fn_c_check_header_mongrel () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 if eval \${$3+:} false; then : 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2066$as_echo_n "checking for $2... " >&6; } 2067if eval \${$3+:} false; then : 2068 $as_echo_n "(cached) " >&6 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073else 2074 # Is the header compilable? 2075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2076$as_echo_n "checking $2 usability... " >&6; } 2077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080#include <$2> 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO"; then : 2083 ac_header_compiler=yes 2084else 2085 ac_header_compiler=no 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2089$as_echo "$ac_header_compiler" >&6; } 2090 2091# Is the header present? 2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2093$as_echo_n "checking $2 presence... " >&6; } 2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096#include <$2> 2097_ACEOF 2098if ac_fn_c_try_cpp "$LINENO"; then : 2099 ac_header_preproc=yes 2100else 2101 ac_header_preproc=no 2102fi 2103rm -f conftest.err conftest.i conftest.$ac_ext 2104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2105$as_echo "$ac_header_preproc" >&6; } 2106 2107# So? What about this header? 2108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2109 yes:no: ) 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2111$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2114 ;; 2115 no:yes:* ) 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2117$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2119$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2121$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2123$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2125$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2126( $as_echo "## -------------------------------------- ## 2127## Report this to [email protected] ## 2128## -------------------------------------- ##" 2129 ) | sed "s/^/$as_me: WARNING: /" >&2 2130 ;; 2131esac 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2133$as_echo_n "checking for $2... " >&6; } 2134if eval \${$3+:} false; then : 2135 $as_echo_n "(cached) " >&6 2136else 2137 eval "$3=\$ac_header_compiler" 2138fi 2139eval ac_res=\$$3 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2141$as_echo "$ac_res" >&6; } 2142fi 2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2144 2145} # ac_fn_c_check_header_mongrel 2146 2147# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2148# ------------------------------------------- 2149# Tests whether TYPE exists after having included INCLUDES, setting cache 2150# variable VAR accordingly. 2151ac_fn_c_check_type () 2152{ 2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155$as_echo_n "checking for $2... " >&6; } 2156if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158else 2159 eval "$3=no" 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$4 2163int 2164main () 2165{ 2166if (sizeof ($2)) 2167 return 0; 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174/* end confdefs.h. */ 2175$4 2176int 2177main () 2178{ 2179if (sizeof (($2))) 2180 return 0; 2181 ; 2182 return 0; 2183} 2184_ACEOF 2185if ac_fn_c_try_compile "$LINENO"; then : 2186 2187else 2188 eval "$3=yes" 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193fi 2194eval ac_res=\$$3 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2196$as_echo "$ac_res" >&6; } 2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2198 2199} # ac_fn_c_check_type 2200 2201# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2202# -------------------------------------------- 2203# Tries to find the compile-time value of EXPR in a program that includes 2204# INCLUDES, setting VAR accordingly. Returns whether the value could be 2205# computed 2206ac_fn_c_compute_int () 2207{ 2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2209 if test "$cross_compiling" = yes; then 2210 # Depending upon the size, compute the lo and hi bounds. 2211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2212/* end confdefs.h. */ 2213$4 2214int 2215main () 2216{ 2217static int test_array [1 - 2 * !(($2) >= 0)]; 2218test_array [0] = 0; 2219return test_array [0]; 2220 2221 ; 2222 return 0; 2223} 2224_ACEOF 2225if ac_fn_c_try_compile "$LINENO"; then : 2226 ac_lo=0 ac_mid=0 2227 while :; do 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231int 2232main () 2233{ 2234static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2235test_array [0] = 0; 2236return test_array [0]; 2237 2238 ; 2239 return 0; 2240} 2241_ACEOF 2242if ac_fn_c_try_compile "$LINENO"; then : 2243 ac_hi=$ac_mid; break 2244else 2245 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2246 if test $ac_lo -le $ac_mid; then 2247 ac_lo= ac_hi= 2248 break 2249 fi 2250 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2251fi 2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2253 done 2254else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257$4 2258int 2259main () 2260{ 2261static int test_array [1 - 2 * !(($2) < 0)]; 2262test_array [0] = 0; 2263return test_array [0]; 2264 2265 ; 2266 return 0; 2267} 2268_ACEOF 2269if ac_fn_c_try_compile "$LINENO"; then : 2270 ac_hi=-1 ac_mid=-1 2271 while :; do 2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2273/* end confdefs.h. */ 2274$4 2275int 2276main () 2277{ 2278static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2279test_array [0] = 0; 2280return test_array [0]; 2281 2282 ; 2283 return 0; 2284} 2285_ACEOF 2286if ac_fn_c_try_compile "$LINENO"; then : 2287 ac_lo=$ac_mid; break 2288else 2289 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2290 if test $ac_mid -le $ac_hi; then 2291 ac_lo= ac_hi= 2292 break 2293 fi 2294 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297 done 2298else 2299 ac_lo= ac_hi= 2300fi 2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2302fi 2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2304# Binary search between lo and hi bounds. 2305while test "x$ac_lo" != "x$ac_hi"; do 2306 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309$4 2310int 2311main () 2312{ 2313static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2314test_array [0] = 0; 2315return test_array [0]; 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321if ac_fn_c_try_compile "$LINENO"; then : 2322 ac_hi=$ac_mid 2323else 2324 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2325fi 2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2327done 2328case $ac_lo in #(( 2329?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2330'') ac_retval=1 ;; 2331esac 2332 else 2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2334/* end confdefs.h. */ 2335$4 2336static long int longval () { return $2; } 2337static unsigned long int ulongval () { return $2; } 2338#include <stdio.h> 2339#include <stdlib.h> 2340int 2341main () 2342{ 2343 2344 FILE *f = fopen ("conftest.val", "w"); 2345 if (! f) 2346 return 1; 2347 if (($2) < 0) 2348 { 2349 long int i = longval (); 2350 if (i != ($2)) 2351 return 1; 2352 fprintf (f, "%ld", i); 2353 } 2354 else 2355 { 2356 unsigned long int i = ulongval (); 2357 if (i != ($2)) 2358 return 1; 2359 fprintf (f, "%lu", i); 2360 } 2361 /* Do not output a trailing newline, as this causes \r\n confusion 2362 on some platforms. */ 2363 return ferror (f) || fclose (f) != 0; 2364 2365 ; 2366 return 0; 2367} 2368_ACEOF 2369if ac_fn_c_try_run "$LINENO"; then : 2370 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2371else 2372 ac_retval=1 2373fi 2374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2375 conftest.$ac_objext conftest.beam conftest.$ac_ext 2376rm -f conftest.val 2377 2378 fi 2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2380 as_fn_set_status $ac_retval 2381 2382} # ac_fn_c_compute_int 2383cat >config.log <<_ACEOF 2384This file contains any messages produced by compilers while 2385running configure, to aid debugging if configure makes a mistake. 2386 2387It was created by LibTIFF Software $as_me 4.0.4beta, which was 2388generated by GNU Autoconf 2.69. Invocation command line was 2389 2390 $ $0 $@ 2391 2392_ACEOF 2393exec 5>>config.log 2394{ 2395cat <<_ASUNAME 2396## --------- ## 2397## Platform. ## 2398## --------- ## 2399 2400hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2401uname -m = `(uname -m) 2>/dev/null || echo unknown` 2402uname -r = `(uname -r) 2>/dev/null || echo unknown` 2403uname -s = `(uname -s) 2>/dev/null || echo unknown` 2404uname -v = `(uname -v) 2>/dev/null || echo unknown` 2405 2406/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2407/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2408 2409/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2410/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2411/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2412/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2413/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2414/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2415/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2416 2417_ASUNAME 2418 2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2420for as_dir in $PATH 2421do 2422 IFS=$as_save_IFS 2423 test -z "$as_dir" && as_dir=. 2424 $as_echo "PATH: $as_dir" 2425 done 2426IFS=$as_save_IFS 2427 2428} >&5 2429 2430cat >&5 <<_ACEOF 2431 2432 2433## ----------- ## 2434## Core tests. ## 2435## ----------- ## 2436 2437_ACEOF 2438 2439 2440# Keep a trace of the command line. 2441# Strip out --no-create and --no-recursion so they do not pile up. 2442# Strip out --silent because we don't want to record it for future runs. 2443# Also quote any args containing shell meta-characters. 2444# Make two passes to allow for proper duplicate-argument suppression. 2445ac_configure_args= 2446ac_configure_args0= 2447ac_configure_args1= 2448ac_must_keep_next=false 2449for ac_pass in 1 2 2450do 2451 for ac_arg 2452 do 2453 case $ac_arg in 2454 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2456 | -silent | --silent | --silen | --sile | --sil) 2457 continue ;; 2458 *\'*) 2459 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2460 esac 2461 case $ac_pass in 2462 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2463 2) 2464 as_fn_append ac_configure_args1 " '$ac_arg'" 2465 if test $ac_must_keep_next = true; then 2466 ac_must_keep_next=false # Got value, back to normal. 2467 else 2468 case $ac_arg in 2469 *=* | --config-cache | -C | -disable-* | --disable-* \ 2470 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2471 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2472 | -with-* | --with-* | -without-* | --without-* | --x) 2473 case "$ac_configure_args0 " in 2474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2475 esac 2476 ;; 2477 -* ) ac_must_keep_next=true ;; 2478 esac 2479 fi 2480 as_fn_append ac_configure_args " '$ac_arg'" 2481 ;; 2482 esac 2483 done 2484done 2485{ ac_configure_args0=; unset ac_configure_args0;} 2486{ ac_configure_args1=; unset ac_configure_args1;} 2487 2488# When interrupted or exit'd, cleanup temporary files, and complete 2489# config.log. We remove comments because anyway the quotes in there 2490# would cause problems or look ugly. 2491# WARNING: Use '\'' to represent an apostrophe within the trap. 2492# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2493trap 'exit_status=$? 2494 # Save into config.log some information that might help in debugging. 2495 { 2496 echo 2497 2498 $as_echo "## ---------------- ## 2499## Cache variables. ## 2500## ---------------- ##" 2501 echo 2502 # The following way of writing the cache mishandles newlines in values, 2503( 2504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2505 eval ac_val=\$$ac_var 2506 case $ac_val in #( 2507 *${as_nl}*) 2508 case $ac_var in #( 2509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2511 esac 2512 case $ac_var in #( 2513 _ | IFS | as_nl) ;; #( 2514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2515 *) { eval $ac_var=; unset $ac_var;} ;; 2516 esac ;; 2517 esac 2518 done 2519 (set) 2>&1 | 2520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2521 *${as_nl}ac_space=\ *) 2522 sed -n \ 2523 "s/'\''/'\''\\\\'\'''\''/g; 2524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2525 ;; #( 2526 *) 2527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2528 ;; 2529 esac | 2530 sort 2531) 2532 echo 2533 2534 $as_echo "## ----------------- ## 2535## Output variables. ## 2536## ----------------- ##" 2537 echo 2538 for ac_var in $ac_subst_vars 2539 do 2540 eval ac_val=\$$ac_var 2541 case $ac_val in 2542 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2543 esac 2544 $as_echo "$ac_var='\''$ac_val'\''" 2545 done | sort 2546 echo 2547 2548 if test -n "$ac_subst_files"; then 2549 $as_echo "## ------------------- ## 2550## File substitutions. ## 2551## ------------------- ##" 2552 echo 2553 for ac_var in $ac_subst_files 2554 do 2555 eval ac_val=\$$ac_var 2556 case $ac_val in 2557 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2558 esac 2559 $as_echo "$ac_var='\''$ac_val'\''" 2560 done | sort 2561 echo 2562 fi 2563 2564 if test -s confdefs.h; then 2565 $as_echo "## ----------- ## 2566## confdefs.h. ## 2567## ----------- ##" 2568 echo 2569 cat confdefs.h 2570 echo 2571 fi 2572 test "$ac_signal" != 0 && 2573 $as_echo "$as_me: caught signal $ac_signal" 2574 $as_echo "$as_me: exit $exit_status" 2575 } >&5 2576 rm -f core *.core core.conftest.* && 2577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2578 exit $exit_status 2579' 0 2580for ac_signal in 1 2 13 15; do 2581 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2582done 2583ac_signal=0 2584 2585# confdefs.h avoids OS command line length limits that DEFS can exceed. 2586rm -f -r conftest* confdefs.h 2587 2588$as_echo "/* confdefs.h */" > confdefs.h 2589 2590# Predefined preprocessor variables. 2591 2592cat >>confdefs.h <<_ACEOF 2593#define PACKAGE_NAME "$PACKAGE_NAME" 2594_ACEOF 2595 2596cat >>confdefs.h <<_ACEOF 2597#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2598_ACEOF 2599 2600cat >>confdefs.h <<_ACEOF 2601#define PACKAGE_VERSION "$PACKAGE_VERSION" 2602_ACEOF 2603 2604cat >>confdefs.h <<_ACEOF 2605#define PACKAGE_STRING "$PACKAGE_STRING" 2606_ACEOF 2607 2608cat >>confdefs.h <<_ACEOF 2609#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2610_ACEOF 2611 2612cat >>confdefs.h <<_ACEOF 2613#define PACKAGE_URL "$PACKAGE_URL" 2614_ACEOF 2615 2616 2617# Let the site file select an alternate cache file if it wants to. 2618# Prefer an explicitly selected file to automatically selected ones. 2619ac_site_file1=NONE 2620ac_site_file2=NONE 2621if test -n "$CONFIG_SITE"; then 2622 # We do not want a PATH search for config.site. 2623 case $CONFIG_SITE in #(( 2624 -*) ac_site_file1=./$CONFIG_SITE;; 2625 */*) ac_site_file1=$CONFIG_SITE;; 2626 *) ac_site_file1=./$CONFIG_SITE;; 2627 esac 2628elif test "x$prefix" != xNONE; then 2629 ac_site_file1=$prefix/share/config.site 2630 ac_site_file2=$prefix/etc/config.site 2631else 2632 ac_site_file1=$ac_default_prefix/share/config.site 2633 ac_site_file2=$ac_default_prefix/etc/config.site 2634fi 2635for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2636do 2637 test "x$ac_site_file" = xNONE && continue 2638 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2640$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2641 sed 's/^/| /' "$ac_site_file" >&5 2642 . "$ac_site_file" \ 2643 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2645as_fn_error $? "failed to load site script $ac_site_file 2646See \`config.log' for more details" "$LINENO" 5; } 2647 fi 2648done 2649 2650if test -r "$cache_file"; then 2651 # Some versions of bash will fail to source /dev/null (special files 2652 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2653 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2655$as_echo "$as_me: loading cache $cache_file" >&6;} 2656 case $cache_file in 2657 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2658 *) . "./$cache_file";; 2659 esac 2660 fi 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2663$as_echo "$as_me: creating cache $cache_file" >&6;} 2664 >$cache_file 2665fi 2666 2667# Check that the precious variables saved in the cache have kept the same 2668# value. 2669ac_cache_corrupted=false 2670for ac_var in $ac_precious_vars; do 2671 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2672 eval ac_new_set=\$ac_env_${ac_var}_set 2673 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2674 eval ac_new_val=\$ac_env_${ac_var}_value 2675 case $ac_old_set,$ac_new_set in 2676 set,) 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2678$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2679 ac_cache_corrupted=: ;; 2680 ,set) 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2682$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2683 ac_cache_corrupted=: ;; 2684 ,);; 2685 *) 2686 if test "x$ac_old_val" != "x$ac_new_val"; then 2687 # differences in whitespace do not lead to failure. 2688 ac_old_val_w=`echo x $ac_old_val` 2689 ac_new_val_w=`echo x $ac_new_val` 2690 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2692$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2693 ac_cache_corrupted=: 2694 else 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2696$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2697 eval $ac_var=\$ac_old_val 2698 fi 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2700$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2702$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2703 fi;; 2704 esac 2705 # Pass precious variables to config.status. 2706 if test "$ac_new_set" = set; then 2707 case $ac_new_val in 2708 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2709 *) ac_arg=$ac_var=$ac_new_val ;; 2710 esac 2711 case " $ac_configure_args " in 2712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2713 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2714 esac 2715 fi 2716done 2717if $ac_cache_corrupted; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2721$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2722 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2723fi 2724## -------------------- ## 2725## Main body of script. ## 2726## -------------------- ## 2727 2728ac_ext=c 2729ac_cpp='$CPP $CPPFLAGS' 2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2732ac_compiler_gnu=$ac_cv_c_compiler_gnu 2733 2734 2735ac_aux_dir= 2736for ac_dir in config "$srcdir"/config; do 2737 if test -f "$ac_dir/install-sh"; then 2738 ac_aux_dir=$ac_dir 2739 ac_install_sh="$ac_aux_dir/install-sh -c" 2740 break 2741 elif test -f "$ac_dir/install.sh"; then 2742 ac_aux_dir=$ac_dir 2743 ac_install_sh="$ac_aux_dir/install.sh -c" 2744 break 2745 elif test -f "$ac_dir/shtool"; then 2746 ac_aux_dir=$ac_dir 2747 ac_install_sh="$ac_aux_dir/shtool install -c" 2748 break 2749 fi 2750done 2751if test -z "$ac_aux_dir"; then 2752 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2753fi 2754 2755# These three variables are undocumented and unsupported, 2756# and are intended to be withdrawn in a future Autoconf release. 2757# They can cause serious problems if a builder's source tree is in a directory 2758# whose full name contains unusual characters. 2759ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2760ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2761ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2762 2763 2764 2765ac_ext=c 2766ac_cpp='$CPP $CPPFLAGS' 2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2769ac_compiler_gnu=$ac_cv_c_compiler_gnu 2770 2771 2772# Make sure we can run config.sub. 2773$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2774 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2775 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2777$as_echo_n "checking build system type... " >&6; } 2778if ${ac_cv_build+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 ac_build_alias=$build_alias 2782test "x$ac_build_alias" = x && 2783 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2784test "x$ac_build_alias" = x && 2785 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2788 2789fi 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2791$as_echo "$ac_cv_build" >&6; } 2792case $ac_cv_build in 2793*-*-*) ;; 2794*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2795esac 2796build=$ac_cv_build 2797ac_save_IFS=$IFS; IFS='-' 2798set x $ac_cv_build 2799shift 2800build_cpu=$1 2801build_vendor=$2 2802shift; shift 2803# Remember, the first character of IFS is used to create $*, 2804# except with old shells: 2805build_os=$* 2806IFS=$ac_save_IFS 2807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2808 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2811$as_echo_n "checking host system type... " >&6; } 2812if ${ac_cv_host+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test "x$host_alias" = x; then 2816 ac_cv_host=$ac_cv_build 2817else 2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2820fi 2821 2822fi 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2824$as_echo "$ac_cv_host" >&6; } 2825case $ac_cv_host in 2826*-*-*) ;; 2827*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2828esac 2829host=$ac_cv_host 2830ac_save_IFS=$IFS; IFS='-' 2831set x $ac_cv_host 2832shift 2833host_cpu=$1 2834host_vendor=$2 2835shift; shift 2836# Remember, the first character of IFS is used to create $*, 2837# except with old shells: 2838host_os=$* 2839IFS=$ac_save_IFS 2840case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2841 2842 2843 2844am__api_version='1.15' 2845 2846# Find a good install program. We prefer a C program (faster), 2847# so one script is as good as another. But avoid the broken or 2848# incompatible versions: 2849# SysV /etc/install, /usr/sbin/install 2850# SunOS /usr/etc/install 2851# IRIX /sbin/install 2852# AIX /bin/install 2853# AmigaOS /C/install, which installs bootblocks on floppy discs 2854# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2855# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2856# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2857# OS/2's system install, which has a completely different semantic 2858# ./install, which can be erroneously created by make from ./install.sh. 2859# Reject install programs that cannot install multiple files. 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2861$as_echo_n "checking for a BSD-compatible install... " >&6; } 2862if test -z "$INSTALL"; then 2863if ${ac_cv_path_install+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867for as_dir in $PATH 2868do 2869 IFS=$as_save_IFS 2870 test -z "$as_dir" && as_dir=. 2871 # Account for people who put trailing slashes in PATH elements. 2872case $as_dir/ in #(( 2873 ./ | .// | /[cC]/* | \ 2874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2875 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2876 /usr/ucb/* ) ;; 2877 *) 2878 # OSF1 and SCO ODT 3.0 have their own names for install. 2879 # Don't use installbsd from OSF since it installs stuff as root 2880 # by default. 2881 for ac_prog in ginstall scoinst install; do 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2884 if test $ac_prog = install && 2885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2886 # AIX install. It has an incompatible calling convention. 2887 : 2888 elif test $ac_prog = install && 2889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2890 # program-specific install script used by HP pwplus--don't use. 2891 : 2892 else 2893 rm -rf conftest.one conftest.two conftest.dir 2894 echo one > conftest.one 2895 echo two > conftest.two 2896 mkdir conftest.dir 2897 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2898 test -s conftest.one && test -s conftest.two && 2899 test -s conftest.dir/conftest.one && 2900 test -s conftest.dir/conftest.two 2901 then 2902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2903 break 3 2904 fi 2905 fi 2906 fi 2907 done 2908 done 2909 ;; 2910esac 2911 2912 done 2913IFS=$as_save_IFS 2914 2915rm -rf conftest.one conftest.two conftest.dir 2916 2917fi 2918 if test "${ac_cv_path_install+set}" = set; then 2919 INSTALL=$ac_cv_path_install 2920 else 2921 # As a last resort, use the slow shell script. Don't cache a 2922 # value for INSTALL within a source directory, because that will 2923 # break other packages using the cache if that directory is 2924 # removed, or if the value is a relative name. 2925 INSTALL=$ac_install_sh 2926 fi 2927fi 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2929$as_echo "$INSTALL" >&6; } 2930 2931# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2932# It thinks the first close brace ends the variable substitution. 2933test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2934 2935test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2936 2937test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2938 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2940$as_echo_n "checking whether build environment is sane... " >&6; } 2941# Reject unsafe characters in $srcdir or the absolute working directory 2942# name. Accept space and tab only in the latter. 2943am_lf=' 2944' 2945case `pwd` in 2946 *[\\\"\#\$\&\'\`$am_lf]*) 2947 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2948esac 2949case $srcdir in 2950 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2951 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2952esac 2953 2954# Do 'set' in a subshell so we don't clobber the current shell's 2955# arguments. Must try -L first in case configure is actually a 2956# symlink; some systems play weird games with the mod time of symlinks 2957# (eg FreeBSD returns the mod time of the symlink's containing 2958# directory). 2959if ( 2960 am_has_slept=no 2961 for am_try in 1 2; do 2962 echo "timestamp, slept: $am_has_slept" > conftest.file 2963 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2964 if test "$*" = "X"; then 2965 # -L didn't work. 2966 set X `ls -t "$srcdir/configure" conftest.file` 2967 fi 2968 if test "$*" != "X $srcdir/configure conftest.file" \ 2969 && test "$*" != "X conftest.file $srcdir/configure"; then 2970 2971 # If neither matched, then we have a broken ls. This can happen 2972 # if, for instance, CONFIG_SHELL is bash and it inherits a 2973 # broken ls alias from the environment. This has actually 2974 # happened. Such a system could not be considered "sane". 2975 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2976 alias in your environment" "$LINENO" 5 2977 fi 2978 if test "$2" = conftest.file || test $am_try -eq 2; then 2979 break 2980 fi 2981 # Just in case. 2982 sleep 1 2983 am_has_slept=yes 2984 done 2985 test "$2" = conftest.file 2986 ) 2987then 2988 # Ok. 2989 : 2990else 2991 as_fn_error $? "newly created file is older than distributed files! 2992Check your system clock" "$LINENO" 5 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2995$as_echo "yes" >&6; } 2996# If we didn't sleep, we still need to ensure time stamps of config.status and 2997# generated files are strictly newer. 2998am_sleep_pid= 2999if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3000 ( sleep 1 ) & 3001 am_sleep_pid=$! 3002fi 3003 3004rm -f conftest.file 3005 3006test "$program_prefix" != NONE && 3007 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3008# Use a double $ so make ignores it. 3009test "$program_suffix" != NONE && 3010 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3011# Double any \ or $. 3012# By default was `s,x,x', remove it if useless. 3013ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3014program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3015 3016# Expand $ac_aux_dir to an absolute path. 3017am_aux_dir=`cd "$ac_aux_dir" && pwd` 3018 3019if test x"${MISSING+set}" != xset; then 3020 case $am_aux_dir in 3021 *\ * | *\ *) 3022 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3023 *) 3024 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3025 esac 3026fi 3027# Use eval to expand $SHELL 3028if eval "$MISSING --is-lightweight"; then 3029 am_missing_run="$MISSING " 3030else 3031 am_missing_run= 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3033$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3034fi 3035 3036if test x"${install_sh+set}" != xset; then 3037 case $am_aux_dir in 3038 *\ * | *\ *) 3039 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3040 *) 3041 install_sh="\${SHELL} $am_aux_dir/install-sh" 3042 esac 3043fi 3044 3045# Installed binaries are usually stripped using 'strip' when the user 3046# run "make install-strip". However 'strip' might not be the right 3047# tool to use in cross-compilation environments, therefore Automake 3048# will honor the 'STRIP' environment variable to overrule this program. 3049if test "$cross_compiling" != no; then 3050 if test -n "$ac_tool_prefix"; then 3051 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3052set dummy ${ac_tool_prefix}strip; ac_word=$2 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3054$as_echo_n "checking for $ac_word... " >&6; } 3055if ${ac_cv_prog_STRIP+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 if test -n "$STRIP"; then 3059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3060else 3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062for as_dir in $PATH 3063do 3064 IFS=$as_save_IFS 3065 test -z "$as_dir" && as_dir=. 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072done 3073 done 3074IFS=$as_save_IFS 3075 3076fi 3077fi 3078STRIP=$ac_cv_prog_STRIP 3079if test -n "$STRIP"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3081$as_echo "$STRIP" >&6; } 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085fi 3086 3087 3088fi 3089if test -z "$ac_cv_prog_STRIP"; then 3090 ac_ct_STRIP=$STRIP 3091 # Extract the first word of "strip", so it can be a program name with args. 3092set dummy strip; ac_word=$2 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094$as_echo_n "checking for $ac_word... " >&6; } 3095if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test -n "$ac_ct_STRIP"; then 3099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3100else 3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3102for as_dir in $PATH 3103do 3104 IFS=$as_save_IFS 3105 test -z "$as_dir" && as_dir=. 3106 for ac_exec_ext in '' $ac_executable_extensions; do 3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3108 ac_cv_prog_ac_ct_STRIP="strip" 3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3110 break 2 3111 fi 3112done 3113 done 3114IFS=$as_save_IFS 3115 3116fi 3117fi 3118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3119if test -n "$ac_ct_STRIP"; then 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3121$as_echo "$ac_ct_STRIP" >&6; } 3122else 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3124$as_echo "no" >&6; } 3125fi 3126 3127 if test "x$ac_ct_STRIP" = x; then 3128 STRIP=":" 3129 else 3130 case $cross_compiling:$ac_tool_warned in 3131yes:) 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3134ac_tool_warned=yes ;; 3135esac 3136 STRIP=$ac_ct_STRIP 3137 fi 3138else 3139 STRIP="$ac_cv_prog_STRIP" 3140fi 3141 3142fi 3143INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3144 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3146$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3147if test -z "$MKDIR_P"; then 3148 if ${ac_cv_path_mkdir+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_prog in mkdir gmkdir; do 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3159 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3160 'mkdir (GNU coreutils) '* | \ 3161 'mkdir (coreutils) '* | \ 3162 'mkdir (fileutils) '4.1*) 3163 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3164 break 3;; 3165 esac 3166 done 3167 done 3168 done 3169IFS=$as_save_IFS 3170 3171fi 3172 3173 test -d ./--version && rmdir ./--version 3174 if test "${ac_cv_path_mkdir+set}" = set; then 3175 MKDIR_P="$ac_cv_path_mkdir -p" 3176 else 3177 # As a last resort, use the slow shell script. Don't cache a 3178 # value for MKDIR_P within a source directory, because that will 3179 # break other packages using the cache if that directory is 3180 # removed, or if the value is a relative name. 3181 MKDIR_P="$ac_install_sh -d" 3182 fi 3183fi 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3185$as_echo "$MKDIR_P" >&6; } 3186 3187for ac_prog in gawk mawk nawk awk 3188do 3189 # Extract the first word of "$ac_prog", so it can be a program name with args. 3190set dummy $ac_prog; ac_word=$2 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3192$as_echo_n "checking for $ac_word... " >&6; } 3193if ${ac_cv_prog_AWK+:} false; then : 3194 $as_echo_n "(cached) " >&6 3195else 3196 if test -n "$AWK"; then 3197 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3198else 3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3200for as_dir in $PATH 3201do 3202 IFS=$as_save_IFS 3203 test -z "$as_dir" && as_dir=. 3204 for ac_exec_ext in '' $ac_executable_extensions; do 3205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3206 ac_cv_prog_AWK="$ac_prog" 3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3208 break 2 3209 fi 3210done 3211 done 3212IFS=$as_save_IFS 3213 3214fi 3215fi 3216AWK=$ac_cv_prog_AWK 3217if test -n "$AWK"; then 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3219$as_echo "$AWK" >&6; } 3220else 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222$as_echo "no" >&6; } 3223fi 3224 3225 3226 test -n "$AWK" && break 3227done 3228 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3230$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3231set x ${MAKE-make} 3232ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3233if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3234 $as_echo_n "(cached) " >&6 3235else 3236 cat >conftest.make <<\_ACEOF 3237SHELL = /bin/sh 3238all: 3239 @echo '@@@%%%=$(MAKE)=@@@%%%' 3240_ACEOF 3241# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3242case `${MAKE-make} -f conftest.make 2>/dev/null` in 3243 *@@@%%%=?*=@@@%%%*) 3244 eval ac_cv_prog_make_${ac_make}_set=yes;; 3245 *) 3246 eval ac_cv_prog_make_${ac_make}_set=no;; 3247esac 3248rm -f conftest.make 3249fi 3250if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3252$as_echo "yes" >&6; } 3253 SET_MAKE= 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257 SET_MAKE="MAKE=${MAKE-make}" 3258fi 3259 3260rm -rf .tst 2>/dev/null 3261mkdir .tst 2>/dev/null 3262if test -d .tst; then 3263 am__leading_dot=. 3264else 3265 am__leading_dot=_ 3266fi 3267rmdir .tst 2>/dev/null 3268 3269# Check whether --enable-silent-rules was given. 3270if test "${enable_silent_rules+set}" = set; then : 3271 enableval=$enable_silent_rules; 3272fi 3273 3274case $enable_silent_rules in # ((( 3275 yes) AM_DEFAULT_VERBOSITY=0;; 3276 no) AM_DEFAULT_VERBOSITY=1;; 3277 *) AM_DEFAULT_VERBOSITY=1;; 3278esac 3279am_make=${MAKE-make} 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3281$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3282if ${am_cv_make_support_nested_variables+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 if $as_echo 'TRUE=$(BAR$(V)) 3286BAR0=false 3287BAR1=true 3288V=1 3289am__doit: 3290 @$(TRUE) 3291.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3292 am_cv_make_support_nested_variables=yes 3293else 3294 am_cv_make_support_nested_variables=no 3295fi 3296fi 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3298$as_echo "$am_cv_make_support_nested_variables" >&6; } 3299if test $am_cv_make_support_nested_variables = yes; then 3300 AM_V='$(V)' 3301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3302else 3303 AM_V=$AM_DEFAULT_VERBOSITY 3304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3305fi 3306AM_BACKSLASH='\' 3307 3308if test "`cd $srcdir && pwd`" != "`pwd`"; then 3309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3310 # is not polluted with repeated "-I." 3311 am__isrc=' -I$(srcdir)' 3312 # test to see if srcdir already configured 3313 if test -f $srcdir/config.status; then 3314 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3315 fi 3316fi 3317 3318# test whether we have cygpath 3319if test -z "$CYGPATH_W"; then 3320 if (cygpath --version) >/dev/null 2>/dev/null; then 3321 CYGPATH_W='cygpath -w' 3322 else 3323 CYGPATH_W=echo 3324 fi 3325fi 3326 3327 3328# Define the identity of the package. 3329 PACKAGE='tiff' 3330 VERSION='4.0.4beta' 3331 3332 3333cat >>confdefs.h <<_ACEOF 3334#define PACKAGE "$PACKAGE" 3335_ACEOF 3336 3337 3338cat >>confdefs.h <<_ACEOF 3339#define VERSION "$VERSION" 3340_ACEOF 3341 3342# Some tools Automake needs. 3343 3344ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3345 3346 3347AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3348 3349 3350AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3351 3352 3353AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3354 3355 3356MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3357 3358# For better backward compatibility. To be removed once Automake 1.9.x 3359# dies out for good. For more background, see: 3360# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3361# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3362mkdir_p='$(MKDIR_P)' 3363 3364# We need awk for the "check" target (and possibly the TAP driver). The 3365# system "awk" is bad on some platforms. 3366# Always define AMTAR for backward compatibility. Yes, it's still used 3367# in the wild :-( We should find a proper way to deprecate it ... 3368AMTAR='$${TAR-tar}' 3369 3370 3371# We'll loop over all known methods to create a tar archive until one works. 3372_am_tools='gnutar pax cpio none' 3373 3374am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3375 3376 3377 3378 3379 3380 3381# POSIX will say in a future version that running "rm -f" with no argument 3382# is OK; and we want to be able to make that assumption in our Makefile 3383# recipes. So use an aggressive probe to check that the usage we want is 3384# actually supported "in the wild" to an acceptable degree. 3385# See automake bug#10828. 3386# To make any issue more visible, cause the running configure to be aborted 3387# by default if the 'rm' program in use doesn't match our expectations; the 3388# user can still override this though. 3389if rm -f && rm -fr && rm -rf; then : OK; else 3390 cat >&2 <<'END' 3391Oops! 3392 3393Your 'rm' program seems unable to run without file operands specified 3394on the command line, even when the '-f' option is present. This is contrary 3395to the behaviour of most rm programs out there, and not conforming with 3396the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3397 3398Please tell bug-automake@gnu.org about your system, including the value 3399of your $PATH and any error possibly output before this message. This 3400can help us improve future automake versions. 3401 3402END 3403 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3404 echo 'Configuration will proceed anyway, since you have set the' >&2 3405 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3406 echo >&2 3407 else 3408 cat >&2 <<'END' 3409Aborting the configuration process, to ensure you take notice of the issue. 3410 3411You can download and install GNU coreutils to get an 'rm' implementation 3412that behaves properly: <http://www.gnu.org/software/coreutils/>. 3413 3414If you want to complete the configuration process using your problematic 3415'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3416to "yes", and re-run configure. 3417 3418END 3419 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3420 fi 3421fi 3422 3423 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3425$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3426 # Check whether --enable-maintainer-mode was given. 3427if test "${enable_maintainer_mode+set}" = set; then : 3428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3429else 3430 USE_MAINTAINER_MODE=no 3431fi 3432 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3434$as_echo "$USE_MAINTAINER_MODE" >&6; } 3435 if test $USE_MAINTAINER_MODE = yes; then 3436 MAINTAINER_MODE_TRUE= 3437 MAINTAINER_MODE_FALSE='#' 3438else 3439 MAINTAINER_MODE_TRUE='#' 3440 MAINTAINER_MODE_FALSE= 3441fi 3442 3443 MAINT=$MAINTAINER_MODE_TRUE 3444 3445 3446 3447LIBTIFF_MAJOR_VERSION=4 3448LIBTIFF_MINOR_VERSION=0 3449LIBTIFF_MICRO_VERSION=4 3450LIBTIFF_ALPHA_VERSION=beta 3451LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3452LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3453 3454LIBTIFF_CURRENT=7 3455LIBTIFF_REVISION=1 3456LIBTIFF_AGE=2 3457LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3458 3459# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3460# in OpenBSD uses some special semantics for shared libraries. Their soname 3461# contains only two numbers, major and minor. 3462# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3463#case "$host_os" in 3464# openbsd* | mirbsd*) 3465# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3466# ;; 3467# *) 3468# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3469# ;; 3470#esac 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480ac_ext=c 3481ac_cpp='$CPP $CPPFLAGS' 3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3484ac_compiler_gnu=$ac_cv_c_compiler_gnu 3485if test -n "$ac_tool_prefix"; then 3486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3487set dummy ${ac_tool_prefix}gcc; ac_word=$2 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489$as_echo_n "checking for $ac_word... " >&6; } 3490if ${ac_cv_prog_CC+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 test -z "$as_dir" && as_dir=. 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3503 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511fi 3512fi 3513CC=$ac_cv_prog_CC 3514if test -n "$CC"; then 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3516$as_echo "$CC" >&6; } 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520fi 3521 3522 3523fi 3524if test -z "$ac_cv_prog_CC"; then 3525 ac_ct_CC=$CC 3526 # Extract the first word of "gcc", so it can be a program name with args. 3527set dummy gcc; ac_word=$2 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529$as_echo_n "checking for $ac_word... " >&6; } 3530if ${ac_cv_prog_ac_ct_CC+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 if test -n "$ac_ct_CC"; then 3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3543 ac_cv_prog_ac_ct_CC="gcc" 3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547done 3548 done 3549IFS=$as_save_IFS 3550 3551fi 3552fi 3553ac_ct_CC=$ac_cv_prog_ac_ct_CC 3554if test -n "$ac_ct_CC"; then 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3556$as_echo "$ac_ct_CC" >&6; } 3557else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559$as_echo "no" >&6; } 3560fi 3561 3562 if test "x$ac_ct_CC" = x; then 3563 CC="" 3564 else 3565 case $cross_compiling:$ac_tool_warned in 3566yes:) 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3569ac_tool_warned=yes ;; 3570esac 3571 CC=$ac_ct_CC 3572 fi 3573else 3574 CC="$ac_cv_prog_CC" 3575fi 3576 3577if test -z "$CC"; then 3578 if test -n "$ac_tool_prefix"; then 3579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3580set dummy ${ac_tool_prefix}cc; ac_word=$2 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3582$as_echo_n "checking for $ac_word... " >&6; } 3583if ${ac_cv_prog_CC+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 if test -n "$CC"; then 3587 ac_cv_prog_CC="$CC" # Let the user override the test. 3588else 3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3590for as_dir in $PATH 3591do 3592 IFS=$as_save_IFS 3593 test -z "$as_dir" && as_dir=. 3594 for ac_exec_ext in '' $ac_executable_extensions; do 3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3596 ac_cv_prog_CC="${ac_tool_prefix}cc" 3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3598 break 2 3599 fi 3600done 3601 done 3602IFS=$as_save_IFS 3603 3604fi 3605fi 3606CC=$ac_cv_prog_CC 3607if test -n "$CC"; then 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3609$as_echo "$CC" >&6; } 3610else 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3612$as_echo "no" >&6; } 3613fi 3614 3615 3616 fi 3617fi 3618if test -z "$CC"; then 3619 # Extract the first word of "cc", so it can be a program name with args. 3620set dummy cc; ac_word=$2 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3622$as_echo_n "checking for $ac_word... " >&6; } 3623if ${ac_cv_prog_CC+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 if test -n "$CC"; then 3627 ac_cv_prog_CC="$CC" # Let the user override the test. 3628else 3629 ac_prog_rejected=no 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3638 ac_prog_rejected=yes 3639 continue 3640 fi 3641 ac_cv_prog_CC="cc" 3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3643 break 2 3644 fi 3645done 3646 done 3647IFS=$as_save_IFS 3648 3649if test $ac_prog_rejected = yes; then 3650 # We found a bogon in the path, so make sure we never use it. 3651 set dummy $ac_cv_prog_CC 3652 shift 3653 if test $# != 0; then 3654 # We chose a different compiler from the bogus one. 3655 # However, it has the same basename, so the bogon will be chosen 3656 # first if we set CC to just the basename; use the full file name. 3657 shift 3658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3659 fi 3660fi 3661fi 3662fi 3663CC=$ac_cv_prog_CC 3664if test -n "$CC"; then 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3666$as_echo "$CC" >&6; } 3667else 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3669$as_echo "no" >&6; } 3670fi 3671 3672 3673fi 3674if test -z "$CC"; then 3675 if test -n "$ac_tool_prefix"; then 3676 for ac_prog in cl.exe 3677 do 3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681$as_echo_n "checking for $ac_word... " >&6; } 3682if ${ac_cv_prog_CC+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 if test -n "$CC"; then 3686 ac_cv_prog_CC="$CC" # Let the user override the test. 3687else 3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689for as_dir in $PATH 3690do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700 done 3701IFS=$as_save_IFS 3702 3703fi 3704fi 3705CC=$ac_cv_prog_CC 3706if test -n "$CC"; then 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3708$as_echo "$CC" >&6; } 3709else 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3711$as_echo "no" >&6; } 3712fi 3713 3714 3715 test -n "$CC" && break 3716 done 3717fi 3718if test -z "$CC"; then 3719 ac_ct_CC=$CC 3720 for ac_prog in cl.exe 3721do 3722 # Extract the first word of "$ac_prog", so it can be a program name with args. 3723set dummy $ac_prog; ac_word=$2 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3725$as_echo_n "checking for $ac_word... " >&6; } 3726if ${ac_cv_prog_ac_ct_CC+:} false; then : 3727 $as_echo_n "(cached) " >&6 3728else 3729 if test -n "$ac_ct_CC"; then 3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3731else 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH 3734do 3735 IFS=$as_save_IFS 3736 test -z "$as_dir" && as_dir=. 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3739 ac_cv_prog_ac_ct_CC="$ac_prog" 3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3741 break 2 3742 fi 3743done 3744 done 3745IFS=$as_save_IFS 3746 3747fi 3748fi 3749ac_ct_CC=$ac_cv_prog_ac_ct_CC 3750if test -n "$ac_ct_CC"; then 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3752$as_echo "$ac_ct_CC" >&6; } 3753else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755$as_echo "no" >&6; } 3756fi 3757 3758 3759 test -n "$ac_ct_CC" && break 3760done 3761 3762 if test "x$ac_ct_CC" = x; then 3763 CC="" 3764 else 3765 case $cross_compiling:$ac_tool_warned in 3766yes:) 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3769ac_tool_warned=yes ;; 3770esac 3771 CC=$ac_ct_CC 3772 fi 3773fi 3774 3775fi 3776 3777 3778test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3780as_fn_error $? "no acceptable C compiler found in \$PATH 3781See \`config.log' for more details" "$LINENO" 5; } 3782 3783# Provide some information about the compiler. 3784$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3785set X $ac_compile 3786ac_compiler=$2 3787for ac_option in --version -v -V -qversion; do 3788 { { ac_try="$ac_compiler $ac_option >&5" 3789case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792esac 3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3794$as_echo "$ac_try_echo"; } >&5 3795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3796 ac_status=$? 3797 if test -s conftest.err; then 3798 sed '10a\ 3799... rest of stderr output deleted ... 3800 10q' conftest.err >conftest.er1 3801 cat conftest.er1 >&5 3802 fi 3803 rm -f conftest.er1 conftest.err 3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3805 test $ac_status = 0; } 3806done 3807 3808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809/* end confdefs.h. */ 3810 3811int 3812main () 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819ac_clean_files_save=$ac_clean_files 3820ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3821# Try to create an executable without -o first, disregard a.out. 3822# It will help us diagnose broken compilers, and finding out an intuition 3823# of exeext. 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3825$as_echo_n "checking whether the C compiler works... " >&6; } 3826ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3827 3828# The possible output files: 3829ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3830 3831ac_rmfiles= 3832for ac_file in $ac_files 3833do 3834 case $ac_file in 3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3836 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3837 esac 3838done 3839rm -f $ac_rmfiles 3840 3841if { { ac_try="$ac_link_default" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847$as_echo "$ac_try_echo"; } >&5 3848 (eval "$ac_link_default") 2>&5 3849 ac_status=$? 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; }; then : 3852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3854# in a Makefile. We should not override ac_cv_exeext if it was cached, 3855# so that the user can short-circuit this test for compilers unknown to 3856# Autoconf. 3857for ac_file in $ac_files '' 3858do 3859 test -f "$ac_file" || continue 3860 case $ac_file in 3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3862 ;; 3863 [ab].out ) 3864 # We found the default executable, but exeext='' is most 3865 # certainly right. 3866 break;; 3867 *.* ) 3868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3869 then :; else 3870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3871 fi 3872 # We set ac_cv_exeext here because the later test for it is not 3873 # safe: cross compilers may not add the suffix if given an `-o' 3874 # argument, so we may need to know it at that point already. 3875 # Even if this section looks crufty: it has the advantage of 3876 # actually working. 3877 break;; 3878 * ) 3879 break;; 3880 esac 3881done 3882test "$ac_cv_exeext" = no && ac_cv_exeext= 3883 3884else 3885 ac_file='' 3886fi 3887if test -z "$ac_file"; then : 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889$as_echo "no" >&6; } 3890$as_echo "$as_me: failed program was:" >&5 3891sed 's/^/| /' conftest.$ac_ext >&5 3892 3893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895as_fn_error 77 "C compiler cannot create executables 3896See \`config.log' for more details" "$LINENO" 5; } 3897else 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3899$as_echo "yes" >&6; } 3900fi 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3902$as_echo_n "checking for C compiler default output file name... " >&6; } 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3904$as_echo "$ac_file" >&6; } 3905ac_exeext=$ac_cv_exeext 3906 3907rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3908ac_clean_files=$ac_clean_files_save 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3910$as_echo_n "checking for suffix of executables... " >&6; } 3911if { { ac_try="$ac_link" 3912case "(($ac_try" in 3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3914 *) ac_try_echo=$ac_try;; 3915esac 3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3917$as_echo "$ac_try_echo"; } >&5 3918 (eval "$ac_link") 2>&5 3919 ac_status=$? 3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3921 test $ac_status = 0; }; then : 3922 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3924# work properly (i.e., refer to `conftest.exe'), while it won't with 3925# `rm'. 3926for ac_file in conftest.exe conftest conftest.*; do 3927 test -f "$ac_file" || continue 3928 case $ac_file in 3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3931 break;; 3932 * ) break;; 3933 esac 3934done 3935else 3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3939See \`config.log' for more details" "$LINENO" 5; } 3940fi 3941rm -f conftest conftest$ac_cv_exeext 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3943$as_echo "$ac_cv_exeext" >&6; } 3944 3945rm -f conftest.$ac_ext 3946EXEEXT=$ac_cv_exeext 3947ac_exeext=$EXEEXT 3948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950#include <stdio.h> 3951int 3952main () 3953{ 3954FILE *f = fopen ("conftest.out", "w"); 3955 return ferror (f) || fclose (f) != 0; 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961ac_clean_files="$ac_clean_files conftest.out" 3962# Check that the compiler produces executables we can run. If not, either 3963# the compiler is broken, or we cross compile. 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3965$as_echo_n "checking whether we are cross compiling... " >&6; } 3966if test "$cross_compiling" != yes; then 3967 { { ac_try="$ac_link" 3968case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973$as_echo "$ac_try_echo"; } >&5 3974 (eval "$ac_link") 2>&5 3975 ac_status=$? 3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; } 3978 if { ac_try='./conftest$ac_cv_exeext' 3979 { { case "(($ac_try" in 3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981 *) ac_try_echo=$ac_try;; 3982esac 3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3984$as_echo "$ac_try_echo"; } >&5 3985 (eval "$ac_try") 2>&5 3986 ac_status=$? 3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3988 test $ac_status = 0; }; }; then 3989 cross_compiling=no 3990 else 3991 if test "$cross_compiling" = maybe; then 3992 cross_compiling=yes 3993 else 3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996as_fn_error $? "cannot run C compiled programs. 3997If you meant to cross compile, use \`--host'. 3998See \`config.log' for more details" "$LINENO" 5; } 3999 fi 4000 fi 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4003$as_echo "$cross_compiling" >&6; } 4004 4005rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4006ac_clean_files=$ac_clean_files_save 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4008$as_echo_n "checking for suffix of object files... " >&6; } 4009if ${ac_cv_objext+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main () 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023rm -f conftest.o conftest.obj 4024if { { ac_try="$ac_compile" 4025case "(($ac_try" in 4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4027 *) ac_try_echo=$ac_try;; 4028esac 4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4030$as_echo "$ac_try_echo"; } >&5 4031 (eval "$ac_compile") 2>&5 4032 ac_status=$? 4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4034 test $ac_status = 0; }; then : 4035 for ac_file in conftest.o conftest.obj conftest.*; do 4036 test -f "$ac_file" || continue; 4037 case $ac_file in 4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4040 break;; 4041 esac 4042done 4043else 4044 $as_echo "$as_me: failed program was:" >&5 4045sed 's/^/| /' conftest.$ac_ext >&5 4046 4047{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4049as_fn_error $? "cannot compute suffix of object files: cannot compile 4050See \`config.log' for more details" "$LINENO" 5; } 4051fi 4052rm -f conftest.$ac_cv_objext conftest.$ac_ext 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4055$as_echo "$ac_cv_objext" >&6; } 4056OBJEXT=$ac_cv_objext 4057ac_objext=$OBJEXT 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4059$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4060if ${ac_cv_c_compiler_gnu+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065 4066int 4067main () 4068{ 4069#ifndef __GNUC__ 4070 choke me 4071#endif 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077if ac_fn_c_try_compile "$LINENO"; then : 4078 ac_compiler_gnu=yes 4079else 4080 ac_compiler_gnu=no 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083ac_cv_c_compiler_gnu=$ac_compiler_gnu 4084 4085fi 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4087$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4088if test $ac_compiler_gnu = yes; then 4089 GCC=yes 4090else 4091 GCC= 4092fi 4093ac_test_CFLAGS=${CFLAGS+set} 4094ac_save_CFLAGS=$CFLAGS 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4096$as_echo_n "checking whether $CC accepts -g... " >&6; } 4097if ${ac_cv_prog_cc_g+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 ac_save_c_werror_flag=$ac_c_werror_flag 4101 ac_c_werror_flag=yes 4102 ac_cv_prog_cc_g=no 4103 CFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main () 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_compile "$LINENO"; then : 4116 ac_cv_prog_cc_g=yes 4117else 4118 CFLAGS="" 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121 4122int 4123main () 4124{ 4125 4126 ; 4127 return 0; 4128} 4129_ACEOF 4130if ac_fn_c_try_compile "$LINENO"; then : 4131 4132else 4133 ac_c_werror_flag=$ac_save_c_werror_flag 4134 CFLAGS="-g" 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_prog_cc_g=yes 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150fi 4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152fi 4153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4154 ac_c_werror_flag=$ac_save_c_werror_flag 4155fi 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4157$as_echo "$ac_cv_prog_cc_g" >&6; } 4158if test "$ac_test_CFLAGS" = set; then 4159 CFLAGS=$ac_save_CFLAGS 4160elif test $ac_cv_prog_cc_g = yes; then 4161 if test "$GCC" = yes; then 4162 CFLAGS="-g -O2" 4163 else 4164 CFLAGS="-g" 4165 fi 4166else 4167 if test "$GCC" = yes; then 4168 CFLAGS="-O2" 4169 else 4170 CFLAGS= 4171 fi 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4174$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4175if ${ac_cv_prog_cc_c89+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 ac_cv_prog_cc_c89=no 4179ac_save_CC=$CC 4180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <stdarg.h> 4183#include <stdio.h> 4184struct stat; 4185/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4186struct buf { int x; }; 4187FILE * (*rcsopen) (struct buf *, struct stat *, int); 4188static char *e (p, i) 4189 char **p; 4190 int i; 4191{ 4192 return p[i]; 4193} 4194static char *f (char * (*g) (char **, int), char **p, ...) 4195{ 4196 char *s; 4197 va_list v; 4198 va_start (v,p); 4199 s = g (p, va_arg (v,int)); 4200 va_end (v); 4201 return s; 4202} 4203 4204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4205 function prototypes and stuff, but not '\xHH' hex character constants. 4206 These don't provoke an error unfortunately, instead are silently treated 4207 as 'x'. The following induces an error, until -std is added to get 4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4209 array size at least. It's necessary to write '\x00'==0 to get something 4210 that's true only with -std. */ 4211int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4212 4213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4214 inside strings and character constants. */ 4215#define FOO(x) 'x' 4216int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4217 4218int test (int i, double x); 4219struct s1 {int (*f) (int a);}; 4220struct s2 {int (*f) (double a);}; 4221int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4222int argc; 4223char **argv; 4224int 4225main () 4226{ 4227return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4234do 4235 CC="$ac_save_CC $ac_arg" 4236 if ac_fn_c_try_compile "$LINENO"; then : 4237 ac_cv_prog_cc_c89=$ac_arg 4238fi 4239rm -f core conftest.err conftest.$ac_objext 4240 test "x$ac_cv_prog_cc_c89" != "xno" && break 4241done 4242rm -f conftest.$ac_ext 4243CC=$ac_save_CC 4244 4245fi 4246# AC_CACHE_VAL 4247case "x$ac_cv_prog_cc_c89" in 4248 x) 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4250$as_echo "none needed" >&6; } ;; 4251 xno) 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4253$as_echo "unsupported" >&6; } ;; 4254 *) 4255 CC="$CC $ac_cv_prog_cc_c89" 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4257$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4258esac 4259if test "x$ac_cv_prog_cc_c89" != xno; then : 4260 4261fi 4262 4263ac_ext=c 4264ac_cpp='$CPP $CPPFLAGS' 4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4267ac_compiler_gnu=$ac_cv_c_compiler_gnu 4268 4269ac_ext=c 4270ac_cpp='$CPP $CPPFLAGS' 4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4273ac_compiler_gnu=$ac_cv_c_compiler_gnu 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4275$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4276if ${am_cv_prog_cc_c_o+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281 4282int 4283main () 4284{ 4285 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290 # Make sure it works both with $CC and with simple cc. 4291 # Following AC_PROG_CC_C_O, we do the test twice because some 4292 # compilers refuse to overwrite an existing .o file with -o, 4293 # though they will create one. 4294 am_cv_prog_cc_c_o=yes 4295 for am_i in 1 2; do 4296 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4297 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); } \ 4301 && test -f conftest2.$ac_objext; then 4302 : OK 4303 else 4304 am_cv_prog_cc_c_o=no 4305 break 4306 fi 4307 done 4308 rm -f core conftest* 4309 unset am_i 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4312$as_echo "$am_cv_prog_cc_c_o" >&6; } 4313if test "$am_cv_prog_cc_c_o" != yes; then 4314 # Losing compiler, so override with the script. 4315 # FIXME: It is wrong to rewrite CC. 4316 # But if we don't then we get into trouble of one sort or another. 4317 # A longer-term fix would be to have automake use am__CC in this case, 4318 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4319 CC="$am_aux_dir/compile $CC" 4320fi 4321ac_ext=c 4322ac_cpp='$CPP $CPPFLAGS' 4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4325ac_compiler_gnu=$ac_cv_c_compiler_gnu 4326 4327DEPDIR="${am__leading_dot}deps" 4328 4329ac_config_commands="$ac_config_commands depfiles" 4330 4331 4332am_make=${MAKE-make} 4333cat > confinc << 'END' 4334am__doit: 4335 @echo this is the am__doit target 4336.PHONY: am__doit 4337END 4338# If we don't find an include directive, just comment out the code. 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4340$as_echo_n "checking for style of include used by $am_make... " >&6; } 4341am__include="#" 4342am__quote= 4343_am_result=none 4344# First try GNU make style include. 4345echo "include confinc" > confmf 4346# Ignore all kinds of additional output from 'make'. 4347case `$am_make -s -f confmf 2> /dev/null` in #( 4348*the\ am__doit\ target*) 4349 am__include=include 4350 am__quote= 4351 _am_result=GNU 4352 ;; 4353esac 4354# Now try BSD make style include. 4355if test "$am__include" = "#"; then 4356 echo '.include "confinc"' > confmf 4357 case `$am_make -s -f confmf 2> /dev/null` in #( 4358 *the\ am__doit\ target*) 4359 am__include=.include 4360 am__quote="\"" 4361 _am_result=BSD 4362 ;; 4363 esac 4364fi 4365 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4368$as_echo "$_am_result" >&6; } 4369rm -f confinc confmf 4370 4371# Check whether --enable-dependency-tracking was given. 4372if test "${enable_dependency_tracking+set}" = set; then : 4373 enableval=$enable_dependency_tracking; 4374fi 4375 4376if test "x$enable_dependency_tracking" != xno; then 4377 am_depcomp="$ac_aux_dir/depcomp" 4378 AMDEPBACKSLASH='\' 4379 am__nodep='_no' 4380fi 4381 if test "x$enable_dependency_tracking" != xno; then 4382 AMDEP_TRUE= 4383 AMDEP_FALSE='#' 4384else 4385 AMDEP_TRUE='#' 4386 AMDEP_FALSE= 4387fi 4388 4389 4390 4391depcc="$CC" am_compiler_list= 4392 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4394$as_echo_n "checking dependency style of $depcc... " >&6; } 4395if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4399 # We make a subdir and do the tests there. Otherwise we can end up 4400 # making bogus files that we don't know about and never remove. For 4401 # instance it was reported that on HP-UX the gcc test will end up 4402 # making a dummy file named 'D' -- because '-MD' means "put the output 4403 # in D". 4404 rm -rf conftest.dir 4405 mkdir conftest.dir 4406 # Copy depcomp to subdir because otherwise we won't find it if we're 4407 # using a relative directory. 4408 cp "$am_depcomp" conftest.dir 4409 cd conftest.dir 4410 # We will build objects and dependencies in a subdirectory because 4411 # it helps to detect inapplicable dependency modes. For instance 4412 # both Tru64's cc and ICC support -MD to output dependencies as a 4413 # side effect of compilation, but ICC will put the dependencies in 4414 # the current directory while Tru64 will put them in the object 4415 # directory. 4416 mkdir sub 4417 4418 am_cv_CC_dependencies_compiler_type=none 4419 if test "$am_compiler_list" = ""; then 4420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4421 fi 4422 am__universal=false 4423 case " $depcc " in #( 4424 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4425 esac 4426 4427 for depmode in $am_compiler_list; do 4428 # Setup a source with many dependencies, because some compilers 4429 # like to wrap large dependency lists on column 80 (with \), and 4430 # we should not choose a depcomp mode which is confused by this. 4431 # 4432 # We need to recreate these files for each test, as the compiler may 4433 # overwrite some of them when testing with obscure command lines. 4434 # This happens at least with the AIX C compiler. 4435 : > sub/conftest.c 4436 for i in 1 2 3 4 5 6; do 4437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4438 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4439 # Solaris 10 /bin/sh. 4440 echo '/* dummy */' > sub/conftst$i.h 4441 done 4442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4443 4444 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4445 # mode. It turns out that the SunPro C++ compiler does not properly 4446 # handle '-M -o', and we need to detect this. Also, some Intel 4447 # versions had trouble with output in subdirs. 4448 am__obj=sub/conftest.${OBJEXT-o} 4449 am__minus_obj="-o $am__obj" 4450 case $depmode in 4451 gcc) 4452 # This depmode causes a compiler race in universal mode. 4453 test "$am__universal" = false || continue 4454 ;; 4455 nosideeffect) 4456 # After this tag, mechanisms are not by side-effect, so they'll 4457 # only be used when explicitly requested. 4458 if test "x$enable_dependency_tracking" = xyes; then 4459 continue 4460 else 4461 break 4462 fi 4463 ;; 4464 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4465 # This compiler won't grok '-c -o', but also, the minuso test has 4466 # not run yet. These depmodes are late enough in the game, and 4467 # so weak that their functioning should not be impacted. 4468 am__obj=conftest.${OBJEXT-o} 4469 am__minus_obj= 4470 ;; 4471 none) break ;; 4472 esac 4473 if depmode=$depmode \ 4474 source=sub/conftest.c object=$am__obj \ 4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4477 >/dev/null 2>conftest.err && 4478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4482 # icc doesn't choke on unknown options, it will just issue warnings 4483 # or remarks (even with -Werror). So we grep stderr for any message 4484 # that says an option was ignored or not supported. 4485 # When given -MP, icc 7.0 and 7.1 complain thusly: 4486 # icc: Command line warning: ignoring option '-M'; no argument required 4487 # The diagnosis changed in icc 8.0: 4488 # icc: Command line remark: option '-MP' not supported 4489 if (grep 'ignoring option' conftest.err || 4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4491 am_cv_CC_dependencies_compiler_type=$depmode 4492 break 4493 fi 4494 fi 4495 done 4496 4497 cd .. 4498 rm -rf conftest.dir 4499else 4500 am_cv_CC_dependencies_compiler_type=none 4501fi 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4505$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4506CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4507 4508 if 4509 test "x$enable_dependency_tracking" != xno \ 4510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4511 am__fastdepCC_TRUE= 4512 am__fastdepCC_FALSE='#' 4513else 4514 am__fastdepCC_TRUE='#' 4515 am__fastdepCC_FALSE= 4516fi 4517 4518 4519 4520 4521 4522 ansi= 4523 if test -z "$ansi"; then 4524 msg="for C compiler warning flags" 4525 else 4526 msg="for C compiler warning and ANSI conformance flags" 4527 fi 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4529$as_echo_n "checking $msg... " >&6; } 4530if ${vl_cv_prog_cc_warnings+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 4534 if test -n "$CC"; then 4535 cat > conftest.c <<EOF 4536int main(int argc, char **argv) { return 0; } 4537EOF 4538 4539 if test "$GCC" = "yes"; then 4540 if test -z "$ansi"; then 4541 vl_cv_prog_cc_warnings="-Wall -W" 4542 else 4543 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4544 fi 4545 4546 4547 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4548 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4549 test -f conftest.o; then 4550 if test -z "$ansi"; then 4551 vl_cv_prog_cc_warnings="-v" 4552 else 4553 vl_cv_prog_cc_warnings="-v -Xc" 4554 fi 4555 4556 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4557 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4558 test -f conftest.o; then 4559 if test -z "$ansi"; then 4560 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4561 else 4562 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4563 fi 4564 4565 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4566 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4567 test -f conftest.o; then 4568 if test -z "$ansi"; then 4569 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4570 else 4571 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4572 fi 4573 4574 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4575 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4576 test -f conftest.o; then 4577 if test -z "$ansi"; then 4578 vl_cv_prog_cc_warnings="-fullwarn" 4579 else 4580 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4581 fi 4582 4583 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4584 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4585 test -f conftest.o; then 4586 if test -z "$ansi"; then 4587 vl_cv_prog_cc_warnings="+w1" 4588 else 4589 vl_cv_prog_cc_warnings="+w1 -Aa" 4590 fi 4591 4592 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4593 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4594 test -f conftest.o; then 4595 if test -z "$ansi"; then 4596 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4597 else 4598 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4599 fi 4600 4601 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4602 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4603 test -f conftest.o; then 4604 if test -z "$ansi"; then 4605 vl_cv_prog_cc_warnings="-h msglevel 2" 4606 else 4607 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4608 fi 4609 4610 fi 4611 rm -f conftest.* 4612 fi 4613 if test -n "$vl_cv_prog_cc_warnings"; then 4614 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4615 else 4616 vl_cv_prog_cc_warnings="unknown" 4617 fi 4618 4619fi 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4621$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4622 4623 4624 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4626$as_echo_n "checking whether ln -s works... " >&6; } 4627LN_S=$as_ln_s 4628if test "$LN_S" = "ln -s"; then 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4630$as_echo "yes" >&6; } 4631else 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4633$as_echo "no, using $LN_S" >&6; } 4634fi 4635 4636 4637 4638# Check if LD supports linker scripts, and define automake conditional 4639# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 4640# constrained to compilers using GNU ld on ELF systems or systems 4641# which provide an adequate emulation thereof. 4642# Check whether --enable-ld-version-script was given. 4643if test "${enable_ld_version_script+set}" = set; then : 4644 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4645else 4646 have_ld_version_script=no 4647fi 4648 4649if test "$have_ld_version_script" != no; then 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4651$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4652 save_LDFLAGS="$LDFLAGS" 4653 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4654 cat > conftest.map <<EOF 4655VERS_1 { 4656 global: sym; 4657}; 4658 4659VERS_2 { 4660 global: sym; 4661} VERS_1; 4662EOF 4663 4664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666 4667int 4668main () 4669{ 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_link "$LINENO"; then : 4676 have_ld_version_script=yes 4677else 4678 have_ld_version_script=no 4679fi 4680rm -f core conftest.err conftest.$ac_objext \ 4681 conftest$ac_exeext conftest.$ac_ext 4682 rm -f conftest.map 4683 LDFLAGS="$save_LDFLAGS" 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4685$as_echo "$have_ld_version_script" >&6; } 4686fi 4687 if test "$have_ld_version_script" = "yes"; then 4688 HAVE_LD_VERSION_SCRIPT_TRUE= 4689 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4690else 4691 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4692 HAVE_LD_VERSION_SCRIPT_FALSE= 4693fi 4694 4695 4696 4697 4698 4699 4700case `pwd` in 4701 *\ * | *\ *) 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4703$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4704esac 4705 4706 4707 4708macro_version='2.4.4' 4709macro_revision='2.4.4' 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723ltmain=$ac_aux_dir/ltmain.sh 4724 4725# Backslashify metacharacters that are still active within 4726# double-quoted strings. 4727sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4728 4729# Same as above, but do not quote variable references. 4730double_quote_subst='s/\(["`\\]\)/\\\1/g' 4731 4732# Sed substitution to delay expansion of an escaped shell variable in a 4733# double_quote_subst'ed string. 4734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4735 4736# Sed substitution to delay expansion of an escaped single quote. 4737delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4738 4739# Sed substitution to avoid accidental globbing in evaled expressions 4740no_glob_subst='s/\*/\\\*/g' 4741 4742ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4743ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4747$as_echo_n "checking how to print strings... " >&6; } 4748# Test print first, because it will be a builtin if present. 4749if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4750 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4751 ECHO='print -r --' 4752elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4753 ECHO='printf %s\n' 4754else 4755 # Use this function as a fallback that always works. 4756 func_fallback_echo () 4757 { 4758 eval 'cat <<_LTECHO_EOF 4759$1 4760_LTECHO_EOF' 4761 } 4762 ECHO='func_fallback_echo' 4763fi 4764 4765# func_echo_all arg... 4766# Invoke $ECHO with all args, space-separated. 4767func_echo_all () 4768{ 4769 $ECHO "" 4770} 4771 4772case $ECHO in 4773 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4774$as_echo "printf" >&6; } ;; 4775 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4776$as_echo "print -r" >&6; } ;; 4777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4778$as_echo "cat" >&6; } ;; 4779esac 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4795$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4796if ${ac_cv_path_SED+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798else 4799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4800 for ac_i in 1 2 3 4 5 6 7; do 4801 ac_script="$ac_script$as_nl$ac_script" 4802 done 4803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4804 { ac_script=; unset ac_script;} 4805 if test -z "$SED"; then 4806 ac_path_SED_found=false 4807 # Loop through the user's path and test for each of PROGNAME-LIST 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_prog in sed gsed; do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_SED" || continue 4817# Check for GNU ac_path_SED and select it if it is found. 4818 # Check for GNU $ac_path_SED 4819case `"$ac_path_SED" --version 2>&1` in 4820*GNU*) 4821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4822*) 4823 ac_count=0 4824 $as_echo_n 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 $as_echo '' >> "conftest.nl" 4831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_SED_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_SED="$ac_path_SED" 4837 ac_path_SED_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843esac 4844 4845 $ac_path_SED_found && break 3 4846 done 4847 done 4848 done 4849IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_SED"; then 4851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4852 fi 4853else 4854 ac_cv_path_SED=$SED 4855fi 4856 4857fi 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4859$as_echo "$ac_cv_path_SED" >&6; } 4860 SED="$ac_cv_path_SED" 4861 rm -f conftest.sed 4862 4863test -z "$SED" && SED=sed 4864Xsed="$SED -e 1s/^X//" 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4877$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4878if ${ac_cv_path_GREP+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 if test -z "$GREP"; then 4882 ac_path_GREP_found=false 4883 # Loop through the user's path and test for each of PROGNAME-LIST 4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4886do 4887 IFS=$as_save_IFS 4888 test -z "$as_dir" && as_dir=. 4889 for ac_prog in grep ggrep; do 4890 for ac_exec_ext in '' $ac_executable_extensions; do 4891 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4892 as_fn_executable_p "$ac_path_GREP" || continue 4893# Check for GNU ac_path_GREP and select it if it is found. 4894 # Check for GNU $ac_path_GREP 4895case `"$ac_path_GREP" --version 2>&1` in 4896*GNU*) 4897 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4898*) 4899 ac_count=0 4900 $as_echo_n 0123456789 >"conftest.in" 4901 while : 4902 do 4903 cat "conftest.in" "conftest.in" >"conftest.tmp" 4904 mv "conftest.tmp" "conftest.in" 4905 cp "conftest.in" "conftest.nl" 4906 $as_echo 'GREP' >> "conftest.nl" 4907 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4909 as_fn_arith $ac_count + 1 && ac_count=$as_val 4910 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4911 # Best one so far, save it but keep looking for a better one 4912 ac_cv_path_GREP="$ac_path_GREP" 4913 ac_path_GREP_max=$ac_count 4914 fi 4915 # 10*(2^10) chars as input seems more than enough 4916 test $ac_count -gt 10 && break 4917 done 4918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4919esac 4920 4921 $ac_path_GREP_found && break 3 4922 done 4923 done 4924 done 4925IFS=$as_save_IFS 4926 if test -z "$ac_cv_path_GREP"; then 4927 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4928 fi 4929else 4930 ac_cv_path_GREP=$GREP 4931fi 4932 4933fi 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4935$as_echo "$ac_cv_path_GREP" >&6; } 4936 GREP="$ac_cv_path_GREP" 4937 4938 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4940$as_echo_n "checking for egrep... " >&6; } 4941if ${ac_cv_path_EGREP+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4945 then ac_cv_path_EGREP="$GREP -E" 4946 else 4947 if test -z "$EGREP"; then 4948 ac_path_EGREP_found=false 4949 # Loop through the user's path and test for each of PROGNAME-LIST 4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4952do 4953 IFS=$as_save_IFS 4954 test -z "$as_dir" && as_dir=. 4955 for ac_prog in egrep; do 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4958 as_fn_executable_p "$ac_path_EGREP" || continue 4959# Check for GNU ac_path_EGREP and select it if it is found. 4960 # Check for GNU $ac_path_EGREP 4961case `"$ac_path_EGREP" --version 2>&1` in 4962*GNU*) 4963 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4964*) 4965 ac_count=0 4966 $as_echo_n 0123456789 >"conftest.in" 4967 while : 4968 do 4969 cat "conftest.in" "conftest.in" >"conftest.tmp" 4970 mv "conftest.tmp" "conftest.in" 4971 cp "conftest.in" "conftest.nl" 4972 $as_echo 'EGREP' >> "conftest.nl" 4973 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4975 as_fn_arith $ac_count + 1 && ac_count=$as_val 4976 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4977 # Best one so far, save it but keep looking for a better one 4978 ac_cv_path_EGREP="$ac_path_EGREP" 4979 ac_path_EGREP_max=$ac_count 4980 fi 4981 # 10*(2^10) chars as input seems more than enough 4982 test $ac_count -gt 10 && break 4983 done 4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4985esac 4986 4987 $ac_path_EGREP_found && break 3 4988 done 4989 done 4990 done 4991IFS=$as_save_IFS 4992 if test -z "$ac_cv_path_EGREP"; then 4993 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4994 fi 4995else 4996 ac_cv_path_EGREP=$EGREP 4997fi 4998 4999 fi 5000fi 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5002$as_echo "$ac_cv_path_EGREP" >&6; } 5003 EGREP="$ac_cv_path_EGREP" 5004 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5007$as_echo_n "checking for fgrep... " >&6; } 5008if ${ac_cv_path_FGREP+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5012 then ac_cv_path_FGREP="$GREP -F" 5013 else 5014 if test -z "$FGREP"; then 5015 ac_path_FGREP_found=false 5016 # Loop through the user's path and test for each of PROGNAME-LIST 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_prog in fgrep; do 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5025 as_fn_executable_p "$ac_path_FGREP" || continue 5026# Check for GNU ac_path_FGREP and select it if it is found. 5027 # Check for GNU $ac_path_FGREP 5028case `"$ac_path_FGREP" --version 2>&1` in 5029*GNU*) 5030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5031*) 5032 ac_count=0 5033 $as_echo_n 0123456789 >"conftest.in" 5034 while : 5035 do 5036 cat "conftest.in" "conftest.in" >"conftest.tmp" 5037 mv "conftest.tmp" "conftest.in" 5038 cp "conftest.in" "conftest.nl" 5039 $as_echo 'FGREP' >> "conftest.nl" 5040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5042 as_fn_arith $ac_count + 1 && ac_count=$as_val 5043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5044 # Best one so far, save it but keep looking for a better one 5045 ac_cv_path_FGREP="$ac_path_FGREP" 5046 ac_path_FGREP_max=$ac_count 5047 fi 5048 # 10*(2^10) chars as input seems more than enough 5049 test $ac_count -gt 10 && break 5050 done 5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5052esac 5053 5054 $ac_path_FGREP_found && break 3 5055 done 5056 done 5057 done 5058IFS=$as_save_IFS 5059 if test -z "$ac_cv_path_FGREP"; then 5060 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5061 fi 5062else 5063 ac_cv_path_FGREP=$FGREP 5064fi 5065 5066 fi 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5069$as_echo "$ac_cv_path_FGREP" >&6; } 5070 FGREP="$ac_cv_path_FGREP" 5071 5072 5073test -z "$GREP" && GREP=grep 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093# Check whether --with-gnu-ld was given. 5094if test "${with_gnu_ld+set}" = set; then : 5095 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5096else 5097 with_gnu_ld=no 5098fi 5099 5100ac_prog=ld 5101if test yes = "$GCC"; then 5102 # Check if gcc -print-prog-name=ld gives a path. 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5104$as_echo_n "checking for ld used by $CC... " >&6; } 5105 case $host in 5106 *-*-mingw*) 5107 # gcc leaves a trailing carriage return, which upsets mingw 5108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5109 *) 5110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5111 esac 5112 case $ac_prog in 5113 # Accept absolute paths. 5114 [\\/]* | ?:[\\/]*) 5115 re_direlt='/[^/][^/]*/\.\./' 5116 # Canonicalize the pathname of ld 5117 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5118 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5119 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5120 done 5121 test -z "$LD" && LD=$ac_prog 5122 ;; 5123 "") 5124 # If it fails, then pretend we aren't using GCC. 5125 ac_prog=ld 5126 ;; 5127 *) 5128 # If it is relative, then search for the first ld in PATH. 5129 with_gnu_ld=unknown 5130 ;; 5131 esac 5132elif test yes = "$with_gnu_ld"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5134$as_echo_n "checking for GNU ld... " >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5137$as_echo_n "checking for non-GNU ld... " >&6; } 5138fi 5139if ${lt_cv_path_LD+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 if test -z "$LD"; then 5143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5144 for ac_dir in $PATH; do 5145 IFS=$lt_save_ifs 5146 test -z "$ac_dir" && ac_dir=. 5147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5148 lt_cv_path_LD=$ac_dir/$ac_prog 5149 # Check to see if the program is GNU ld. I'd rather use --version, 5150 # but apparently some variants of GNU ld only accept -v. 5151 # Break only if it was the GNU/non-GNU ld that we prefer. 5152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5153 *GNU* | *'with BFD'*) 5154 test no != "$with_gnu_ld" && break 5155 ;; 5156 *) 5157 test yes != "$with_gnu_ld" && break 5158 ;; 5159 esac 5160 fi 5161 done 5162 IFS=$lt_save_ifs 5163else 5164 lt_cv_path_LD=$LD # Let the user override the test with a path. 5165fi 5166fi 5167 5168LD=$lt_cv_path_LD 5169if test -n "$LD"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5171$as_echo "$LD" >&6; } 5172else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5179if ${lt_cv_prog_gnu_ld+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5183case `$LD -v 2>&1 </dev/null` in 5184*GNU* | *'with BFD'*) 5185 lt_cv_prog_gnu_ld=yes 5186 ;; 5187*) 5188 lt_cv_prog_gnu_ld=no 5189 ;; 5190esac 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5193$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5194with_gnu_ld=$lt_cv_prog_gnu_ld 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5206if ${lt_cv_path_NM+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 if test -n "$NM"; then 5210 # Let the user override the test. 5211 lt_cv_path_NM=$NM 5212else 5213 lt_nm_to_check=${ac_tool_prefix}nm 5214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5215 lt_nm_to_check="$lt_nm_to_check nm" 5216 fi 5217 for lt_tmp_nm in $lt_nm_to_check; do 5218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5220 IFS=$lt_save_ifs 5221 test -z "$ac_dir" && ac_dir=. 5222 tmp_nm=$ac_dir/$lt_tmp_nm 5223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5224 # Check to see if the nm accepts a BSD-compat flag. 5225 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5226 # nm: unknown option "B" ignored 5227 # Tru64's nm complains that /dev/null is an invalid object file 5228 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5229 case $build_os in 5230 mingw*) lt_bad_file=conftest.nm/nofile ;; 5231 *) lt_bad_file=/dev/null ;; 5232 esac 5233 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5234 *$lt_bad_file* | *'Invalid file or object type'*) 5235 lt_cv_path_NM="$tmp_nm -B" 5236 break 2 5237 ;; 5238 *) 5239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5240 */dev/null*) 5241 lt_cv_path_NM="$tmp_nm -p" 5242 break 2 5243 ;; 5244 *) 5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5246 continue # so that we can try to find one that supports BSD flags 5247 ;; 5248 esac 5249 ;; 5250 esac 5251 fi 5252 done 5253 IFS=$lt_save_ifs 5254 done 5255 : ${lt_cv_path_NM=no} 5256fi 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5259$as_echo "$lt_cv_path_NM" >&6; } 5260if test no != "$lt_cv_path_NM"; then 5261 NM=$lt_cv_path_NM 5262else 5263 # Didn't find any BSD compatible name lister, look for dumpbin. 5264 if test -n "$DUMPBIN"; then : 5265 # Let the user override the test. 5266 else 5267 if test -n "$ac_tool_prefix"; then 5268 for ac_prog in dumpbin "link -dump" 5269 do 5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5273$as_echo_n "checking for $ac_word... " >&6; } 5274if ${ac_cv_prog_DUMPBIN+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 if test -n "$DUMPBIN"; then 5278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5279else 5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281for as_dir in $PATH 5282do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291done 5292 done 5293IFS=$as_save_IFS 5294 5295fi 5296fi 5297DUMPBIN=$ac_cv_prog_DUMPBIN 5298if test -n "$DUMPBIN"; then 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5300$as_echo "$DUMPBIN" >&6; } 5301else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5303$as_echo "no" >&6; } 5304fi 5305 5306 5307 test -n "$DUMPBIN" && break 5308 done 5309fi 5310if test -z "$DUMPBIN"; then 5311 ac_ct_DUMPBIN=$DUMPBIN 5312 for ac_prog in dumpbin "link -dump" 5313do 5314 # Extract the first word of "$ac_prog", so it can be a program name with args. 5315set dummy $ac_prog; ac_word=$2 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5317$as_echo_n "checking for $ac_word... " >&6; } 5318if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 if test -n "$ac_ct_DUMPBIN"; then 5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5323else 5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5325for as_dir in $PATH 5326do 5327 IFS=$as_save_IFS 5328 test -z "$as_dir" && as_dir=. 5329 for ac_exec_ext in '' $ac_executable_extensions; do 5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5333 break 2 5334 fi 5335done 5336 done 5337IFS=$as_save_IFS 5338 5339fi 5340fi 5341ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5342if test -n "$ac_ct_DUMPBIN"; then 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5344$as_echo "$ac_ct_DUMPBIN" >&6; } 5345else 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5347$as_echo "no" >&6; } 5348fi 5349 5350 5351 test -n "$ac_ct_DUMPBIN" && break 5352done 5353 5354 if test "x$ac_ct_DUMPBIN" = x; then 5355 DUMPBIN=":" 5356 else 5357 case $cross_compiling:$ac_tool_warned in 5358yes:) 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5361ac_tool_warned=yes ;; 5362esac 5363 DUMPBIN=$ac_ct_DUMPBIN 5364 fi 5365fi 5366 5367 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5368 *COFF*) 5369 DUMPBIN="$DUMPBIN -symbols -headers" 5370 ;; 5371 *) 5372 DUMPBIN=: 5373 ;; 5374 esac 5375 fi 5376 5377 if test : != "$DUMPBIN"; then 5378 NM=$DUMPBIN 5379 fi 5380fi 5381test -z "$NM" && NM=nm 5382 5383 5384 5385 5386 5387 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5389$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5390if ${lt_cv_nm_interface+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 lt_cv_nm_interface="BSD nm" 5394 echo "int some_variable = 0;" > conftest.$ac_ext 5395 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5396 (eval "$ac_compile" 2>conftest.err) 5397 cat conftest.err >&5 5398 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5399 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5400 cat conftest.err >&5 5401 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5402 cat conftest.out >&5 5403 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5404 lt_cv_nm_interface="MS dumpbin" 5405 fi 5406 rm -f conftest* 5407fi 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5409$as_echo "$lt_cv_nm_interface" >&6; } 5410 5411# find the maximum length of command line arguments 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5413$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5414if ${lt_cv_sys_max_cmd_len+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 i=0 5418 teststring=ABCD 5419 5420 case $build_os in 5421 msdosdjgpp*) 5422 # On DJGPP, this test can blow up pretty badly due to problems in libc 5423 # (any single argument exceeding 2000 bytes causes a buffer overrun 5424 # during glob expansion). Even if it were fixed, the result of this 5425 # check would be larger than it should be. 5426 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5427 ;; 5428 5429 gnu*) 5430 # Under GNU Hurd, this test is not required because there is 5431 # no limit to the length of command line arguments. 5432 # Libtool will interpret -1 as no limit whatsoever 5433 lt_cv_sys_max_cmd_len=-1; 5434 ;; 5435 5436 cygwin* | mingw* | cegcc*) 5437 # On Win9x/ME, this test blows up -- it succeeds, but takes 5438 # about 5 minutes as the teststring grows exponentially. 5439 # Worse, since 9x/ME are not pre-emptively multitasking, 5440 # you end up with a "frozen" computer, even though with patience 5441 # the test eventually succeeds (with a max line length of 256k). 5442 # Instead, let's just punt: use the minimum linelength reported by 5443 # all of the supported platforms: 8192 (on NT/2K/XP). 5444 lt_cv_sys_max_cmd_len=8192; 5445 ;; 5446 5447 mint*) 5448 # On MiNT this can take a long time and run out of memory. 5449 lt_cv_sys_max_cmd_len=8192; 5450 ;; 5451 5452 amigaos*) 5453 # On AmigaOS with pdksh, this test takes hours, literally. 5454 # So we just punt and use a minimum line length of 8192. 5455 lt_cv_sys_max_cmd_len=8192; 5456 ;; 5457 5458 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5459 # This has been around since 386BSD, at least. Likely further. 5460 if test -x /sbin/sysctl; then 5461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5462 elif test -x /usr/sbin/sysctl; then 5463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5464 else 5465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5466 fi 5467 # And add a safety zone 5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5470 ;; 5471 5472 interix*) 5473 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5474 lt_cv_sys_max_cmd_len=196608 5475 ;; 5476 5477 os2*) 5478 # The test takes a long time on OS/2. 5479 lt_cv_sys_max_cmd_len=8192 5480 ;; 5481 5482 osf*) 5483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5485 # nice to cause kernel panics so lets avoid the loop below. 5486 # First set a reasonable default. 5487 lt_cv_sys_max_cmd_len=16384 5488 # 5489 if test -x /sbin/sysconfig; then 5490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5491 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5492 esac 5493 fi 5494 ;; 5495 sco3.2v5*) 5496 lt_cv_sys_max_cmd_len=102400 5497 ;; 5498 sysv5* | sco5v6* | sysv4.2uw2*) 5499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5500 if test -n "$kargmax"; then 5501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5502 else 5503 lt_cv_sys_max_cmd_len=32768 5504 fi 5505 ;; 5506 *) 5507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5508 if test -n "$lt_cv_sys_max_cmd_len" && \ 5509 test undefined != "$lt_cv_sys_max_cmd_len"; then 5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5512 else 5513 # Make teststring a little bigger before we do anything with it. 5514 # a 1K string should be a reasonable start. 5515 for i in 1 2 3 4 5 6 7 8; do 5516 teststring=$teststring$teststring 5517 done 5518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5519 # If test is not a shell built-in, we'll probably end up computing a 5520 # maximum length that is only half of the actual maximum length, but 5521 # we can't tell. 5522 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5523 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5524 test 17 != "$i" # 1/2 MB should be enough 5525 do 5526 i=`expr $i + 1` 5527 teststring=$teststring$teststring 5528 done 5529 # Only check the string length outside the loop. 5530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5531 teststring= 5532 # Add a significant safety factor because C++ compilers can tack on 5533 # massive amounts of additional arguments before passing them to the 5534 # linker. It appears as though 1/2 is a usable value. 5535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5536 fi 5537 ;; 5538 esac 5539 5540fi 5541 5542if test -n "$lt_cv_sys_max_cmd_len"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5544$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5547$as_echo "none" >&6; } 5548fi 5549max_cmd_len=$lt_cv_sys_max_cmd_len 5550 5551 5552 5553 5554 5555 5556: ${CP="cp -f"} 5557: ${MV="mv -f"} 5558: ${RM="rm -f"} 5559 5560if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5561 lt_unset=unset 5562else 5563 lt_unset=false 5564fi 5565 5566 5567 5568 5569 5570# test EBCDIC or ASCII 5571case `echo X|tr X '\101'` in 5572 A) # ASCII based system 5573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5574 lt_SP2NL='tr \040 \012' 5575 lt_NL2SP='tr \015\012 \040\040' 5576 ;; 5577 *) # EBCDIC based system 5578 lt_SP2NL='tr \100 \n' 5579 lt_NL2SP='tr \r\n \100\100' 5580 ;; 5581esac 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5592$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5593if ${lt_cv_to_host_file_cmd+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 case $host in 5597 *-*-mingw* ) 5598 case $build in 5599 *-*-mingw* ) # actually msys 5600 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5601 ;; 5602 *-*-cygwin* ) 5603 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5604 ;; 5605 * ) # otherwise, assume *nix 5606 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5607 ;; 5608 esac 5609 ;; 5610 *-*-cygwin* ) 5611 case $build in 5612 *-*-mingw* ) # actually msys 5613 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5614 ;; 5615 *-*-cygwin* ) 5616 lt_cv_to_host_file_cmd=func_convert_file_noop 5617 ;; 5618 * ) # otherwise, assume *nix 5619 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5620 ;; 5621 esac 5622 ;; 5623 * ) # unhandled hosts (and "normal" native builds) 5624 lt_cv_to_host_file_cmd=func_convert_file_noop 5625 ;; 5626esac 5627 5628fi 5629 5630to_host_file_cmd=$lt_cv_to_host_file_cmd 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5632$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5633 5634 5635 5636 5637 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5639$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5640if ${lt_cv_to_tool_file_cmd+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642else 5643 #assume ordinary cross tools, or native build. 5644lt_cv_to_tool_file_cmd=func_convert_file_noop 5645case $host in 5646 *-*-mingw* ) 5647 case $build in 5648 *-*-mingw* ) # actually msys 5649 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5650 ;; 5651 esac 5652 ;; 5653esac 5654 5655fi 5656 5657to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5659$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5660 5661 5662 5663 5664 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5666$as_echo_n "checking for $LD option to reload object files... " >&6; } 5667if ${lt_cv_ld_reload_flag+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669else 5670 lt_cv_ld_reload_flag='-r' 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5673$as_echo "$lt_cv_ld_reload_flag" >&6; } 5674reload_flag=$lt_cv_ld_reload_flag 5675case $reload_flag in 5676"" | " "*) ;; 5677*) reload_flag=" $reload_flag" ;; 5678esac 5679reload_cmds='$LD$reload_flag -o $output$reload_objs' 5680case $host_os in 5681 cygwin* | mingw* | pw32* | cegcc*) 5682 if test yes != "$GCC"; then 5683 reload_cmds=false 5684 fi 5685 ;; 5686 darwin*) 5687 if test yes = "$GCC"; then 5688 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5689 else 5690 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5691 fi 5692 ;; 5693esac 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703if test -n "$ac_tool_prefix"; then 5704 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5705set dummy ${ac_tool_prefix}objdump; ac_word=$2 5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5707$as_echo_n "checking for $ac_word... " >&6; } 5708if ${ac_cv_prog_OBJDUMP+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 if test -n "$OBJDUMP"; then 5712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5713else 5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5715for as_dir in $PATH 5716do 5717 IFS=$as_save_IFS 5718 test -z "$as_dir" && as_dir=. 5719 for ac_exec_ext in '' $ac_executable_extensions; do 5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5721 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5723 break 2 5724 fi 5725done 5726 done 5727IFS=$as_save_IFS 5728 5729fi 5730fi 5731OBJDUMP=$ac_cv_prog_OBJDUMP 5732if test -n "$OBJDUMP"; then 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5734$as_echo "$OBJDUMP" >&6; } 5735else 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737$as_echo "no" >&6; } 5738fi 5739 5740 5741fi 5742if test -z "$ac_cv_prog_OBJDUMP"; then 5743 ac_ct_OBJDUMP=$OBJDUMP 5744 # Extract the first word of "objdump", so it can be a program name with args. 5745set dummy objdump; ac_word=$2 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5747$as_echo_n "checking for $ac_word... " >&6; } 5748if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 if test -n "$ac_ct_OBJDUMP"; then 5752 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5753else 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769fi 5770fi 5771ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5772if test -n "$ac_ct_OBJDUMP"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5774$as_echo "$ac_ct_OBJDUMP" >&6; } 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778fi 5779 5780 if test "x$ac_ct_OBJDUMP" = x; then 5781 OBJDUMP="false" 5782 else 5783 case $cross_compiling:$ac_tool_warned in 5784yes:) 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5787ac_tool_warned=yes ;; 5788esac 5789 OBJDUMP=$ac_ct_OBJDUMP 5790 fi 5791else 5792 OBJDUMP="$ac_cv_prog_OBJDUMP" 5793fi 5794 5795test -z "$OBJDUMP" && OBJDUMP=objdump 5796 5797 5798 5799 5800 5801 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5803$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5804if ${lt_cv_deplibs_check_method+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 lt_cv_file_magic_cmd='$MAGIC_CMD' 5808lt_cv_file_magic_test_file= 5809lt_cv_deplibs_check_method='unknown' 5810# Need to set the preceding variable on all platforms that support 5811# interlibrary dependencies. 5812# 'none' -- dependencies not supported. 5813# 'unknown' -- same as none, but documents that we really don't know. 5814# 'pass_all' -- all dependencies passed with no checks. 5815# 'test_compile' -- check by making test program. 5816# 'file_magic [[regex]]' -- check by looking for files in library path 5817# that responds to the $file_magic_cmd with a given extended regex. 5818# If you have 'file' or equivalent on your system and you're not sure 5819# whether 'pass_all' will *always* work, you probably want this one. 5820 5821case $host_os in 5822aix[4-9]*) 5823 lt_cv_deplibs_check_method=pass_all 5824 ;; 5825 5826beos*) 5827 lt_cv_deplibs_check_method=pass_all 5828 ;; 5829 5830bsdi[45]*) 5831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5832 lt_cv_file_magic_cmd='/usr/bin/file -L' 5833 lt_cv_file_magic_test_file=/shlib/libc.so 5834 ;; 5835 5836cygwin*) 5837 # func_win32_libid is a shell function defined in ltmain.sh 5838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5839 lt_cv_file_magic_cmd='func_win32_libid' 5840 ;; 5841 5842mingw* | pw32*) 5843 # Base MSYS/MinGW do not provide the 'file' command needed by 5844 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5845 # unless we find 'file', for example because we are cross-compiling. 5846 if ( file / ) >/dev/null 2>&1; then 5847 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5848 lt_cv_file_magic_cmd='func_win32_libid' 5849 else 5850 # Keep this pattern in sync with the one in func_win32_libid. 5851 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5852 lt_cv_file_magic_cmd='$OBJDUMP -f' 5853 fi 5854 ;; 5855 5856cegcc*) 5857 # use the weaker test based on 'objdump'. See mingw*. 5858 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5859 lt_cv_file_magic_cmd='$OBJDUMP -f' 5860 ;; 5861 5862darwin* | rhapsody*) 5863 lt_cv_deplibs_check_method=pass_all 5864 ;; 5865 5866freebsd* | dragonfly*) 5867 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5868 case $host_cpu in 5869 i*86 ) 5870 # Not sure whether the presence of OpenBSD here was a mistake. 5871 # Let's accept both of them until this is cleared up. 5872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5873 lt_cv_file_magic_cmd=/usr/bin/file 5874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5875 ;; 5876 esac 5877 else 5878 lt_cv_deplibs_check_method=pass_all 5879 fi 5880 ;; 5881 5882haiku*) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 5886hpux10.20* | hpux11*) 5887 lt_cv_file_magic_cmd=/usr/bin/file 5888 case $host_cpu in 5889 ia64*) 5890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5891 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5892 ;; 5893 hppa*64*) 5894 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]' 5895 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5896 ;; 5897 *) 5898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5899 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5900 ;; 5901 esac 5902 ;; 5903 5904interix[3-9]*) 5905 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5907 ;; 5908 5909irix5* | irix6* | nonstopux*) 5910 case $LD in 5911 *-32|*"-32 ") libmagic=32-bit;; 5912 *-n32|*"-n32 ") libmagic=N32;; 5913 *-64|*"-64 ") libmagic=64-bit;; 5914 *) libmagic=never-match;; 5915 esac 5916 lt_cv_deplibs_check_method=pass_all 5917 ;; 5918 5919# This must be glibc/ELF. 5920linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 5924netbsd*) 5925 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5927 else 5928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5929 fi 5930 ;; 5931 5932newos6*) 5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5934 lt_cv_file_magic_cmd=/usr/bin/file 5935 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5936 ;; 5937 5938*nto* | *qnx*) 5939 lt_cv_deplibs_check_method=pass_all 5940 ;; 5941 5942openbsd* | bitrig*) 5943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5945 else 5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5947 fi 5948 ;; 5949 5950osf3* | osf4* | osf5*) 5951 lt_cv_deplibs_check_method=pass_all 5952 ;; 5953 5954rdos*) 5955 lt_cv_deplibs_check_method=pass_all 5956 ;; 5957 5958solaris*) 5959 lt_cv_deplibs_check_method=pass_all 5960 ;; 5961 5962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5963 lt_cv_deplibs_check_method=pass_all 5964 ;; 5965 5966sysv4 | sysv4.3*) 5967 case $host_vendor in 5968 motorola) 5969 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]' 5970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5971 ;; 5972 ncr) 5973 lt_cv_deplibs_check_method=pass_all 5974 ;; 5975 sequent) 5976 lt_cv_file_magic_cmd='/bin/file' 5977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5978 ;; 5979 sni) 5980 lt_cv_file_magic_cmd='/bin/file' 5981 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5982 lt_cv_file_magic_test_file=/lib/libc.so 5983 ;; 5984 siemens) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987 pc) 5988 lt_cv_deplibs_check_method=pass_all 5989 ;; 5990 esac 5991 ;; 5992 5993tpf*) 5994 lt_cv_deplibs_check_method=pass_all 5995 ;; 5996os2*) 5997 lt_cv_deplibs_check_method=pass_all 5998 ;; 5999esac 6000 6001fi 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6003$as_echo "$lt_cv_deplibs_check_method" >&6; } 6004 6005file_magic_glob= 6006want_nocaseglob=no 6007if test "$build" = "$host"; then 6008 case $host_os in 6009 mingw* | pw32*) 6010 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6011 want_nocaseglob=yes 6012 else 6013 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6014 fi 6015 ;; 6016 esac 6017fi 6018 6019file_magic_cmd=$lt_cv_file_magic_cmd 6020deplibs_check_method=$lt_cv_deplibs_check_method 6021test -z "$deplibs_check_method" && deplibs_check_method=unknown 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044if test -n "$ac_tool_prefix"; then 6045 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6046set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048$as_echo_n "checking for $ac_word... " >&6; } 6049if ${ac_cv_prog_DLLTOOL+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 if test -n "$DLLTOOL"; then 6053 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6054else 6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6056for as_dir in $PATH 6057do 6058 IFS=$as_save_IFS 6059 test -z "$as_dir" && as_dir=. 6060 for ac_exec_ext in '' $ac_executable_extensions; do 6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6062 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6064 break 2 6065 fi 6066done 6067 done 6068IFS=$as_save_IFS 6069 6070fi 6071fi 6072DLLTOOL=$ac_cv_prog_DLLTOOL 6073if test -n "$DLLTOOL"; then 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6075$as_echo "$DLLTOOL" >&6; } 6076else 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6078$as_echo "no" >&6; } 6079fi 6080 6081 6082fi 6083if test -z "$ac_cv_prog_DLLTOOL"; then 6084 ac_ct_DLLTOOL=$DLLTOOL 6085 # Extract the first word of "dlltool", so it can be a program name with args. 6086set dummy dlltool; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$ac_ct_DLLTOOL"; then 6093 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6113if test -n "$ac_ct_DLLTOOL"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6115$as_echo "$ac_ct_DLLTOOL" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 if test "x$ac_ct_DLLTOOL" = x; then 6122 DLLTOOL="false" 6123 else 6124 case $cross_compiling:$ac_tool_warned in 6125yes:) 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6128ac_tool_warned=yes ;; 6129esac 6130 DLLTOOL=$ac_ct_DLLTOOL 6131 fi 6132else 6133 DLLTOOL="$ac_cv_prog_DLLTOOL" 6134fi 6135 6136test -z "$DLLTOOL" && DLLTOOL=dlltool 6137 6138 6139 6140 6141 6142 6143 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6145$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6146if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 lt_cv_sharedlib_from_linklib_cmd='unknown' 6150 6151case $host_os in 6152cygwin* | mingw* | pw32* | cegcc*) 6153 # two different shell functions defined in ltmain.sh; 6154 # decide which one to use based on capabilities of $DLLTOOL 6155 case `$DLLTOOL --help 2>&1` in 6156 *--identify-strict*) 6157 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6158 ;; 6159 *) 6160 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6161 ;; 6162 esac 6163 ;; 6164*) 6165 # fallback: assume linklib IS sharedlib 6166 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6167 ;; 6168esac 6169 6170fi 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6172$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6173sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6174test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6175 6176 6177 6178 6179 6180 6181 6182if test -n "$ac_tool_prefix"; then 6183 for ac_prog in ar 6184 do 6185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6186set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if ${ac_cv_prog_AR+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$AR"; then 6193 ac_cv_prog_AR="$AR" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6202 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207 done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212AR=$ac_cv_prog_AR 6213if test -n "$AR"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6215$as_echo "$AR" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222 test -n "$AR" && break 6223 done 6224fi 6225if test -z "$AR"; then 6226 ac_ct_AR=$AR 6227 for ac_prog in ar 6228do 6229 # Extract the first word of "$ac_prog", so it can be a program name with args. 6230set dummy $ac_prog; ac_word=$2 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6232$as_echo_n "checking for $ac_word... " >&6; } 6233if ${ac_cv_prog_ac_ct_AR+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 if test -n "$ac_ct_AR"; then 6237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6238else 6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6240for as_dir in $PATH 6241do 6242 IFS=$as_save_IFS 6243 test -z "$as_dir" && as_dir=. 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6246 ac_cv_prog_ac_ct_AR="$ac_prog" 6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6248 break 2 6249 fi 6250done 6251 done 6252IFS=$as_save_IFS 6253 6254fi 6255fi 6256ac_ct_AR=$ac_cv_prog_ac_ct_AR 6257if test -n "$ac_ct_AR"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6259$as_echo "$ac_ct_AR" >&6; } 6260else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262$as_echo "no" >&6; } 6263fi 6264 6265 6266 test -n "$ac_ct_AR" && break 6267done 6268 6269 if test "x$ac_ct_AR" = x; then 6270 AR="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 AR=$ac_ct_AR 6279 fi 6280fi 6281 6282: ${AR=ar} 6283: ${AR_FLAGS=cru} 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6296$as_echo_n "checking for archiver @FILE support... " >&6; } 6297if ${lt_cv_ar_at_file+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 lt_cv_ar_at_file=no 6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6302/* end confdefs.h. */ 6303 6304int 6305main () 6306{ 6307 6308 ; 6309 return 0; 6310} 6311_ACEOF 6312if ac_fn_c_try_compile "$LINENO"; then : 6313 echo conftest.$ac_objext > conftest.lst 6314 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6316 (eval $lt_ar_try) 2>&5 6317 ac_status=$? 6318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6319 test $ac_status = 0; } 6320 if test 0 -eq "$ac_status"; then 6321 # Ensure the archiver fails upon bogus file names. 6322 rm -f conftest.$ac_objext libconftest.a 6323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6324 (eval $lt_ar_try) 2>&5 6325 ac_status=$? 6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6327 test $ac_status = 0; } 6328 if test 0 -ne "$ac_status"; then 6329 lt_cv_ar_at_file=@ 6330 fi 6331 fi 6332 rm -f conftest.* libconftest.a 6333 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6339$as_echo "$lt_cv_ar_at_file" >&6; } 6340 6341if test no = "$lt_cv_ar_at_file"; then 6342 archiver_list_spec= 6343else 6344 archiver_list_spec=$lt_cv_ar_at_file 6345fi 6346 6347 6348 6349 6350 6351 6352 6353if test -n "$ac_tool_prefix"; then 6354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6355set dummy ${ac_tool_prefix}strip; ac_word=$2 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6357$as_echo_n "checking for $ac_word... " >&6; } 6358if ${ac_cv_prog_STRIP+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 if test -n "$STRIP"; then 6362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6363else 6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6365for as_dir in $PATH 6366do 6367 IFS=$as_save_IFS 6368 test -z "$as_dir" && as_dir=. 6369 for ac_exec_ext in '' $ac_executable_extensions; do 6370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6371 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6373 break 2 6374 fi 6375done 6376 done 6377IFS=$as_save_IFS 6378 6379fi 6380fi 6381STRIP=$ac_cv_prog_STRIP 6382if test -n "$STRIP"; then 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6384$as_echo "$STRIP" >&6; } 6385else 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6387$as_echo "no" >&6; } 6388fi 6389 6390 6391fi 6392if test -z "$ac_cv_prog_STRIP"; then 6393 ac_ct_STRIP=$STRIP 6394 # Extract the first word of "strip", so it can be a program name with args. 6395set dummy strip; ac_word=$2 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6397$as_echo_n "checking for $ac_word... " >&6; } 6398if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 if test -n "$ac_ct_STRIP"; then 6402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6403else 6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6405for as_dir in $PATH 6406do 6407 IFS=$as_save_IFS 6408 test -z "$as_dir" && as_dir=. 6409 for ac_exec_ext in '' $ac_executable_extensions; do 6410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6411 ac_cv_prog_ac_ct_STRIP="strip" 6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6413 break 2 6414 fi 6415done 6416 done 6417IFS=$as_save_IFS 6418 6419fi 6420fi 6421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6422if test -n "$ac_ct_STRIP"; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6424$as_echo "$ac_ct_STRIP" >&6; } 6425else 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427$as_echo "no" >&6; } 6428fi 6429 6430 if test "x$ac_ct_STRIP" = x; then 6431 STRIP=":" 6432 else 6433 case $cross_compiling:$ac_tool_warned in 6434yes:) 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6437ac_tool_warned=yes ;; 6438esac 6439 STRIP=$ac_ct_STRIP 6440 fi 6441else 6442 STRIP="$ac_cv_prog_STRIP" 6443fi 6444 6445test -z "$STRIP" && STRIP=: 6446 6447 6448 6449 6450 6451 6452if test -n "$ac_tool_prefix"; then 6453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6454set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6456$as_echo_n "checking for $ac_word... " >&6; } 6457if ${ac_cv_prog_RANLIB+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 if test -n "$RANLIB"; then 6461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6462else 6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6464for as_dir in $PATH 6465do 6466 IFS=$as_save_IFS 6467 test -z "$as_dir" && as_dir=. 6468 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6472 break 2 6473 fi 6474done 6475 done 6476IFS=$as_save_IFS 6477 6478fi 6479fi 6480RANLIB=$ac_cv_prog_RANLIB 6481if test -n "$RANLIB"; then 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6483$as_echo "$RANLIB" >&6; } 6484else 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6486$as_echo "no" >&6; } 6487fi 6488 6489 6490fi 6491if test -z "$ac_cv_prog_RANLIB"; then 6492 ac_ct_RANLIB=$RANLIB 6493 # Extract the first word of "ranlib", so it can be a program name with args. 6494set dummy ranlib; ac_word=$2 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6496$as_echo_n "checking for $ac_word... " >&6; } 6497if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 if test -n "$ac_ct_RANLIB"; then 6501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6502else 6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504for as_dir in $PATH 6505do 6506 IFS=$as_save_IFS 6507 test -z "$as_dir" && as_dir=. 6508 for ac_exec_ext in '' $ac_executable_extensions; do 6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6510 ac_cv_prog_ac_ct_RANLIB="ranlib" 6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6512 break 2 6513 fi 6514done 6515 done 6516IFS=$as_save_IFS 6517 6518fi 6519fi 6520ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6521if test -n "$ac_ct_RANLIB"; then 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6523$as_echo "$ac_ct_RANLIB" >&6; } 6524else 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6526$as_echo "no" >&6; } 6527fi 6528 6529 if test "x$ac_ct_RANLIB" = x; then 6530 RANLIB=":" 6531 else 6532 case $cross_compiling:$ac_tool_warned in 6533yes:) 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6536ac_tool_warned=yes ;; 6537esac 6538 RANLIB=$ac_ct_RANLIB 6539 fi 6540else 6541 RANLIB="$ac_cv_prog_RANLIB" 6542fi 6543 6544test -z "$RANLIB" && RANLIB=: 6545 6546 6547 6548 6549 6550 6551# Determine commands to create old-style static archives. 6552old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6553old_postinstall_cmds='chmod 644 $oldlib' 6554old_postuninstall_cmds= 6555 6556if test -n "$RANLIB"; then 6557 case $host_os in 6558 bitrig* | openbsd*) 6559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6560 ;; 6561 *) 6562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6563 ;; 6564 esac 6565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6566fi 6567 6568case $host_os in 6569 darwin*) 6570 lock_old_archive_extraction=yes ;; 6571 *) 6572 lock_old_archive_extraction=no ;; 6573esac 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613# If no C compiler was specified, use CC. 6614LTCC=${LTCC-"$CC"} 6615 6616# If no C compiler flags were specified, use CFLAGS. 6617LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6618 6619# Allow CC to be a program name with arguments. 6620compiler=$CC 6621 6622 6623# Check for command to grab the raw symbol name followed by C symbol from nm. 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6625$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6626if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 6630# These are sane defaults that work on at least a few old systems. 6631# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6632 6633# Character class describing NM global symbol codes. 6634symcode='[BCDEGRST]' 6635 6636# Regexp to match symbols that can be accessed directly from C. 6637sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6638 6639# Define system-specific variables. 6640case $host_os in 6641aix*) 6642 symcode='[BCDT]' 6643 ;; 6644cygwin* | mingw* | pw32* | cegcc*) 6645 symcode='[ABCDGISTW]' 6646 ;; 6647hpux*) 6648 if test ia64 = "$host_cpu"; then 6649 symcode='[ABCDEGRST]' 6650 fi 6651 ;; 6652irix* | nonstopux*) 6653 symcode='[BCDEGRST]' 6654 ;; 6655osf*) 6656 symcode='[BCDEGQRST]' 6657 ;; 6658solaris*) 6659 symcode='[BDRT]' 6660 ;; 6661sco3.2v5*) 6662 symcode='[DT]' 6663 ;; 6664sysv4.2uw2*) 6665 symcode='[DT]' 6666 ;; 6667sysv5* | sco5v6* | unixware* | OpenUNIX*) 6668 symcode='[ABDT]' 6669 ;; 6670sysv4) 6671 symcode='[DFNSTU]' 6672 ;; 6673esac 6674 6675# If we're using GNU nm, then use its standard symbol codes. 6676case `$NM -V 2>&1` in 6677*GNU* | *'with BFD'*) 6678 symcode='[ABCDGIRSTW]' ;; 6679esac 6680 6681if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6682 # Gets list of data symbols to import. 6683 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6684 # Adjust the below global symbol transforms to fixup imported variables. 6685 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6686 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6687 lt_c_name_lib_hook="\ 6688 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6689 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6690else 6691 # Disable hooks by default. 6692 lt_cv_sys_global_symbol_to_import= 6693 lt_cdecl_hook= 6694 lt_c_name_hook= 6695 lt_c_name_lib_hook= 6696fi 6697 6698# Transform an extracted symbol line into a proper C declaration. 6699# Some systems (esp. on ia64) link data and code symbols differently, 6700# so use this general approach. 6701lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6702$lt_cdecl_hook\ 6703" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6704" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6705 6706# Transform an extracted symbol line into symbol name and symbol address 6707lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6708$lt_c_name_hook\ 6709" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6710" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6711 6712# Transform an extracted symbol line into symbol name with lib prefix and 6713# symbol address. 6714lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6715$lt_c_name_lib_hook\ 6716" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6717" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6718" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6719 6720# Handle CRLF in mingw tool chain 6721opt_cr= 6722case $build_os in 6723mingw*) 6724 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6725 ;; 6726esac 6727 6728# Try without a prefix underscore, then with it. 6729for ac_symprfx in "" "_"; do 6730 6731 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6732 symxfrm="\\1 $ac_symprfx\\2 \\2" 6733 6734 # Write the raw and C identifiers. 6735 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6736 # Fake it for dumpbin and say T for any non-static function, 6737 # D for any global variable and I for any imported variable. 6738 # Also find C++ and __fastcall symbols from MSVC++, 6739 # which start with @ or ?. 6740 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6741" {last_section=section; section=\$ 3};"\ 6742" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6743" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6744" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6745" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6746" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6747" \$ 0!~/External *\|/{next};"\ 6748" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6749" {if(hide[section]) next};"\ 6750" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6751" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6752" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6753" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6754" ' prfx=^$ac_symprfx" 6755 else 6756 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6757 fi 6758 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6759 6760 # Check to see that the pipe works correctly. 6761 pipe_works=no 6762 6763 rm -f conftest* 6764 cat > conftest.$ac_ext <<_LT_EOF 6765#ifdef __cplusplus 6766extern "C" { 6767#endif 6768char nm_test_var; 6769void nm_test_func(void); 6770void nm_test_func(void){} 6771#ifdef __cplusplus 6772} 6773#endif 6774int main(){nm_test_var='a';nm_test_func();return(0);} 6775_LT_EOF 6776 6777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6778 (eval $ac_compile) 2>&5 6779 ac_status=$? 6780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6781 test $ac_status = 0; }; then 6782 # Now try to grab the symbols. 6783 nlist=conftest.nm 6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6785 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6786 ac_status=$? 6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6788 test $ac_status = 0; } && test -s "$nlist"; then 6789 # Try sorting and uniquifying the output. 6790 if sort "$nlist" | uniq > "$nlist"T; then 6791 mv -f "$nlist"T "$nlist" 6792 else 6793 rm -f "$nlist"T 6794 fi 6795 6796 # Make sure that we snagged all the symbols we need. 6797 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6798 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6799 cat <<_LT_EOF > conftest.$ac_ext 6800/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6801#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6802/* DATA imports from DLLs on WIN32 can't be const, because runtime 6803 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6804# define LT_DLSYM_CONST 6805#elif defined __osf__ 6806/* This system does not cope well with relocations in const data. */ 6807# define LT_DLSYM_CONST 6808#else 6809# define LT_DLSYM_CONST const 6810#endif 6811 6812#ifdef __cplusplus 6813extern "C" { 6814#endif 6815 6816_LT_EOF 6817 # Now generate the symbol file. 6818 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6819 6820 cat <<_LT_EOF >> conftest.$ac_ext 6821 6822/* The mapping between symbol names and symbols. */ 6823LT_DLSYM_CONST struct { 6824 const char *name; 6825 void *address; 6826} 6827lt__PROGRAM__LTX_preloaded_symbols[] = 6828{ 6829 { "@PROGRAM@", (void *) 0 }, 6830_LT_EOF 6831 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6832 cat <<\_LT_EOF >> conftest.$ac_ext 6833 {0, (void *) 0} 6834}; 6835 6836/* This works around a problem in FreeBSD linker */ 6837#ifdef FREEBSD_WORKAROUND 6838static const void *lt_preloaded_setup() { 6839 return lt__PROGRAM__LTX_preloaded_symbols; 6840} 6841#endif 6842 6843#ifdef __cplusplus 6844} 6845#endif 6846_LT_EOF 6847 # Now try linking the two files. 6848 mv conftest.$ac_objext conftstm.$ac_objext 6849 lt_globsym_save_LIBS=$LIBS 6850 lt_globsym_save_CFLAGS=$CFLAGS 6851 LIBS=conftstm.$ac_objext 6852 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6854 (eval $ac_link) 2>&5 6855 ac_status=$? 6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6857 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6858 pipe_works=yes 6859 fi 6860 LIBS=$lt_globsym_save_LIBS 6861 CFLAGS=$lt_globsym_save_CFLAGS 6862 else 6863 echo "cannot find nm_test_func in $nlist" >&5 6864 fi 6865 else 6866 echo "cannot find nm_test_var in $nlist" >&5 6867 fi 6868 else 6869 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6870 fi 6871 else 6872 echo "$progname: failed program was:" >&5 6873 cat conftest.$ac_ext >&5 6874 fi 6875 rm -rf conftest* conftst* 6876 6877 # Do not use the global_symbol_pipe unless it works. 6878 if test yes = "$pipe_works"; then 6879 break 6880 else 6881 lt_cv_sys_global_symbol_pipe= 6882 fi 6883done 6884 6885fi 6886 6887if test -z "$lt_cv_sys_global_symbol_pipe"; then 6888 lt_cv_sys_global_symbol_to_cdecl= 6889fi 6890if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6892$as_echo "failed" >&6; } 6893else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6895$as_echo "ok" >&6; } 6896fi 6897 6898# Response file support. 6899if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6900 nm_file_list_spec='@' 6901elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6902 nm_file_list_spec='@' 6903fi 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6942$as_echo_n "checking for sysroot... " >&6; } 6943 6944# Check whether --with-sysroot was given. 6945if test "${with_sysroot+set}" = set; then : 6946 withval=$with_sysroot; 6947else 6948 with_sysroot=no 6949fi 6950 6951 6952lt_sysroot= 6953case $with_sysroot in #( 6954 yes) 6955 if test yes = "$GCC"; then 6956 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6957 fi 6958 ;; #( 6959 /*) 6960 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6961 ;; #( 6962 no|'') 6963 ;; #( 6964 *) 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6966$as_echo "$with_sysroot" >&6; } 6967 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6968 ;; 6969esac 6970 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6972$as_echo "${lt_sysroot:-no}" >&6; } 6973 6974 6975 6976 6977 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6979$as_echo_n "checking for a working dd... " >&6; } 6980if ${ac_cv_path_lt_DD+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 printf 0123456789abcdef0123456789abcdef >conftest.i 6984cat conftest.i conftest.i >conftest2.i 6985: ${lt_DD:=$DD} 6986if test -z "$lt_DD"; then 6987 ac_path_lt_DD_found=false 6988 # Loop through the user's path and test for each of PROGNAME-LIST 6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6990for as_dir in $PATH 6991do 6992 IFS=$as_save_IFS 6993 test -z "$as_dir" && as_dir=. 6994 for ac_prog in dd; do 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6997 as_fn_executable_p "$ac_path_lt_DD" || continue 6998if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6999 cmp -s conftest.i conftest.out \ 7000 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7001fi 7002 $ac_path_lt_DD_found && break 3 7003 done 7004 done 7005 done 7006IFS=$as_save_IFS 7007 if test -z "$ac_cv_path_lt_DD"; then 7008 : 7009 fi 7010else 7011 ac_cv_path_lt_DD=$lt_DD 7012fi 7013 7014rm -f conftest.i conftest2.i conftest.out 7015fi 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7017$as_echo "$ac_cv_path_lt_DD" >&6; } 7018 7019 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7021$as_echo_n "checking how to truncate binary pipes... " >&6; } 7022if ${lt_cv_truncate_bin+:} false; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 printf 0123456789abcdef0123456789abcdef >conftest.i 7026cat conftest.i conftest.i >conftest2.i 7027lt_cv_truncate_bin= 7028if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7029 cmp -s conftest.i conftest.out \ 7030 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7031fi 7032rm -f conftest.i conftest2.i conftest.out 7033test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7036$as_echo "$lt_cv_truncate_bin" >&6; } 7037 7038 7039 7040 7041 7042 7043# Check whether --enable-libtool-lock was given. 7044if test "${enable_libtool_lock+set}" = set; then : 7045 enableval=$enable_libtool_lock; 7046fi 7047 7048test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7049 7050# Some flags need to be propagated to the compiler or linker for good 7051# libtool support. 7052case $host in 7053ia64-*-hpux*) 7054 # Find out what ABI is being produced by ac_compile, and set mode 7055 # options accordingly. 7056 echo 'int i;' > conftest.$ac_ext 7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7058 (eval $ac_compile) 2>&5 7059 ac_status=$? 7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7061 test $ac_status = 0; }; then 7062 case `/usr/bin/file conftest.$ac_objext` in 7063 *ELF-32*) 7064 HPUX_IA64_MODE=32 7065 ;; 7066 *ELF-64*) 7067 HPUX_IA64_MODE=64 7068 ;; 7069 esac 7070 fi 7071 rm -rf conftest* 7072 ;; 7073*-*-irix6*) 7074 # Find out what ABI is being produced by ac_compile, and set linker 7075 # options accordingly. 7076 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7078 (eval $ac_compile) 2>&5 7079 ac_status=$? 7080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7081 test $ac_status = 0; }; then 7082 if test yes = "$lt_cv_prog_gnu_ld"; then 7083 case `/usr/bin/file conftest.$ac_objext` in 7084 *32-bit*) 7085 LD="${LD-ld} -melf32bsmip" 7086 ;; 7087 *N32*) 7088 LD="${LD-ld} -melf32bmipn32" 7089 ;; 7090 *64-bit*) 7091 LD="${LD-ld} -melf64bmip" 7092 ;; 7093 esac 7094 else 7095 case `/usr/bin/file conftest.$ac_objext` in 7096 *32-bit*) 7097 LD="${LD-ld} -32" 7098 ;; 7099 *N32*) 7100 LD="${LD-ld} -n32" 7101 ;; 7102 *64-bit*) 7103 LD="${LD-ld} -64" 7104 ;; 7105 esac 7106 fi 7107 fi 7108 rm -rf conftest* 7109 ;; 7110 7111mips64*-*linux*) 7112 # Find out what ABI is being produced by ac_compile, and set linker 7113 # options accordingly. 7114 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7116 (eval $ac_compile) 2>&5 7117 ac_status=$? 7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7119 test $ac_status = 0; }; then 7120 emul=elf 7121 case `/usr/bin/file conftest.$ac_objext` in 7122 *32-bit*) 7123 emul="${emul}32" 7124 ;; 7125 *64-bit*) 7126 emul="${emul}64" 7127 ;; 7128 esac 7129 case `/usr/bin/file conftest.$ac_objext` in 7130 *MSB*) 7131 emul="${emul}btsmip" 7132 ;; 7133 *LSB*) 7134 emul="${emul}ltsmip" 7135 ;; 7136 esac 7137 case `/usr/bin/file conftest.$ac_objext` in 7138 *N32*) 7139 emul="${emul}n32" 7140 ;; 7141 esac 7142 LD="${LD-ld} -m $emul" 7143 fi 7144 rm -rf conftest* 7145 ;; 7146 7147x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7148s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7149 # Find out what ABI is being produced by ac_compile, and set linker 7150 # options accordingly. Note that the listed cases only cover the 7151 # situations where additional linker options are needed (such as when 7152 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7153 # vice versa); the common cases where no linker options are needed do 7154 # not appear in the list. 7155 echo 'int i;' > conftest.$ac_ext 7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7157 (eval $ac_compile) 2>&5 7158 ac_status=$? 7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7160 test $ac_status = 0; }; then 7161 case `/usr/bin/file conftest.o` in 7162 *32-bit*) 7163 case $host in 7164 x86_64-*kfreebsd*-gnu) 7165 LD="${LD-ld} -m elf_i386_fbsd" 7166 ;; 7167 x86_64-*linux*) 7168 case `/usr/bin/file conftest.o` in 7169 *x86-64*) 7170 LD="${LD-ld} -m elf32_x86_64" 7171 ;; 7172 *) 7173 LD="${LD-ld} -m elf_i386" 7174 ;; 7175 esac 7176 ;; 7177 powerpc64le-*linux*) 7178 LD="${LD-ld} -m elf32lppclinux" 7179 ;; 7180 powerpc64-*linux*) 7181 LD="${LD-ld} -m elf32ppclinux" 7182 ;; 7183 s390x-*linux*) 7184 LD="${LD-ld} -m elf_s390" 7185 ;; 7186 sparc64-*linux*) 7187 LD="${LD-ld} -m elf32_sparc" 7188 ;; 7189 esac 7190 ;; 7191 *64-bit*) 7192 case $host in 7193 x86_64-*kfreebsd*-gnu) 7194 LD="${LD-ld} -m elf_x86_64_fbsd" 7195 ;; 7196 x86_64-*linux*) 7197 LD="${LD-ld} -m elf_x86_64" 7198 ;; 7199 powerpcle-*linux*) 7200 LD="${LD-ld} -m elf64lppc" 7201 ;; 7202 powerpc-*linux*) 7203 LD="${LD-ld} -m elf64ppc" 7204 ;; 7205 s390*-*linux*|s390*-*tpf*) 7206 LD="${LD-ld} -m elf64_s390" 7207 ;; 7208 sparc*-*linux*) 7209 LD="${LD-ld} -m elf64_sparc" 7210 ;; 7211 esac 7212 ;; 7213 esac 7214 fi 7215 rm -rf conftest* 7216 ;; 7217 7218*-*-sco3.2v5*) 7219 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7220 SAVE_CFLAGS=$CFLAGS 7221 CFLAGS="$CFLAGS -belf" 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7223$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7224if ${lt_cv_cc_needs_belf+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 ac_ext=c 7228ac_cpp='$CPP $CPPFLAGS' 7229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7231ac_compiler_gnu=$ac_cv_c_compiler_gnu 7232 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235 7236int 7237main () 7238{ 7239 7240 ; 7241 return 0; 7242} 7243_ACEOF 7244if ac_fn_c_try_link "$LINENO"; then : 7245 lt_cv_cc_needs_belf=yes 7246else 7247 lt_cv_cc_needs_belf=no 7248fi 7249rm -f core conftest.err conftest.$ac_objext \ 7250 conftest$ac_exeext conftest.$ac_ext 7251 ac_ext=c 7252ac_cpp='$CPP $CPPFLAGS' 7253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7255ac_compiler_gnu=$ac_cv_c_compiler_gnu 7256 7257fi 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7259$as_echo "$lt_cv_cc_needs_belf" >&6; } 7260 if test yes != "$lt_cv_cc_needs_belf"; then 7261 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7262 CFLAGS=$SAVE_CFLAGS 7263 fi 7264 ;; 7265*-*solaris*) 7266 # Find out what ABI is being produced by ac_compile, and set linker 7267 # options accordingly. 7268 echo 'int i;' > conftest.$ac_ext 7269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7270 (eval $ac_compile) 2>&5 7271 ac_status=$? 7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7273 test $ac_status = 0; }; then 7274 case `/usr/bin/file conftest.o` in 7275 *64-bit*) 7276 case $lt_cv_prog_gnu_ld in 7277 yes*) 7278 case $host in 7279 i?86-*-solaris*|x86_64-*-solaris*) 7280 LD="${LD-ld} -m elf_x86_64" 7281 ;; 7282 sparc*-*-solaris*) 7283 LD="${LD-ld} -m elf64_sparc" 7284 ;; 7285 esac 7286 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7287 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7288 LD=${LD-ld}_sol2 7289 fi 7290 ;; 7291 *) 7292 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7293 LD="${LD-ld} -64" 7294 fi 7295 ;; 7296 esac 7297 ;; 7298 esac 7299 fi 7300 rm -rf conftest* 7301 ;; 7302esac 7303 7304need_locks=$enable_libtool_lock 7305 7306if test -n "$ac_tool_prefix"; then 7307 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7308set dummy ${ac_tool_prefix}mt; ac_word=$2 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310$as_echo_n "checking for $ac_word... " >&6; } 7311if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 if test -n "$MANIFEST_TOOL"; then 7315 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7316else 7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318for as_dir in $PATH 7319do 7320 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 7322 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7324 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7326 break 2 7327 fi 7328done 7329 done 7330IFS=$as_save_IFS 7331 7332fi 7333fi 7334MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7335if test -n "$MANIFEST_TOOL"; then 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7337$as_echo "$MANIFEST_TOOL" >&6; } 7338else 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7340$as_echo "no" >&6; } 7341fi 7342 7343 7344fi 7345if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7346 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7347 # Extract the first word of "mt", so it can be a program name with args. 7348set dummy mt; ac_word=$2 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7350$as_echo_n "checking for $ac_word... " >&6; } 7351if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353else 7354 if test -n "$ac_ct_MANIFEST_TOOL"; then 7355 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7356else 7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7358for as_dir in $PATH 7359do 7360 IFS=$as_save_IFS 7361 test -z "$as_dir" && as_dir=. 7362 for ac_exec_ext in '' $ac_executable_extensions; do 7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7364 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7366 break 2 7367 fi 7368done 7369 done 7370IFS=$as_save_IFS 7371 7372fi 7373fi 7374ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7375if test -n "$ac_ct_MANIFEST_TOOL"; then 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7377$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7378else 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7380$as_echo "no" >&6; } 7381fi 7382 7383 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7384 MANIFEST_TOOL=":" 7385 else 7386 case $cross_compiling:$ac_tool_warned in 7387yes:) 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7390ac_tool_warned=yes ;; 7391esac 7392 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7393 fi 7394else 7395 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7396fi 7397 7398test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7400$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7401if ${lt_cv_path_mainfest_tool+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 lt_cv_path_mainfest_tool=no 7405 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7406 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7407 cat conftest.err >&5 7408 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7409 lt_cv_path_mainfest_tool=yes 7410 fi 7411 rm -f conftest* 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7414$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7415if test yes != "$lt_cv_path_mainfest_tool"; then 7416 MANIFEST_TOOL=: 7417fi 7418 7419 7420 7421 7422 7423 7424 case $host_os in 7425 rhapsody* | darwin*) 7426 if test -n "$ac_tool_prefix"; then 7427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7428set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7430$as_echo_n "checking for $ac_word... " >&6; } 7431if ${ac_cv_prog_DSYMUTIL+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 if test -n "$DSYMUTIL"; then 7435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448done 7449 done 7450IFS=$as_save_IFS 7451 7452fi 7453fi 7454DSYMUTIL=$ac_cv_prog_DSYMUTIL 7455if test -n "$DSYMUTIL"; then 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7457$as_echo "$DSYMUTIL" >&6; } 7458else 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7460$as_echo "no" >&6; } 7461fi 7462 7463 7464fi 7465if test -z "$ac_cv_prog_DSYMUTIL"; then 7466 ac_ct_DSYMUTIL=$DSYMUTIL 7467 # Extract the first word of "dsymutil", so it can be a program name with args. 7468set dummy dsymutil; ac_word=$2 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7470$as_echo_n "checking for $ac_word... " >&6; } 7471if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 if test -n "$ac_ct_DSYMUTIL"; then 7475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7476else 7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489 done 7490IFS=$as_save_IFS 7491 7492fi 7493fi 7494ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7495if test -n "$ac_ct_DSYMUTIL"; then 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7497$as_echo "$ac_ct_DSYMUTIL" >&6; } 7498else 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7500$as_echo "no" >&6; } 7501fi 7502 7503 if test "x$ac_ct_DSYMUTIL" = x; then 7504 DSYMUTIL=":" 7505 else 7506 case $cross_compiling:$ac_tool_warned in 7507yes:) 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7510ac_tool_warned=yes ;; 7511esac 7512 DSYMUTIL=$ac_ct_DSYMUTIL 7513 fi 7514else 7515 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7516fi 7517 7518 if test -n "$ac_tool_prefix"; then 7519 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7520set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7522$as_echo_n "checking for $ac_word... " >&6; } 7523if ${ac_cv_prog_NMEDIT+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 if test -n "$NMEDIT"; then 7527 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7528else 7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7530for as_dir in $PATH 7531do 7532 IFS=$as_save_IFS 7533 test -z "$as_dir" && as_dir=. 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7536 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7538 break 2 7539 fi 7540done 7541 done 7542IFS=$as_save_IFS 7543 7544fi 7545fi 7546NMEDIT=$ac_cv_prog_NMEDIT 7547if test -n "$NMEDIT"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7549$as_echo "$NMEDIT" >&6; } 7550else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7552$as_echo "no" >&6; } 7553fi 7554 7555 7556fi 7557if test -z "$ac_cv_prog_NMEDIT"; then 7558 ac_ct_NMEDIT=$NMEDIT 7559 # Extract the first word of "nmedit", so it can be a program name with args. 7560set dummy nmedit; ac_word=$2 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7562$as_echo_n "checking for $ac_word... " >&6; } 7563if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7564 $as_echo_n "(cached) " >&6 7565else 7566 if test -n "$ac_ct_NMEDIT"; then 7567 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7568else 7569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7570for as_dir in $PATH 7571do 7572 IFS=$as_save_IFS 7573 test -z "$as_dir" && as_dir=. 7574 for ac_exec_ext in '' $ac_executable_extensions; do 7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7576 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7578 break 2 7579 fi 7580done 7581 done 7582IFS=$as_save_IFS 7583 7584fi 7585fi 7586ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7587if test -n "$ac_ct_NMEDIT"; then 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7589$as_echo "$ac_ct_NMEDIT" >&6; } 7590else 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7592$as_echo "no" >&6; } 7593fi 7594 7595 if test "x$ac_ct_NMEDIT" = x; then 7596 NMEDIT=":" 7597 else 7598 case $cross_compiling:$ac_tool_warned in 7599yes:) 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7602ac_tool_warned=yes ;; 7603esac 7604 NMEDIT=$ac_ct_NMEDIT 7605 fi 7606else 7607 NMEDIT="$ac_cv_prog_NMEDIT" 7608fi 7609 7610 if test -n "$ac_tool_prefix"; then 7611 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7612set dummy ${ac_tool_prefix}lipo; ac_word=$2 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7614$as_echo_n "checking for $ac_word... " >&6; } 7615if ${ac_cv_prog_LIPO+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617else 7618 if test -n "$LIPO"; then 7619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7620else 7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7622for as_dir in $PATH 7623do 7624 IFS=$as_save_IFS 7625 test -z "$as_dir" && as_dir=. 7626 for ac_exec_ext in '' $ac_executable_extensions; do 7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7628 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7630 break 2 7631 fi 7632done 7633 done 7634IFS=$as_save_IFS 7635 7636fi 7637fi 7638LIPO=$ac_cv_prog_LIPO 7639if test -n "$LIPO"; then 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7641$as_echo "$LIPO" >&6; } 7642else 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7644$as_echo "no" >&6; } 7645fi 7646 7647 7648fi 7649if test -z "$ac_cv_prog_LIPO"; then 7650 ac_ct_LIPO=$LIPO 7651 # Extract the first word of "lipo", so it can be a program name with args. 7652set dummy lipo; ac_word=$2 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7654$as_echo_n "checking for $ac_word... " >&6; } 7655if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 if test -n "$ac_ct_LIPO"; then 7659 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7660else 7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7662for as_dir in $PATH 7663do 7664 IFS=$as_save_IFS 7665 test -z "$as_dir" && as_dir=. 7666 for ac_exec_ext in '' $ac_executable_extensions; do 7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7668 ac_cv_prog_ac_ct_LIPO="lipo" 7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7670 break 2 7671 fi 7672done 7673 done 7674IFS=$as_save_IFS 7675 7676fi 7677fi 7678ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7679if test -n "$ac_ct_LIPO"; then 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7681$as_echo "$ac_ct_LIPO" >&6; } 7682else 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7684$as_echo "no" >&6; } 7685fi 7686 7687 if test "x$ac_ct_LIPO" = x; then 7688 LIPO=":" 7689 else 7690 case $cross_compiling:$ac_tool_warned in 7691yes:) 7692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7694ac_tool_warned=yes ;; 7695esac 7696 LIPO=$ac_ct_LIPO 7697 fi 7698else 7699 LIPO="$ac_cv_prog_LIPO" 7700fi 7701 7702 if test -n "$ac_tool_prefix"; then 7703 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7704set dummy ${ac_tool_prefix}otool; ac_word=$2 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7706$as_echo_n "checking for $ac_word... " >&6; } 7707if ${ac_cv_prog_OTOOL+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 if test -n "$OTOOL"; then 7711 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7712else 7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7714for as_dir in $PATH 7715do 7716 IFS=$as_save_IFS 7717 test -z "$as_dir" && as_dir=. 7718 for ac_exec_ext in '' $ac_executable_extensions; do 7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7720 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7722 break 2 7723 fi 7724done 7725 done 7726IFS=$as_save_IFS 7727 7728fi 7729fi 7730OTOOL=$ac_cv_prog_OTOOL 7731if test -n "$OTOOL"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7733$as_echo "$OTOOL" >&6; } 7734else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736$as_echo "no" >&6; } 7737fi 7738 7739 7740fi 7741if test -z "$ac_cv_prog_OTOOL"; then 7742 ac_ct_OTOOL=$OTOOL 7743 # Extract the first word of "otool", so it can be a program name with args. 7744set dummy otool; ac_word=$2 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7746$as_echo_n "checking for $ac_word... " >&6; } 7747if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 if test -n "$ac_ct_OTOOL"; then 7751 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_prog_ac_ct_OTOOL="otool" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765 done 7766IFS=$as_save_IFS 7767 7768fi 7769fi 7770ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7771if test -n "$ac_ct_OTOOL"; then 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7773$as_echo "$ac_ct_OTOOL" >&6; } 7774else 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7776$as_echo "no" >&6; } 7777fi 7778 7779 if test "x$ac_ct_OTOOL" = x; then 7780 OTOOL=":" 7781 else 7782 case $cross_compiling:$ac_tool_warned in 7783yes:) 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7786ac_tool_warned=yes ;; 7787esac 7788 OTOOL=$ac_ct_OTOOL 7789 fi 7790else 7791 OTOOL="$ac_cv_prog_OTOOL" 7792fi 7793 7794 if test -n "$ac_tool_prefix"; then 7795 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7796set dummy ${ac_tool_prefix}otool64; ac_word=$2 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7798$as_echo_n "checking for $ac_word... " >&6; } 7799if ${ac_cv_prog_OTOOL64+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 if test -n "$OTOOL64"; then 7803 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7804else 7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7806for as_dir in $PATH 7807do 7808 IFS=$as_save_IFS 7809 test -z "$as_dir" && as_dir=. 7810 for ac_exec_ext in '' $ac_executable_extensions; do 7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7812 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7814 break 2 7815 fi 7816done 7817 done 7818IFS=$as_save_IFS 7819 7820fi 7821fi 7822OTOOL64=$ac_cv_prog_OTOOL64 7823if test -n "$OTOOL64"; then 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7825$as_echo "$OTOOL64" >&6; } 7826else 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7828$as_echo "no" >&6; } 7829fi 7830 7831 7832fi 7833if test -z "$ac_cv_prog_OTOOL64"; then 7834 ac_ct_OTOOL64=$OTOOL64 7835 # Extract the first word of "otool64", so it can be a program name with args. 7836set dummy otool64; ac_word=$2 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7838$as_echo_n "checking for $ac_word... " >&6; } 7839if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 if test -n "$ac_ct_OTOOL64"; then 7843 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7844else 7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7846for as_dir in $PATH 7847do 7848 IFS=$as_save_IFS 7849 test -z "$as_dir" && as_dir=. 7850 for ac_exec_ext in '' $ac_executable_extensions; do 7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7852 ac_cv_prog_ac_ct_OTOOL64="otool64" 7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7854 break 2 7855 fi 7856done 7857 done 7858IFS=$as_save_IFS 7859 7860fi 7861fi 7862ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7863if test -n "$ac_ct_OTOOL64"; then 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7865$as_echo "$ac_ct_OTOOL64" >&6; } 7866else 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7868$as_echo "no" >&6; } 7869fi 7870 7871 if test "x$ac_ct_OTOOL64" = x; then 7872 OTOOL64=":" 7873 else 7874 case $cross_compiling:$ac_tool_warned in 7875yes:) 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7878ac_tool_warned=yes ;; 7879esac 7880 OTOOL64=$ac_ct_OTOOL64 7881 fi 7882else 7883 OTOOL64="$ac_cv_prog_OTOOL64" 7884fi 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7913$as_echo_n "checking for -single_module linker flag... " >&6; } 7914if ${lt_cv_apple_cc_single_mod+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 lt_cv_apple_cc_single_mod=no 7918 if test -z "$LT_MULTI_MODULE"; then 7919 # By default we will add the -single_module flag. You can override 7920 # by either setting the environment variable LT_MULTI_MODULE 7921 # non-empty at configure time, or by adding -multi_module to the 7922 # link flags. 7923 rm -rf libconftest.dylib* 7924 echo "int foo(void){return 1;}" > conftest.c 7925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7926-dynamiclib -Wl,-single_module conftest.c" >&5 7927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7929 _lt_result=$? 7930 # If there is a non-empty error log, and "single_module" 7931 # appears in it, assume the flag caused a linker warning 7932 if test -s conftest.err && $GREP single_module conftest.err; then 7933 cat conftest.err >&5 7934 # Otherwise, if the output was created with a 0 exit code from 7935 # the compiler, it worked. 7936 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7937 lt_cv_apple_cc_single_mod=yes 7938 else 7939 cat conftest.err >&5 7940 fi 7941 rm -rf libconftest.dylib* 7942 rm -f conftest.* 7943 fi 7944fi 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7946$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7947 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7949$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7950if ${lt_cv_ld_exported_symbols_list+:} false; then : 7951 $as_echo_n "(cached) " >&6 7952else 7953 lt_cv_ld_exported_symbols_list=no 7954 save_LDFLAGS=$LDFLAGS 7955 echo "_main" > conftest.sym 7956 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958/* end confdefs.h. */ 7959 7960int 7961main () 7962{ 7963 7964 ; 7965 return 0; 7966} 7967_ACEOF 7968if ac_fn_c_try_link "$LINENO"; then : 7969 lt_cv_ld_exported_symbols_list=yes 7970else 7971 lt_cv_ld_exported_symbols_list=no 7972fi 7973rm -f core conftest.err conftest.$ac_objext \ 7974 conftest$ac_exeext conftest.$ac_ext 7975 LDFLAGS=$save_LDFLAGS 7976 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7979$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7980 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7982$as_echo_n "checking for -force_load linker flag... " >&6; } 7983if ${lt_cv_ld_force_load+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 lt_cv_ld_force_load=no 7987 cat > conftest.c << _LT_EOF 7988int forced_loaded() { return 2;} 7989_LT_EOF 7990 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7991 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7992 echo "$AR cru libconftest.a conftest.o" >&5 7993 $AR cru libconftest.a conftest.o 2>&5 7994 echo "$RANLIB libconftest.a" >&5 7995 $RANLIB libconftest.a 2>&5 7996 cat > conftest.c << _LT_EOF 7997int main() { return 0;} 7998_LT_EOF 7999 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8000 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8001 _lt_result=$? 8002 if test -s conftest.err && $GREP force_load conftest.err; then 8003 cat conftest.err >&5 8004 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8005 lt_cv_ld_force_load=yes 8006 else 8007 cat conftest.err >&5 8008 fi 8009 rm -f conftest.err libconftest.a conftest conftest.c 8010 rm -rf conftest.dSYM 8011 8012fi 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8014$as_echo "$lt_cv_ld_force_load" >&6; } 8015 case $host_os in 8016 rhapsody* | darwin1.[012]) 8017 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8018 darwin1.*) 8019 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8020 darwin*) # darwin 5.x on 8021 # if running on 10.5 or later, the deployment target defaults 8022 # to the OS version, if on x86, and 10.4, the deployment 8023 # target defaults to 10.4. Don't you love it? 8024 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8025 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8026 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8027 10.[012][,.]*) 8028 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8029 10.*) 8030 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8031 esac 8032 ;; 8033 esac 8034 if test yes = "$lt_cv_apple_cc_single_mod"; then 8035 _lt_dar_single_mod='$single_module' 8036 fi 8037 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8038 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8039 else 8040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8041 fi 8042 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8043 _lt_dsymutil='~$DSYMUTIL $lib || :' 8044 else 8045 _lt_dsymutil= 8046 fi 8047 ;; 8048 esac 8049 8050ac_ext=c 8051ac_cpp='$CPP $CPPFLAGS' 8052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8054ac_compiler_gnu=$ac_cv_c_compiler_gnu 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8056$as_echo_n "checking how to run the C preprocessor... " >&6; } 8057# On Suns, sometimes $CPP names a directory. 8058if test -n "$CPP" && test -d "$CPP"; then 8059 CPP= 8060fi 8061if test -z "$CPP"; then 8062 if ${ac_cv_prog_CPP+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 # Double quotes because CPP needs to be expanded 8066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8067 do 8068 ac_preproc_ok=false 8069for ac_c_preproc_warn_flag in '' yes 8070do 8071 # Use a header file that comes with gcc, so configuring glibc 8072 # with a fresh cross-compiler works. 8073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8074 # <limits.h> exists even on freestanding compilers. 8075 # On the NeXT, cc -E runs the code through the compiler's parser, 8076 # not just through cpp. "Syntax error" is here to catch this case. 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079#ifdef __STDC__ 8080# include <limits.h> 8081#else 8082# include <assert.h> 8083#endif 8084 Syntax error 8085_ACEOF 8086if ac_fn_c_try_cpp "$LINENO"; then : 8087 8088else 8089 # Broken: fails on valid input. 8090continue 8091fi 8092rm -f conftest.err conftest.i conftest.$ac_ext 8093 8094 # OK, works on sane cases. Now check whether nonexistent headers 8095 # can be detected and how. 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098#include <ac_nonexistent.h> 8099_ACEOF 8100if ac_fn_c_try_cpp "$LINENO"; then : 8101 # Broken: success on invalid input. 8102continue 8103else 8104 # Passes both tests. 8105ac_preproc_ok=: 8106break 8107fi 8108rm -f conftest.err conftest.i conftest.$ac_ext 8109 8110done 8111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8112rm -f conftest.i conftest.err conftest.$ac_ext 8113if $ac_preproc_ok; then : 8114 break 8115fi 8116 8117 done 8118 ac_cv_prog_CPP=$CPP 8119 8120fi 8121 CPP=$ac_cv_prog_CPP 8122else 8123 ac_cv_prog_CPP=$CPP 8124fi 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8126$as_echo "$CPP" >&6; } 8127ac_preproc_ok=false 8128for ac_c_preproc_warn_flag in '' yes 8129do 8130 # Use a header file that comes with gcc, so configuring glibc 8131 # with a fresh cross-compiler works. 8132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8133 # <limits.h> exists even on freestanding compilers. 8134 # On the NeXT, cc -E runs the code through the compiler's parser, 8135 # not just through cpp. "Syntax error" is here to catch this case. 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137/* end confdefs.h. */ 8138#ifdef __STDC__ 8139# include <limits.h> 8140#else 8141# include <assert.h> 8142#endif 8143 Syntax error 8144_ACEOF 8145if ac_fn_c_try_cpp "$LINENO"; then : 8146 8147else 8148 # Broken: fails on valid input. 8149continue 8150fi 8151rm -f conftest.err conftest.i conftest.$ac_ext 8152 8153 # OK, works on sane cases. Now check whether nonexistent headers 8154 # can be detected and how. 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157#include <ac_nonexistent.h> 8158_ACEOF 8159if ac_fn_c_try_cpp "$LINENO"; then : 8160 # Broken: success on invalid input. 8161continue 8162else 8163 # Passes both tests. 8164ac_preproc_ok=: 8165break 8166fi 8167rm -f conftest.err conftest.i conftest.$ac_ext 8168 8169done 8170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8171rm -f conftest.i conftest.err conftest.$ac_ext 8172if $ac_preproc_ok; then : 8173 8174else 8175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8177as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8178See \`config.log' for more details" "$LINENO" 5; } 8179fi 8180 8181ac_ext=c 8182ac_cpp='$CPP $CPPFLAGS' 8183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8185ac_compiler_gnu=$ac_cv_c_compiler_gnu 8186 8187 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8189$as_echo_n "checking for ANSI C header files... " >&6; } 8190if ${ac_cv_header_stdc+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194/* end confdefs.h. */ 8195#include <stdlib.h> 8196#include <stdarg.h> 8197#include <string.h> 8198#include <float.h> 8199 8200int 8201main () 8202{ 8203 8204 ; 8205 return 0; 8206} 8207_ACEOF 8208if ac_fn_c_try_compile "$LINENO"; then : 8209 ac_cv_header_stdc=yes 8210else 8211 ac_cv_header_stdc=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8214 8215if test $ac_cv_header_stdc = yes; then 8216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8218/* end confdefs.h. */ 8219#include <string.h> 8220 8221_ACEOF 8222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8223 $EGREP "memchr" >/dev/null 2>&1; then : 8224 8225else 8226 ac_cv_header_stdc=no 8227fi 8228rm -f conftest* 8229 8230fi 8231 8232if test $ac_cv_header_stdc = yes; then 8233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235/* end confdefs.h. */ 8236#include <stdlib.h> 8237 8238_ACEOF 8239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8240 $EGREP "free" >/dev/null 2>&1; then : 8241 8242else 8243 ac_cv_header_stdc=no 8244fi 8245rm -f conftest* 8246 8247fi 8248 8249if test $ac_cv_header_stdc = yes; then 8250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8251 if test "$cross_compiling" = yes; then : 8252 : 8253else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256#include <ctype.h> 8257#include <stdlib.h> 8258#if ((' ' & 0x0FF) == 0x020) 8259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8261#else 8262# define ISLOWER(c) \ 8263 (('a' <= (c) && (c) <= 'i') \ 8264 || ('j' <= (c) && (c) <= 'r') \ 8265 || ('s' <= (c) && (c) <= 'z')) 8266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8267#endif 8268 8269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8270int 8271main () 8272{ 8273 int i; 8274 for (i = 0; i < 256; i++) 8275 if (XOR (islower (i), ISLOWER (i)) 8276 || toupper (i) != TOUPPER (i)) 8277 return 2; 8278 return 0; 8279} 8280_ACEOF 8281if ac_fn_c_try_run "$LINENO"; then : 8282 8283else 8284 ac_cv_header_stdc=no 8285fi 8286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8287 conftest.$ac_objext conftest.beam conftest.$ac_ext 8288fi 8289 8290fi 8291fi 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8293$as_echo "$ac_cv_header_stdc" >&6; } 8294if test $ac_cv_header_stdc = yes; then 8295 8296$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8297 8298fi 8299 8300# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8301for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8302 inttypes.h stdint.h unistd.h 8303do : 8304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8305ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8306" 8307if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8308 cat >>confdefs.h <<_ACEOF 8309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8310_ACEOF 8311 8312fi 8313 8314done 8315 8316 8317for ac_header in dlfcn.h 8318do : 8319 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8320" 8321if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8322 cat >>confdefs.h <<_ACEOF 8323#define HAVE_DLFCN_H 1 8324_ACEOF 8325 8326fi 8327 8328done 8329 8330 8331 8332 8333 8334# Set options 8335enable_win32_dll=yes 8336 8337case $host in 8338*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8339 if test -n "$ac_tool_prefix"; then 8340 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8341set dummy ${ac_tool_prefix}as; ac_word=$2 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8343$as_echo_n "checking for $ac_word... " >&6; } 8344if ${ac_cv_prog_AS+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 if test -n "$AS"; then 8348 ac_cv_prog_AS="$AS" # Let the user override the test. 8349else 8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8351for as_dir in $PATH 8352do 8353 IFS=$as_save_IFS 8354 test -z "$as_dir" && as_dir=. 8355 for ac_exec_ext in '' $ac_executable_extensions; do 8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8357 ac_cv_prog_AS="${ac_tool_prefix}as" 8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8359 break 2 8360 fi 8361done 8362 done 8363IFS=$as_save_IFS 8364 8365fi 8366fi 8367AS=$ac_cv_prog_AS 8368if test -n "$AS"; then 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8370$as_echo "$AS" >&6; } 8371else 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8373$as_echo "no" >&6; } 8374fi 8375 8376 8377fi 8378if test -z "$ac_cv_prog_AS"; then 8379 ac_ct_AS=$AS 8380 # Extract the first word of "as", so it can be a program name with args. 8381set dummy as; ac_word=$2 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383$as_echo_n "checking for $ac_word... " >&6; } 8384if ${ac_cv_prog_ac_ct_AS+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test -n "$ac_ct_AS"; then 8388 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8389else 8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391for as_dir in $PATH 8392do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_prog_ac_ct_AS="as" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi 8406fi 8407ac_ct_AS=$ac_cv_prog_ac_ct_AS 8408if test -n "$ac_ct_AS"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8410$as_echo "$ac_ct_AS" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 if test "x$ac_ct_AS" = x; then 8417 AS="false" 8418 else 8419 case $cross_compiling:$ac_tool_warned in 8420yes:) 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8423ac_tool_warned=yes ;; 8424esac 8425 AS=$ac_ct_AS 8426 fi 8427else 8428 AS="$ac_cv_prog_AS" 8429fi 8430 8431 if test -n "$ac_tool_prefix"; then 8432 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8433set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8435$as_echo_n "checking for $ac_word... " >&6; } 8436if ${ac_cv_prog_DLLTOOL+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 if test -n "$DLLTOOL"; then 8440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8441else 8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8443for as_dir in $PATH 8444do 8445 IFS=$as_save_IFS 8446 test -z "$as_dir" && as_dir=. 8447 for ac_exec_ext in '' $ac_executable_extensions; do 8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8449 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8451 break 2 8452 fi 8453done 8454 done 8455IFS=$as_save_IFS 8456 8457fi 8458fi 8459DLLTOOL=$ac_cv_prog_DLLTOOL 8460if test -n "$DLLTOOL"; then 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8462$as_echo "$DLLTOOL" >&6; } 8463else 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8465$as_echo "no" >&6; } 8466fi 8467 8468 8469fi 8470if test -z "$ac_cv_prog_DLLTOOL"; then 8471 ac_ct_DLLTOOL=$DLLTOOL 8472 # Extract the first word of "dlltool", so it can be a program name with args. 8473set dummy dlltool; ac_word=$2 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8475$as_echo_n "checking for $ac_word... " >&6; } 8476if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 if test -n "$ac_ct_DLLTOOL"; then 8480 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8481else 8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8483for as_dir in $PATH 8484do 8485 IFS=$as_save_IFS 8486 test -z "$as_dir" && as_dir=. 8487 for ac_exec_ext in '' $ac_executable_extensions; do 8488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8489 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8491 break 2 8492 fi 8493done 8494 done 8495IFS=$as_save_IFS 8496 8497fi 8498fi 8499ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8500if test -n "$ac_ct_DLLTOOL"; then 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8502$as_echo "$ac_ct_DLLTOOL" >&6; } 8503else 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8505$as_echo "no" >&6; } 8506fi 8507 8508 if test "x$ac_ct_DLLTOOL" = x; then 8509 DLLTOOL="false" 8510 else 8511 case $cross_compiling:$ac_tool_warned in 8512yes:) 8513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8515ac_tool_warned=yes ;; 8516esac 8517 DLLTOOL=$ac_ct_DLLTOOL 8518 fi 8519else 8520 DLLTOOL="$ac_cv_prog_DLLTOOL" 8521fi 8522 8523 if test -n "$ac_tool_prefix"; then 8524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8525set dummy ${ac_tool_prefix}objdump; ac_word=$2 8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8527$as_echo_n "checking for $ac_word... " >&6; } 8528if ${ac_cv_prog_OBJDUMP+:} false; then : 8529 $as_echo_n "(cached) " >&6 8530else 8531 if test -n "$OBJDUMP"; then 8532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8533else 8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8535for as_dir in $PATH 8536do 8537 IFS=$as_save_IFS 8538 test -z "$as_dir" && as_dir=. 8539 for ac_exec_ext in '' $ac_executable_extensions; do 8540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8543 break 2 8544 fi 8545done 8546 done 8547IFS=$as_save_IFS 8548 8549fi 8550fi 8551OBJDUMP=$ac_cv_prog_OBJDUMP 8552if test -n "$OBJDUMP"; then 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8554$as_echo "$OBJDUMP" >&6; } 8555else 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8557$as_echo "no" >&6; } 8558fi 8559 8560 8561fi 8562if test -z "$ac_cv_prog_OBJDUMP"; then 8563 ac_ct_OBJDUMP=$OBJDUMP 8564 # Extract the first word of "objdump", so it can be a program name with args. 8565set dummy objdump; ac_word=$2 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8567$as_echo_n "checking for $ac_word... " >&6; } 8568if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570else 8571 if test -n "$ac_ct_OBJDUMP"; then 8572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8573else 8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8575for as_dir in $PATH 8576do 8577 IFS=$as_save_IFS 8578 test -z "$as_dir" && as_dir=. 8579 for ac_exec_ext in '' $ac_executable_extensions; do 8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8581 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8583 break 2 8584 fi 8585done 8586 done 8587IFS=$as_save_IFS 8588 8589fi 8590fi 8591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8592if test -n "$ac_ct_OBJDUMP"; then 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8594$as_echo "$ac_ct_OBJDUMP" >&6; } 8595else 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597$as_echo "no" >&6; } 8598fi 8599 8600 if test "x$ac_ct_OBJDUMP" = x; then 8601 OBJDUMP="false" 8602 else 8603 case $cross_compiling:$ac_tool_warned in 8604yes:) 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8607ac_tool_warned=yes ;; 8608esac 8609 OBJDUMP=$ac_ct_OBJDUMP 8610 fi 8611else 8612 OBJDUMP="$ac_cv_prog_OBJDUMP" 8613fi 8614 8615 ;; 8616esac 8617 8618test -z "$AS" && AS=as 8619 8620 8621 8622 8623 8624test -z "$DLLTOOL" && DLLTOOL=dlltool 8625 8626 8627 8628 8629 8630test -z "$OBJDUMP" && OBJDUMP=objdump 8631 8632 8633 8634 8635 8636 8637 8638 enable_dlopen=no 8639 8640 8641 8642 # Check whether --enable-shared was given. 8643if test "${enable_shared+set}" = set; then : 8644 enableval=$enable_shared; p=${PACKAGE-default} 8645 case $enableval in 8646 yes) enable_shared=yes ;; 8647 no) enable_shared=no ;; 8648 *) 8649 enable_shared=no 8650 # Look at the argument we got. We use all the common list separators. 8651 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8652 for pkg in $enableval; do 8653 IFS=$lt_save_ifs 8654 if test "X$pkg" = "X$p"; then 8655 enable_shared=yes 8656 fi 8657 done 8658 IFS=$lt_save_ifs 8659 ;; 8660 esac 8661else 8662 enable_shared=yes 8663fi 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 # Check whether --enable-static was given. 8674if test "${enable_static+set}" = set; then : 8675 enableval=$enable_static; p=${PACKAGE-default} 8676 case $enableval in 8677 yes) enable_static=yes ;; 8678 no) enable_static=no ;; 8679 *) 8680 enable_static=no 8681 # Look at the argument we got. We use all the common list separators. 8682 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8683 for pkg in $enableval; do 8684 IFS=$lt_save_ifs 8685 if test "X$pkg" = "X$p"; then 8686 enable_static=yes 8687 fi 8688 done 8689 IFS=$lt_save_ifs 8690 ;; 8691 esac 8692else 8693 enable_static=yes 8694fi 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705# Check whether --with-pic was given. 8706if test "${with_pic+set}" = set; then : 8707 withval=$with_pic; lt_p=${PACKAGE-default} 8708 case $withval in 8709 yes|no) pic_mode=$withval ;; 8710 *) 8711 pic_mode=default 8712 # Look at the argument we got. We use all the common list separators. 8713 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8714 for lt_pkg in $withval; do 8715 IFS=$lt_save_ifs 8716 if test "X$lt_pkg" = "X$lt_p"; then 8717 pic_mode=yes 8718 fi 8719 done 8720 IFS=$lt_save_ifs 8721 ;; 8722 esac 8723else 8724 pic_mode=default 8725fi 8726 8727 8728 8729 8730 8731 8732 8733 8734 # Check whether --enable-fast-install was given. 8735if test "${enable_fast_install+set}" = set; then : 8736 enableval=$enable_fast_install; p=${PACKAGE-default} 8737 case $enableval in 8738 yes) enable_fast_install=yes ;; 8739 no) enable_fast_install=no ;; 8740 *) 8741 enable_fast_install=no 8742 # Look at the argument we got. We use all the common list separators. 8743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8744 for pkg in $enableval; do 8745 IFS=$lt_save_ifs 8746 if test "X$pkg" = "X$p"; then 8747 enable_fast_install=yes 8748 fi 8749 done 8750 IFS=$lt_save_ifs 8751 ;; 8752 esac 8753else 8754 enable_fast_install=yes 8755fi 8756 8757 8758 8759 8760 8761 8762 8763 8764 shared_archive_member_spec= 8765case $host,$enable_shared in 8766power*-*-aix[5-9]*,yes) 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8768$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8769 8770# Check whether --with-aix-soname was given. 8771if test "${with_aix_soname+set}" = set; then : 8772 withval=$with_aix_soname; case $withval in 8773 aix|svr4|both) 8774 ;; 8775 *) 8776 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8777 ;; 8778 esac 8779 lt_cv_with_aix_soname=$with_aix_soname 8780else 8781 if ${lt_cv_with_aix_soname+:} false; then : 8782 $as_echo_n "(cached) " >&6 8783else 8784 lt_cv_with_aix_soname=aix 8785fi 8786 8787 with_aix_soname=$lt_cv_with_aix_soname 8788fi 8789 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8791$as_echo "$with_aix_soname" >&6; } 8792 if test aix != "$with_aix_soname"; then 8793 # For the AIX way of multilib, we name the shared archive member 8794 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8795 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8796 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8797 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8798 if test 64 = "${OBJECT_MODE-32}"; then 8799 shared_archive_member_spec=shr_64 8800 else 8801 shared_archive_member_spec=shr 8802 fi 8803 fi 8804 ;; 8805*) 8806 with_aix_soname=aix 8807 ;; 8808esac 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819# This can be used to rebuild libtool when needed 8820LIBTOOL_DEPS=$ltmain 8821 8822# Always use our own libtool. 8823LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854test -z "$LN_S" && LN_S="ln -s" 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869if test -n "${ZSH_VERSION+set}"; then 8870 setopt NO_GLOB_SUBST 8871fi 8872 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8874$as_echo_n "checking for objdir... " >&6; } 8875if ${lt_cv_objdir+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 rm -f .libs 2>/dev/null 8879mkdir .libs 2>/dev/null 8880if test -d .libs; then 8881 lt_cv_objdir=.libs 8882else 8883 # MS-DOS does not allow filenames that begin with a dot. 8884 lt_cv_objdir=_libs 8885fi 8886rmdir .libs 2>/dev/null 8887fi 8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8889$as_echo "$lt_cv_objdir" >&6; } 8890objdir=$lt_cv_objdir 8891 8892 8893 8894 8895 8896cat >>confdefs.h <<_ACEOF 8897#define LT_OBJDIR "$lt_cv_objdir/" 8898_ACEOF 8899 8900 8901 8902 8903case $host_os in 8904aix3*) 8905 # AIX sometimes has problems with the GCC collect2 program. For some 8906 # reason, if we set the COLLECT_NAMES environment variable, the problems 8907 # vanish in a puff of smoke. 8908 if test set != "${COLLECT_NAMES+set}"; then 8909 COLLECT_NAMES= 8910 export COLLECT_NAMES 8911 fi 8912 ;; 8913esac 8914 8915# Global variables: 8916ofile=libtool 8917can_build_shared=yes 8918 8919# All known linkers require a '.a' archive for static linking (except MSVC, 8920# which needs '.lib'). 8921libext=a 8922 8923with_gnu_ld=$lt_cv_prog_gnu_ld 8924 8925old_CC=$CC 8926old_CFLAGS=$CFLAGS 8927 8928# Set sane defaults for various variables 8929test -z "$CC" && CC=cc 8930test -z "$LTCC" && LTCC=$CC 8931test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8932test -z "$LD" && LD=ld 8933test -z "$ac_objext" && ac_objext=o 8934 8935for cc_temp in $compiler""; do 8936 case $cc_temp in 8937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8939 \-*) ;; 8940 *) break;; 8941 esac 8942done 8943cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8944 8945 8946# Only perform the check for file, if the check method requires it 8947test -z "$MAGIC_CMD" && MAGIC_CMD=file 8948case $deplibs_check_method in 8949file_magic*) 8950 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8952$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8953if ${lt_cv_path_MAGIC_CMD+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955else 8956 case $MAGIC_CMD in 8957[\\/*] | ?:[\\/]*) 8958 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8959 ;; 8960*) 8961 lt_save_MAGIC_CMD=$MAGIC_CMD 8962 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8964 for ac_dir in $ac_dummy; do 8965 IFS=$lt_save_ifs 8966 test -z "$ac_dir" && ac_dir=. 8967 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8968 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8969 if test -n "$file_magic_test_file"; then 8970 case $deplibs_check_method in 8971 "file_magic "*) 8972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8973 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8975 $EGREP "$file_magic_regex" > /dev/null; then 8976 : 8977 else 8978 cat <<_LT_EOF 1>&2 8979 8980*** Warning: the command libtool uses to detect shared libraries, 8981*** $file_magic_cmd, produces output that libtool cannot recognize. 8982*** The result is that libtool may fail to recognize shared libraries 8983*** as such. This will affect the creation of libtool libraries that 8984*** depend on shared libraries, but programs linked with such libtool 8985*** libraries will work regardless of this problem. Nevertheless, you 8986*** may want to report the problem to your system manager and/or to 8987*** [email protected] 8988 8989_LT_EOF 8990 fi ;; 8991 esac 8992 fi 8993 break 8994 fi 8995 done 8996 IFS=$lt_save_ifs 8997 MAGIC_CMD=$lt_save_MAGIC_CMD 8998 ;; 8999esac 9000fi 9001 9002MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9003if test -n "$MAGIC_CMD"; then 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9005$as_echo "$MAGIC_CMD" >&6; } 9006else 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9008$as_echo "no" >&6; } 9009fi 9010 9011 9012 9013 9014 9015if test -z "$lt_cv_path_MAGIC_CMD"; then 9016 if test -n "$ac_tool_prefix"; then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9018$as_echo_n "checking for file... " >&6; } 9019if ${lt_cv_path_MAGIC_CMD+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 case $MAGIC_CMD in 9023[\\/*] | ?:[\\/]*) 9024 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9025 ;; 9026*) 9027 lt_save_MAGIC_CMD=$MAGIC_CMD 9028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9029 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9030 for ac_dir in $ac_dummy; do 9031 IFS=$lt_save_ifs 9032 test -z "$ac_dir" && ac_dir=. 9033 if test -f "$ac_dir/file"; then 9034 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9035 if test -n "$file_magic_test_file"; then 9036 case $deplibs_check_method in 9037 "file_magic "*) 9038 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9039 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9040 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9041 $EGREP "$file_magic_regex" > /dev/null; then 9042 : 9043 else 9044 cat <<_LT_EOF 1>&2 9045 9046*** Warning: the command libtool uses to detect shared libraries, 9047*** $file_magic_cmd, produces output that libtool cannot recognize. 9048*** The result is that libtool may fail to recognize shared libraries 9049*** as such. This will affect the creation of libtool libraries that 9050*** depend on shared libraries, but programs linked with such libtool 9051*** libraries will work regardless of this problem. Nevertheless, you 9052*** may want to report the problem to your system manager and/or to 9053*** [email protected] 9054 9055_LT_EOF 9056 fi ;; 9057 esac 9058 fi 9059 break 9060 fi 9061 done 9062 IFS=$lt_save_ifs 9063 MAGIC_CMD=$lt_save_MAGIC_CMD 9064 ;; 9065esac 9066fi 9067 9068MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9069if test -n "$MAGIC_CMD"; then 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9071$as_echo "$MAGIC_CMD" >&6; } 9072else 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9074$as_echo "no" >&6; } 9075fi 9076 9077 9078 else 9079 MAGIC_CMD=: 9080 fi 9081fi 9082 9083 fi 9084 ;; 9085esac 9086 9087# Use C for the default configuration in the libtool script 9088 9089lt_save_CC=$CC 9090ac_ext=c 9091ac_cpp='$CPP $CPPFLAGS' 9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9094ac_compiler_gnu=$ac_cv_c_compiler_gnu 9095 9096 9097# Source file extension for C test sources. 9098ac_ext=c 9099 9100# Object file extension for compiled C test sources. 9101objext=o 9102objext=$objext 9103 9104# Code to be used in simple compile tests 9105lt_simple_compile_test_code="int some_variable = 0;" 9106 9107# Code to be used in simple link tests 9108lt_simple_link_test_code='int main(){return(0);}' 9109 9110 9111 9112 9113 9114 9115 9116# If no C compiler was specified, use CC. 9117LTCC=${LTCC-"$CC"} 9118 9119# If no C compiler flags were specified, use CFLAGS. 9120LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9121 9122# Allow CC to be a program name with arguments. 9123compiler=$CC 9124 9125# Save the default compiler, since it gets overwritten when the other 9126# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9127compiler_DEFAULT=$CC 9128 9129# save warnings/boilerplate of simple test code 9130ac_outfile=conftest.$ac_objext 9131echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9133_lt_compiler_boilerplate=`cat conftest.err` 9134$RM conftest* 9135 9136ac_outfile=conftest.$ac_objext 9137echo "$lt_simple_link_test_code" >conftest.$ac_ext 9138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9139_lt_linker_boilerplate=`cat conftest.err` 9140$RM -r conftest* 9141 9142 9143## CAVEAT EMPTOR: 9144## There is no encapsulation within the following macros, do not change 9145## the running order or otherwise move them around unless you know exactly 9146## what you are doing... 9147if test -n "$compiler"; then 9148 9149lt_prog_compiler_no_builtin_flag= 9150 9151if test yes = "$GCC"; then 9152 case $cc_basename in 9153 nvcc*) 9154 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9155 *) 9156 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9157 esac 9158 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9160$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9161if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9162 $as_echo_n "(cached) " >&6 9163else 9164 lt_cv_prog_compiler_rtti_exceptions=no 9165 ac_outfile=conftest.$ac_objext 9166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9167 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9168 # Insert the option either (1) after the last *FLAGS variable, or 9169 # (2) before a word containing "conftest.", or (3) at the end. 9170 # Note that $ac_compile itself does not contain backslashes and begins 9171 # with a dollar sign (not a hyphen), so the echo should work correctly. 9172 # The option is referenced via a variable to avoid confusing sed. 9173 lt_compile=`echo "$ac_compile" | $SED \ 9174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9176 -e 's:$: $lt_compiler_flag:'` 9177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9178 (eval "$lt_compile" 2>conftest.err) 9179 ac_status=$? 9180 cat conftest.err >&5 9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9182 if (exit $ac_status) && test -s "$ac_outfile"; then 9183 # The compiler can only warn and ignore the option if not recognized 9184 # So say no if there are warnings other than the usual output. 9185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9188 lt_cv_prog_compiler_rtti_exceptions=yes 9189 fi 9190 fi 9191 $RM conftest* 9192 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9195$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9196 9197if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9198 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9199else 9200 : 9201fi 9202 9203fi 9204 9205 9206 9207 9208 9209 9210 lt_prog_compiler_wl= 9211lt_prog_compiler_pic= 9212lt_prog_compiler_static= 9213 9214 9215 if test yes = "$GCC"; then 9216 lt_prog_compiler_wl='-Wl,' 9217 lt_prog_compiler_static='-static' 9218 9219 case $host_os in 9220 aix*) 9221 # All AIX code is PIC. 9222 if test ia64 = "$host_cpu"; then 9223 # AIX 5 now supports IA64 processor 9224 lt_prog_compiler_static='-Bstatic' 9225 fi 9226 lt_prog_compiler_pic='-fPIC' 9227 ;; 9228 9229 amigaos*) 9230 case $host_cpu in 9231 powerpc) 9232 # see comment about AmigaOS4 .so support 9233 lt_prog_compiler_pic='-fPIC' 9234 ;; 9235 m68k) 9236 # FIXME: we need at least 68020 code to build shared libraries, but 9237 # adding the '-m68020' flag to GCC prevents building anything better, 9238 # like '-m68040'. 9239 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9240 ;; 9241 esac 9242 ;; 9243 9244 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9245 # PIC is the default for these OSes. 9246 ;; 9247 9248 mingw* | cygwin* | pw32* | os2* | cegcc*) 9249 # This hack is so that the source file can tell whether it is being 9250 # built for inclusion in a dll (and should export symbols for example). 9251 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9252 # (--disable-auto-import) libraries 9253 lt_prog_compiler_pic='-DDLL_EXPORT' 9254 case $host_os in 9255 os2*) 9256 lt_prog_compiler_static='$wl-static' 9257 ;; 9258 esac 9259 ;; 9260 9261 darwin* | rhapsody*) 9262 # PIC is the default on this platform 9263 # Common symbols not allowed in MH_DYLIB files 9264 lt_prog_compiler_pic='-fno-common' 9265 ;; 9266 9267 haiku*) 9268 # PIC is the default for Haiku. 9269 # The "-static" flag exists, but is broken. 9270 lt_prog_compiler_static= 9271 ;; 9272 9273 hpux*) 9274 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9275 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9276 # sets the default TLS model and affects inlining. 9277 case $host_cpu in 9278 hppa*64*) 9279 # +Z the default 9280 ;; 9281 *) 9282 lt_prog_compiler_pic='-fPIC' 9283 ;; 9284 esac 9285 ;; 9286 9287 interix[3-9]*) 9288 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9289 # Instead, we relocate shared libraries at runtime. 9290 ;; 9291 9292 msdosdjgpp*) 9293 # Just because we use GCC doesn't mean we suddenly get shared libraries 9294 # on systems that don't support them. 9295 lt_prog_compiler_can_build_shared=no 9296 enable_shared=no 9297 ;; 9298 9299 *nto* | *qnx*) 9300 # QNX uses GNU C++, but need to define -shared option too, otherwise 9301 # it will coredump. 9302 lt_prog_compiler_pic='-fPIC -shared' 9303 ;; 9304 9305 sysv4*MP*) 9306 if test -d /usr/nec; then 9307 lt_prog_compiler_pic=-Kconform_pic 9308 fi 9309 ;; 9310 9311 *) 9312 lt_prog_compiler_pic='-fPIC' 9313 ;; 9314 esac 9315 9316 case $cc_basename in 9317 nvcc*) # Cuda Compiler Driver 2.2 9318 lt_prog_compiler_wl='-Xlinker ' 9319 if test -n "$lt_prog_compiler_pic"; then 9320 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9321 fi 9322 ;; 9323 esac 9324 else 9325 # PORTME Check for flag to pass linker flags through the system compiler. 9326 case $host_os in 9327 aix*) 9328 lt_prog_compiler_wl='-Wl,' 9329 if test ia64 = "$host_cpu"; then 9330 # AIX 5 now supports IA64 processor 9331 lt_prog_compiler_static='-Bstatic' 9332 else 9333 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9334 fi 9335 ;; 9336 9337 darwin* | rhapsody*) 9338 # PIC is the default on this platform 9339 # Common symbols not allowed in MH_DYLIB files 9340 lt_prog_compiler_pic='-fno-common' 9341 case $cc_basename in 9342 nagfor*) 9343 # NAG Fortran compiler 9344 lt_prog_compiler_wl='-Wl,-Wl,,' 9345 lt_prog_compiler_pic='-PIC' 9346 lt_prog_compiler_static='-Bstatic' 9347 ;; 9348 esac 9349 ;; 9350 9351 mingw* | cygwin* | pw32* | os2* | cegcc*) 9352 # This hack is so that the source file can tell whether it is being 9353 # built for inclusion in a dll (and should export symbols for example). 9354 lt_prog_compiler_pic='-DDLL_EXPORT' 9355 case $host_os in 9356 os2*) 9357 lt_prog_compiler_static='$wl-static' 9358 ;; 9359 esac 9360 ;; 9361 9362 hpux9* | hpux10* | hpux11*) 9363 lt_prog_compiler_wl='-Wl,' 9364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9365 # not for PA HP-UX. 9366 case $host_cpu in 9367 hppa*64*|ia64*) 9368 # +Z the default 9369 ;; 9370 *) 9371 lt_prog_compiler_pic='+Z' 9372 ;; 9373 esac 9374 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9375 lt_prog_compiler_static='$wl-a ${wl}archive' 9376 ;; 9377 9378 irix5* | irix6* | nonstopux*) 9379 lt_prog_compiler_wl='-Wl,' 9380 # PIC (with -KPIC) is the default. 9381 lt_prog_compiler_static='-non_shared' 9382 ;; 9383 9384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9385 case $cc_basename in 9386 # old Intel for x86_64, which still supported -KPIC. 9387 ecc*) 9388 lt_prog_compiler_wl='-Wl,' 9389 lt_prog_compiler_pic='-KPIC' 9390 lt_prog_compiler_static='-static' 9391 ;; 9392 # icc used to be incompatible with GCC. 9393 # ICC 10 doesn't accept -KPIC any more. 9394 icc* | ifort*) 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_pic='-fPIC' 9397 lt_prog_compiler_static='-static' 9398 ;; 9399 # Lahey Fortran 8.1. 9400 lf95*) 9401 lt_prog_compiler_wl='-Wl,' 9402 lt_prog_compiler_pic='--shared' 9403 lt_prog_compiler_static='--static' 9404 ;; 9405 nagfor*) 9406 # NAG Fortran compiler 9407 lt_prog_compiler_wl='-Wl,-Wl,,' 9408 lt_prog_compiler_pic='-PIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 ;; 9411 tcc*) 9412 # Fabrice Bellard et al's Tiny C Compiler 9413 lt_prog_compiler_wl='-Wl,' 9414 lt_prog_compiler_pic='-fPIC' 9415 lt_prog_compiler_static='-static' 9416 ;; 9417 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9418 # Portland Group compilers (*not* the Pentium gcc compiler, 9419 # which looks to be a dead project) 9420 lt_prog_compiler_wl='-Wl,' 9421 lt_prog_compiler_pic='-fpic' 9422 lt_prog_compiler_static='-Bstatic' 9423 ;; 9424 ccc*) 9425 lt_prog_compiler_wl='-Wl,' 9426 # All Alpha code is PIC. 9427 lt_prog_compiler_static='-non_shared' 9428 ;; 9429 xl* | bgxl* | bgf* | mpixl*) 9430 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9431 lt_prog_compiler_wl='-Wl,' 9432 lt_prog_compiler_pic='-qpic' 9433 lt_prog_compiler_static='-qstaticlink' 9434 ;; 9435 *) 9436 case `$CC -V 2>&1 | sed 5q` in 9437 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9438 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9439 lt_prog_compiler_pic='-KPIC' 9440 lt_prog_compiler_static='-Bstatic' 9441 lt_prog_compiler_wl='' 9442 ;; 9443 *Sun\ F* | *Sun*Fortran*) 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 lt_prog_compiler_wl='-Qoption ld ' 9447 ;; 9448 *Sun\ C*) 9449 # Sun C 5.9 9450 lt_prog_compiler_pic='-KPIC' 9451 lt_prog_compiler_static='-Bstatic' 9452 lt_prog_compiler_wl='-Wl,' 9453 ;; 9454 *Intel*\ [CF]*Compiler*) 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_pic='-fPIC' 9457 lt_prog_compiler_static='-static' 9458 ;; 9459 *Portland\ Group*) 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='-fpic' 9462 lt_prog_compiler_static='-Bstatic' 9463 ;; 9464 esac 9465 ;; 9466 esac 9467 ;; 9468 9469 newsos6) 9470 lt_prog_compiler_pic='-KPIC' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 9474 *nto* | *qnx*) 9475 # QNX uses GNU C++, but need to define -shared option too, otherwise 9476 # it will coredump. 9477 lt_prog_compiler_pic='-fPIC -shared' 9478 ;; 9479 9480 osf3* | osf4* | osf5*) 9481 lt_prog_compiler_wl='-Wl,' 9482 # All OSF/1 code is PIC. 9483 lt_prog_compiler_static='-non_shared' 9484 ;; 9485 9486 rdos*) 9487 lt_prog_compiler_static='-non_shared' 9488 ;; 9489 9490 solaris*) 9491 lt_prog_compiler_pic='-KPIC' 9492 lt_prog_compiler_static='-Bstatic' 9493 case $cc_basename in 9494 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9495 lt_prog_compiler_wl='-Qoption ld ';; 9496 *) 9497 lt_prog_compiler_wl='-Wl,';; 9498 esac 9499 ;; 9500 9501 sunos4*) 9502 lt_prog_compiler_wl='-Qoption ld ' 9503 lt_prog_compiler_pic='-PIC' 9504 lt_prog_compiler_static='-Bstatic' 9505 ;; 9506 9507 sysv4 | sysv4.2uw2* | sysv4.3*) 9508 lt_prog_compiler_wl='-Wl,' 9509 lt_prog_compiler_pic='-KPIC' 9510 lt_prog_compiler_static='-Bstatic' 9511 ;; 9512 9513 sysv4*MP*) 9514 if test -d /usr/nec; then 9515 lt_prog_compiler_pic='-Kconform_pic' 9516 lt_prog_compiler_static='-Bstatic' 9517 fi 9518 ;; 9519 9520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_pic='-KPIC' 9523 lt_prog_compiler_static='-Bstatic' 9524 ;; 9525 9526 unicos*) 9527 lt_prog_compiler_wl='-Wl,' 9528 lt_prog_compiler_can_build_shared=no 9529 ;; 9530 9531 uts4*) 9532 lt_prog_compiler_pic='-pic' 9533 lt_prog_compiler_static='-Bstatic' 9534 ;; 9535 9536 *) 9537 lt_prog_compiler_can_build_shared=no 9538 ;; 9539 esac 9540 fi 9541 9542case $host_os in 9543 # For platforms that do not support PIC, -DPIC is meaningless: 9544 *djgpp*) 9545 lt_prog_compiler_pic= 9546 ;; 9547 *) 9548 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9549 ;; 9550esac 9551 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9553$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9554if ${lt_cv_prog_compiler_pic+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9558fi 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9560$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9561lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9562 9563# 9564# Check to make sure the PIC flag actually works. 9565# 9566if test -n "$lt_prog_compiler_pic"; then 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9568$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9569if ${lt_cv_prog_compiler_pic_works+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571else 9572 lt_cv_prog_compiler_pic_works=no 9573 ac_outfile=conftest.$ac_objext 9574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9575 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9576 # Insert the option either (1) after the last *FLAGS variable, or 9577 # (2) before a word containing "conftest.", or (3) at the end. 9578 # Note that $ac_compile itself does not contain backslashes and begins 9579 # with a dollar sign (not a hyphen), so the echo should work correctly. 9580 # The option is referenced via a variable to avoid confusing sed. 9581 lt_compile=`echo "$ac_compile" | $SED \ 9582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9584 -e 's:$: $lt_compiler_flag:'` 9585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9586 (eval "$lt_compile" 2>conftest.err) 9587 ac_status=$? 9588 cat conftest.err >&5 9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9590 if (exit $ac_status) && test -s "$ac_outfile"; then 9591 # The compiler can only warn and ignore the option if not recognized 9592 # So say no if there are warnings other than the usual output. 9593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9596 lt_cv_prog_compiler_pic_works=yes 9597 fi 9598 fi 9599 $RM conftest* 9600 9601fi 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9603$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9604 9605if test yes = "$lt_cv_prog_compiler_pic_works"; then 9606 case $lt_prog_compiler_pic in 9607 "" | " "*) ;; 9608 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9609 esac 9610else 9611 lt_prog_compiler_pic= 9612 lt_prog_compiler_can_build_shared=no 9613fi 9614 9615fi 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627# 9628# Check to make sure the static flag actually works. 9629# 9630wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9632$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9633if ${lt_cv_prog_compiler_static_works+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 lt_cv_prog_compiler_static_works=no 9637 save_LDFLAGS=$LDFLAGS 9638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9639 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9641 # The linker can only warn and ignore the option if not recognized 9642 # So say no if there are warnings 9643 if test -s conftest.err; then 9644 # Append any errors to the config.log. 9645 cat conftest.err 1>&5 9646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9648 if diff conftest.exp conftest.er2 >/dev/null; then 9649 lt_cv_prog_compiler_static_works=yes 9650 fi 9651 else 9652 lt_cv_prog_compiler_static_works=yes 9653 fi 9654 fi 9655 $RM -r conftest* 9656 LDFLAGS=$save_LDFLAGS 9657 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9660$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9661 9662if test yes = "$lt_cv_prog_compiler_static_works"; then 9663 : 9664else 9665 lt_prog_compiler_static= 9666fi 9667 9668 9669 9670 9671 9672 9673 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9675$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9676if ${lt_cv_prog_compiler_c_o+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 lt_cv_prog_compiler_c_o=no 9680 $RM -r conftest 2>/dev/null 9681 mkdir conftest 9682 cd conftest 9683 mkdir out 9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9685 9686 lt_compiler_flag="-o out/conftest2.$ac_objext" 9687 # Insert the option either (1) after the last *FLAGS variable, or 9688 # (2) before a word containing "conftest.", or (3) at the end. 9689 # Note that $ac_compile itself does not contain backslashes and begins 9690 # with a dollar sign (not a hyphen), so the echo should work correctly. 9691 lt_compile=`echo "$ac_compile" | $SED \ 9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9694 -e 's:$: $lt_compiler_flag:'` 9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9696 (eval "$lt_compile" 2>out/conftest.err) 9697 ac_status=$? 9698 cat out/conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9701 then 9702 # The compiler can only warn and ignore the option if not recognized 9703 # So say no if there are warnings 9704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9707 lt_cv_prog_compiler_c_o=yes 9708 fi 9709 fi 9710 chmod u+w . 2>&5 9711 $RM conftest* 9712 # SGI C++ compiler will create directory out/ii_files/ for 9713 # template instantiation 9714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9715 $RM out/* && rmdir out 9716 cd .. 9717 $RM -r conftest 9718 $RM conftest* 9719 9720fi 9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9722$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9723 9724 9725 9726 9727 9728 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9731if ${lt_cv_prog_compiler_c_o+:} false; then : 9732 $as_echo_n "(cached) " >&6 9733else 9734 lt_cv_prog_compiler_c_o=no 9735 $RM -r conftest 2>/dev/null 9736 mkdir conftest 9737 cd conftest 9738 mkdir out 9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9740 9741 lt_compiler_flag="-o out/conftest2.$ac_objext" 9742 # Insert the option either (1) after the last *FLAGS variable, or 9743 # (2) before a word containing "conftest.", or (3) at the end. 9744 # Note that $ac_compile itself does not contain backslashes and begins 9745 # with a dollar sign (not a hyphen), so the echo should work correctly. 9746 lt_compile=`echo "$ac_compile" | $SED \ 9747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9749 -e 's:$: $lt_compiler_flag:'` 9750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9751 (eval "$lt_compile" 2>out/conftest.err) 9752 ac_status=$? 9753 cat out/conftest.err >&5 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9756 then 9757 # The compiler can only warn and ignore the option if not recognized 9758 # So say no if there are warnings 9759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9762 lt_cv_prog_compiler_c_o=yes 9763 fi 9764 fi 9765 chmod u+w . 2>&5 9766 $RM conftest* 9767 # SGI C++ compiler will create directory out/ii_files/ for 9768 # template instantiation 9769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9770 $RM out/* && rmdir out 9771 cd .. 9772 $RM -r conftest 9773 $RM conftest* 9774 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9777$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9778 9779 9780 9781 9782hard_links=nottested 9783if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9784 # do not overwrite the value of need_locks provided by the user 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9786$as_echo_n "checking if we can lock with hard links... " >&6; } 9787 hard_links=yes 9788 $RM conftest* 9789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9790 touch conftest.a 9791 ln conftest.a conftest.b 2>&5 || hard_links=no 9792 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9794$as_echo "$hard_links" >&6; } 9795 if test no = "$hard_links"; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9797$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9798 need_locks=warn 9799 fi 9800else 9801 need_locks=no 9802fi 9803 9804 9805 9806 9807 9808 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9810$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9811 9812 runpath_var= 9813 allow_undefined_flag= 9814 always_export_symbols=no 9815 archive_cmds= 9816 archive_expsym_cmds= 9817 compiler_needs_object=no 9818 enable_shared_with_static_runtimes=no 9819 export_dynamic_flag_spec= 9820 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9821 hardcode_automatic=no 9822 hardcode_direct=no 9823 hardcode_direct_absolute=no 9824 hardcode_libdir_flag_spec= 9825 hardcode_libdir_separator= 9826 hardcode_minus_L=no 9827 hardcode_shlibpath_var=unsupported 9828 inherit_rpath=no 9829 link_all_deplibs=unknown 9830 module_cmds= 9831 module_expsym_cmds= 9832 old_archive_from_new_cmds= 9833 old_archive_from_expsyms_cmds= 9834 thread_safe_flag_spec= 9835 whole_archive_flag_spec= 9836 # include_expsyms should be a list of space-separated symbols to be *always* 9837 # included in the symbol list 9838 include_expsyms= 9839 # exclude_expsyms can be an extended regexp of symbols to exclude 9840 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9841 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9842 # as well as any symbol that contains 'd'. 9843 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9845 # platforms (ab)use it in PIC code, but their linkers get confused if 9846 # the symbol is explicitly referenced. Since portable code cannot 9847 # rely on this symbol name, it's probably fine to never include it in 9848 # preloaded symbol tables. 9849 # Exclude shared library initialization/finalization symbols. 9850 extract_expsyms_cmds= 9851 9852 case $host_os in 9853 cygwin* | mingw* | pw32* | cegcc*) 9854 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9855 # When not using gcc, we currently assume that we are using 9856 # Microsoft Visual C++. 9857 if test yes != "$GCC"; then 9858 with_gnu_ld=no 9859 fi 9860 ;; 9861 interix*) 9862 # we just hope/assume this is gcc and not c89 (= MSVC++) 9863 with_gnu_ld=yes 9864 ;; 9865 openbsd* | bitrig*) 9866 with_gnu_ld=no 9867 ;; 9868 esac 9869 9870 ld_shlibs=yes 9871 9872 # On some targets, GNU ld is compatible enough with the native linker 9873 # that we're better off using the native interface for both. 9874 lt_use_gnu_ld_interface=no 9875 if test yes = "$with_gnu_ld"; then 9876 case $host_os in 9877 aix*) 9878 # The AIX port of GNU ld has always aspired to compatibility 9879 # with the native linker. However, as the warning in the GNU ld 9880 # block says, versions before 2.19.5* couldn't really create working 9881 # shared libraries, regardless of the interface used. 9882 case `$LD -v 2>&1` in 9883 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9884 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9885 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9886 *) 9887 lt_use_gnu_ld_interface=yes 9888 ;; 9889 esac 9890 ;; 9891 *) 9892 lt_use_gnu_ld_interface=yes 9893 ;; 9894 esac 9895 fi 9896 9897 if test yes = "$lt_use_gnu_ld_interface"; then 9898 # If archive_cmds runs LD, not CC, wlarc should be empty 9899 wlarc='$wl' 9900 9901 # Set some defaults for GNU ld with shared library support. These 9902 # are reset later if shared libraries are not supported. Putting them 9903 # here allows them to be overridden if necessary. 9904 runpath_var=LD_RUN_PATH 9905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9906 export_dynamic_flag_spec='$wl--export-dynamic' 9907 # ancient GNU ld didn't support --whole-archive et. al. 9908 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9909 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9910 else 9911 whole_archive_flag_spec= 9912 fi 9913 supports_anon_versioning=no 9914 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9915 *GNU\ gold*) supports_anon_versioning=yes ;; 9916 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9919 *\ 2.11.*) ;; # other 2.11 versions 9920 *) supports_anon_versioning=yes ;; 9921 esac 9922 9923 # See if GNU ld supports shared libraries. 9924 case $host_os in 9925 aix[3-9]*) 9926 # On AIX/PPC, the GNU linker is very broken 9927 if test ia64 != "$host_cpu"; then 9928 ld_shlibs=no 9929 cat <<_LT_EOF 1>&2 9930 9931*** Warning: the GNU linker, at least up to release 2.19, is reported 9932*** to be unable to reliably create shared libraries on AIX. 9933*** Therefore, libtool is disabling shared libraries support. If you 9934*** really care for shared libraries, you may want to install binutils 9935*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9936*** You will then need to restart the configuration process. 9937 9938_LT_EOF 9939 fi 9940 ;; 9941 9942 amigaos*) 9943 case $host_cpu in 9944 powerpc) 9945 # see comment about AmigaOS4 .so support 9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9947 archive_expsym_cmds='' 9948 ;; 9949 m68k) 9950 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)' 9951 hardcode_libdir_flag_spec='-L$libdir' 9952 hardcode_minus_L=yes 9953 ;; 9954 esac 9955 ;; 9956 9957 beos*) 9958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9959 allow_undefined_flag=unsupported 9960 # Joseph Beckenbach <[email protected]> says some releases of gcc 9961 # support --undefined. This deserves some investigation. FIXME 9962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9963 else 9964 ld_shlibs=no 9965 fi 9966 ;; 9967 9968 cygwin* | mingw* | pw32* | cegcc*) 9969 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9970 # as there is no search path for DLLs. 9971 hardcode_libdir_flag_spec='-L$libdir' 9972 export_dynamic_flag_spec='$wl--export-all-symbols' 9973 allow_undefined_flag=unsupported 9974 always_export_symbols=no 9975 enable_shared_with_static_runtimes=yes 9976 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' 9977 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9978 9979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9981 # If the export-symbols file already is a .def file, use it as 9982 # is; otherwise, prepend EXPORTS... 9983 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9984 cp $export_symbols $output_objdir/$soname.def; 9985 else 9986 echo EXPORTS > $output_objdir/$soname.def; 9987 cat $export_symbols >> $output_objdir/$soname.def; 9988 fi~ 9989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9990 else 9991 ld_shlibs=no 9992 fi 9993 ;; 9994 9995 haiku*) 9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9997 link_all_deplibs=yes 9998 ;; 9999 10000 os2*) 10001 hardcode_libdir_flag_spec='-L$libdir' 10002 hardcode_minus_L=yes 10003 allow_undefined_flag=unsupported 10004 shrext_cmds=.dll 10005 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10008 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10009 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10011 emximp -o $lib $output_objdir/$libname.def' 10012 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10015 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10016 prefix_cmds="$SED"~ 10017 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10018 prefix_cmds="$prefix_cmds -e 1d"; 10019 fi~ 10020 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10021 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10022 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10023 emximp -o $lib $output_objdir/$libname.def' 10024 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10025 enable_shared_with_static_runtimes=yes 10026 ;; 10027 10028 interix[3-9]*) 10029 hardcode_direct=no 10030 hardcode_shlibpath_var=no 10031 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10032 export_dynamic_flag_spec='$wl-E' 10033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10034 # Instead, shared libraries are loaded at an image base (0x10000000 by 10035 # default) and relocated if they conflict, which is a slow very memory 10036 # consuming and fragmenting process. To avoid this, we pick a random, 10037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10038 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10040 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' 10041 ;; 10042 10043 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10044 tmp_diet=no 10045 if test linux-dietlibc = "$host_os"; then 10046 case $cc_basename in 10047 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10048 esac 10049 fi 10050 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10051 && test no = "$tmp_diet" 10052 then 10053 tmp_addflag=' $pic_flag' 10054 tmp_sharedflag='-shared' 10055 case $cc_basename,$host_cpu in 10056 pgcc*) # Portland Group C compiler 10057 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' 10058 tmp_addflag=' $pic_flag' 10059 ;; 10060 pgf77* | pgf90* | pgf95* | pgfortran*) 10061 # Portland Group f77 and f90 compilers 10062 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' 10063 tmp_addflag=' $pic_flag -Mnomain' ;; 10064 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10065 tmp_addflag=' -i_dynamic' ;; 10066 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10067 tmp_addflag=' -i_dynamic -nofor_main' ;; 10068 ifc* | ifort*) # Intel Fortran compiler 10069 tmp_addflag=' -nofor_main' ;; 10070 lf95*) # Lahey Fortran 8.1 10071 whole_archive_flag_spec= 10072 tmp_sharedflag='--shared' ;; 10073 nagfor*) # NAGFOR 5.3 10074 tmp_sharedflag='-Wl,-shared' ;; 10075 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10076 tmp_sharedflag='-qmkshrobj' 10077 tmp_addflag= ;; 10078 nvcc*) # Cuda Compiler Driver 2.2 10079 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' 10080 compiler_needs_object=yes 10081 ;; 10082 esac 10083 case `$CC -V 2>&1 | sed 5q` in 10084 *Sun\ C*) # Sun C 5.9 10085 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' 10086 compiler_needs_object=yes 10087 tmp_sharedflag='-G' ;; 10088 *Sun\ F*) # Sun Fortran 8.3 10089 tmp_sharedflag='-G' ;; 10090 esac 10091 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10092 10093 if test yes = "$supports_anon_versioning"; then 10094 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10096 echo "local: *; };" >> $output_objdir/$libname.ver~ 10097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10098 fi 10099 10100 case $cc_basename in 10101 tcc*) 10102 export_dynamic_flag_spec='-rdynamic' 10103 ;; 10104 xlf* | bgf* | bgxlf* | mpixlf*) 10105 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10106 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10108 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10109 if test yes = "$supports_anon_versioning"; then 10110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10112 echo "local: *; };" >> $output_objdir/$libname.ver~ 10113 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10114 fi 10115 ;; 10116 esac 10117 else 10118 ld_shlibs=no 10119 fi 10120 ;; 10121 10122 netbsd*) 10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10124 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10125 wlarc= 10126 else 10127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10128 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10129 fi 10130 ;; 10131 10132 solaris*) 10133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10134 ld_shlibs=no 10135 cat <<_LT_EOF 1>&2 10136 10137*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10138*** create shared libraries on Solaris systems. Therefore, libtool 10139*** is disabling shared libraries support. We urge you to upgrade GNU 10140*** binutils to release 2.9.1 or newer. Another option is to modify 10141*** your PATH or compiler configuration so that the native linker is 10142*** used, and then restart. 10143 10144_LT_EOF 10145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10148 else 10149 ld_shlibs=no 10150 fi 10151 ;; 10152 10153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10154 case `$LD -v 2>&1` in 10155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10156 ld_shlibs=no 10157 cat <<_LT_EOF 1>&2 10158 10159*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10160*** reliably create shared libraries on SCO systems. Therefore, libtool 10161*** is disabling shared libraries support. We urge you to upgrade GNU 10162*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10163*** your PATH or compiler configuration so that the native linker is 10164*** used, and then restart. 10165 10166_LT_EOF 10167 ;; 10168 *) 10169 # For security reasons, it is highly recommended that you always 10170 # use absolute paths for naming shared libraries, and exclude the 10171 # DT_RUNPATH tag from executables and libraries. But doing so 10172 # requires that you compile everything twice, which is a pain. 10173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10174 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10177 else 10178 ld_shlibs=no 10179 fi 10180 ;; 10181 esac 10182 ;; 10183 10184 sunos4*) 10185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10186 wlarc= 10187 hardcode_direct=yes 10188 hardcode_shlibpath_var=no 10189 ;; 10190 10191 *) 10192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10193 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10194 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10195 else 10196 ld_shlibs=no 10197 fi 10198 ;; 10199 esac 10200 10201 if test no = "$ld_shlibs"; then 10202 runpath_var= 10203 hardcode_libdir_flag_spec= 10204 export_dynamic_flag_spec= 10205 whole_archive_flag_spec= 10206 fi 10207 else 10208 # PORTME fill in a description of your system's linker (not GNU ld) 10209 case $host_os in 10210 aix3*) 10211 allow_undefined_flag=unsupported 10212 always_export_symbols=yes 10213 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' 10214 # Note: this linker hardcodes the directories in LIBPATH if there 10215 # are no directories specified by -L. 10216 hardcode_minus_L=yes 10217 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10218 # Neither direct hardcoding nor static linking is supported with a 10219 # broken collect2. 10220 hardcode_direct=unsupported 10221 fi 10222 ;; 10223 10224 aix[4-9]*) 10225 if test ia64 = "$host_cpu"; then 10226 # On IA64, the linker does run time linking by default, so we don't 10227 # have to do anything special. 10228 aix_use_runtimelinking=no 10229 exp_sym_flag='-Bexport' 10230 no_entry_flag= 10231 else 10232 # If we're using GNU nm, then we don't want the "-C" option. 10233 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10234 # Without the "-l" option, or with the "-B" option, AIX nm treats 10235 # weak defined symbols like other global defined symbols, whereas 10236 # GNU nm marks them as "W". 10237 # While the 'weak' keyword is ignored in the Export File, we need 10238 # it in the Import File for the 'aix-soname' feature, so we have 10239 # to replace the "-B" option with "-P" for AIX nm. 10240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10241 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' 10242 else 10243 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' 10244 fi 10245 aix_use_runtimelinking=no 10246 10247 # Test if we are trying to use run time linking or normal 10248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10249 # have runtime linking enabled, and use it for executables. 10250 # For shared libraries, we enable/disable runtime linking 10251 # depending on the kind of the shared library created - 10252 # when "with_aix_soname,aix_use_runtimelinking" is: 10253 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10254 # "aix,yes" lib.so shared, rtl:yes, for executables 10255 # lib.a static archive 10256 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10257 # lib.a(lib.so.V) shared, rtl:no, for executables 10258 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10259 # lib.a(lib.so.V) shared, rtl:no 10260 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10261 # lib.a static archive 10262 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10263 for ld_flag in $LDFLAGS; do 10264 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10265 aix_use_runtimelinking=yes 10266 break 10267 fi 10268 done 10269 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10270 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10271 # so we don't have lib.a shared libs to link our executables. 10272 # We have to force runtime linking in this case. 10273 aix_use_runtimelinking=yes 10274 LDFLAGS="$LDFLAGS -Wl,-brtl" 10275 fi 10276 ;; 10277 esac 10278 10279 exp_sym_flag='-bexport' 10280 no_entry_flag='-bnoentry' 10281 fi 10282 10283 # When large executables or shared objects are built, AIX ld can 10284 # have problems creating the table of contents. If linking a library 10285 # or program results in "error TOC overflow" add -mminimal-toc to 10286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10288 10289 archive_cmds='' 10290 hardcode_direct=yes 10291 hardcode_direct_absolute=yes 10292 hardcode_libdir_separator=':' 10293 link_all_deplibs=yes 10294 file_list_spec='$wl-f,' 10295 case $with_aix_soname,$aix_use_runtimelinking in 10296 aix,*) ;; # traditional, no import file 10297 svr4,* | *,yes) # use import file 10298 # The Import File defines what to hardcode. 10299 hardcode_direct=no 10300 hardcode_direct_absolute=no 10301 ;; 10302 esac 10303 10304 if test yes = "$GCC"; then 10305 case $host_os in aix4.[012]|aix4.[012].*) 10306 # We only want to do this on AIX 4.2 and lower, the check 10307 # below for broken collect2 doesn't work under 4.3+ 10308 collect2name=`$CC -print-prog-name=collect2` 10309 if test -f "$collect2name" && 10310 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10311 then 10312 # We have reworked collect2 10313 : 10314 else 10315 # We have old collect2 10316 hardcode_direct=unsupported 10317 # It fails to find uninstalled libraries when the uninstalled 10318 # path is not listed in the libpath. Setting hardcode_minus_L 10319 # to unsupported forces relinking 10320 hardcode_minus_L=yes 10321 hardcode_libdir_flag_spec='-L$libdir' 10322 hardcode_libdir_separator= 10323 fi 10324 ;; 10325 esac 10326 shared_flag='-shared' 10327 if test yes = "$aix_use_runtimelinking"; then 10328 shared_flag="$shared_flag "'$wl-G' 10329 fi 10330 # Need to ensure runtime linking is disabled for the traditional 10331 # shared library, or the linker may eventually find shared libraries 10332 # /with/ Import File - we do not want to mix them. 10333 shared_flag_aix='-shared' 10334 shared_flag_svr4='-shared $wl-G' 10335 else 10336 # not using gcc 10337 if test ia64 = "$host_cpu"; then 10338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10339 # chokes on -Wl,-G. The following line is correct: 10340 shared_flag='-G' 10341 else 10342 if test yes = "$aix_use_runtimelinking"; then 10343 shared_flag='$wl-G' 10344 else 10345 shared_flag='$wl-bM:SRE' 10346 fi 10347 shared_flag_aix='$wl-bM:SRE' 10348 shared_flag_svr4='$wl-G' 10349 fi 10350 fi 10351 10352 export_dynamic_flag_spec='$wl-bexpall' 10353 # It seems that -bexpall does not export symbols beginning with 10354 # underscore (_), so it is better to generate a list of symbols to export. 10355 always_export_symbols=yes 10356 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10357 # Warning - without using the other runtime loading flags (-brtl), 10358 # -berok will link without error, but may produce a broken library. 10359 allow_undefined_flag='-berok' 10360 # Determine the default libpath from the value encoded in an 10361 # empty executable. 10362 if test set = "${lt_cv_aix_libpath+set}"; then 10363 aix_libpath=$lt_cv_aix_libpath 10364else 10365 if ${lt_cv_aix_libpath_+:} false; then : 10366 $as_echo_n "(cached) " >&6 10367else 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370 10371int 10372main () 10373{ 10374 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379if ac_fn_c_try_link "$LINENO"; then : 10380 10381 lt_aix_libpath_sed=' 10382 /Import File Strings/,/^$/ { 10383 /^0/ { 10384 s/^0 *\([^ ]*\) *$/\1/ 10385 p 10386 } 10387 }' 10388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10389 # Check for a 64-bit object if we didn't find anything. 10390 if test -z "$lt_cv_aix_libpath_"; then 10391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10392 fi 10393fi 10394rm -f core conftest.err conftest.$ac_objext \ 10395 conftest$ac_exeext conftest.$ac_ext 10396 if test -z "$lt_cv_aix_libpath_"; then 10397 lt_cv_aix_libpath_=/usr/lib:/lib 10398 fi 10399 10400fi 10401 10402 aix_libpath=$lt_cv_aix_libpath_ 10403fi 10404 10405 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10406 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 10407 else 10408 if test ia64 = "$host_cpu"; then 10409 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10410 allow_undefined_flag="-z nodefs" 10411 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" 10412 else 10413 # Determine the default libpath from the value encoded in an 10414 # empty executable. 10415 if test set = "${lt_cv_aix_libpath+set}"; then 10416 aix_libpath=$lt_cv_aix_libpath 10417else 10418 if ${lt_cv_aix_libpath_+:} false; then : 10419 $as_echo_n "(cached) " >&6 10420else 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424int 10425main () 10426{ 10427 10428 ; 10429 return 0; 10430} 10431_ACEOF 10432if ac_fn_c_try_link "$LINENO"; then : 10433 10434 lt_aix_libpath_sed=' 10435 /Import File Strings/,/^$/ { 10436 /^0/ { 10437 s/^0 *\([^ ]*\) *$/\1/ 10438 p 10439 } 10440 }' 10441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10442 # Check for a 64-bit object if we didn't find anything. 10443 if test -z "$lt_cv_aix_libpath_"; then 10444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10445 fi 10446fi 10447rm -f core conftest.err conftest.$ac_objext \ 10448 conftest$ac_exeext conftest.$ac_ext 10449 if test -z "$lt_cv_aix_libpath_"; then 10450 lt_cv_aix_libpath_=/usr/lib:/lib 10451 fi 10452 10453fi 10454 10455 aix_libpath=$lt_cv_aix_libpath_ 10456fi 10457 10458 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10459 # Warning - without using the other run time loading flags, 10460 # -berok will link without error, but may produce a broken library. 10461 no_undefined_flag=' $wl-bernotok' 10462 allow_undefined_flag=' $wl-berok' 10463 if test yes = "$with_gnu_ld"; then 10464 # We only use this code for GNU lds that support --whole-archive. 10465 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10466 else 10467 # Exported symbols can be pulled into shared objects from archives 10468 whole_archive_flag_spec='$convenience' 10469 fi 10470 archive_cmds_need_lc=yes 10471 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10472 # -brtl affects multiple linker settings, -berok does not and is overridden later 10473 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10474 if test svr4 != "$with_aix_soname"; then 10475 # This is similar to how AIX traditionally builds its shared libraries. 10476 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' 10477 fi 10478 if test aix != "$with_aix_soname"; then 10479 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' 10480 else 10481 # used by -dlpreopen to get the symbols 10482 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10483 fi 10484 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10485 fi 10486 fi 10487 ;; 10488 10489 amigaos*) 10490 case $host_cpu in 10491 powerpc) 10492 # see comment about AmigaOS4 .so support 10493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10494 archive_expsym_cmds='' 10495 ;; 10496 m68k) 10497 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)' 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 hardcode_minus_L=yes 10500 ;; 10501 esac 10502 ;; 10503 10504 bsdi[45]*) 10505 export_dynamic_flag_spec=-rdynamic 10506 ;; 10507 10508 cygwin* | mingw* | pw32* | cegcc*) 10509 # When not using gcc, we currently assume that we are using 10510 # Microsoft Visual C++. 10511 # hardcode_libdir_flag_spec is actually meaningless, as there is 10512 # no search path for DLLs. 10513 case $cc_basename in 10514 cl*) 10515 # Native MSVC 10516 hardcode_libdir_flag_spec=' ' 10517 allow_undefined_flag=unsupported 10518 always_export_symbols=yes 10519 file_list_spec='@' 10520 # Tell ltmain to make .lib files, not .a files. 10521 libext=lib 10522 # Tell ltmain to make .dll files, not .so files. 10523 shrext_cmds=.dll 10524 # FIXME: Setting linknames here is a bad hack. 10525 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10526 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10527 cp "$export_symbols" "$output_objdir/$soname.def"; 10528 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10529 else 10530 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10531 fi~ 10532 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10533 linknames=' 10534 # The linker will not automatically build a static lib if we build a DLL. 10535 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10536 enable_shared_with_static_runtimes=yes 10537 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10539 # Don't use ranlib 10540 old_postinstall_cmds='chmod 644 $oldlib' 10541 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10542 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10543 case $lt_outputfile in 10544 *.exe|*.EXE) ;; 10545 *) 10546 lt_outputfile=$lt_outputfile.exe 10547 lt_tool_outputfile=$lt_tool_outputfile.exe 10548 ;; 10549 esac~ 10550 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10551 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10552 $RM "$lt_outputfile.manifest"; 10553 fi' 10554 ;; 10555 *) 10556 # Assume MSVC wrapper 10557 hardcode_libdir_flag_spec=' ' 10558 allow_undefined_flag=unsupported 10559 # Tell ltmain to make .lib files, not .a files. 10560 libext=lib 10561 # Tell ltmain to make .dll files, not .so files. 10562 shrext_cmds=.dll 10563 # FIXME: Setting linknames here is a bad hack. 10564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10565 # The linker will automatically build a .lib file if we build a DLL. 10566 old_archive_from_new_cmds='true' 10567 # FIXME: Should let the user specify the lib program. 10568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10569 enable_shared_with_static_runtimes=yes 10570 ;; 10571 esac 10572 ;; 10573 10574 darwin* | rhapsody*) 10575 10576 10577 archive_cmds_need_lc=no 10578 hardcode_direct=no 10579 hardcode_automatic=yes 10580 hardcode_shlibpath_var=unsupported 10581 if test yes = "$lt_cv_ld_force_load"; then 10582 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\"`' 10583 10584 else 10585 whole_archive_flag_spec='' 10586 fi 10587 link_all_deplibs=yes 10588 allow_undefined_flag=$_lt_dar_allow_undefined 10589 case $cc_basename in 10590 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10591 *) _lt_dar_can_shared=$GCC ;; 10592 esac 10593 if test yes = "$_lt_dar_can_shared"; then 10594 output_verbose_link_cmd=func_echo_all 10595 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10596 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10597 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" 10598 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" 10599 10600 else 10601 ld_shlibs=no 10602 fi 10603 10604 ;; 10605 10606 dgux*) 10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10608 hardcode_libdir_flag_spec='-L$libdir' 10609 hardcode_shlibpath_var=no 10610 ;; 10611 10612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10613 # support. Future versions do this automatically, but an explicit c++rt0.o 10614 # does not break anything, and helps significantly (at the cost of a little 10615 # extra space). 10616 freebsd2.2*) 10617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10618 hardcode_libdir_flag_spec='-R$libdir' 10619 hardcode_direct=yes 10620 hardcode_shlibpath_var=no 10621 ;; 10622 10623 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10624 freebsd2.*) 10625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10626 hardcode_direct=yes 10627 hardcode_minus_L=yes 10628 hardcode_shlibpath_var=no 10629 ;; 10630 10631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10632 freebsd* | dragonfly*) 10633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10634 hardcode_libdir_flag_spec='-R$libdir' 10635 hardcode_direct=yes 10636 hardcode_shlibpath_var=no 10637 ;; 10638 10639 hpux9*) 10640 if test yes = "$GCC"; then 10641 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' 10642 else 10643 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' 10644 fi 10645 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10646 hardcode_libdir_separator=: 10647 hardcode_direct=yes 10648 10649 # hardcode_minus_L: Not really in the search PATH, 10650 # but as the default location of the library. 10651 hardcode_minus_L=yes 10652 export_dynamic_flag_spec='$wl-E' 10653 ;; 10654 10655 hpux10*) 10656 if test yes,no = "$GCC,$with_gnu_ld"; then 10657 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10658 else 10659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10660 fi 10661 if test no = "$with_gnu_ld"; then 10662 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10663 hardcode_libdir_separator=: 10664 hardcode_direct=yes 10665 hardcode_direct_absolute=yes 10666 export_dynamic_flag_spec='$wl-E' 10667 # hardcode_minus_L: Not really in the search PATH, 10668 # but as the default location of the library. 10669 hardcode_minus_L=yes 10670 fi 10671 ;; 10672 10673 hpux11*) 10674 if test yes,no = "$GCC,$with_gnu_ld"; then 10675 case $host_cpu in 10676 hppa*64*) 10677 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10678 ;; 10679 ia64*) 10680 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10681 ;; 10682 *) 10683 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10684 ;; 10685 esac 10686 else 10687 case $host_cpu in 10688 hppa*64*) 10689 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10690 ;; 10691 ia64*) 10692 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10693 ;; 10694 *) 10695 10696 # Older versions of the 11.00 compiler do not understand -b yet 10697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10699$as_echo_n "checking if $CC understands -b... " >&6; } 10700if ${lt_cv_prog_compiler__b+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702else 10703 lt_cv_prog_compiler__b=no 10704 save_LDFLAGS=$LDFLAGS 10705 LDFLAGS="$LDFLAGS -b" 10706 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10708 # The linker can only warn and ignore the option if not recognized 10709 # So say no if there are warnings 10710 if test -s conftest.err; then 10711 # Append any errors to the config.log. 10712 cat conftest.err 1>&5 10713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10715 if diff conftest.exp conftest.er2 >/dev/null; then 10716 lt_cv_prog_compiler__b=yes 10717 fi 10718 else 10719 lt_cv_prog_compiler__b=yes 10720 fi 10721 fi 10722 $RM -r conftest* 10723 LDFLAGS=$save_LDFLAGS 10724 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10727$as_echo "$lt_cv_prog_compiler__b" >&6; } 10728 10729if test yes = "$lt_cv_prog_compiler__b"; then 10730 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10731else 10732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10733fi 10734 10735 ;; 10736 esac 10737 fi 10738 if test no = "$with_gnu_ld"; then 10739 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10740 hardcode_libdir_separator=: 10741 10742 case $host_cpu in 10743 hppa*64*|ia64*) 10744 hardcode_direct=no 10745 hardcode_shlibpath_var=no 10746 ;; 10747 *) 10748 hardcode_direct=yes 10749 hardcode_direct_absolute=yes 10750 export_dynamic_flag_spec='$wl-E' 10751 10752 # hardcode_minus_L: Not really in the search PATH, 10753 # but as the default location of the library. 10754 hardcode_minus_L=yes 10755 ;; 10756 esac 10757 fi 10758 ;; 10759 10760 irix5* | irix6* | nonstopux*) 10761 if test yes = "$GCC"; then 10762 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' 10763 # Try to use the -exported_symbol ld option, if it does not 10764 # work, assume that -exports_file does not work either and 10765 # implicitly export all symbols. 10766 # This should be the same for all languages, so no per-tag cache variable. 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10768$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10769if ${lt_cv_irix_exported_symbol+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 save_LDFLAGS=$LDFLAGS 10773 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775/* end confdefs.h. */ 10776int foo (void) { return 0; } 10777_ACEOF 10778if ac_fn_c_try_link "$LINENO"; then : 10779 lt_cv_irix_exported_symbol=yes 10780else 10781 lt_cv_irix_exported_symbol=no 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785 LDFLAGS=$save_LDFLAGS 10786fi 10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10788$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10789 if test yes = "$lt_cv_irix_exported_symbol"; then 10790 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' 10791 fi 10792 else 10793 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' 10794 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' 10795 fi 10796 archive_cmds_need_lc='no' 10797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10798 hardcode_libdir_separator=: 10799 inherit_rpath=yes 10800 link_all_deplibs=yes 10801 ;; 10802 10803 linux*) 10804 case $cc_basename in 10805 tcc*) 10806 # Fabrice Bellard et al's Tiny C Compiler 10807 ld_shlibs=yes 10808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10809 ;; 10810 esac 10811 ;; 10812 10813 netbsd*) 10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10816 else 10817 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10818 fi 10819 hardcode_libdir_flag_spec='-R$libdir' 10820 hardcode_direct=yes 10821 hardcode_shlibpath_var=no 10822 ;; 10823 10824 newsos6) 10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10826 hardcode_direct=yes 10827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10828 hardcode_libdir_separator=: 10829 hardcode_shlibpath_var=no 10830 ;; 10831 10832 *nto* | *qnx*) 10833 ;; 10834 10835 openbsd* | bitrig*) 10836 if test -f /usr/libexec/ld.so; then 10837 hardcode_direct=yes 10838 hardcode_shlibpath_var=no 10839 hardcode_direct_absolute=yes 10840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10843 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10844 export_dynamic_flag_spec='$wl-E' 10845 else 10846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10847 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10848 fi 10849 else 10850 ld_shlibs=no 10851 fi 10852 ;; 10853 10854 os2*) 10855 hardcode_libdir_flag_spec='-L$libdir' 10856 hardcode_minus_L=yes 10857 allow_undefined_flag=unsupported 10858 shrext_cmds=.dll 10859 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10862 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10863 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10864 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10865 emximp -o $lib $output_objdir/$libname.def' 10866 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10867 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10868 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10869 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10870 prefix_cmds="$SED"~ 10871 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10872 prefix_cmds="$prefix_cmds -e 1d"; 10873 fi~ 10874 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10875 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10876 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10877 emximp -o $lib $output_objdir/$libname.def' 10878 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10879 enable_shared_with_static_runtimes=yes 10880 ;; 10881 10882 osf3*) 10883 if test yes = "$GCC"; then 10884 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10885 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' 10886 else 10887 allow_undefined_flag=' -expect_unresolved \*' 10888 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' 10889 fi 10890 archive_cmds_need_lc='no' 10891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10892 hardcode_libdir_separator=: 10893 ;; 10894 10895 osf4* | osf5*) # as osf3* with the addition of -msym flag 10896 if test yes = "$GCC"; then 10897 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10898 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' 10899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10900 else 10901 allow_undefined_flag=' -expect_unresolved \*' 10902 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' 10903 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~ 10904 $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' 10905 10906 # Both c and cxx compiler support -rpath directly 10907 hardcode_libdir_flag_spec='-rpath $libdir' 10908 fi 10909 archive_cmds_need_lc='no' 10910 hardcode_libdir_separator=: 10911 ;; 10912 10913 solaris*) 10914 no_undefined_flag=' -z defs' 10915 if test yes = "$GCC"; then 10916 wlarc='$wl' 10917 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10918 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10919 $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' 10920 else 10921 case `$CC -V 2>&1` in 10922 *"Compilers 5.0"*) 10923 wlarc='' 10924 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10926 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10927 ;; 10928 *) 10929 wlarc='$wl' 10930 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10932 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10933 ;; 10934 esac 10935 fi 10936 hardcode_libdir_flag_spec='-R$libdir' 10937 hardcode_shlibpath_var=no 10938 case $host_os in 10939 solaris2.[0-5] | solaris2.[0-5].*) ;; 10940 *) 10941 # The compiler driver will combine and reorder linker options, 10942 # but understands '-z linker_flag'. GCC discards it without '$wl', 10943 # but is careful enough not to reorder. 10944 # Supported since Solaris 2.6 (maybe 2.5.1?) 10945 if test yes = "$GCC"; then 10946 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10947 else 10948 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10949 fi 10950 ;; 10951 esac 10952 link_all_deplibs=yes 10953 ;; 10954 10955 sunos4*) 10956 if test sequent = "$host_vendor"; then 10957 # Use $CC to link under sequent, because it throws in some extra .o 10958 # files that make .init and .fini sections work. 10959 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10960 else 10961 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10962 fi 10963 hardcode_libdir_flag_spec='-L$libdir' 10964 hardcode_direct=yes 10965 hardcode_minus_L=yes 10966 hardcode_shlibpath_var=no 10967 ;; 10968 10969 sysv4) 10970 case $host_vendor in 10971 sni) 10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10973 hardcode_direct=yes # is this really true??? 10974 ;; 10975 siemens) 10976 ## LD is ld it makes a PLAMLIB 10977 ## CC just makes a GrossModule. 10978 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10979 reload_cmds='$CC -r -o $output$reload_objs' 10980 hardcode_direct=no 10981 ;; 10982 motorola) 10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10984 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10985 ;; 10986 esac 10987 runpath_var='LD_RUN_PATH' 10988 hardcode_shlibpath_var=no 10989 ;; 10990 10991 sysv4.3*) 10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10993 hardcode_shlibpath_var=no 10994 export_dynamic_flag_spec='-Bexport' 10995 ;; 10996 10997 sysv4*MP*) 10998 if test -d /usr/nec; then 10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11000 hardcode_shlibpath_var=no 11001 runpath_var=LD_RUN_PATH 11002 hardcode_runpath_var=yes 11003 ld_shlibs=yes 11004 fi 11005 ;; 11006 11007 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11008 no_undefined_flag='$wl-z,text' 11009 archive_cmds_need_lc=no 11010 hardcode_shlibpath_var=no 11011 runpath_var='LD_RUN_PATH' 11012 11013 if test yes = "$GCC"; then 11014 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11015 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11016 else 11017 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11018 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11019 fi 11020 ;; 11021 11022 sysv5* | sco3.2v5* | sco5v6*) 11023 # Note: We CANNOT use -z defs as we might desire, because we do not 11024 # link with -lc, and that would cause any symbols used from libc to 11025 # always be unresolved, which means just about no library would 11026 # ever link correctly. If we're not using GNU ld we use -z text 11027 # though, which does catch some bad symbols but isn't as heavy-handed 11028 # as -z defs. 11029 no_undefined_flag='$wl-z,text' 11030 allow_undefined_flag='$wl-z,nodefs' 11031 archive_cmds_need_lc=no 11032 hardcode_shlibpath_var=no 11033 hardcode_libdir_flag_spec='$wl-R,$libdir' 11034 hardcode_libdir_separator=':' 11035 link_all_deplibs=yes 11036 export_dynamic_flag_spec='$wl-Bexport' 11037 runpath_var='LD_RUN_PATH' 11038 11039 if test yes = "$GCC"; then 11040 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11041 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11042 else 11043 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11044 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11045 fi 11046 ;; 11047 11048 uts4*) 11049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11050 hardcode_libdir_flag_spec='-L$libdir' 11051 hardcode_shlibpath_var=no 11052 ;; 11053 11054 *) 11055 ld_shlibs=no 11056 ;; 11057 esac 11058 11059 if test sni = "$host_vendor"; then 11060 case $host in 11061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11062 export_dynamic_flag_spec='$wl-Blargedynsym' 11063 ;; 11064 esac 11065 fi 11066 fi 11067 11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11069$as_echo "$ld_shlibs" >&6; } 11070test no = "$ld_shlibs" && can_build_shared=no 11071 11072with_gnu_ld=$with_gnu_ld 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088# 11089# Do we need to explicitly link libc? 11090# 11091case "x$archive_cmds_need_lc" in 11092x|xyes) 11093 # Assume -lc should be added 11094 archive_cmds_need_lc=yes 11095 11096 if test yes,yes = "$GCC,$enable_shared"; then 11097 case $archive_cmds in 11098 *'~'*) 11099 # FIXME: we may have to deal with multi-command sequences. 11100 ;; 11101 '$CC '*) 11102 # Test whether the compiler implicitly links with -lc since on some 11103 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11104 # to ld, don't add -lc before -lgcc. 11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11106$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11107if ${lt_cv_archive_cmds_need_lc+:} false; then : 11108 $as_echo_n "(cached) " >&6 11109else 11110 $RM conftest* 11111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11112 11113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11114 (eval $ac_compile) 2>&5 11115 ac_status=$? 11116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11117 test $ac_status = 0; } 2>conftest.err; then 11118 soname=conftest 11119 lib=conftest 11120 libobjs=conftest.$ac_objext 11121 deplibs= 11122 wl=$lt_prog_compiler_wl 11123 pic_flag=$lt_prog_compiler_pic 11124 compiler_flags=-v 11125 linker_flags=-v 11126 verstring= 11127 output_objdir=. 11128 libname=conftest 11129 lt_save_allow_undefined_flag=$allow_undefined_flag 11130 allow_undefined_flag= 11131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11132 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11133 ac_status=$? 11134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11135 test $ac_status = 0; } 11136 then 11137 lt_cv_archive_cmds_need_lc=no 11138 else 11139 lt_cv_archive_cmds_need_lc=yes 11140 fi 11141 allow_undefined_flag=$lt_save_allow_undefined_flag 11142 else 11143 cat conftest.err 1>&5 11144 fi 11145 $RM conftest* 11146 11147fi 11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11149$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11150 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11151 ;; 11152 esac 11153 fi 11154 ;; 11155esac 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11309$as_echo_n "checking dynamic linker characteristics... " >&6; } 11310 11311if test yes = "$GCC"; then 11312 case $host_os in 11313 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11314 *) lt_awk_arg='/^libraries:/' ;; 11315 esac 11316 case $host_os in 11317 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11318 *) lt_sed_strip_eq='s|=/|/|g' ;; 11319 esac 11320 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11321 case $lt_search_path_spec in 11322 *\;*) 11323 # if the path contains ";" then we assume it to be the separator 11324 # otherwise default to the standard path separator (i.e. ":") - it is 11325 # assumed that no part of a normal pathname contains ";" but that should 11326 # okay in the real world where ";" in dirpaths is itself problematic. 11327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11328 ;; 11329 *) 11330 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11331 ;; 11332 esac 11333 # Ok, now we have the path, separated by spaces, we can step through it 11334 # and add multilib dir if necessary... 11335 lt_tmp_lt_search_path_spec= 11336 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11337 # ...but if some path component already ends with the multilib dir we assume 11338 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11339 case "$lt_multi_os_dir; $lt_search_path_spec " in 11340 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11341 lt_multi_os_dir= 11342 ;; 11343 esac 11344 for lt_sys_path in $lt_search_path_spec; do 11345 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11346 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11347 elif test -n "$lt_multi_os_dir"; then 11348 test -d "$lt_sys_path" && \ 11349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11350 fi 11351 done 11352 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11353BEGIN {RS = " "; FS = "/|\n";} { 11354 lt_foo = ""; 11355 lt_count = 0; 11356 for (lt_i = NF; lt_i > 0; lt_i--) { 11357 if ($lt_i != "" && $lt_i != ".") { 11358 if ($lt_i == "..") { 11359 lt_count++; 11360 } else { 11361 if (lt_count == 0) { 11362 lt_foo = "/" $lt_i lt_foo; 11363 } else { 11364 lt_count--; 11365 } 11366 } 11367 } 11368 } 11369 if (lt_foo != "") { lt_freq[lt_foo]++; } 11370 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11371}'` 11372 # AWK program above erroneously prepends '/' to C:/dos/paths 11373 # for these hosts. 11374 case $host_os in 11375 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11376 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11377 esac 11378 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11379else 11380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11381fi 11382library_names_spec= 11383libname_spec='lib$name' 11384soname_spec= 11385shrext_cmds=.so 11386postinstall_cmds= 11387postuninstall_cmds= 11388finish_cmds= 11389finish_eval= 11390shlibpath_var= 11391shlibpath_overrides_runpath=unknown 11392version_type=none 11393dynamic_linker="$host_os ld.so" 11394sys_lib_dlsearch_path_spec="/lib /usr/lib" 11395need_lib_prefix=unknown 11396hardcode_into_libs=no 11397 11398# when you set need_version to no, make sure it does not cause -set_version 11399# flags to be left without arguments 11400need_version=unknown 11401 11402case $host_os in 11403aix3*) 11404 version_type=linux # correct to gnu/linux during the next big refactor 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11406 shlibpath_var=LIBPATH 11407 11408 # AIX 3 has no versioning support, so we append a major version to the name. 11409 soname_spec='$libname$release$shared_ext$major' 11410 ;; 11411 11412aix[4-9]*) 11413 version_type=linux # correct to gnu/linux during the next big refactor 11414 need_lib_prefix=no 11415 need_version=no 11416 hardcode_into_libs=yes 11417 if test ia64 = "$host_cpu"; then 11418 # AIX 5 supports IA64 11419 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11420 shlibpath_var=LD_LIBRARY_PATH 11421 else 11422 # With GCC up to 2.95.x, collect2 would create an import file 11423 # for dependence libraries. The import file would start with 11424 # the line '#! .'. This would cause the generated library to 11425 # depend on '.', always an invalid library. This was fixed in 11426 # development snapshots of GCC prior to 3.0. 11427 case $host_os in 11428 aix4 | aix4.[01] | aix4.[01].*) 11429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11430 echo ' yes ' 11431 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11432 : 11433 else 11434 can_build_shared=no 11435 fi 11436 ;; 11437 esac 11438 # Using Import Files as archive members, it is possible to support 11439 # filename-based versioning of shared library archives on AIX. While 11440 # this would work for both with and without runtime linking, it will 11441 # prevent static linking of such archives. So we do filename-based 11442 # shared library versioning with .so extension only, which is used 11443 # when both runtime linking and shared linking is enabled. 11444 # Unfortunately, runtime linking may impact performance, so we do 11445 # not want this to be the default eventually. Also, we use the 11446 # versioned .so libs for executables only if there is the -brtl 11447 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11448 # To allow for filename-based versioning support, we need to create 11449 # libNAME.so.V as an archive file, containing: 11450 # *) an Import File, referring to the versioned filename of the 11451 # archive as well as the shared archive member, telling the 11452 # bitwidth (32 or 64) of that shared object, and providing the 11453 # list of exported symbols of that shared object, eventually 11454 # decorated with the 'weak' keyword 11455 # *) the shared object with the F_LOADONLY flag set, to really avoid 11456 # it being seen by the linker. 11457 # At run time we better use the real file rather than another symlink, 11458 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11459 11460 case $with_aix_soname,$aix_use_runtimelinking in 11461 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11462 # soname into executable. Probably we can add versioning support to 11463 # collect2, so additional links can be useful in future. 11464 aix,yes) # traditional libtool 11465 dynamic_linker='AIX unversionable lib.so' 11466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11467 # instead of lib<name>.a to let people know that these are not 11468 # typical AIX shared libraries. 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11470 ;; 11471 aix,no) # traditional AIX only 11472 dynamic_linker='AIX lib.a(lib.so.V)' 11473 # We preserve .a as extension for shared libraries through AIX4.2 11474 # and later when we are not doing run time linking. 11475 library_names_spec='$libname$release.a $libname.a' 11476 soname_spec='$libname$release$shared_ext$major' 11477 ;; 11478 svr4,*) # full svr4 only 11479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11481 # We do not specify a path in Import Files, so LIBPATH fires. 11482 shlibpath_overrides_runpath=yes 11483 ;; 11484 *,yes) # both, prefer svr4 11485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11487 # unpreferred sharedlib libNAME.a needs extra handling 11488 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"' 11489 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"' 11490 # We do not specify a path in Import Files, so LIBPATH fires. 11491 shlibpath_overrides_runpath=yes 11492 ;; 11493 *,no) # both, prefer aix 11494 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11495 library_names_spec='$libname$release.a $libname.a' 11496 soname_spec='$libname$release$shared_ext$major' 11497 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11498 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)' 11499 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"' 11500 ;; 11501 esac 11502 shlibpath_var=LIBPATH 11503 fi 11504 ;; 11505 11506amigaos*) 11507 case $host_cpu in 11508 powerpc) 11509 # Since July 2007 AmigaOS4 officially supports .so libraries. 11510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11512 ;; 11513 m68k) 11514 library_names_spec='$libname.ixlibrary $libname.a' 11515 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11516 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' 11517 ;; 11518 esac 11519 ;; 11520 11521beos*) 11522 library_names_spec='$libname$shared_ext' 11523 dynamic_linker="$host_os ld.so" 11524 shlibpath_var=LIBRARY_PATH 11525 ;; 11526 11527bsdi[45]*) 11528 version_type=linux # correct to gnu/linux during the next big refactor 11529 need_version=no 11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11531 soname_spec='$libname$release$shared_ext$major' 11532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11533 shlibpath_var=LD_LIBRARY_PATH 11534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11536 # the default ld.so.conf also contains /usr/contrib/lib and 11537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11538 # libtool to hard-code these into programs 11539 ;; 11540 11541cygwin* | mingw* | pw32* | cegcc*) 11542 version_type=windows 11543 shrext_cmds=.dll 11544 need_version=no 11545 need_lib_prefix=no 11546 11547 case $GCC,$cc_basename in 11548 yes,*) 11549 # gcc 11550 library_names_spec='$libname.dll.a' 11551 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11552 postinstall_cmds='base_file=`basename \$file`~ 11553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11554 dldir=$destdir/`dirname \$dlpath`~ 11555 test -d \$dldir || mkdir -p \$dldir~ 11556 $install_prog $dir/$dlname \$dldir/$dlname~ 11557 chmod a+x \$dldir/$dlname~ 11558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11560 fi' 11561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11562 dlpath=$dir/\$dldll~ 11563 $RM \$dlpath' 11564 shlibpath_overrides_runpath=yes 11565 11566 case $host_os in 11567 cygwin*) 11568 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11569 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11570 11571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11572 ;; 11573 mingw* | cegcc*) 11574 # MinGW DLLs use traditional 'lib' prefix 11575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11576 ;; 11577 pw32*) 11578 # pw32 DLLs use 'pw' prefix rather than 'lib' 11579 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11580 ;; 11581 esac 11582 dynamic_linker='Win32 ld.exe' 11583 ;; 11584 11585 *,cl*) 11586 # Native MSVC 11587 libname_spec='$name' 11588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11589 library_names_spec='$libname.dll.lib' 11590 11591 case $build_os in 11592 mingw*) 11593 sys_lib_search_path_spec= 11594 lt_save_ifs=$IFS 11595 IFS=';' 11596 for lt_path in $LIB 11597 do 11598 IFS=$lt_save_ifs 11599 # Let DOS variable expansion print the short 8.3 style file name. 11600 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11601 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11602 done 11603 IFS=$lt_save_ifs 11604 # Convert to MSYS style. 11605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11606 ;; 11607 cygwin*) 11608 # Convert to unix form, then to dos form, then back to unix form 11609 # but this time dos style (no spaces!) so that the unix form looks 11610 # like /cygdrive/c/PROGRA~1:/cygdr... 11611 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11612 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11613 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11614 ;; 11615 *) 11616 sys_lib_search_path_spec=$LIB 11617 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11618 # It is most probably a Windows format PATH. 11619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11620 else 11621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11622 fi 11623 # FIXME: find the short name or the path components, as spaces are 11624 # common. (e.g. "Program Files" -> "PROGRA~1") 11625 ;; 11626 esac 11627 11628 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11629 postinstall_cmds='base_file=`basename \$file`~ 11630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11631 dldir=$destdir/`dirname \$dlpath`~ 11632 test -d \$dldir || mkdir -p \$dldir~ 11633 $install_prog $dir/$dlname \$dldir/$dlname' 11634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11635 dlpath=$dir/\$dldll~ 11636 $RM \$dlpath' 11637 shlibpath_overrides_runpath=yes 11638 dynamic_linker='Win32 link.exe' 11639 ;; 11640 11641 *) 11642 # Assume MSVC wrapper 11643 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11644 dynamic_linker='Win32 ld.exe' 11645 ;; 11646 esac 11647 # FIXME: first we should search . and the directory the executable is in 11648 shlibpath_var=PATH 11649 ;; 11650 11651darwin* | rhapsody*) 11652 dynamic_linker="$host_os dyld" 11653 version_type=darwin 11654 need_lib_prefix=no 11655 need_version=no 11656 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11657 soname_spec='$libname$release$major$shared_ext' 11658 shlibpath_overrides_runpath=yes 11659 shlibpath_var=DYLD_LIBRARY_PATH 11660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11661 11662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11664 ;; 11665 11666dgux*) 11667 version_type=linux # correct to gnu/linux during the next big refactor 11668 need_lib_prefix=no 11669 need_version=no 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11672 shlibpath_var=LD_LIBRARY_PATH 11673 ;; 11674 11675freebsd* | dragonfly*) 11676 # DragonFly does not have aout. When/if they implement a new 11677 # versioning mechanism, adjust this. 11678 if test -x /usr/bin/objformat; then 11679 objformat=`/usr/bin/objformat` 11680 else 11681 case $host_os in 11682 freebsd[23].*) objformat=aout ;; 11683 *) objformat=elf ;; 11684 esac 11685 fi 11686 version_type=freebsd-$objformat 11687 case $version_type in 11688 freebsd-elf*) 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 need_version=no 11691 need_lib_prefix=no 11692 ;; 11693 freebsd-*) 11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11695 need_version=yes 11696 ;; 11697 esac 11698 shlibpath_var=LD_LIBRARY_PATH 11699 case $host_os in 11700 freebsd2.*) 11701 shlibpath_overrides_runpath=yes 11702 ;; 11703 freebsd3.[01]* | freebsdelf3.[01]*) 11704 shlibpath_overrides_runpath=yes 11705 hardcode_into_libs=yes 11706 ;; 11707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11709 shlibpath_overrides_runpath=no 11710 hardcode_into_libs=yes 11711 ;; 11712 *) # from 4.6 on, and DragonFly 11713 shlibpath_overrides_runpath=yes 11714 hardcode_into_libs=yes 11715 ;; 11716 esac 11717 ;; 11718 11719haiku*) 11720 version_type=linux # correct to gnu/linux during the next big refactor 11721 need_lib_prefix=no 11722 need_version=no 11723 dynamic_linker="$host_os runtime_loader" 11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11725 soname_spec='$libname$release$shared_ext$major' 11726 shlibpath_var=LIBRARY_PATH 11727 shlibpath_overrides_runpath=no 11728 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11729 hardcode_into_libs=yes 11730 ;; 11731 11732hpux9* | hpux10* | hpux11*) 11733 # Give a soname corresponding to the major version so that dld.sl refuses to 11734 # link against other versions. 11735 version_type=sunos 11736 need_lib_prefix=no 11737 need_version=no 11738 case $host_cpu in 11739 ia64*) 11740 shrext_cmds='.so' 11741 hardcode_into_libs=yes 11742 dynamic_linker="$host_os dld.so" 11743 shlibpath_var=LD_LIBRARY_PATH 11744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11746 soname_spec='$libname$release$shared_ext$major' 11747 if test 32 = "$HPUX_IA64_MODE"; then 11748 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11749 else 11750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11751 fi 11752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11753 ;; 11754 hppa*64*) 11755 shrext_cmds='.sl' 11756 hardcode_into_libs=yes 11757 dynamic_linker="$host_os dld.sl" 11758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11761 soname_spec='$libname$release$shared_ext$major' 11762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11764 ;; 11765 *) 11766 shrext_cmds='.sl' 11767 dynamic_linker="$host_os dld.sl" 11768 shlibpath_var=SHLIB_PATH 11769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11771 soname_spec='$libname$release$shared_ext$major' 11772 ;; 11773 esac 11774 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11775 postinstall_cmds='chmod 555 $lib' 11776 # or fails outright, so override atomically: 11777 install_override_mode=555 11778 ;; 11779 11780interix[3-9]*) 11781 version_type=linux # correct to gnu/linux during the next big refactor 11782 need_lib_prefix=no 11783 need_version=no 11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11785 soname_spec='$libname$release$shared_ext$major' 11786 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 shlibpath_overrides_runpath=no 11789 hardcode_into_libs=yes 11790 ;; 11791 11792irix5* | irix6* | nonstopux*) 11793 case $host_os in 11794 nonstopux*) version_type=nonstopux ;; 11795 *) 11796 if test yes = "$lt_cv_prog_gnu_ld"; then 11797 version_type=linux # correct to gnu/linux during the next big refactor 11798 else 11799 version_type=irix 11800 fi ;; 11801 esac 11802 need_lib_prefix=no 11803 need_version=no 11804 soname_spec='$libname$release$shared_ext$major' 11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11806 case $host_os in 11807 irix5* | nonstopux*) 11808 libsuff= shlibsuff= 11809 ;; 11810 *) 11811 case $LD in # libtool.m4 will add one of these switches to LD 11812 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11813 libsuff= shlibsuff= libmagic=32-bit;; 11814 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11815 libsuff=32 shlibsuff=N32 libmagic=N32;; 11816 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11817 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11818 *) libsuff= shlibsuff= libmagic=never-match;; 11819 esac 11820 ;; 11821 esac 11822 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11823 shlibpath_overrides_runpath=no 11824 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11825 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11826 hardcode_into_libs=yes 11827 ;; 11828 11829# No shared lib support for Linux oldld, aout, or coff. 11830linux*oldld* | linux*aout* | linux*coff*) 11831 dynamic_linker=no 11832 ;; 11833 11834linux*android*) 11835 version_type=none # Android doesn't support versioned libraries. 11836 need_lib_prefix=no 11837 need_version=no 11838 library_names_spec='$libname$release$shared_ext' 11839 soname_spec='$libname$release$shared_ext' 11840 finish_cmds= 11841 shlibpath_var=LD_LIBRARY_PATH 11842 shlibpath_overrides_runpath=yes 11843 11844 # This implies no fast_install, which is unacceptable. 11845 # Some rework will be needed to allow for fast_install 11846 # before this can be enabled. 11847 hardcode_into_libs=yes 11848 11849 dynamic_linker='Android linker' 11850 # Don't embed -rpath directories since the linker doesn't support them. 11851 hardcode_libdir_flag_spec='-L$libdir' 11852 ;; 11853 11854# This must be glibc/ELF. 11855linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11856 version_type=linux # correct to gnu/linux during the next big refactor 11857 need_lib_prefix=no 11858 need_version=no 11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11860 soname_spec='$libname$release$shared_ext$major' 11861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11862 shlibpath_var=LD_LIBRARY_PATH 11863 shlibpath_overrides_runpath=no 11864 11865 # Some binutils ld are patched to set DT_RUNPATH 11866 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 lt_cv_shlibpath_overrides_runpath=no 11870 save_LDFLAGS=$LDFLAGS 11871 save_libdir=$libdir 11872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876 11877int 11878main () 11879{ 11880 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_c_try_link "$LINENO"; then : 11886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11887 lt_cv_shlibpath_overrides_runpath=yes 11888fi 11889fi 11890rm -f core conftest.err conftest.$ac_objext \ 11891 conftest$ac_exeext conftest.$ac_ext 11892 LDFLAGS=$save_LDFLAGS 11893 libdir=$save_libdir 11894 11895fi 11896 11897 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11898 11899 # This implies no fast_install, which is unacceptable. 11900 # Some rework will be needed to allow for fast_install 11901 # before this can be enabled. 11902 hardcode_into_libs=yes 11903 11904 # Append ld.so.conf contents to the search path 11905 if test -f /etc/ld.so.conf; then 11906 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' ' '` 11907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11908 fi 11909 11910 # We used to test for /lib/ld.so.1 and disable shared libraries on 11911 # powerpc, because MkLinux only supported shared libraries with the 11912 # GNU dynamic linker. Since this was broken with cross compilers, 11913 # most powerpc-linux boxes support dynamic linking these days and 11914 # people can always --disable-shared, the test was removed, and we 11915 # assume the GNU/Linux dynamic linker is in use. 11916 dynamic_linker='GNU/Linux ld.so' 11917 ;; 11918 11919netbsd*) 11920 version_type=sunos 11921 need_lib_prefix=no 11922 need_version=no 11923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11926 dynamic_linker='NetBSD (a.out) ld.so' 11927 else 11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11929 soname_spec='$libname$release$shared_ext$major' 11930 dynamic_linker='NetBSD ld.elf_so' 11931 fi 11932 shlibpath_var=LD_LIBRARY_PATH 11933 shlibpath_overrides_runpath=yes 11934 hardcode_into_libs=yes 11935 ;; 11936 11937newsos6) 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11940 shlibpath_var=LD_LIBRARY_PATH 11941 shlibpath_overrides_runpath=yes 11942 ;; 11943 11944*nto* | *qnx*) 11945 version_type=qnx 11946 need_lib_prefix=no 11947 need_version=no 11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11949 soname_spec='$libname$release$shared_ext$major' 11950 shlibpath_var=LD_LIBRARY_PATH 11951 shlibpath_overrides_runpath=no 11952 hardcode_into_libs=yes 11953 dynamic_linker='ldqnx.so' 11954 ;; 11955 11956openbsd* | bitrig*) 11957 version_type=sunos 11958 sys_lib_dlsearch_path_spec=/usr/lib 11959 need_lib_prefix=no 11960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11961 need_version=no 11962 else 11963 need_version=yes 11964 fi 11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11967 shlibpath_var=LD_LIBRARY_PATH 11968 shlibpath_overrides_runpath=yes 11969 ;; 11970 11971os2*) 11972 libname_spec='$name' 11973 version_type=windows 11974 shrext_cmds=.dll 11975 need_version=no 11976 need_lib_prefix=no 11977 # OS/2 can only load a DLL with a base name of 8 characters or less. 11978 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11979 v=$($ECHO $release$versuffix | tr -d .-); 11980 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11981 $ECHO $n$v`$shared_ext' 11982 library_names_spec='${libname}_dll.$libext' 11983 dynamic_linker='OS/2 ld.exe' 11984 shlibpath_var=BEGINLIBPATH 11985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11987 postinstall_cmds='base_file=`basename \$file`~ 11988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11989 dldir=$destdir/`dirname \$dlpath`~ 11990 test -d \$dldir || mkdir -p \$dldir~ 11991 $install_prog $dir/$dlname \$dldir/$dlname~ 11992 chmod a+x \$dldir/$dlname~ 11993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11995 fi' 11996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11997 dlpath=$dir/\$dldll~ 11998 $RM \$dlpath' 11999 ;; 12000 12001osf3* | osf4* | osf5*) 12002 version_type=osf 12003 need_lib_prefix=no 12004 need_version=no 12005 soname_spec='$libname$release$shared_ext$major' 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12007 shlibpath_var=LD_LIBRARY_PATH 12008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12010 ;; 12011 12012rdos*) 12013 dynamic_linker=no 12014 ;; 12015 12016solaris*) 12017 version_type=linux # correct to gnu/linux during the next big refactor 12018 need_lib_prefix=no 12019 need_version=no 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12021 soname_spec='$libname$release$shared_ext$major' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 shlibpath_overrides_runpath=yes 12024 hardcode_into_libs=yes 12025 # ldd complains unless libraries are executable 12026 postinstall_cmds='chmod +x $lib' 12027 ;; 12028 12029sunos4*) 12030 version_type=sunos 12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12033 shlibpath_var=LD_LIBRARY_PATH 12034 shlibpath_overrides_runpath=yes 12035 if test yes = "$with_gnu_ld"; then 12036 need_lib_prefix=no 12037 fi 12038 need_version=yes 12039 ;; 12040 12041sysv4 | sysv4.3*) 12042 version_type=linux # correct to gnu/linux during the next big refactor 12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12044 soname_spec='$libname$release$shared_ext$major' 12045 shlibpath_var=LD_LIBRARY_PATH 12046 case $host_vendor in 12047 sni) 12048 shlibpath_overrides_runpath=no 12049 need_lib_prefix=no 12050 runpath_var=LD_RUN_PATH 12051 ;; 12052 siemens) 12053 need_lib_prefix=no 12054 ;; 12055 motorola) 12056 need_lib_prefix=no 12057 need_version=no 12058 shlibpath_overrides_runpath=no 12059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12060 ;; 12061 esac 12062 ;; 12063 12064sysv4*MP*) 12065 if test -d /usr/nec; then 12066 version_type=linux # correct to gnu/linux during the next big refactor 12067 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12068 soname_spec='$libname$shared_ext.$major' 12069 shlibpath_var=LD_LIBRARY_PATH 12070 fi 12071 ;; 12072 12073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12074 version_type=sco 12075 need_lib_prefix=no 12076 need_version=no 12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12078 soname_spec='$libname$release$shared_ext$major' 12079 shlibpath_var=LD_LIBRARY_PATH 12080 shlibpath_overrides_runpath=yes 12081 hardcode_into_libs=yes 12082 if test yes = "$with_gnu_ld"; then 12083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12084 else 12085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12086 case $host_os in 12087 sco3.2v5*) 12088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12089 ;; 12090 esac 12091 fi 12092 sys_lib_dlsearch_path_spec='/usr/lib' 12093 ;; 12094 12095tpf*) 12096 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12097 version_type=linux # correct to gnu/linux during the next big refactor 12098 need_lib_prefix=no 12099 need_version=no 12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12101 shlibpath_var=LD_LIBRARY_PATH 12102 shlibpath_overrides_runpath=no 12103 hardcode_into_libs=yes 12104 ;; 12105 12106uts4*) 12107 version_type=linux # correct to gnu/linux during the next big refactor 12108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12109 soname_spec='$libname$release$shared_ext$major' 12110 shlibpath_var=LD_LIBRARY_PATH 12111 ;; 12112 12113*) 12114 dynamic_linker=no 12115 ;; 12116esac 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12118$as_echo "$dynamic_linker" >&6; } 12119test no = "$dynamic_linker" && can_build_shared=no 12120 12121variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12122if test yes = "$GCC"; then 12123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12124fi 12125 12126if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12127 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12128fi 12129if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12130 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12131fi 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12225$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12226hardcode_action= 12227if test -n "$hardcode_libdir_flag_spec" || 12228 test -n "$runpath_var" || 12229 test yes = "$hardcode_automatic"; then 12230 12231 # We can hardcode non-existent directories. 12232 if test no != "$hardcode_direct" && 12233 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12234 # have to relink, otherwise we might link with an installed library 12235 # when we should be linking with a yet-to-be-installed one 12236 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12237 test no != "$hardcode_minus_L"; then 12238 # Linking always hardcodes the temporary library directory. 12239 hardcode_action=relink 12240 else 12241 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12242 hardcode_action=immediate 12243 fi 12244else 12245 # We cannot hardcode anything, or else we can only hardcode existing 12246 # directories. 12247 hardcode_action=unsupported 12248fi 12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12250$as_echo "$hardcode_action" >&6; } 12251 12252if test relink = "$hardcode_action" || 12253 test yes = "$inherit_rpath"; then 12254 # Fast installation is not supported 12255 enable_fast_install=no 12256elif test yes = "$shlibpath_overrides_runpath" || 12257 test no = "$enable_shared"; then 12258 # Fast installation is not necessary 12259 enable_fast_install=needless 12260fi 12261 12262 12263 12264 12265 12266 12267 if test yes != "$enable_dlopen"; then 12268 enable_dlopen=unknown 12269 enable_dlopen_self=unknown 12270 enable_dlopen_self_static=unknown 12271else 12272 lt_cv_dlopen=no 12273 lt_cv_dlopen_libs= 12274 12275 case $host_os in 12276 beos*) 12277 lt_cv_dlopen=load_add_on 12278 lt_cv_dlopen_libs= 12279 lt_cv_dlopen_self=yes 12280 ;; 12281 12282 mingw* | pw32* | cegcc*) 12283 lt_cv_dlopen=LoadLibrary 12284 lt_cv_dlopen_libs= 12285 ;; 12286 12287 cygwin*) 12288 lt_cv_dlopen=dlopen 12289 lt_cv_dlopen_libs= 12290 ;; 12291 12292 darwin*) 12293 # if libdl is installed we need to link against it 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12295$as_echo_n "checking for dlopen in -ldl... " >&6; } 12296if ${ac_cv_lib_dl_dlopen+:} false; then : 12297 $as_echo_n "(cached) " >&6 12298else 12299 ac_check_lib_save_LIBS=$LIBS 12300LIBS="-ldl $LIBS" 12301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303 12304/* Override any GCC internal prototype to avoid an error. 12305 Use char because int might match the return type of a GCC 12306 builtin and then its argument prototype would still apply. */ 12307#ifdef __cplusplus 12308extern "C" 12309#endif 12310char dlopen (); 12311int 12312main () 12313{ 12314return dlopen (); 12315 ; 12316 return 0; 12317} 12318_ACEOF 12319if ac_fn_c_try_link "$LINENO"; then : 12320 ac_cv_lib_dl_dlopen=yes 12321else 12322 ac_cv_lib_dl_dlopen=no 12323fi 12324rm -f core conftest.err conftest.$ac_objext \ 12325 conftest$ac_exeext conftest.$ac_ext 12326LIBS=$ac_check_lib_save_LIBS 12327fi 12328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12329$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12330if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12331 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12332else 12333 12334 lt_cv_dlopen=dyld 12335 lt_cv_dlopen_libs= 12336 lt_cv_dlopen_self=yes 12337 12338fi 12339 12340 ;; 12341 12342 tpf*) 12343 # Don't try to run any link tests for TPF. We know it's impossible 12344 # because TPF is a cross-compiler, and we know how we open DSOs. 12345 lt_cv_dlopen=dlopen 12346 lt_cv_dlopen_libs= 12347 lt_cv_dlopen_self=no 12348 ;; 12349 12350 *) 12351 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12352if test "x$ac_cv_func_shl_load" = xyes; then : 12353 lt_cv_dlopen=shl_load 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12356$as_echo_n "checking for shl_load in -ldld... " >&6; } 12357if ${ac_cv_lib_dld_shl_load+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 ac_check_lib_save_LIBS=$LIBS 12361LIBS="-ldld $LIBS" 12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364 12365/* Override any GCC internal prototype to avoid an error. 12366 Use char because int might match the return type of a GCC 12367 builtin and then its argument prototype would still apply. */ 12368#ifdef __cplusplus 12369extern "C" 12370#endif 12371char shl_load (); 12372int 12373main () 12374{ 12375return shl_load (); 12376 ; 12377 return 0; 12378} 12379_ACEOF 12380if ac_fn_c_try_link "$LINENO"; then : 12381 ac_cv_lib_dld_shl_load=yes 12382else 12383 ac_cv_lib_dld_shl_load=no 12384fi 12385rm -f core conftest.err conftest.$ac_objext \ 12386 conftest$ac_exeext conftest.$ac_ext 12387LIBS=$ac_check_lib_save_LIBS 12388fi 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12390$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12391if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12392 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12393else 12394 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12395if test "x$ac_cv_func_dlopen" = xyes; then : 12396 lt_cv_dlopen=dlopen 12397else 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12399$as_echo_n "checking for dlopen in -ldl... " >&6; } 12400if ${ac_cv_lib_dl_dlopen+:} false; then : 12401 $as_echo_n "(cached) " >&6 12402else 12403 ac_check_lib_save_LIBS=$LIBS 12404LIBS="-ldl $LIBS" 12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407 12408/* Override any GCC internal prototype to avoid an error. 12409 Use char because int might match the return type of a GCC 12410 builtin and then its argument prototype would still apply. */ 12411#ifdef __cplusplus 12412extern "C" 12413#endif 12414char dlopen (); 12415int 12416main () 12417{ 12418return dlopen (); 12419 ; 12420 return 0; 12421} 12422_ACEOF 12423if ac_fn_c_try_link "$LINENO"; then : 12424 ac_cv_lib_dl_dlopen=yes 12425else 12426 ac_cv_lib_dl_dlopen=no 12427fi 12428rm -f core conftest.err conftest.$ac_objext \ 12429 conftest$ac_exeext conftest.$ac_ext 12430LIBS=$ac_check_lib_save_LIBS 12431fi 12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12433$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12434if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12435 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12436else 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12438$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12439if ${ac_cv_lib_svld_dlopen+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 ac_check_lib_save_LIBS=$LIBS 12443LIBS="-lsvld $LIBS" 12444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445/* end confdefs.h. */ 12446 12447/* Override any GCC internal prototype to avoid an error. 12448 Use char because int might match the return type of a GCC 12449 builtin and then its argument prototype would still apply. */ 12450#ifdef __cplusplus 12451extern "C" 12452#endif 12453char dlopen (); 12454int 12455main () 12456{ 12457return dlopen (); 12458 ; 12459 return 0; 12460} 12461_ACEOF 12462if ac_fn_c_try_link "$LINENO"; then : 12463 ac_cv_lib_svld_dlopen=yes 12464else 12465 ac_cv_lib_svld_dlopen=no 12466fi 12467rm -f core conftest.err conftest.$ac_objext \ 12468 conftest$ac_exeext conftest.$ac_ext 12469LIBS=$ac_check_lib_save_LIBS 12470fi 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12472$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12473if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12474 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12475else 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12477$as_echo_n "checking for dld_link in -ldld... " >&6; } 12478if ${ac_cv_lib_dld_dld_link+:} false; then : 12479 $as_echo_n "(cached) " >&6 12480else 12481 ac_check_lib_save_LIBS=$LIBS 12482LIBS="-ldld $LIBS" 12483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484/* end confdefs.h. */ 12485 12486/* Override any GCC internal prototype to avoid an error. 12487 Use char because int might match the return type of a GCC 12488 builtin and then its argument prototype would still apply. */ 12489#ifdef __cplusplus 12490extern "C" 12491#endif 12492char dld_link (); 12493int 12494main () 12495{ 12496return dld_link (); 12497 ; 12498 return 0; 12499} 12500_ACEOF 12501if ac_fn_c_try_link "$LINENO"; then : 12502 ac_cv_lib_dld_dld_link=yes 12503else 12504 ac_cv_lib_dld_dld_link=no 12505fi 12506rm -f core conftest.err conftest.$ac_objext \ 12507 conftest$ac_exeext conftest.$ac_ext 12508LIBS=$ac_check_lib_save_LIBS 12509fi 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12511$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12512if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12513 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12514fi 12515 12516 12517fi 12518 12519 12520fi 12521 12522 12523fi 12524 12525 12526fi 12527 12528 12529fi 12530 12531 ;; 12532 esac 12533 12534 if test no = "$lt_cv_dlopen"; then 12535 enable_dlopen=no 12536 else 12537 enable_dlopen=yes 12538 fi 12539 12540 case $lt_cv_dlopen in 12541 dlopen) 12542 save_CPPFLAGS=$CPPFLAGS 12543 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12544 12545 save_LDFLAGS=$LDFLAGS 12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12547 12548 save_LIBS=$LIBS 12549 LIBS="$lt_cv_dlopen_libs $LIBS" 12550 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12552$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12553if ${lt_cv_dlopen_self+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 if test yes = "$cross_compiling"; then : 12557 lt_cv_dlopen_self=cross 12558else 12559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12560 lt_status=$lt_dlunknown 12561 cat > conftest.$ac_ext <<_LT_EOF 12562#line $LINENO "configure" 12563#include "confdefs.h" 12564 12565#if HAVE_DLFCN_H 12566#include <dlfcn.h> 12567#endif 12568 12569#include <stdio.h> 12570 12571#ifdef RTLD_GLOBAL 12572# define LT_DLGLOBAL RTLD_GLOBAL 12573#else 12574# ifdef DL_GLOBAL 12575# define LT_DLGLOBAL DL_GLOBAL 12576# else 12577# define LT_DLGLOBAL 0 12578# endif 12579#endif 12580 12581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12582 find out it does not work in some platform. */ 12583#ifndef LT_DLLAZY_OR_NOW 12584# ifdef RTLD_LAZY 12585# define LT_DLLAZY_OR_NOW RTLD_LAZY 12586# else 12587# ifdef DL_LAZY 12588# define LT_DLLAZY_OR_NOW DL_LAZY 12589# else 12590# ifdef RTLD_NOW 12591# define LT_DLLAZY_OR_NOW RTLD_NOW 12592# else 12593# ifdef DL_NOW 12594# define LT_DLLAZY_OR_NOW DL_NOW 12595# else 12596# define LT_DLLAZY_OR_NOW 0 12597# endif 12598# endif 12599# endif 12600# endif 12601#endif 12602 12603/* When -fvisibility=hidden is used, assume the code has been annotated 12604 correspondingly for the symbols needed. */ 12605#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12606int fnord () __attribute__((visibility("default"))); 12607#endif 12608 12609int fnord () { return 42; } 12610int main () 12611{ 12612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12613 int status = $lt_dlunknown; 12614 12615 if (self) 12616 { 12617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12618 else 12619 { 12620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12621 else puts (dlerror ()); 12622 } 12623 /* dlclose (self); */ 12624 } 12625 else 12626 puts (dlerror ()); 12627 12628 return status; 12629} 12630_LT_EOF 12631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12632 (eval $ac_link) 2>&5 12633 ac_status=$? 12634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12635 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12636 (./conftest; exit; ) >&5 2>/dev/null 12637 lt_status=$? 12638 case x$lt_status in 12639 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12640 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12641 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12642 esac 12643 else : 12644 # compilation failed 12645 lt_cv_dlopen_self=no 12646 fi 12647fi 12648rm -fr conftest* 12649 12650 12651fi 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12653$as_echo "$lt_cv_dlopen_self" >&6; } 12654 12655 if test yes = "$lt_cv_dlopen_self"; then 12656 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12658$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12659if ${lt_cv_dlopen_self_static+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661else 12662 if test yes = "$cross_compiling"; then : 12663 lt_cv_dlopen_self_static=cross 12664else 12665 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12666 lt_status=$lt_dlunknown 12667 cat > conftest.$ac_ext <<_LT_EOF 12668#line $LINENO "configure" 12669#include "confdefs.h" 12670 12671#if HAVE_DLFCN_H 12672#include <dlfcn.h> 12673#endif 12674 12675#include <stdio.h> 12676 12677#ifdef RTLD_GLOBAL 12678# define LT_DLGLOBAL RTLD_GLOBAL 12679#else 12680# ifdef DL_GLOBAL 12681# define LT_DLGLOBAL DL_GLOBAL 12682# else 12683# define LT_DLGLOBAL 0 12684# endif 12685#endif 12686 12687/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12688 find out it does not work in some platform. */ 12689#ifndef LT_DLLAZY_OR_NOW 12690# ifdef RTLD_LAZY 12691# define LT_DLLAZY_OR_NOW RTLD_LAZY 12692# else 12693# ifdef DL_LAZY 12694# define LT_DLLAZY_OR_NOW DL_LAZY 12695# else 12696# ifdef RTLD_NOW 12697# define LT_DLLAZY_OR_NOW RTLD_NOW 12698# else 12699# ifdef DL_NOW 12700# define LT_DLLAZY_OR_NOW DL_NOW 12701# else 12702# define LT_DLLAZY_OR_NOW 0 12703# endif 12704# endif 12705# endif 12706# endif 12707#endif 12708 12709/* When -fvisibility=hidden is used, assume the code has been annotated 12710 correspondingly for the symbols needed. */ 12711#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12712int fnord () __attribute__((visibility("default"))); 12713#endif 12714 12715int fnord () { return 42; } 12716int main () 12717{ 12718 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12719 int status = $lt_dlunknown; 12720 12721 if (self) 12722 { 12723 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12724 else 12725 { 12726 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12727 else puts (dlerror ()); 12728 } 12729 /* dlclose (self); */ 12730 } 12731 else 12732 puts (dlerror ()); 12733 12734 return status; 12735} 12736_LT_EOF 12737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12738 (eval $ac_link) 2>&5 12739 ac_status=$? 12740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12741 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12742 (./conftest; exit; ) >&5 2>/dev/null 12743 lt_status=$? 12744 case x$lt_status in 12745 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12746 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12747 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12748 esac 12749 else : 12750 # compilation failed 12751 lt_cv_dlopen_self_static=no 12752 fi 12753fi 12754rm -fr conftest* 12755 12756 12757fi 12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12759$as_echo "$lt_cv_dlopen_self_static" >&6; } 12760 fi 12761 12762 CPPFLAGS=$save_CPPFLAGS 12763 LDFLAGS=$save_LDFLAGS 12764 LIBS=$save_LIBS 12765 ;; 12766 esac 12767 12768 case $lt_cv_dlopen_self in 12769 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12770 *) enable_dlopen_self=unknown ;; 12771 esac 12772 12773 case $lt_cv_dlopen_self_static in 12774 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12775 *) enable_dlopen_self_static=unknown ;; 12776 esac 12777fi 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795striplib= 12796old_striplib= 12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12798$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12799if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12800 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12801 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12803$as_echo "yes" >&6; } 12804else 12805# FIXME - insert some real tests, host_os isn't really good enough 12806 case $host_os in 12807 darwin*) 12808 if test -n "$STRIP"; then 12809 striplib="$STRIP -x" 12810 old_striplib="$STRIP -S" 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12812$as_echo "yes" >&6; } 12813 else 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12815$as_echo "no" >&6; } 12816 fi 12817 ;; 12818 *) 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12820$as_echo "no" >&6; } 12821 ;; 12822 esac 12823fi 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 # Report what library types will actually be built 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12838$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12840$as_echo "$can_build_shared" >&6; } 12841 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12843$as_echo_n "checking whether to build shared libraries... " >&6; } 12844 test no = "$can_build_shared" && enable_shared=no 12845 12846 # On AIX, shared libraries and static libraries use the same namespace, and 12847 # are all built from PIC. 12848 case $host_os in 12849 aix3*) 12850 test yes = "$enable_shared" && enable_static=no 12851 if test -n "$RANLIB"; then 12852 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12853 postinstall_cmds='$RANLIB $lib' 12854 fi 12855 ;; 12856 12857 aix[4-9]*) 12858 if test ia64 != "$host_cpu"; then 12859 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12860 yes,aix,yes) ;; # shared object as lib.so file only 12861 yes,svr4,*) ;; # shared object as lib.so archive member only 12862 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12863 esac 12864 fi 12865 ;; 12866 esac 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12868$as_echo "$enable_shared" >&6; } 12869 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12871$as_echo_n "checking whether to build static libraries... " >&6; } 12872 # Make sure either enable_shared or enable_static is yes. 12873 test yes = "$enable_shared" || enable_static=yes 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12875$as_echo "$enable_static" >&6; } 12876 12877 12878 12879 12880fi 12881ac_ext=c 12882ac_cpp='$CPP $CPPFLAGS' 12883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12885ac_compiler_gnu=$ac_cv_c_compiler_gnu 12886 12887CC=$lt_save_CC 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 ac_config_commands="$ac_config_commands libtool" 12904 12905 12906 12907 12908# Only expand once: 12909 12910 12911ac_ext=cpp 12912ac_cpp='$CXXCPP $CPPFLAGS' 12913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12916if test -z "$CXX"; then 12917 if test -n "$CCC"; then 12918 CXX=$CCC 12919 else 12920 if test -n "$ac_tool_prefix"; then 12921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12922 do 12923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12924set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12926$as_echo_n "checking for $ac_word... " >&6; } 12927if ${ac_cv_prog_CXX+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929else 12930 if test -n "$CXX"; then 12931 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12932else 12933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12934for as_dir in $PATH 12935do 12936 IFS=$as_save_IFS 12937 test -z "$as_dir" && as_dir=. 12938 for ac_exec_ext in '' $ac_executable_extensions; do 12939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12942 break 2 12943 fi 12944done 12945 done 12946IFS=$as_save_IFS 12947 12948fi 12949fi 12950CXX=$ac_cv_prog_CXX 12951if test -n "$CXX"; then 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12953$as_echo "$CXX" >&6; } 12954else 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12956$as_echo "no" >&6; } 12957fi 12958 12959 12960 test -n "$CXX" && break 12961 done 12962fi 12963if test -z "$CXX"; then 12964 ac_ct_CXX=$CXX 12965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12966do 12967 # Extract the first word of "$ac_prog", so it can be a program name with args. 12968set dummy $ac_prog; ac_word=$2 12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12970$as_echo_n "checking for $ac_word... " >&6; } 12971if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12972 $as_echo_n "(cached) " >&6 12973else 12974 if test -n "$ac_ct_CXX"; then 12975 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12976else 12977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12978for as_dir in $PATH 12979do 12980 IFS=$as_save_IFS 12981 test -z "$as_dir" && as_dir=. 12982 for ac_exec_ext in '' $ac_executable_extensions; do 12983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12984 ac_cv_prog_ac_ct_CXX="$ac_prog" 12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12986 break 2 12987 fi 12988done 12989 done 12990IFS=$as_save_IFS 12991 12992fi 12993fi 12994ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12995if test -n "$ac_ct_CXX"; then 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12997$as_echo "$ac_ct_CXX" >&6; } 12998else 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13000$as_echo "no" >&6; } 13001fi 13002 13003 13004 test -n "$ac_ct_CXX" && break 13005done 13006 13007 if test "x$ac_ct_CXX" = x; then 13008 CXX="g++" 13009 else 13010 case $cross_compiling:$ac_tool_warned in 13011yes:) 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13014ac_tool_warned=yes ;; 13015esac 13016 CXX=$ac_ct_CXX 13017 fi 13018fi 13019 13020 fi 13021fi 13022# Provide some information about the compiler. 13023$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13024set X $ac_compile 13025ac_compiler=$2 13026for ac_option in --version -v -V -qversion; do 13027 { { ac_try="$ac_compiler $ac_option >&5" 13028case "(($ac_try" in 13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13030 *) ac_try_echo=$ac_try;; 13031esac 13032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13033$as_echo "$ac_try_echo"; } >&5 13034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13035 ac_status=$? 13036 if test -s conftest.err; then 13037 sed '10a\ 13038... rest of stderr output deleted ... 13039 10q' conftest.err >conftest.er1 13040 cat conftest.er1 >&5 13041 fi 13042 rm -f conftest.er1 conftest.err 13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13044 test $ac_status = 0; } 13045done 13046 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13048$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13049if ${ac_cv_cxx_compiler_gnu+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054 13055int 13056main () 13057{ 13058#ifndef __GNUC__ 13059 choke me 13060#endif 13061 13062 ; 13063 return 0; 13064} 13065_ACEOF 13066if ac_fn_cxx_try_compile "$LINENO"; then : 13067 ac_compiler_gnu=yes 13068else 13069 ac_compiler_gnu=no 13070fi 13071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13072ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13073 13074fi 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13076$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13077if test $ac_compiler_gnu = yes; then 13078 GXX=yes 13079else 13080 GXX= 13081fi 13082ac_test_CXXFLAGS=${CXXFLAGS+set} 13083ac_save_CXXFLAGS=$CXXFLAGS 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13085$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13086if ${ac_cv_prog_cxx_g+:} false; then : 13087 $as_echo_n "(cached) " >&6 13088else 13089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13090 ac_cxx_werror_flag=yes 13091 ac_cv_prog_cxx_g=no 13092 CXXFLAGS="-g" 13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095 13096int 13097main () 13098{ 13099 13100 ; 13101 return 0; 13102} 13103_ACEOF 13104if ac_fn_cxx_try_compile "$LINENO"; then : 13105 ac_cv_prog_cxx_g=yes 13106else 13107 CXXFLAGS="" 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110 13111int 13112main () 13113{ 13114 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119if ac_fn_cxx_try_compile "$LINENO"; then : 13120 13121else 13122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13123 CXXFLAGS="-g" 13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13125/* end confdefs.h. */ 13126 13127int 13128main () 13129{ 13130 13131 ; 13132 return 0; 13133} 13134_ACEOF 13135if ac_fn_cxx_try_compile "$LINENO"; then : 13136 ac_cv_prog_cxx_g=yes 13137fi 13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13139fi 13140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13141fi 13142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13144fi 13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13146$as_echo "$ac_cv_prog_cxx_g" >&6; } 13147if test "$ac_test_CXXFLAGS" = set; then 13148 CXXFLAGS=$ac_save_CXXFLAGS 13149elif test $ac_cv_prog_cxx_g = yes; then 13150 if test "$GXX" = yes; then 13151 CXXFLAGS="-g -O2" 13152 else 13153 CXXFLAGS="-g" 13154 fi 13155else 13156 if test "$GXX" = yes; then 13157 CXXFLAGS="-O2" 13158 else 13159 CXXFLAGS= 13160 fi 13161fi 13162ac_ext=c 13163ac_cpp='$CPP $CPPFLAGS' 13164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13166ac_compiler_gnu=$ac_cv_c_compiler_gnu 13167 13168depcc="$CXX" am_compiler_list= 13169 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13171$as_echo_n "checking dependency style of $depcc... " >&6; } 13172if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13173 $as_echo_n "(cached) " >&6 13174else 13175 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13176 # We make a subdir and do the tests there. Otherwise we can end up 13177 # making bogus files that we don't know about and never remove. For 13178 # instance it was reported that on HP-UX the gcc test will end up 13179 # making a dummy file named 'D' -- because '-MD' means "put the output 13180 # in D". 13181 rm -rf conftest.dir 13182 mkdir conftest.dir 13183 # Copy depcomp to subdir because otherwise we won't find it if we're 13184 # using a relative directory. 13185 cp "$am_depcomp" conftest.dir 13186 cd conftest.dir 13187 # We will build objects and dependencies in a subdirectory because 13188 # it helps to detect inapplicable dependency modes. For instance 13189 # both Tru64's cc and ICC support -MD to output dependencies as a 13190 # side effect of compilation, but ICC will put the dependencies in 13191 # the current directory while Tru64 will put them in the object 13192 # directory. 13193 mkdir sub 13194 13195 am_cv_CXX_dependencies_compiler_type=none 13196 if test "$am_compiler_list" = ""; then 13197 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13198 fi 13199 am__universal=false 13200 case " $depcc " in #( 13201 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13202 esac 13203 13204 for depmode in $am_compiler_list; do 13205 # Setup a source with many dependencies, because some compilers 13206 # like to wrap large dependency lists on column 80 (with \), and 13207 # we should not choose a depcomp mode which is confused by this. 13208 # 13209 # We need to recreate these files for each test, as the compiler may 13210 # overwrite some of them when testing with obscure command lines. 13211 # This happens at least with the AIX C compiler. 13212 : > sub/conftest.c 13213 for i in 1 2 3 4 5 6; do 13214 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13215 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13216 # Solaris 10 /bin/sh. 13217 echo '/* dummy */' > sub/conftst$i.h 13218 done 13219 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13220 13221 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13222 # mode. It turns out that the SunPro C++ compiler does not properly 13223 # handle '-M -o', and we need to detect this. Also, some Intel 13224 # versions had trouble with output in subdirs. 13225 am__obj=sub/conftest.${OBJEXT-o} 13226 am__minus_obj="-o $am__obj" 13227 case $depmode in 13228 gcc) 13229 # This depmode causes a compiler race in universal mode. 13230 test "$am__universal" = false || continue 13231 ;; 13232 nosideeffect) 13233 # After this tag, mechanisms are not by side-effect, so they'll 13234 # only be used when explicitly requested. 13235 if test "x$enable_dependency_tracking" = xyes; then 13236 continue 13237 else 13238 break 13239 fi 13240 ;; 13241 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13242 # This compiler won't grok '-c -o', but also, the minuso test has 13243 # not run yet. These depmodes are late enough in the game, and 13244 # so weak that their functioning should not be impacted. 13245 am__obj=conftest.${OBJEXT-o} 13246 am__minus_obj= 13247 ;; 13248 none) break ;; 13249 esac 13250 if depmode=$depmode \ 13251 source=sub/conftest.c object=$am__obj \ 13252 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13253 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13254 >/dev/null 2>conftest.err && 13255 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13256 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13257 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13258 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13259 # icc doesn't choke on unknown options, it will just issue warnings 13260 # or remarks (even with -Werror). So we grep stderr for any message 13261 # that says an option was ignored or not supported. 13262 # When given -MP, icc 7.0 and 7.1 complain thusly: 13263 # icc: Command line warning: ignoring option '-M'; no argument required 13264 # The diagnosis changed in icc 8.0: 13265 # icc: Command line remark: option '-MP' not supported 13266 if (grep 'ignoring option' conftest.err || 13267 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13268 am_cv_CXX_dependencies_compiler_type=$depmode 13269 break 13270 fi 13271 fi 13272 done 13273 13274 cd .. 13275 rm -rf conftest.dir 13276else 13277 am_cv_CXX_dependencies_compiler_type=none 13278fi 13279 13280fi 13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13282$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13283CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13284 13285 if 13286 test "x$enable_dependency_tracking" != xno \ 13287 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13288 am__fastdepCXX_TRUE= 13289 am__fastdepCXX_FALSE='#' 13290else 13291 am__fastdepCXX_TRUE='#' 13292 am__fastdepCXX_FALSE= 13293fi 13294 13295 13296 13297 13298 13299func_stripname_cnf () 13300{ 13301 case $2 in 13302 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13303 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13304 esac 13305} # func_stripname_cnf 13306 13307 if test -n "$CXX" && ( test no != "$CXX" && 13308 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13309 (test g++ != "$CXX"))); then 13310 ac_ext=cpp 13311ac_cpp='$CXXCPP $CPPFLAGS' 13312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13316$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13317if test -z "$CXXCPP"; then 13318 if ${ac_cv_prog_CXXCPP+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 # Double quotes because CXXCPP needs to be expanded 13322 for CXXCPP in "$CXX -E" "/lib/cpp" 13323 do 13324 ac_preproc_ok=false 13325for ac_cxx_preproc_warn_flag in '' yes 13326do 13327 # Use a header file that comes with gcc, so configuring glibc 13328 # with a fresh cross-compiler works. 13329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13330 # <limits.h> exists even on freestanding compilers. 13331 # On the NeXT, cc -E runs the code through the compiler's parser, 13332 # not just through cpp. "Syntax error" is here to catch this case. 13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335#ifdef __STDC__ 13336# include <limits.h> 13337#else 13338# include <assert.h> 13339#endif 13340 Syntax error 13341_ACEOF 13342if ac_fn_cxx_try_cpp "$LINENO"; then : 13343 13344else 13345 # Broken: fails on valid input. 13346continue 13347fi 13348rm -f conftest.err conftest.i conftest.$ac_ext 13349 13350 # OK, works on sane cases. Now check whether nonexistent headers 13351 # can be detected and how. 13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13353/* end confdefs.h. */ 13354#include <ac_nonexistent.h> 13355_ACEOF 13356if ac_fn_cxx_try_cpp "$LINENO"; then : 13357 # Broken: success on invalid input. 13358continue 13359else 13360 # Passes both tests. 13361ac_preproc_ok=: 13362break 13363fi 13364rm -f conftest.err conftest.i conftest.$ac_ext 13365 13366done 13367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13368rm -f conftest.i conftest.err conftest.$ac_ext 13369if $ac_preproc_ok; then : 13370 break 13371fi 13372 13373 done 13374 ac_cv_prog_CXXCPP=$CXXCPP 13375 13376fi 13377 CXXCPP=$ac_cv_prog_CXXCPP 13378else 13379 ac_cv_prog_CXXCPP=$CXXCPP 13380fi 13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13382$as_echo "$CXXCPP" >&6; } 13383ac_preproc_ok=false 13384for ac_cxx_preproc_warn_flag in '' yes 13385do 13386 # Use a header file that comes with gcc, so configuring glibc 13387 # with a fresh cross-compiler works. 13388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13389 # <limits.h> exists even on freestanding compilers. 13390 # On the NeXT, cc -E runs the code through the compiler's parser, 13391 # not just through cpp. "Syntax error" is here to catch this case. 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393/* end confdefs.h. */ 13394#ifdef __STDC__ 13395# include <limits.h> 13396#else 13397# include <assert.h> 13398#endif 13399 Syntax error 13400_ACEOF 13401if ac_fn_cxx_try_cpp "$LINENO"; then : 13402 13403else 13404 # Broken: fails on valid input. 13405continue 13406fi 13407rm -f conftest.err conftest.i conftest.$ac_ext 13408 13409 # OK, works on sane cases. Now check whether nonexistent headers 13410 # can be detected and how. 13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13412/* end confdefs.h. */ 13413#include <ac_nonexistent.h> 13414_ACEOF 13415if ac_fn_cxx_try_cpp "$LINENO"; then : 13416 # Broken: success on invalid input. 13417continue 13418else 13419 # Passes both tests. 13420ac_preproc_ok=: 13421break 13422fi 13423rm -f conftest.err conftest.i conftest.$ac_ext 13424 13425done 13426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13427rm -f conftest.i conftest.err conftest.$ac_ext 13428if $ac_preproc_ok; then : 13429 13430else 13431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13433as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13434See \`config.log' for more details" "$LINENO" 5; } 13435fi 13436 13437ac_ext=c 13438ac_cpp='$CPP $CPPFLAGS' 13439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13441ac_compiler_gnu=$ac_cv_c_compiler_gnu 13442 13443else 13444 _lt_caught_CXX_error=yes 13445fi 13446 13447ac_ext=cpp 13448ac_cpp='$CXXCPP $CPPFLAGS' 13449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13452 13453archive_cmds_need_lc_CXX=no 13454allow_undefined_flag_CXX= 13455always_export_symbols_CXX=no 13456archive_expsym_cmds_CXX= 13457compiler_needs_object_CXX=no 13458export_dynamic_flag_spec_CXX= 13459hardcode_direct_CXX=no 13460hardcode_direct_absolute_CXX=no 13461hardcode_libdir_flag_spec_CXX= 13462hardcode_libdir_separator_CXX= 13463hardcode_minus_L_CXX=no 13464hardcode_shlibpath_var_CXX=unsupported 13465hardcode_automatic_CXX=no 13466inherit_rpath_CXX=no 13467module_cmds_CXX= 13468module_expsym_cmds_CXX= 13469link_all_deplibs_CXX=unknown 13470old_archive_cmds_CXX=$old_archive_cmds 13471reload_flag_CXX=$reload_flag 13472reload_cmds_CXX=$reload_cmds 13473no_undefined_flag_CXX= 13474whole_archive_flag_spec_CXX= 13475enable_shared_with_static_runtimes_CXX=no 13476 13477# Source file extension for C++ test sources. 13478ac_ext=cpp 13479 13480# Object file extension for compiled C++ test sources. 13481objext=o 13482objext_CXX=$objext 13483 13484# No sense in running all these tests if we already determined that 13485# the CXX compiler isn't working. Some variables (like enable_shared) 13486# are currently assumed to apply to all compilers on this platform, 13487# and will be corrupted by setting them based on a non-working compiler. 13488if test yes != "$_lt_caught_CXX_error"; then 13489 # Code to be used in simple compile tests 13490 lt_simple_compile_test_code="int some_variable = 0;" 13491 13492 # Code to be used in simple link tests 13493 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13494 13495 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13496 13497 13498 13499 13500 13501 13502# If no C compiler was specified, use CC. 13503LTCC=${LTCC-"$CC"} 13504 13505# If no C compiler flags were specified, use CFLAGS. 13506LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13507 13508# Allow CC to be a program name with arguments. 13509compiler=$CC 13510 13511 13512 # save warnings/boilerplate of simple test code 13513 ac_outfile=conftest.$ac_objext 13514echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13516_lt_compiler_boilerplate=`cat conftest.err` 13517$RM conftest* 13518 13519 ac_outfile=conftest.$ac_objext 13520echo "$lt_simple_link_test_code" >conftest.$ac_ext 13521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13522_lt_linker_boilerplate=`cat conftest.err` 13523$RM -r conftest* 13524 13525 13526 # Allow CC to be a program name with arguments. 13527 lt_save_CC=$CC 13528 lt_save_CFLAGS=$CFLAGS 13529 lt_save_LD=$LD 13530 lt_save_GCC=$GCC 13531 GCC=$GXX 13532 lt_save_with_gnu_ld=$with_gnu_ld 13533 lt_save_path_LD=$lt_cv_path_LD 13534 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13535 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13536 else 13537 $as_unset lt_cv_prog_gnu_ld 13538 fi 13539 if test -n "${lt_cv_path_LDCXX+set}"; then 13540 lt_cv_path_LD=$lt_cv_path_LDCXX 13541 else 13542 $as_unset lt_cv_path_LD 13543 fi 13544 test -z "${LDCXX+set}" || LD=$LDCXX 13545 CC=${CXX-"c++"} 13546 CFLAGS=$CXXFLAGS 13547 compiler=$CC 13548 compiler_CXX=$CC 13549 for cc_temp in $compiler""; do 13550 case $cc_temp in 13551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13553 \-*) ;; 13554 *) break;; 13555 esac 13556done 13557cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13558 13559 13560 if test -n "$compiler"; then 13561 # We don't want -fno-exception when compiling C++ code, so set the 13562 # no_builtin_flag separately 13563 if test yes = "$GXX"; then 13564 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13565 else 13566 lt_prog_compiler_no_builtin_flag_CXX= 13567 fi 13568 13569 if test yes = "$GXX"; then 13570 # Set up default GNU C++ configuration 13571 13572 13573 13574# Check whether --with-gnu-ld was given. 13575if test "${with_gnu_ld+set}" = set; then : 13576 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13577else 13578 with_gnu_ld=no 13579fi 13580 13581ac_prog=ld 13582if test yes = "$GCC"; then 13583 # Check if gcc -print-prog-name=ld gives a path. 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13585$as_echo_n "checking for ld used by $CC... " >&6; } 13586 case $host in 13587 *-*-mingw*) 13588 # gcc leaves a trailing carriage return, which upsets mingw 13589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13590 *) 13591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13592 esac 13593 case $ac_prog in 13594 # Accept absolute paths. 13595 [\\/]* | ?:[\\/]*) 13596 re_direlt='/[^/][^/]*/\.\./' 13597 # Canonicalize the pathname of ld 13598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13601 done 13602 test -z "$LD" && LD=$ac_prog 13603 ;; 13604 "") 13605 # If it fails, then pretend we aren't using GCC. 13606 ac_prog=ld 13607 ;; 13608 *) 13609 # If it is relative, then search for the first ld in PATH. 13610 with_gnu_ld=unknown 13611 ;; 13612 esac 13613elif test yes = "$with_gnu_ld"; then 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13615$as_echo_n "checking for GNU ld... " >&6; } 13616else 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13618$as_echo_n "checking for non-GNU ld... " >&6; } 13619fi 13620if ${lt_cv_path_LD+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 if test -z "$LD"; then 13624 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13625 for ac_dir in $PATH; do 13626 IFS=$lt_save_ifs 13627 test -z "$ac_dir" && ac_dir=. 13628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13629 lt_cv_path_LD=$ac_dir/$ac_prog 13630 # Check to see if the program is GNU ld. I'd rather use --version, 13631 # but apparently some variants of GNU ld only accept -v. 13632 # Break only if it was the GNU/non-GNU ld that we prefer. 13633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13634 *GNU* | *'with BFD'*) 13635 test no != "$with_gnu_ld" && break 13636 ;; 13637 *) 13638 test yes != "$with_gnu_ld" && break 13639 ;; 13640 esac 13641 fi 13642 done 13643 IFS=$lt_save_ifs 13644else 13645 lt_cv_path_LD=$LD # Let the user override the test with a path. 13646fi 13647fi 13648 13649LD=$lt_cv_path_LD 13650if test -n "$LD"; then 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13652$as_echo "$LD" >&6; } 13653else 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13655$as_echo "no" >&6; } 13656fi 13657test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13659$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13660if ${lt_cv_prog_gnu_ld+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13664case `$LD -v 2>&1 </dev/null` in 13665*GNU* | *'with BFD'*) 13666 lt_cv_prog_gnu_ld=yes 13667 ;; 13668*) 13669 lt_cv_prog_gnu_ld=no 13670 ;; 13671esac 13672fi 13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13674$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13675with_gnu_ld=$lt_cv_prog_gnu_ld 13676 13677 13678 13679 13680 13681 13682 13683 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13684 # archiving commands below assume that GNU ld is being used. 13685 if test yes = "$with_gnu_ld"; then 13686 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13687 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' 13688 13689 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13690 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13691 13692 # If archive_cmds runs LD, not CC, wlarc should be empty 13693 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13694 # investigate it a little bit more. (MM) 13695 wlarc='$wl' 13696 13697 # ancient GNU ld didn't support --whole-archive et. al. 13698 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13699 $GREP 'no-whole-archive' > /dev/null; then 13700 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13701 else 13702 whole_archive_flag_spec_CXX= 13703 fi 13704 else 13705 with_gnu_ld=no 13706 wlarc= 13707 13708 # A generic and very simple default shared library creation 13709 # command for GNU C++ for the case where it uses the native 13710 # linker, instead of GNU ld. If possible, this setting should 13711 # overridden to take advantage of the native linker features on 13712 # the platform it is being used on. 13713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13714 fi 13715 13716 # Commands to make compiler produce verbose output that lists 13717 # what "hidden" libraries, object files and flags are used when 13718 # linking a shared library. 13719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13720 13721 else 13722 GXX=no 13723 with_gnu_ld=no 13724 wlarc= 13725 fi 13726 13727 # PORTME: fill in a description of your system's C++ link characteristics 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13730 ld_shlibs_CXX=yes 13731 case $host_os in 13732 aix3*) 13733 # FIXME: insert proper C++ library support 13734 ld_shlibs_CXX=no 13735 ;; 13736 aix[4-9]*) 13737 if test ia64 = "$host_cpu"; then 13738 # On IA64, the linker does run time linking by default, so we don't 13739 # have to do anything special. 13740 aix_use_runtimelinking=no 13741 exp_sym_flag='-Bexport' 13742 no_entry_flag= 13743 else 13744 aix_use_runtimelinking=no 13745 13746 # Test if we are trying to use run time linking or normal 13747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13748 # have runtime linking enabled, and use it for executables. 13749 # For shared libraries, we enable/disable runtime linking 13750 # depending on the kind of the shared library created - 13751 # when "with_aix_soname,aix_use_runtimelinking" is: 13752 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13753 # "aix,yes" lib.so shared, rtl:yes, for executables 13754 # lib.a static archive 13755 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13756 # lib.a(lib.so.V) shared, rtl:no, for executables 13757 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13758 # lib.a(lib.so.V) shared, rtl:no 13759 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13760 # lib.a static archive 13761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13762 for ld_flag in $LDFLAGS; do 13763 case $ld_flag in 13764 *-brtl*) 13765 aix_use_runtimelinking=yes 13766 break 13767 ;; 13768 esac 13769 done 13770 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13771 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13772 # so we don't have lib.a shared libs to link our executables. 13773 # We have to force runtime linking in this case. 13774 aix_use_runtimelinking=yes 13775 LDFLAGS="$LDFLAGS -Wl,-brtl" 13776 fi 13777 ;; 13778 esac 13779 13780 exp_sym_flag='-bexport' 13781 no_entry_flag='-bnoentry' 13782 fi 13783 13784 # When large executables or shared objects are built, AIX ld can 13785 # have problems creating the table of contents. If linking a library 13786 # or program results in "error TOC overflow" add -mminimal-toc to 13787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13789 13790 archive_cmds_CXX='' 13791 hardcode_direct_CXX=yes 13792 hardcode_direct_absolute_CXX=yes 13793 hardcode_libdir_separator_CXX=':' 13794 link_all_deplibs_CXX=yes 13795 file_list_spec_CXX='$wl-f,' 13796 case $with_aix_soname,$aix_use_runtimelinking in 13797 aix,*) ;; # no import file 13798 svr4,* | *,yes) # use import file 13799 # The Import File defines what to hardcode. 13800 hardcode_direct_CXX=no 13801 hardcode_direct_absolute_CXX=no 13802 ;; 13803 esac 13804 13805 if test yes = "$GXX"; then 13806 case $host_os in aix4.[012]|aix4.[012].*) 13807 # We only want to do this on AIX 4.2 and lower, the check 13808 # below for broken collect2 doesn't work under 4.3+ 13809 collect2name=`$CC -print-prog-name=collect2` 13810 if test -f "$collect2name" && 13811 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13812 then 13813 # We have reworked collect2 13814 : 13815 else 13816 # We have old collect2 13817 hardcode_direct_CXX=unsupported 13818 # It fails to find uninstalled libraries when the uninstalled 13819 # path is not listed in the libpath. Setting hardcode_minus_L 13820 # to unsupported forces relinking 13821 hardcode_minus_L_CXX=yes 13822 hardcode_libdir_flag_spec_CXX='-L$libdir' 13823 hardcode_libdir_separator_CXX= 13824 fi 13825 esac 13826 shared_flag='-shared' 13827 if test yes = "$aix_use_runtimelinking"; then 13828 shared_flag=$shared_flag' $wl-G' 13829 fi 13830 # Need to ensure runtime linking is disabled for the traditional 13831 # shared library, or the linker may eventually find shared libraries 13832 # /with/ Import File - we do not want to mix them. 13833 shared_flag_aix='-shared' 13834 shared_flag_svr4='-shared $wl-G' 13835 else 13836 # not using gcc 13837 if test ia64 = "$host_cpu"; then 13838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13839 # chokes on -Wl,-G. The following line is correct: 13840 shared_flag='-G' 13841 else 13842 if test yes = "$aix_use_runtimelinking"; then 13843 shared_flag='$wl-G' 13844 else 13845 shared_flag='$wl-bM:SRE' 13846 fi 13847 shared_flag_aix='$wl-bM:SRE' 13848 shared_flag_svr4='$wl-G' 13849 fi 13850 fi 13851 13852 export_dynamic_flag_spec_CXX='$wl-bexpall' 13853 # It seems that -bexpall does not export symbols beginning with 13854 # underscore (_), so it is better to generate a list of symbols to 13855 # export. 13856 always_export_symbols_CXX=yes 13857 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13858 # Warning - without using the other runtime loading flags (-brtl), 13859 # -berok will link without error, but may produce a broken library. 13860 # The "-G" linker flag allows undefined symbols. 13861 no_undefined_flag_CXX='-bernotok' 13862 # Determine the default libpath from the value encoded in an empty 13863 # executable. 13864 if test set = "${lt_cv_aix_libpath+set}"; then 13865 aix_libpath=$lt_cv_aix_libpath 13866else 13867 if ${lt_cv_aix_libpath__CXX+:} false; then : 13868 $as_echo_n "(cached) " >&6 13869else 13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13871/* end confdefs.h. */ 13872 13873int 13874main () 13875{ 13876 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881if ac_fn_cxx_try_link "$LINENO"; then : 13882 13883 lt_aix_libpath_sed=' 13884 /Import File Strings/,/^$/ { 13885 /^0/ { 13886 s/^0 *\([^ ]*\) *$/\1/ 13887 p 13888 } 13889 }' 13890 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13891 # Check for a 64-bit object if we didn't find anything. 13892 if test -z "$lt_cv_aix_libpath__CXX"; then 13893 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13894 fi 13895fi 13896rm -f core conftest.err conftest.$ac_objext \ 13897 conftest$ac_exeext conftest.$ac_ext 13898 if test -z "$lt_cv_aix_libpath__CXX"; then 13899 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13900 fi 13901 13902fi 13903 13904 aix_libpath=$lt_cv_aix_libpath__CXX 13905fi 13906 13907 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13908 13909 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 13910 else 13911 if test ia64 = "$host_cpu"; then 13912 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13913 allow_undefined_flag_CXX="-z nodefs" 13914 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" 13915 else 13916 # Determine the default libpath from the value encoded in an 13917 # empty executable. 13918 if test set = "${lt_cv_aix_libpath+set}"; then 13919 aix_libpath=$lt_cv_aix_libpath 13920else 13921 if ${lt_cv_aix_libpath__CXX+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926 13927int 13928main () 13929{ 13930 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_cxx_try_link "$LINENO"; then : 13936 13937 lt_aix_libpath_sed=' 13938 /Import File Strings/,/^$/ { 13939 /^0/ { 13940 s/^0 *\([^ ]*\) *$/\1/ 13941 p 13942 } 13943 }' 13944 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13945 # Check for a 64-bit object if we didn't find anything. 13946 if test -z "$lt_cv_aix_libpath__CXX"; then 13947 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13948 fi 13949fi 13950rm -f core conftest.err conftest.$ac_objext \ 13951 conftest$ac_exeext conftest.$ac_ext 13952 if test -z "$lt_cv_aix_libpath__CXX"; then 13953 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13954 fi 13955 13956fi 13957 13958 aix_libpath=$lt_cv_aix_libpath__CXX 13959fi 13960 13961 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13962 # Warning - without using the other run time loading flags, 13963 # -berok will link without error, but may produce a broken library. 13964 no_undefined_flag_CXX=' $wl-bernotok' 13965 allow_undefined_flag_CXX=' $wl-berok' 13966 if test yes = "$with_gnu_ld"; then 13967 # We only use this code for GNU lds that support --whole-archive. 13968 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13969 else 13970 # Exported symbols can be pulled into shared objects from archives 13971 whole_archive_flag_spec_CXX='$convenience' 13972 fi 13973 archive_cmds_need_lc_CXX=yes 13974 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13975 # -brtl affects multiple linker settings, -berok does not and is overridden later 13976 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13977 if test svr4 != "$with_aix_soname"; then 13978 # This is similar to how AIX traditionally builds its shared 13979 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13980 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' 13981 fi 13982 if test aix != "$with_aix_soname"; then 13983 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' 13984 else 13985 # used by -dlpreopen to get the symbols 13986 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13987 fi 13988 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13989 fi 13990 fi 13991 ;; 13992 13993 beos*) 13994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13995 allow_undefined_flag_CXX=unsupported 13996 # Joseph Beckenbach <[email protected]> says some releases of gcc 13997 # support --undefined. This deserves some investigation. FIXME 13998 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13999 else 14000 ld_shlibs_CXX=no 14001 fi 14002 ;; 14003 14004 chorus*) 14005 case $cc_basename in 14006 *) 14007 # FIXME: insert proper C++ library support 14008 ld_shlibs_CXX=no 14009 ;; 14010 esac 14011 ;; 14012 14013 cygwin* | mingw* | pw32* | cegcc*) 14014 case $GXX,$cc_basename in 14015 ,cl* | no,cl*) 14016 # Native MSVC 14017 # hardcode_libdir_flag_spec is actually meaningless, as there is 14018 # no search path for DLLs. 14019 hardcode_libdir_flag_spec_CXX=' ' 14020 allow_undefined_flag_CXX=unsupported 14021 always_export_symbols_CXX=yes 14022 file_list_spec_CXX='@' 14023 # Tell ltmain to make .lib files, not .a files. 14024 libext=lib 14025 # Tell ltmain to make .dll files, not .so files. 14026 shrext_cmds=.dll 14027 # FIXME: Setting linknames here is a bad hack. 14028 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14029 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14030 cp "$export_symbols" "$output_objdir/$soname.def"; 14031 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14032 else 14033 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14034 fi~ 14035 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14036 linknames=' 14037 # The linker will not automatically build a static lib if we build a DLL. 14038 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14039 enable_shared_with_static_runtimes_CXX=yes 14040 # Don't use ranlib 14041 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14042 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14043 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14044 case $lt_outputfile in 14045 *.exe|*.EXE) ;; 14046 *) 14047 lt_outputfile=$lt_outputfile.exe 14048 lt_tool_outputfile=$lt_tool_outputfile.exe 14049 ;; 14050 esac~ 14051 func_to_tool_file "$lt_outputfile"~ 14052 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14053 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14054 $RM "$lt_outputfile.manifest"; 14055 fi' 14056 ;; 14057 *) 14058 # g++ 14059 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14060 # as there is no search path for DLLs. 14061 hardcode_libdir_flag_spec_CXX='-L$libdir' 14062 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14063 allow_undefined_flag_CXX=unsupported 14064 always_export_symbols_CXX=no 14065 enable_shared_with_static_runtimes_CXX=yes 14066 14067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14068 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' 14069 # If the export-symbols file already is a .def file, use it as 14070 # is; otherwise, prepend EXPORTS... 14071 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14072 cp $export_symbols $output_objdir/$soname.def; 14073 else 14074 echo EXPORTS > $output_objdir/$soname.def; 14075 cat $export_symbols >> $output_objdir/$soname.def; 14076 fi~ 14077 $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' 14078 else 14079 ld_shlibs_CXX=no 14080 fi 14081 ;; 14082 esac 14083 ;; 14084 darwin* | rhapsody*) 14085 14086 14087 archive_cmds_need_lc_CXX=no 14088 hardcode_direct_CXX=no 14089 hardcode_automatic_CXX=yes 14090 hardcode_shlibpath_var_CXX=unsupported 14091 if test yes = "$lt_cv_ld_force_load"; then 14092 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\"`' 14093 14094 else 14095 whole_archive_flag_spec_CXX='' 14096 fi 14097 link_all_deplibs_CXX=yes 14098 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14099 case $cc_basename in 14100 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14101 *) _lt_dar_can_shared=$GCC ;; 14102 esac 14103 if test yes = "$_lt_dar_can_shared"; then 14104 output_verbose_link_cmd=func_echo_all 14105 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" 14106 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14107 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" 14108 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" 14109 if test yes != "$lt_cv_apple_cc_single_mod"; then 14110 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" 14111 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" 14112 fi 14113 14114 else 14115 ld_shlibs_CXX=no 14116 fi 14117 14118 ;; 14119 14120 os2*) 14121 hardcode_libdir_flag_spec_CXX='-L$libdir' 14122 hardcode_minus_L_CXX=yes 14123 allow_undefined_flag_CXX=unsupported 14124 shrext_cmds=.dll 14125 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14128 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14129 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14131 emximp -o $lib $output_objdir/$libname.def' 14132 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14135 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14136 prefix_cmds="$SED"~ 14137 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14138 prefix_cmds="$prefix_cmds -e 1d"; 14139 fi~ 14140 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14141 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14142 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14143 emximp -o $lib $output_objdir/$libname.def' 14144 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14145 enable_shared_with_static_runtimes_CXX=yes 14146 ;; 14147 14148 dgux*) 14149 case $cc_basename in 14150 ec++*) 14151 # FIXME: insert proper C++ library support 14152 ld_shlibs_CXX=no 14153 ;; 14154 ghcx*) 14155 # Green Hills C++ Compiler 14156 # FIXME: insert proper C++ library support 14157 ld_shlibs_CXX=no 14158 ;; 14159 *) 14160 # FIXME: insert proper C++ library support 14161 ld_shlibs_CXX=no 14162 ;; 14163 esac 14164 ;; 14165 14166 freebsd2.*) 14167 # C++ shared libraries reported to be fairly broken before 14168 # switch to ELF 14169 ld_shlibs_CXX=no 14170 ;; 14171 14172 freebsd-elf*) 14173 archive_cmds_need_lc_CXX=no 14174 ;; 14175 14176 freebsd* | dragonfly*) 14177 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14178 # conventions 14179 ld_shlibs_CXX=yes 14180 ;; 14181 14182 haiku*) 14183 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14184 link_all_deplibs_CXX=yes 14185 ;; 14186 14187 hpux9*) 14188 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14189 hardcode_libdir_separator_CXX=: 14190 export_dynamic_flag_spec_CXX='$wl-E' 14191 hardcode_direct_CXX=yes 14192 hardcode_minus_L_CXX=yes # Not in the search PATH, 14193 # but as the default 14194 # location of the library. 14195 14196 case $cc_basename in 14197 CC*) 14198 # FIXME: insert proper C++ library support 14199 ld_shlibs_CXX=no 14200 ;; 14201 aCC*) 14202 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' 14203 # Commands to make compiler produce verbose output that lists 14204 # what "hidden" libraries, object files and flags are used when 14205 # linking a shared library. 14206 # 14207 # There doesn't appear to be a way to prevent this compiler from 14208 # explicitly linking system object files so we need to strip them 14209 # from the output so that they don't get included in the library 14210 # dependencies. 14211 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"' 14212 ;; 14213 *) 14214 if test yes = "$GXX"; then 14215 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' 14216 else 14217 # FIXME: insert proper C++ library support 14218 ld_shlibs_CXX=no 14219 fi 14220 ;; 14221 esac 14222 ;; 14223 14224 hpux10*|hpux11*) 14225 if test no = "$with_gnu_ld"; then 14226 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14227 hardcode_libdir_separator_CXX=: 14228 14229 case $host_cpu in 14230 hppa*64*|ia64*) 14231 ;; 14232 *) 14233 export_dynamic_flag_spec_CXX='$wl-E' 14234 ;; 14235 esac 14236 fi 14237 case $host_cpu in 14238 hppa*64*|ia64*) 14239 hardcode_direct_CXX=no 14240 hardcode_shlibpath_var_CXX=no 14241 ;; 14242 *) 14243 hardcode_direct_CXX=yes 14244 hardcode_direct_absolute_CXX=yes 14245 hardcode_minus_L_CXX=yes # Not in the search PATH, 14246 # but as the default 14247 # location of the library. 14248 ;; 14249 esac 14250 14251 case $cc_basename in 14252 CC*) 14253 # FIXME: insert proper C++ library support 14254 ld_shlibs_CXX=no 14255 ;; 14256 aCC*) 14257 case $host_cpu in 14258 hppa*64*) 14259 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14260 ;; 14261 ia64*) 14262 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14263 ;; 14264 *) 14265 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14266 ;; 14267 esac 14268 # Commands to make compiler produce verbose output that lists 14269 # what "hidden" libraries, object files and flags are used when 14270 # linking a shared library. 14271 # 14272 # There doesn't appear to be a way to prevent this compiler from 14273 # explicitly linking system object files so we need to strip them 14274 # from the output so that they don't get included in the library 14275 # dependencies. 14276 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"' 14277 ;; 14278 *) 14279 if test yes = "$GXX"; then 14280 if test no = "$with_gnu_ld"; then 14281 case $host_cpu in 14282 hppa*64*) 14283 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14284 ;; 14285 ia64*) 14286 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14287 ;; 14288 *) 14289 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' 14290 ;; 14291 esac 14292 fi 14293 else 14294 # FIXME: insert proper C++ library support 14295 ld_shlibs_CXX=no 14296 fi 14297 ;; 14298 esac 14299 ;; 14300 14301 interix[3-9]*) 14302 hardcode_direct_CXX=no 14303 hardcode_shlibpath_var_CXX=no 14304 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14305 export_dynamic_flag_spec_CXX='$wl-E' 14306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14307 # Instead, shared libraries are loaded at an image base (0x10000000 by 14308 # default) and relocated if they conflict, which is a slow very memory 14309 # consuming and fragmenting process. To avoid this, we pick a random, 14310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14311 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14312 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' 14313 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' 14314 ;; 14315 irix5* | irix6*) 14316 case $cc_basename in 14317 CC*) 14318 # SGI C++ 14319 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' 14320 14321 # Archives containing C++ object files must be created using 14322 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14323 # necessary to make sure instantiated templates are included 14324 # in the archive. 14325 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14326 ;; 14327 *) 14328 if test yes = "$GXX"; then 14329 if test no = "$with_gnu_ld"; then 14330 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' 14331 else 14332 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' 14333 fi 14334 fi 14335 link_all_deplibs_CXX=yes 14336 ;; 14337 esac 14338 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14339 hardcode_libdir_separator_CXX=: 14340 inherit_rpath_CXX=yes 14341 ;; 14342 14343 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14344 case $cc_basename in 14345 KCC*) 14346 # Kuck and Associates, Inc. (KAI) C++ Compiler 14347 14348 # KCC will only create a shared library if the output file 14349 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14350 # to its proper name (with version) after linking. 14351 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' 14352 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' 14353 # Commands to make compiler produce verbose output that lists 14354 # what "hidden" libraries, object files and flags are used when 14355 # linking a shared library. 14356 # 14357 # There doesn't appear to be a way to prevent this compiler from 14358 # explicitly linking system object files so we need to strip them 14359 # from the output so that they don't get included in the library 14360 # dependencies. 14361 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"' 14362 14363 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14364 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14365 14366 # Archives containing C++ object files must be created using 14367 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14368 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14369 ;; 14370 icpc* | ecpc* ) 14371 # Intel C++ 14372 with_gnu_ld=yes 14373 # version 8.0 and above of icpc choke on multiply defined symbols 14374 # if we add $predep_objects and $postdep_objects, however 7.1 and 14375 # earlier do not add the objects themselves. 14376 case `$CC -V 2>&1` in 14377 *"Version 7."*) 14378 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14379 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' 14380 ;; 14381 *) # Version 8.0 or newer 14382 tmp_idyn= 14383 case $host_cpu in 14384 ia64*) tmp_idyn=' -i_dynamic';; 14385 esac 14386 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14387 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' 14388 ;; 14389 esac 14390 archive_cmds_need_lc_CXX=no 14391 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14392 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14393 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14394 ;; 14395 pgCC* | pgcpp*) 14396 # Portland Group C++ compiler 14397 case `$CC -V` in 14398 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14399 prelink_cmds_CXX='tpldir=Template.dir~ 14400 rm -rf $tpldir~ 14401 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14402 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14403 old_archive_cmds_CXX='tpldir=Template.dir~ 14404 rm -rf $tpldir~ 14405 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14406 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14407 $RANLIB $oldlib' 14408 archive_cmds_CXX='tpldir=Template.dir~ 14409 rm -rf $tpldir~ 14410 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14411 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14412 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14413 rm -rf $tpldir~ 14414 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14415 $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' 14416 ;; 14417 *) # Version 6 and above use weak symbols 14418 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14419 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' 14420 ;; 14421 esac 14422 14423 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14424 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14425 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' 14426 ;; 14427 cxx*) 14428 # Compaq C++ 14429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14430 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' 14431 14432 runpath_var=LD_RUN_PATH 14433 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14434 hardcode_libdir_separator_CXX=: 14435 14436 # Commands to make compiler produce verbose output that lists 14437 # what "hidden" libraries, object files and flags are used when 14438 # linking a shared library. 14439 # 14440 # There doesn't appear to be a way to prevent this compiler from 14441 # explicitly linking system object files so we need to strip them 14442 # from the output so that they don't get included in the library 14443 # dependencies. 14444 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' 14445 ;; 14446 xl* | mpixl* | bgxl*) 14447 # IBM XL 8.0 on PPC, with GNU ld 14448 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14449 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14450 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14451 if test yes = "$supports_anon_versioning"; then 14452 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14454 echo "local: *; };" >> $output_objdir/$libname.ver~ 14455 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14456 fi 14457 ;; 14458 *) 14459 case `$CC -V 2>&1 | sed 5q` in 14460 *Sun\ C*) 14461 # Sun C++ 5.9 14462 no_undefined_flag_CXX=' -zdefs' 14463 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14464 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' 14465 hardcode_libdir_flag_spec_CXX='-R$libdir' 14466 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' 14467 compiler_needs_object_CXX=yes 14468 14469 # Not sure whether something based on 14470 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14471 # would be better. 14472 output_verbose_link_cmd='func_echo_all' 14473 14474 # Archives containing C++ object files must be created using 14475 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14476 # necessary to make sure instantiated templates are included 14477 # in the archive. 14478 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14479 ;; 14480 esac 14481 ;; 14482 esac 14483 ;; 14484 14485 lynxos*) 14486 # FIXME: insert proper C++ library support 14487 ld_shlibs_CXX=no 14488 ;; 14489 14490 m88k*) 14491 # FIXME: insert proper C++ library support 14492 ld_shlibs_CXX=no 14493 ;; 14494 14495 mvs*) 14496 case $cc_basename in 14497 cxx*) 14498 # FIXME: insert proper C++ library support 14499 ld_shlibs_CXX=no 14500 ;; 14501 *) 14502 # FIXME: insert proper C++ library support 14503 ld_shlibs_CXX=no 14504 ;; 14505 esac 14506 ;; 14507 14508 netbsd*) 14509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14510 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14511 wlarc= 14512 hardcode_libdir_flag_spec_CXX='-R$libdir' 14513 hardcode_direct_CXX=yes 14514 hardcode_shlibpath_var_CXX=no 14515 fi 14516 # Workaround some broken pre-1.5 toolchains 14517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14518 ;; 14519 14520 *nto* | *qnx*) 14521 ld_shlibs_CXX=yes 14522 ;; 14523 14524 openbsd* | bitrig*) 14525 if test -f /usr/libexec/ld.so; then 14526 hardcode_direct_CXX=yes 14527 hardcode_shlibpath_var_CXX=no 14528 hardcode_direct_absolute_CXX=yes 14529 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14530 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14532 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14533 export_dynamic_flag_spec_CXX='$wl-E' 14534 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14535 fi 14536 output_verbose_link_cmd=func_echo_all 14537 else 14538 ld_shlibs_CXX=no 14539 fi 14540 ;; 14541 14542 osf3* | osf4* | osf5*) 14543 case $cc_basename in 14544 KCC*) 14545 # Kuck and Associates, Inc. (KAI) C++ Compiler 14546 14547 # KCC will only create a shared library if the output file 14548 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14549 # to its proper name (with version) after linking. 14550 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' 14551 14552 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14553 hardcode_libdir_separator_CXX=: 14554 14555 # Archives containing C++ object files must be created using 14556 # the KAI C++ compiler. 14557 case $host in 14558 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14559 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14560 esac 14561 ;; 14562 RCC*) 14563 # Rational C++ 2.4.1 14564 # FIXME: insert proper C++ library support 14565 ld_shlibs_CXX=no 14566 ;; 14567 cxx*) 14568 case $host in 14569 osf3*) 14570 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14571 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' 14572 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14573 ;; 14574 *) 14575 allow_undefined_flag_CXX=' -expect_unresolved \*' 14576 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' 14577 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14578 echo "-hidden">> $lib.exp~ 14579 $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~ 14580 $RM $lib.exp' 14581 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14582 ;; 14583 esac 14584 14585 hardcode_libdir_separator_CXX=: 14586 14587 # Commands to make compiler produce verbose output that lists 14588 # what "hidden" libraries, object files and flags are used when 14589 # linking a shared library. 14590 # 14591 # There doesn't appear to be a way to prevent this compiler from 14592 # explicitly linking system object files so we need to strip them 14593 # from the output so that they don't get included in the library 14594 # dependencies. 14595 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"' 14596 ;; 14597 *) 14598 if test yes,no = "$GXX,$with_gnu_ld"; then 14599 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14600 case $host in 14601 osf3*) 14602 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' 14603 ;; 14604 *) 14605 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' 14606 ;; 14607 esac 14608 14609 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14610 hardcode_libdir_separator_CXX=: 14611 14612 # Commands to make compiler produce verbose output that lists 14613 # what "hidden" libraries, object files and flags are used when 14614 # linking a shared library. 14615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14616 14617 else 14618 # FIXME: insert proper C++ library support 14619 ld_shlibs_CXX=no 14620 fi 14621 ;; 14622 esac 14623 ;; 14624 14625 psos*) 14626 # FIXME: insert proper C++ library support 14627 ld_shlibs_CXX=no 14628 ;; 14629 14630 sunos4*) 14631 case $cc_basename in 14632 CC*) 14633 # Sun C++ 4.x 14634 # FIXME: insert proper C++ library support 14635 ld_shlibs_CXX=no 14636 ;; 14637 lcc*) 14638 # Lucid 14639 # FIXME: insert proper C++ library support 14640 ld_shlibs_CXX=no 14641 ;; 14642 *) 14643 # FIXME: insert proper C++ library support 14644 ld_shlibs_CXX=no 14645 ;; 14646 esac 14647 ;; 14648 14649 solaris*) 14650 case $cc_basename in 14651 CC* | sunCC*) 14652 # Sun C++ 4.2, 5.x and Centerline C++ 14653 archive_cmds_need_lc_CXX=yes 14654 no_undefined_flag_CXX=' -zdefs' 14655 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14656 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14657 $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' 14658 14659 hardcode_libdir_flag_spec_CXX='-R$libdir' 14660 hardcode_shlibpath_var_CXX=no 14661 case $host_os in 14662 solaris2.[0-5] | solaris2.[0-5].*) ;; 14663 *) 14664 # The compiler driver will combine and reorder linker options, 14665 # but understands '-z linker_flag'. 14666 # Supported since Solaris 2.6 (maybe 2.5.1?) 14667 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14668 ;; 14669 esac 14670 link_all_deplibs_CXX=yes 14671 14672 output_verbose_link_cmd='func_echo_all' 14673 14674 # Archives containing C++ object files must be created using 14675 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14676 # necessary to make sure instantiated templates are included 14677 # in the archive. 14678 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14679 ;; 14680 gcx*) 14681 # Green Hills C++ Compiler 14682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14683 14684 # The C++ compiler must be used to create the archive. 14685 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14686 ;; 14687 *) 14688 # GNU C++ compiler with Solaris linker 14689 if test yes,no = "$GXX,$with_gnu_ld"; then 14690 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14691 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14692 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14694 $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' 14695 14696 # Commands to make compiler produce verbose output that lists 14697 # what "hidden" libraries, object files and flags are used when 14698 # linking a shared library. 14699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14700 else 14701 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14702 # platform. 14703 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14704 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14705 $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' 14706 14707 # Commands to make compiler produce verbose output that lists 14708 # what "hidden" libraries, object files and flags are used when 14709 # linking a shared library. 14710 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14711 fi 14712 14713 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14714 case $host_os in 14715 solaris2.[0-5] | solaris2.[0-5].*) ;; 14716 *) 14717 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14718 ;; 14719 esac 14720 fi 14721 ;; 14722 esac 14723 ;; 14724 14725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14726 no_undefined_flag_CXX='$wl-z,text' 14727 archive_cmds_need_lc_CXX=no 14728 hardcode_shlibpath_var_CXX=no 14729 runpath_var='LD_RUN_PATH' 14730 14731 case $cc_basename in 14732 CC*) 14733 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14734 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14735 ;; 14736 *) 14737 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14738 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14739 ;; 14740 esac 14741 ;; 14742 14743 sysv5* | sco3.2v5* | sco5v6*) 14744 # Note: We CANNOT use -z defs as we might desire, because we do not 14745 # link with -lc, and that would cause any symbols used from libc to 14746 # always be unresolved, which means just about no library would 14747 # ever link correctly. If we're not using GNU ld we use -z text 14748 # though, which does catch some bad symbols but isn't as heavy-handed 14749 # as -z defs. 14750 no_undefined_flag_CXX='$wl-z,text' 14751 allow_undefined_flag_CXX='$wl-z,nodefs' 14752 archive_cmds_need_lc_CXX=no 14753 hardcode_shlibpath_var_CXX=no 14754 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14755 hardcode_libdir_separator_CXX=':' 14756 link_all_deplibs_CXX=yes 14757 export_dynamic_flag_spec_CXX='$wl-Bexport' 14758 runpath_var='LD_RUN_PATH' 14759 14760 case $cc_basename in 14761 CC*) 14762 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14763 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14764 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14765 '"$old_archive_cmds_CXX" 14766 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14767 '"$reload_cmds_CXX" 14768 ;; 14769 *) 14770 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14771 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14772 ;; 14773 esac 14774 ;; 14775 14776 tandem*) 14777 case $cc_basename in 14778 NCC*) 14779 # NonStop-UX NCC 3.20 14780 # FIXME: insert proper C++ library support 14781 ld_shlibs_CXX=no 14782 ;; 14783 *) 14784 # FIXME: insert proper C++ library support 14785 ld_shlibs_CXX=no 14786 ;; 14787 esac 14788 ;; 14789 14790 vxworks*) 14791 # FIXME: insert proper C++ library support 14792 ld_shlibs_CXX=no 14793 ;; 14794 14795 *) 14796 # FIXME: insert proper C++ library support 14797 ld_shlibs_CXX=no 14798 ;; 14799 esac 14800 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14802$as_echo "$ld_shlibs_CXX" >&6; } 14803 test no = "$ld_shlibs_CXX" && can_build_shared=no 14804 14805 GCC_CXX=$GXX 14806 LD_CXX=$LD 14807 14808 ## CAVEAT EMPTOR: 14809 ## There is no encapsulation within the following macros, do not change 14810 ## the running order or otherwise move them around unless you know exactly 14811 ## what you are doing... 14812 # Dependencies to place before and after the object being linked: 14813predep_objects_CXX= 14814postdep_objects_CXX= 14815predeps_CXX= 14816postdeps_CXX= 14817compiler_lib_search_path_CXX= 14818 14819cat > conftest.$ac_ext <<_LT_EOF 14820class Foo 14821{ 14822public: 14823 Foo (void) { a = 0; } 14824private: 14825 int a; 14826}; 14827_LT_EOF 14828 14829 14830_lt_libdeps_save_CFLAGS=$CFLAGS 14831case "$CC $CFLAGS " in #( 14832*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14833*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14834*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14835esac 14836 14837if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14838 (eval $ac_compile) 2>&5 14839 ac_status=$? 14840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14841 test $ac_status = 0; }; then 14842 # Parse the compiler output and extract the necessary 14843 # objects, libraries and library flags. 14844 14845 # Sentinel used to keep track of whether or not we are before 14846 # the conftest object file. 14847 pre_test_object_deps_done=no 14848 14849 for p in `eval "$output_verbose_link_cmd"`; do 14850 case $prev$p in 14851 14852 -L* | -R* | -l*) 14853 # Some compilers place space between "-{L,R}" and the path. 14854 # Remove the space. 14855 if test x-L = "$p" || 14856 test x-R = "$p"; then 14857 prev=$p 14858 continue 14859 fi 14860 14861 # Expand the sysroot to ease extracting the directories later. 14862 if test -z "$prev"; then 14863 case $p in 14864 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14865 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14866 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14867 esac 14868 fi 14869 case $p in 14870 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14871 esac 14872 if test no = "$pre_test_object_deps_done"; then 14873 case $prev in 14874 -L | -R) 14875 # Internal compiler library paths should come after those 14876 # provided the user. The postdeps already come after the 14877 # user supplied libs so there is no need to process them. 14878 if test -z "$compiler_lib_search_path_CXX"; then 14879 compiler_lib_search_path_CXX=$prev$p 14880 else 14881 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14882 fi 14883 ;; 14884 # The "-l" case would never come before the object being 14885 # linked, so don't bother handling this case. 14886 esac 14887 else 14888 if test -z "$postdeps_CXX"; then 14889 postdeps_CXX=$prev$p 14890 else 14891 postdeps_CXX="${postdeps_CXX} $prev$p" 14892 fi 14893 fi 14894 prev= 14895 ;; 14896 14897 *.lto.$objext) ;; # Ignore GCC LTO objects 14898 *.$objext) 14899 # This assumes that the test object file only shows up 14900 # once in the compiler output. 14901 if test "$p" = "conftest.$objext"; then 14902 pre_test_object_deps_done=yes 14903 continue 14904 fi 14905 14906 if test no = "$pre_test_object_deps_done"; then 14907 if test -z "$predep_objects_CXX"; then 14908 predep_objects_CXX=$p 14909 else 14910 predep_objects_CXX="$predep_objects_CXX $p" 14911 fi 14912 else 14913 if test -z "$postdep_objects_CXX"; then 14914 postdep_objects_CXX=$p 14915 else 14916 postdep_objects_CXX="$postdep_objects_CXX $p" 14917 fi 14918 fi 14919 ;; 14920 14921 *) ;; # Ignore the rest. 14922 14923 esac 14924 done 14925 14926 # Clean up. 14927 rm -f a.out a.exe 14928else 14929 echo "libtool.m4: error: problem compiling CXX test program" 14930fi 14931 14932$RM -f confest.$objext 14933CFLAGS=$_lt_libdeps_save_CFLAGS 14934 14935# PORTME: override above test on systems where it is broken 14936case $host_os in 14937interix[3-9]*) 14938 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14939 # hack all around it, let's just trust "g++" to DTRT. 14940 predep_objects_CXX= 14941 postdep_objects_CXX= 14942 postdeps_CXX= 14943 ;; 14944 14945linux*) 14946 case `$CC -V 2>&1 | sed 5q` in 14947 *Sun\ C*) 14948 # Sun C++ 5.9 14949 14950 # The more standards-conforming stlport4 library is 14951 # incompatible with the Cstd library. Avoid specifying 14952 # it if it's in CXXFLAGS. Ignore libCrun as 14953 # -library=stlport4 depends on it. 14954 case " $CXX $CXXFLAGS " in 14955 *" -library=stlport4 "*) 14956 solaris_use_stlport4=yes 14957 ;; 14958 esac 14959 14960 if test yes != "$solaris_use_stlport4"; then 14961 postdeps_CXX='-library=Cstd -library=Crun' 14962 fi 14963 ;; 14964 esac 14965 ;; 14966 14967solaris*) 14968 case $cc_basename in 14969 CC* | sunCC*) 14970 # The more standards-conforming stlport4 library is 14971 # incompatible with the Cstd library. Avoid specifying 14972 # it if it's in CXXFLAGS. Ignore libCrun as 14973 # -library=stlport4 depends on it. 14974 case " $CXX $CXXFLAGS " in 14975 *" -library=stlport4 "*) 14976 solaris_use_stlport4=yes 14977 ;; 14978 esac 14979 14980 # Adding this requires a known-good setup of shared libraries for 14981 # Sun compiler versions before 5.6, else PIC objects from an old 14982 # archive will be linked into the output, leading to subtle bugs. 14983 if test yes != "$solaris_use_stlport4"; then 14984 postdeps_CXX='-library=Cstd -library=Crun' 14985 fi 14986 ;; 14987 esac 14988 ;; 14989esac 14990 14991 14992case " $postdeps_CXX " in 14993*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14994esac 14995 compiler_lib_search_dirs_CXX= 14996if test -n "${compiler_lib_search_path_CXX}"; then 14997 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14998fi 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 lt_prog_compiler_wl_CXX= 15031lt_prog_compiler_pic_CXX= 15032lt_prog_compiler_static_CXX= 15033 15034 15035 # C++ specific cases for pic, static, wl, etc. 15036 if test yes = "$GXX"; then 15037 lt_prog_compiler_wl_CXX='-Wl,' 15038 lt_prog_compiler_static_CXX='-static' 15039 15040 case $host_os in 15041 aix*) 15042 # All AIX code is PIC. 15043 if test ia64 = "$host_cpu"; then 15044 # AIX 5 now supports IA64 processor 15045 lt_prog_compiler_static_CXX='-Bstatic' 15046 fi 15047 lt_prog_compiler_pic_CXX='-fPIC' 15048 ;; 15049 15050 amigaos*) 15051 case $host_cpu in 15052 powerpc) 15053 # see comment about AmigaOS4 .so support 15054 lt_prog_compiler_pic_CXX='-fPIC' 15055 ;; 15056 m68k) 15057 # FIXME: we need at least 68020 code to build shared libraries, but 15058 # adding the '-m68020' flag to GCC prevents building anything better, 15059 # like '-m68040'. 15060 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15061 ;; 15062 esac 15063 ;; 15064 15065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15066 # PIC is the default for these OSes. 15067 ;; 15068 mingw* | cygwin* | os2* | pw32* | cegcc*) 15069 # This hack is so that the source file can tell whether it is being 15070 # built for inclusion in a dll (and should export symbols for example). 15071 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15072 # (--disable-auto-import) libraries 15073 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15074 case $host_os in 15075 os2*) 15076 lt_prog_compiler_static_CXX='$wl-static' 15077 ;; 15078 esac 15079 ;; 15080 darwin* | rhapsody*) 15081 # PIC is the default on this platform 15082 # Common symbols not allowed in MH_DYLIB files 15083 lt_prog_compiler_pic_CXX='-fno-common' 15084 ;; 15085 *djgpp*) 15086 # DJGPP does not support shared libraries at all 15087 lt_prog_compiler_pic_CXX= 15088 ;; 15089 haiku*) 15090 # PIC is the default for Haiku. 15091 # The "-static" flag exists, but is broken. 15092 lt_prog_compiler_static_CXX= 15093 ;; 15094 interix[3-9]*) 15095 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15096 # Instead, we relocate shared libraries at runtime. 15097 ;; 15098 sysv4*MP*) 15099 if test -d /usr/nec; then 15100 lt_prog_compiler_pic_CXX=-Kconform_pic 15101 fi 15102 ;; 15103 hpux*) 15104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15106 # sets the default TLS model and affects inlining. 15107 case $host_cpu in 15108 hppa*64*) 15109 ;; 15110 *) 15111 lt_prog_compiler_pic_CXX='-fPIC' 15112 ;; 15113 esac 15114 ;; 15115 *qnx* | *nto*) 15116 # QNX uses GNU C++, but need to define -shared option too, otherwise 15117 # it will coredump. 15118 lt_prog_compiler_pic_CXX='-fPIC -shared' 15119 ;; 15120 *) 15121 lt_prog_compiler_pic_CXX='-fPIC' 15122 ;; 15123 esac 15124 else 15125 case $host_os in 15126 aix[4-9]*) 15127 # All AIX code is PIC. 15128 if test ia64 = "$host_cpu"; then 15129 # AIX 5 now supports IA64 processor 15130 lt_prog_compiler_static_CXX='-Bstatic' 15131 else 15132 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15133 fi 15134 ;; 15135 chorus*) 15136 case $cc_basename in 15137 cxch68*) 15138 # Green Hills C++ Compiler 15139 # _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" 15140 ;; 15141 esac 15142 ;; 15143 mingw* | cygwin* | os2* | pw32* | cegcc*) 15144 # This hack is so that the source file can tell whether it is being 15145 # built for inclusion in a dll (and should export symbols for example). 15146 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15147 ;; 15148 dgux*) 15149 case $cc_basename in 15150 ec++*) 15151 lt_prog_compiler_pic_CXX='-KPIC' 15152 ;; 15153 ghcx*) 15154 # Green Hills C++ Compiler 15155 lt_prog_compiler_pic_CXX='-pic' 15156 ;; 15157 *) 15158 ;; 15159 esac 15160 ;; 15161 freebsd* | dragonfly*) 15162 # FreeBSD uses GNU C++ 15163 ;; 15164 hpux9* | hpux10* | hpux11*) 15165 case $cc_basename in 15166 CC*) 15167 lt_prog_compiler_wl_CXX='-Wl,' 15168 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15169 if test ia64 != "$host_cpu"; then 15170 lt_prog_compiler_pic_CXX='+Z' 15171 fi 15172 ;; 15173 aCC*) 15174 lt_prog_compiler_wl_CXX='-Wl,' 15175 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15176 case $host_cpu in 15177 hppa*64*|ia64*) 15178 # +Z the default 15179 ;; 15180 *) 15181 lt_prog_compiler_pic_CXX='+Z' 15182 ;; 15183 esac 15184 ;; 15185 *) 15186 ;; 15187 esac 15188 ;; 15189 interix*) 15190 # This is c89, which is MS Visual C++ (no shared libs) 15191 # Anyone wants to do a port? 15192 ;; 15193 irix5* | irix6* | nonstopux*) 15194 case $cc_basename in 15195 CC*) 15196 lt_prog_compiler_wl_CXX='-Wl,' 15197 lt_prog_compiler_static_CXX='-non_shared' 15198 # CC pic flag -KPIC is the default. 15199 ;; 15200 *) 15201 ;; 15202 esac 15203 ;; 15204 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15205 case $cc_basename in 15206 KCC*) 15207 # KAI C++ Compiler 15208 lt_prog_compiler_wl_CXX='--backend -Wl,' 15209 lt_prog_compiler_pic_CXX='-fPIC' 15210 ;; 15211 ecpc* ) 15212 # old Intel C++ for x86_64, which still supported -KPIC. 15213 lt_prog_compiler_wl_CXX='-Wl,' 15214 lt_prog_compiler_pic_CXX='-KPIC' 15215 lt_prog_compiler_static_CXX='-static' 15216 ;; 15217 icpc* ) 15218 # Intel C++, used to be incompatible with GCC. 15219 # ICC 10 doesn't accept -KPIC any more. 15220 lt_prog_compiler_wl_CXX='-Wl,' 15221 lt_prog_compiler_pic_CXX='-fPIC' 15222 lt_prog_compiler_static_CXX='-static' 15223 ;; 15224 pgCC* | pgcpp*) 15225 # Portland Group C++ compiler 15226 lt_prog_compiler_wl_CXX='-Wl,' 15227 lt_prog_compiler_pic_CXX='-fpic' 15228 lt_prog_compiler_static_CXX='-Bstatic' 15229 ;; 15230 cxx*) 15231 # Compaq C++ 15232 # Make sure the PIC flag is empty. It appears that all Alpha 15233 # Linux and Compaq Tru64 Unix objects are PIC. 15234 lt_prog_compiler_pic_CXX= 15235 lt_prog_compiler_static_CXX='-non_shared' 15236 ;; 15237 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15238 # IBM XL 8.0, 9.0 on PPC and BlueGene 15239 lt_prog_compiler_wl_CXX='-Wl,' 15240 lt_prog_compiler_pic_CXX='-qpic' 15241 lt_prog_compiler_static_CXX='-qstaticlink' 15242 ;; 15243 *) 15244 case `$CC -V 2>&1 | sed 5q` in 15245 *Sun\ C*) 15246 # Sun C++ 5.9 15247 lt_prog_compiler_pic_CXX='-KPIC' 15248 lt_prog_compiler_static_CXX='-Bstatic' 15249 lt_prog_compiler_wl_CXX='-Qoption ld ' 15250 ;; 15251 esac 15252 ;; 15253 esac 15254 ;; 15255 lynxos*) 15256 ;; 15257 m88k*) 15258 ;; 15259 mvs*) 15260 case $cc_basename in 15261 cxx*) 15262 lt_prog_compiler_pic_CXX='-W c,exportall' 15263 ;; 15264 *) 15265 ;; 15266 esac 15267 ;; 15268 netbsd*) 15269 ;; 15270 *qnx* | *nto*) 15271 # QNX uses GNU C++, but need to define -shared option too, otherwise 15272 # it will coredump. 15273 lt_prog_compiler_pic_CXX='-fPIC -shared' 15274 ;; 15275 osf3* | osf4* | osf5*) 15276 case $cc_basename in 15277 KCC*) 15278 lt_prog_compiler_wl_CXX='--backend -Wl,' 15279 ;; 15280 RCC*) 15281 # Rational C++ 2.4.1 15282 lt_prog_compiler_pic_CXX='-pic' 15283 ;; 15284 cxx*) 15285 # Digital/Compaq C++ 15286 lt_prog_compiler_wl_CXX='-Wl,' 15287 # Make sure the PIC flag is empty. It appears that all Alpha 15288 # Linux and Compaq Tru64 Unix objects are PIC. 15289 lt_prog_compiler_pic_CXX= 15290 lt_prog_compiler_static_CXX='-non_shared' 15291 ;; 15292 *) 15293 ;; 15294 esac 15295 ;; 15296 psos*) 15297 ;; 15298 solaris*) 15299 case $cc_basename in 15300 CC* | sunCC*) 15301 # Sun C++ 4.2, 5.x and Centerline C++ 15302 lt_prog_compiler_pic_CXX='-KPIC' 15303 lt_prog_compiler_static_CXX='-Bstatic' 15304 lt_prog_compiler_wl_CXX='-Qoption ld ' 15305 ;; 15306 gcx*) 15307 # Green Hills C++ Compiler 15308 lt_prog_compiler_pic_CXX='-PIC' 15309 ;; 15310 *) 15311 ;; 15312 esac 15313 ;; 15314 sunos4*) 15315 case $cc_basename in 15316 CC*) 15317 # Sun C++ 4.x 15318 lt_prog_compiler_pic_CXX='-pic' 15319 lt_prog_compiler_static_CXX='-Bstatic' 15320 ;; 15321 lcc*) 15322 # Lucid 15323 lt_prog_compiler_pic_CXX='-pic' 15324 ;; 15325 *) 15326 ;; 15327 esac 15328 ;; 15329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15330 case $cc_basename in 15331 CC*) 15332 lt_prog_compiler_wl_CXX='-Wl,' 15333 lt_prog_compiler_pic_CXX='-KPIC' 15334 lt_prog_compiler_static_CXX='-Bstatic' 15335 ;; 15336 esac 15337 ;; 15338 tandem*) 15339 case $cc_basename in 15340 NCC*) 15341 # NonStop-UX NCC 3.20 15342 lt_prog_compiler_pic_CXX='-KPIC' 15343 ;; 15344 *) 15345 ;; 15346 esac 15347 ;; 15348 vxworks*) 15349 ;; 15350 *) 15351 lt_prog_compiler_can_build_shared_CXX=no 15352 ;; 15353 esac 15354 fi 15355 15356case $host_os in 15357 # For platforms that do not support PIC, -DPIC is meaningless: 15358 *djgpp*) 15359 lt_prog_compiler_pic_CXX= 15360 ;; 15361 *) 15362 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15363 ;; 15364esac 15365 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15367$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15368if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15369 $as_echo_n "(cached) " >&6 15370else 15371 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15372fi 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15374$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15375lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15376 15377# 15378# Check to make sure the PIC flag actually works. 15379# 15380if test -n "$lt_prog_compiler_pic_CXX"; then 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15382$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15383if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15384 $as_echo_n "(cached) " >&6 15385else 15386 lt_cv_prog_compiler_pic_works_CXX=no 15387 ac_outfile=conftest.$ac_objext 15388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15389 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15390 # Insert the option either (1) after the last *FLAGS variable, or 15391 # (2) before a word containing "conftest.", or (3) at the end. 15392 # Note that $ac_compile itself does not contain backslashes and begins 15393 # with a dollar sign (not a hyphen), so the echo should work correctly. 15394 # The option is referenced via a variable to avoid confusing sed. 15395 lt_compile=`echo "$ac_compile" | $SED \ 15396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15398 -e 's:$: $lt_compiler_flag:'` 15399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15400 (eval "$lt_compile" 2>conftest.err) 15401 ac_status=$? 15402 cat conftest.err >&5 15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15404 if (exit $ac_status) && test -s "$ac_outfile"; then 15405 # The compiler can only warn and ignore the option if not recognized 15406 # So say no if there are warnings other than the usual output. 15407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15410 lt_cv_prog_compiler_pic_works_CXX=yes 15411 fi 15412 fi 15413 $RM conftest* 15414 15415fi 15416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15417$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15418 15419if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15420 case $lt_prog_compiler_pic_CXX in 15421 "" | " "*) ;; 15422 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15423 esac 15424else 15425 lt_prog_compiler_pic_CXX= 15426 lt_prog_compiler_can_build_shared_CXX=no 15427fi 15428 15429fi 15430 15431 15432 15433 15434 15435# 15436# Check to make sure the static flag actually works. 15437# 15438wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15440$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15441if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15442 $as_echo_n "(cached) " >&6 15443else 15444 lt_cv_prog_compiler_static_works_CXX=no 15445 save_LDFLAGS=$LDFLAGS 15446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15447 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15449 # The linker can only warn and ignore the option if not recognized 15450 # So say no if there are warnings 15451 if test -s conftest.err; then 15452 # Append any errors to the config.log. 15453 cat conftest.err 1>&5 15454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15456 if diff conftest.exp conftest.er2 >/dev/null; then 15457 lt_cv_prog_compiler_static_works_CXX=yes 15458 fi 15459 else 15460 lt_cv_prog_compiler_static_works_CXX=yes 15461 fi 15462 fi 15463 $RM -r conftest* 15464 LDFLAGS=$save_LDFLAGS 15465 15466fi 15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15468$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15469 15470if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15471 : 15472else 15473 lt_prog_compiler_static_CXX= 15474fi 15475 15476 15477 15478 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15480$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15481if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15482 $as_echo_n "(cached) " >&6 15483else 15484 lt_cv_prog_compiler_c_o_CXX=no 15485 $RM -r conftest 2>/dev/null 15486 mkdir conftest 15487 cd conftest 15488 mkdir out 15489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15490 15491 lt_compiler_flag="-o out/conftest2.$ac_objext" 15492 # Insert the option either (1) after the last *FLAGS variable, or 15493 # (2) before a word containing "conftest.", or (3) at the end. 15494 # Note that $ac_compile itself does not contain backslashes and begins 15495 # with a dollar sign (not a hyphen), so the echo should work correctly. 15496 lt_compile=`echo "$ac_compile" | $SED \ 15497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15499 -e 's:$: $lt_compiler_flag:'` 15500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15501 (eval "$lt_compile" 2>out/conftest.err) 15502 ac_status=$? 15503 cat out/conftest.err >&5 15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15505 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15506 then 15507 # The compiler can only warn and ignore the option if not recognized 15508 # So say no if there are warnings 15509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15512 lt_cv_prog_compiler_c_o_CXX=yes 15513 fi 15514 fi 15515 chmod u+w . 2>&5 15516 $RM conftest* 15517 # SGI C++ compiler will create directory out/ii_files/ for 15518 # template instantiation 15519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15520 $RM out/* && rmdir out 15521 cd .. 15522 $RM -r conftest 15523 $RM conftest* 15524 15525fi 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15527$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15528 15529 15530 15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15532$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15533if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15534 $as_echo_n "(cached) " >&6 15535else 15536 lt_cv_prog_compiler_c_o_CXX=no 15537 $RM -r conftest 2>/dev/null 15538 mkdir conftest 15539 cd conftest 15540 mkdir out 15541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15542 15543 lt_compiler_flag="-o out/conftest2.$ac_objext" 15544 # Insert the option either (1) after the last *FLAGS variable, or 15545 # (2) before a word containing "conftest.", or (3) at the end. 15546 # Note that $ac_compile itself does not contain backslashes and begins 15547 # with a dollar sign (not a hyphen), so the echo should work correctly. 15548 lt_compile=`echo "$ac_compile" | $SED \ 15549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15551 -e 's:$: $lt_compiler_flag:'` 15552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15553 (eval "$lt_compile" 2>out/conftest.err) 15554 ac_status=$? 15555 cat out/conftest.err >&5 15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15557 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15558 then 15559 # The compiler can only warn and ignore the option if not recognized 15560 # So say no if there are warnings 15561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15564 lt_cv_prog_compiler_c_o_CXX=yes 15565 fi 15566 fi 15567 chmod u+w . 2>&5 15568 $RM conftest* 15569 # SGI C++ compiler will create directory out/ii_files/ for 15570 # template instantiation 15571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15572 $RM out/* && rmdir out 15573 cd .. 15574 $RM -r conftest 15575 $RM conftest* 15576 15577fi 15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15579$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15580 15581 15582 15583 15584hard_links=nottested 15585if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15586 # do not overwrite the value of need_locks provided by the user 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15588$as_echo_n "checking if we can lock with hard links... " >&6; } 15589 hard_links=yes 15590 $RM conftest* 15591 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15592 touch conftest.a 15593 ln conftest.a conftest.b 2>&5 || hard_links=no 15594 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15596$as_echo "$hard_links" >&6; } 15597 if test no = "$hard_links"; then 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15599$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15600 need_locks=warn 15601 fi 15602else 15603 need_locks=no 15604fi 15605 15606 15607 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15609$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15610 15611 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15612 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15613 case $host_os in 15614 aix[4-9]*) 15615 # If we're using GNU nm, then we don't want the "-C" option. 15616 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15617 # Without the "-l" option, or with the "-B" option, AIX nm treats 15618 # weak defined symbols like other global defined symbols, whereas 15619 # GNU nm marks them as "W". 15620 # While the 'weak' keyword is ignored in the Export File, we need 15621 # it in the Import File for the 'aix-soname' feature, so we have 15622 # to replace the "-B" option with "-P" for AIX nm. 15623 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15624 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' 15625 else 15626 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' 15627 fi 15628 ;; 15629 pw32*) 15630 export_symbols_cmds_CXX=$ltdll_cmds 15631 ;; 15632 cygwin* | mingw* | cegcc*) 15633 case $cc_basename in 15634 cl*) 15635 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15636 ;; 15637 *) 15638 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' 15639 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15640 ;; 15641 esac 15642 ;; 15643 *) 15644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15645 ;; 15646 esac 15647 15648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15649$as_echo "$ld_shlibs_CXX" >&6; } 15650test no = "$ld_shlibs_CXX" && can_build_shared=no 15651 15652with_gnu_ld_CXX=$with_gnu_ld 15653 15654 15655 15656 15657 15658 15659# 15660# Do we need to explicitly link libc? 15661# 15662case "x$archive_cmds_need_lc_CXX" in 15663x|xyes) 15664 # Assume -lc should be added 15665 archive_cmds_need_lc_CXX=yes 15666 15667 if test yes,yes = "$GCC,$enable_shared"; then 15668 case $archive_cmds_CXX in 15669 *'~'*) 15670 # FIXME: we may have to deal with multi-command sequences. 15671 ;; 15672 '$CC '*) 15673 # Test whether the compiler implicitly links with -lc since on some 15674 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15675 # to ld, don't add -lc before -lgcc. 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15677$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15678if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 $RM conftest* 15682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15683 15684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15685 (eval $ac_compile) 2>&5 15686 ac_status=$? 15687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15688 test $ac_status = 0; } 2>conftest.err; then 15689 soname=conftest 15690 lib=conftest 15691 libobjs=conftest.$ac_objext 15692 deplibs= 15693 wl=$lt_prog_compiler_wl_CXX 15694 pic_flag=$lt_prog_compiler_pic_CXX 15695 compiler_flags=-v 15696 linker_flags=-v 15697 verstring= 15698 output_objdir=. 15699 libname=conftest 15700 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15701 allow_undefined_flag_CXX= 15702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15703 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15704 ac_status=$? 15705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15706 test $ac_status = 0; } 15707 then 15708 lt_cv_archive_cmds_need_lc_CXX=no 15709 else 15710 lt_cv_archive_cmds_need_lc_CXX=yes 15711 fi 15712 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15713 else 15714 cat conftest.err 1>&5 15715 fi 15716 $RM conftest* 15717 15718fi 15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15720$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15721 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15722 ;; 15723 esac 15724 fi 15725 ;; 15726esac 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15790$as_echo_n "checking dynamic linker characteristics... " >&6; } 15791 15792library_names_spec= 15793libname_spec='lib$name' 15794soname_spec= 15795shrext_cmds=.so 15796postinstall_cmds= 15797postuninstall_cmds= 15798finish_cmds= 15799finish_eval= 15800shlibpath_var= 15801shlibpath_overrides_runpath=unknown 15802version_type=none 15803dynamic_linker="$host_os ld.so" 15804sys_lib_dlsearch_path_spec="/lib /usr/lib" 15805need_lib_prefix=unknown 15806hardcode_into_libs=no 15807 15808# when you set need_version to no, make sure it does not cause -set_version 15809# flags to be left without arguments 15810need_version=unknown 15811 15812case $host_os in 15813aix3*) 15814 version_type=linux # correct to gnu/linux during the next big refactor 15815 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15816 shlibpath_var=LIBPATH 15817 15818 # AIX 3 has no versioning support, so we append a major version to the name. 15819 soname_spec='$libname$release$shared_ext$major' 15820 ;; 15821 15822aix[4-9]*) 15823 version_type=linux # correct to gnu/linux during the next big refactor 15824 need_lib_prefix=no 15825 need_version=no 15826 hardcode_into_libs=yes 15827 if test ia64 = "$host_cpu"; then 15828 # AIX 5 supports IA64 15829 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15830 shlibpath_var=LD_LIBRARY_PATH 15831 else 15832 # With GCC up to 2.95.x, collect2 would create an import file 15833 # for dependence libraries. The import file would start with 15834 # the line '#! .'. This would cause the generated library to 15835 # depend on '.', always an invalid library. This was fixed in 15836 # development snapshots of GCC prior to 3.0. 15837 case $host_os in 15838 aix4 | aix4.[01] | aix4.[01].*) 15839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15840 echo ' yes ' 15841 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15842 : 15843 else 15844 can_build_shared=no 15845 fi 15846 ;; 15847 esac 15848 # Using Import Files as archive members, it is possible to support 15849 # filename-based versioning of shared library archives on AIX. While 15850 # this would work for both with and without runtime linking, it will 15851 # prevent static linking of such archives. So we do filename-based 15852 # shared library versioning with .so extension only, which is used 15853 # when both runtime linking and shared linking is enabled. 15854 # Unfortunately, runtime linking may impact performance, so we do 15855 # not want this to be the default eventually. Also, we use the 15856 # versioned .so libs for executables only if there is the -brtl 15857 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15858 # To allow for filename-based versioning support, we need to create 15859 # libNAME.so.V as an archive file, containing: 15860 # *) an Import File, referring to the versioned filename of the 15861 # archive as well as the shared archive member, telling the 15862 # bitwidth (32 or 64) of that shared object, and providing the 15863 # list of exported symbols of that shared object, eventually 15864 # decorated with the 'weak' keyword 15865 # *) the shared object with the F_LOADONLY flag set, to really avoid 15866 # it being seen by the linker. 15867 # At run time we better use the real file rather than another symlink, 15868 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15869 15870 case $with_aix_soname,$aix_use_runtimelinking in 15871 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15872 # soname into executable. Probably we can add versioning support to 15873 # collect2, so additional links can be useful in future. 15874 aix,yes) # traditional libtool 15875 dynamic_linker='AIX unversionable lib.so' 15876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15877 # instead of lib<name>.a to let people know that these are not 15878 # typical AIX shared libraries. 15879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15880 ;; 15881 aix,no) # traditional AIX only 15882 dynamic_linker='AIX lib.a(lib.so.V)' 15883 # We preserve .a as extension for shared libraries through AIX4.2 15884 # and later when we are not doing run time linking. 15885 library_names_spec='$libname$release.a $libname.a' 15886 soname_spec='$libname$release$shared_ext$major' 15887 ;; 15888 svr4,*) # full svr4 only 15889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15891 # We do not specify a path in Import Files, so LIBPATH fires. 15892 shlibpath_overrides_runpath=yes 15893 ;; 15894 *,yes) # both, prefer svr4 15895 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15896 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15897 # unpreferred sharedlib libNAME.a needs extra handling 15898 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"' 15899 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"' 15900 # We do not specify a path in Import Files, so LIBPATH fires. 15901 shlibpath_overrides_runpath=yes 15902 ;; 15903 *,no) # both, prefer aix 15904 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15905 library_names_spec='$libname$release.a $libname.a' 15906 soname_spec='$libname$release$shared_ext$major' 15907 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15908 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)' 15909 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"' 15910 ;; 15911 esac 15912 shlibpath_var=LIBPATH 15913 fi 15914 ;; 15915 15916amigaos*) 15917 case $host_cpu in 15918 powerpc) 15919 # Since July 2007 AmigaOS4 officially supports .so libraries. 15920 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15922 ;; 15923 m68k) 15924 library_names_spec='$libname.ixlibrary $libname.a' 15925 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15926 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' 15927 ;; 15928 esac 15929 ;; 15930 15931beos*) 15932 library_names_spec='$libname$shared_ext' 15933 dynamic_linker="$host_os ld.so" 15934 shlibpath_var=LIBRARY_PATH 15935 ;; 15936 15937bsdi[45]*) 15938 version_type=linux # correct to gnu/linux during the next big refactor 15939 need_version=no 15940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15941 soname_spec='$libname$release$shared_ext$major' 15942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15943 shlibpath_var=LD_LIBRARY_PATH 15944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15946 # the default ld.so.conf also contains /usr/contrib/lib and 15947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15948 # libtool to hard-code these into programs 15949 ;; 15950 15951cygwin* | mingw* | pw32* | cegcc*) 15952 version_type=windows 15953 shrext_cmds=.dll 15954 need_version=no 15955 need_lib_prefix=no 15956 15957 case $GCC,$cc_basename in 15958 yes,*) 15959 # gcc 15960 library_names_spec='$libname.dll.a' 15961 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15962 postinstall_cmds='base_file=`basename \$file`~ 15963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15964 dldir=$destdir/`dirname \$dlpath`~ 15965 test -d \$dldir || mkdir -p \$dldir~ 15966 $install_prog $dir/$dlname \$dldir/$dlname~ 15967 chmod a+x \$dldir/$dlname~ 15968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15970 fi' 15971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15972 dlpath=$dir/\$dldll~ 15973 $RM \$dlpath' 15974 shlibpath_overrides_runpath=yes 15975 15976 case $host_os in 15977 cygwin*) 15978 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15979 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15980 15981 ;; 15982 mingw* | cegcc*) 15983 # MinGW DLLs use traditional 'lib' prefix 15984 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15985 ;; 15986 pw32*) 15987 # pw32 DLLs use 'pw' prefix rather than 'lib' 15988 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15989 ;; 15990 esac 15991 dynamic_linker='Win32 ld.exe' 15992 ;; 15993 15994 *,cl*) 15995 # Native MSVC 15996 libname_spec='$name' 15997 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15998 library_names_spec='$libname.dll.lib' 15999 16000 case $build_os in 16001 mingw*) 16002 sys_lib_search_path_spec= 16003 lt_save_ifs=$IFS 16004 IFS=';' 16005 for lt_path in $LIB 16006 do 16007 IFS=$lt_save_ifs 16008 # Let DOS variable expansion print the short 8.3 style file name. 16009 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16010 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16011 done 16012 IFS=$lt_save_ifs 16013 # Convert to MSYS style. 16014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16015 ;; 16016 cygwin*) 16017 # Convert to unix form, then to dos form, then back to unix form 16018 # but this time dos style (no spaces!) so that the unix form looks 16019 # like /cygdrive/c/PROGRA~1:/cygdr... 16020 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16021 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16022 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16023 ;; 16024 *) 16025 sys_lib_search_path_spec=$LIB 16026 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16027 # It is most probably a Windows format PATH. 16028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16029 else 16030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16031 fi 16032 # FIXME: find the short name or the path components, as spaces are 16033 # common. (e.g. "Program Files" -> "PROGRA~1") 16034 ;; 16035 esac 16036 16037 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16038 postinstall_cmds='base_file=`basename \$file`~ 16039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16040 dldir=$destdir/`dirname \$dlpath`~ 16041 test -d \$dldir || mkdir -p \$dldir~ 16042 $install_prog $dir/$dlname \$dldir/$dlname' 16043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16044 dlpath=$dir/\$dldll~ 16045 $RM \$dlpath' 16046 shlibpath_overrides_runpath=yes 16047 dynamic_linker='Win32 link.exe' 16048 ;; 16049 16050 *) 16051 # Assume MSVC wrapper 16052 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16053 dynamic_linker='Win32 ld.exe' 16054 ;; 16055 esac 16056 # FIXME: first we should search . and the directory the executable is in 16057 shlibpath_var=PATH 16058 ;; 16059 16060darwin* | rhapsody*) 16061 dynamic_linker="$host_os dyld" 16062 version_type=darwin 16063 need_lib_prefix=no 16064 need_version=no 16065 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16066 soname_spec='$libname$release$major$shared_ext' 16067 shlibpath_overrides_runpath=yes 16068 shlibpath_var=DYLD_LIBRARY_PATH 16069 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16070 16071 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16072 ;; 16073 16074dgux*) 16075 version_type=linux # correct to gnu/linux during the next big refactor 16076 need_lib_prefix=no 16077 need_version=no 16078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16079 soname_spec='$libname$release$shared_ext$major' 16080 shlibpath_var=LD_LIBRARY_PATH 16081 ;; 16082 16083freebsd* | dragonfly*) 16084 # DragonFly does not have aout. When/if they implement a new 16085 # versioning mechanism, adjust this. 16086 if test -x /usr/bin/objformat; then 16087 objformat=`/usr/bin/objformat` 16088 else 16089 case $host_os in 16090 freebsd[23].*) objformat=aout ;; 16091 *) objformat=elf ;; 16092 esac 16093 fi 16094 version_type=freebsd-$objformat 16095 case $version_type in 16096 freebsd-elf*) 16097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16098 need_version=no 16099 need_lib_prefix=no 16100 ;; 16101 freebsd-*) 16102 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16103 need_version=yes 16104 ;; 16105 esac 16106 shlibpath_var=LD_LIBRARY_PATH 16107 case $host_os in 16108 freebsd2.*) 16109 shlibpath_overrides_runpath=yes 16110 ;; 16111 freebsd3.[01]* | freebsdelf3.[01]*) 16112 shlibpath_overrides_runpath=yes 16113 hardcode_into_libs=yes 16114 ;; 16115 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16116 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16117 shlibpath_overrides_runpath=no 16118 hardcode_into_libs=yes 16119 ;; 16120 *) # from 4.6 on, and DragonFly 16121 shlibpath_overrides_runpath=yes 16122 hardcode_into_libs=yes 16123 ;; 16124 esac 16125 ;; 16126 16127haiku*) 16128 version_type=linux # correct to gnu/linux during the next big refactor 16129 need_lib_prefix=no 16130 need_version=no 16131 dynamic_linker="$host_os runtime_loader" 16132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16133 soname_spec='$libname$release$shared_ext$major' 16134 shlibpath_var=LIBRARY_PATH 16135 shlibpath_overrides_runpath=no 16136 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16137 hardcode_into_libs=yes 16138 ;; 16139 16140hpux9* | hpux10* | hpux11*) 16141 # Give a soname corresponding to the major version so that dld.sl refuses to 16142 # link against other versions. 16143 version_type=sunos 16144 need_lib_prefix=no 16145 need_version=no 16146 case $host_cpu in 16147 ia64*) 16148 shrext_cmds='.so' 16149 hardcode_into_libs=yes 16150 dynamic_linker="$host_os dld.so" 16151 shlibpath_var=LD_LIBRARY_PATH 16152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16154 soname_spec='$libname$release$shared_ext$major' 16155 if test 32 = "$HPUX_IA64_MODE"; then 16156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16157 else 16158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16159 fi 16160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16161 ;; 16162 hppa*64*) 16163 shrext_cmds='.sl' 16164 hardcode_into_libs=yes 16165 dynamic_linker="$host_os dld.sl" 16166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16169 soname_spec='$libname$release$shared_ext$major' 16170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16172 ;; 16173 *) 16174 shrext_cmds='.sl' 16175 dynamic_linker="$host_os dld.sl" 16176 shlibpath_var=SHLIB_PATH 16177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16179 soname_spec='$libname$release$shared_ext$major' 16180 ;; 16181 esac 16182 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16183 postinstall_cmds='chmod 555 $lib' 16184 # or fails outright, so override atomically: 16185 install_override_mode=555 16186 ;; 16187 16188interix[3-9]*) 16189 version_type=linux # correct to gnu/linux during the next big refactor 16190 need_lib_prefix=no 16191 need_version=no 16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16193 soname_spec='$libname$release$shared_ext$major' 16194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16195 shlibpath_var=LD_LIBRARY_PATH 16196 shlibpath_overrides_runpath=no 16197 hardcode_into_libs=yes 16198 ;; 16199 16200irix5* | irix6* | nonstopux*) 16201 case $host_os in 16202 nonstopux*) version_type=nonstopux ;; 16203 *) 16204 if test yes = "$lt_cv_prog_gnu_ld"; then 16205 version_type=linux # correct to gnu/linux during the next big refactor 16206 else 16207 version_type=irix 16208 fi ;; 16209 esac 16210 need_lib_prefix=no 16211 need_version=no 16212 soname_spec='$libname$release$shared_ext$major' 16213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16214 case $host_os in 16215 irix5* | nonstopux*) 16216 libsuff= shlibsuff= 16217 ;; 16218 *) 16219 case $LD in # libtool.m4 will add one of these switches to LD 16220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16221 libsuff= shlibsuff= libmagic=32-bit;; 16222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16223 libsuff=32 shlibsuff=N32 libmagic=N32;; 16224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16225 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16226 *) libsuff= shlibsuff= libmagic=never-match;; 16227 esac 16228 ;; 16229 esac 16230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16231 shlibpath_overrides_runpath=no 16232 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16233 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16234 hardcode_into_libs=yes 16235 ;; 16236 16237# No shared lib support for Linux oldld, aout, or coff. 16238linux*oldld* | linux*aout* | linux*coff*) 16239 dynamic_linker=no 16240 ;; 16241 16242linux*android*) 16243 version_type=none # Android doesn't support versioned libraries. 16244 need_lib_prefix=no 16245 need_version=no 16246 library_names_spec='$libname$release$shared_ext' 16247 soname_spec='$libname$release$shared_ext' 16248 finish_cmds= 16249 shlibpath_var=LD_LIBRARY_PATH 16250 shlibpath_overrides_runpath=yes 16251 16252 # This implies no fast_install, which is unacceptable. 16253 # Some rework will be needed to allow for fast_install 16254 # before this can be enabled. 16255 hardcode_into_libs=yes 16256 16257 dynamic_linker='Android linker' 16258 # Don't embed -rpath directories since the linker doesn't support them. 16259 hardcode_libdir_flag_spec_CXX='-L$libdir' 16260 ;; 16261 16262# This must be glibc/ELF. 16263linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16264 version_type=linux # correct to gnu/linux during the next big refactor 16265 need_lib_prefix=no 16266 need_version=no 16267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16268 soname_spec='$libname$release$shared_ext$major' 16269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16270 shlibpath_var=LD_LIBRARY_PATH 16271 shlibpath_overrides_runpath=no 16272 16273 # Some binutils ld are patched to set DT_RUNPATH 16274 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16275 $as_echo_n "(cached) " >&6 16276else 16277 lt_cv_shlibpath_overrides_runpath=no 16278 save_LDFLAGS=$LDFLAGS 16279 save_libdir=$libdir 16280 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16281 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284 16285int 16286main () 16287{ 16288 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_cxx_try_link "$LINENO"; then : 16294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16295 lt_cv_shlibpath_overrides_runpath=yes 16296fi 16297fi 16298rm -f core conftest.err conftest.$ac_objext \ 16299 conftest$ac_exeext conftest.$ac_ext 16300 LDFLAGS=$save_LDFLAGS 16301 libdir=$save_libdir 16302 16303fi 16304 16305 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16306 16307 # This implies no fast_install, which is unacceptable. 16308 # Some rework will be needed to allow for fast_install 16309 # before this can be enabled. 16310 hardcode_into_libs=yes 16311 16312 # Append ld.so.conf contents to the search path 16313 if test -f /etc/ld.so.conf; then 16314 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' ' '` 16315 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16316 fi 16317 16318 # We used to test for /lib/ld.so.1 and disable shared libraries on 16319 # powerpc, because MkLinux only supported shared libraries with the 16320 # GNU dynamic linker. Since this was broken with cross compilers, 16321 # most powerpc-linux boxes support dynamic linking these days and 16322 # people can always --disable-shared, the test was removed, and we 16323 # assume the GNU/Linux dynamic linker is in use. 16324 dynamic_linker='GNU/Linux ld.so' 16325 ;; 16326 16327netbsd*) 16328 version_type=sunos 16329 need_lib_prefix=no 16330 need_version=no 16331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16334 dynamic_linker='NetBSD (a.out) ld.so' 16335 else 16336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16337 soname_spec='$libname$release$shared_ext$major' 16338 dynamic_linker='NetBSD ld.elf_so' 16339 fi 16340 shlibpath_var=LD_LIBRARY_PATH 16341 shlibpath_overrides_runpath=yes 16342 hardcode_into_libs=yes 16343 ;; 16344 16345newsos6) 16346 version_type=linux # correct to gnu/linux during the next big refactor 16347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16348 shlibpath_var=LD_LIBRARY_PATH 16349 shlibpath_overrides_runpath=yes 16350 ;; 16351 16352*nto* | *qnx*) 16353 version_type=qnx 16354 need_lib_prefix=no 16355 need_version=no 16356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16357 soname_spec='$libname$release$shared_ext$major' 16358 shlibpath_var=LD_LIBRARY_PATH 16359 shlibpath_overrides_runpath=no 16360 hardcode_into_libs=yes 16361 dynamic_linker='ldqnx.so' 16362 ;; 16363 16364openbsd* | bitrig*) 16365 version_type=sunos 16366 sys_lib_dlsearch_path_spec=/usr/lib 16367 need_lib_prefix=no 16368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16369 need_version=no 16370 else 16371 need_version=yes 16372 fi 16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16375 shlibpath_var=LD_LIBRARY_PATH 16376 shlibpath_overrides_runpath=yes 16377 ;; 16378 16379os2*) 16380 libname_spec='$name' 16381 version_type=windows 16382 shrext_cmds=.dll 16383 need_version=no 16384 need_lib_prefix=no 16385 # OS/2 can only load a DLL with a base name of 8 characters or less. 16386 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16387 v=$($ECHO $release$versuffix | tr -d .-); 16388 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16389 $ECHO $n$v`$shared_ext' 16390 library_names_spec='${libname}_dll.$libext' 16391 dynamic_linker='OS/2 ld.exe' 16392 shlibpath_var=BEGINLIBPATH 16393 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16395 postinstall_cmds='base_file=`basename \$file`~ 16396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16397 dldir=$destdir/`dirname \$dlpath`~ 16398 test -d \$dldir || mkdir -p \$dldir~ 16399 $install_prog $dir/$dlname \$dldir/$dlname~ 16400 chmod a+x \$dldir/$dlname~ 16401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16403 fi' 16404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16405 dlpath=$dir/\$dldll~ 16406 $RM \$dlpath' 16407 ;; 16408 16409osf3* | osf4* | osf5*) 16410 version_type=osf 16411 need_lib_prefix=no 16412 need_version=no 16413 soname_spec='$libname$release$shared_ext$major' 16414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16415 shlibpath_var=LD_LIBRARY_PATH 16416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16418 ;; 16419 16420rdos*) 16421 dynamic_linker=no 16422 ;; 16423 16424solaris*) 16425 version_type=linux # correct to gnu/linux during the next big refactor 16426 need_lib_prefix=no 16427 need_version=no 16428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16429 soname_spec='$libname$release$shared_ext$major' 16430 shlibpath_var=LD_LIBRARY_PATH 16431 shlibpath_overrides_runpath=yes 16432 hardcode_into_libs=yes 16433 # ldd complains unless libraries are executable 16434 postinstall_cmds='chmod +x $lib' 16435 ;; 16436 16437sunos4*) 16438 version_type=sunos 16439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16441 shlibpath_var=LD_LIBRARY_PATH 16442 shlibpath_overrides_runpath=yes 16443 if test yes = "$with_gnu_ld"; then 16444 need_lib_prefix=no 16445 fi 16446 need_version=yes 16447 ;; 16448 16449sysv4 | sysv4.3*) 16450 version_type=linux # correct to gnu/linux during the next big refactor 16451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16452 soname_spec='$libname$release$shared_ext$major' 16453 shlibpath_var=LD_LIBRARY_PATH 16454 case $host_vendor in 16455 sni) 16456 shlibpath_overrides_runpath=no 16457 need_lib_prefix=no 16458 runpath_var=LD_RUN_PATH 16459 ;; 16460 siemens) 16461 need_lib_prefix=no 16462 ;; 16463 motorola) 16464 need_lib_prefix=no 16465 need_version=no 16466 shlibpath_overrides_runpath=no 16467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16468 ;; 16469 esac 16470 ;; 16471 16472sysv4*MP*) 16473 if test -d /usr/nec; then 16474 version_type=linux # correct to gnu/linux during the next big refactor 16475 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16476 soname_spec='$libname$shared_ext.$major' 16477 shlibpath_var=LD_LIBRARY_PATH 16478 fi 16479 ;; 16480 16481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16482 version_type=sco 16483 need_lib_prefix=no 16484 need_version=no 16485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16486 soname_spec='$libname$release$shared_ext$major' 16487 shlibpath_var=LD_LIBRARY_PATH 16488 shlibpath_overrides_runpath=yes 16489 hardcode_into_libs=yes 16490 if test yes = "$with_gnu_ld"; then 16491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16492 else 16493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16494 case $host_os in 16495 sco3.2v5*) 16496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16497 ;; 16498 esac 16499 fi 16500 sys_lib_dlsearch_path_spec='/usr/lib' 16501 ;; 16502 16503tpf*) 16504 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16505 version_type=linux # correct to gnu/linux during the next big refactor 16506 need_lib_prefix=no 16507 need_version=no 16508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16509 shlibpath_var=LD_LIBRARY_PATH 16510 shlibpath_overrides_runpath=no 16511 hardcode_into_libs=yes 16512 ;; 16513 16514uts4*) 16515 version_type=linux # correct to gnu/linux during the next big refactor 16516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16517 soname_spec='$libname$release$shared_ext$major' 16518 shlibpath_var=LD_LIBRARY_PATH 16519 ;; 16520 16521*) 16522 dynamic_linker=no 16523 ;; 16524esac 16525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16526$as_echo "$dynamic_linker" >&6; } 16527test no = "$dynamic_linker" && can_build_shared=no 16528 16529variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16530if test yes = "$GCC"; then 16531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16532fi 16533 16534if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16535 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16536fi 16537if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16538 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16539fi 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16579$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16580hardcode_action_CXX= 16581if test -n "$hardcode_libdir_flag_spec_CXX" || 16582 test -n "$runpath_var_CXX" || 16583 test yes = "$hardcode_automatic_CXX"; then 16584 16585 # We can hardcode non-existent directories. 16586 if test no != "$hardcode_direct_CXX" && 16587 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16588 # have to relink, otherwise we might link with an installed library 16589 # when we should be linking with a yet-to-be-installed one 16590 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16591 test no != "$hardcode_minus_L_CXX"; then 16592 # Linking always hardcodes the temporary library directory. 16593 hardcode_action_CXX=relink 16594 else 16595 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16596 hardcode_action_CXX=immediate 16597 fi 16598else 16599 # We cannot hardcode anything, or else we can only hardcode existing 16600 # directories. 16601 hardcode_action_CXX=unsupported 16602fi 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16604$as_echo "$hardcode_action_CXX" >&6; } 16605 16606if test relink = "$hardcode_action_CXX" || 16607 test yes = "$inherit_rpath_CXX"; then 16608 # Fast installation is not supported 16609 enable_fast_install=no 16610elif test yes = "$shlibpath_overrides_runpath" || 16611 test no = "$enable_shared"; then 16612 # Fast installation is not necessary 16613 enable_fast_install=needless 16614fi 16615 16616 16617 16618 16619 16620 16621 16622 fi # test -n "$compiler" 16623 16624 CC=$lt_save_CC 16625 CFLAGS=$lt_save_CFLAGS 16626 LDCXX=$LD 16627 LD=$lt_save_LD 16628 GCC=$lt_save_GCC 16629 with_gnu_ld=$lt_save_with_gnu_ld 16630 lt_cv_path_LDCXX=$lt_cv_path_LD 16631 lt_cv_path_LD=$lt_save_path_LD 16632 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16633 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16634fi # test yes != "$_lt_caught_CXX_error" 16635 16636ac_ext=c 16637ac_cpp='$CPP $CPPFLAGS' 16638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16640ac_compiler_gnu=$ac_cv_c_compiler_gnu 16641 16642 16643 16644# Enable support for silent build rules 16645# Check whether --enable-silent-rules was given. 16646if test "${enable_silent_rules+set}" = set; then : 16647 enableval=$enable_silent_rules; 16648fi 16649 16650case $enable_silent_rules in # ((( 16651 yes) AM_DEFAULT_VERBOSITY=0;; 16652 no) AM_DEFAULT_VERBOSITY=1;; 16653 *) AM_DEFAULT_VERBOSITY=1;; 16654esac 16655am_make=${MAKE-make} 16656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16657$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16658if ${am_cv_make_support_nested_variables+:} false; then : 16659 $as_echo_n "(cached) " >&6 16660else 16661 if $as_echo 'TRUE=$(BAR$(V)) 16662BAR0=false 16663BAR1=true 16664V=1 16665am__doit: 16666 @$(TRUE) 16667.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16668 am_cv_make_support_nested_variables=yes 16669else 16670 am_cv_make_support_nested_variables=no 16671fi 16672fi 16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16674$as_echo "$am_cv_make_support_nested_variables" >&6; } 16675if test $am_cv_make_support_nested_variables = yes; then 16676 AM_V='$(V)' 16677 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16678else 16679 AM_V=$AM_DEFAULT_VERBOSITY 16680 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16681fi 16682AM_BACKSLASH='\' 16683 16684 16685tiff_libs_private= 16686 16687 16688case "${host_os}" in 16689 cygwin* | mingw32* | beos* | darwin*) 16690 ;; 16691 *) 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16693$as_echo_n "checking for sin in -lm... " >&6; } 16694if ${ac_cv_lib_m_sin+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 ac_check_lib_save_LIBS=$LIBS 16698LIBS="-lm $LIBS" 16699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16700/* end confdefs.h. */ 16701 16702/* Override any GCC internal prototype to avoid an error. 16703 Use char because int might match the return type of a GCC 16704 builtin and then its argument prototype would still apply. */ 16705#ifdef __cplusplus 16706extern "C" 16707#endif 16708char sin (); 16709int 16710main () 16711{ 16712return sin (); 16713 ; 16714 return 0; 16715} 16716_ACEOF 16717if ac_fn_c_try_link "$LINENO"; then : 16718 ac_cv_lib_m_sin=yes 16719else 16720 ac_cv_lib_m_sin=no 16721fi 16722rm -f core conftest.err conftest.$ac_objext \ 16723 conftest$ac_exeext conftest.$ac_ext 16724LIBS=$ac_check_lib_save_LIBS 16725fi 16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16727$as_echo "$ac_cv_lib_m_sin" >&6; } 16728if test "x$ac_cv_lib_m_sin" = xyes; then : 16729 libm_lib=yes 16730else 16731 libm_lib=no 16732fi 16733 16734 if test "x$libm_lib" = "xyes" ; then 16735 LIBS="-lm $LIBS" 16736 tiff_libs_private="-lm ${tiff_libs_private}" 16737 fi 16738 ;; 16739esac 16740 16741for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16742do : 16743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16744ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16746 cat >>confdefs.h <<_ACEOF 16747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16748_ACEOF 16749 16750fi 16751 16752done 16753 16754 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16756$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16757if ${ac_cv_c_const+:} false; then : 16758 $as_echo_n "(cached) " >&6 16759else 16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16761/* end confdefs.h. */ 16762 16763int 16764main () 16765{ 16766 16767#ifndef __cplusplus 16768 /* Ultrix mips cc rejects this sort of thing. */ 16769 typedef int charset[2]; 16770 const charset cs = { 0, 0 }; 16771 /* SunOS 4.1.1 cc rejects this. */ 16772 char const *const *pcpcc; 16773 char **ppc; 16774 /* NEC SVR4.0.2 mips cc rejects this. */ 16775 struct point {int x, y;}; 16776 static struct point const zero = {0,0}; 16777 /* AIX XL C 1.02.0.0 rejects this. 16778 It does not let you subtract one const X* pointer from another in 16779 an arm of an if-expression whose if-part is not a constant 16780 expression */ 16781 const char *g = "string"; 16782 pcpcc = &g + (g ? g-g : 0); 16783 /* HPUX 7.0 cc rejects these. */ 16784 ++pcpcc; 16785 ppc = (char**) pcpcc; 16786 pcpcc = (char const *const *) ppc; 16787 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16788 char tx; 16789 char *t = &tx; 16790 char const *s = 0 ? (char *) 0 : (char const *) 0; 16791 16792 *t++ = 0; 16793 if (s) return 0; 16794 } 16795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16796 int x[] = {25, 17}; 16797 const int *foo = &x[0]; 16798 ++foo; 16799 } 16800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16801 typedef const int *iptr; 16802 iptr p = 0; 16803 ++p; 16804 } 16805 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16807 struct s { int j; const int *ap[3]; } bx; 16808 struct s *b = &bx; b->j = 5; 16809 } 16810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16811 const int foo = 10; 16812 if (!foo) return 0; 16813 } 16814 return !cs[0] && !zero.x; 16815#endif 16816 16817 ; 16818 return 0; 16819} 16820_ACEOF 16821if ac_fn_c_try_compile "$LINENO"; then : 16822 ac_cv_c_const=yes 16823else 16824 ac_cv_c_const=no 16825fi 16826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16827fi 16828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16829$as_echo "$ac_cv_c_const" >&6; } 16830if test $ac_cv_c_const = no; then 16831 16832$as_echo "#define const /**/" >>confdefs.h 16833 16834fi 16835 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16837$as_echo_n "checking for inline... " >&6; } 16838if ${ac_cv_c_inline+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 ac_cv_c_inline=no 16842for ac_kw in inline __inline__ __inline; do 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845#ifndef __cplusplus 16846typedef int foo_t; 16847static $ac_kw foo_t static_foo () {return 0; } 16848$ac_kw foo_t foo () {return 0; } 16849#endif 16850 16851_ACEOF 16852if ac_fn_c_try_compile "$LINENO"; then : 16853 ac_cv_c_inline=$ac_kw 16854fi 16855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16856 test "$ac_cv_c_inline" != no && break 16857done 16858 16859fi 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16861$as_echo "$ac_cv_c_inline" >&6; } 16862 16863case $ac_cv_c_inline in 16864 inline | yes) ;; 16865 *) 16866 case $ac_cv_c_inline in 16867 no) ac_val=;; 16868 *) ac_val=$ac_cv_c_inline;; 16869 esac 16870 cat >>confdefs.h <<_ACEOF 16871#ifndef __cplusplus 16872#define inline $ac_val 16873#endif 16874_ACEOF 16875 ;; 16876esac 16877 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16879$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16880if ${ac_cv_c_bigendian+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 ac_cv_c_bigendian=unknown 16884 # See if we're dealing with a universal compiler. 16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16886/* end confdefs.h. */ 16887#ifndef __APPLE_CC__ 16888 not a universal capable compiler 16889 #endif 16890 typedef int dummy; 16891 16892_ACEOF 16893if ac_fn_c_try_compile "$LINENO"; then : 16894 16895 # Check for potential -arch flags. It is not universal unless 16896 # there are at least two -arch flags with different values. 16897 ac_arch= 16898 ac_prev= 16899 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16900 if test -n "$ac_prev"; then 16901 case $ac_word in 16902 i?86 | x86_64 | ppc | ppc64) 16903 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16904 ac_arch=$ac_word 16905 else 16906 ac_cv_c_bigendian=universal 16907 break 16908 fi 16909 ;; 16910 esac 16911 ac_prev= 16912 elif test "x$ac_word" = "x-arch"; then 16913 ac_prev=arch 16914 fi 16915 done 16916fi 16917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16918 if test $ac_cv_c_bigendian = unknown; then 16919 # See if sys/param.h defines the BYTE_ORDER macro. 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922#include <sys/types.h> 16923 #include <sys/param.h> 16924 16925int 16926main () 16927{ 16928#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16929 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16930 && LITTLE_ENDIAN) 16931 bogus endian macros 16932 #endif 16933 16934 ; 16935 return 0; 16936} 16937_ACEOF 16938if ac_fn_c_try_compile "$LINENO"; then : 16939 # It does; now see whether it defined to BIG_ENDIAN or not. 16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16941/* end confdefs.h. */ 16942#include <sys/types.h> 16943 #include <sys/param.h> 16944 16945int 16946main () 16947{ 16948#if BYTE_ORDER != BIG_ENDIAN 16949 not big endian 16950 #endif 16951 16952 ; 16953 return 0; 16954} 16955_ACEOF 16956if ac_fn_c_try_compile "$LINENO"; then : 16957 ac_cv_c_bigendian=yes 16958else 16959 ac_cv_c_bigendian=no 16960fi 16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16964 fi 16965 if test $ac_cv_c_bigendian = unknown; then 16966 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16968/* end confdefs.h. */ 16969#include <limits.h> 16970 16971int 16972main () 16973{ 16974#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16975 bogus endian macros 16976 #endif 16977 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO"; then : 16983 # It does; now see whether it defined to _BIG_ENDIAN or not. 16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16985/* end confdefs.h. */ 16986#include <limits.h> 16987 16988int 16989main () 16990{ 16991#ifndef _BIG_ENDIAN 16992 not big endian 16993 #endif 16994 16995 ; 16996 return 0; 16997} 16998_ACEOF 16999if ac_fn_c_try_compile "$LINENO"; then : 17000 ac_cv_c_bigendian=yes 17001else 17002 ac_cv_c_bigendian=no 17003fi 17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17005fi 17006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17007 fi 17008 if test $ac_cv_c_bigendian = unknown; then 17009 # Compile a test program. 17010 if test "$cross_compiling" = yes; then : 17011 # Try to guess by grepping values from an object file. 17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17013/* end confdefs.h. */ 17014short int ascii_mm[] = 17015 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17016 short int ascii_ii[] = 17017 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17018 int use_ascii (int i) { 17019 return ascii_mm[i] + ascii_ii[i]; 17020 } 17021 short int ebcdic_ii[] = 17022 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17023 short int ebcdic_mm[] = 17024 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17025 int use_ebcdic (int i) { 17026 return ebcdic_mm[i] + ebcdic_ii[i]; 17027 } 17028 extern int foo; 17029 17030int 17031main () 17032{ 17033return use_ascii (foo) == use_ebcdic (foo); 17034 ; 17035 return 0; 17036} 17037_ACEOF 17038if ac_fn_c_try_compile "$LINENO"; then : 17039 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17040 ac_cv_c_bigendian=yes 17041 fi 17042 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17043 if test "$ac_cv_c_bigendian" = unknown; then 17044 ac_cv_c_bigendian=no 17045 else 17046 # finding both strings is unlikely to happen, but who knows? 17047 ac_cv_c_bigendian=unknown 17048 fi 17049 fi 17050fi 17051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17052else 17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17054/* end confdefs.h. */ 17055$ac_includes_default 17056int 17057main () 17058{ 17059 17060 /* Are we little or big endian? From Harbison&Steele. */ 17061 union 17062 { 17063 long int l; 17064 char c[sizeof (long int)]; 17065 } u; 17066 u.l = 1; 17067 return u.c[sizeof (long int) - 1] == 1; 17068 17069 ; 17070 return 0; 17071} 17072_ACEOF 17073if ac_fn_c_try_run "$LINENO"; then : 17074 ac_cv_c_bigendian=no 17075else 17076 ac_cv_c_bigendian=yes 17077fi 17078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17079 conftest.$ac_objext conftest.beam conftest.$ac_ext 17080fi 17081 17082 fi 17083fi 17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17085$as_echo "$ac_cv_c_bigendian" >&6; } 17086 case $ac_cv_c_bigendian in #( 17087 yes) 17088 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17089;; #( 17090 no) 17091 ;; #( 17092 universal) 17093 17094$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17095 17096 ;; #( 17097 *) 17098 as_fn_error $? "unknown endianness 17099 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17100 esac 17101 17102ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17103if test "x$ac_cv_type_off_t" = xyes; then : 17104 17105else 17106 17107cat >>confdefs.h <<_ACEOF 17108#define off_t long int 17109_ACEOF 17110 17111fi 17112 17113ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17114if test "x$ac_cv_type_size_t" = xyes; then : 17115 17116else 17117 17118cat >>confdefs.h <<_ACEOF 17119#define size_t unsigned int 17120_ACEOF 17121 17122fi 17123 17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17125$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17126if ${ac_cv_header_time+:} false; then : 17127 $as_echo_n "(cached) " >&6 17128else 17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17130/* end confdefs.h. */ 17131#include <sys/types.h> 17132#include <sys/time.h> 17133#include <time.h> 17134 17135int 17136main () 17137{ 17138if ((struct tm *) 0) 17139return 0; 17140 ; 17141 return 0; 17142} 17143_ACEOF 17144if ac_fn_c_try_compile "$LINENO"; then : 17145 ac_cv_header_time=yes 17146else 17147 ac_cv_header_time=no 17148fi 17149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17150fi 17151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17152$as_echo "$ac_cv_header_time" >&6; } 17153if test $ac_cv_header_time = yes; then 17154 17155$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17156 17157fi 17158 17159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17160$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17161if ${ac_cv_struct_tm+:} false; then : 17162 $as_echo_n "(cached) " >&6 17163else 17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17165/* end confdefs.h. */ 17166#include <sys/types.h> 17167#include <time.h> 17168 17169int 17170main () 17171{ 17172struct tm tm; 17173 int *p = &tm.tm_sec; 17174 return !p; 17175 ; 17176 return 0; 17177} 17178_ACEOF 17179if ac_fn_c_try_compile "$LINENO"; then : 17180 ac_cv_struct_tm=time.h 17181else 17182 ac_cv_struct_tm=sys/time.h 17183fi 17184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17185fi 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17187$as_echo "$ac_cv_struct_tm" >&6; } 17188if test $ac_cv_struct_tm = sys/time.h; then 17189 17190$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17191 17192fi 17193 17194 17195 17196# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 17197# The cast to long int works around a bug in the HP C Compiler 17198# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17199# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17200# This bug is HP SR number 8606223364. 17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 17202$as_echo_n "checking size of signed short... " >&6; } 17203if ${ac_cv_sizeof_signed_short+:} false; then : 17204 $as_echo_n "(cached) " >&6 17205else 17206 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 17207 17208else 17209 if test "$ac_cv_type_signed_short" = yes; then 17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17212as_fn_error 77 "cannot compute sizeof (signed short) 17213See \`config.log' for more details" "$LINENO" 5; } 17214 else 17215 ac_cv_sizeof_signed_short=0 17216 fi 17217fi 17218 17219fi 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 17221$as_echo "$ac_cv_sizeof_signed_short" >&6; } 17222 17223 17224 17225cat >>confdefs.h <<_ACEOF 17226#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 17227_ACEOF 17228 17229 17230 17231# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 17232# The cast to long int works around a bug in the HP C Compiler 17233# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17234# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17235# This bug is HP SR number 8606223364. 17236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 17237$as_echo_n "checking size of unsigned short... " >&6; } 17238if ${ac_cv_sizeof_unsigned_short+:} false; then : 17239 $as_echo_n "(cached) " >&6 17240else 17241 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 17242 17243else 17244 if test "$ac_cv_type_unsigned_short" = yes; then 17245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17247as_fn_error 77 "cannot compute sizeof (unsigned short) 17248See \`config.log' for more details" "$LINENO" 5; } 17249 else 17250 ac_cv_sizeof_unsigned_short=0 17251 fi 17252fi 17253 17254fi 17255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 17256$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 17257 17258 17259 17260cat >>confdefs.h <<_ACEOF 17261#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 17262_ACEOF 17263 17264 17265 17266# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 17267# The cast to long int works around a bug in the HP C Compiler 17268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17270# This bug is HP SR number 8606223364. 17271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 17272$as_echo_n "checking size of signed int... " >&6; } 17273if ${ac_cv_sizeof_signed_int+:} false; then : 17274 $as_echo_n "(cached) " >&6 17275else 17276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 17277 17278else 17279 if test "$ac_cv_type_signed_int" = yes; then 17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17282as_fn_error 77 "cannot compute sizeof (signed int) 17283See \`config.log' for more details" "$LINENO" 5; } 17284 else 17285 ac_cv_sizeof_signed_int=0 17286 fi 17287fi 17288 17289fi 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 17291$as_echo "$ac_cv_sizeof_signed_int" >&6; } 17292 17293 17294 17295cat >>confdefs.h <<_ACEOF 17296#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 17297_ACEOF 17298 17299 17300 17301# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 17302# The cast to long int works around a bug in the HP C Compiler 17303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17305# This bug is HP SR number 8606223364. 17306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 17307$as_echo_n "checking size of unsigned int... " >&6; } 17308if ${ac_cv_sizeof_unsigned_int+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 17312 17313else 17314 if test "$ac_cv_type_unsigned_int" = yes; then 17315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17317as_fn_error 77 "cannot compute sizeof (unsigned int) 17318See \`config.log' for more details" "$LINENO" 5; } 17319 else 17320 ac_cv_sizeof_unsigned_int=0 17321 fi 17322fi 17323 17324fi 17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 17326$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 17327 17328 17329 17330cat >>confdefs.h <<_ACEOF 17331#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 17332_ACEOF 17333 17334 17335 17336# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 17337# The cast to long int works around a bug in the HP C Compiler 17338# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17339# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17340# This bug is HP SR number 8606223364. 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 17342$as_echo_n "checking size of signed long... " >&6; } 17343if ${ac_cv_sizeof_signed_long+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345else 17346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 17347 17348else 17349 if test "$ac_cv_type_signed_long" = yes; then 17350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17352as_fn_error 77 "cannot compute sizeof (signed long) 17353See \`config.log' for more details" "$LINENO" 5; } 17354 else 17355 ac_cv_sizeof_signed_long=0 17356 fi 17357fi 17358 17359fi 17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 17361$as_echo "$ac_cv_sizeof_signed_long" >&6; } 17362 17363 17364 17365cat >>confdefs.h <<_ACEOF 17366#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 17367_ACEOF 17368 17369 17370 17371# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 17372# The cast to long int works around a bug in the HP C Compiler 17373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17375# This bug is HP SR number 8606223364. 17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 17377$as_echo_n "checking size of unsigned long... " >&6; } 17378if ${ac_cv_sizeof_unsigned_long+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380else 17381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 17382 17383else 17384 if test "$ac_cv_type_unsigned_long" = yes; then 17385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17387as_fn_error 77 "cannot compute sizeof (unsigned long) 17388See \`config.log' for more details" "$LINENO" 5; } 17389 else 17390 ac_cv_sizeof_unsigned_long=0 17391 fi 17392fi 17393 17394fi 17395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 17396$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 17397 17398 17399 17400cat >>confdefs.h <<_ACEOF 17401#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 17402_ACEOF 17403 17404 17405 17406# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 17407# If 'long long' is not supported then the value defined is zero. 17408# The cast to long int works around a bug in the HP C Compiler 17409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17411# This bug is HP SR number 8606223364. 17412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 17413$as_echo_n "checking size of signed long long... " >&6; } 17414if ${ac_cv_sizeof_signed_long_long+:} false; then : 17415 $as_echo_n "(cached) " >&6 17416else 17417 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 17418 17419else 17420 if test "$ac_cv_type_signed_long_long" = yes; then 17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17423as_fn_error 77 "cannot compute sizeof (signed long long) 17424See \`config.log' for more details" "$LINENO" 5; } 17425 else 17426 ac_cv_sizeof_signed_long_long=0 17427 fi 17428fi 17429 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 17432$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 17433 17434 17435 17436cat >>confdefs.h <<_ACEOF 17437#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 17438_ACEOF 17439 17440 17441 17442# Obtain size of a 'unsigned long long' and define as 17443# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 17444# supported then the value defined is zero. 17445# The cast to long int works around a bug in the HP C Compiler 17446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17448# This bug is HP SR number 8606223364. 17449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 17450$as_echo_n "checking size of unsigned long long... " >&6; } 17451if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 17452 $as_echo_n "(cached) " >&6 17453else 17454 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 17455 17456else 17457 if test "$ac_cv_type_unsigned_long_long" = yes; then 17458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17460as_fn_error 77 "cannot compute sizeof (unsigned long long) 17461See \`config.log' for more details" "$LINENO" 5; } 17462 else 17463 ac_cv_sizeof_unsigned_long_long=0 17464 fi 17465fi 17466 17467fi 17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 17469$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 17470 17471 17472 17473cat >>confdefs.h <<_ACEOF 17474#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 17475_ACEOF 17476 17477 17478 17479# Obtain the size of an 'unsigned char *' and define as 17480# SIZEOF_UNSIGNED_CHAR_P. Result is available in 17481# ac_cv_sizeof_unsigned_char_p. 17482# The cast to long int works around a bug in the HP C Compiler 17483# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17484# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17485# This bug is HP SR number 8606223364. 17486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 17487$as_echo_n "checking size of unsigned char *... " >&6; } 17488if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 17489 $as_echo_n "(cached) " >&6 17490else 17491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 17492 17493else 17494 if test "$ac_cv_type_unsigned_char_p" = yes; then 17495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17497as_fn_error 77 "cannot compute sizeof (unsigned char *) 17498See \`config.log' for more details" "$LINENO" 5; } 17499 else 17500 ac_cv_sizeof_unsigned_char_p=0 17501 fi 17502fi 17503 17504fi 17505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 17506$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 17507 17508 17509 17510cat >>confdefs.h <<_ACEOF 17511#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 17512_ACEOF 17513 17514 17515 17516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 17517$as_echo_n "checking for signed 8-bit type... " >&6; } 17518INT8_T='signed char' 17519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 17520$as_echo "$INT8_T" >&6; } 17521 17522cat >>confdefs.h <<_ACEOF 17523#define TIFF_INT8_T $INT8_T 17524_ACEOF 17525 17526 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 17528$as_echo_n "checking for unsigned 8-bit type... " >&6; } 17529UINT8_T='unsigned char' 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 17531$as_echo "$UINT8_T" >&6; } 17532 17533cat >>confdefs.h <<_ACEOF 17534#define TIFF_UINT8_T $UINT8_T 17535_ACEOF 17536 17537 17538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 17539$as_echo_n "checking for signed 16-bit type... " >&6; } 17540INT16_T='signed short' 17541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 17542$as_echo "$INT16_T" >&6; } 17543 17544cat >>confdefs.h <<_ACEOF 17545#define TIFF_INT16_T $INT16_T 17546_ACEOF 17547 17548 17549 17550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 17551$as_echo_n "checking for unsigned 16-bit type... " >&6; } 17552UINT16_T='unsigned short' 17553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 17554$as_echo "$UINT16_T" >&6; } 17555 17556cat >>confdefs.h <<_ACEOF 17557#define TIFF_UINT16_T $UINT16_T 17558_ACEOF 17559 17560 17561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 17562$as_echo_n "checking for signed 32-bit type... " >&6; } 17563INT32_T='none' 17564INT32_FORMAT='none' 17565if test $ac_cv_sizeof_signed_int -eq 4 17566then 17567 INT32_T='signed int' 17568 INT32_FORMAT='"%d"' 17569elif test $ac_cv_sizeof_signed_long -eq 4 17570then 17571 INT32_T='signed long' 17572 INT32_FORMAT='"%ld"' 17573fi 17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 17575$as_echo "$INT32_T" >&6; } 17576 17577cat >>confdefs.h <<_ACEOF 17578#define TIFF_INT32_T $INT32_T 17579_ACEOF 17580 17581 17582cat >>confdefs.h <<_ACEOF 17583#define TIFF_INT32_FORMAT $INT32_FORMAT 17584_ACEOF 17585 17586 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 17588$as_echo_n "checking for unsigned 32-bit type... " >&6; } 17589UINT32_T='none' 17590UINT32_FORMAT='none' 17591if test $ac_cv_sizeof_unsigned_int -eq 4 17592then 17593 UINT32_T='unsigned int' 17594 UINT32_FORMAT='"%u"' 17595elif test $ac_cv_sizeof_unsigned_long -eq 4 17596then 17597 UINT32_T='unsigned long' 17598 UINT32_FORMAT='"%lu"' 17599fi 17600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 17601$as_echo "$UINT32_T" >&6; } 17602 17603cat >>confdefs.h <<_ACEOF 17604#define TIFF_UINT32_T $UINT32_T 17605_ACEOF 17606 17607 17608cat >>confdefs.h <<_ACEOF 17609#define TIFF_UINT32_FORMAT $UINT32_FORMAT 17610_ACEOF 17611 17612 17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 17614$as_echo_n "checking for signed 64-bit type... " >&6; } 17615INT64_T='none' 17616INT64_FORMAT='none' 17617if test $ac_cv_sizeof_signed_long -eq 8 17618then 17619 INT64_T='signed long' 17620 INT64_FORMAT='"%ld"' 17621elif test $ac_cv_sizeof_signed_long_long -eq 8 17622then 17623 INT64_T='signed long long' 17624 case "${host_os}" in 17625 mingw32*) 17626 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17627 INT64_FORMAT='"%I64d"' 17628 ;; 17629 *) 17630 INT64_FORMAT='"%lld"' 17631 ;; 17632 esac 17633fi 17634 17635 17636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 17637$as_echo "$INT64_T" >&6; } 17638 17639cat >>confdefs.h <<_ACEOF 17640#define TIFF_INT64_T $INT64_T 17641_ACEOF 17642 17643 17644cat >>confdefs.h <<_ACEOF 17645#define TIFF_INT64_FORMAT $INT64_FORMAT 17646_ACEOF 17647 17648 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 17650$as_echo_n "checking for unsigned 64-bit type... " >&6; } 17651UINT64_T='none' 17652UINT64_FORMAT='none' 17653if test $ac_cv_sizeof_unsigned_long -eq 8 17654then 17655 UINT64_T='unsigned long' 17656 UINT64_FORMAT='"%lu"' 17657elif test $ac_cv_sizeof_unsigned_long_long -eq 8 17658then 17659 UINT64_T='unsigned long long' 17660 case "${host_os}" in 17661 mingw32*) 17662 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17663 UINT64_FORMAT='"%I64u"' 17664 ;; 17665 *) 17666 UINT64_FORMAT='"%llu"' 17667 ;; 17668 esac 17669fi 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 17671$as_echo "$UINT64_T" >&6; } 17672 17673cat >>confdefs.h <<_ACEOF 17674#define TIFF_UINT64_T $UINT64_T 17675_ACEOF 17676 17677 17678cat >>confdefs.h <<_ACEOF 17679#define TIFF_UINT64_FORMAT $UINT64_FORMAT 17680_ACEOF 17681 17682 17683# Determine TIFF equivalent of ssize_t 17684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 17685$as_echo_n "checking for signed size type... " >&6; } 17686SSIZE_T='unknown' 17687SSIZE_FORMAT='unknown' 17688if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 17689then 17690 SSIZE_T='signed long' 17691 SSIZE_FORMAT='"%ld"' 17692elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17693then 17694 SSIZE_T='signed long long' 17695 SSIZE_FORMAT='"%lld"' 17696fi 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17698$as_echo "$SSIZE_T" >&6; } 17699 17700cat >>confdefs.h <<_ACEOF 17701#define TIFF_SSIZE_T $SSIZE_T 17702_ACEOF 17703 17704 17705cat >>confdefs.h <<_ACEOF 17706#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17707_ACEOF 17708 17709 17710# Determine the type to use for the difference between two pointers. 17711# We will default to the POSIX ptrdiff_t if it is available, but will 17712# be prepared for the case when it is not. 17713PTRDIFF_T='unknown' 17714PTRDIFF_FORMAT='"%ld"' 17715ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17716if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17717 PTRDIFF_T=ptrdiff_t 17718fi 17719 17720if test $PTRDIFF_T = unknown 17721then 17722 PTRDIFF_T=$SSIZE_T 17723 PTRDIFF_FORMAT=$SSIZE_FORMAT 17724fi 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17726$as_echo_n "checking for pointer difference type... " >&6; } 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17728$as_echo "$PTRDIFF_T" >&6; } 17729 17730cat >>confdefs.h <<_ACEOF 17731#define TIFF_PTRDIFF_T $PTRDIFF_T 17732_ACEOF 17733 17734 17735cat >>confdefs.h <<_ACEOF 17736#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17737_ACEOF 17738 17739 17740ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17741#if HAVE_INTTYPES_H 17742# include <inttypes.h> 17743#endif 17744 17745" 17746if test "x$ac_cv_type_int8" = xyes; then : 17747 17748cat >>confdefs.h <<_ACEOF 17749#define HAVE_INT8 1 17750_ACEOF 17751 17752 17753fi 17754ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17755#if HAVE_INTTYPES_H 17756# include <inttypes.h> 17757#endif 17758 17759" 17760if test "x$ac_cv_type_int16" = xyes; then : 17761 17762cat >>confdefs.h <<_ACEOF 17763#define HAVE_INT16 1 17764_ACEOF 17765 17766 17767fi 17768ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17769#if HAVE_INTTYPES_H 17770# include <inttypes.h> 17771#endif 17772 17773" 17774if test "x$ac_cv_type_int32" = xyes; then : 17775 17776cat >>confdefs.h <<_ACEOF 17777#define HAVE_INT32 1 17778_ACEOF 17779 17780 17781fi 17782 17783 17784for ac_func in floor isascii memmove memset mmap pow setmode sqrt\ 17785 strchr strrchr strstr strtol strtoull 17786do : 17787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17788ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17789if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17790 cat >>confdefs.h <<_ACEOF 17791#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17792_ACEOF 17793 17794fi 17795done 17796 17797 17798ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17799if test "x$ac_cv_func_getopt" = xyes; then : 17800 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17801 17802else 17803 case " $LIBOBJS " in 17804 *" getopt.$ac_objext "* ) ;; 17805 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17806 ;; 17807esac 17808 17809fi 17810 17811 17812ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17813if test "x$ac_cv_func_strcasecmp" = xyes; then : 17814 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17815 17816else 17817 case " $LIBOBJS " in 17818 *" strcasecmp.$ac_objext "* ) ;; 17819 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17820 ;; 17821esac 17822 17823fi 17824 17825 17826ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17827if test "x$ac_cv_func_strtoul" = xyes; then : 17828 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17829 17830else 17831 case " $LIBOBJS " in 17832 *" strtoul.$ac_objext "* ) ;; 17833 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17834 ;; 17835esac 17836 17837fi 17838 17839 17840ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17841if test "x$ac_cv_func_strtoull" = xyes; then : 17842 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17843 17844else 17845 case " $LIBOBJS " in 17846 *" strtoull.$ac_objext "* ) ;; 17847 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17848 ;; 17849esac 17850 17851fi 17852 17853 17854ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17855if test "x$ac_cv_func_lfind" = xyes; then : 17856 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17857 17858else 17859 case " $LIBOBJS " in 17860 *" lfind.$ac_objext "* ) ;; 17861 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17862 ;; 17863esac 17864 17865fi 17866 17867 17868 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17870$as_echo_n "checking native cpu bit order... " >&6; } 17871case "$host_cpu" in 17872 i*86*|x86_64*) 17873 HOST_FILLORDER=FILLORDER_LSB2MSB 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17875$as_echo "lsb2msb" >&6; } 17876 ;; 17877 *) 17878 HOST_FILLORDER=FILLORDER_MSB2LSB 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17880$as_echo "msb2lsb" >&6; } 17881 ;; 17882esac 17883 17884cat >>confdefs.h <<_ACEOF 17885#define HOST_FILLORDER $HOST_FILLORDER 17886_ACEOF 17887 17888 17889if test "$ac_cv_c_bigendian" = yes ; then 17890 HOST_BIGENDIAN=1 17891else 17892 HOST_BIGENDIAN=0 17893fi 17894 17895cat >>confdefs.h <<_ACEOF 17896#define HOST_BIGENDIAN $HOST_BIGENDIAN 17897_ACEOF 17898 17899 17900#_POSIX_C_SOURCE=2 17901#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17902 17903HAVE_IEEEFP=1 17904 17905cat >>confdefs.h <<_ACEOF 17906#define HAVE_IEEEFP $HAVE_IEEEFP 17907_ACEOF 17908 17909 17910 17911# Check whether --enable-rpath was given. 17912if test "${enable_rpath+set}" = set; then : 17913 enableval=$enable_rpath; HAVE_RPATH=$enableval 17914else 17915 HAVE_RPATH=no 17916fi 17917 17918 if test "$HAVE_RPATH" = "yes"; then 17919 HAVE_RPATH_TRUE= 17920 HAVE_RPATH_FALSE='#' 17921else 17922 HAVE_RPATH_TRUE='#' 17923 HAVE_RPATH_FALSE= 17924fi 17925 17926 17927 17928# Check whether --enable-largefile was given. 17929if test "${enable_largefile+set}" = set; then : 17930 enableval=$enable_largefile; 17931fi 17932 17933if test "$enable_largefile" != no; then 17934 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17936$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17937if ${ac_cv_sys_largefile_CC+:} false; then : 17938 $as_echo_n "(cached) " >&6 17939else 17940 ac_cv_sys_largefile_CC=no 17941 if test "$GCC" != yes; then 17942 ac_save_CC=$CC 17943 while :; do 17944 # IRIX 6.2 and later do not support large files by default, 17945 # so use the C compiler's -n32 option if that helps. 17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17947/* end confdefs.h. */ 17948#include <sys/types.h> 17949 /* Check that off_t can represent 2**63 - 1 correctly. 17950 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17951 since some C++ compilers masquerading as C compilers 17952 incorrectly reject 9223372036854775807. */ 17953#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17955 && LARGE_OFF_T % 2147483647 == 1) 17956 ? 1 : -1]; 17957int 17958main () 17959{ 17960 17961 ; 17962 return 0; 17963} 17964_ACEOF 17965 if ac_fn_c_try_compile "$LINENO"; then : 17966 break 17967fi 17968rm -f core conftest.err conftest.$ac_objext 17969 CC="$CC -n32" 17970 if ac_fn_c_try_compile "$LINENO"; then : 17971 ac_cv_sys_largefile_CC=' -n32'; break 17972fi 17973rm -f core conftest.err conftest.$ac_objext 17974 break 17975 done 17976 CC=$ac_save_CC 17977 rm -f conftest.$ac_ext 17978 fi 17979fi 17980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17981$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17982 if test "$ac_cv_sys_largefile_CC" != no; then 17983 CC=$CC$ac_cv_sys_largefile_CC 17984 fi 17985 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17987$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17988if ${ac_cv_sys_file_offset_bits+:} false; then : 17989 $as_echo_n "(cached) " >&6 17990else 17991 while :; do 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993/* end confdefs.h. */ 17994#include <sys/types.h> 17995 /* Check that off_t can represent 2**63 - 1 correctly. 17996 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17997 since some C++ compilers masquerading as C compilers 17998 incorrectly reject 9223372036854775807. */ 17999#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18001 && LARGE_OFF_T % 2147483647 == 1) 18002 ? 1 : -1]; 18003int 18004main () 18005{ 18006 18007 ; 18008 return 0; 18009} 18010_ACEOF 18011if ac_fn_c_try_compile "$LINENO"; then : 18012 ac_cv_sys_file_offset_bits=no; break 18013fi 18014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18016/* end confdefs.h. */ 18017#define _FILE_OFFSET_BITS 64 18018#include <sys/types.h> 18019 /* Check that off_t can represent 2**63 - 1 correctly. 18020 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18021 since some C++ compilers masquerading as C compilers 18022 incorrectly reject 9223372036854775807. */ 18023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18025 && LARGE_OFF_T % 2147483647 == 1) 18026 ? 1 : -1]; 18027int 18028main () 18029{ 18030 18031 ; 18032 return 0; 18033} 18034_ACEOF 18035if ac_fn_c_try_compile "$LINENO"; then : 18036 ac_cv_sys_file_offset_bits=64; break 18037fi 18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18039 ac_cv_sys_file_offset_bits=unknown 18040 break 18041done 18042fi 18043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18044$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18045case $ac_cv_sys_file_offset_bits in #( 18046 no | unknown) ;; 18047 *) 18048cat >>confdefs.h <<_ACEOF 18049#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18050_ACEOF 18051;; 18052esac 18053rm -rf conftest* 18054 if test $ac_cv_sys_file_offset_bits = unknown; then 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18056$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18057if ${ac_cv_sys_large_files+:} false; then : 18058 $as_echo_n "(cached) " >&6 18059else 18060 while :; do 18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18062/* end confdefs.h. */ 18063#include <sys/types.h> 18064 /* Check that off_t can represent 2**63 - 1 correctly. 18065 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18066 since some C++ compilers masquerading as C compilers 18067 incorrectly reject 9223372036854775807. */ 18068#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18070 && LARGE_OFF_T % 2147483647 == 1) 18071 ? 1 : -1]; 18072int 18073main () 18074{ 18075 18076 ; 18077 return 0; 18078} 18079_ACEOF 18080if ac_fn_c_try_compile "$LINENO"; then : 18081 ac_cv_sys_large_files=no; break 18082fi 18083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18085/* end confdefs.h. */ 18086#define _LARGE_FILES 1 18087#include <sys/types.h> 18088 /* Check that off_t can represent 2**63 - 1 correctly. 18089 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18090 since some C++ compilers masquerading as C compilers 18091 incorrectly reject 9223372036854775807. */ 18092#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18094 && LARGE_OFF_T % 2147483647 == 1) 18095 ? 1 : -1]; 18096int 18097main () 18098{ 18099 18100 ; 18101 return 0; 18102} 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO"; then : 18105 ac_cv_sys_large_files=1; break 18106fi 18107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18108 ac_cv_sys_large_files=unknown 18109 break 18110done 18111fi 18112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18113$as_echo "$ac_cv_sys_large_files" >&6; } 18114case $ac_cv_sys_large_files in #( 18115 no | unknown) ;; 18116 *) 18117cat >>confdefs.h <<_ACEOF 18118#define _LARGE_FILES $ac_cv_sys_large_files 18119_ACEOF 18120;; 18121esac 18122rm -rf conftest* 18123 fi 18124 18125 18126fi 18127 18128 18129 18130LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 18131 18132 18133# Check whether --with-docdir was given. 18134if test "${with_docdir+set}" = set; then : 18135 withval=$with_docdir; 18136fi 18137 18138if test "x$with_docdir" != "x" ; then 18139 LIBTIFF_DOCDIR=$with_docdir 18140fi 18141 18142 18143 18144 18145# Check whether --enable-ccitt was given. 18146if test "${enable_ccitt+set}" = set; then : 18147 enableval=$enable_ccitt; HAVE_CCITT=$enableval 18148else 18149 HAVE_CCITT=yes 18150fi 18151 18152 18153if test "$HAVE_CCITT" = "yes" ; then 18154 18155$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 18156 18157fi 18158 18159# Check whether --enable-packbits was given. 18160if test "${enable_packbits+set}" = set; then : 18161 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 18162else 18163 HAVE_PACKBITS=yes 18164fi 18165 18166 18167if test "$HAVE_PACKBITS" = "yes" ; then 18168 18169$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 18170 18171fi 18172 18173# Check whether --enable-lzw was given. 18174if test "${enable_lzw+set}" = set; then : 18175 enableval=$enable_lzw; HAVE_LZW=$enableval 18176else 18177 HAVE_LZW=yes 18178fi 18179 18180 18181if test "$HAVE_LZW" = "yes" ; then 18182 18183$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 18184 18185fi 18186 18187# Check whether --enable-thunder was given. 18188if test "${enable_thunder+set}" = set; then : 18189 enableval=$enable_thunder; HAVE_THUNDER=$enableval 18190else 18191 HAVE_THUNDER=yes 18192fi 18193 18194 18195if test "$HAVE_THUNDER" = "yes" ; then 18196 18197$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 18198 18199fi 18200 18201HAVE_NEXT=yes 18202 18203# Check whether --enable-next was given. 18204if test "${enable_next+set}" = set; then : 18205 enableval=$enable_next; HAVE_NEXT=$enableval 18206else 18207 HAVE_NEXT=yes 18208fi 18209 18210 18211if test "$HAVE_NEXT" = "yes" ; then 18212 18213$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 18214 18215fi 18216 18217# Check whether --enable-logluv was given. 18218if test "${enable_logluv+set}" = set; then : 18219 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 18220else 18221 HAVE_LOGLUV=yes 18222fi 18223 18224 18225if test "$HAVE_LOGLUV" = "yes" ; then 18226 18227$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 18228 18229fi 18230 18231 18232# Check whether --enable-mdi was given. 18233if test "${enable_mdi+set}" = set; then : 18234 enableval=$enable_mdi; HAVE_MDI=$enableval 18235else 18236 HAVE_MDI=yes 18237fi 18238 18239 18240if test "$HAVE_MDI" = "yes" ; then 18241 18242$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 18243 18244fi 18245 18246 18247HAVE_ZLIB=no 18248 18249# Check whether --enable-zlib was given. 18250if test "${enable_zlib+set}" = set; then : 18251 enableval=$enable_zlib; 18252fi 18253 18254 18255# Check whether --with-zlib-include-dir was given. 18256if test "${with_zlib_include_dir+set}" = set; then : 18257 withval=$with_zlib_include_dir; 18258fi 18259 18260 18261# Check whether --with-zlib-lib-dir was given. 18262if test "${with_zlib_lib_dir+set}" = set; then : 18263 withval=$with_zlib_lib_dir; 18264fi 18265 18266 18267if test "x$enable_zlib" != "xno" ; then 18268 18269 if test "x$with_zlib_lib_dir" != "x" ; then 18270 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 18271 fi 18272 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18274$as_echo_n "checking for inflateEnd in -lz... " >&6; } 18275if ${ac_cv_lib_z_inflateEnd+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 ac_check_lib_save_LIBS=$LIBS 18279LIBS="-lz $LIBS" 18280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18281/* end confdefs.h. */ 18282 18283/* Override any GCC internal prototype to avoid an error. 18284 Use char because int might match the return type of a GCC 18285 builtin and then its argument prototype would still apply. */ 18286#ifdef __cplusplus 18287extern "C" 18288#endif 18289char inflateEnd (); 18290int 18291main () 18292{ 18293return inflateEnd (); 18294 ; 18295 return 0; 18296} 18297_ACEOF 18298if ac_fn_c_try_link "$LINENO"; then : 18299 ac_cv_lib_z_inflateEnd=yes 18300else 18301 ac_cv_lib_z_inflateEnd=no 18302fi 18303rm -f core conftest.err conftest.$ac_objext \ 18304 conftest$ac_exeext conftest.$ac_ext 18305LIBS=$ac_check_lib_save_LIBS 18306fi 18307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18308$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18309if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18310 zlib_lib=yes 18311else 18312 zlib_lib=no 18313fi 18314 18315 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 18316 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 18317 fi 18318 18319 if test "x$with_zlib_include_dir" != "x" ; then 18320 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 18321 fi 18322 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18323if test "x$ac_cv_header_zlib_h" = xyes; then : 18324 zlib_h=yes 18325else 18326 zlib_h=no 18327fi 18328 18329 18330 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 18331 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 18332 fi 18333 18334 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 18335 HAVE_ZLIB=yes 18336 fi 18337 18338fi 18339 18340if test "$HAVE_ZLIB" = "yes" ; then 18341 18342$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 18343 18344 LIBS="-lz $LIBS" 18345 tiff_libs_private="-lz ${tiff_libs_private}" 18346 18347 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 18348 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 18349 fi 18350 18351fi 18352 18353 18354# Check whether --enable-pixarlog was given. 18355if test "${enable_pixarlog+set}" = set; then : 18356 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 18357else 18358 HAVE_PIXARLOG=yes 18359fi 18360 18361 18362if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 18363 18364$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 18365 18366else 18367 HAVE_PIXARLOG=no 18368fi 18369 18370 18371HAVE_JPEG=no 18372 18373# Check whether --enable-jpeg was given. 18374if test "${enable_jpeg+set}" = set; then : 18375 enableval=$enable_jpeg; 18376fi 18377 18378 18379# Check whether --with-jpeg-include-dir was given. 18380if test "${with_jpeg_include_dir+set}" = set; then : 18381 withval=$with_jpeg_include_dir; 18382fi 18383 18384 18385# Check whether --with-jpeg-lib-dir was given. 18386if test "${with_jpeg_lib_dir+set}" = set; then : 18387 withval=$with_jpeg_lib_dir; 18388fi 18389 18390 18391if test "x$enable_jpeg" != "xno" ; then 18392 18393 if test "x$with_jpeg_lib_dir" != "x" ; then 18394 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 18395 18396 fi 18397 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 18399$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 18400if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 18401 $as_echo_n "(cached) " >&6 18402else 18403 ac_check_lib_save_LIBS=$LIBS 18404LIBS="-ljpeg $LIBS" 18405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18406/* end confdefs.h. */ 18407 18408/* Override any GCC internal prototype to avoid an error. 18409 Use char because int might match the return type of a GCC 18410 builtin and then its argument prototype would still apply. */ 18411#ifdef __cplusplus 18412extern "C" 18413#endif 18414char jpeg_read_scanlines (); 18415int 18416main () 18417{ 18418return jpeg_read_scanlines (); 18419 ; 18420 return 0; 18421} 18422_ACEOF 18423if ac_fn_c_try_link "$LINENO"; then : 18424 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18425else 18426 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18427fi 18428rm -f core conftest.err conftest.$ac_objext \ 18429 conftest$ac_exeext conftest.$ac_ext 18430LIBS=$ac_check_lib_save_LIBS 18431fi 18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18433$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18434if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18435 jpeg_lib=yes 18436else 18437 jpeg_lib=no 18438fi 18439 18440 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18441 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18442 fi 18443 18444 if test "x$with_jpeg_include_dir" != "x" ; then 18445 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18446 fi 18447 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18448if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18449 jpeg_h=yes 18450else 18451 jpeg_h=no 18452fi 18453 18454 18455 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18456 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18457 fi 18458 18459 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18460 HAVE_JPEG=yes 18461 fi 18462 18463fi 18464 18465if test "$HAVE_JPEG" = "yes" ; then 18466 18467$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18468 18469 LIBS="-ljpeg $LIBS" 18470 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18471 18472 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18473 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18474 fi 18475 18476fi 18477 18478 18479# Check whether --enable-old-jpeg was given. 18480if test "${enable_old_jpeg+set}" = set; then : 18481 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18482else 18483 HAVE_OJPEG=yes 18484fi 18485 18486 18487if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18488 18489$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18490 18491else 18492 HAVE_OJPEG=no 18493fi 18494 18495 18496HAVE_JBIG=no 18497 18498# Check whether --enable-jbig was given. 18499if test "${enable_jbig+set}" = set; then : 18500 enableval=$enable_jbig; 18501fi 18502 18503 18504# Check whether --with-jbig-include-dir was given. 18505if test "${with_jbig_include_dir+set}" = set; then : 18506 withval=$with_jbig_include_dir; 18507fi 18508 18509 18510# Check whether --with-jbig-lib-dir was given. 18511if test "${with_jbig_lib_dir+set}" = set; then : 18512 withval=$with_jbig_lib_dir; 18513fi 18514 18515 18516if test "x$enable_jbig" != "xno" ; then 18517 18518 if test "x$with_jbig_lib_dir" != "x" ; then 18519 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18520 18521 fi 18522 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18524$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18525if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18526 $as_echo_n "(cached) " >&6 18527else 18528 ac_check_lib_save_LIBS=$LIBS 18529LIBS="-ljbig $LIBS" 18530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18531/* end confdefs.h. */ 18532 18533/* Override any GCC internal prototype to avoid an error. 18534 Use char because int might match the return type of a GCC 18535 builtin and then its argument prototype would still apply. */ 18536#ifdef __cplusplus 18537extern "C" 18538#endif 18539char jbg_dec_init (); 18540int 18541main () 18542{ 18543return jbg_dec_init (); 18544 ; 18545 return 0; 18546} 18547_ACEOF 18548if ac_fn_c_try_link "$LINENO"; then : 18549 ac_cv_lib_jbig_jbg_dec_init=yes 18550else 18551 ac_cv_lib_jbig_jbg_dec_init=no 18552fi 18553rm -f core conftest.err conftest.$ac_objext \ 18554 conftest$ac_exeext conftest.$ac_ext 18555LIBS=$ac_check_lib_save_LIBS 18556fi 18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18558$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18559if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18560 jbig_lib=yes 18561else 18562 jbig_lib=no 18563fi 18564 18565 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18566 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18567 fi 18568 18569 if test "x$with_jbig_include_dir" != "x" ; then 18570 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18571 fi 18572 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18573if test "x$ac_cv_header_jbig_h" = xyes; then : 18574 jbig_h=yes 18575else 18576 jbig_h=no 18577fi 18578 18579 18580 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18581 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18582 fi 18583 18584 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18585 HAVE_JBIG=yes 18586 fi 18587 18588fi 18589 18590if test "$HAVE_JBIG" = "yes" ; then 18591 18592$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 18593 18594 LIBS="-ljbig $LIBS" 18595 tiff_libs_private="-ljbig ${tiff_libs_private}" 18596 18597 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 18598 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 18599 fi 18600 18601 # Older versions of jbigkit lack jbg_newlen 18602 for ac_func in jbg_newlen 18603do : 18604 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 18605if test "x$ac_cv_func_jbg_newlen" = xyes; then : 18606 cat >>confdefs.h <<_ACEOF 18607#define HAVE_JBG_NEWLEN 1 18608_ACEOF 18609 18610fi 18611done 18612 18613 18614fi 18615 18616 18617HAVE_LZMA=no 18618 18619# Check whether --enable-lzma was given. 18620if test "${enable_lzma+set}" = set; then : 18621 enableval=$enable_lzma; 18622fi 18623 18624 18625# Check whether --with-lzma-include-dir was given. 18626if test "${with_lzma_include_dir+set}" = set; then : 18627 withval=$with_lzma_include_dir; 18628fi 18629 18630 18631# Check whether --with-lzma-lib-dir was given. 18632if test "${with_lzma_lib_dir+set}" = set; then : 18633 withval=$with_lzma_lib_dir; 18634fi 18635 18636 18637if test "x$enable_lzma" != "xno" ; then 18638 18639 if test "x$with_lzma_lib_dir" != "x" ; then 18640 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 18641 fi 18642 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 18644$as_echo_n "checking for lzma_code in -llzma... " >&6; } 18645if ${ac_cv_lib_lzma_lzma_code+:} false; then : 18646 $as_echo_n "(cached) " >&6 18647else 18648 ac_check_lib_save_LIBS=$LIBS 18649LIBS="-llzma $LIBS" 18650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18651/* end confdefs.h. */ 18652 18653/* Override any GCC internal prototype to avoid an error. 18654 Use char because int might match the return type of a GCC 18655 builtin and then its argument prototype would still apply. */ 18656#ifdef __cplusplus 18657extern "C" 18658#endif 18659char lzma_code (); 18660int 18661main () 18662{ 18663return lzma_code (); 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668if ac_fn_c_try_link "$LINENO"; then : 18669 ac_cv_lib_lzma_lzma_code=yes 18670else 18671 ac_cv_lib_lzma_lzma_code=no 18672fi 18673rm -f core conftest.err conftest.$ac_objext \ 18674 conftest$ac_exeext conftest.$ac_ext 18675LIBS=$ac_check_lib_save_LIBS 18676fi 18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 18678$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 18679if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 18680 lzma_lib=yes 18681else 18682 lzma_lib=no 18683fi 18684 18685 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 18686 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 18687 fi 18688 18689 if test "x$with_lzma_include_dir" != "x" ; then 18690 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 18691 fi 18692 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18693if test "x$ac_cv_header_lzma_h" = xyes; then : 18694 lzma_h=yes 18695else 18696 lzma_h=no 18697fi 18698 18699 18700 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18701 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18702 fi 18703 18704 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18705 HAVE_LZMA=yes 18706 fi 18707 18708fi 18709 18710if test "$HAVE_LZMA" = "yes" ; then 18711 18712$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18713 18714 LIBS="-llzma $LIBS" 18715 tiff_libs_private="-llzma ${tiff_libs_private}" 18716 18717 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18718 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18719 fi 18720 18721fi 18722 18723 18724HAVE_JPEG12=no 18725 18726# Check whether --enable-jpeg12 was given. 18727if test "${enable_jpeg12+set}" = set; then : 18728 enableval=$enable_jpeg12; 18729fi 18730 18731 18732# Check whether --with-jpeg12-include-dir was given. 18733if test "${with_jpeg12_include_dir+set}" = set; then : 18734 withval=$with_jpeg12_include_dir; 18735fi 18736 18737 18738# Check whether --with-jpeg12-lib was given. 18739if test "${with_jpeg12_lib+set}" = set; then : 18740 withval=$with_jpeg12_lib; 18741fi 18742 18743 18744if test "x$enable_jpeg12" = "xyes" ; then 18745 18746 if test "x$with_jpeg12_lib" != "x" ; then 18747 LIBS="$with_jpeg12_lib $LIBS" 18748 fi 18749 18750 HAVE_JPEG12=yes 18751 18752 18753$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18754 18755 if test "x$with_jpeg12_include_dir" != "x" ; then 18756 18757cat >>confdefs.h <<_ACEOF 18758#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18759_ACEOF 18760 18761 fi 18762fi 18763 18764 18765 18766# Check whether --enable-cxx was given. 18767if test "${enable_cxx+set}" = set; then : 18768 enableval=$enable_cxx; HAVE_CXX=$enableval 18769else 18770 HAVE_CXX=yes 18771fi 18772 18773 18774if test "$HAVE_CXX" = "yes" ; then 18775 18776$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18777 18778else 18779 HAVE_CXX=no 18780fi 18781 18782 if test "$HAVE_CXX" = "yes"; then 18783 HAVE_CXX_TRUE= 18784 HAVE_CXX_FALSE='#' 18785else 18786 HAVE_CXX_TRUE='#' 18787 HAVE_CXX_FALSE= 18788fi 18789 18790 18791 18792HAVE_OPENGL=no 18793 18794 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18796$as_echo_n "checking for X... " >&6; } 18797 18798 18799# Check whether --with-x was given. 18800if test "${with_x+set}" = set; then : 18801 withval=$with_x; 18802fi 18803 18804# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18805if test "x$with_x" = xno; then 18806 # The user explicitly disabled X. 18807 have_x=disabled 18808else 18809 case $x_includes,$x_libraries in #( 18810 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18811 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18812 $as_echo_n "(cached) " >&6 18813else 18814 # One or both of the vars are not set, and there is no cached value. 18815ac_x_includes=no ac_x_libraries=no 18816rm -f -r conftest.dir 18817if mkdir conftest.dir; then 18818 cd conftest.dir 18819 cat >Imakefile <<'_ACEOF' 18820incroot: 18821 @echo incroot='${INCROOT}' 18822usrlibdir: 18823 @echo usrlibdir='${USRLIBDIR}' 18824libdir: 18825 @echo libdir='${LIBDIR}' 18826_ACEOF 18827 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18829 for ac_var in incroot usrlibdir libdir; do 18830 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18831 done 18832 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18833 for ac_extension in a so sl dylib la dll; do 18834 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18835 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18836 ac_im_usrlibdir=$ac_im_libdir; break 18837 fi 18838 done 18839 # Screen out bogus values from the imake configuration. They are 18840 # bogus both because they are the default anyway, and because 18841 # using them would break gcc on systems where it needs fixed includes. 18842 case $ac_im_incroot in 18843 /usr/include) ac_x_includes= ;; 18844 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18845 esac 18846 case $ac_im_usrlibdir in 18847 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18848 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18849 esac 18850 fi 18851 cd .. 18852 rm -f -r conftest.dir 18853fi 18854 18855# Standard set of common directories for X headers. 18856# Check X11 before X11Rn because it is often a symlink to the current release. 18857ac_x_header_dirs=' 18858/usr/X11/include 18859/usr/X11R7/include 18860/usr/X11R6/include 18861/usr/X11R5/include 18862/usr/X11R4/include 18863 18864/usr/include/X11 18865/usr/include/X11R7 18866/usr/include/X11R6 18867/usr/include/X11R5 18868/usr/include/X11R4 18869 18870/usr/local/X11/include 18871/usr/local/X11R7/include 18872/usr/local/X11R6/include 18873/usr/local/X11R5/include 18874/usr/local/X11R4/include 18875 18876/usr/local/include/X11 18877/usr/local/include/X11R7 18878/usr/local/include/X11R6 18879/usr/local/include/X11R5 18880/usr/local/include/X11R4 18881 18882/usr/X386/include 18883/usr/x386/include 18884/usr/XFree86/include/X11 18885 18886/usr/include 18887/usr/local/include 18888/usr/unsupported/include 18889/usr/athena/include 18890/usr/local/x11r5/include 18891/usr/lpp/Xamples/include 18892 18893/usr/openwin/include 18894/usr/openwin/share/include' 18895 18896if test "$ac_x_includes" = no; then 18897 # Guess where to find include files, by looking for Xlib.h. 18898 # First, try using that file with no special directory specified. 18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18900/* end confdefs.h. */ 18901#include <X11/Xlib.h> 18902_ACEOF 18903if ac_fn_c_try_cpp "$LINENO"; then : 18904 # We can compile using X headers with no special include directory. 18905ac_x_includes= 18906else 18907 for ac_dir in $ac_x_header_dirs; do 18908 if test -r "$ac_dir/X11/Xlib.h"; then 18909 ac_x_includes=$ac_dir 18910 break 18911 fi 18912done 18913fi 18914rm -f conftest.err conftest.i conftest.$ac_ext 18915fi # $ac_x_includes = no 18916 18917if test "$ac_x_libraries" = no; then 18918 # Check for the libraries. 18919 # See if we find them without any special options. 18920 # Don't add to $LIBS permanently. 18921 ac_save_LIBS=$LIBS 18922 LIBS="-lX11 $LIBS" 18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18924/* end confdefs.h. */ 18925#include <X11/Xlib.h> 18926int 18927main () 18928{ 18929XrmInitialize () 18930 ; 18931 return 0; 18932} 18933_ACEOF 18934if ac_fn_c_try_link "$LINENO"; then : 18935 LIBS=$ac_save_LIBS 18936# We can link X programs with no special library path. 18937ac_x_libraries= 18938else 18939 LIBS=$ac_save_LIBS 18940for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18941do 18942 # Don't even attempt the hair of trying to link an X program! 18943 for ac_extension in a so sl dylib la dll; do 18944 if test -r "$ac_dir/libX11.$ac_extension"; then 18945 ac_x_libraries=$ac_dir 18946 break 2 18947 fi 18948 done 18949done 18950fi 18951rm -f core conftest.err conftest.$ac_objext \ 18952 conftest$ac_exeext conftest.$ac_ext 18953fi # $ac_x_libraries = no 18954 18955case $ac_x_includes,$ac_x_libraries in #( 18956 no,* | *,no | *\'*) 18957 # Didn't find X, or a directory has "'" in its name. 18958 ac_cv_have_x="have_x=no";; #( 18959 *) 18960 # Record where we found X for the cache. 18961 ac_cv_have_x="have_x=yes\ 18962 ac_x_includes='$ac_x_includes'\ 18963 ac_x_libraries='$ac_x_libraries'" 18964esac 18965fi 18966;; #( 18967 *) have_x=yes;; 18968 esac 18969 eval "$ac_cv_have_x" 18970fi # $with_x != no 18971 18972if test "$have_x" != yes; then 18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18974$as_echo "$have_x" >&6; } 18975 no_x=yes 18976else 18977 # If each of the values was on the command line, it overrides each guess. 18978 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18979 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18980 # Update the cache value to reflect the command line values. 18981 ac_cv_have_x="have_x=yes\ 18982 ac_x_includes='$x_includes'\ 18983 ac_x_libraries='$x_libraries'" 18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18985$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18986fi 18987 18988if test "$no_x" = yes; then 18989 # Not all programs may use this symbol, but it does not hurt to define it. 18990 18991$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18992 18993 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18994else 18995 if test -n "$x_includes"; then 18996 X_CFLAGS="$X_CFLAGS -I$x_includes" 18997 fi 18998 18999 # It would also be nice to do this for all -L options, not just this one. 19000 if test -n "$x_libraries"; then 19001 X_LIBS="$X_LIBS -L$x_libraries" 19002 # For Solaris; some versions of Sun CC require a space after -R and 19003 # others require no space. Words are not sufficient . . . . 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19005$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19006 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19007 ac_xsave_c_werror_flag=$ac_c_werror_flag 19008 ac_c_werror_flag=yes 19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19010/* end confdefs.h. */ 19011 19012int 19013main () 19014{ 19015 19016 ; 19017 return 0; 19018} 19019_ACEOF 19020if ac_fn_c_try_link "$LINENO"; then : 19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19022$as_echo "no" >&6; } 19023 X_LIBS="$X_LIBS -R$x_libraries" 19024else 19025 LIBS="$ac_xsave_LIBS -R $x_libraries" 19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027/* end confdefs.h. */ 19028 19029int 19030main () 19031{ 19032 19033 ; 19034 return 0; 19035} 19036_ACEOF 19037if ac_fn_c_try_link "$LINENO"; then : 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19039$as_echo "yes" >&6; } 19040 X_LIBS="$X_LIBS -R $x_libraries" 19041else 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19043$as_echo "neither works" >&6; } 19044fi 19045rm -f core conftest.err conftest.$ac_objext \ 19046 conftest$ac_exeext conftest.$ac_ext 19047fi 19048rm -f core conftest.err conftest.$ac_objext \ 19049 conftest$ac_exeext conftest.$ac_ext 19050 ac_c_werror_flag=$ac_xsave_c_werror_flag 19051 LIBS=$ac_xsave_LIBS 19052 fi 19053 19054 # Check for system-dependent libraries X programs must link with. 19055 # Do this before checking for the system-independent R6 libraries 19056 # (-lICE), since we may need -lsocket or whatever for X linking. 19057 19058 if test "$ISC" = yes; then 19059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19060 else 19061 # Martyn Johnson says this is needed for Ultrix, if the X 19062 # libraries were built with DECnet support. And Karl Berry says 19063 # the Alpha needs dnet_stub (dnet does not exist). 19064 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19066/* end confdefs.h. */ 19067 19068/* Override any GCC internal prototype to avoid an error. 19069 Use char because int might match the return type of a GCC 19070 builtin and then its argument prototype would still apply. */ 19071#ifdef __cplusplus 19072extern "C" 19073#endif 19074char XOpenDisplay (); 19075int 19076main () 19077{ 19078return XOpenDisplay (); 19079 ; 19080 return 0; 19081} 19082_ACEOF 19083if ac_fn_c_try_link "$LINENO"; then : 19084 19085else 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19087$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19088if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19089 $as_echo_n "(cached) " >&6 19090else 19091 ac_check_lib_save_LIBS=$LIBS 19092LIBS="-ldnet $LIBS" 19093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19094/* end confdefs.h. */ 19095 19096/* Override any GCC internal prototype to avoid an error. 19097 Use char because int might match the return type of a GCC 19098 builtin and then its argument prototype would still apply. */ 19099#ifdef __cplusplus 19100extern "C" 19101#endif 19102char dnet_ntoa (); 19103int 19104main () 19105{ 19106return dnet_ntoa (); 19107 ; 19108 return 0; 19109} 19110_ACEOF 19111if ac_fn_c_try_link "$LINENO"; then : 19112 ac_cv_lib_dnet_dnet_ntoa=yes 19113else 19114 ac_cv_lib_dnet_dnet_ntoa=no 19115fi 19116rm -f core conftest.err conftest.$ac_objext \ 19117 conftest$ac_exeext conftest.$ac_ext 19118LIBS=$ac_check_lib_save_LIBS 19119fi 19120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19121$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19122if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19123 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19124fi 19125 19126 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19128$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19129if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19130 $as_echo_n "(cached) " >&6 19131else 19132 ac_check_lib_save_LIBS=$LIBS 19133LIBS="-ldnet_stub $LIBS" 19134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19135/* end confdefs.h. */ 19136 19137/* Override any GCC internal prototype to avoid an error. 19138 Use char because int might match the return type of a GCC 19139 builtin and then its argument prototype would still apply. */ 19140#ifdef __cplusplus 19141extern "C" 19142#endif 19143char dnet_ntoa (); 19144int 19145main () 19146{ 19147return dnet_ntoa (); 19148 ; 19149 return 0; 19150} 19151_ACEOF 19152if ac_fn_c_try_link "$LINENO"; then : 19153 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19154else 19155 ac_cv_lib_dnet_stub_dnet_ntoa=no 19156fi 19157rm -f core conftest.err conftest.$ac_objext \ 19158 conftest$ac_exeext conftest.$ac_ext 19159LIBS=$ac_check_lib_save_LIBS 19160fi 19161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19162$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19163if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19165fi 19166 19167 fi 19168fi 19169rm -f core conftest.err conftest.$ac_objext \ 19170 conftest$ac_exeext conftest.$ac_ext 19171 LIBS="$ac_xsave_LIBS" 19172 19173 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 19174 # to get the SysV transport functions. 19175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19176 # needs -lnsl. 19177 # The nsl library prevents programs from opening the X display 19178 # on Irix 5.2, according to T.E. Dickey. 19179 # The functions gethostbyname, getservbyname, and inet_addr are 19180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19181 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19182if test "x$ac_cv_func_gethostbyname" = xyes; then : 19183 19184fi 19185 19186 if test $ac_cv_func_gethostbyname = no; then 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19188$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19189if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19190 $as_echo_n "(cached) " >&6 19191else 19192 ac_check_lib_save_LIBS=$LIBS 19193LIBS="-lnsl $LIBS" 19194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19195/* end confdefs.h. */ 19196 19197/* Override any GCC internal prototype to avoid an error. 19198 Use char because int might match the return type of a GCC 19199 builtin and then its argument prototype would still apply. */ 19200#ifdef __cplusplus 19201extern "C" 19202#endif 19203char gethostbyname (); 19204int 19205main () 19206{ 19207return gethostbyname (); 19208 ; 19209 return 0; 19210} 19211_ACEOF 19212if ac_fn_c_try_link "$LINENO"; then : 19213 ac_cv_lib_nsl_gethostbyname=yes 19214else 19215 ac_cv_lib_nsl_gethostbyname=no 19216fi 19217rm -f core conftest.err conftest.$ac_objext \ 19218 conftest$ac_exeext conftest.$ac_ext 19219LIBS=$ac_check_lib_save_LIBS 19220fi 19221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19222$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19223if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19225fi 19226 19227 if test $ac_cv_lib_nsl_gethostbyname = no; then 19228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19229$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19230if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19231 $as_echo_n "(cached) " >&6 19232else 19233 ac_check_lib_save_LIBS=$LIBS 19234LIBS="-lbsd $LIBS" 19235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19236/* end confdefs.h. */ 19237 19238/* Override any GCC internal prototype to avoid an error. 19239 Use char because int might match the return type of a GCC 19240 builtin and then its argument prototype would still apply. */ 19241#ifdef __cplusplus 19242extern "C" 19243#endif 19244char gethostbyname (); 19245int 19246main () 19247{ 19248return gethostbyname (); 19249 ; 19250 return 0; 19251} 19252_ACEOF 19253if ac_fn_c_try_link "$LINENO"; then : 19254 ac_cv_lib_bsd_gethostbyname=yes 19255else 19256 ac_cv_lib_bsd_gethostbyname=no 19257fi 19258rm -f core conftest.err conftest.$ac_objext \ 19259 conftest$ac_exeext conftest.$ac_ext 19260LIBS=$ac_check_lib_save_LIBS 19261fi 19262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19263$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19264if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19266fi 19267 19268 fi 19269 fi 19270 19271 # [email protected] says without -lsocket, 19272 # socket/setsockopt and other routines are undefined under SCO ODT 19273 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19274 # on later versions), says Simon Leinen: it contains gethostby* 19275 # variants that don't use the name server (or something). -lsocket 19276 # must be given before -lnsl if both are needed. We assume that 19277 # if connect needs -lnsl, so does gethostbyname. 19278 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19279if test "x$ac_cv_func_connect" = xyes; then : 19280 19281fi 19282 19283 if test $ac_cv_func_connect = no; then 19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19285$as_echo_n "checking for connect in -lsocket... " >&6; } 19286if ${ac_cv_lib_socket_connect+:} false; then : 19287 $as_echo_n "(cached) " >&6 19288else 19289 ac_check_lib_save_LIBS=$LIBS 19290LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19292/* end confdefs.h. */ 19293 19294/* Override any GCC internal prototype to avoid an error. 19295 Use char because int might match the return type of a GCC 19296 builtin and then its argument prototype would still apply. */ 19297#ifdef __cplusplus 19298extern "C" 19299#endif 19300char connect (); 19301int 19302main () 19303{ 19304return connect (); 19305 ; 19306 return 0; 19307} 19308_ACEOF 19309if ac_fn_c_try_link "$LINENO"; then : 19310 ac_cv_lib_socket_connect=yes 19311else 19312 ac_cv_lib_socket_connect=no 19313fi 19314rm -f core conftest.err conftest.$ac_objext \ 19315 conftest$ac_exeext conftest.$ac_ext 19316LIBS=$ac_check_lib_save_LIBS 19317fi 19318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19319$as_echo "$ac_cv_lib_socket_connect" >&6; } 19320if test "x$ac_cv_lib_socket_connect" = xyes; then : 19321 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19322fi 19323 19324 fi 19325 19326 # Guillermo Gomez says -lposix is necessary on A/UX. 19327 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19328if test "x$ac_cv_func_remove" = xyes; then : 19329 19330fi 19331 19332 if test $ac_cv_func_remove = no; then 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19334$as_echo_n "checking for remove in -lposix... " >&6; } 19335if ${ac_cv_lib_posix_remove+:} false; then : 19336 $as_echo_n "(cached) " >&6 19337else 19338 ac_check_lib_save_LIBS=$LIBS 19339LIBS="-lposix $LIBS" 19340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19341/* end confdefs.h. */ 19342 19343/* Override any GCC internal prototype to avoid an error. 19344 Use char because int might match the return type of a GCC 19345 builtin and then its argument prototype would still apply. */ 19346#ifdef __cplusplus 19347extern "C" 19348#endif 19349char remove (); 19350int 19351main () 19352{ 19353return remove (); 19354 ; 19355 return 0; 19356} 19357_ACEOF 19358if ac_fn_c_try_link "$LINENO"; then : 19359 ac_cv_lib_posix_remove=yes 19360else 19361 ac_cv_lib_posix_remove=no 19362fi 19363rm -f core conftest.err conftest.$ac_objext \ 19364 conftest$ac_exeext conftest.$ac_ext 19365LIBS=$ac_check_lib_save_LIBS 19366fi 19367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19368$as_echo "$ac_cv_lib_posix_remove" >&6; } 19369if test "x$ac_cv_lib_posix_remove" = xyes; then : 19370 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19371fi 19372 19373 fi 19374 19375 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19376 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19377if test "x$ac_cv_func_shmat" = xyes; then : 19378 19379fi 19380 19381 if test $ac_cv_func_shmat = no; then 19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19383$as_echo_n "checking for shmat in -lipc... " >&6; } 19384if ${ac_cv_lib_ipc_shmat+:} false; then : 19385 $as_echo_n "(cached) " >&6 19386else 19387 ac_check_lib_save_LIBS=$LIBS 19388LIBS="-lipc $LIBS" 19389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19390/* end confdefs.h. */ 19391 19392/* Override any GCC internal prototype to avoid an error. 19393 Use char because int might match the return type of a GCC 19394 builtin and then its argument prototype would still apply. */ 19395#ifdef __cplusplus 19396extern "C" 19397#endif 19398char shmat (); 19399int 19400main () 19401{ 19402return shmat (); 19403 ; 19404 return 0; 19405} 19406_ACEOF 19407if ac_fn_c_try_link "$LINENO"; then : 19408 ac_cv_lib_ipc_shmat=yes 19409else 19410 ac_cv_lib_ipc_shmat=no 19411fi 19412rm -f core conftest.err conftest.$ac_objext \ 19413 conftest$ac_exeext conftest.$ac_ext 19414LIBS=$ac_check_lib_save_LIBS 19415fi 19416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19417$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19418if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19420fi 19421 19422 fi 19423 fi 19424 19425 # Check for libraries that X11R6 Xt/Xaw programs need. 19426 ac_save_LDFLAGS=$LDFLAGS 19427 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19428 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19429 # check for ICE first), but we must link in the order -lSM -lICE or 19430 # we get undefined symbols. So assume we have SM if we have ICE. 19431 # These have to be linked with before -lX11, unlike the other 19432 # libraries we check for below, so use a different variable. 19433 # John Interrante, Karl Berry 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19435$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19436if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19437 $as_echo_n "(cached) " >&6 19438else 19439 ac_check_lib_save_LIBS=$LIBS 19440LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19442/* end confdefs.h. */ 19443 19444/* Override any GCC internal prototype to avoid an error. 19445 Use char because int might match the return type of a GCC 19446 builtin and then its argument prototype would still apply. */ 19447#ifdef __cplusplus 19448extern "C" 19449#endif 19450char IceConnectionNumber (); 19451int 19452main () 19453{ 19454return IceConnectionNumber (); 19455 ; 19456 return 0; 19457} 19458_ACEOF 19459if ac_fn_c_try_link "$LINENO"; then : 19460 ac_cv_lib_ICE_IceConnectionNumber=yes 19461else 19462 ac_cv_lib_ICE_IceConnectionNumber=no 19463fi 19464rm -f core conftest.err conftest.$ac_objext \ 19465 conftest$ac_exeext conftest.$ac_ext 19466LIBS=$ac_check_lib_save_LIBS 19467fi 19468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19469$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19470if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19472fi 19473 19474 LDFLAGS=$ac_save_LDFLAGS 19475 19476fi 19477 19478 19479 19480 19481 19482ac_ext=c 19483ac_cpp='$CPP $CPPFLAGS' 19484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19486ac_compiler_gnu=$ac_cv_c_compiler_gnu 19487 19488ax_pthread_ok=no 19489 19490 19491if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 19492 save_CFLAGS="$CFLAGS" 19493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19494 save_LIBS="$LIBS" 19495 LIBS="$PTHREAD_LIBS $LIBS" 19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 19497$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19499/* end confdefs.h. */ 19500 19501/* Override any GCC internal prototype to avoid an error. 19502 Use char because int might match the return type of a GCC 19503 builtin and then its argument prototype would still apply. */ 19504#ifdef __cplusplus 19505extern "C" 19506#endif 19507char pthread_join (); 19508int 19509main () 19510{ 19511return pthread_join (); 19512 ; 19513 return 0; 19514} 19515_ACEOF 19516if ac_fn_c_try_link "$LINENO"; then : 19517 ax_pthread_ok=yes 19518fi 19519rm -f core conftest.err conftest.$ac_objext \ 19520 conftest$ac_exeext conftest.$ac_ext 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19522$as_echo "$ax_pthread_ok" >&6; } 19523 if test x"$ax_pthread_ok" = xno; then 19524 PTHREAD_LIBS="" 19525 PTHREAD_CFLAGS="" 19526 fi 19527 LIBS="$save_LIBS" 19528 CFLAGS="$save_CFLAGS" 19529fi 19530 19531 19532 19533ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19534 19535 19536 19537case "${host_cpu}-${host_os}" in 19538 *solaris*) 19539 19540 19541 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 19542 ;; 19543 19544 *-darwin*) 19545 ax_pthread_flags="-pthread $ax_pthread_flags" 19546 ;; 19547esac 19548 19549if test x"$ax_pthread_ok" = xno; then 19550for flag in $ax_pthread_flags; do 19551 19552 case $flag in 19553 none) 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19555$as_echo_n "checking whether pthreads work without any flags... " >&6; } 19556 ;; 19557 19558 -*) 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 19560$as_echo_n "checking whether pthreads work with $flag... " >&6; } 19561 PTHREAD_CFLAGS="$flag" 19562 ;; 19563 19564 pthread-config) 19565 # Extract the first word of "pthread-config", so it can be a program name with args. 19566set dummy pthread-config; ac_word=$2 19567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19568$as_echo_n "checking for $ac_word... " >&6; } 19569if ${ac_cv_prog_ax_pthread_config+:} false; then : 19570 $as_echo_n "(cached) " >&6 19571else 19572 if test -n "$ax_pthread_config"; then 19573 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19574else 19575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19576for as_dir in $PATH 19577do 19578 IFS=$as_save_IFS 19579 test -z "$as_dir" && as_dir=. 19580 for ac_exec_ext in '' $ac_executable_extensions; do 19581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19582 ac_cv_prog_ax_pthread_config="yes" 19583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19584 break 2 19585 fi 19586done 19587 done 19588IFS=$as_save_IFS 19589 19590 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19591fi 19592fi 19593ax_pthread_config=$ac_cv_prog_ax_pthread_config 19594if test -n "$ax_pthread_config"; then 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19596$as_echo "$ax_pthread_config" >&6; } 19597else 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19599$as_echo "no" >&6; } 19600fi 19601 19602 19603 if test x"$ax_pthread_config" = xno; then continue; fi 19604 PTHREAD_CFLAGS="`pthread-config --cflags`" 19605 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19606 ;; 19607 19608 *) 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 19610$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 19611 PTHREAD_LIBS="-l$flag" 19612 ;; 19613 esac 19614 19615 save_LIBS="$LIBS" 19616 save_CFLAGS="$CFLAGS" 19617 LIBS="$PTHREAD_LIBS $LIBS" 19618 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19619 19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19621/* end confdefs.h. */ 19622#include <pthread.h> 19623 static void routine(void* a) {a=0;} 19624 static void* start_routine(void* a) {return a;} 19625int 19626main () 19627{ 19628pthread_t th; pthread_attr_t attr; 19629 pthread_create(&th,0,start_routine,0); 19630 pthread_join(th, 0); 19631 pthread_attr_init(&attr); 19632 pthread_cleanup_push(routine, 0); 19633 pthread_cleanup_pop(0); 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638if ac_fn_c_try_link "$LINENO"; then : 19639 ax_pthread_ok=yes 19640fi 19641rm -f core conftest.err conftest.$ac_objext \ 19642 conftest$ac_exeext conftest.$ac_ext 19643 19644 LIBS="$save_LIBS" 19645 CFLAGS="$save_CFLAGS" 19646 19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19648$as_echo "$ax_pthread_ok" >&6; } 19649 if test "x$ax_pthread_ok" = xyes; then 19650 break; 19651 fi 19652 19653 PTHREAD_LIBS="" 19654 PTHREAD_CFLAGS="" 19655done 19656fi 19657 19658if test "x$ax_pthread_ok" = xyes; then 19659 save_LIBS="$LIBS" 19660 LIBS="$PTHREAD_LIBS $LIBS" 19661 save_CFLAGS="$CFLAGS" 19662 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19663 19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19665$as_echo_n "checking for joinable pthread attribute... " >&6; } 19666 attr_name=unknown 19667 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19669/* end confdefs.h. */ 19670#include <pthread.h> 19671int 19672main () 19673{ 19674int attr=$attr; return attr; 19675 ; 19676 return 0; 19677} 19678_ACEOF 19679if ac_fn_c_try_link "$LINENO"; then : 19680 attr_name=$attr; break 19681fi 19682rm -f core conftest.err conftest.$ac_objext \ 19683 conftest$ac_exeext conftest.$ac_ext 19684 done 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 19686$as_echo "$attr_name" >&6; } 19687 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 19688 19689cat >>confdefs.h <<_ACEOF 19690#define PTHREAD_CREATE_JOINABLE $attr_name 19691_ACEOF 19692 19693 fi 19694 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19696$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19697 flag=no 19698 case "${host_cpu}-${host_os}" in 19699 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19700 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19701 esac 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19703$as_echo "${flag}" >&6; } 19704 if test "x$flag" != xno; then 19705 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19706 fi 19707 19708 LIBS="$save_LIBS" 19709 CFLAGS="$save_CFLAGS" 19710 19711 if test x"$GCC" != xyes; then 19712 for ac_prog in xlc_r cc_r 19713do 19714 # Extract the first word of "$ac_prog", so it can be a program name with args. 19715set dummy $ac_prog; ac_word=$2 19716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19717$as_echo_n "checking for $ac_word... " >&6; } 19718if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19719 $as_echo_n "(cached) " >&6 19720else 19721 if test -n "$PTHREAD_CC"; then 19722 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19723else 19724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19725for as_dir in $PATH 19726do 19727 IFS=$as_save_IFS 19728 test -z "$as_dir" && as_dir=. 19729 for ac_exec_ext in '' $ac_executable_extensions; do 19730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19731 ac_cv_prog_PTHREAD_CC="$ac_prog" 19732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19733 break 2 19734 fi 19735done 19736 done 19737IFS=$as_save_IFS 19738 19739fi 19740fi 19741PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19742if test -n "$PTHREAD_CC"; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19744$as_echo "$PTHREAD_CC" >&6; } 19745else 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19747$as_echo "no" >&6; } 19748fi 19749 19750 19751 test -n "$PTHREAD_CC" && break 19752done 19753test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19754 19755 else 19756 PTHREAD_CC=$CC 19757 fi 19758else 19759 PTHREAD_CC="$CC" 19760fi 19761 19762 19763 19764 19765 19766if test x"$ax_pthread_ok" = xyes; then 19767 19768$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19769 19770 : 19771else 19772 ax_pthread_ok=no 19773 19774fi 19775ac_ext=c 19776ac_cpp='$CPP $CPPFLAGS' 19777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19779ac_compiler_gnu=$ac_cv_c_compiler_gnu 19780 19781 19782 19783 19784ac_ext=c 19785ac_cpp='$CPP $CPPFLAGS' 19786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19788ac_compiler_gnu=$ac_cv_c_compiler_gnu 19789 19790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19791$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19792if ${ax_cv_c_compiler_ms+:} false; then : 19793 $as_echo_n "(cached) " >&6 19794else 19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19796/* end confdefs.h. */ 19797 19798int 19799main () 19800{ 19801#ifndef _MSC_VER 19802 choke me 19803#endif 19804 19805 ; 19806 return 0; 19807} 19808_ACEOF 19809if ac_fn_c_try_compile "$LINENO"; then : 19810 ax_compiler_ms=yes 19811else 19812 ax_compiler_ms=no 19813fi 19814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19815ax_cv_c_compiler_ms=$ax_compiler_ms 19816 19817fi 19818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19819$as_echo "$ax_cv_c_compiler_ms" >&6; } 19820if test X$ax_compiler_ms = Xno; then : 19821 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19822fi 19823 19824if test "X$no_x" != "Xyes"; then : 19825 if test -n "$x_includes"; then : 19826 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19827fi 19828 if test -n "$x_libraries"; then : 19829 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19830fi 19831fi 19832 19833ax_save_CPPFLAGS="${CPPFLAGS}" 19834CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19835for ac_header in GL/gl.h OpenGL/gl.h 19836do : 19837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19838ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19840 cat >>confdefs.h <<_ACEOF 19841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19842_ACEOF 19843 19844fi 19845 19846done 19847 19848CPPFLAGS="${ax_save_CPPFLAGS}" 19849 19850for ac_header in windows.h 19851do : 19852 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19853if test "x$ac_cv_header_windows_h" = xyes; then : 19854 cat >>confdefs.h <<_ACEOF 19855#define HAVE_WINDOWS_H 1 19856_ACEOF 19857 19858fi 19859 19860done 19861 19862 19863 19864 19865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19866$as_echo_n "checking for OpenGL library... " >&6; } 19867if ${ax_cv_check_gl_libgl+:} false; then : 19868 $as_echo_n "(cached) " >&6 19869else 19870 ax_cv_check_gl_libgl="no" 19871case $host_cpu in 19872 x86_64) ax_check_gl_libdir=lib64 ;; 19873 *) ax_check_gl_libdir=lib ;; 19874esac 19875ax_save_CPPFLAGS="${CPPFLAGS}" 19876CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19877ax_save_LIBS="${LIBS}" 19878LIBS="" 19879ax_check_libs="-lopengl32 -lGL" 19880for ax_lib in ${ax_check_libs}; do 19881 if test X$ax_compiler_ms = Xyes; then : 19882 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19883else 19884 ax_try_lib="${ax_lib}" 19885fi 19886 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19888/* end confdefs.h. */ 19889 19890# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19891# include <windows.h> 19892# endif 19893# ifdef HAVE_GL_GL_H 19894# include <GL/gl.h> 19895# elif defined(HAVE_OPENGL_GL_H) 19896# include <OpenGL/gl.h> 19897# else 19898# error no gl.h 19899# endif 19900int 19901main () 19902{ 19903glBegin(0) 19904 ; 19905 return 0; 19906} 19907_ACEOF 19908if ac_fn_c_try_link "$LINENO"; then : 19909 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19910else 19911 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}" 19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914 19915# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19916# include <windows.h> 19917# endif 19918# ifdef HAVE_GL_GL_H 19919# include <GL/gl.h> 19920# elif defined(HAVE_OPENGL_GL_H) 19921# include <OpenGL/gl.h> 19922# else 19923# error no gl.h 19924# endif 19925int 19926main () 19927{ 19928glBegin(0) 19929 ; 19930 return 0; 19931} 19932_ACEOF 19933if ac_fn_c_try_link "$LINENO"; then : 19934 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19935else 19936 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}" 19937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19938/* end confdefs.h. */ 19939 19940# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19941# include <windows.h> 19942# endif 19943# ifdef HAVE_GL_GL_H 19944# include <GL/gl.h> 19945# elif defined(HAVE_OPENGL_GL_H) 19946# include <OpenGL/gl.h> 19947# else 19948# error no gl.h 19949# endif 19950int 19951main () 19952{ 19953glBegin(0) 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958if ac_fn_c_try_link "$LINENO"; then : 19959 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19960fi 19961rm -f core conftest.err conftest.$ac_objext \ 19962 conftest$ac_exeext conftest.$ac_ext 19963fi 19964rm -f core conftest.err conftest.$ac_objext \ 19965 conftest$ac_exeext conftest.$ac_ext 19966fi 19967rm -f core conftest.err conftest.$ac_objext \ 19968 conftest$ac_exeext conftest.$ac_ext 19969done 19970 19971if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19972 LIBS='-framework OpenGL' 19973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19974/* end confdefs.h. */ 19975 19976# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19977# include <windows.h> 19978# endif 19979# ifdef HAVE_GL_GL_H 19980# include <GL/gl.h> 19981# elif defined(HAVE_OPENGL_GL_H) 19982# include <OpenGL/gl.h> 19983# else 19984# error no gl.h 19985# endif 19986int 19987main () 19988{ 19989glBegin(0) 19990 ; 19991 return 0; 19992} 19993_ACEOF 19994if ac_fn_c_try_link "$LINENO"; then : 19995 ax_cv_check_gl_libgl="$LIBS" 19996fi 19997rm -f core conftest.err conftest.$ac_objext \ 19998 conftest$ac_exeext conftest.$ac_ext 19999fi 20000 20001LIBS=${ax_save_LIBS} 20002CPPFLAGS=${ax_save_CPPFLAGS} 20003fi 20004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 20005$as_echo "$ax_cv_check_gl_libgl" >&6; } 20006 20007if test "X$ax_cv_check_gl_libgl" = Xno; then : 20008 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 20009else 20010 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 20011fi 20012ac_ext=c 20013ac_cpp='$CPP $CPPFLAGS' 20014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20016ac_compiler_gnu=$ac_cv_c_compiler_gnu 20017 20018 20019 20020 20021 20022 20023GLU_CFLAGS="${GL_CFLAGS}" 20024 20025ax_save_CPPFLAGS="${CPPFLAGS}" 20026CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20027for ac_header in GL/glu.h OpenGL/glu.h 20028do : 20029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20030ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20031if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20032 cat >>confdefs.h <<_ACEOF 20033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20034_ACEOF 20035 20036fi 20037 20038done 20039 20040CPPFLAGS="${ax_save_CPPFLAGS}" 20041 20042 20043 20044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 20045$as_echo_n "checking for OpenGL Utility library... " >&6; } 20046if ${ax_cv_check_glu_libglu+:} false; then : 20047 $as_echo_n "(cached) " >&6 20048else 20049 ax_cv_check_glu_libglu="no" 20050ax_save_CPPFLAGS="${CPPFLAGS}" 20051CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20052ax_save_LIBS="${LIBS}" 20053 20054LIBS="${GL_LIBS} ${ax_save_LIBS}" 20055ac_ext=cpp 20056ac_cpp='$CXXCPP $CPPFLAGS' 20057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20060 20061if test X$ax_compiler_ms = Xyes; then : 20062 ac_ext=c 20063ac_cpp='$CPP $CPPFLAGS' 20064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20066ac_compiler_gnu=$ac_cv_c_compiler_gnu 20067 20068fi 20069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20070/* end confdefs.h. */ 20071 20072# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20073# include <windows.h> 20074# endif 20075# ifdef HAVE_GL_GLU_H 20076# include <GL/glu.h> 20077# elif defined(HAVE_OPENGL_GLU_H) 20078# include <OpenGL/glu.h> 20079# else 20080# error no glu.h 20081# endif 20082int 20083main () 20084{ 20085gluBeginCurve(0) 20086 ; 20087 return 0; 20088} 20089_ACEOF 20090if ac_fn_c_try_link "$LINENO"; then : 20091 ax_cv_check_glu_libglu=yes 20092else 20093 LIBS="" 20094ax_check_libs="-lglu32 -lGLU" 20095for ax_lib in ${ax_check_libs}; do 20096 if test X$ax_compiler_ms = Xyes; then : 20097 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20098else 20099 ax_try_lib="${ax_lib}" 20100fi 20101 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20103/* end confdefs.h. */ 20104 20105# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20106# include <windows.h> 20107# endif 20108# ifdef HAVE_GL_GLU_H 20109# include <GL/glu.h> 20110# elif defined(HAVE_OPENGL_GLU_H) 20111# include <OpenGL/glu.h> 20112# else 20113# error no glu.h 20114# endif 20115int 20116main () 20117{ 20118gluBeginCurve(0) 20119 ; 20120 return 0; 20121} 20122_ACEOF 20123if ac_fn_c_try_link "$LINENO"; then : 20124 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20125fi 20126rm -f core conftest.err conftest.$ac_objext \ 20127 conftest$ac_exeext conftest.$ac_ext 20128done 20129 20130fi 20131rm -f core conftest.err conftest.$ac_objext \ 20132 conftest$ac_exeext conftest.$ac_ext 20133if test X$ax_compiler_ms = Xyes; then : 20134 ac_ext=cpp 20135ac_cpp='$CXXCPP $CPPFLAGS' 20136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20139 20140fi 20141ac_ext=c 20142ac_cpp='$CPP $CPPFLAGS' 20143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20145ac_compiler_gnu=$ac_cv_c_compiler_gnu 20146 20147 20148LIBS=${ax_save_LIBS} 20149CPPFLAGS=${ax_save_CPPFLAGS} 20150fi 20151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 20152$as_echo "$ax_cv_check_glu_libglu" >&6; } 20153if test "X$ax_cv_check_glu_libglu" = Xno; then : 20154 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 20155else 20156 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 20157 GLU_LIBS="$GL_LIBS" 20158else 20159 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 20160fi 20161fi 20162 20163 20164 20165if test "X$ax_cv_check_glu_libglu" != Xno; then : 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 20167$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 20168if ${ax_cv_varargs_glu_tesscb+:} false; then : 20169 $as_echo_n "(cached) " >&6 20170else 20171 ax_cv_varargs_glu_tesscb=no 20172ax_save_CFLAGS="$CFLAGS" 20173CFLAGS="$GL_CFLAGS $CFLAGS" 20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20175/* end confdefs.h. */ 20176 20177# ifdef HAVE_GL_GLU_H 20178# include <GL/glu.h> 20179# else 20180# include <OpenGL/glu.h> 20181# endif 20182int 20183main () 20184{ 20185GLvoid (*func)(...); gluTessCallback(0, 0, func) 20186 ; 20187 return 0; 20188} 20189_ACEOF 20190if ac_fn_c_try_compile "$LINENO"; then : 20191 ax_cv_varargs_glu_tesscb=yes 20192fi 20193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20194CFLAGS="$ax_save_CFLAGS" 20195fi 20196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 20197$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 20198if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 20199 20200$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 20201 20202fi 20203fi 20204 20205 20206 20207ax_save_CPPFLAGS="${CPPFLAGS}" 20208CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 20209for ac_header in GL/glut.h GLUT/glut.h 20210do : 20211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20212ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20214 cat >>confdefs.h <<_ACEOF 20215#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20216_ACEOF 20217 20218fi 20219 20220done 20221 20222CPPFLAGS="${ax_save_CPPFLAGS}" 20223 20224GLUT_CFLAGS=${GLU_CFLAGS} 20225GLUT_LIBS=${GLU_LIBS} 20226 20227 20228 20229if test X$no_x != Xyes; then : 20230 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 20231fi 20232 20233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 20234$as_echo_n "checking for GLUT library... " >&6; } 20235if ${ax_cv_check_glut_libglut+:} false; then : 20236 $as_echo_n "(cached) " >&6 20237else 20238 ax_cv_check_glut_libglut="no" 20239ac_ext=c 20240ac_cpp='$CPP $CPPFLAGS' 20241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20243ac_compiler_gnu=$ac_cv_c_compiler_gnu 20244 20245ax_save_CPPFLAGS="${CPPFLAGS}" 20246CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 20247ax_save_LIBS="${LIBS}" 20248LIBS="" 20249ax_check_libs="-lglut32 -lglut" 20250for ax_lib in ${ax_check_libs}; do 20251 if test X$ax_compiler_ms = Xyes; then : 20252 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20253else 20254 ax_try_lib="${ax_lib}" 20255fi 20256 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20258/* end confdefs.h. */ 20259 20260# if HAVE_WINDOWS_H && defined(_WIN32) 20261# include <windows.h> 20262# endif 20263# ifdef HAVE_GL_GLUT_H 20264# include <GL/glut.h> 20265# elif defined(HAVE_GLUT_GLUT_H) 20266# include <GLUT/glut.h> 20267# else 20268# error no glut.h 20269# endif 20270int 20271main () 20272{ 20273glutMainLoop() 20274 ; 20275 return 0; 20276} 20277_ACEOF 20278if ac_fn_c_try_link "$LINENO"; then : 20279 ax_cv_check_glut_libglut="${ax_try_lib}"; break 20280fi 20281rm -f core conftest.err conftest.$ac_objext \ 20282 conftest$ac_exeext conftest.$ac_ext 20283done 20284 20285if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 20286 LIBS='-framework GLUT' 20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20288/* end confdefs.h. */ 20289 20290# if HAVE_WINDOWS_H && defined(_WIN32) 20291# include <windows.h> 20292# endif 20293# ifdef HAVE_GL_GLUT_H 20294# include <GL/glut.h> 20295# elif defined(HAVE_GLUT_GLUT_H) 20296# include <GLUT/glut.h> 20297# else 20298# error no glut.h 20299# endif 20300int 20301main () 20302{ 20303glutMainLoop() 20304 ; 20305 return 0; 20306} 20307_ACEOF 20308if ac_fn_c_try_link "$LINENO"; then : 20309 ax_cv_check_glut_libglut="$LIBS" 20310fi 20311rm -f core conftest.err conftest.$ac_objext \ 20312 conftest$ac_exeext conftest.$ac_ext 20313fi 20314 20315CPPFLAGS="${ax_save_CPPFLAGS}" 20316LIBS="${ax_save_LIBS}" 20317ac_ext=c 20318ac_cpp='$CPP $CPPFLAGS' 20319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20321ac_compiler_gnu=$ac_cv_c_compiler_gnu 20322 20323fi 20324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 20325$as_echo "$ax_cv_check_glut_libglut" >&6; } 20326 20327if test "X$ax_cv_check_glut_libglut" = Xno; then : 20328 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 20329else 20330 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 20331fi 20332 20333 20334 20335 20336 20337if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 20338 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 20339 HAVE_OPENGL=yes 20340fi 20341 20342 if test "$HAVE_OPENGL" = "yes"; then 20343 HAVE_OPENGL_TRUE= 20344 HAVE_OPENGL_FALSE='#' 20345else 20346 HAVE_OPENGL_TRUE='#' 20347 HAVE_OPENGL_FALSE= 20348fi 20349 20350 20351 20352# Check whether --enable-win32-io was given. 20353if test "${enable_win32_io+set}" = set; then : 20354 enableval=$enable_win32_io; 20355fi 20356 20357 20358win32_io_ok=no 20359case "${host_os}" in 20360 cygwin*) 20361 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then 20362 win32_io_ok=yes 20363 fi 20364 ;; 20365 *) 20366 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then 20367 win32_io_ok=yes 20368 fi 20369 ;; 20370esac 20371 20372if test "$win32_io_ok" = "yes" ; then 20373 20374$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 20375 20376fi 20377 20378 if test "$win32_io_ok" = yes; then 20379 WIN32_IO_TRUE= 20380 WIN32_IO_FALSE='#' 20381else 20382 WIN32_IO_TRUE='#' 20383 WIN32_IO_FALSE= 20384fi 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394# Check whether --enable-strip-chopping was given. 20395if test "${enable_strip_chopping+set}" = set; then : 20396 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 20397else 20398 HAVE_STRIPCHOP=yes 20399fi 20400 20401 20402# Check whether --with-default-strip-size was given. 20403if test "${with_default_strip_size+set}" = set; then : 20404 withval=$with_default_strip_size; 20405fi 20406 20407 20408if test "$HAVE_STRIPCHOP" = "yes" \ 20409 -a "x$with_default_strip_size" != "xno"; then 20410 20411$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 20412 20413 20414 if test "x$with_default_strip_size" = "x" \ 20415 -o "x$with_default_strip_size" = "xyes"; then 20416 with_default_strip_size="8192" 20417 fi 20418 20419 20420cat >>confdefs.h <<_ACEOF 20421#define STRIP_SIZE_DEFAULT $with_default_strip_size 20422_ACEOF 20423 20424 20425fi 20426 20427 20428# Check whether --enable-defer-strile-load was given. 20429if test "${enable_defer_strile_load+set}" = set; then : 20430 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20431else 20432 HAVE_DEFER_STRILE_LOAD=no 20433fi 20434 20435 20436if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20437 20438$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20439 20440 20441fi 20442 20443 20444# Check whether --enable-chunky-strip-read was given. 20445if test "${enable_chunky_strip_read+set}" = set; then : 20446 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20447else 20448 HAVE_CHUNKY_STRIP_READ=no 20449fi 20450 20451 20452if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20453 20454$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20455 20456 20457fi 20458 20459 20460$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20461 20462 20463 20464# Check whether --enable-extrasample-as-alpha was given. 20465if test "${enable_extrasample_as_alpha+set}" = set; then : 20466 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20467else 20468 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20469fi 20470 20471 20472if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20473 20474$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20475 20476fi 20477 20478 20479# Check whether --enable-check-ycbcr-subsampling was given. 20480if test "${enable_check_ycbcr_subsampling+set}" = set; then : 20481 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 20482else 20483 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 20484fi 20485 20486 20487if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 20488 20489$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 20490 20491fi 20492 20493 20494 20495 20496ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 20497 20498 20499ac_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" 20500 20501cat >confcache <<\_ACEOF 20502# This file is a shell script that caches the results of configure 20503# tests run on this system so they can be shared between configure 20504# scripts and configure runs, see configure's option --config-cache. 20505# It is not useful on other systems. If it contains results you don't 20506# want to keep, you may remove or edit it. 20507# 20508# config.status only pays attention to the cache file if you give it 20509# the --recheck option to rerun configure. 20510# 20511# `ac_cv_env_foo' variables (set or unset) will be overridden when 20512# loading this file, other *unset* `ac_cv_foo' will be assigned the 20513# following values. 20514 20515_ACEOF 20516 20517# The following way of writing the cache mishandles newlines in values, 20518# but we know of no workaround that is simple, portable, and efficient. 20519# So, we kill variables containing newlines. 20520# Ultrix sh set writes to stderr and can't be redirected directly, 20521# and sets the high bit in the cache file unless we assign to the vars. 20522( 20523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20524 eval ac_val=\$$ac_var 20525 case $ac_val in #( 20526 *${as_nl}*) 20527 case $ac_var in #( 20528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20529$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20530 esac 20531 case $ac_var in #( 20532 _ | IFS | as_nl) ;; #( 20533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20534 *) { eval $ac_var=; unset $ac_var;} ;; 20535 esac ;; 20536 esac 20537 done 20538 20539 (set) 2>&1 | 20540 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20541 *${as_nl}ac_space=\ *) 20542 # `set' does not quote correctly, so add quotes: double-quote 20543 # substitution turns \\\\ into \\, and sed turns \\ into \. 20544 sed -n \ 20545 "s/'/'\\\\''/g; 20546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20547 ;; #( 20548 *) 20549 # `set' quotes correctly as required by POSIX, so do not add quotes. 20550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20551 ;; 20552 esac | 20553 sort 20554) | 20555 sed ' 20556 /^ac_cv_env_/b end 20557 t clear 20558 :clear 20559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20560 t end 20561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20562 :end' >>confcache 20563if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20564 if test -w "$cache_file"; then 20565 if test "x$cache_file" != "x/dev/null"; then 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20567$as_echo "$as_me: updating cache $cache_file" >&6;} 20568 if test ! -f "$cache_file" || test -h "$cache_file"; then 20569 cat confcache >"$cache_file" 20570 else 20571 case $cache_file in #( 20572 */* | ?:*) 20573 mv -f confcache "$cache_file"$$ && 20574 mv -f "$cache_file"$$ "$cache_file" ;; #( 20575 *) 20576 mv -f confcache "$cache_file" ;; 20577 esac 20578 fi 20579 fi 20580 else 20581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20582$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20583 fi 20584fi 20585rm -f confcache 20586 20587test "x$prefix" = xNONE && prefix=$ac_default_prefix 20588# Let make expand exec_prefix. 20589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20590 20591DEFS=-DHAVE_CONFIG_H 20592 20593ac_libobjs= 20594ac_ltlibobjs= 20595U= 20596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20597 # 1. Remove the extension, and $U if already installed. 20598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20601 # will be set to the directory where LIBOBJS objects are built. 20602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20604done 20605LIBOBJS=$ac_libobjs 20606 20607LTLIBOBJS=$ac_ltlibobjs 20608 20609 20610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20611$as_echo_n "checking that generated files are newer than configure... " >&6; } 20612 if test -n "$am_sleep_pid"; then 20613 # Hide warnings about reused PIDs. 20614 wait $am_sleep_pid 2>/dev/null 20615 fi 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20617$as_echo "done" >&6; } 20618 if test -n "$EXEEXT"; then 20619 am__EXEEXT_TRUE= 20620 am__EXEEXT_FALSE='#' 20621else 20622 am__EXEEXT_TRUE='#' 20623 am__EXEEXT_FALSE= 20624fi 20625 20626if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20627 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20628Usually this means the macro was only invoked conditionally." "$LINENO" 5 20629fi 20630if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20631 as_fn_error $? "conditional \"AMDEP\" was never defined. 20632Usually this means the macro was only invoked conditionally." "$LINENO" 5 20633fi 20634if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20635 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20636Usually this means the macro was only invoked conditionally." "$LINENO" 5 20637fi 20638if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 20639 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 20640Usually this means the macro was only invoked conditionally." "$LINENO" 5 20641fi 20642if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20643 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20644Usually this means the macro was only invoked conditionally." "$LINENO" 5 20645fi 20646 20647if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 20648 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 20649Usually this means the macro was only invoked conditionally." "$LINENO" 5 20650fi 20651if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 20652 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 20653Usually this means the macro was only invoked conditionally." "$LINENO" 5 20654fi 20655if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 20656 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 20657Usually this means the macro was only invoked conditionally." "$LINENO" 5 20658fi 20659if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 20660 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 20661Usually this means the macro was only invoked conditionally." "$LINENO" 5 20662fi 20663 20664: "${CONFIG_STATUS=./config.status}" 20665ac_write_fail=0 20666ac_clean_files_save=$ac_clean_files 20667ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20668{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20669$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20670as_write_fail=0 20671cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20672#! $SHELL 20673# Generated by $as_me. 20674# Run this file to recreate the current configuration. 20675# Compiler output produced by configure, useful for debugging 20676# configure, is in config.log if it exists. 20677 20678debug=false 20679ac_cs_recheck=false 20680ac_cs_silent=false 20681 20682SHELL=\${CONFIG_SHELL-$SHELL} 20683export SHELL 20684_ASEOF 20685cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20686## -------------------- ## 20687## M4sh Initialization. ## 20688## -------------------- ## 20689 20690# Be more Bourne compatible 20691DUALCASE=1; export DUALCASE # for MKS sh 20692if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20693 emulate sh 20694 NULLCMD=: 20695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20696 # is contrary to our usage. Disable this feature. 20697 alias -g '${1+"$@"}'='"$@"' 20698 setopt NO_GLOB_SUBST 20699else 20700 case `(set -o) 2>/dev/null` in #( 20701 *posix*) : 20702 set -o posix ;; #( 20703 *) : 20704 ;; 20705esac 20706fi 20707 20708 20709as_nl=' 20710' 20711export as_nl 20712# Printing a long string crashes Solaris 7 /usr/bin/printf. 20713as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20714as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20715as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20716# Prefer a ksh shell builtin over an external printf program on Solaris, 20717# but without wasting forks for bash or zsh. 20718if test -z "$BASH_VERSION$ZSH_VERSION" \ 20719 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20720 as_echo='print -r --' 20721 as_echo_n='print -rn --' 20722elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20723 as_echo='printf %s\n' 20724 as_echo_n='printf %s' 20725else 20726 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20727 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20728 as_echo_n='/usr/ucb/echo -n' 20729 else 20730 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20731 as_echo_n_body='eval 20732 arg=$1; 20733 case $arg in #( 20734 *"$as_nl"*) 20735 expr "X$arg" : "X\\(.*\\)$as_nl"; 20736 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20737 esac; 20738 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20739 ' 20740 export as_echo_n_body 20741 as_echo_n='sh -c $as_echo_n_body as_echo' 20742 fi 20743 export as_echo_body 20744 as_echo='sh -c $as_echo_body as_echo' 20745fi 20746 20747# The user is always right. 20748if test "${PATH_SEPARATOR+set}" != set; then 20749 PATH_SEPARATOR=: 20750 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20751 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20752 PATH_SEPARATOR=';' 20753 } 20754fi 20755 20756 20757# IFS 20758# We need space, tab and new line, in precisely that order. Quoting is 20759# there to prevent editors from complaining about space-tab. 20760# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20761# splitting by setting IFS to empty value.) 20762IFS=" "" $as_nl" 20763 20764# Find who we are. Look in the path if we contain no directory separator. 20765as_myself= 20766case $0 in #(( 20767 *[\\/]* ) as_myself=$0 ;; 20768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20769for as_dir in $PATH 20770do 20771 IFS=$as_save_IFS 20772 test -z "$as_dir" && as_dir=. 20773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20774 done 20775IFS=$as_save_IFS 20776 20777 ;; 20778esac 20779# We did not find ourselves, most probably we were run as `sh COMMAND' 20780# in which case we are not to be found in the path. 20781if test "x$as_myself" = x; then 20782 as_myself=$0 20783fi 20784if test ! -f "$as_myself"; then 20785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20786 exit 1 20787fi 20788 20789# Unset variables that we do not need and which cause bugs (e.g. in 20790# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20791# suppresses any "Segmentation fault" message there. '((' could 20792# trigger a bug in pdksh 5.2.14. 20793for as_var in BASH_ENV ENV MAIL MAILPATH 20794do eval test x\${$as_var+set} = xset \ 20795 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20796done 20797PS1='$ ' 20798PS2='> ' 20799PS4='+ ' 20800 20801# NLS nuisances. 20802LC_ALL=C 20803export LC_ALL 20804LANGUAGE=C 20805export LANGUAGE 20806 20807# CDPATH. 20808(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20809 20810 20811# as_fn_error STATUS ERROR [LINENO LOG_FD] 20812# ---------------------------------------- 20813# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20814# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20815# script with STATUS, using 1 if that was 0. 20816as_fn_error () 20817{ 20818 as_status=$1; test $as_status -eq 0 && as_status=1 20819 if test "$4"; then 20820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20821 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20822 fi 20823 $as_echo "$as_me: error: $2" >&2 20824 as_fn_exit $as_status 20825} # as_fn_error 20826 20827 20828# as_fn_set_status STATUS 20829# ----------------------- 20830# Set $? to STATUS, without forking. 20831as_fn_set_status () 20832{ 20833 return $1 20834} # as_fn_set_status 20835 20836# as_fn_exit STATUS 20837# ----------------- 20838# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20839as_fn_exit () 20840{ 20841 set +e 20842 as_fn_set_status $1 20843 exit $1 20844} # as_fn_exit 20845 20846# as_fn_unset VAR 20847# --------------- 20848# Portably unset VAR. 20849as_fn_unset () 20850{ 20851 { eval $1=; unset $1;} 20852} 20853as_unset=as_fn_unset 20854# as_fn_append VAR VALUE 20855# ---------------------- 20856# Append the text in VALUE to the end of the definition contained in VAR. Take 20857# advantage of any shell optimizations that allow amortized linear growth over 20858# repeated appends, instead of the typical quadratic growth present in naive 20859# implementations. 20860if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20861 eval 'as_fn_append () 20862 { 20863 eval $1+=\$2 20864 }' 20865else 20866 as_fn_append () 20867 { 20868 eval $1=\$$1\$2 20869 } 20870fi # as_fn_append 20871 20872# as_fn_arith ARG... 20873# ------------------ 20874# Perform arithmetic evaluation on the ARGs, and store the result in the 20875# global $as_val. Take advantage of shells that can avoid forks. The arguments 20876# must be portable across $(()) and expr. 20877if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20878 eval 'as_fn_arith () 20879 { 20880 as_val=$(( $* )) 20881 }' 20882else 20883 as_fn_arith () 20884 { 20885 as_val=`expr "$@" || test $? -eq 1` 20886 } 20887fi # as_fn_arith 20888 20889 20890if expr a : '\(a\)' >/dev/null 2>&1 && 20891 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20892 as_expr=expr 20893else 20894 as_expr=false 20895fi 20896 20897if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20898 as_basename=basename 20899else 20900 as_basename=false 20901fi 20902 20903if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20904 as_dirname=dirname 20905else 20906 as_dirname=false 20907fi 20908 20909as_me=`$as_basename -- "$0" || 20910$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20911 X"$0" : 'X\(//\)$' \| \ 20912 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20913$as_echo X/"$0" | 20914 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20915 s//\1/ 20916 q 20917 } 20918 /^X\/\(\/\/\)$/{ 20919 s//\1/ 20920 q 20921 } 20922 /^X\/\(\/\).*/{ 20923 s//\1/ 20924 q 20925 } 20926 s/.*/./; q'` 20927 20928# Avoid depending upon Character Ranges. 20929as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20930as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20931as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20932as_cr_digits='0123456789' 20933as_cr_alnum=$as_cr_Letters$as_cr_digits 20934 20935ECHO_C= ECHO_N= ECHO_T= 20936case `echo -n x` in #((((( 20937-n*) 20938 case `echo 'xy\c'` in 20939 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20940 xy) ECHO_C='\c';; 20941 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20942 ECHO_T=' ';; 20943 esac;; 20944*) 20945 ECHO_N='-n';; 20946esac 20947 20948rm -f conf$$ conf$$.exe conf$$.file 20949if test -d conf$$.dir; then 20950 rm -f conf$$.dir/conf$$.file 20951else 20952 rm -f conf$$.dir 20953 mkdir conf$$.dir 2>/dev/null 20954fi 20955if (echo >conf$$.file) 2>/dev/null; then 20956 if ln -s conf$$.file conf$$ 2>/dev/null; then 20957 as_ln_s='ln -s' 20958 # ... but there are two gotchas: 20959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20961 # In both cases, we have to default to `cp -pR'. 20962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20963 as_ln_s='cp -pR' 20964 elif ln conf$$.file conf$$ 2>/dev/null; then 20965 as_ln_s=ln 20966 else 20967 as_ln_s='cp -pR' 20968 fi 20969else 20970 as_ln_s='cp -pR' 20971fi 20972rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20973rmdir conf$$.dir 2>/dev/null 20974 20975 20976# as_fn_mkdir_p 20977# ------------- 20978# Create "$as_dir" as a directory, including parents if necessary. 20979as_fn_mkdir_p () 20980{ 20981 20982 case $as_dir in #( 20983 -*) as_dir=./$as_dir;; 20984 esac 20985 test -d "$as_dir" || eval $as_mkdir_p || { 20986 as_dirs= 20987 while :; do 20988 case $as_dir in #( 20989 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20990 *) as_qdir=$as_dir;; 20991 esac 20992 as_dirs="'$as_qdir' $as_dirs" 20993 as_dir=`$as_dirname -- "$as_dir" || 20994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20995 X"$as_dir" : 'X\(//\)[^/]' \| \ 20996 X"$as_dir" : 'X\(//\)$' \| \ 20997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20998$as_echo X"$as_dir" | 20999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21000 s//\1/ 21001 q 21002 } 21003 /^X\(\/\/\)[^/].*/{ 21004 s//\1/ 21005 q 21006 } 21007 /^X\(\/\/\)$/{ 21008 s//\1/ 21009 q 21010 } 21011 /^X\(\/\).*/{ 21012 s//\1/ 21013 q 21014 } 21015 s/.*/./; q'` 21016 test -d "$as_dir" && break 21017 done 21018 test -z "$as_dirs" || eval "mkdir $as_dirs" 21019 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21020 21021 21022} # as_fn_mkdir_p 21023if mkdir -p . 2>/dev/null; then 21024 as_mkdir_p='mkdir -p "$as_dir"' 21025else 21026 test -d ./-p && rmdir ./-p 21027 as_mkdir_p=false 21028fi 21029 21030 21031# as_fn_executable_p FILE 21032# ----------------------- 21033# Test if FILE is an executable regular file. 21034as_fn_executable_p () 21035{ 21036 test -f "$1" && test -x "$1" 21037} # as_fn_executable_p 21038as_test_x='test -x' 21039as_executable_p=as_fn_executable_p 21040 21041# Sed expression to map a string onto a valid CPP name. 21042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21043 21044# Sed expression to map a string onto a valid variable name. 21045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21046 21047 21048exec 6>&1 21049## ----------------------------------- ## 21050## Main body of $CONFIG_STATUS script. ## 21051## ----------------------------------- ## 21052_ASEOF 21053test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21054 21055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21056# Save the log message, to keep $0 and so on meaningful, and to 21057# report actual input values of CONFIG_FILES etc. instead of their 21058# values after options handling. 21059ac_log=" 21060This file was extended by LibTIFF Software $as_me 4.0.4beta, which was 21061generated by GNU Autoconf 2.69. Invocation command line was 21062 21063 CONFIG_FILES = $CONFIG_FILES 21064 CONFIG_HEADERS = $CONFIG_HEADERS 21065 CONFIG_LINKS = $CONFIG_LINKS 21066 CONFIG_COMMANDS = $CONFIG_COMMANDS 21067 $ $0 $@ 21068 21069on `(hostname || uname -n) 2>/dev/null | sed 1q` 21070" 21071 21072_ACEOF 21073 21074case $ac_config_files in *" 21075"*) set x $ac_config_files; shift; ac_config_files=$*;; 21076esac 21077 21078case $ac_config_headers in *" 21079"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21080esac 21081 21082 21083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21084# Files that config.status was made for. 21085config_files="$ac_config_files" 21086config_headers="$ac_config_headers" 21087config_commands="$ac_config_commands" 21088 21089_ACEOF 21090 21091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21092ac_cs_usage="\ 21093\`$as_me' instantiates files and other configuration actions 21094from templates according to the current configuration. Unless the files 21095and actions are specified as TAGs, all are instantiated by default. 21096 21097Usage: $0 [OPTION]... [TAG]... 21098 21099 -h, --help print this help, then exit 21100 -V, --version print version number and configuration settings, then exit 21101 --config print configuration, then exit 21102 -q, --quiet, --silent 21103 do not print progress messages 21104 -d, --debug don't remove temporary files 21105 --recheck update $as_me by reconfiguring in the same conditions 21106 --file=FILE[:TEMPLATE] 21107 instantiate the configuration file FILE 21108 --header=FILE[:TEMPLATE] 21109 instantiate the configuration header FILE 21110 21111Configuration files: 21112$config_files 21113 21114Configuration headers: 21115$config_headers 21116 21117Configuration commands: 21118$config_commands 21119 21120Report bugs to <[email protected]>." 21121 21122_ACEOF 21123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21124ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21125ac_cs_version="\\ 21126LibTIFF Software config.status 4.0.4beta 21127configured by $0, generated by GNU Autoconf 2.69, 21128 with options \\"\$ac_cs_config\\" 21129 21130Copyright (C) 2012 Free Software Foundation, Inc. 21131This config.status script is free software; the Free Software Foundation 21132gives unlimited permission to copy, distribute and modify it." 21133 21134ac_pwd='$ac_pwd' 21135srcdir='$srcdir' 21136INSTALL='$INSTALL' 21137MKDIR_P='$MKDIR_P' 21138AWK='$AWK' 21139test -n "\$AWK" || AWK=awk 21140_ACEOF 21141 21142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21143# The default lists apply if the user does not specify any file. 21144ac_need_defaults=: 21145while test $# != 0 21146do 21147 case $1 in 21148 --*=?*) 21149 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21151 ac_shift=: 21152 ;; 21153 --*=) 21154 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21155 ac_optarg= 21156 ac_shift=: 21157 ;; 21158 *) 21159 ac_option=$1 21160 ac_optarg=$2 21161 ac_shift=shift 21162 ;; 21163 esac 21164 21165 case $ac_option in 21166 # Handling of the options. 21167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21168 ac_cs_recheck=: ;; 21169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21170 $as_echo "$ac_cs_version"; exit ;; 21171 --config | --confi | --conf | --con | --co | --c ) 21172 $as_echo "$ac_cs_config"; exit ;; 21173 --debug | --debu | --deb | --de | --d | -d ) 21174 debug=: ;; 21175 --file | --fil | --fi | --f ) 21176 $ac_shift 21177 case $ac_optarg in 21178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21179 '') as_fn_error $? "missing file argument" ;; 21180 esac 21181 as_fn_append CONFIG_FILES " '$ac_optarg'" 21182 ac_need_defaults=false;; 21183 --header | --heade | --head | --hea ) 21184 $ac_shift 21185 case $ac_optarg in 21186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21187 esac 21188 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21189 ac_need_defaults=false;; 21190 --he | --h) 21191 # Conflict between --help and --header 21192 as_fn_error $? "ambiguous option: \`$1' 21193Try \`$0 --help' for more information.";; 21194 --help | --hel | -h ) 21195 $as_echo "$ac_cs_usage"; exit ;; 21196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21197 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21198 ac_cs_silent=: ;; 21199 21200 # This is an error. 21201 -*) as_fn_error $? "unrecognized option: \`$1' 21202Try \`$0 --help' for more information." ;; 21203 21204 *) as_fn_append ac_config_targets " $1" 21205 ac_need_defaults=false ;; 21206 21207 esac 21208 shift 21209done 21210 21211ac_configure_extra_args= 21212 21213if $ac_cs_silent; then 21214 exec 6>/dev/null 21215 ac_configure_extra_args="$ac_configure_extra_args --silent" 21216fi 21217 21218_ACEOF 21219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21220if \$ac_cs_recheck; then 21221 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21222 shift 21223 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21224 CONFIG_SHELL='$SHELL' 21225 export CONFIG_SHELL 21226 exec "\$@" 21227fi 21228 21229_ACEOF 21230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21231exec 5>>config.log 21232{ 21233 echo 21234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21235## Running $as_me. ## 21236_ASBOX 21237 $as_echo "$ac_log" 21238} >&5 21239 21240_ACEOF 21241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21242# 21243# INIT-COMMANDS 21244# 21245AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21246 21247 21248# The HP-UX ksh and POSIX shell print the target directory to stdout 21249# if CDPATH is set. 21250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21251 21252sed_quote_subst='$sed_quote_subst' 21253double_quote_subst='$double_quote_subst' 21254delay_variable_subst='$delay_variable_subst' 21255macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21256macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21257AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21258DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21259OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21260enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21261enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21262pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21263enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21264shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21265SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21266ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21267PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21268host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21269host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21270host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21271build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21272build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21273build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21274SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21275Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21276GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21277EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21278FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21279LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21280NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21281LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21282max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21283ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21284exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21285lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21286lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21287lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21288lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21289lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21290reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21291reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21292deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21293file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21294file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21295want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21296sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21297AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21298AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21299archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21300STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21301RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21302old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21303old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21304old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21305lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21306CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21307CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21308compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21309GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21310lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21311lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21312lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21313lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21314lt_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"`' 21315lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21316nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21317lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21318lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21319objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21320MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21321lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21322lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21323lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21324lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21325lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21326need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21327MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21328DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21329NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21330LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21331OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21332OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21333libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21334shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21335extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21336archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21337enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21338export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21339whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21340compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21341old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21342old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21343archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21344archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21345module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21346module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21347with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21348allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21349no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21350hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21351hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21352hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21353hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21354hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21355hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21356hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21357inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21358link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21359always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21360export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21361exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21362include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21363prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21364postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21365file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21366variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21367need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21368need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21369version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21370runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21371shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21372shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21373libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21374library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21375soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21376install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21377postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21378postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21379finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21380finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21381hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21382sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21383sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21384hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21385enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21386enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21387enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21388old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21389striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21390compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21391predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21392postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21393predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21394postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21395compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21396LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21397reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21398reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21399old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21400compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21401GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21402lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21403lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21404lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21405lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21406lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21407archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21408enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21409export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21410whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21411compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21412old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21413old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21414archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21415archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21416module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21417module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21418with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21419allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21420no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21421hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21422hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21423hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21424hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21425hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21426hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21427hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21428inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21429link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21430always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21431export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21432exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21433include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21434prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21435postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21436file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21437hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21438compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21439predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21440postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21441predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21442postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21443compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21444 21445LTCC='$LTCC' 21446LTCFLAGS='$LTCFLAGS' 21447compiler='$compiler_DEFAULT' 21448 21449# A function that is used when there is no print builtin or printf. 21450func_fallback_echo () 21451{ 21452 eval 'cat <<_LTECHO_EOF 21453\$1 21454_LTECHO_EOF' 21455} 21456 21457# Quote evaled strings. 21458for var in AS \ 21459DLLTOOL \ 21460OBJDUMP \ 21461SHELL \ 21462ECHO \ 21463PATH_SEPARATOR \ 21464SED \ 21465GREP \ 21466EGREP \ 21467FGREP \ 21468LD \ 21469NM \ 21470LN_S \ 21471lt_SP2NL \ 21472lt_NL2SP \ 21473reload_flag \ 21474deplibs_check_method \ 21475file_magic_cmd \ 21476file_magic_glob \ 21477want_nocaseglob \ 21478sharedlib_from_linklib_cmd \ 21479AR \ 21480AR_FLAGS \ 21481archiver_list_spec \ 21482STRIP \ 21483RANLIB \ 21484CC \ 21485CFLAGS \ 21486compiler \ 21487lt_cv_sys_global_symbol_pipe \ 21488lt_cv_sys_global_symbol_to_cdecl \ 21489lt_cv_sys_global_symbol_to_import \ 21490lt_cv_sys_global_symbol_to_c_name_address \ 21491lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21492lt_cv_nm_interface \ 21493nm_file_list_spec \ 21494lt_cv_truncate_bin \ 21495lt_prog_compiler_no_builtin_flag \ 21496lt_prog_compiler_pic \ 21497lt_prog_compiler_wl \ 21498lt_prog_compiler_static \ 21499lt_cv_prog_compiler_c_o \ 21500need_locks \ 21501MANIFEST_TOOL \ 21502DSYMUTIL \ 21503NMEDIT \ 21504LIPO \ 21505OTOOL \ 21506OTOOL64 \ 21507shrext_cmds \ 21508export_dynamic_flag_spec \ 21509whole_archive_flag_spec \ 21510compiler_needs_object \ 21511with_gnu_ld \ 21512allow_undefined_flag \ 21513no_undefined_flag \ 21514hardcode_libdir_flag_spec \ 21515hardcode_libdir_separator \ 21516exclude_expsyms \ 21517include_expsyms \ 21518file_list_spec \ 21519variables_saved_for_relink \ 21520libname_spec \ 21521library_names_spec \ 21522soname_spec \ 21523install_override_mode \ 21524finish_eval \ 21525old_striplib \ 21526striplib \ 21527compiler_lib_search_dirs \ 21528predep_objects \ 21529postdep_objects \ 21530predeps \ 21531postdeps \ 21532compiler_lib_search_path \ 21533LD_CXX \ 21534reload_flag_CXX \ 21535compiler_CXX \ 21536lt_prog_compiler_no_builtin_flag_CXX \ 21537lt_prog_compiler_pic_CXX \ 21538lt_prog_compiler_wl_CXX \ 21539lt_prog_compiler_static_CXX \ 21540lt_cv_prog_compiler_c_o_CXX \ 21541export_dynamic_flag_spec_CXX \ 21542whole_archive_flag_spec_CXX \ 21543compiler_needs_object_CXX \ 21544with_gnu_ld_CXX \ 21545allow_undefined_flag_CXX \ 21546no_undefined_flag_CXX \ 21547hardcode_libdir_flag_spec_CXX \ 21548hardcode_libdir_separator_CXX \ 21549exclude_expsyms_CXX \ 21550include_expsyms_CXX \ 21551file_list_spec_CXX \ 21552compiler_lib_search_dirs_CXX \ 21553predep_objects_CXX \ 21554postdep_objects_CXX \ 21555predeps_CXX \ 21556postdeps_CXX \ 21557compiler_lib_search_path_CXX; do 21558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21559 *[\\\\\\\`\\"\\\$]*) 21560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21561 ;; 21562 *) 21563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21564 ;; 21565 esac 21566done 21567 21568# Double-quote double-evaled strings. 21569for var in reload_cmds \ 21570old_postinstall_cmds \ 21571old_postuninstall_cmds \ 21572old_archive_cmds \ 21573extract_expsyms_cmds \ 21574old_archive_from_new_cmds \ 21575old_archive_from_expsyms_cmds \ 21576archive_cmds \ 21577archive_expsym_cmds \ 21578module_cmds \ 21579module_expsym_cmds \ 21580export_symbols_cmds \ 21581prelink_cmds \ 21582postlink_cmds \ 21583postinstall_cmds \ 21584postuninstall_cmds \ 21585finish_cmds \ 21586sys_lib_search_path_spec \ 21587sys_lib_dlsearch_path_spec \ 21588reload_cmds_CXX \ 21589old_archive_cmds_CXX \ 21590old_archive_from_new_cmds_CXX \ 21591old_archive_from_expsyms_cmds_CXX \ 21592archive_cmds_CXX \ 21593archive_expsym_cmds_CXX \ 21594module_cmds_CXX \ 21595module_expsym_cmds_CXX \ 21596export_symbols_cmds_CXX \ 21597prelink_cmds_CXX \ 21598postlink_cmds_CXX; do 21599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21600 *[\\\\\\\`\\"\\\$]*) 21601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21602 ;; 21603 *) 21604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21605 ;; 21606 esac 21607done 21608 21609ac_aux_dir='$ac_aux_dir' 21610 21611# See if we are running on zsh, and set the options that allow our 21612# commands through without removal of \ escapes INIT. 21613if test -n "\${ZSH_VERSION+set}"; then 21614 setopt NO_GLOB_SUBST 21615fi 21616 21617 21618 PACKAGE='$PACKAGE' 21619 VERSION='$VERSION' 21620 RM='$RM' 21621 ofile='$ofile' 21622 21623 21624 21625 21626 21627 21628_ACEOF 21629 21630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21631 21632# Handling of arguments. 21633for ac_config_target in $ac_config_targets 21634do 21635 case $ac_config_target in 21636 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21637 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21638 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 21639 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 21640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21641 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 21642 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 21643 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 21644 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 21645 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 21646 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 21647 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 21648 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 21649 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 21650 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 21651 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 21652 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 21653 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 21654 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 21655 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 21656 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 21657 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 21658 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21659 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 21660 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21661 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21662 21663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21664 esac 21665done 21666 21667 21668# If the user did not use the arguments to specify the items to instantiate, 21669# then the envvar interface is used. Set only those that are not. 21670# We use the long form for the default assignment because of an extremely 21671# bizarre bug on SunOS 4.1.3. 21672if $ac_need_defaults; then 21673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21676fi 21677 21678# Have a temporary directory for convenience. Make it in the build tree 21679# simply because there is no reason against having it here, and in addition, 21680# creating and moving files from /tmp can sometimes cause problems. 21681# Hook for its removal unless debugging. 21682# Note that there is a small window in which the directory will not be cleaned: 21683# after its creation but before its name has been assigned to `$tmp'. 21684$debug || 21685{ 21686 tmp= ac_tmp= 21687 trap 'exit_status=$? 21688 : "${ac_tmp:=$tmp}" 21689 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21690' 0 21691 trap 'as_fn_exit 1' 1 2 13 15 21692} 21693# Create a (secure) tmp directory for tmp files. 21694 21695{ 21696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21697 test -d "$tmp" 21698} || 21699{ 21700 tmp=./conf$$-$RANDOM 21701 (umask 077 && mkdir "$tmp") 21702} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21703ac_tmp=$tmp 21704 21705# Set up the scripts for CONFIG_FILES section. 21706# No need to generate them if there are no CONFIG_FILES. 21707# This happens for instance with `./config.status config.h'. 21708if test -n "$CONFIG_FILES"; then 21709 21710 21711ac_cr=`echo X | tr X '\015'` 21712# On cygwin, bash can eat \r inside `` if the user requested igncr. 21713# But we know of no other shell where ac_cr would be empty at this 21714# point, so we can use a bashism as a fallback. 21715if test "x$ac_cr" = x; then 21716 eval ac_cr=\$\'\\r\' 21717fi 21718ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21719if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21720 ac_cs_awk_cr='\\r' 21721else 21722 ac_cs_awk_cr=$ac_cr 21723fi 21724 21725echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21726_ACEOF 21727 21728 21729{ 21730 echo "cat >conf$$subs.awk <<_ACEOF" && 21731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21732 echo "_ACEOF" 21733} >conf$$subs.sh || 21734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21735ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21736ac_delim='%!_!# ' 21737for ac_last_try in false false false false false :; do 21738 . ./conf$$subs.sh || 21739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21740 21741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21742 if test $ac_delim_n = $ac_delim_num; then 21743 break 21744 elif $ac_last_try; then 21745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21746 else 21747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21748 fi 21749done 21750rm -f conf$$subs.sh 21751 21752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21753cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21754_ACEOF 21755sed -n ' 21756h 21757s/^/S["/; s/!.*/"]=/ 21758p 21759g 21760s/^[^!]*!// 21761:repl 21762t repl 21763s/'"$ac_delim"'$// 21764t delim 21765:nl 21766h 21767s/\(.\{148\}\)..*/\1/ 21768t more1 21769s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21770p 21771n 21772b repl 21773:more1 21774s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21775p 21776g 21777s/.\{148\}// 21778t nl 21779:delim 21780h 21781s/\(.\{148\}\)..*/\1/ 21782t more2 21783s/["\\]/\\&/g; s/^/"/; s/$/"/ 21784p 21785b 21786:more2 21787s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21788p 21789g 21790s/.\{148\}// 21791t delim 21792' <conf$$subs.awk | sed ' 21793/^[^""]/{ 21794 N 21795 s/\n// 21796} 21797' >>$CONFIG_STATUS || ac_write_fail=1 21798rm -f conf$$subs.awk 21799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21800_ACAWK 21801cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21802 for (key in S) S_is_set[key] = 1 21803 FS = "" 21804 21805} 21806{ 21807 line = $ 0 21808 nfields = split(line, field, "@") 21809 substed = 0 21810 len = length(field[1]) 21811 for (i = 2; i < nfields; i++) { 21812 key = field[i] 21813 keylen = length(key) 21814 if (S_is_set[key]) { 21815 value = S[key] 21816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21817 len += length(value) + length(field[++i]) 21818 substed = 1 21819 } else 21820 len += 1 + keylen 21821 } 21822 21823 print line 21824} 21825 21826_ACAWK 21827_ACEOF 21828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21829if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21831else 21832 cat 21833fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21834 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21835_ACEOF 21836 21837# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21838# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21839# trailing colons and then remove the whole line if VPATH becomes empty 21840# (actually we leave an empty line to preserve line numbers). 21841if test "x$srcdir" = x.; then 21842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21843h 21844s/// 21845s/^/:/ 21846s/[ ]*$/:/ 21847s/:\$(srcdir):/:/g 21848s/:\${srcdir}:/:/g 21849s/:@srcdir@:/:/g 21850s/^:*// 21851s/:*$// 21852x 21853s/\(=[ ]*\).*/\1/ 21854G 21855s/\n// 21856s/^[^=]*=[ ]*$// 21857}' 21858fi 21859 21860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21861fi # test -n "$CONFIG_FILES" 21862 21863# Set up the scripts for CONFIG_HEADERS section. 21864# No need to generate them if there are no CONFIG_HEADERS. 21865# This happens for instance with `./config.status Makefile'. 21866if test -n "$CONFIG_HEADERS"; then 21867cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21868BEGIN { 21869_ACEOF 21870 21871# Transform confdefs.h into an awk script `defines.awk', embedded as 21872# here-document in config.status, that substitutes the proper values into 21873# config.h.in to produce config.h. 21874 21875# Create a delimiter string that does not exist in confdefs.h, to ease 21876# handling of long lines. 21877ac_delim='%!_!# ' 21878for ac_last_try in false false :; do 21879 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21880 if test -z "$ac_tt"; then 21881 break 21882 elif $ac_last_try; then 21883 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21884 else 21885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21886 fi 21887done 21888 21889# For the awk script, D is an array of macro values keyed by name, 21890# likewise P contains macro parameters if any. Preserve backslash 21891# newline sequences. 21892 21893ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21894sed -n ' 21895s/.\{148\}/&'"$ac_delim"'/g 21896t rset 21897:rset 21898s/^[ ]*#[ ]*define[ ][ ]*/ / 21899t def 21900d 21901:def 21902s/\\$// 21903t bsnl 21904s/["\\]/\\&/g 21905s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21906D["\1"]=" \3"/p 21907s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21908d 21909:bsnl 21910s/["\\]/\\&/g 21911s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21912D["\1"]=" \3\\\\\\n"\\/p 21913t cont 21914s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21915t cont 21916d 21917:cont 21918n 21919s/.\{148\}/&'"$ac_delim"'/g 21920t clear 21921:clear 21922s/\\$// 21923t bsnlc 21924s/["\\]/\\&/g; s/^/"/; s/$/"/p 21925d 21926:bsnlc 21927s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21928b cont 21929' <confdefs.h | sed ' 21930s/'"$ac_delim"'/"\\\ 21931"/g' >>$CONFIG_STATUS || ac_write_fail=1 21932 21933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21934 for (key in D) D_is_set[key] = 1 21935 FS = "" 21936} 21937/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21938 line = \$ 0 21939 split(line, arg, " ") 21940 if (arg[1] == "#") { 21941 defundef = arg[2] 21942 mac1 = arg[3] 21943 } else { 21944 defundef = substr(arg[1], 2) 21945 mac1 = arg[2] 21946 } 21947 split(mac1, mac2, "(") #) 21948 macro = mac2[1] 21949 prefix = substr(line, 1, index(line, defundef) - 1) 21950 if (D_is_set[macro]) { 21951 # Preserve the white space surrounding the "#". 21952 print prefix "define", macro P[macro] D[macro] 21953 next 21954 } else { 21955 # Replace #undef with comments. This is necessary, for example, 21956 # in the case of _POSIX_SOURCE, which is predefined and required 21957 # on some systems where configure will not decide to define it. 21958 if (defundef == "undef") { 21959 print "/*", prefix defundef, macro, "*/" 21960 next 21961 } 21962 } 21963} 21964{ print } 21965_ACAWK 21966_ACEOF 21967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21968 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21969fi # test -n "$CONFIG_HEADERS" 21970 21971 21972eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21973shift 21974for ac_tag 21975do 21976 case $ac_tag in 21977 :[FHLC]) ac_mode=$ac_tag; continue;; 21978 esac 21979 case $ac_mode$ac_tag in 21980 :[FHL]*:*);; 21981 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21982 :[FH]-) ac_tag=-:-;; 21983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21984 esac 21985 ac_save_IFS=$IFS 21986 IFS=: 21987 set x $ac_tag 21988 IFS=$ac_save_IFS 21989 shift 21990 ac_file=$1 21991 shift 21992 21993 case $ac_mode in 21994 :L) ac_source=$1;; 21995 :[FH]) 21996 ac_file_inputs= 21997 for ac_f 21998 do 21999 case $ac_f in 22000 -) ac_f="$ac_tmp/stdin";; 22001 *) # Look for the file first in the build tree, then in the source tree 22002 # (if the path is not absolute). The absolute path cannot be DOS-style, 22003 # because $ac_f cannot contain `:'. 22004 test -f "$ac_f" || 22005 case $ac_f in 22006 [\\/$]*) false;; 22007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22008 esac || 22009 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22010 esac 22011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22012 as_fn_append ac_file_inputs " '$ac_f'" 22013 done 22014 22015 # Let's still pretend it is `configure' which instantiates (i.e., don't 22016 # use $as_me), people would be surprised to read: 22017 # /* config.h. Generated by config.status. */ 22018 configure_input='Generated from '` 22019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22020 `' by configure.' 22021 if test x"$ac_file" != x-; then 22022 configure_input="$ac_file. $configure_input" 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22024$as_echo "$as_me: creating $ac_file" >&6;} 22025 fi 22026 # Neutralize special characters interpreted by sed in replacement strings. 22027 case $configure_input in #( 22028 *\&* | *\|* | *\\* ) 22029 ac_sed_conf_input=`$as_echo "$configure_input" | 22030 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22031 *) ac_sed_conf_input=$configure_input;; 22032 esac 22033 22034 case $ac_tag in 22035 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22037 esac 22038 ;; 22039 esac 22040 22041 ac_dir=`$as_dirname -- "$ac_file" || 22042$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22043 X"$ac_file" : 'X\(//\)[^/]' \| \ 22044 X"$ac_file" : 'X\(//\)$' \| \ 22045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22046$as_echo X"$ac_file" | 22047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22048 s//\1/ 22049 q 22050 } 22051 /^X\(\/\/\)[^/].*/{ 22052 s//\1/ 22053 q 22054 } 22055 /^X\(\/\/\)$/{ 22056 s//\1/ 22057 q 22058 } 22059 /^X\(\/\).*/{ 22060 s//\1/ 22061 q 22062 } 22063 s/.*/./; q'` 22064 as_dir="$ac_dir"; as_fn_mkdir_p 22065 ac_builddir=. 22066 22067case "$ac_dir" in 22068.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22069*) 22070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22071 # A ".." for each directory in $ac_dir_suffix. 22072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22073 case $ac_top_builddir_sub in 22074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22076 esac ;; 22077esac 22078ac_abs_top_builddir=$ac_pwd 22079ac_abs_builddir=$ac_pwd$ac_dir_suffix 22080# for backward compatibility: 22081ac_top_builddir=$ac_top_build_prefix 22082 22083case $srcdir in 22084 .) # We are building in place. 22085 ac_srcdir=. 22086 ac_top_srcdir=$ac_top_builddir_sub 22087 ac_abs_top_srcdir=$ac_pwd ;; 22088 [\\/]* | ?:[\\/]* ) # Absolute name. 22089 ac_srcdir=$srcdir$ac_dir_suffix; 22090 ac_top_srcdir=$srcdir 22091 ac_abs_top_srcdir=$srcdir ;; 22092 *) # Relative name. 22093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22094 ac_top_srcdir=$ac_top_build_prefix$srcdir 22095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22096esac 22097ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22098 22099 22100 case $ac_mode in 22101 :F) 22102 # 22103 # CONFIG_FILE 22104 # 22105 22106 case $INSTALL in 22107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22109 esac 22110 ac_MKDIR_P=$MKDIR_P 22111 case $MKDIR_P in 22112 [\\/$]* | ?:[\\/]* ) ;; 22113 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22114 esac 22115_ACEOF 22116 22117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22118# If the template does not know about datarootdir, expand it. 22119# FIXME: This hack should be removed a few years after 2.60. 22120ac_datarootdir_hack=; ac_datarootdir_seen= 22121ac_sed_dataroot=' 22122/datarootdir/ { 22123 p 22124 q 22125} 22126/@datadir@/p 22127/@docdir@/p 22128/@infodir@/p 22129/@localedir@/p 22130/@mandir@/p' 22131case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22132*datarootdir*) ac_datarootdir_seen=yes;; 22133*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22135$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22136_ACEOF 22137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22138 ac_datarootdir_hack=' 22139 s&@datadir@&$datadir&g 22140 s&@docdir@&$docdir&g 22141 s&@infodir@&$infodir&g 22142 s&@localedir@&$localedir&g 22143 s&@mandir@&$mandir&g 22144 s&\\\${datarootdir}&$datarootdir&g' ;; 22145esac 22146_ACEOF 22147 22148# Neutralize VPATH when `$srcdir' = `.'. 22149# Shell code in configure.ac might set extrasub. 22150# FIXME: do we really want to maintain this feature? 22151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22152ac_sed_extra="$ac_vpsub 22153$extrasub 22154_ACEOF 22155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22156:t 22157/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22158s|@configure_input@|$ac_sed_conf_input|;t t 22159s&@top_builddir@&$ac_top_builddir_sub&;t t 22160s&@top_build_prefix@&$ac_top_build_prefix&;t t 22161s&@srcdir@&$ac_srcdir&;t t 22162s&@abs_srcdir@&$ac_abs_srcdir&;t t 22163s&@top_srcdir@&$ac_top_srcdir&;t t 22164s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22165s&@builddir@&$ac_builddir&;t t 22166s&@abs_builddir@&$ac_abs_builddir&;t t 22167s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22168s&@INSTALL@&$ac_INSTALL&;t t 22169s&@MKDIR_P@&$ac_MKDIR_P&;t t 22170$ac_datarootdir_hack 22171" 22172eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22173 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22174 22175test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22176 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22178 "$ac_tmp/out"`; test -z "$ac_out"; } && 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22180which seems to be undefined. Please make sure it is defined" >&5 22181$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22182which seems to be undefined. Please make sure it is defined" >&2;} 22183 22184 rm -f "$ac_tmp/stdin" 22185 case $ac_file in 22186 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22187 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22188 esac \ 22189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22190 ;; 22191 :H) 22192 # 22193 # CONFIG_HEADER 22194 # 22195 if test x"$ac_file" != x-; then 22196 { 22197 $as_echo "/* $configure_input */" \ 22198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22199 } >"$ac_tmp/config.h" \ 22200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22201 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22202 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22203$as_echo "$as_me: $ac_file is unchanged" >&6;} 22204 else 22205 rm -f "$ac_file" 22206 mv "$ac_tmp/config.h" "$ac_file" \ 22207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22208 fi 22209 else 22210 $as_echo "/* $configure_input */" \ 22211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22212 || as_fn_error $? "could not create -" "$LINENO" 5 22213 fi 22214# Compute "$ac_file"'s index in $config_headers. 22215_am_arg="$ac_file" 22216_am_stamp_count=1 22217for _am_header in $config_headers :; do 22218 case $_am_header in 22219 $_am_arg | $_am_arg:* ) 22220 break ;; 22221 * ) 22222 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22223 esac 22224done 22225echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22226$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22227 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22228 X"$_am_arg" : 'X\(//\)$' \| \ 22229 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22230$as_echo X"$_am_arg" | 22231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22232 s//\1/ 22233 q 22234 } 22235 /^X\(\/\/\)[^/].*/{ 22236 s//\1/ 22237 q 22238 } 22239 /^X\(\/\/\)$/{ 22240 s//\1/ 22241 q 22242 } 22243 /^X\(\/\).*/{ 22244 s//\1/ 22245 q 22246 } 22247 s/.*/./; q'`/stamp-h$_am_stamp_count 22248 ;; 22249 22250 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22251$as_echo "$as_me: executing $ac_file commands" >&6;} 22252 ;; 22253 esac 22254 22255 22256 case $ac_file$ac_mode in 22257 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22258 # Older Autoconf quotes --file arguments for eval, but not when files 22259 # are listed without --file. Let's play safe and only enable the eval 22260 # if we detect the quoting. 22261 case $CONFIG_FILES in 22262 *\'*) eval set x "$CONFIG_FILES" ;; 22263 *) set x $CONFIG_FILES ;; 22264 esac 22265 shift 22266 for mf 22267 do 22268 # Strip MF so we end up with the name of the file. 22269 mf=`echo "$mf" | sed -e 's/:.*$//'` 22270 # Check whether this is an Automake generated Makefile or not. 22271 # We used to match only the files named 'Makefile.in', but 22272 # some people rename them; so instead we look at the file content. 22273 # Grep'ing the first line is not enough: some people post-process 22274 # each Makefile.in and add a new line on top of each file to say so. 22275 # Grep'ing the whole file is not good either: AIX grep has a line 22276 # limit of 2048, but all sed's we know have understand at least 4000. 22277 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22278 dirpart=`$as_dirname -- "$mf" || 22279$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22280 X"$mf" : 'X\(//\)[^/]' \| \ 22281 X"$mf" : 'X\(//\)$' \| \ 22282 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22283$as_echo X"$mf" | 22284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22285 s//\1/ 22286 q 22287 } 22288 /^X\(\/\/\)[^/].*/{ 22289 s//\1/ 22290 q 22291 } 22292 /^X\(\/\/\)$/{ 22293 s//\1/ 22294 q 22295 } 22296 /^X\(\/\).*/{ 22297 s//\1/ 22298 q 22299 } 22300 s/.*/./; q'` 22301 else 22302 continue 22303 fi 22304 # Extract the definition of DEPDIR, am__include, and am__quote 22305 # from the Makefile without running 'make'. 22306 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22307 test -z "$DEPDIR" && continue 22308 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22309 test -z "$am__include" && continue 22310 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22311 # Find all dependency output files, they are included files with 22312 # $(DEPDIR) in their names. We invoke sed twice because it is the 22313 # simplest approach to changing $(DEPDIR) to its actual value in the 22314 # expansion. 22315 for file in `sed -n " 22316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22318 # Make sure the directory exists. 22319 test -f "$dirpart/$file" && continue 22320 fdir=`$as_dirname -- "$file" || 22321$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22322 X"$file" : 'X\(//\)[^/]' \| \ 22323 X"$file" : 'X\(//\)$' \| \ 22324 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22325$as_echo X"$file" | 22326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22327 s//\1/ 22328 q 22329 } 22330 /^X\(\/\/\)[^/].*/{ 22331 s//\1/ 22332 q 22333 } 22334 /^X\(\/\/\)$/{ 22335 s//\1/ 22336 q 22337 } 22338 /^X\(\/\).*/{ 22339 s//\1/ 22340 q 22341 } 22342 s/.*/./; q'` 22343 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22344 # echo "creating $dirpart/$file" 22345 echo '# dummy' > "$dirpart/$file" 22346 done 22347 done 22348} 22349 ;; 22350 "libtool":C) 22351 22352 # See if we are running on zsh, and set the options that allow our 22353 # commands through without removal of \ escapes. 22354 if test -n "${ZSH_VERSION+set}"; then 22355 setopt NO_GLOB_SUBST 22356 fi 22357 22358 cfgfile=${ofile}T 22359 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22360 $RM "$cfgfile" 22361 22362 cat <<_LT_EOF >> "$cfgfile" 22363#! $SHELL 22364# Generated automatically by $as_me ($PACKAGE) $VERSION 22365# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22366# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22367 22368# Provide generalized library-building support services. 22369# Written by Gordon Matzigkeit, 1996 22370 22371# Copyright (C) 2014 Free Software Foundation, Inc. 22372# This is free software; see the source for copying conditions. There is NO 22373# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22374 22375# GNU Libtool is free software; you can redistribute it and/or modify 22376# it under the terms of the GNU General Public License as published by 22377# the Free Software Foundation; either version 2 of of the License, or 22378# (at your option) any later version. 22379# 22380# As a special exception to the GNU General Public License, if you 22381# distribute this file as part of a program or library that is built 22382# using GNU Libtool, you may include this file under the same 22383# distribution terms that you use for the rest of that program. 22384# 22385# GNU Libtool is distributed in the hope that it will be useful, but 22386# WITHOUT ANY WARRANTY; without even the implied warranty of 22387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22388# GNU General Public License for more details. 22389# 22390# You should have received a copy of the GNU General Public License 22391# along with this program. If not, see <http://www.gnu.org/licenses/>. 22392 22393 22394# The names of the tagged configurations supported by this script. 22395available_tags='CXX ' 22396 22397# ### BEGIN LIBTOOL CONFIG 22398 22399# Which release of libtool.m4 was used? 22400macro_version=$macro_version 22401macro_revision=$macro_revision 22402 22403# Assembler program. 22404AS=$lt_AS 22405 22406# DLL creation program. 22407DLLTOOL=$lt_DLLTOOL 22408 22409# Object dumper program. 22410OBJDUMP=$lt_OBJDUMP 22411 22412# Whether or not to build shared libraries. 22413build_libtool_libs=$enable_shared 22414 22415# Whether or not to build static libraries. 22416build_old_libs=$enable_static 22417 22418# What type of objects to build. 22419pic_mode=$pic_mode 22420 22421# Whether or not to optimize for fast installation. 22422fast_install=$enable_fast_install 22423 22424# Shared archive member basename,for filename based shared library versioning on AIX. 22425shared_archive_member_spec=$shared_archive_member_spec 22426 22427# Shell to use when invoking shell scripts. 22428SHELL=$lt_SHELL 22429 22430# An echo program that protects backslashes. 22431ECHO=$lt_ECHO 22432 22433# The PATH separator for the build system. 22434PATH_SEPARATOR=$lt_PATH_SEPARATOR 22435 22436# The host system. 22437host_alias=$host_alias 22438host=$host 22439host_os=$host_os 22440 22441# The build system. 22442build_alias=$build_alias 22443build=$build 22444build_os=$build_os 22445 22446# A sed program that does not truncate output. 22447SED=$lt_SED 22448 22449# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22450Xsed="\$SED -e 1s/^X//" 22451 22452# A grep program that handles long lines. 22453GREP=$lt_GREP 22454 22455# An ERE matcher. 22456EGREP=$lt_EGREP 22457 22458# A literal string matcher. 22459FGREP=$lt_FGREP 22460 22461# A BSD- or MS-compatible name lister. 22462NM=$lt_NM 22463 22464# Whether we need soft or hard links. 22465LN_S=$lt_LN_S 22466 22467# What is the maximum length of a command? 22468max_cmd_len=$max_cmd_len 22469 22470# Object file suffix (normally "o"). 22471objext=$ac_objext 22472 22473# Executable file suffix (normally ""). 22474exeext=$exeext 22475 22476# whether the shell understands "unset". 22477lt_unset=$lt_unset 22478 22479# turn spaces into newlines. 22480SP2NL=$lt_lt_SP2NL 22481 22482# turn newlines into spaces. 22483NL2SP=$lt_lt_NL2SP 22484 22485# convert \$build file names to \$host format. 22486to_host_file_cmd=$lt_cv_to_host_file_cmd 22487 22488# convert \$build files to toolchain format. 22489to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22490 22491# Method to check whether dependent libraries are shared objects. 22492deplibs_check_method=$lt_deplibs_check_method 22493 22494# Command to use when deplibs_check_method = "file_magic". 22495file_magic_cmd=$lt_file_magic_cmd 22496 22497# How to find potential files when deplibs_check_method = "file_magic". 22498file_magic_glob=$lt_file_magic_glob 22499 22500# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22501want_nocaseglob=$lt_want_nocaseglob 22502 22503# Command to associate shared and link libraries. 22504sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22505 22506# The archiver. 22507AR=$lt_AR 22508 22509# Flags to create an archive. 22510AR_FLAGS=$lt_AR_FLAGS 22511 22512# How to feed a file listing to the archiver. 22513archiver_list_spec=$lt_archiver_list_spec 22514 22515# A symbol stripping program. 22516STRIP=$lt_STRIP 22517 22518# Commands used to install an old-style archive. 22519RANLIB=$lt_RANLIB 22520old_postinstall_cmds=$lt_old_postinstall_cmds 22521old_postuninstall_cmds=$lt_old_postuninstall_cmds 22522 22523# Whether to use a lock for old archive extraction. 22524lock_old_archive_extraction=$lock_old_archive_extraction 22525 22526# A C compiler. 22527LTCC=$lt_CC 22528 22529# LTCC compiler flags. 22530LTCFLAGS=$lt_CFLAGS 22531 22532# Take the output of nm and produce a listing of raw symbols and C names. 22533global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22534 22535# Transform the output of nm in a proper C declaration. 22536global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22537 22538# Transform the output of nm into a list of symbols to manually relocate. 22539global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22540 22541# Transform the output of nm in a C name address pair. 22542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22543 22544# Transform the output of nm in a C name address pair when lib prefix is needed. 22545global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22546 22547# The name lister interface. 22548nm_interface=$lt_lt_cv_nm_interface 22549 22550# Specify filename containing input files for \$NM. 22551nm_file_list_spec=$lt_nm_file_list_spec 22552 22553# The root where to search for dependent libraries,and where our libraries should be installed. 22554lt_sysroot=$lt_sysroot 22555 22556# Command to truncate a binary pipe. 22557lt_truncate_bin=$lt_lt_cv_truncate_bin 22558 22559# The name of the directory that contains temporary libtool files. 22560objdir=$objdir 22561 22562# Used to examine libraries when file_magic_cmd begins with "file". 22563MAGIC_CMD=$MAGIC_CMD 22564 22565# Must we lock files when doing compilation? 22566need_locks=$lt_need_locks 22567 22568# Manifest tool. 22569MANIFEST_TOOL=$lt_MANIFEST_TOOL 22570 22571# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22572DSYMUTIL=$lt_DSYMUTIL 22573 22574# Tool to change global to local symbols on Mac OS X. 22575NMEDIT=$lt_NMEDIT 22576 22577# Tool to manipulate fat objects and archives on Mac OS X. 22578LIPO=$lt_LIPO 22579 22580# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22581OTOOL=$lt_OTOOL 22582 22583# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22584OTOOL64=$lt_OTOOL64 22585 22586# Old archive suffix (normally "a"). 22587libext=$libext 22588 22589# Shared library suffix (normally ".so"). 22590shrext_cmds=$lt_shrext_cmds 22591 22592# The commands to extract the exported symbol list from a shared archive. 22593extract_expsyms_cmds=$lt_extract_expsyms_cmds 22594 22595# Variables whose values should be saved in libtool wrapper scripts and 22596# restored at link time. 22597variables_saved_for_relink=$lt_variables_saved_for_relink 22598 22599# Do we need the "lib" prefix for modules? 22600need_lib_prefix=$need_lib_prefix 22601 22602# Do we need a version for libraries? 22603need_version=$need_version 22604 22605# Library versioning type. 22606version_type=$version_type 22607 22608# Shared library runtime path variable. 22609runpath_var=$runpath_var 22610 22611# Shared library path variable. 22612shlibpath_var=$shlibpath_var 22613 22614# Is shlibpath searched before the hard-coded library search path? 22615shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22616 22617# Format of library name prefix. 22618libname_spec=$lt_libname_spec 22619 22620# List of archive names. First name is the real one, the rest are links. 22621# The last name is the one that the linker finds with -lNAME 22622library_names_spec=$lt_library_names_spec 22623 22624# The coded name of the library, if different from the real name. 22625soname_spec=$lt_soname_spec 22626 22627# Permission mode override for installation of shared libraries. 22628install_override_mode=$lt_install_override_mode 22629 22630# Command to use after installation of a shared archive. 22631postinstall_cmds=$lt_postinstall_cmds 22632 22633# Command to use after uninstallation of a shared archive. 22634postuninstall_cmds=$lt_postuninstall_cmds 22635 22636# Commands used to finish a libtool library installation in a directory. 22637finish_cmds=$lt_finish_cmds 22638 22639# As "finish_cmds", except a single script fragment to be evaled but 22640# not shown. 22641finish_eval=$lt_finish_eval 22642 22643# Whether we should hardcode library paths into libraries. 22644hardcode_into_libs=$hardcode_into_libs 22645 22646# Compile-time system search path for libraries. 22647sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22648 22649# Run-time system search path for libraries. 22650sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22651 22652# Whether dlopen is supported. 22653dlopen_support=$enable_dlopen 22654 22655# Whether dlopen of programs is supported. 22656dlopen_self=$enable_dlopen_self 22657 22658# Whether dlopen of statically linked programs is supported. 22659dlopen_self_static=$enable_dlopen_self_static 22660 22661# Commands to strip libraries. 22662old_striplib=$lt_old_striplib 22663striplib=$lt_striplib 22664 22665 22666# The linker used to build libraries. 22667LD=$lt_LD 22668 22669# How to create reloadable object files. 22670reload_flag=$lt_reload_flag 22671reload_cmds=$lt_reload_cmds 22672 22673# Commands used to build an old-style archive. 22674old_archive_cmds=$lt_old_archive_cmds 22675 22676# A language specific compiler. 22677CC=$lt_compiler 22678 22679# Is the compiler the GNU compiler? 22680with_gcc=$GCC 22681 22682# Compiler flag to turn off builtin functions. 22683no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22684 22685# Additional compiler flags for building library objects. 22686pic_flag=$lt_lt_prog_compiler_pic 22687 22688# How to pass a linker flag through the compiler. 22689wl=$lt_lt_prog_compiler_wl 22690 22691# Compiler flag to prevent dynamic linking. 22692link_static_flag=$lt_lt_prog_compiler_static 22693 22694# Does compiler simultaneously support -c and -o options? 22695compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22696 22697# Whether or not to add -lc for building shared libraries. 22698build_libtool_need_lc=$archive_cmds_need_lc 22699 22700# Whether or not to disallow shared libs when runtime libs are static. 22701allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22702 22703# Compiler flag to allow reflexive dlopens. 22704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22705 22706# Compiler flag to generate shared objects directly from archives. 22707whole_archive_flag_spec=$lt_whole_archive_flag_spec 22708 22709# Whether the compiler copes with passing no objects directly. 22710compiler_needs_object=$lt_compiler_needs_object 22711 22712# Create an old-style archive from a shared archive. 22713old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22714 22715# Create a temporary old-style archive to link instead of a shared archive. 22716old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22717 22718# Commands used to build a shared archive. 22719archive_cmds=$lt_archive_cmds 22720archive_expsym_cmds=$lt_archive_expsym_cmds 22721 22722# Commands used to build a loadable module if different from building 22723# a shared archive. 22724module_cmds=$lt_module_cmds 22725module_expsym_cmds=$lt_module_expsym_cmds 22726 22727# Whether we are building with GNU ld or not. 22728with_gnu_ld=$lt_with_gnu_ld 22729 22730# Flag that allows shared libraries with undefined symbols to be built. 22731allow_undefined_flag=$lt_allow_undefined_flag 22732 22733# Flag that enforces no undefined symbols. 22734no_undefined_flag=$lt_no_undefined_flag 22735 22736# Flag to hardcode \$libdir into a binary during linking. 22737# This must work even if \$libdir does not exist 22738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22739 22740# Whether we need a single "-rpath" flag with a separated argument. 22741hardcode_libdir_separator=$lt_hardcode_libdir_separator 22742 22743# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22744# DIR into the resulting binary. 22745hardcode_direct=$hardcode_direct 22746 22747# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22748# DIR into the resulting binary and the resulting library dependency is 22749# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22750# library is relocated. 22751hardcode_direct_absolute=$hardcode_direct_absolute 22752 22753# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22754# into the resulting binary. 22755hardcode_minus_L=$hardcode_minus_L 22756 22757# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22758# into the resulting binary. 22759hardcode_shlibpath_var=$hardcode_shlibpath_var 22760 22761# Set to "yes" if building a shared library automatically hardcodes DIR 22762# into the library and all subsequent libraries and executables linked 22763# against it. 22764hardcode_automatic=$hardcode_automatic 22765 22766# Set to yes if linker adds runtime paths of dependent libraries 22767# to runtime path list. 22768inherit_rpath=$inherit_rpath 22769 22770# Whether libtool must link a program against all its dependency libraries. 22771link_all_deplibs=$link_all_deplibs 22772 22773# Set to "yes" if exported symbols are required. 22774always_export_symbols=$always_export_symbols 22775 22776# The commands to list exported symbols. 22777export_symbols_cmds=$lt_export_symbols_cmds 22778 22779# Symbols that should not be listed in the preloaded symbols. 22780exclude_expsyms=$lt_exclude_expsyms 22781 22782# Symbols that must always be exported. 22783include_expsyms=$lt_include_expsyms 22784 22785# Commands necessary for linking programs (against libraries) with templates. 22786prelink_cmds=$lt_prelink_cmds 22787 22788# Commands necessary for finishing linking programs. 22789postlink_cmds=$lt_postlink_cmds 22790 22791# Specify filename containing input files. 22792file_list_spec=$lt_file_list_spec 22793 22794# How to hardcode a shared library path into an executable. 22795hardcode_action=$hardcode_action 22796 22797# The directories searched by this compiler when creating a shared library. 22798compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22799 22800# Dependencies to place before and after the objects being linked to 22801# create a shared library. 22802predep_objects=$lt_predep_objects 22803postdep_objects=$lt_postdep_objects 22804predeps=$lt_predeps 22805postdeps=$lt_postdeps 22806 22807# The library search path used internally by the compiler when linking 22808# a shared library. 22809compiler_lib_search_path=$lt_compiler_lib_search_path 22810 22811# ### END LIBTOOL CONFIG 22812 22813_LT_EOF 22814 22815 case $host_os in 22816 aix3*) 22817 cat <<\_LT_EOF >> "$cfgfile" 22818# AIX sometimes has problems with the GCC collect2 program. For some 22819# reason, if we set the COLLECT_NAMES environment variable, the problems 22820# vanish in a puff of smoke. 22821if test set != "${COLLECT_NAMES+set}"; then 22822 COLLECT_NAMES= 22823 export COLLECT_NAMES 22824fi 22825_LT_EOF 22826 ;; 22827 esac 22828 22829 22830ltmain=$ac_aux_dir/ltmain.sh 22831 22832 22833 # We use sed instead of cat because bash on DJGPP gets confused if 22834 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22835 # text mode, it properly converts lines to CR/LF. This bash problem 22836 # is reportedly fixed, but why not run on old versions too? 22837 sed '$q' "$ltmain" >> "$cfgfile" \ 22838 || (rm -f "$cfgfile"; exit 1) 22839 22840 mv -f "$cfgfile" "$ofile" || 22841 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22842 chmod +x "$ofile" 22843 22844 22845 cat <<_LT_EOF >> "$ofile" 22846 22847# ### BEGIN LIBTOOL TAG CONFIG: CXX 22848 22849# The linker used to build libraries. 22850LD=$lt_LD_CXX 22851 22852# How to create reloadable object files. 22853reload_flag=$lt_reload_flag_CXX 22854reload_cmds=$lt_reload_cmds_CXX 22855 22856# Commands used to build an old-style archive. 22857old_archive_cmds=$lt_old_archive_cmds_CXX 22858 22859# A language specific compiler. 22860CC=$lt_compiler_CXX 22861 22862# Is the compiler the GNU compiler? 22863with_gcc=$GCC_CXX 22864 22865# Compiler flag to turn off builtin functions. 22866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22867 22868# Additional compiler flags for building library objects. 22869pic_flag=$lt_lt_prog_compiler_pic_CXX 22870 22871# How to pass a linker flag through the compiler. 22872wl=$lt_lt_prog_compiler_wl_CXX 22873 22874# Compiler flag to prevent dynamic linking. 22875link_static_flag=$lt_lt_prog_compiler_static_CXX 22876 22877# Does compiler simultaneously support -c and -o options? 22878compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22879 22880# Whether or not to add -lc for building shared libraries. 22881build_libtool_need_lc=$archive_cmds_need_lc_CXX 22882 22883# Whether or not to disallow shared libs when runtime libs are static. 22884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22885 22886# Compiler flag to allow reflexive dlopens. 22887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22888 22889# Compiler flag to generate shared objects directly from archives. 22890whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22891 22892# Whether the compiler copes with passing no objects directly. 22893compiler_needs_object=$lt_compiler_needs_object_CXX 22894 22895# Create an old-style archive from a shared archive. 22896old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22897 22898# Create a temporary old-style archive to link instead of a shared archive. 22899old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22900 22901# Commands used to build a shared archive. 22902archive_cmds=$lt_archive_cmds_CXX 22903archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22904 22905# Commands used to build a loadable module if different from building 22906# a shared archive. 22907module_cmds=$lt_module_cmds_CXX 22908module_expsym_cmds=$lt_module_expsym_cmds_CXX 22909 22910# Whether we are building with GNU ld or not. 22911with_gnu_ld=$lt_with_gnu_ld_CXX 22912 22913# Flag that allows shared libraries with undefined symbols to be built. 22914allow_undefined_flag=$lt_allow_undefined_flag_CXX 22915 22916# Flag that enforces no undefined symbols. 22917no_undefined_flag=$lt_no_undefined_flag_CXX 22918 22919# Flag to hardcode \$libdir into a binary during linking. 22920# This must work even if \$libdir does not exist 22921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22922 22923# Whether we need a single "-rpath" flag with a separated argument. 22924hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22925 22926# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22927# DIR into the resulting binary. 22928hardcode_direct=$hardcode_direct_CXX 22929 22930# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22931# DIR into the resulting binary and the resulting library dependency is 22932# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22933# library is relocated. 22934hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22935 22936# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22937# into the resulting binary. 22938hardcode_minus_L=$hardcode_minus_L_CXX 22939 22940# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22941# into the resulting binary. 22942hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22943 22944# Set to "yes" if building a shared library automatically hardcodes DIR 22945# into the library and all subsequent libraries and executables linked 22946# against it. 22947hardcode_automatic=$hardcode_automatic_CXX 22948 22949# Set to yes if linker adds runtime paths of dependent libraries 22950# to runtime path list. 22951inherit_rpath=$inherit_rpath_CXX 22952 22953# Whether libtool must link a program against all its dependency libraries. 22954link_all_deplibs=$link_all_deplibs_CXX 22955 22956# Set to "yes" if exported symbols are required. 22957always_export_symbols=$always_export_symbols_CXX 22958 22959# The commands to list exported symbols. 22960export_symbols_cmds=$lt_export_symbols_cmds_CXX 22961 22962# Symbols that should not be listed in the preloaded symbols. 22963exclude_expsyms=$lt_exclude_expsyms_CXX 22964 22965# Symbols that must always be exported. 22966include_expsyms=$lt_include_expsyms_CXX 22967 22968# Commands necessary for linking programs (against libraries) with templates. 22969prelink_cmds=$lt_prelink_cmds_CXX 22970 22971# Commands necessary for finishing linking programs. 22972postlink_cmds=$lt_postlink_cmds_CXX 22973 22974# Specify filename containing input files. 22975file_list_spec=$lt_file_list_spec_CXX 22976 22977# How to hardcode a shared library path into an executable. 22978hardcode_action=$hardcode_action_CXX 22979 22980# The directories searched by this compiler when creating a shared library. 22981compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22982 22983# Dependencies to place before and after the objects being linked to 22984# create a shared library. 22985predep_objects=$lt_predep_objects_CXX 22986postdep_objects=$lt_postdep_objects_CXX 22987predeps=$lt_predeps_CXX 22988postdeps=$lt_postdeps_CXX 22989 22990# The library search path used internally by the compiler when linking 22991# a shared library. 22992compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22993 22994# ### END LIBTOOL TAG CONFIG: CXX 22995_LT_EOF 22996 22997 ;; 22998 22999 esac 23000done # for ac_tag 23001 23002 23003as_fn_exit 0 23004_ACEOF 23005ac_clean_files=$ac_clean_files_save 23006 23007test $ac_write_fail = 0 || 23008 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23009 23010 23011# configure is writing to config.log, and then calls config.status. 23012# config.status does its own redirection, appending to config.log. 23013# Unfortunately, on DOS this fails, as config.log is still kept open 23014# by configure, so config.status won't be able to write to it; its 23015# output is simply discarded. So we exec the FD to /dev/null, 23016# effectively closing config.log, so it can be properly (re)opened and 23017# appended to by config.status. When coming back to configure, we 23018# need to make the FD available again. 23019if test "$no_create" != yes; then 23020 ac_cs_success=: 23021 ac_config_status_args= 23022 test "$silent" = yes && 23023 ac_config_status_args="$ac_config_status_args --quiet" 23024 exec 5>/dev/null 23025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23026 exec 5>>config.log 23027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23028 # would make configure fail if this is the last instruction. 23029 $ac_cs_success || as_fn_exit 1 23030fi 23031if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23033$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23034fi 23035 23036 23037 23038echo "" 23039echo "Libtiff is now configured for ${host}" 23040echo "" 23041echo " Installation directory: ${prefix}" 23042echo " Documentation directory: ${LIBTIFF_DOCDIR}" 23043echo " C compiler: ${CC} ${CFLAGS}" 23044echo " C++ compiler: ${CXX} ${CXXFLAGS}" 23045echo " Enable runtime linker paths: ${HAVE_RPATH}" 23046echo " Enable linker symbol versioning: ${have_ld_version_script}" 23047echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 23048echo " Use win32 IO: ${win32_io_ok}" 23049echo "" 23050echo " Support for internal codecs:" 23051echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 23052echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 23053echo " LZW algorithm: ${HAVE_LZW}" 23054echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 23055echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 23056echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 23057echo "" 23058echo " Support for external codecs:" 23059echo " ZLIB support: ${HAVE_ZLIB}" 23060echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 23061echo " JPEG support: ${HAVE_JPEG}" 23062echo " Old JPEG support: ${HAVE_OJPEG}" 23063echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 23064echo " ISO JBIG support: ${HAVE_JBIG}" 23065echo " LZMA2 support: ${HAVE_LZMA}" 23066echo "" 23067echo " C++ support: ${HAVE_CXX}" 23068echo "" 23069echo " OpenGL support: ${HAVE_OPENGL}" 23070echo "" 23071 23072