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.3. 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.3' 594PACKAGE_STRING='LibTIFF Software 4.0.3' 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_gnu_ld 808with_sysroot 809enable_libtool_lock 810enable_rpath 811enable_largefile 812with_docdir 813enable_ccitt 814enable_packbits 815enable_lzw 816enable_thunder 817enable_next 818enable_logluv 819enable_mdi 820enable_zlib 821with_zlib_include_dir 822with_zlib_lib_dir 823enable_pixarlog 824enable_jpeg 825with_jpeg_include_dir 826with_jpeg_lib_dir 827enable_old_jpeg 828enable_jbig 829with_jbig_include_dir 830with_jbig_lib_dir 831enable_lzma 832with_lzma_include_dir 833with_lzma_lib_dir 834enable_jpeg12 835with_jpeg12_include_dir 836with_jpeg12_lib 837enable_cxx 838with_x 839enable_strip_chopping 840with_default_strip_size 841enable_defer_strile_load 842enable_chunky_strip_read 843enable_extrasample_as_alpha 844enable_check_ycbcr_subsampling 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849CC 850CFLAGS 851LDFLAGS 852LIBS 853CPPFLAGS 854CPP 855CXX 856CXXFLAGS 857CCC 858CXXCPP 859XMKMF' 860 861 862# Initialize some variables set by options. 863ac_init_help= 864ac_init_version=false 865ac_unrecognized_opts= 866ac_unrecognized_sep= 867# The variables have the same names as the options, with 868# dashes changed to underlines. 869cache_file=/dev/null 870exec_prefix=NONE 871no_create= 872no_recursion= 873prefix=NONE 874program_prefix=NONE 875program_suffix=NONE 876program_transform_name=s,x,x, 877silent= 878site= 879srcdir= 880verbose= 881x_includes=NONE 882x_libraries=NONE 883 884# Installation directory options. 885# These are left unexpanded so users can "make install exec_prefix=/foo" 886# and all the variables that are supposed to be based on exec_prefix 887# by default will actually change. 888# Use braces instead of parens because sh, perl, etc. also accept them. 889# (The list follows the same order as the GNU Coding Standards.) 890bindir='${exec_prefix}/bin' 891sbindir='${exec_prefix}/sbin' 892libexecdir='${exec_prefix}/libexec' 893datarootdir='${prefix}/share' 894datadir='${datarootdir}' 895sysconfdir='${prefix}/etc' 896sharedstatedir='${prefix}/com' 897localstatedir='${prefix}/var' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343$as_echo X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462X features: 1463 --x-includes=DIR X include files are in DIR 1464 --x-libraries=DIR X library files are in DIR 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 case $ac_init_help in 1474 short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";; 1475 esac 1476 cat <<\_ACEOF 1477 1478Optional Features: 1479 --disable-option-checking ignore unrecognized --enable/--with options 1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1482 --enable-silent-rules less verbose build output (undo: "make V=1") 1483 --disable-silent-rules verbose build output (undo: "make V=0") 1484 --enable-maintainer-mode 1485 enable make rules and dependencies not useful (and 1486 sometimes confusing) to the casual installer 1487 --enable-dependency-tracking 1488 do not reject slow dependency extractors 1489 --disable-dependency-tracking 1490 speeds up one-time build 1491 --enable-ld-version-script 1492 enable linker version script (default is disabled) 1493 --enable-shared[=PKGS] build shared libraries [default=yes] 1494 --enable-static[=PKGS] build static libraries [default=yes] 1495 --enable-fast-install[=PKGS] 1496 optimize for fast installation [default=yes] 1497 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --enable-rpath Enable runtime linker paths (-R libtool option) 1499 --disable-largefile omit support for large files 1500 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1501 --disable-packbits disable support for Macintosh PackBits algorithm 1502 --disable-lzw disable support for LZW algorithm 1503 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1504 --disable-next disable support for NeXT 2-bit RLE algorithm 1505 --disable-logluv disable support for LogLuv high dynamic range 1506 encoding 1507 --disable-mdi disable support for Microsoft Document Imaging 1508 --disable-zlib disable Zlib usage (required for Deflate 1509 compression, enabled by default) 1510 --disable-pixarlog disable support for Pixar log-format algorithm 1511 (requires Zlib) 1512 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1513 compression, enabled by default) 1514 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1515 enabled by default) 1516 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1517 compression, enabled by default) 1518 --disable-lzma disable liblzma usage (required for LZMA2 1519 compression, enabled by default) 1520 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1521 --enable-cxx enable C++ stream API building (requires C++ 1522 compiler) 1523 --disable-strip-chopping 1524 disable support for strip chopping (whether or not 1525 to convert single-strip uncompressed images to 1526 mutiple strips of specified size to reduce memory 1527 usage) 1528 --enable-defer-strile-load 1529 enable deferred strip/tile offset/size loading 1530 (experimental) 1531 --enable-chunky-strip-read 1532 enable reading large strips in chunks for 1533 TIFFReadScanline() (experimental) 1534 --disable-extrasample-as-alpha 1535 the RGBA interface will treat a fourth sample with 1536 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1537 packages produce RGBA files but don't mark the alpha 1538 properly 1539 --disable-check-ycbcr-subsampling 1540 disable picking up YCbCr subsampling info from the 1541 JPEG data stream to support files lacking the tag 1542 1543Optional Packages: 1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1547 both] 1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1549 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1550 compiler's sysroot if not specified). 1551 --with-docdir=DIR directory where documentation should be installed 1552 --with-zlib-include-dir=DIR 1553 location of Zlib headers 1554 --with-zlib-lib-dir=DIR location of Zlib library binary 1555 --with-jpeg-include-dir=DIR 1556 location of IJG JPEG library headers 1557 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1558 --with-jbig-include-dir=DIR 1559 location of JBIG-KIT headers 1560 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1561 --with-lzma-include-dir=DIR 1562 location of liblzma headers 1563 --with-lzma-lib-dir=DIR location of liblzma library binary 1564 --with-jpeg12-include-dir=DIR 1565 location of libjpeg 12bit headers 1566 --with-jpeg12-lib=LIBRARY 1567 path to libjpeg 12bit library 1568 --with-x use the X Window System 1569 --with-default-strip-size=SIZE 1570 default size of the strip in bytes (when strip 1571 chopping enabled) [[default=8192]] 1572 1573Some influential environment variables: 1574 CC C compiler command 1575 CFLAGS C compiler flags 1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1577 nonstandard directory <lib dir> 1578 LIBS libraries to pass to the linker, e.g. -l<library> 1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1580 you have headers in a nonstandard directory <include dir> 1581 CPP C preprocessor 1582 CXX C++ compiler command 1583 CXXFLAGS C++ compiler flags 1584 CXXCPP C++ preprocessor 1585 XMKMF Path to xmkmf, Makefile generator for X Window System 1586 1587Use these variables to override the choices made by `configure' or to help 1588it to find libraries and programs with nonstandard names/locations. 1589 1590Report bugs to <[email protected]>. 1591_ACEOF 1592ac_status=$? 1593fi 1594 1595if test "$ac_init_help" = "recursive"; then 1596 # If there are subdirs, report their specific --help. 1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1598 test -d "$ac_dir" || 1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1600 continue 1601 ac_builddir=. 1602 1603case "$ac_dir" in 1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1605*) 1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1607 # A ".." for each directory in $ac_dir_suffix. 1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1609 case $ac_top_builddir_sub in 1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1612 esac ;; 1613esac 1614ac_abs_top_builddir=$ac_pwd 1615ac_abs_builddir=$ac_pwd$ac_dir_suffix 1616# for backward compatibility: 1617ac_top_builddir=$ac_top_build_prefix 1618 1619case $srcdir in 1620 .) # We are building in place. 1621 ac_srcdir=. 1622 ac_top_srcdir=$ac_top_builddir_sub 1623 ac_abs_top_srcdir=$ac_pwd ;; 1624 [\\/]* | ?:[\\/]* ) # Absolute name. 1625 ac_srcdir=$srcdir$ac_dir_suffix; 1626 ac_top_srcdir=$srcdir 1627 ac_abs_top_srcdir=$srcdir ;; 1628 *) # Relative name. 1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1630 ac_top_srcdir=$ac_top_build_prefix$srcdir 1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1632esac 1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1634 1635 cd "$ac_dir" || { ac_status=$?; continue; } 1636 # Check for guested configure. 1637 if test -f "$ac_srcdir/configure.gnu"; then 1638 echo && 1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1640 elif test -f "$ac_srcdir/configure"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure" --help=recursive 1643 else 1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1645 fi || ac_status=$? 1646 cd "$ac_pwd" || { ac_status=$?; break; } 1647 done 1648fi 1649 1650test -n "$ac_init_help" && exit $ac_status 1651if $ac_init_version; then 1652 cat <<\_ACEOF 1653LibTIFF Software configure 4.0.3 1654generated by GNU Autoconf 2.69 1655 1656Copyright (C) 2012 Free Software Foundation, Inc. 1657This configure script is free software; the Free Software Foundation 1658gives unlimited permission to copy, distribute and modify it. 1659_ACEOF 1660 exit 1661fi 1662 1663## ------------------------ ## 1664## Autoconf initialization. ## 1665## ------------------------ ## 1666 1667# ac_fn_c_try_compile LINENO 1668# -------------------------- 1669# Try to compile conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext 1674 if { { ac_try="$ac_compile" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_compile") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest.$ac_objext; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699fi 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_compile 1704 1705# ac_fn_c_try_link LINENO 1706# ----------------------- 1707# Try to link conftest.$ac_ext, and return whether this succeeded. 1708ac_fn_c_try_link () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 rm -f conftest.$ac_objext conftest$ac_exeext 1712 if { { ac_try="$ac_link" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_link") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { 1728 test -z "$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 } && test -s conftest$ac_exeext && { 1731 test "$cross_compiling" = yes || 1732 test -x conftest$ac_exeext 1733 }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1743 # interfere with the next link command; also delete a directory that is 1744 # left behind by Apple's compiler. We do this before executing the actions. 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_link 1750 1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1752# ------------------------------------------------------- 1753# Tests whether HEADER exists and can be compiled using the include files in 1754# INCLUDES, setting the cache variable VAR accordingly. 1755ac_fn_c_check_header_compile () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766#include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774fi 1775eval ac_res=\$$3 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777$as_echo "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780} # ac_fn_c_check_header_compile 1781 1782# ac_fn_c_try_cpp LINENO 1783# ---------------------- 1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1785ac_fn_c_try_cpp () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 if { { ac_try="$ac_cpp conftest.$ac_ext" 1789case "(($ac_try" in 1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1791 *) ac_try_echo=$ac_try;; 1792esac 1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1794$as_echo "$ac_try_echo"; } >&5 1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1796 ac_status=$? 1797 if test -s conftest.err; then 1798 grep -v '^ *+' conftest.err >conftest.er1 1799 cat conftest.er1 >&5 1800 mv -f conftest.er1 conftest.err 1801 fi 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; } > conftest.i && { 1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1805 test ! -s conftest.err 1806 }; then : 1807 ac_retval=0 1808else 1809 $as_echo "$as_me: failed program was:" >&5 1810sed 's/^/| /' conftest.$ac_ext >&5 1811 1812 ac_retval=1 1813fi 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 as_fn_set_status $ac_retval 1816 1817} # ac_fn_c_try_cpp 1818 1819# ac_fn_c_try_run LINENO 1820# ---------------------- 1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1822# that executables *can* be run. 1823ac_fn_c_try_run () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 if { { ac_try="$ac_link" 1827case "(($ac_try" in 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829 *) ac_try_echo=$ac_try;; 1830esac 1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832$as_echo "$ac_try_echo"; } >&5 1833 (eval "$ac_link") 2>&5 1834 ac_status=$? 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1837 { { case "(($ac_try" in 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1839 *) ac_try_echo=$ac_try;; 1840esac 1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1842$as_echo "$ac_try_echo"; } >&5 1843 (eval "$ac_try") 2>&5 1844 ac_status=$? 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1846 test $ac_status = 0; }; }; then : 1847 ac_retval=0 1848else 1849 $as_echo "$as_me: program exited with status $ac_status" >&5 1850 $as_echo "$as_me: failed program was:" >&5 1851sed 's/^/| /' conftest.$ac_ext >&5 1852 1853 ac_retval=$ac_status 1854fi 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_run 1860 1861# ac_fn_c_check_func LINENO FUNC VAR 1862# ---------------------------------- 1863# Tests whether FUNC exists, setting the cache variable VAR accordingly 1864ac_fn_c_check_func () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868$as_echo_n "checking for $2... " >&6; } 1869if eval \${$3+:} false; then : 1870 $as_echo_n "(cached) " >&6 1871else 1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1876#define $2 innocuous_$2 1877 1878/* System header to define __stub macros and hopefully few prototypes, 1879 which can conflict with char $2 (); below. 1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1881 <limits.h> exists even on freestanding compilers. */ 1882 1883#ifdef __STDC__ 1884# include <limits.h> 1885#else 1886# include <assert.h> 1887#endif 1888 1889#undef $2 1890 1891/* Override any GCC internal prototype to avoid an error. 1892 Use char because int might match the return type of a GCC 1893 builtin and then its argument prototype would still apply. */ 1894#ifdef __cplusplus 1895extern "C" 1896#endif 1897char $2 (); 1898/* The GNU C library defines this for functions which it implements 1899 to always fail with ENOSYS. Some functions are actually named 1900 something starting with __ and the normal name is an alias. */ 1901#if defined __stub_$2 || defined __stub___$2 1902choke me 1903#endif 1904 1905int 1906main () 1907{ 1908return $2 (); 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_link "$LINENO"; then : 1914 eval "$3=yes" 1915else 1916 eval "$3=no" 1917fi 1918rm -f core conftest.err conftest.$ac_objext \ 1919 conftest$ac_exeext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_func 1927 1928# ac_fn_cxx_try_compile LINENO 1929# ---------------------------- 1930# Try to compile conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_cxx_try_compile () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext 1935 if { { ac_try="$ac_compile" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_compile") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_cxx_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest.$ac_objext; then : 1954 ac_retval=0 1955else 1956 $as_echo "$as_me: failed program was:" >&5 1957sed 's/^/| /' conftest.$ac_ext >&5 1958 1959 ac_retval=1 1960fi 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 as_fn_set_status $ac_retval 1963 1964} # ac_fn_cxx_try_compile 1965 1966# ac_fn_cxx_try_cpp LINENO 1967# ------------------------ 1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1969ac_fn_cxx_try_cpp () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 if { { ac_try="$ac_cpp conftest.$ac_ext" 1973case "(($ac_try" in 1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1975 *) ac_try_echo=$ac_try;; 1976esac 1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1978$as_echo "$ac_try_echo"; } >&5 1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1980 ac_status=$? 1981 if test -s conftest.err; then 1982 grep -v '^ *+' conftest.err >conftest.er1 1983 cat conftest.er1 >&5 1984 mv -f conftest.er1 conftest.err 1985 fi 1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1987 test $ac_status = 0; } > conftest.i && { 1988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1989 test ! -s conftest.err 1990 }; then : 1991 ac_retval=0 1992else 1993 $as_echo "$as_me: failed program was:" >&5 1994sed 's/^/| /' conftest.$ac_ext >&5 1995 1996 ac_retval=1 1997fi 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1999 as_fn_set_status $ac_retval 2000 2001} # ac_fn_cxx_try_cpp 2002 2003# ac_fn_cxx_try_link LINENO 2004# ------------------------- 2005# Try to link conftest.$ac_ext, and return whether this succeeded. 2006ac_fn_cxx_try_link () 2007{ 2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2009 rm -f conftest.$ac_objext conftest$ac_exeext 2010 if { { ac_try="$ac_link" 2011case "(($ac_try" in 2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2013 *) ac_try_echo=$ac_try;; 2014esac 2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2016$as_echo "$ac_try_echo"; } >&5 2017 (eval "$ac_link") 2>conftest.err 2018 ac_status=$? 2019 if test -s conftest.err; then 2020 grep -v '^ *+' conftest.err >conftest.er1 2021 cat conftest.er1 >&5 2022 mv -f conftest.er1 conftest.err 2023 fi 2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2025 test $ac_status = 0; } && { 2026 test -z "$ac_cxx_werror_flag" || 2027 test ! -s conftest.err 2028 } && test -s conftest$ac_exeext && { 2029 test "$cross_compiling" = yes || 2030 test -x conftest$ac_exeext 2031 }; then : 2032 ac_retval=0 2033else 2034 $as_echo "$as_me: failed program was:" >&5 2035sed 's/^/| /' conftest.$ac_ext >&5 2036 2037 ac_retval=1 2038fi 2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2041 # interfere with the next link command; also delete a directory that is 2042 # left behind by Apple's compiler. We do this before executing the actions. 2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2045 as_fn_set_status $ac_retval 2046 2047} # ac_fn_cxx_try_link 2048 2049# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2050# ------------------------------------------------------- 2051# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2052# the include files in INCLUDES and setting the cache variable VAR 2053# accordingly. 2054ac_fn_c_check_header_mongrel () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 if eval \${$3+:} false; then : 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2059$as_echo_n "checking for $2... " >&6; } 2060if eval \${$3+:} false; then : 2061 $as_echo_n "(cached) " >&6 2062fi 2063eval ac_res=\$$3 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2065$as_echo "$ac_res" >&6; } 2066else 2067 # Is the header compilable? 2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2069$as_echo_n "checking $2 usability... " >&6; } 2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$4 2073#include <$2> 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 ac_header_compiler=yes 2077else 2078 ac_header_compiler=no 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2082$as_echo "$ac_header_compiler" >&6; } 2083 2084# Is the header present? 2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2086$as_echo_n "checking $2 presence... " >&6; } 2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2088/* end confdefs.h. */ 2089#include <$2> 2090_ACEOF 2091if ac_fn_c_try_cpp "$LINENO"; then : 2092 ac_header_preproc=yes 2093else 2094 ac_header_preproc=no 2095fi 2096rm -f conftest.err conftest.i conftest.$ac_ext 2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2098$as_echo "$ac_header_preproc" >&6; } 2099 2100# So? What about this header? 2101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2102 yes:no: ) 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2107 ;; 2108 no:yes:* ) 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2112$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2116$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2119( $as_echo "## -------------------------------------- ## 2120## Report this to [email protected] ## 2121## -------------------------------------- ##" 2122 ) | sed "s/^/$as_me: WARNING: /" >&2 2123 ;; 2124esac 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2126$as_echo_n "checking for $2... " >&6; } 2127if eval \${$3+:} false; then : 2128 $as_echo_n "(cached) " >&6 2129else 2130 eval "$3=\$ac_header_compiler" 2131fi 2132eval ac_res=\$$3 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134$as_echo "$ac_res" >&6; } 2135fi 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2137 2138} # ac_fn_c_check_header_mongrel 2139 2140# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2141# ------------------------------------------- 2142# Tests whether TYPE exists after having included INCLUDES, setting cache 2143# variable VAR accordingly. 2144ac_fn_c_check_type () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2148$as_echo_n "checking for $2... " >&6; } 2149if eval \${$3+:} false; then : 2150 $as_echo_n "(cached) " >&6 2151else 2152 eval "$3=no" 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159if (sizeof ($2)) 2160 return 0; 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169int 2170main () 2171{ 2172if (sizeof (($2))) 2173 return 0; 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_compile "$LINENO"; then : 2179 2180else 2181 eval "$3=yes" 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186fi 2187eval ac_res=\$$3 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2189$as_echo "$ac_res" >&6; } 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2191 2192} # ac_fn_c_check_type 2193 2194# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2195# -------------------------------------------- 2196# Tries to find the compile-time value of EXPR in a program that includes 2197# INCLUDES, setting VAR accordingly. Returns whether the value could be 2198# computed 2199ac_fn_c_compute_int () 2200{ 2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2202 if test "$cross_compiling" = yes; then 2203 # Depending upon the size, compute the lo and hi bounds. 2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210static int test_array [1 - 2 * !(($2) >= 0)]; 2211test_array [0] = 0; 2212return test_array [0]; 2213 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_compile "$LINENO"; then : 2219 ac_lo=0 ac_mid=0 2220 while :; do 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$4 2224int 2225main () 2226{ 2227static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2228test_array [0] = 0; 2229return test_array [0]; 2230 2231 ; 2232 return 0; 2233} 2234_ACEOF 2235if ac_fn_c_try_compile "$LINENO"; then : 2236 ac_hi=$ac_mid; break 2237else 2238 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2239 if test $ac_lo -le $ac_mid; then 2240 ac_lo= ac_hi= 2241 break 2242 fi 2243 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246 done 2247else 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main () 2253{ 2254static int test_array [1 - 2 * !(($2) < 0)]; 2255test_array [0] = 0; 2256return test_array [0]; 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262if ac_fn_c_try_compile "$LINENO"; then : 2263 ac_hi=-1 ac_mid=-1 2264 while :; do 2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$4 2268int 2269main () 2270{ 2271static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2272test_array [0] = 0; 2273return test_array [0]; 2274 2275 ; 2276 return 0; 2277} 2278_ACEOF 2279if ac_fn_c_try_compile "$LINENO"; then : 2280 ac_lo=$ac_mid; break 2281else 2282 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2283 if test $ac_mid -le $ac_hi; then 2284 ac_lo= ac_hi= 2285 break 2286 fi 2287 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290 done 2291else 2292 ac_lo= ac_hi= 2293fi 2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297# Binary search between lo and hi bounds. 2298while test "x$ac_lo" != "x$ac_hi"; do 2299 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2301/* end confdefs.h. */ 2302$4 2303int 2304main () 2305{ 2306static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2307test_array [0] = 0; 2308return test_array [0]; 2309 2310 ; 2311 return 0; 2312} 2313_ACEOF 2314if ac_fn_c_try_compile "$LINENO"; then : 2315 ac_hi=$ac_mid 2316else 2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2318fi 2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2320done 2321case $ac_lo in #(( 2322?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2323'') ac_retval=1 ;; 2324esac 2325 else 2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2327/* end confdefs.h. */ 2328$4 2329static long int longval () { return $2; } 2330static unsigned long int ulongval () { return $2; } 2331#include <stdio.h> 2332#include <stdlib.h> 2333int 2334main () 2335{ 2336 2337 FILE *f = fopen ("conftest.val", "w"); 2338 if (! f) 2339 return 1; 2340 if (($2) < 0) 2341 { 2342 long int i = longval (); 2343 if (i != ($2)) 2344 return 1; 2345 fprintf (f, "%ld", i); 2346 } 2347 else 2348 { 2349 unsigned long int i = ulongval (); 2350 if (i != ($2)) 2351 return 1; 2352 fprintf (f, "%lu", i); 2353 } 2354 /* Do not output a trailing newline, as this causes \r\n confusion 2355 on some platforms. */ 2356 return ferror (f) || fclose (f) != 0; 2357 2358 ; 2359 return 0; 2360} 2361_ACEOF 2362if ac_fn_c_try_run "$LINENO"; then : 2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2364else 2365 ac_retval=1 2366fi 2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2368 conftest.$ac_objext conftest.beam conftest.$ac_ext 2369rm -f conftest.val 2370 2371 fi 2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2373 as_fn_set_status $ac_retval 2374 2375} # ac_fn_c_compute_int 2376cat >config.log <<_ACEOF 2377This file contains any messages produced by compilers while 2378running configure, to aid debugging if configure makes a mistake. 2379 2380It was created by LibTIFF Software $as_me 4.0.3, which was 2381generated by GNU Autoconf 2.69. Invocation command line was 2382 2383 $ $0 $@ 2384 2385_ACEOF 2386exec 5>>config.log 2387{ 2388cat <<_ASUNAME 2389## --------- ## 2390## Platform. ## 2391## --------- ## 2392 2393hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2394uname -m = `(uname -m) 2>/dev/null || echo unknown` 2395uname -r = `(uname -r) 2>/dev/null || echo unknown` 2396uname -s = `(uname -s) 2>/dev/null || echo unknown` 2397uname -v = `(uname -v) 2>/dev/null || echo unknown` 2398 2399/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2400/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2401 2402/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2403/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2405/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2406/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2407/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2408/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2409 2410_ASUNAME 2411 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 $as_echo "PATH: $as_dir" 2418 done 2419IFS=$as_save_IFS 2420 2421} >&5 2422 2423cat >&5 <<_ACEOF 2424 2425 2426## ----------- ## 2427## Core tests. ## 2428## ----------- ## 2429 2430_ACEOF 2431 2432 2433# Keep a trace of the command line. 2434# Strip out --no-create and --no-recursion so they do not pile up. 2435# Strip out --silent because we don't want to record it for future runs. 2436# Also quote any args containing shell meta-characters. 2437# Make two passes to allow for proper duplicate-argument suppression. 2438ac_configure_args= 2439ac_configure_args0= 2440ac_configure_args1= 2441ac_must_keep_next=false 2442for ac_pass in 1 2 2443do 2444 for ac_arg 2445 do 2446 case $ac_arg in 2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2449 | -silent | --silent | --silen | --sile | --sil) 2450 continue ;; 2451 *\'*) 2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2453 esac 2454 case $ac_pass in 2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2456 2) 2457 as_fn_append ac_configure_args1 " '$ac_arg'" 2458 if test $ac_must_keep_next = true; then 2459 ac_must_keep_next=false # Got value, back to normal. 2460 else 2461 case $ac_arg in 2462 *=* | --config-cache | -C | -disable-* | --disable-* \ 2463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2465 | -with-* | --with-* | -without-* | --without-* | --x) 2466 case "$ac_configure_args0 " in 2467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2468 esac 2469 ;; 2470 -* ) ac_must_keep_next=true ;; 2471 esac 2472 fi 2473 as_fn_append ac_configure_args " '$ac_arg'" 2474 ;; 2475 esac 2476 done 2477done 2478{ ac_configure_args0=; unset ac_configure_args0;} 2479{ ac_configure_args1=; unset ac_configure_args1;} 2480 2481# When interrupted or exit'd, cleanup temporary files, and complete 2482# config.log. We remove comments because anyway the quotes in there 2483# would cause problems or look ugly. 2484# WARNING: Use '\'' to represent an apostrophe within the trap. 2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2486trap 'exit_status=$? 2487 # Save into config.log some information that might help in debugging. 2488 { 2489 echo 2490 2491 $as_echo "## ---------------- ## 2492## Cache variables. ## 2493## ---------------- ##" 2494 echo 2495 # The following way of writing the cache mishandles newlines in values, 2496( 2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2498 eval ac_val=\$$ac_var 2499 case $ac_val in #( 2500 *${as_nl}*) 2501 case $ac_var in #( 2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2504 esac 2505 case $ac_var in #( 2506 _ | IFS | as_nl) ;; #( 2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2508 *) { eval $ac_var=; unset $ac_var;} ;; 2509 esac ;; 2510 esac 2511 done 2512 (set) 2>&1 | 2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2514 *${as_nl}ac_space=\ *) 2515 sed -n \ 2516 "s/'\''/'\''\\\\'\'''\''/g; 2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2518 ;; #( 2519 *) 2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2521 ;; 2522 esac | 2523 sort 2524) 2525 echo 2526 2527 $as_echo "## ----------------- ## 2528## Output variables. ## 2529## ----------------- ##" 2530 echo 2531 for ac_var in $ac_subst_vars 2532 do 2533 eval ac_val=\$$ac_var 2534 case $ac_val in 2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2536 esac 2537 $as_echo "$ac_var='\''$ac_val'\''" 2538 done | sort 2539 echo 2540 2541 if test -n "$ac_subst_files"; then 2542 $as_echo "## ------------------- ## 2543## File substitutions. ## 2544## ------------------- ##" 2545 echo 2546 for ac_var in $ac_subst_files 2547 do 2548 eval ac_val=\$$ac_var 2549 case $ac_val in 2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2551 esac 2552 $as_echo "$ac_var='\''$ac_val'\''" 2553 done | sort 2554 echo 2555 fi 2556 2557 if test -s confdefs.h; then 2558 $as_echo "## ----------- ## 2559## confdefs.h. ## 2560## ----------- ##" 2561 echo 2562 cat confdefs.h 2563 echo 2564 fi 2565 test "$ac_signal" != 0 && 2566 $as_echo "$as_me: caught signal $ac_signal" 2567 $as_echo "$as_me: exit $exit_status" 2568 } >&5 2569 rm -f core *.core core.conftest.* && 2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2571 exit $exit_status 2572' 0 2573for ac_signal in 1 2 13 15; do 2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2575done 2576ac_signal=0 2577 2578# confdefs.h avoids OS command line length limits that DEFS can exceed. 2579rm -f -r conftest* confdefs.h 2580 2581$as_echo "/* confdefs.h */" > confdefs.h 2582 2583# Predefined preprocessor variables. 2584 2585cat >>confdefs.h <<_ACEOF 2586#define PACKAGE_NAME "$PACKAGE_NAME" 2587_ACEOF 2588 2589cat >>confdefs.h <<_ACEOF 2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2591_ACEOF 2592 2593cat >>confdefs.h <<_ACEOF 2594#define PACKAGE_VERSION "$PACKAGE_VERSION" 2595_ACEOF 2596 2597cat >>confdefs.h <<_ACEOF 2598#define PACKAGE_STRING "$PACKAGE_STRING" 2599_ACEOF 2600 2601cat >>confdefs.h <<_ACEOF 2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2603_ACEOF 2604 2605cat >>confdefs.h <<_ACEOF 2606#define PACKAGE_URL "$PACKAGE_URL" 2607_ACEOF 2608 2609 2610# Let the site file select an alternate cache file if it wants to. 2611# Prefer an explicitly selected file to automatically selected ones. 2612ac_site_file1=NONE 2613ac_site_file2=NONE 2614if test -n "$CONFIG_SITE"; then 2615 # We do not want a PATH search for config.site. 2616 case $CONFIG_SITE in #(( 2617 -*) ac_site_file1=./$CONFIG_SITE;; 2618 */*) ac_site_file1=$CONFIG_SITE;; 2619 *) ac_site_file1=./$CONFIG_SITE;; 2620 esac 2621elif test "x$prefix" != xNONE; then 2622 ac_site_file1=$prefix/share/config.site 2623 ac_site_file2=$prefix/etc/config.site 2624else 2625 ac_site_file1=$ac_default_prefix/share/config.site 2626 ac_site_file2=$ac_default_prefix/etc/config.site 2627fi 2628for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2629do 2630 test "x$ac_site_file" = xNONE && continue 2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2633$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2634 sed 's/^/| /' "$ac_site_file" >&5 2635 . "$ac_site_file" \ 2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2638as_fn_error $? "failed to load site script $ac_site_file 2639See \`config.log' for more details" "$LINENO" 5; } 2640 fi 2641done 2642 2643if test -r "$cache_file"; then 2644 # Some versions of bash will fail to source /dev/null (special files 2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2648$as_echo "$as_me: loading cache $cache_file" >&6;} 2649 case $cache_file in 2650 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2651 *) . "./$cache_file";; 2652 esac 2653 fi 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2656$as_echo "$as_me: creating cache $cache_file" >&6;} 2657 >$cache_file 2658fi 2659 2660# Check that the precious variables saved in the cache have kept the same 2661# value. 2662ac_cache_corrupted=false 2663for ac_var in $ac_precious_vars; do 2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2665 eval ac_new_set=\$ac_env_${ac_var}_set 2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2667 eval ac_new_val=\$ac_env_${ac_var}_value 2668 case $ac_old_set,$ac_new_set in 2669 set,) 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2672 ac_cache_corrupted=: ;; 2673 ,set) 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2676 ac_cache_corrupted=: ;; 2677 ,);; 2678 *) 2679 if test "x$ac_old_val" != "x$ac_new_val"; then 2680 # differences in whitespace do not lead to failure. 2681 ac_old_val_w=`echo x $ac_old_val` 2682 ac_new_val_w=`echo x $ac_new_val` 2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2686 ac_cache_corrupted=: 2687 else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2690 eval $ac_var=\$ac_old_val 2691 fi 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2693$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2695$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2696 fi;; 2697 esac 2698 # Pass precious variables to config.status. 2699 if test "$ac_new_set" = set; then 2700 case $ac_new_val in 2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2702 *) ac_arg=$ac_var=$ac_new_val ;; 2703 esac 2704 case " $ac_configure_args " in 2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2707 esac 2708 fi 2709done 2710if $ac_cache_corrupted; then 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2716fi 2717## -------------------- ## 2718## Main body of script. ## 2719## -------------------- ## 2720 2721ac_ext=c 2722ac_cpp='$CPP $CPPFLAGS' 2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2725ac_compiler_gnu=$ac_cv_c_compiler_gnu 2726 2727 2728ac_aux_dir= 2729for ac_dir in config "$srcdir"/config; do 2730 if test -f "$ac_dir/install-sh"; then 2731 ac_aux_dir=$ac_dir 2732 ac_install_sh="$ac_aux_dir/install-sh -c" 2733 break 2734 elif test -f "$ac_dir/install.sh"; then 2735 ac_aux_dir=$ac_dir 2736 ac_install_sh="$ac_aux_dir/install.sh -c" 2737 break 2738 elif test -f "$ac_dir/shtool"; then 2739 ac_aux_dir=$ac_dir 2740 ac_install_sh="$ac_aux_dir/shtool install -c" 2741 break 2742 fi 2743done 2744if test -z "$ac_aux_dir"; then 2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2746fi 2747 2748# These three variables are undocumented and unsupported, 2749# and are intended to be withdrawn in a future Autoconf release. 2750# They can cause serious problems if a builder's source tree is in a directory 2751# whose full name contains unusual characters. 2752ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2753ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2754ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2755 2756 2757 2758ac_ext=c 2759ac_cpp='$CPP $CPPFLAGS' 2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2762ac_compiler_gnu=$ac_cv_c_compiler_gnu 2763 2764 2765# Make sure we can run config.sub. 2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2770$as_echo_n "checking build system type... " >&6; } 2771if ${ac_cv_build+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 ac_build_alias=$build_alias 2775test "x$ac_build_alias" = x && 2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2777test "x$ac_build_alias" = x && 2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2779ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2781 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2784$as_echo "$ac_cv_build" >&6; } 2785case $ac_cv_build in 2786*-*-*) ;; 2787*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2788esac 2789build=$ac_cv_build 2790ac_save_IFS=$IFS; IFS='-' 2791set x $ac_cv_build 2792shift 2793build_cpu=$1 2794build_vendor=$2 2795shift; shift 2796# Remember, the first character of IFS is used to create $*, 2797# except with old shells: 2798build_os=$* 2799IFS=$ac_save_IFS 2800case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2801 2802 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2804$as_echo_n "checking host system type... " >&6; } 2805if ${ac_cv_host+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807else 2808 if test "x$host_alias" = x; then 2809 ac_cv_host=$ac_cv_build 2810else 2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2813fi 2814 2815fi 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2817$as_echo "$ac_cv_host" >&6; } 2818case $ac_cv_host in 2819*-*-*) ;; 2820*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2821esac 2822host=$ac_cv_host 2823ac_save_IFS=$IFS; IFS='-' 2824set x $ac_cv_host 2825shift 2826host_cpu=$1 2827host_vendor=$2 2828shift; shift 2829# Remember, the first character of IFS is used to create $*, 2830# except with old shells: 2831host_os=$* 2832IFS=$ac_save_IFS 2833case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2834 2835 2836 2837am__api_version='1.14' 2838 2839# Find a good install program. We prefer a C program (faster), 2840# so one script is as good as another. But avoid the broken or 2841# incompatible versions: 2842# SysV /etc/install, /usr/sbin/install 2843# SunOS /usr/etc/install 2844# IRIX /sbin/install 2845# AIX /bin/install 2846# AmigaOS /C/install, which installs bootblocks on floppy discs 2847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2848# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2850# OS/2's system install, which has a completely different semantic 2851# ./install, which can be erroneously created by make from ./install.sh. 2852# Reject install programs that cannot install multiple files. 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2854$as_echo_n "checking for a BSD-compatible install... " >&6; } 2855if test -z "$INSTALL"; then 2856if ${ac_cv_path_install+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 # Account for people who put trailing slashes in PATH elements. 2865case $as_dir/ in #(( 2866 ./ | .// | /[cC]/* | \ 2867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2868 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2869 /usr/ucb/* ) ;; 2870 *) 2871 # OSF1 and SCO ODT 3.0 have their own names for install. 2872 # Don't use installbsd from OSF since it installs stuff as root 2873 # by default. 2874 for ac_prog in ginstall scoinst install; do 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2877 if test $ac_prog = install && 2878 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2879 # AIX install. It has an incompatible calling convention. 2880 : 2881 elif test $ac_prog = install && 2882 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2883 # program-specific install script used by HP pwplus--don't use. 2884 : 2885 else 2886 rm -rf conftest.one conftest.two conftest.dir 2887 echo one > conftest.one 2888 echo two > conftest.two 2889 mkdir conftest.dir 2890 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2891 test -s conftest.one && test -s conftest.two && 2892 test -s conftest.dir/conftest.one && 2893 test -s conftest.dir/conftest.two 2894 then 2895 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2896 break 3 2897 fi 2898 fi 2899 fi 2900 done 2901 done 2902 ;; 2903esac 2904 2905 done 2906IFS=$as_save_IFS 2907 2908rm -rf conftest.one conftest.two conftest.dir 2909 2910fi 2911 if test "${ac_cv_path_install+set}" = set; then 2912 INSTALL=$ac_cv_path_install 2913 else 2914 # As a last resort, use the slow shell script. Don't cache a 2915 # value for INSTALL within a source directory, because that will 2916 # break other packages using the cache if that directory is 2917 # removed, or if the value is a relative name. 2918 INSTALL=$ac_install_sh 2919 fi 2920fi 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2922$as_echo "$INSTALL" >&6; } 2923 2924# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2925# It thinks the first close brace ends the variable substitution. 2926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2927 2928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2929 2930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2931 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2933$as_echo_n "checking whether build environment is sane... " >&6; } 2934# Reject unsafe characters in $srcdir or the absolute working directory 2935# name. Accept space and tab only in the latter. 2936am_lf=' 2937' 2938case `pwd` in 2939 *[\\\"\#\$\&\'\`$am_lf]*) 2940 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2941esac 2942case $srcdir in 2943 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2944 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2945esac 2946 2947# Do 'set' in a subshell so we don't clobber the current shell's 2948# arguments. Must try -L first in case configure is actually a 2949# symlink; some systems play weird games with the mod time of symlinks 2950# (eg FreeBSD returns the mod time of the symlink's containing 2951# directory). 2952if ( 2953 am_has_slept=no 2954 for am_try in 1 2; do 2955 echo "timestamp, slept: $am_has_slept" > conftest.file 2956 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2957 if test "$*" = "X"; then 2958 # -L didn't work. 2959 set X `ls -t "$srcdir/configure" conftest.file` 2960 fi 2961 if test "$*" != "X $srcdir/configure conftest.file" \ 2962 && test "$*" != "X conftest.file $srcdir/configure"; then 2963 2964 # If neither matched, then we have a broken ls. This can happen 2965 # if, for instance, CONFIG_SHELL is bash and it inherits a 2966 # broken ls alias from the environment. This has actually 2967 # happened. Such a system could not be considered "sane". 2968 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2969 alias in your environment" "$LINENO" 5 2970 fi 2971 if test "$2" = conftest.file || test $am_try -eq 2; then 2972 break 2973 fi 2974 # Just in case. 2975 sleep 1 2976 am_has_slept=yes 2977 done 2978 test "$2" = conftest.file 2979 ) 2980then 2981 # Ok. 2982 : 2983else 2984 as_fn_error $? "newly created file is older than distributed files! 2985Check your system clock" "$LINENO" 5 2986fi 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2988$as_echo "yes" >&6; } 2989# If we didn't sleep, we still need to ensure time stamps of config.status and 2990# generated files are strictly newer. 2991am_sleep_pid= 2992if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2993 ( sleep 1 ) & 2994 am_sleep_pid=$! 2995fi 2996 2997rm -f conftest.file 2998 2999test "$program_prefix" != NONE && 3000 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3001# Use a double $ so make ignores it. 3002test "$program_suffix" != NONE && 3003 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3004# Double any \ or $. 3005# By default was `s,x,x', remove it if useless. 3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3008 3009# expand $ac_aux_dir to an absolute path 3010am_aux_dir=`cd $ac_aux_dir && pwd` 3011 3012if test x"${MISSING+set}" != xset; then 3013 case $am_aux_dir in 3014 *\ * | *\ *) 3015 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3016 *) 3017 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3018 esac 3019fi 3020# Use eval to expand $SHELL 3021if eval "$MISSING --is-lightweight"; then 3022 am_missing_run="$MISSING " 3023else 3024 am_missing_run= 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3026$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3027fi 3028 3029if test x"${install_sh}" != xset; then 3030 case $am_aux_dir in 3031 *\ * | *\ *) 3032 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3033 *) 3034 install_sh="\${SHELL} $am_aux_dir/install-sh" 3035 esac 3036fi 3037 3038# Installed binaries are usually stripped using 'strip' when the user 3039# run "make install-strip". However 'strip' might not be the right 3040# tool to use in cross-compilation environments, therefore Automake 3041# will honor the 'STRIP' environment variable to overrule this program. 3042if test "$cross_compiling" != no; then 3043 if test -n "$ac_tool_prefix"; then 3044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3045set dummy ${ac_tool_prefix}strip; ac_word=$2 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3047$as_echo_n "checking for $ac_word... " >&6; } 3048if ${ac_cv_prog_STRIP+:} false; then : 3049 $as_echo_n "(cached) " >&6 3050else 3051 if test -n "$STRIP"; then 3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3053else 3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055for as_dir in $PATH 3056do 3057 IFS=$as_save_IFS 3058 test -z "$as_dir" && as_dir=. 3059 for ac_exec_ext in '' $ac_executable_extensions; do 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3061 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065done 3066 done 3067IFS=$as_save_IFS 3068 3069fi 3070fi 3071STRIP=$ac_cv_prog_STRIP 3072if test -n "$STRIP"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3074$as_echo "$STRIP" >&6; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078fi 3079 3080 3081fi 3082if test -z "$ac_cv_prog_STRIP"; then 3083 ac_ct_STRIP=$STRIP 3084 # Extract the first word of "strip", so it can be a program name with args. 3085set dummy strip; ac_word=$2 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3087$as_echo_n "checking for $ac_word... " >&6; } 3088if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3089 $as_echo_n "(cached) " >&6 3090else 3091 if test -n "$ac_ct_STRIP"; then 3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3093else 3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095for as_dir in $PATH 3096do 3097 IFS=$as_save_IFS 3098 test -z "$as_dir" && as_dir=. 3099 for ac_exec_ext in '' $ac_executable_extensions; do 3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3101 ac_cv_prog_ac_ct_STRIP="strip" 3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3103 break 2 3104 fi 3105done 3106 done 3107IFS=$as_save_IFS 3108 3109fi 3110fi 3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3112if test -n "$ac_ct_STRIP"; then 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3114$as_echo "$ac_ct_STRIP" >&6; } 3115else 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117$as_echo "no" >&6; } 3118fi 3119 3120 if test "x$ac_ct_STRIP" = x; then 3121 STRIP=":" 3122 else 3123 case $cross_compiling:$ac_tool_warned in 3124yes:) 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3127ac_tool_warned=yes ;; 3128esac 3129 STRIP=$ac_ct_STRIP 3130 fi 3131else 3132 STRIP="$ac_cv_prog_STRIP" 3133fi 3134 3135fi 3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3137 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3140if test -z "$MKDIR_P"; then 3141 if ${ac_cv_path_mkdir+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_prog in mkdir gmkdir; do 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3153 'mkdir (GNU coreutils) '* | \ 3154 'mkdir (coreutils) '* | \ 3155 'mkdir (fileutils) '4.1*) 3156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3157 break 3;; 3158 esac 3159 done 3160 done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165 3166 test -d ./--version && rmdir ./--version 3167 if test "${ac_cv_path_mkdir+set}" = set; then 3168 MKDIR_P="$ac_cv_path_mkdir -p" 3169 else 3170 # As a last resort, use the slow shell script. Don't cache a 3171 # value for MKDIR_P within a source directory, because that will 3172 # break other packages using the cache if that directory is 3173 # removed, or if the value is a relative name. 3174 MKDIR_P="$ac_install_sh -d" 3175 fi 3176fi 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3178$as_echo "$MKDIR_P" >&6; } 3179 3180for ac_prog in gawk mawk nawk awk 3181do 3182 # Extract the first word of "$ac_prog", so it can be a program name with args. 3183set dummy $ac_prog; ac_word=$2 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3185$as_echo_n "checking for $ac_word... " >&6; } 3186if ${ac_cv_prog_AWK+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 if test -n "$AWK"; then 3190 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3191else 3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193for as_dir in $PATH 3194do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 ac_cv_prog_AWK="$ac_prog" 3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3201 break 2 3202 fi 3203done 3204 done 3205IFS=$as_save_IFS 3206 3207fi 3208fi 3209AWK=$ac_cv_prog_AWK 3210if test -n "$AWK"; then 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3212$as_echo "$AWK" >&6; } 3213else 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215$as_echo "no" >&6; } 3216fi 3217 3218 3219 test -n "$AWK" && break 3220done 3221 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3223$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3224set x ${MAKE-make} 3225ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3226if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3227 $as_echo_n "(cached) " >&6 3228else 3229 cat >conftest.make <<\_ACEOF 3230SHELL = /bin/sh 3231all: 3232 @echo '@@@%%%=$(MAKE)=@@@%%%' 3233_ACEOF 3234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3235case `${MAKE-make} -f conftest.make 2>/dev/null` in 3236 *@@@%%%=?*=@@@%%%*) 3237 eval ac_cv_prog_make_${ac_make}_set=yes;; 3238 *) 3239 eval ac_cv_prog_make_${ac_make}_set=no;; 3240esac 3241rm -f conftest.make 3242fi 3243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3245$as_echo "yes" >&6; } 3246 SET_MAKE= 3247else 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249$as_echo "no" >&6; } 3250 SET_MAKE="MAKE=${MAKE-make}" 3251fi 3252 3253rm -rf .tst 2>/dev/null 3254mkdir .tst 2>/dev/null 3255if test -d .tst; then 3256 am__leading_dot=. 3257else 3258 am__leading_dot=_ 3259fi 3260rmdir .tst 2>/dev/null 3261 3262# Check whether --enable-silent-rules was given. 3263if test "${enable_silent_rules+set}" = set; then : 3264 enableval=$enable_silent_rules; 3265fi 3266 3267case $enable_silent_rules in # ((( 3268 yes) AM_DEFAULT_VERBOSITY=0;; 3269 no) AM_DEFAULT_VERBOSITY=1;; 3270 *) AM_DEFAULT_VERBOSITY=1;; 3271esac 3272am_make=${MAKE-make} 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3274$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3275if ${am_cv_make_support_nested_variables+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if $as_echo 'TRUE=$(BAR$(V)) 3279BAR0=false 3280BAR1=true 3281V=1 3282am__doit: 3283 @$(TRUE) 3284.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3285 am_cv_make_support_nested_variables=yes 3286else 3287 am_cv_make_support_nested_variables=no 3288fi 3289fi 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3291$as_echo "$am_cv_make_support_nested_variables" >&6; } 3292if test $am_cv_make_support_nested_variables = yes; then 3293 AM_V='$(V)' 3294 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3295else 3296 AM_V=$AM_DEFAULT_VERBOSITY 3297 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3298fi 3299AM_BACKSLASH='\' 3300 3301if test "`cd $srcdir && pwd`" != "`pwd`"; then 3302 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3303 # is not polluted with repeated "-I." 3304 am__isrc=' -I$(srcdir)' 3305 # test to see if srcdir already configured 3306 if test -f $srcdir/config.status; then 3307 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3308 fi 3309fi 3310 3311# test whether we have cygpath 3312if test -z "$CYGPATH_W"; then 3313 if (cygpath --version) >/dev/null 2>/dev/null; then 3314 CYGPATH_W='cygpath -w' 3315 else 3316 CYGPATH_W=echo 3317 fi 3318fi 3319 3320 3321# Define the identity of the package. 3322 PACKAGE='tiff' 3323 VERSION='4.0.3' 3324 3325 3326cat >>confdefs.h <<_ACEOF 3327#define PACKAGE "$PACKAGE" 3328_ACEOF 3329 3330 3331cat >>confdefs.h <<_ACEOF 3332#define VERSION "$VERSION" 3333_ACEOF 3334 3335# Some tools Automake needs. 3336 3337ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3338 3339 3340AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3341 3342 3343AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3344 3345 3346AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3347 3348 3349MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3350 3351# For better backward compatibility. To be removed once Automake 1.9.x 3352# dies out for good. For more background, see: 3353# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3354# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3355mkdir_p='$(MKDIR_P)' 3356 3357# We need awk for the "check" target. The system "awk" is bad on 3358# some platforms. 3359# Always define AMTAR for backward compatibility. Yes, it's still used 3360# in the wild :-( We should find a proper way to deprecate it ... 3361AMTAR='$${TAR-tar}' 3362 3363 3364# We'll loop over all known methods to create a tar archive until one works. 3365_am_tools='gnutar pax cpio none' 3366 3367am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3368 3369 3370 3371 3372 3373 3374# POSIX will say in a future version that running "rm -f" with no argument 3375# is OK; and we want to be able to make that assumption in our Makefile 3376# recipes. So use an aggressive probe to check that the usage we want is 3377# actually supported "in the wild" to an acceptable degree. 3378# See automake bug#10828. 3379# To make any issue more visible, cause the running configure to be aborted 3380# by default if the 'rm' program in use doesn't match our expectations; the 3381# user can still override this though. 3382if rm -f && rm -fr && rm -rf; then : OK; else 3383 cat >&2 <<'END' 3384Oops! 3385 3386Your 'rm' program seems unable to run without file operands specified 3387on the command line, even when the '-f' option is present. This is contrary 3388to the behaviour of most rm programs out there, and not conforming with 3389the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3390 3391Please tell bug-automake@gnu.org about your system, including the value 3392of your $PATH and any error possibly output before this message. This 3393can help us improve future automake versions. 3394 3395END 3396 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3397 echo 'Configuration will proceed anyway, since you have set the' >&2 3398 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3399 echo >&2 3400 else 3401 cat >&2 <<'END' 3402Aborting the configuration process, to ensure you take notice of the issue. 3403 3404You can download and install GNU coreutils to get an 'rm' implementation 3405that behaves properly: <http://www.gnu.org/software/coreutils/>. 3406 3407If you want to complete the configuration process using your problematic 3408'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3409to "yes", and re-run configure. 3410 3411END 3412 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3413 fi 3414fi 3415 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3417$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3418 # Check whether --enable-maintainer-mode was given. 3419if test "${enable_maintainer_mode+set}" = set; then : 3420 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3421else 3422 USE_MAINTAINER_MODE=no 3423fi 3424 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3426$as_echo "$USE_MAINTAINER_MODE" >&6; } 3427 if test $USE_MAINTAINER_MODE = yes; then 3428 MAINTAINER_MODE_TRUE= 3429 MAINTAINER_MODE_FALSE='#' 3430else 3431 MAINTAINER_MODE_TRUE='#' 3432 MAINTAINER_MODE_FALSE= 3433fi 3434 3435 MAINT=$MAINTAINER_MODE_TRUE 3436 3437 3438 3439LIBTIFF_MAJOR_VERSION=4 3440LIBTIFF_MINOR_VERSION=0 3441LIBTIFF_MICRO_VERSION=3 3442LIBTIFF_ALPHA_VERSION= 3443LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3444LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3445 3446LIBTIFF_CURRENT=7 3447LIBTIFF_REVISION=0 3448LIBTIFF_AGE=2 3449LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3450 3451# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3452# in OpenBSD uses some special semantics for shared libraries. Their soname 3453# contains only two numbers, major and minor. 3454# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3455#case "$host_os" in 3456# openbsd* | mirbsd*) 3457# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3458# ;; 3459# *) 3460# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3461# ;; 3462#esac 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472ac_ext=c 3473ac_cpp='$CPP $CPPFLAGS' 3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3476ac_compiler_gnu=$ac_cv_c_compiler_gnu 3477if test -n "$ac_tool_prefix"; then 3478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3479set dummy ${ac_tool_prefix}gcc; ac_word=$2 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481$as_echo_n "checking for $ac_word... " >&6; } 3482if ${ac_cv_prog_CC+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -n "$CC"; then 3486 ac_cv_prog_CC="$CC" # Let the user override the test. 3487else 3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489for as_dir in $PATH 3490do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3495 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3497 break 2 3498 fi 3499done 3500 done 3501IFS=$as_save_IFS 3502 3503fi 3504fi 3505CC=$ac_cv_prog_CC 3506if test -n "$CC"; then 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3508$as_echo "$CC" >&6; } 3509else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3511$as_echo "no" >&6; } 3512fi 3513 3514 3515fi 3516if test -z "$ac_cv_prog_CC"; then 3517 ac_ct_CC=$CC 3518 # Extract the first word of "gcc", so it can be a program name with args. 3519set dummy gcc; ac_word=$2 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3521$as_echo_n "checking for $ac_word... " >&6; } 3522if ${ac_cv_prog_ac_ct_CC+:} false; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 if test -n "$ac_ct_CC"; then 3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3527else 3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_exec_ext in '' $ac_executable_extensions; do 3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3535 ac_cv_prog_ac_ct_CC="gcc" 3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3537 break 2 3538 fi 3539done 3540 done 3541IFS=$as_save_IFS 3542 3543fi 3544fi 3545ac_ct_CC=$ac_cv_prog_ac_ct_CC 3546if test -n "$ac_ct_CC"; then 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3548$as_echo "$ac_ct_CC" >&6; } 3549else 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3551$as_echo "no" >&6; } 3552fi 3553 3554 if test "x$ac_ct_CC" = x; then 3555 CC="" 3556 else 3557 case $cross_compiling:$ac_tool_warned in 3558yes:) 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3561ac_tool_warned=yes ;; 3562esac 3563 CC=$ac_ct_CC 3564 fi 3565else 3566 CC="$ac_cv_prog_CC" 3567fi 3568 3569if test -z "$CC"; then 3570 if test -n "$ac_tool_prefix"; then 3571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3572set dummy ${ac_tool_prefix}cc; ac_word=$2 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574$as_echo_n "checking for $ac_word... " >&6; } 3575if ${ac_cv_prog_CC+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 if test -n "$CC"; then 3579 ac_cv_prog_CC="$CC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3588 ac_cv_prog_CC="${ac_tool_prefix}cc" 3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593 done 3594IFS=$as_save_IFS 3595 3596fi 3597fi 3598CC=$ac_cv_prog_CC 3599if test -n "$CC"; then 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3601$as_echo "$CC" >&6; } 3602else 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3604$as_echo "no" >&6; } 3605fi 3606 3607 3608 fi 3609fi 3610if test -z "$CC"; then 3611 # Extract the first word of "cc", so it can be a program name with args. 3612set dummy cc; ac_word=$2 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614$as_echo_n "checking for $ac_word... " >&6; } 3615if ${ac_cv_prog_CC+:} false; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test -n "$CC"; then 3619 ac_cv_prog_CC="$CC" # Let the user override the test. 3620else 3621 ac_prog_rejected=no 3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3630 ac_prog_rejected=yes 3631 continue 3632 fi 3633 ac_cv_prog_CC="cc" 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637done 3638 done 3639IFS=$as_save_IFS 3640 3641if test $ac_prog_rejected = yes; then 3642 # We found a bogon in the path, so make sure we never use it. 3643 set dummy $ac_cv_prog_CC 3644 shift 3645 if test $# != 0; then 3646 # We chose a different compiler from the bogus one. 3647 # However, it has the same basename, so the bogon will be chosen 3648 # first if we set CC to just the basename; use the full file name. 3649 shift 3650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3651 fi 3652fi 3653fi 3654fi 3655CC=$ac_cv_prog_CC 3656if test -n "$CC"; then 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3658$as_echo "$CC" >&6; } 3659else 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661$as_echo "no" >&6; } 3662fi 3663 3664 3665fi 3666if test -z "$CC"; then 3667 if test -n "$ac_tool_prefix"; then 3668 for ac_prog in cl.exe 3669 do 3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3671set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3673$as_echo_n "checking for $ac_word... " >&6; } 3674if ${ac_cv_prog_CC+:} false; then : 3675 $as_echo_n "(cached) " >&6 3676else 3677 if test -n "$CC"; then 3678 ac_cv_prog_CC="$CC" # Let the user override the test. 3679else 3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3681for as_dir in $PATH 3682do 3683 IFS=$as_save_IFS 3684 test -z "$as_dir" && as_dir=. 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3689 break 2 3690 fi 3691done 3692 done 3693IFS=$as_save_IFS 3694 3695fi 3696fi 3697CC=$ac_cv_prog_CC 3698if test -n "$CC"; then 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3700$as_echo "$CC" >&6; } 3701else 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3703$as_echo "no" >&6; } 3704fi 3705 3706 3707 test -n "$CC" && break 3708 done 3709fi 3710if test -z "$CC"; then 3711 ac_ct_CC=$CC 3712 for ac_prog in cl.exe 3713do 3714 # Extract the first word of "$ac_prog", so it can be a program name with args. 3715set dummy $ac_prog; ac_word=$2 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3717$as_echo_n "checking for $ac_word... " >&6; } 3718if ${ac_cv_prog_ac_ct_CC+:} false; then : 3719 $as_echo_n "(cached) " >&6 3720else 3721 if test -n "$ac_ct_CC"; then 3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3723else 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3731 ac_cv_prog_ac_ct_CC="$ac_prog" 3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736 done 3737IFS=$as_save_IFS 3738 3739fi 3740fi 3741ac_ct_CC=$ac_cv_prog_ac_ct_CC 3742if test -n "$ac_ct_CC"; then 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3744$as_echo "$ac_ct_CC" >&6; } 3745else 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748fi 3749 3750 3751 test -n "$ac_ct_CC" && break 3752done 3753 3754 if test "x$ac_ct_CC" = x; then 3755 CC="" 3756 else 3757 case $cross_compiling:$ac_tool_warned in 3758yes:) 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3761ac_tool_warned=yes ;; 3762esac 3763 CC=$ac_ct_CC 3764 fi 3765fi 3766 3767fi 3768 3769 3770test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3772as_fn_error $? "no acceptable C compiler found in \$PATH 3773See \`config.log' for more details" "$LINENO" 5; } 3774 3775# Provide some information about the compiler. 3776$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3777set X $ac_compile 3778ac_compiler=$2 3779for ac_option in --version -v -V -qversion; do 3780 { { ac_try="$ac_compiler $ac_option >&5" 3781case "(($ac_try" in 3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3783 *) ac_try_echo=$ac_try;; 3784esac 3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3786$as_echo "$ac_try_echo"; } >&5 3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3788 ac_status=$? 3789 if test -s conftest.err; then 3790 sed '10a\ 3791... rest of stderr output deleted ... 3792 10q' conftest.err >conftest.er1 3793 cat conftest.er1 >&5 3794 fi 3795 rm -f conftest.er1 conftest.err 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3797 test $ac_status = 0; } 3798done 3799 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802 3803int 3804main () 3805{ 3806 3807 ; 3808 return 0; 3809} 3810_ACEOF 3811ac_clean_files_save=$ac_clean_files 3812ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3813# Try to create an executable without -o first, disregard a.out. 3814# It will help us diagnose broken compilers, and finding out an intuition 3815# of exeext. 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3817$as_echo_n "checking whether the C compiler works... " >&6; } 3818ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3819 3820# The possible output files: 3821ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3822 3823ac_rmfiles= 3824for ac_file in $ac_files 3825do 3826 case $ac_file in 3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3828 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3829 esac 3830done 3831rm -f $ac_rmfiles 3832 3833if { { ac_try="$ac_link_default" 3834case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3839$as_echo "$ac_try_echo"; } >&5 3840 (eval "$ac_link_default") 2>&5 3841 ac_status=$? 3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3843 test $ac_status = 0; }; then : 3844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3845# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3846# in a Makefile. We should not override ac_cv_exeext if it was cached, 3847# so that the user can short-circuit this test for compilers unknown to 3848# Autoconf. 3849for ac_file in $ac_files '' 3850do 3851 test -f "$ac_file" || continue 3852 case $ac_file in 3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3854 ;; 3855 [ab].out ) 3856 # We found the default executable, but exeext='' is most 3857 # certainly right. 3858 break;; 3859 *.* ) 3860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3861 then :; else 3862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3863 fi 3864 # We set ac_cv_exeext here because the later test for it is not 3865 # safe: cross compilers may not add the suffix if given an `-o' 3866 # argument, so we may need to know it at that point already. 3867 # Even if this section looks crufty: it has the advantage of 3868 # actually working. 3869 break;; 3870 * ) 3871 break;; 3872 esac 3873done 3874test "$ac_cv_exeext" = no && ac_cv_exeext= 3875 3876else 3877 ac_file='' 3878fi 3879if test -z "$ac_file"; then : 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3881$as_echo "no" >&6; } 3882$as_echo "$as_me: failed program was:" >&5 3883sed 's/^/| /' conftest.$ac_ext >&5 3884 3885{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3887as_fn_error 77 "C compiler cannot create executables 3888See \`config.log' for more details" "$LINENO" 5; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3891$as_echo "yes" >&6; } 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3894$as_echo_n "checking for C compiler default output file name... " >&6; } 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3896$as_echo "$ac_file" >&6; } 3897ac_exeext=$ac_cv_exeext 3898 3899rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3900ac_clean_files=$ac_clean_files_save 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3902$as_echo_n "checking for suffix of executables... " >&6; } 3903if { { ac_try="$ac_link" 3904case "(($ac_try" in 3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3906 *) ac_try_echo=$ac_try;; 3907esac 3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3909$as_echo "$ac_try_echo"; } >&5 3910 (eval "$ac_link") 2>&5 3911 ac_status=$? 3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; }; then : 3914 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3915# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3916# work properly (i.e., refer to `conftest.exe'), while it won't with 3917# `rm'. 3918for ac_file in conftest.exe conftest conftest.*; do 3919 test -f "$ac_file" || continue 3920 case $ac_file in 3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3923 break;; 3924 * ) break;; 3925 esac 3926done 3927else 3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3930as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3931See \`config.log' for more details" "$LINENO" 5; } 3932fi 3933rm -f conftest conftest$ac_cv_exeext 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3935$as_echo "$ac_cv_exeext" >&6; } 3936 3937rm -f conftest.$ac_ext 3938EXEEXT=$ac_cv_exeext 3939ac_exeext=$EXEEXT 3940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941/* end confdefs.h. */ 3942#include <stdio.h> 3943int 3944main () 3945{ 3946FILE *f = fopen ("conftest.out", "w"); 3947 return ferror (f) || fclose (f) != 0; 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953ac_clean_files="$ac_clean_files conftest.out" 3954# Check that the compiler produces executables we can run. If not, either 3955# the compiler is broken, or we cross compile. 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3957$as_echo_n "checking whether we are cross compiling... " >&6; } 3958if test "$cross_compiling" != yes; then 3959 { { ac_try="$ac_link" 3960case "(($ac_try" in 3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3962 *) ac_try_echo=$ac_try;; 3963esac 3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3965$as_echo "$ac_try_echo"; } >&5 3966 (eval "$ac_link") 2>&5 3967 ac_status=$? 3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3969 test $ac_status = 0; } 3970 if { ac_try='./conftest$ac_cv_exeext' 3971 { { case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3976$as_echo "$ac_try_echo"; } >&5 3977 (eval "$ac_try") 2>&5 3978 ac_status=$? 3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3980 test $ac_status = 0; }; }; then 3981 cross_compiling=no 3982 else 3983 if test "$cross_compiling" = maybe; then 3984 cross_compiling=yes 3985 else 3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3988as_fn_error $? "cannot run C compiled programs. 3989If you meant to cross compile, use \`--host'. 3990See \`config.log' for more details" "$LINENO" 5; } 3991 fi 3992 fi 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3995$as_echo "$cross_compiling" >&6; } 3996 3997rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3998ac_clean_files=$ac_clean_files_save 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4000$as_echo_n "checking for suffix of object files... " >&6; } 4001if ${ac_cv_objext+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006 4007int 4008main () 4009{ 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015rm -f conftest.o conftest.obj 4016if { { ac_try="$ac_compile" 4017case "(($ac_try" in 4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4019 *) ac_try_echo=$ac_try;; 4020esac 4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4022$as_echo "$ac_try_echo"; } >&5 4023 (eval "$ac_compile") 2>&5 4024 ac_status=$? 4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4026 test $ac_status = 0; }; then : 4027 for ac_file in conftest.o conftest.obj conftest.*; do 4028 test -f "$ac_file" || continue; 4029 case $ac_file in 4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4032 break;; 4033 esac 4034done 4035else 4036 $as_echo "$as_me: failed program was:" >&5 4037sed 's/^/| /' conftest.$ac_ext >&5 4038 4039{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4041as_fn_error $? "cannot compute suffix of object files: cannot compile 4042See \`config.log' for more details" "$LINENO" 5; } 4043fi 4044rm -f conftest.$ac_cv_objext conftest.$ac_ext 4045fi 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4047$as_echo "$ac_cv_objext" >&6; } 4048OBJEXT=$ac_cv_objext 4049ac_objext=$OBJEXT 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4051$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4052if ${ac_cv_c_compiler_gnu+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main () 4060{ 4061#ifndef __GNUC__ 4062 choke me 4063#endif 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069if ac_fn_c_try_compile "$LINENO"; then : 4070 ac_compiler_gnu=yes 4071else 4072 ac_compiler_gnu=no 4073fi 4074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4075ac_cv_c_compiler_gnu=$ac_compiler_gnu 4076 4077fi 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4079$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4080if test $ac_compiler_gnu = yes; then 4081 GCC=yes 4082else 4083 GCC= 4084fi 4085ac_test_CFLAGS=${CFLAGS+set} 4086ac_save_CFLAGS=$CFLAGS 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4088$as_echo_n "checking whether $CC accepts -g... " >&6; } 4089if ${ac_cv_prog_cc_g+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 ac_save_c_werror_flag=$ac_c_werror_flag 4093 ac_c_werror_flag=yes 4094 ac_cv_prog_cc_g=no 4095 CFLAGS="-g" 4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097/* end confdefs.h. */ 4098 4099int 4100main () 4101{ 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107if ac_fn_c_try_compile "$LINENO"; then : 4108 ac_cv_prog_cc_g=yes 4109else 4110 CFLAGS="" 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113 4114int 4115main () 4116{ 4117 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122if ac_fn_c_try_compile "$LINENO"; then : 4123 4124else 4125 ac_c_werror_flag=$ac_save_c_werror_flag 4126 CFLAGS="-g" 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129 4130int 4131main () 4132{ 4133 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138if ac_fn_c_try_compile "$LINENO"; then : 4139 ac_cv_prog_cc_g=yes 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142fi 4143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4144fi 4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4146 ac_c_werror_flag=$ac_save_c_werror_flag 4147fi 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4149$as_echo "$ac_cv_prog_cc_g" >&6; } 4150if test "$ac_test_CFLAGS" = set; then 4151 CFLAGS=$ac_save_CFLAGS 4152elif test $ac_cv_prog_cc_g = yes; then 4153 if test "$GCC" = yes; then 4154 CFLAGS="-g -O2" 4155 else 4156 CFLAGS="-g" 4157 fi 4158else 4159 if test "$GCC" = yes; then 4160 CFLAGS="-O2" 4161 else 4162 CFLAGS= 4163 fi 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4166$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4167if ${ac_cv_prog_cc_c89+:} false; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 ac_cv_prog_cc_c89=no 4171ac_save_CC=$CC 4172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174#include <stdarg.h> 4175#include <stdio.h> 4176struct stat; 4177/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4178struct buf { int x; }; 4179FILE * (*rcsopen) (struct buf *, struct stat *, int); 4180static char *e (p, i) 4181 char **p; 4182 int i; 4183{ 4184 return p[i]; 4185} 4186static char *f (char * (*g) (char **, int), char **p, ...) 4187{ 4188 char *s; 4189 va_list v; 4190 va_start (v,p); 4191 s = g (p, va_arg (v,int)); 4192 va_end (v); 4193 return s; 4194} 4195 4196/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4197 function prototypes and stuff, but not '\xHH' hex character constants. 4198 These don't provoke an error unfortunately, instead are silently treated 4199 as 'x'. The following induces an error, until -std is added to get 4200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4201 array size at least. It's necessary to write '\x00'==0 to get something 4202 that's true only with -std. */ 4203int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4204 4205/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4206 inside strings and character constants. */ 4207#define FOO(x) 'x' 4208int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4209 4210int test (int i, double x); 4211struct s1 {int (*f) (int a);}; 4212struct s2 {int (*f) (double a);}; 4213int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4214int argc; 4215char **argv; 4216int 4217main () 4218{ 4219return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4226do 4227 CC="$ac_save_CC $ac_arg" 4228 if ac_fn_c_try_compile "$LINENO"; then : 4229 ac_cv_prog_cc_c89=$ac_arg 4230fi 4231rm -f core conftest.err conftest.$ac_objext 4232 test "x$ac_cv_prog_cc_c89" != "xno" && break 4233done 4234rm -f conftest.$ac_ext 4235CC=$ac_save_CC 4236 4237fi 4238# AC_CACHE_VAL 4239case "x$ac_cv_prog_cc_c89" in 4240 x) 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4242$as_echo "none needed" >&6; } ;; 4243 xno) 4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4245$as_echo "unsupported" >&6; } ;; 4246 *) 4247 CC="$CC $ac_cv_prog_cc_c89" 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4249$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4250esac 4251if test "x$ac_cv_prog_cc_c89" != xno; then : 4252 4253fi 4254 4255ac_ext=c 4256ac_cpp='$CPP $CPPFLAGS' 4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4259ac_compiler_gnu=$ac_cv_c_compiler_gnu 4260 4261ac_ext=c 4262ac_cpp='$CPP $CPPFLAGS' 4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4265ac_compiler_gnu=$ac_cv_c_compiler_gnu 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4267$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4268if ${am_cv_prog_cc_c_o+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273 4274int 4275main () 4276{ 4277 4278 ; 4279 return 0; 4280} 4281_ACEOF 4282 # Make sure it works both with $CC and with simple cc. 4283 # Following AC_PROG_CC_C_O, we do the test twice because some 4284 # compilers refuse to overwrite an existing .o file with -o, 4285 # though they will create one. 4286 am_cv_prog_cc_c_o=yes 4287 for am_i in 1 2; do 4288 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4289 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4290 ac_status=$? 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4292 (exit $ac_status); } \ 4293 && test -f conftest2.$ac_objext; then 4294 : OK 4295 else 4296 am_cv_prog_cc_c_o=no 4297 break 4298 fi 4299 done 4300 rm -f core conftest* 4301 unset am_i 4302fi 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4304$as_echo "$am_cv_prog_cc_c_o" >&6; } 4305if test "$am_cv_prog_cc_c_o" != yes; then 4306 # Losing compiler, so override with the script. 4307 # FIXME: It is wrong to rewrite CC. 4308 # But if we don't then we get into trouble of one sort or another. 4309 # A longer-term fix would be to have automake use am__CC in this case, 4310 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4311 CC="$am_aux_dir/compile $CC" 4312fi 4313ac_ext=c 4314ac_cpp='$CPP $CPPFLAGS' 4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4317ac_compiler_gnu=$ac_cv_c_compiler_gnu 4318 4319DEPDIR="${am__leading_dot}deps" 4320 4321ac_config_commands="$ac_config_commands depfiles" 4322 4323 4324am_make=${MAKE-make} 4325cat > confinc << 'END' 4326am__doit: 4327 @echo this is the am__doit target 4328.PHONY: am__doit 4329END 4330# If we don't find an include directive, just comment out the code. 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4332$as_echo_n "checking for style of include used by $am_make... " >&6; } 4333am__include="#" 4334am__quote= 4335_am_result=none 4336# First try GNU make style include. 4337echo "include confinc" > confmf 4338# Ignore all kinds of additional output from 'make'. 4339case `$am_make -s -f confmf 2> /dev/null` in #( 4340*the\ am__doit\ target*) 4341 am__include=include 4342 am__quote= 4343 _am_result=GNU 4344 ;; 4345esac 4346# Now try BSD make style include. 4347if test "$am__include" = "#"; then 4348 echo '.include "confinc"' > confmf 4349 case `$am_make -s -f confmf 2> /dev/null` in #( 4350 *the\ am__doit\ target*) 4351 am__include=.include 4352 am__quote="\"" 4353 _am_result=BSD 4354 ;; 4355 esac 4356fi 4357 4358 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4360$as_echo "$_am_result" >&6; } 4361rm -f confinc confmf 4362 4363# Check whether --enable-dependency-tracking was given. 4364if test "${enable_dependency_tracking+set}" = set; then : 4365 enableval=$enable_dependency_tracking; 4366fi 4367 4368if test "x$enable_dependency_tracking" != xno; then 4369 am_depcomp="$ac_aux_dir/depcomp" 4370 AMDEPBACKSLASH='\' 4371 am__nodep='_no' 4372fi 4373 if test "x$enable_dependency_tracking" != xno; then 4374 AMDEP_TRUE= 4375 AMDEP_FALSE='#' 4376else 4377 AMDEP_TRUE='#' 4378 AMDEP_FALSE= 4379fi 4380 4381 4382 4383depcc="$CC" am_compiler_list= 4384 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4386$as_echo_n "checking dependency style of $depcc... " >&6; } 4387if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4391 # We make a subdir and do the tests there. Otherwise we can end up 4392 # making bogus files that we don't know about and never remove. For 4393 # instance it was reported that on HP-UX the gcc test will end up 4394 # making a dummy file named 'D' -- because '-MD' means "put the output 4395 # in D". 4396 rm -rf conftest.dir 4397 mkdir conftest.dir 4398 # Copy depcomp to subdir because otherwise we won't find it if we're 4399 # using a relative directory. 4400 cp "$am_depcomp" conftest.dir 4401 cd conftest.dir 4402 # We will build objects and dependencies in a subdirectory because 4403 # it helps to detect inapplicable dependency modes. For instance 4404 # both Tru64's cc and ICC support -MD to output dependencies as a 4405 # side effect of compilation, but ICC will put the dependencies in 4406 # the current directory while Tru64 will put them in the object 4407 # directory. 4408 mkdir sub 4409 4410 am_cv_CC_dependencies_compiler_type=none 4411 if test "$am_compiler_list" = ""; then 4412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4413 fi 4414 am__universal=false 4415 case " $depcc " in #( 4416 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4417 esac 4418 4419 for depmode in $am_compiler_list; do 4420 # Setup a source with many dependencies, because some compilers 4421 # like to wrap large dependency lists on column 80 (with \), and 4422 # we should not choose a depcomp mode which is confused by this. 4423 # 4424 # We need to recreate these files for each test, as the compiler may 4425 # overwrite some of them when testing with obscure command lines. 4426 # This happens at least with the AIX C compiler. 4427 : > sub/conftest.c 4428 for i in 1 2 3 4 5 6; do 4429 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4430 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4431 # Solaris 10 /bin/sh. 4432 echo '/* dummy */' > sub/conftst$i.h 4433 done 4434 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4435 4436 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4437 # mode. It turns out that the SunPro C++ compiler does not properly 4438 # handle '-M -o', and we need to detect this. Also, some Intel 4439 # versions had trouble with output in subdirs. 4440 am__obj=sub/conftest.${OBJEXT-o} 4441 am__minus_obj="-o $am__obj" 4442 case $depmode in 4443 gcc) 4444 # This depmode causes a compiler race in universal mode. 4445 test "$am__universal" = false || continue 4446 ;; 4447 nosideeffect) 4448 # After this tag, mechanisms are not by side-effect, so they'll 4449 # only be used when explicitly requested. 4450 if test "x$enable_dependency_tracking" = xyes; then 4451 continue 4452 else 4453 break 4454 fi 4455 ;; 4456 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4457 # This compiler won't grok '-c -o', but also, the minuso test has 4458 # not run yet. These depmodes are late enough in the game, and 4459 # so weak that their functioning should not be impacted. 4460 am__obj=conftest.${OBJEXT-o} 4461 am__minus_obj= 4462 ;; 4463 none) break ;; 4464 esac 4465 if depmode=$depmode \ 4466 source=sub/conftest.c object=$am__obj \ 4467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4468 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4469 >/dev/null 2>conftest.err && 4470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4472 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4474 # icc doesn't choke on unknown options, it will just issue warnings 4475 # or remarks (even with -Werror). So we grep stderr for any message 4476 # that says an option was ignored or not supported. 4477 # When given -MP, icc 7.0 and 7.1 complain thusly: 4478 # icc: Command line warning: ignoring option '-M'; no argument required 4479 # The diagnosis changed in icc 8.0: 4480 # icc: Command line remark: option '-MP' not supported 4481 if (grep 'ignoring option' conftest.err || 4482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4483 am_cv_CC_dependencies_compiler_type=$depmode 4484 break 4485 fi 4486 fi 4487 done 4488 4489 cd .. 4490 rm -rf conftest.dir 4491else 4492 am_cv_CC_dependencies_compiler_type=none 4493fi 4494 4495fi 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4497$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4499 4500 if 4501 test "x$enable_dependency_tracking" != xno \ 4502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4503 am__fastdepCC_TRUE= 4504 am__fastdepCC_FALSE='#' 4505else 4506 am__fastdepCC_TRUE='#' 4507 am__fastdepCC_FALSE= 4508fi 4509 4510 4511 4512 4513 4514 ansi= 4515 if test -z "$ansi"; then 4516 msg="for C compiler warning flags" 4517 else 4518 msg="for C compiler warning and ANSI conformance flags" 4519 fi 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4521$as_echo_n "checking $msg... " >&6; } 4522if ${vl_cv_prog_cc_warnings+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 4526 if test -n "$CC"; then 4527 cat > conftest.c <<EOF 4528int main(int argc, char **argv) { return 0; } 4529EOF 4530 4531 if test "$GCC" = "yes"; then 4532 if test -z "$ansi"; then 4533 vl_cv_prog_cc_warnings="-Wall -W" 4534 else 4535 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4536 fi 4537 4538 4539 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4540 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4541 test -f conftest.o; then 4542 if test -z "$ansi"; then 4543 vl_cv_prog_cc_warnings="-v" 4544 else 4545 vl_cv_prog_cc_warnings="-v -Xc" 4546 fi 4547 4548 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4549 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4550 test -f conftest.o; then 4551 if test -z "$ansi"; then 4552 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4553 else 4554 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4555 fi 4556 4557 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4558 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4559 test -f conftest.o; then 4560 if test -z "$ansi"; then 4561 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4562 else 4563 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4564 fi 4565 4566 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4567 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4568 test -f conftest.o; then 4569 if test -z "$ansi"; then 4570 vl_cv_prog_cc_warnings="-fullwarn" 4571 else 4572 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4573 fi 4574 4575 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4576 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4577 test -f conftest.o; then 4578 if test -z "$ansi"; then 4579 vl_cv_prog_cc_warnings="+w1" 4580 else 4581 vl_cv_prog_cc_warnings="+w1 -Aa" 4582 fi 4583 4584 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4585 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4586 test -f conftest.o; then 4587 if test -z "$ansi"; then 4588 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4589 else 4590 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4591 fi 4592 4593 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4594 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4595 test -f conftest.o; then 4596 if test -z "$ansi"; then 4597 vl_cv_prog_cc_warnings="-h msglevel 2" 4598 else 4599 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4600 fi 4601 4602 fi 4603 rm -f conftest.* 4604 fi 4605 if test -n "$vl_cv_prog_cc_warnings"; then 4606 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4607 else 4608 vl_cv_prog_cc_warnings="unknown" 4609 fi 4610 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4613$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4614 4615 4616 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4618$as_echo_n "checking whether ln -s works... " >&6; } 4619LN_S=$as_ln_s 4620if test "$LN_S" = "ln -s"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4622$as_echo "yes" >&6; } 4623else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4625$as_echo "no, using $LN_S" >&6; } 4626fi 4627 4628 4629 4630# Check if LD supports linker scripts, and define automake conditional 4631# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 4632# constrained to compilers using GNU ld on ELF systems or systems 4633# which provide an adequate emulation thereof. 4634# Check whether --enable-ld-version-script was given. 4635if test "${enable_ld_version_script+set}" = set; then : 4636 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4637else 4638 have_ld_version_script=no 4639fi 4640 4641if test "$have_ld_version_script" != no; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4643$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4644 save_LDFLAGS="$LDFLAGS" 4645 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4646 cat > conftest.map <<EOF 4647VERS_1 { 4648 global: sym; 4649}; 4650 4651VERS_2 { 4652 global: sym; 4653} VERS_1; 4654EOF 4655 4656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658 4659int 4660main () 4661{ 4662 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667if ac_fn_c_try_link "$LINENO"; then : 4668 have_ld_version_script=yes 4669else 4670 have_ld_version_script=no 4671fi 4672rm -f core conftest.err conftest.$ac_objext \ 4673 conftest$ac_exeext conftest.$ac_ext 4674 rm -f conftest.map 4675 LDFLAGS="$save_LDFLAGS" 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4677$as_echo "$have_ld_version_script" >&6; } 4678fi 4679 if test "$have_ld_version_script" = "yes"; then 4680 HAVE_LD_VERSION_SCRIPT_TRUE= 4681 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4682else 4683 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4684 HAVE_LD_VERSION_SCRIPT_FALSE= 4685fi 4686 4687 4688 4689 4690 4691 4692case `pwd` in 4693 *\ * | *\ *) 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4695$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4696esac 4697 4698 4699 4700macro_version='2.4.2.458.26-92994' 4701macro_revision='2.4.3' 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715ltmain=$ac_aux_dir/ltmain.sh 4716 4717# Backslashify metacharacters that are still active within 4718# double-quoted strings. 4719sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4720 4721# Same as above, but do not quote variable references. 4722double_quote_subst='s/\(["`\\]\)/\\\1/g' 4723 4724# Sed substitution to delay expansion of an escaped shell variable in a 4725# double_quote_subst'ed string. 4726delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4727 4728# Sed substitution to delay expansion of an escaped single quote. 4729delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4730 4731# Sed substitution to avoid accidental globbing in evaled expressions 4732no_glob_subst='s/\*/\\\*/g' 4733 4734ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4735ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4736ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4737 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4739$as_echo_n "checking how to print strings... " >&6; } 4740# Test print first, because it will be a builtin if present. 4741if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4742 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4743 ECHO='print -r --' 4744elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4745 ECHO='printf %s\n' 4746else 4747 # Use this function as a fallback that always works. 4748 func_fallback_echo () 4749 { 4750 eval 'cat <<_LTECHO_EOF 4751$1 4752_LTECHO_EOF' 4753 } 4754 ECHO='func_fallback_echo' 4755fi 4756 4757# func_echo_all arg... 4758# Invoke $ECHO with all args, space-separated. 4759func_echo_all () 4760{ 4761 $ECHO "" 4762} 4763 4764case $ECHO in 4765 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4766$as_echo "printf" >&6; } ;; 4767 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4768$as_echo "print -r" >&6; } ;; 4769 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4770$as_echo "cat" >&6; } ;; 4771esac 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4787$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4788if ${ac_cv_path_SED+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790else 4791 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4792 for ac_i in 1 2 3 4 5 6 7; do 4793 ac_script="$ac_script$as_nl$ac_script" 4794 done 4795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4796 { ac_script=; unset ac_script;} 4797 if test -z "$SED"; then 4798 ac_path_SED_found=false 4799 # Loop through the user's path and test for each of PROGNAME-LIST 4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 test -z "$as_dir" && as_dir=. 4805 for ac_prog in sed gsed; do 4806 for ac_exec_ext in '' $ac_executable_extensions; do 4807 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4808 as_fn_executable_p "$ac_path_SED" || continue 4809# Check for GNU ac_path_SED and select it if it is found. 4810 # Check for GNU $ac_path_SED 4811case `"$ac_path_SED" --version 2>&1` in 4812*GNU*) 4813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4814*) 4815 ac_count=0 4816 $as_echo_n 0123456789 >"conftest.in" 4817 while : 4818 do 4819 cat "conftest.in" "conftest.in" >"conftest.tmp" 4820 mv "conftest.tmp" "conftest.in" 4821 cp "conftest.in" "conftest.nl" 4822 $as_echo '' >> "conftest.nl" 4823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4825 as_fn_arith $ac_count + 1 && ac_count=$as_val 4826 if test $ac_count -gt ${ac_path_SED_max-0}; then 4827 # Best one so far, save it but keep looking for a better one 4828 ac_cv_path_SED="$ac_path_SED" 4829 ac_path_SED_max=$ac_count 4830 fi 4831 # 10*(2^10) chars as input seems more than enough 4832 test $ac_count -gt 10 && break 4833 done 4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4835esac 4836 4837 $ac_path_SED_found && break 3 4838 done 4839 done 4840 done 4841IFS=$as_save_IFS 4842 if test -z "$ac_cv_path_SED"; then 4843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4844 fi 4845else 4846 ac_cv_path_SED=$SED 4847fi 4848 4849fi 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4851$as_echo "$ac_cv_path_SED" >&6; } 4852 SED="$ac_cv_path_SED" 4853 rm -f conftest.sed 4854 4855test -z "$SED" && SED=sed 4856Xsed="$SED -e 1s/^X//" 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4869$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4870if ${ac_cv_path_GREP+:} false; then : 4871 $as_echo_n "(cached) " >&6 4872else 4873 if test -z "$GREP"; then 4874 ac_path_GREP_found=false 4875 # Loop through the user's path and test for each of PROGNAME-LIST 4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4878do 4879 IFS=$as_save_IFS 4880 test -z "$as_dir" && as_dir=. 4881 for ac_prog in grep ggrep; do 4882 for ac_exec_ext in '' $ac_executable_extensions; do 4883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4884 as_fn_executable_p "$ac_path_GREP" || continue 4885# Check for GNU ac_path_GREP and select it if it is found. 4886 # Check for GNU $ac_path_GREP 4887case `"$ac_path_GREP" --version 2>&1` in 4888*GNU*) 4889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4890*) 4891 ac_count=0 4892 $as_echo_n 0123456789 >"conftest.in" 4893 while : 4894 do 4895 cat "conftest.in" "conftest.in" >"conftest.tmp" 4896 mv "conftest.tmp" "conftest.in" 4897 cp "conftest.in" "conftest.nl" 4898 $as_echo 'GREP' >> "conftest.nl" 4899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4901 as_fn_arith $ac_count + 1 && ac_count=$as_val 4902 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4903 # Best one so far, save it but keep looking for a better one 4904 ac_cv_path_GREP="$ac_path_GREP" 4905 ac_path_GREP_max=$ac_count 4906 fi 4907 # 10*(2^10) chars as input seems more than enough 4908 test $ac_count -gt 10 && break 4909 done 4910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4911esac 4912 4913 $ac_path_GREP_found && break 3 4914 done 4915 done 4916 done 4917IFS=$as_save_IFS 4918 if test -z "$ac_cv_path_GREP"; then 4919 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4920 fi 4921else 4922 ac_cv_path_GREP=$GREP 4923fi 4924 4925fi 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4927$as_echo "$ac_cv_path_GREP" >&6; } 4928 GREP="$ac_cv_path_GREP" 4929 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4932$as_echo_n "checking for egrep... " >&6; } 4933if ${ac_cv_path_EGREP+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4937 then ac_cv_path_EGREP="$GREP -E" 4938 else 4939 if test -z "$EGREP"; then 4940 ac_path_EGREP_found=false 4941 # Loop through the user's path and test for each of PROGNAME-LIST 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4944do 4945 IFS=$as_save_IFS 4946 test -z "$as_dir" && as_dir=. 4947 for ac_prog in egrep; do 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4950 as_fn_executable_p "$ac_path_EGREP" || continue 4951# Check for GNU ac_path_EGREP and select it if it is found. 4952 # Check for GNU $ac_path_EGREP 4953case `"$ac_path_EGREP" --version 2>&1` in 4954*GNU*) 4955 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4956*) 4957 ac_count=0 4958 $as_echo_n 0123456789 >"conftest.in" 4959 while : 4960 do 4961 cat "conftest.in" "conftest.in" >"conftest.tmp" 4962 mv "conftest.tmp" "conftest.in" 4963 cp "conftest.in" "conftest.nl" 4964 $as_echo 'EGREP' >> "conftest.nl" 4965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4967 as_fn_arith $ac_count + 1 && ac_count=$as_val 4968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4969 # Best one so far, save it but keep looking for a better one 4970 ac_cv_path_EGREP="$ac_path_EGREP" 4971 ac_path_EGREP_max=$ac_count 4972 fi 4973 # 10*(2^10) chars as input seems more than enough 4974 test $ac_count -gt 10 && break 4975 done 4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4977esac 4978 4979 $ac_path_EGREP_found && break 3 4980 done 4981 done 4982 done 4983IFS=$as_save_IFS 4984 if test -z "$ac_cv_path_EGREP"; then 4985 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4986 fi 4987else 4988 ac_cv_path_EGREP=$EGREP 4989fi 4990 4991 fi 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4994$as_echo "$ac_cv_path_EGREP" >&6; } 4995 EGREP="$ac_cv_path_EGREP" 4996 4997 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4999$as_echo_n "checking for fgrep... " >&6; } 5000if ${ac_cv_path_FGREP+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5004 then ac_cv_path_FGREP="$GREP -F" 5005 else 5006 if test -z "$FGREP"; then 5007 ac_path_FGREP_found=false 5008 # Loop through the user's path and test for each of PROGNAME-LIST 5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5011do 5012 IFS=$as_save_IFS 5013 test -z "$as_dir" && as_dir=. 5014 for ac_prog in fgrep; do 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5017 as_fn_executable_p "$ac_path_FGREP" || continue 5018# Check for GNU ac_path_FGREP and select it if it is found. 5019 # Check for GNU $ac_path_FGREP 5020case `"$ac_path_FGREP" --version 2>&1` in 5021*GNU*) 5022 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5023*) 5024 ac_count=0 5025 $as_echo_n 0123456789 >"conftest.in" 5026 while : 5027 do 5028 cat "conftest.in" "conftest.in" >"conftest.tmp" 5029 mv "conftest.tmp" "conftest.in" 5030 cp "conftest.in" "conftest.nl" 5031 $as_echo 'FGREP' >> "conftest.nl" 5032 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5034 as_fn_arith $ac_count + 1 && ac_count=$as_val 5035 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5036 # Best one so far, save it but keep looking for a better one 5037 ac_cv_path_FGREP="$ac_path_FGREP" 5038 ac_path_FGREP_max=$ac_count 5039 fi 5040 # 10*(2^10) chars as input seems more than enough 5041 test $ac_count -gt 10 && break 5042 done 5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5044esac 5045 5046 $ac_path_FGREP_found && break 3 5047 done 5048 done 5049 done 5050IFS=$as_save_IFS 5051 if test -z "$ac_cv_path_FGREP"; then 5052 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5053 fi 5054else 5055 ac_cv_path_FGREP=$FGREP 5056fi 5057 5058 fi 5059fi 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5061$as_echo "$ac_cv_path_FGREP" >&6; } 5062 FGREP="$ac_cv_path_FGREP" 5063 5064 5065test -z "$GREP" && GREP=grep 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085# Check whether --with-gnu-ld was given. 5086if test "${with_gnu_ld+set}" = set; then : 5087 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5088else 5089 with_gnu_ld=no 5090fi 5091 5092ac_prog=ld 5093if test yes = "$GCC"; then 5094 # Check if gcc -print-prog-name=ld gives a path. 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5096$as_echo_n "checking for ld used by $CC... " >&6; } 5097 case $host in 5098 *-*-mingw*) 5099 # gcc leaves a trailing carriage return, which upsets mingw 5100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5101 *) 5102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5103 esac 5104 case $ac_prog in 5105 # Accept absolute paths. 5106 [\\/]* | ?:[\\/]*) 5107 re_direlt='/[^/][^/]*/\.\./' 5108 # Canonicalize the pathname of ld 5109 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5110 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5111 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5112 done 5113 test -z "$LD" && LD=$ac_prog 5114 ;; 5115 "") 5116 # If it fails, then pretend we aren't using GCC. 5117 ac_prog=ld 5118 ;; 5119 *) 5120 # If it is relative, then search for the first ld in PATH. 5121 with_gnu_ld=unknown 5122 ;; 5123 esac 5124elif test yes = "$with_gnu_ld"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5126$as_echo_n "checking for GNU ld... " >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5129$as_echo_n "checking for non-GNU ld... " >&6; } 5130fi 5131if ${lt_cv_path_LD+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test -z "$LD"; then 5135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5136 for ac_dir in $PATH; do 5137 IFS=$lt_save_ifs 5138 test -z "$ac_dir" && ac_dir=. 5139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5140 lt_cv_path_LD=$ac_dir/$ac_prog 5141 # Check to see if the program is GNU ld. I'd rather use --version, 5142 # but apparently some variants of GNU ld only accept -v. 5143 # Break only if it was the GNU/non-GNU ld that we prefer. 5144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5145 *GNU* | *'with BFD'*) 5146 test no != "$with_gnu_ld" && break 5147 ;; 5148 *) 5149 test yes != "$with_gnu_ld" && break 5150 ;; 5151 esac 5152 fi 5153 done 5154 IFS=$lt_save_ifs 5155else 5156 lt_cv_path_LD=$LD # Let the user override the test with a path. 5157fi 5158fi 5159 5160LD=$lt_cv_path_LD 5161if test -n "$LD"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5163$as_echo "$LD" >&6; } 5164else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166$as_echo "no" >&6; } 5167fi 5168test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5170$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5171if ${lt_cv_prog_gnu_ld+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5175case `$LD -v 2>&1 </dev/null` in 5176*GNU* | *'with BFD'*) 5177 lt_cv_prog_gnu_ld=yes 5178 ;; 5179*) 5180 lt_cv_prog_gnu_ld=no 5181 ;; 5182esac 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5185$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5186with_gnu_ld=$lt_cv_prog_gnu_ld 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5197$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5198if ${lt_cv_path_NM+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if test -n "$NM"; then 5202 # Let the user override the test. 5203 lt_cv_path_NM=$NM 5204else 5205 lt_nm_to_check=${ac_tool_prefix}nm 5206 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5207 lt_nm_to_check="$lt_nm_to_check nm" 5208 fi 5209 for lt_tmp_nm in $lt_nm_to_check; do 5210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5211 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5212 IFS=$lt_save_ifs 5213 test -z "$ac_dir" && ac_dir=. 5214 tmp_nm=$ac_dir/$lt_tmp_nm 5215 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5216 # Check to see if the nm accepts a BSD-compat flag. 5217 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5218 # nm: unknown option "B" ignored 5219 # Tru64's nm complains that /dev/null is an invalid object file 5220 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5221 case $build_os in 5222 mingw*) lt_bad_file=conftest.nm/nofile ;; 5223 *) lt_bad_file=/dev/null ;; 5224 esac 5225 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5226 *$lt_bad_file* | *'Invalid file or object type'*) 5227 lt_cv_path_NM="$tmp_nm -B" 5228 break 2 5229 ;; 5230 *) 5231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5232 */dev/null*) 5233 lt_cv_path_NM="$tmp_nm -p" 5234 break 2 5235 ;; 5236 *) 5237 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5238 continue # so that we can try to find one that supports BSD flags 5239 ;; 5240 esac 5241 ;; 5242 esac 5243 fi 5244 done 5245 IFS=$lt_save_ifs 5246 done 5247 : ${lt_cv_path_NM=no} 5248fi 5249fi 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5251$as_echo "$lt_cv_path_NM" >&6; } 5252if test no != "$lt_cv_path_NM"; then 5253 NM=$lt_cv_path_NM 5254else 5255 # Didn't find any BSD compatible name lister, look for dumpbin. 5256 if test -n "$DUMPBIN"; then : 5257 # Let the user override the test. 5258 else 5259 if test -n "$ac_tool_prefix"; then 5260 for ac_prog in dumpbin "link -dump" 5261 do 5262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5263set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5265$as_echo_n "checking for $ac_word... " >&6; } 5266if ${ac_cv_prog_DUMPBIN+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 if test -n "$DUMPBIN"; then 5270 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5271else 5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283done 5284 done 5285IFS=$as_save_IFS 5286 5287fi 5288fi 5289DUMPBIN=$ac_cv_prog_DUMPBIN 5290if test -n "$DUMPBIN"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5292$as_echo "$DUMPBIN" >&6; } 5293else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295$as_echo "no" >&6; } 5296fi 5297 5298 5299 test -n "$DUMPBIN" && break 5300 done 5301fi 5302if test -z "$DUMPBIN"; then 5303 ac_ct_DUMPBIN=$DUMPBIN 5304 for ac_prog in dumpbin "link -dump" 5305do 5306 # Extract the first word of "$ac_prog", so it can be a program name with args. 5307set dummy $ac_prog; ac_word=$2 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5309$as_echo_n "checking for $ac_word... " >&6; } 5310if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 if test -n "$ac_ct_DUMPBIN"; then 5314 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5315else 5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5317for as_dir in $PATH 5318do 5319 IFS=$as_save_IFS 5320 test -z "$as_dir" && as_dir=. 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5323 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5325 break 2 5326 fi 5327done 5328 done 5329IFS=$as_save_IFS 5330 5331fi 5332fi 5333ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5334if test -n "$ac_ct_DUMPBIN"; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5336$as_echo "$ac_ct_DUMPBIN" >&6; } 5337else 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5339$as_echo "no" >&6; } 5340fi 5341 5342 5343 test -n "$ac_ct_DUMPBIN" && break 5344done 5345 5346 if test "x$ac_ct_DUMPBIN" = x; then 5347 DUMPBIN=":" 5348 else 5349 case $cross_compiling:$ac_tool_warned in 5350yes:) 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5353ac_tool_warned=yes ;; 5354esac 5355 DUMPBIN=$ac_ct_DUMPBIN 5356 fi 5357fi 5358 5359 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5360 *COFF*) 5361 DUMPBIN="$DUMPBIN -symbols -headers" 5362 ;; 5363 *) 5364 DUMPBIN=: 5365 ;; 5366 esac 5367 fi 5368 5369 if test : != "$DUMPBIN"; then 5370 NM=$DUMPBIN 5371 fi 5372fi 5373test -z "$NM" && NM=nm 5374 5375 5376 5377 5378 5379 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5381$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5382if ${lt_cv_nm_interface+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 lt_cv_nm_interface="BSD nm" 5386 echo "int some_variable = 0;" > conftest.$ac_ext 5387 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5388 (eval "$ac_compile" 2>conftest.err) 5389 cat conftest.err >&5 5390 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5391 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5392 cat conftest.err >&5 5393 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5394 cat conftest.out >&5 5395 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5396 lt_cv_nm_interface="MS dumpbin" 5397 fi 5398 rm -f conftest* 5399fi 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5401$as_echo "$lt_cv_nm_interface" >&6; } 5402 5403# find the maximum length of command line arguments 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5405$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5406if ${lt_cv_sys_max_cmd_len+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 i=0 5410 teststring=ABCD 5411 5412 case $build_os in 5413 msdosdjgpp*) 5414 # On DJGPP, this test can blow up pretty badly due to problems in libc 5415 # (any single argument exceeding 2000 bytes causes a buffer overrun 5416 # during glob expansion). Even if it were fixed, the result of this 5417 # check would be larger than it should be. 5418 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5419 ;; 5420 5421 gnu*) 5422 # Under GNU Hurd, this test is not required because there is 5423 # no limit to the length of command line arguments. 5424 # Libtool will interpret -1 as no limit whatsoever 5425 lt_cv_sys_max_cmd_len=-1; 5426 ;; 5427 5428 cygwin* | mingw* | cegcc*) 5429 # On Win9x/ME, this test blows up -- it succeeds, but takes 5430 # about 5 minutes as the teststring grows exponentially. 5431 # Worse, since 9x/ME are not pre-emptively multitasking, 5432 # you end up with a "frozen" computer, even though with patience 5433 # the test eventually succeeds (with a max line length of 256k). 5434 # Instead, let's just punt: use the minimum linelength reported by 5435 # all of the supported platforms: 8192 (on NT/2K/XP). 5436 lt_cv_sys_max_cmd_len=8192; 5437 ;; 5438 5439 mint*) 5440 # On MiNT this can take a long time and run out of memory. 5441 lt_cv_sys_max_cmd_len=8192; 5442 ;; 5443 5444 amigaos*) 5445 # On AmigaOS with pdksh, this test takes hours, literally. 5446 # So we just punt and use a minimum line length of 8192. 5447 lt_cv_sys_max_cmd_len=8192; 5448 ;; 5449 5450 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5451 # This has been around since 386BSD, at least. Likely further. 5452 if test -x /sbin/sysctl; then 5453 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5454 elif test -x /usr/sbin/sysctl; then 5455 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5456 else 5457 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5458 fi 5459 # And add a safety zone 5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5462 ;; 5463 5464 interix*) 5465 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5466 lt_cv_sys_max_cmd_len=196608 5467 ;; 5468 5469 os2*) 5470 # The test takes a long time on OS/2. 5471 lt_cv_sys_max_cmd_len=8192 5472 ;; 5473 5474 osf*) 5475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5477 # nice to cause kernel panics so lets avoid the loop below. 5478 # First set a reasonable default. 5479 lt_cv_sys_max_cmd_len=16384 5480 # 5481 if test -x /sbin/sysconfig; then 5482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5483 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5484 esac 5485 fi 5486 ;; 5487 sco3.2v5*) 5488 lt_cv_sys_max_cmd_len=102400 5489 ;; 5490 sysv5* | sco5v6* | sysv4.2uw2*) 5491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5492 if test -n "$kargmax"; then 5493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5494 else 5495 lt_cv_sys_max_cmd_len=32768 5496 fi 5497 ;; 5498 *) 5499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5500 if test -n "$lt_cv_sys_max_cmd_len" && \ 5501 test undefined != "$lt_cv_sys_max_cmd_len"; then 5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5504 else 5505 # Make teststring a little bigger before we do anything with it. 5506 # a 1K string should be a reasonable start. 5507 for i in 1 2 3 4 5 6 7 8; do 5508 teststring=$teststring$teststring 5509 done 5510 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5511 # If test is not a shell built-in, we'll probably end up computing a 5512 # maximum length that is only half of the actual maximum length, but 5513 # we can't tell. 5514 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5515 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5516 test 17 != "$i" # 1/2 MB should be enough 5517 do 5518 i=`expr $i + 1` 5519 teststring=$teststring$teststring 5520 done 5521 # Only check the string length outside the loop. 5522 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5523 teststring= 5524 # Add a significant safety factor because C++ compilers can tack on 5525 # massive amounts of additional arguments before passing them to the 5526 # linker. It appears as though 1/2 is a usable value. 5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5528 fi 5529 ;; 5530 esac 5531 5532fi 5533 5534if test -n "$lt_cv_sys_max_cmd_len"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5536$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5539$as_echo "none" >&6; } 5540fi 5541max_cmd_len=$lt_cv_sys_max_cmd_len 5542 5543 5544 5545 5546 5547 5548: ${CP="cp -f"} 5549: ${MV="mv -f"} 5550: ${RM="rm -f"} 5551 5552if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5553 lt_unset=unset 5554else 5555 lt_unset=false 5556fi 5557 5558 5559 5560 5561 5562# test EBCDIC or ASCII 5563case `echo X|tr X '\101'` in 5564 A) # ASCII based system 5565 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5566 lt_SP2NL='tr \040 \012' 5567 lt_NL2SP='tr \015\012 \040\040' 5568 ;; 5569 *) # EBCDIC based system 5570 lt_SP2NL='tr \100 \n' 5571 lt_NL2SP='tr \r\n \100\100' 5572 ;; 5573esac 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5584$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5585if ${lt_cv_to_host_file_cmd+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 case $host in 5589 *-*-mingw* ) 5590 case $build in 5591 *-*-mingw* ) # actually msys 5592 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5593 ;; 5594 *-*-cygwin* ) 5595 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5596 ;; 5597 * ) # otherwise, assume *nix 5598 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5599 ;; 5600 esac 5601 ;; 5602 *-*-cygwin* ) 5603 case $build in 5604 *-*-mingw* ) # actually msys 5605 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5606 ;; 5607 *-*-cygwin* ) 5608 lt_cv_to_host_file_cmd=func_convert_file_noop 5609 ;; 5610 * ) # otherwise, assume *nix 5611 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5612 ;; 5613 esac 5614 ;; 5615 * ) # unhandled hosts (and "normal" native builds) 5616 lt_cv_to_host_file_cmd=func_convert_file_noop 5617 ;; 5618esac 5619 5620fi 5621 5622to_host_file_cmd=$lt_cv_to_host_file_cmd 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5624$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5625 5626 5627 5628 5629 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5631$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5632if ${lt_cv_to_tool_file_cmd+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 #assume ordinary cross tools, or native build. 5636lt_cv_to_tool_file_cmd=func_convert_file_noop 5637case $host in 5638 *-*-mingw* ) 5639 case $build in 5640 *-*-mingw* ) # actually msys 5641 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5642 ;; 5643 esac 5644 ;; 5645esac 5646 5647fi 5648 5649to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5651$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5652 5653 5654 5655 5656 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5658$as_echo_n "checking for $LD option to reload object files... " >&6; } 5659if ${lt_cv_ld_reload_flag+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 lt_cv_ld_reload_flag='-r' 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5665$as_echo "$lt_cv_ld_reload_flag" >&6; } 5666reload_flag=$lt_cv_ld_reload_flag 5667case $reload_flag in 5668"" | " "*) ;; 5669*) reload_flag=" $reload_flag" ;; 5670esac 5671reload_cmds='$LD$reload_flag -o $output$reload_objs' 5672case $host_os in 5673 cygwin* | mingw* | pw32* | cegcc*) 5674 if test yes != "$GCC"; then 5675 reload_cmds=false 5676 fi 5677 ;; 5678 darwin*) 5679 if test yes = "$GCC"; then 5680 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5681 else 5682 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5683 fi 5684 ;; 5685esac 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695if test -n "$ac_tool_prefix"; then 5696 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5697set dummy ${ac_tool_prefix}objdump; ac_word=$2 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5699$as_echo_n "checking for $ac_word... " >&6; } 5700if ${ac_cv_prog_OBJDUMP+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 if test -n "$OBJDUMP"; then 5704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5705else 5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5707for as_dir in $PATH 5708do 5709 IFS=$as_save_IFS 5710 test -z "$as_dir" && as_dir=. 5711 for ac_exec_ext in '' $ac_executable_extensions; do 5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5713 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5715 break 2 5716 fi 5717done 5718 done 5719IFS=$as_save_IFS 5720 5721fi 5722fi 5723OBJDUMP=$ac_cv_prog_OBJDUMP 5724if test -n "$OBJDUMP"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5726$as_echo "$OBJDUMP" >&6; } 5727else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729$as_echo "no" >&6; } 5730fi 5731 5732 5733fi 5734if test -z "$ac_cv_prog_OBJDUMP"; then 5735 ac_ct_OBJDUMP=$OBJDUMP 5736 # Extract the first word of "objdump", so it can be a program name with args. 5737set dummy objdump; ac_word=$2 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5739$as_echo_n "checking for $ac_word... " >&6; } 5740if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5741 $as_echo_n "(cached) " >&6 5742else 5743 if test -n "$ac_ct_OBJDUMP"; then 5744 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5745else 5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5747for as_dir in $PATH 5748do 5749 IFS=$as_save_IFS 5750 test -z "$as_dir" && as_dir=. 5751 for ac_exec_ext in '' $ac_executable_extensions; do 5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5753 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5755 break 2 5756 fi 5757done 5758 done 5759IFS=$as_save_IFS 5760 5761fi 5762fi 5763ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5764if test -n "$ac_ct_OBJDUMP"; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5766$as_echo "$ac_ct_OBJDUMP" >&6; } 5767else 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5769$as_echo "no" >&6; } 5770fi 5771 5772 if test "x$ac_ct_OBJDUMP" = x; then 5773 OBJDUMP="false" 5774 else 5775 case $cross_compiling:$ac_tool_warned in 5776yes:) 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5779ac_tool_warned=yes ;; 5780esac 5781 OBJDUMP=$ac_ct_OBJDUMP 5782 fi 5783else 5784 OBJDUMP="$ac_cv_prog_OBJDUMP" 5785fi 5786 5787test -z "$OBJDUMP" && OBJDUMP=objdump 5788 5789 5790 5791 5792 5793 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5795$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5796if ${lt_cv_deplibs_check_method+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 lt_cv_file_magic_cmd='$MAGIC_CMD' 5800lt_cv_file_magic_test_file= 5801lt_cv_deplibs_check_method='unknown' 5802# Need to set the preceding variable on all platforms that support 5803# interlibrary dependencies. 5804# 'none' -- dependencies not supported. 5805# 'unknown' -- same as none, but documents that we really don't know. 5806# 'pass_all' -- all dependencies passed with no checks. 5807# 'test_compile' -- check by making test program. 5808# 'file_magic [[regex]]' -- check by looking for files in library path 5809# that responds to the $file_magic_cmd with a given extended regex. 5810# If you have 'file' or equivalent on your system and you're not sure 5811# whether 'pass_all' will *always* work, you probably want this one. 5812 5813case $host_os in 5814aix[4-9]*) 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818beos*) 5819 lt_cv_deplibs_check_method=pass_all 5820 ;; 5821 5822bsdi[45]*) 5823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5824 lt_cv_file_magic_cmd='/usr/bin/file -L' 5825 lt_cv_file_magic_test_file=/shlib/libc.so 5826 ;; 5827 5828cygwin*) 5829 # func_win32_libid is a shell function defined in ltmain.sh 5830 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5831 lt_cv_file_magic_cmd='func_win32_libid' 5832 ;; 5833 5834mingw* | pw32*) 5835 # Base MSYS/MinGW do not provide the 'file' command needed by 5836 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5837 # unless we find 'file', for example because we are cross-compiling. 5838 if ( file / ) >/dev/null 2>&1; then 5839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5840 lt_cv_file_magic_cmd='func_win32_libid' 5841 else 5842 # Keep this pattern in sync with the one in func_win32_libid. 5843 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5844 lt_cv_file_magic_cmd='$OBJDUMP -f' 5845 fi 5846 ;; 5847 5848cegcc*) 5849 # use the weaker test based on 'objdump'. See mingw*. 5850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5851 lt_cv_file_magic_cmd='$OBJDUMP -f' 5852 ;; 5853 5854darwin* | rhapsody*) 5855 lt_cv_deplibs_check_method=pass_all 5856 ;; 5857 5858freebsd* | dragonfly*) 5859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5860 case $host_cpu in 5861 i*86 ) 5862 # Not sure whether the presence of OpenBSD here was a mistake. 5863 # Let's accept both of them until this is cleared up. 5864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5865 lt_cv_file_magic_cmd=/usr/bin/file 5866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5867 ;; 5868 esac 5869 else 5870 lt_cv_deplibs_check_method=pass_all 5871 fi 5872 ;; 5873 5874haiku*) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877 5878hpux10.20* | hpux11*) 5879 lt_cv_file_magic_cmd=/usr/bin/file 5880 case $host_cpu in 5881 ia64*) 5882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5883 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5884 ;; 5885 hppa*64*) 5886 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]' 5887 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5888 ;; 5889 *) 5890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5891 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5892 ;; 5893 esac 5894 ;; 5895 5896interix[3-9]*) 5897 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5899 ;; 5900 5901irix5* | irix6* | nonstopux*) 5902 case $LD in 5903 *-32|*"-32 ") libmagic=32-bit;; 5904 *-n32|*"-n32 ") libmagic=N32;; 5905 *-64|*"-64 ") libmagic=64-bit;; 5906 *) libmagic=never-match;; 5907 esac 5908 lt_cv_deplibs_check_method=pass_all 5909 ;; 5910 5911# This must be glibc/ELF. 5912linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5913 lt_cv_deplibs_check_method=pass_all 5914 ;; 5915 5916netbsd*) 5917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5919 else 5920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5921 fi 5922 ;; 5923 5924newos6*) 5925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5926 lt_cv_file_magic_cmd=/usr/bin/file 5927 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5928 ;; 5929 5930*nto* | *qnx*) 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933 5934openbsd* | bitrig*) 5935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5937 else 5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5939 fi 5940 ;; 5941 5942osf3* | osf4* | osf5*) 5943 lt_cv_deplibs_check_method=pass_all 5944 ;; 5945 5946rdos*) 5947 lt_cv_deplibs_check_method=pass_all 5948 ;; 5949 5950solaris*) 5951 lt_cv_deplibs_check_method=pass_all 5952 ;; 5953 5954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5955 lt_cv_deplibs_check_method=pass_all 5956 ;; 5957 5958sysv4 | sysv4.3*) 5959 case $host_vendor in 5960 motorola) 5961 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]' 5962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5963 ;; 5964 ncr) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 sequent) 5968 lt_cv_file_magic_cmd='/bin/file' 5969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5970 ;; 5971 sni) 5972 lt_cv_file_magic_cmd='/bin/file' 5973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5974 lt_cv_file_magic_test_file=/lib/libc.so 5975 ;; 5976 siemens) 5977 lt_cv_deplibs_check_method=pass_all 5978 ;; 5979 pc) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 esac 5983 ;; 5984 5985tpf*) 5986 lt_cv_deplibs_check_method=pass_all 5987 ;; 5988esac 5989 5990fi 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5992$as_echo "$lt_cv_deplibs_check_method" >&6; } 5993 5994file_magic_glob= 5995want_nocaseglob=no 5996if test "$build" = "$host"; then 5997 case $host_os in 5998 mingw* | pw32*) 5999 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6000 want_nocaseglob=yes 6001 else 6002 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6003 fi 6004 ;; 6005 esac 6006fi 6007 6008file_magic_cmd=$lt_cv_file_magic_cmd 6009deplibs_check_method=$lt_cv_deplibs_check_method 6010test -z "$deplibs_check_method" && deplibs_check_method=unknown 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033if test -n "$ac_tool_prefix"; then 6034 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6035set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6037$as_echo_n "checking for $ac_word... " >&6; } 6038if ${ac_cv_prog_DLLTOOL+:} false; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 if test -n "$DLLTOOL"; then 6042 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6043else 6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045for as_dir in $PATH 6046do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6051 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055done 6056 done 6057IFS=$as_save_IFS 6058 6059fi 6060fi 6061DLLTOOL=$ac_cv_prog_DLLTOOL 6062if test -n "$DLLTOOL"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6064$as_echo "$DLLTOOL" >&6; } 6065else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067$as_echo "no" >&6; } 6068fi 6069 6070 6071fi 6072if test -z "$ac_cv_prog_DLLTOOL"; then 6073 ac_ct_DLLTOOL=$DLLTOOL 6074 # Extract the first word of "dlltool", so it can be a program name with args. 6075set dummy dlltool; ac_word=$2 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6077$as_echo_n "checking for $ac_word... " >&6; } 6078if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 if test -n "$ac_ct_DLLTOOL"; then 6082 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6083else 6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6091 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099fi 6100fi 6101ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6102if test -n "$ac_ct_DLLTOOL"; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6104$as_echo "$ac_ct_DLLTOOL" >&6; } 6105else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107$as_echo "no" >&6; } 6108fi 6109 6110 if test "x$ac_ct_DLLTOOL" = x; then 6111 DLLTOOL="false" 6112 else 6113 case $cross_compiling:$ac_tool_warned in 6114yes:) 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6117ac_tool_warned=yes ;; 6118esac 6119 DLLTOOL=$ac_ct_DLLTOOL 6120 fi 6121else 6122 DLLTOOL="$ac_cv_prog_DLLTOOL" 6123fi 6124 6125test -z "$DLLTOOL" && DLLTOOL=dlltool 6126 6127 6128 6129 6130 6131 6132 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6134$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6135if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137else 6138 lt_cv_sharedlib_from_linklib_cmd='unknown' 6139 6140case $host_os in 6141cygwin* | mingw* | pw32* | cegcc*) 6142 # two different shell functions defined in ltmain.sh; 6143 # decide which one to use based on capabilities of $DLLTOOL 6144 case `$DLLTOOL --help 2>&1` in 6145 *--identify-strict*) 6146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6147 ;; 6148 *) 6149 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6150 ;; 6151 esac 6152 ;; 6153*) 6154 # fallback: assume linklib IS sharedlib 6155 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6156 ;; 6157esac 6158 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6161$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6162sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6163test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6164 6165 6166 6167 6168 6169 6170 6171if test -n "$ac_tool_prefix"; then 6172 for ac_prog in ar 6173 do 6174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6175set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177$as_echo_n "checking for $ac_word... " >&6; } 6178if ${ac_cv_prog_AR+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 if test -n "$AR"; then 6182 ac_cv_prog_AR="$AR" # Let the user override the test. 6183else 6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185for as_dir in $PATH 6186do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6191 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195done 6196 done 6197IFS=$as_save_IFS 6198 6199fi 6200fi 6201AR=$ac_cv_prog_AR 6202if test -n "$AR"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6204$as_echo "$AR" >&6; } 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6207$as_echo "no" >&6; } 6208fi 6209 6210 6211 test -n "$AR" && break 6212 done 6213fi 6214if test -z "$AR"; then 6215 ac_ct_AR=$AR 6216 for ac_prog in ar 6217do 6218 # Extract the first word of "$ac_prog", so it can be a program name with args. 6219set dummy $ac_prog; ac_word=$2 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6221$as_echo_n "checking for $ac_word... " >&6; } 6222if ${ac_cv_prog_ac_ct_AR+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 if test -n "$ac_ct_AR"; then 6226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6227else 6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6229for as_dir in $PATH 6230do 6231 IFS=$as_save_IFS 6232 test -z "$as_dir" && as_dir=. 6233 for ac_exec_ext in '' $ac_executable_extensions; do 6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6235 ac_cv_prog_ac_ct_AR="$ac_prog" 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6237 break 2 6238 fi 6239done 6240 done 6241IFS=$as_save_IFS 6242 6243fi 6244fi 6245ac_ct_AR=$ac_cv_prog_ac_ct_AR 6246if test -n "$ac_ct_AR"; then 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6248$as_echo "$ac_ct_AR" >&6; } 6249else 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6251$as_echo "no" >&6; } 6252fi 6253 6254 6255 test -n "$ac_ct_AR" && break 6256done 6257 6258 if test "x$ac_ct_AR" = x; then 6259 AR="false" 6260 else 6261 case $cross_compiling:$ac_tool_warned in 6262yes:) 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6265ac_tool_warned=yes ;; 6266esac 6267 AR=$ac_ct_AR 6268 fi 6269fi 6270 6271: ${AR=ar} 6272: ${AR_FLAGS=cru} 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6285$as_echo_n "checking for archiver @FILE support... " >&6; } 6286if ${lt_cv_ar_at_file+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 lt_cv_ar_at_file=no 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292 6293int 6294main () 6295{ 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO"; then : 6302 echo conftest.$ac_objext > conftest.lst 6303 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6305 (eval $lt_ar_try) 2>&5 6306 ac_status=$? 6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6308 test $ac_status = 0; } 6309 if test 0 -eq "$ac_status"; then 6310 # Ensure the archiver fails upon bogus file names. 6311 rm -f conftest.$ac_objext libconftest.a 6312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6313 (eval $lt_ar_try) 2>&5 6314 ac_status=$? 6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6316 test $ac_status = 0; } 6317 if test 0 -ne "$ac_status"; then 6318 lt_cv_ar_at_file=@ 6319 fi 6320 fi 6321 rm -f conftest.* libconftest.a 6322 6323fi 6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6325 6326fi 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6328$as_echo "$lt_cv_ar_at_file" >&6; } 6329 6330if test no = "$lt_cv_ar_at_file"; then 6331 archiver_list_spec= 6332else 6333 archiver_list_spec=$lt_cv_ar_at_file 6334fi 6335 6336 6337 6338 6339 6340 6341 6342if test -n "$ac_tool_prefix"; then 6343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6344set dummy ${ac_tool_prefix}strip; ac_word=$2 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6346$as_echo_n "checking for $ac_word... " >&6; } 6347if ${ac_cv_prog_STRIP+:} false; then : 6348 $as_echo_n "(cached) " >&6 6349else 6350 if test -n "$STRIP"; then 6351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6352else 6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6354for as_dir in $PATH 6355do 6356 IFS=$as_save_IFS 6357 test -z "$as_dir" && as_dir=. 6358 for ac_exec_ext in '' $ac_executable_extensions; do 6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6360 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6362 break 2 6363 fi 6364done 6365 done 6366IFS=$as_save_IFS 6367 6368fi 6369fi 6370STRIP=$ac_cv_prog_STRIP 6371if test -n "$STRIP"; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6373$as_echo "$STRIP" >&6; } 6374else 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6376$as_echo "no" >&6; } 6377fi 6378 6379 6380fi 6381if test -z "$ac_cv_prog_STRIP"; then 6382 ac_ct_STRIP=$STRIP 6383 # Extract the first word of "strip", so it can be a program name with args. 6384set dummy strip; ac_word=$2 6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6386$as_echo_n "checking for $ac_word... " >&6; } 6387if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389else 6390 if test -n "$ac_ct_STRIP"; then 6391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6392else 6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6394for as_dir in $PATH 6395do 6396 IFS=$as_save_IFS 6397 test -z "$as_dir" && as_dir=. 6398 for ac_exec_ext in '' $ac_executable_extensions; do 6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6400 ac_cv_prog_ac_ct_STRIP="strip" 6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6402 break 2 6403 fi 6404done 6405 done 6406IFS=$as_save_IFS 6407 6408fi 6409fi 6410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6411if test -n "$ac_ct_STRIP"; then 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6413$as_echo "$ac_ct_STRIP" >&6; } 6414else 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6416$as_echo "no" >&6; } 6417fi 6418 6419 if test "x$ac_ct_STRIP" = x; then 6420 STRIP=":" 6421 else 6422 case $cross_compiling:$ac_tool_warned in 6423yes:) 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6426ac_tool_warned=yes ;; 6427esac 6428 STRIP=$ac_ct_STRIP 6429 fi 6430else 6431 STRIP="$ac_cv_prog_STRIP" 6432fi 6433 6434test -z "$STRIP" && STRIP=: 6435 6436 6437 6438 6439 6440 6441if test -n "$ac_tool_prefix"; then 6442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6443set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6445$as_echo_n "checking for $ac_word... " >&6; } 6446if ${ac_cv_prog_RANLIB+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 if test -n "$RANLIB"; then 6450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6451else 6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6453for as_dir in $PATH 6454do 6455 IFS=$as_save_IFS 6456 test -z "$as_dir" && as_dir=. 6457 for ac_exec_ext in '' $ac_executable_extensions; do 6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6461 break 2 6462 fi 6463done 6464 done 6465IFS=$as_save_IFS 6466 6467fi 6468fi 6469RANLIB=$ac_cv_prog_RANLIB 6470if test -n "$RANLIB"; then 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6472$as_echo "$RANLIB" >&6; } 6473else 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6475$as_echo "no" >&6; } 6476fi 6477 6478 6479fi 6480if test -z "$ac_cv_prog_RANLIB"; then 6481 ac_ct_RANLIB=$RANLIB 6482 # Extract the first word of "ranlib", so it can be a program name with args. 6483set dummy ranlib; ac_word=$2 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6485$as_echo_n "checking for $ac_word... " >&6; } 6486if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 if test -n "$ac_ct_RANLIB"; then 6490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6491else 6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6493for as_dir in $PATH 6494do 6495 IFS=$as_save_IFS 6496 test -z "$as_dir" && as_dir=. 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6499 ac_cv_prog_ac_ct_RANLIB="ranlib" 6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6510if test -n "$ac_ct_RANLIB"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6512$as_echo "$ac_ct_RANLIB" >&6; } 6513else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515$as_echo "no" >&6; } 6516fi 6517 6518 if test "x$ac_ct_RANLIB" = x; then 6519 RANLIB=":" 6520 else 6521 case $cross_compiling:$ac_tool_warned in 6522yes:) 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6525ac_tool_warned=yes ;; 6526esac 6527 RANLIB=$ac_ct_RANLIB 6528 fi 6529else 6530 RANLIB="$ac_cv_prog_RANLIB" 6531fi 6532 6533test -z "$RANLIB" && RANLIB=: 6534 6535 6536 6537 6538 6539 6540# Determine commands to create old-style static archives. 6541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6542old_postinstall_cmds='chmod 644 $oldlib' 6543old_postuninstall_cmds= 6544 6545if test -n "$RANLIB"; then 6546 case $host_os in 6547 bitrig* | openbsd*) 6548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6549 ;; 6550 *) 6551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6552 ;; 6553 esac 6554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6555fi 6556 6557case $host_os in 6558 darwin*) 6559 lock_old_archive_extraction=yes ;; 6560 *) 6561 lock_old_archive_extraction=no ;; 6562esac 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 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# If no C compiler was specified, use CC. 6603LTCC=${LTCC-"$CC"} 6604 6605# If no C compiler flags were specified, use CFLAGS. 6606LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6607 6608# Allow CC to be a program name with arguments. 6609compiler=$CC 6610 6611 6612# Check for command to grab the raw symbol name followed by C symbol from nm. 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6614$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6615if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 6619# These are sane defaults that work on at least a few old systems. 6620# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6621 6622# Character class describing NM global symbol codes. 6623symcode='[BCDEGRST]' 6624 6625# Regexp to match symbols that can be accessed directly from C. 6626sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6627 6628# Define system-specific variables. 6629case $host_os in 6630aix*) 6631 symcode='[BCDT]' 6632 ;; 6633cygwin* | mingw* | pw32* | cegcc*) 6634 symcode='[ABCDGISTW]' 6635 ;; 6636hpux*) 6637 if test ia64 = "$host_cpu"; then 6638 symcode='[ABCDEGRST]' 6639 fi 6640 ;; 6641irix* | nonstopux*) 6642 symcode='[BCDEGRST]' 6643 ;; 6644osf*) 6645 symcode='[BCDEGQRST]' 6646 ;; 6647solaris*) 6648 symcode='[BDRT]' 6649 ;; 6650sco3.2v5*) 6651 symcode='[DT]' 6652 ;; 6653sysv4.2uw2*) 6654 symcode='[DT]' 6655 ;; 6656sysv5* | sco5v6* | unixware* | OpenUNIX*) 6657 symcode='[ABDT]' 6658 ;; 6659sysv4) 6660 symcode='[DFNSTU]' 6661 ;; 6662esac 6663 6664# If we're using GNU nm, then use its standard symbol codes. 6665case `$NM -V 2>&1` in 6666*GNU* | *'with BFD'*) 6667 symcode='[ABCDGIRSTW]' ;; 6668esac 6669 6670if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6671 # Gets list of data symbols to import. 6672 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6673 # Adjust the below global symbol transforms to fixup imported variables. 6674 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6675 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6676 lt_c_name_lib_hook="\ 6677 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6678 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6679else 6680 # Disable hooks by default. 6681 lt_cv_sys_global_symbol_to_import= 6682 lt_cdecl_hook= 6683 lt_c_name_hook= 6684 lt_c_name_lib_hook= 6685fi 6686 6687# Transform an extracted symbol line into a proper C declaration. 6688# Some systems (esp. on ia64) link data and code symbols differently, 6689# so use this general approach. 6690lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6691$lt_cdecl_hook\ 6692" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6693" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6694 6695# Transform an extracted symbol line into symbol name and symbol address 6696lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6697$lt_c_name_hook\ 6698" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6699" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6700 6701# Transform an extracted symbol line into symbol name with lib prefix and 6702# symbol address. 6703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6704$lt_c_name_lib_hook\ 6705" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6706" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6707" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6708 6709# Handle CRLF in mingw tool chain 6710opt_cr= 6711case $build_os in 6712mingw*) 6713 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6714 ;; 6715esac 6716 6717# Try without a prefix underscore, then with it. 6718for ac_symprfx in "" "_"; do 6719 6720 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6721 symxfrm="\\1 $ac_symprfx\\2 \\2" 6722 6723 # Write the raw and C identifiers. 6724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6725 # Fake it for dumpbin and say T for any non-static function, 6726 # D for any global variable and I for any imported variable. 6727 # Also find C++ and __fastcall symbols from MSVC++, 6728 # which start with @ or ?. 6729 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6730" {last_section=section; section=\$ 3};"\ 6731" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6732" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6733" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6734" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6735" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6736" \$ 0!~/External *\|/{next};"\ 6737" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6738" {if(hide[section]) next};"\ 6739" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6740" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6741" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6742" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6743" ' prfx=^$ac_symprfx" 6744 else 6745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6746 fi 6747 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6748 6749 # Check to see that the pipe works correctly. 6750 pipe_works=no 6751 6752 rm -f conftest* 6753 cat > conftest.$ac_ext <<_LT_EOF 6754#ifdef __cplusplus 6755extern "C" { 6756#endif 6757char nm_test_var; 6758void nm_test_func(void); 6759void nm_test_func(void){} 6760#ifdef __cplusplus 6761} 6762#endif 6763int main(){nm_test_var='a';nm_test_func();return(0);} 6764_LT_EOF 6765 6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6767 (eval $ac_compile) 2>&5 6768 ac_status=$? 6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6770 test $ac_status = 0; }; then 6771 # Now try to grab the symbols. 6772 nlist=conftest.nm 6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6774 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6775 ac_status=$? 6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6777 test $ac_status = 0; } && test -s "$nlist"; then 6778 # Try sorting and uniquifying the output. 6779 if sort "$nlist" | uniq > "$nlist"T; then 6780 mv -f "$nlist"T "$nlist" 6781 else 6782 rm -f "$nlist"T 6783 fi 6784 6785 # Make sure that we snagged all the symbols we need. 6786 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6787 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6788 cat <<_LT_EOF > conftest.$ac_ext 6789/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6790#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6791/* DATA imports from DLLs on WIN32 can't be const, because runtime 6792 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6793# define LT_DLSYM_CONST 6794#elif defined __osf__ 6795/* This system does not cope well with relocations in const data. */ 6796# define LT_DLSYM_CONST 6797#else 6798# define LT_DLSYM_CONST const 6799#endif 6800 6801#ifdef __cplusplus 6802extern "C" { 6803#endif 6804 6805_LT_EOF 6806 # Now generate the symbol file. 6807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6808 6809 cat <<_LT_EOF >> conftest.$ac_ext 6810 6811/* The mapping between symbol names and symbols. */ 6812LT_DLSYM_CONST struct { 6813 const char *name; 6814 void *address; 6815} 6816lt__PROGRAM__LTX_preloaded_symbols[] = 6817{ 6818 { "@PROGRAM@", (void *) 0 }, 6819_LT_EOF 6820 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6821 cat <<\_LT_EOF >> conftest.$ac_ext 6822 {0, (void *) 0} 6823}; 6824 6825/* This works around a problem in FreeBSD linker */ 6826#ifdef FREEBSD_WORKAROUND 6827static const void *lt_preloaded_setup() { 6828 return lt__PROGRAM__LTX_preloaded_symbols; 6829} 6830#endif 6831 6832#ifdef __cplusplus 6833} 6834#endif 6835_LT_EOF 6836 # Now try linking the two files. 6837 mv conftest.$ac_objext conftstm.$ac_objext 6838 lt_globsym_save_LIBS=$LIBS 6839 lt_globsym_save_CFLAGS=$CFLAGS 6840 LIBS=conftstm.$ac_objext 6841 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6843 (eval $ac_link) 2>&5 6844 ac_status=$? 6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6846 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6847 pipe_works=yes 6848 fi 6849 LIBS=$lt_globsym_save_LIBS 6850 CFLAGS=$lt_globsym_save_CFLAGS 6851 else 6852 echo "cannot find nm_test_func in $nlist" >&5 6853 fi 6854 else 6855 echo "cannot find nm_test_var in $nlist" >&5 6856 fi 6857 else 6858 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6859 fi 6860 else 6861 echo "$progname: failed program was:" >&5 6862 cat conftest.$ac_ext >&5 6863 fi 6864 rm -rf conftest* conftst* 6865 6866 # Do not use the global_symbol_pipe unless it works. 6867 if test yes = "$pipe_works"; then 6868 break 6869 else 6870 lt_cv_sys_global_symbol_pipe= 6871 fi 6872done 6873 6874fi 6875 6876if test -z "$lt_cv_sys_global_symbol_pipe"; then 6877 lt_cv_sys_global_symbol_to_cdecl= 6878fi 6879if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6881$as_echo "failed" >&6; } 6882else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6884$as_echo "ok" >&6; } 6885fi 6886 6887# Response file support. 6888if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6889 nm_file_list_spec='@' 6890elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6891 nm_file_list_spec='@' 6892fi 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6931$as_echo_n "checking for sysroot... " >&6; } 6932 6933# Check whether --with-sysroot was given. 6934if test "${with_sysroot+set}" = set; then : 6935 withval=$with_sysroot; 6936else 6937 with_sysroot=no 6938fi 6939 6940 6941lt_sysroot= 6942case $with_sysroot in #( 6943 yes) 6944 if test yes = "$GCC"; then 6945 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6946 fi 6947 ;; #( 6948 /*) 6949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6950 ;; #( 6951 no|'') 6952 ;; #( 6953 *) 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6955$as_echo "$with_sysroot" >&6; } 6956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6957 ;; 6958esac 6959 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6961$as_echo "${lt_sysroot:-no}" >&6; } 6962 6963 6964 6965 6966 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6968$as_echo_n "checking for a working dd... " >&6; } 6969if ${ac_cv_path_lt_DD+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 printf 0123456789abcdef0123456789abcdef >conftest.i 6973cat conftest.i conftest.i >conftest2.i 6974: ${lt_DD:=$DD} 6975if test -z "$lt_DD"; then 6976 ac_path_lt_DD_found=false 6977 # Loop through the user's path and test for each of PROGNAME-LIST 6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979for as_dir in $PATH 6980do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_prog in dd; do 6984 for ac_exec_ext in '' $ac_executable_extensions; do 6985 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6986 as_fn_executable_p "$ac_path_lt_DD" || continue 6987if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6988 cmp -s conftest.i conftest.out \ 6989 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6990fi 6991 $ac_path_lt_DD_found && break 3 6992 done 6993 done 6994 done 6995IFS=$as_save_IFS 6996 if test -z "$ac_cv_path_lt_DD"; then 6997 : 6998 fi 6999else 7000 ac_cv_path_lt_DD=$lt_DD 7001fi 7002 7003rm -f conftest.i conftest2.i conftest.out 7004fi 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7006$as_echo "$ac_cv_path_lt_DD" >&6; } 7007 7008 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7010$as_echo_n "checking how to truncate binary pipes... " >&6; } 7011if ${lt_cv_truncate_bin+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 printf 0123456789abcdef0123456789abcdef >conftest.i 7015cat conftest.i conftest.i >conftest2.i 7016lt_cv_truncate_bin= 7017if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7018 cmp -s conftest.i conftest.out \ 7019 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7020fi 7021rm -f conftest.i conftest2.i conftest.out 7022test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7023fi 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7025$as_echo "$lt_cv_truncate_bin" >&6; } 7026 7027 7028 7029 7030 7031 7032# Check whether --enable-libtool-lock was given. 7033if test "${enable_libtool_lock+set}" = set; then : 7034 enableval=$enable_libtool_lock; 7035fi 7036 7037test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7038 7039# Some flags need to be propagated to the compiler or linker for good 7040# libtool support. 7041case $host in 7042ia64-*-hpux*) 7043 # Find out what ABI is being produced by ac_compile, and set mode 7044 # options accordingly. 7045 echo 'int i;' > conftest.$ac_ext 7046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7047 (eval $ac_compile) 2>&5 7048 ac_status=$? 7049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7050 test $ac_status = 0; }; then 7051 case `/usr/bin/file conftest.$ac_objext` in 7052 *ELF-32*) 7053 HPUX_IA64_MODE=32 7054 ;; 7055 *ELF-64*) 7056 HPUX_IA64_MODE=64 7057 ;; 7058 esac 7059 fi 7060 rm -rf conftest* 7061 ;; 7062*-*-irix6*) 7063 # Find out what ABI is being produced by ac_compile, and set linker 7064 # options accordingly. 7065 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7067 (eval $ac_compile) 2>&5 7068 ac_status=$? 7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7070 test $ac_status = 0; }; then 7071 if test yes = "$lt_cv_prog_gnu_ld"; then 7072 case `/usr/bin/file conftest.$ac_objext` in 7073 *32-bit*) 7074 LD="${LD-ld} -melf32bsmip" 7075 ;; 7076 *N32*) 7077 LD="${LD-ld} -melf32bmipn32" 7078 ;; 7079 *64-bit*) 7080 LD="${LD-ld} -melf64bmip" 7081 ;; 7082 esac 7083 else 7084 case `/usr/bin/file conftest.$ac_objext` in 7085 *32-bit*) 7086 LD="${LD-ld} -32" 7087 ;; 7088 *N32*) 7089 LD="${LD-ld} -n32" 7090 ;; 7091 *64-bit*) 7092 LD="${LD-ld} -64" 7093 ;; 7094 esac 7095 fi 7096 fi 7097 rm -rf conftest* 7098 ;; 7099 7100mips64*-*linux*) 7101 # Find out what ABI is being produced by ac_compile, and set linker 7102 # options accordingly. 7103 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7105 (eval $ac_compile) 2>&5 7106 ac_status=$? 7107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7108 test $ac_status = 0; }; then 7109 emul=elf 7110 case `/usr/bin/file conftest.$ac_objext` in 7111 *32-bit*) 7112 emul="${emul}32" 7113 ;; 7114 *64-bit*) 7115 emul="${emul}64" 7116 ;; 7117 esac 7118 case `/usr/bin/file conftest.$ac_objext` in 7119 *MSB*) 7120 emul="${emul}btsmip" 7121 ;; 7122 *LSB*) 7123 emul="${emul}ltsmip" 7124 ;; 7125 esac 7126 case `/usr/bin/file conftest.$ac_objext` in 7127 *N32*) 7128 emul="${emul}n32" 7129 ;; 7130 esac 7131 LD="${LD-ld} -m $emul" 7132 fi 7133 rm -rf conftest* 7134 ;; 7135 7136x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7137s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7138 # Find out what ABI is being produced by ac_compile, and set linker 7139 # options accordingly. Note that the listed cases only cover the 7140 # situations where additional linker options are needed (such as when 7141 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7142 # vice versa); the common cases where no linker options are needed do 7143 # not appear in the list. 7144 echo 'int i;' > conftest.$ac_ext 7145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7146 (eval $ac_compile) 2>&5 7147 ac_status=$? 7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7149 test $ac_status = 0; }; then 7150 case `/usr/bin/file conftest.o` in 7151 *32-bit*) 7152 case $host in 7153 x86_64-*kfreebsd*-gnu) 7154 LD="${LD-ld} -m elf_i386_fbsd" 7155 ;; 7156 x86_64-*linux*) 7157 case `/usr/bin/file conftest.o` in 7158 *x86-64*) 7159 LD="${LD-ld} -m elf32_x86_64" 7160 ;; 7161 *) 7162 LD="${LD-ld} -m elf_i386" 7163 ;; 7164 esac 7165 ;; 7166 powerpc64le-*linux*) 7167 LD="${LD-ld} -m elf32lppclinux" 7168 ;; 7169 powerpc64-*linux*) 7170 LD="${LD-ld} -m elf32ppclinux" 7171 ;; 7172 s390x-*linux*) 7173 LD="${LD-ld} -m elf_s390" 7174 ;; 7175 sparc64-*linux*) 7176 LD="${LD-ld} -m elf32_sparc" 7177 ;; 7178 esac 7179 ;; 7180 *64-bit*) 7181 case $host in 7182 x86_64-*kfreebsd*-gnu) 7183 LD="${LD-ld} -m elf_x86_64_fbsd" 7184 ;; 7185 x86_64-*linux*) 7186 LD="${LD-ld} -m elf_x86_64" 7187 ;; 7188 powerpcle-*linux*) 7189 LD="${LD-ld} -m elf64lppc" 7190 ;; 7191 powerpc-*linux*) 7192 LD="${LD-ld} -m elf64ppc" 7193 ;; 7194 s390*-*linux*|s390*-*tpf*) 7195 LD="${LD-ld} -m elf64_s390" 7196 ;; 7197 sparc*-*linux*) 7198 LD="${LD-ld} -m elf64_sparc" 7199 ;; 7200 esac 7201 ;; 7202 esac 7203 fi 7204 rm -rf conftest* 7205 ;; 7206 7207*-*-sco3.2v5*) 7208 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7209 SAVE_CFLAGS=$CFLAGS 7210 CFLAGS="$CFLAGS -belf" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7212$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7213if ${lt_cv_cc_needs_belf+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 ac_ext=c 7217ac_cpp='$CPP $CPPFLAGS' 7218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7220ac_compiler_gnu=$ac_cv_c_compiler_gnu 7221 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224 7225int 7226main () 7227{ 7228 7229 ; 7230 return 0; 7231} 7232_ACEOF 7233if ac_fn_c_try_link "$LINENO"; then : 7234 lt_cv_cc_needs_belf=yes 7235else 7236 lt_cv_cc_needs_belf=no 7237fi 7238rm -f core conftest.err conftest.$ac_objext \ 7239 conftest$ac_exeext conftest.$ac_ext 7240 ac_ext=c 7241ac_cpp='$CPP $CPPFLAGS' 7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7244ac_compiler_gnu=$ac_cv_c_compiler_gnu 7245 7246fi 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7248$as_echo "$lt_cv_cc_needs_belf" >&6; } 7249 if test yes != "$lt_cv_cc_needs_belf"; then 7250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7251 CFLAGS=$SAVE_CFLAGS 7252 fi 7253 ;; 7254*-*solaris*) 7255 # Find out what ABI is being produced by ac_compile, and set linker 7256 # options accordingly. 7257 echo 'int i;' > conftest.$ac_ext 7258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7259 (eval $ac_compile) 2>&5 7260 ac_status=$? 7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7262 test $ac_status = 0; }; then 7263 case `/usr/bin/file conftest.o` in 7264 *64-bit*) 7265 case $lt_cv_prog_gnu_ld in 7266 yes*) 7267 case $host in 7268 i?86-*-solaris*|x86_64-*-solaris*) 7269 LD="${LD-ld} -m elf_x86_64" 7270 ;; 7271 sparc*-*-solaris*) 7272 LD="${LD-ld} -m elf64_sparc" 7273 ;; 7274 esac 7275 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7276 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7277 LD=${LD-ld}_sol2 7278 fi 7279 ;; 7280 *) 7281 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7282 LD="${LD-ld} -64" 7283 fi 7284 ;; 7285 esac 7286 ;; 7287 esac 7288 fi 7289 rm -rf conftest* 7290 ;; 7291esac 7292 7293need_locks=$enable_libtool_lock 7294 7295if test -n "$ac_tool_prefix"; then 7296 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7297set dummy ${ac_tool_prefix}mt; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$MANIFEST_TOOL"; then 7304 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7324if test -n "$MANIFEST_TOOL"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7326$as_echo "$MANIFEST_TOOL" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 7333fi 7334if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7335 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7336 # Extract the first word of "mt", so it can be a program name with args. 7337set dummy mt; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$ac_ct_MANIFEST_TOOL"; then 7344 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7364if test -n "$ac_ct_MANIFEST_TOOL"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7366$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7373 MANIFEST_TOOL=":" 7374 else 7375 case $cross_compiling:$ac_tool_warned in 7376yes:) 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7379ac_tool_warned=yes ;; 7380esac 7381 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7382 fi 7383else 7384 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7385fi 7386 7387test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7389$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7390if ${lt_cv_path_mainfest_tool+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 lt_cv_path_mainfest_tool=no 7394 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7395 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7396 cat conftest.err >&5 7397 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7398 lt_cv_path_mainfest_tool=yes 7399 fi 7400 rm -f conftest* 7401fi 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7403$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7404if test yes != "$lt_cv_path_mainfest_tool"; then 7405 MANIFEST_TOOL=: 7406fi 7407 7408 7409 7410 7411 7412 7413 case $host_os in 7414 rhapsody* | darwin*) 7415 if test -n "$ac_tool_prefix"; then 7416 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7417set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419$as_echo_n "checking for $ac_word... " >&6; } 7420if ${ac_cv_prog_DSYMUTIL+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 if test -n "$DSYMUTIL"; then 7424 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7425else 7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427for as_dir in $PATH 7428do 7429 IFS=$as_save_IFS 7430 test -z "$as_dir" && as_dir=. 7431 for ac_exec_ext in '' $ac_executable_extensions; do 7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7433 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7435 break 2 7436 fi 7437done 7438 done 7439IFS=$as_save_IFS 7440 7441fi 7442fi 7443DSYMUTIL=$ac_cv_prog_DSYMUTIL 7444if test -n "$DSYMUTIL"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7446$as_echo "$DSYMUTIL" >&6; } 7447else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449$as_echo "no" >&6; } 7450fi 7451 7452 7453fi 7454if test -z "$ac_cv_prog_DSYMUTIL"; then 7455 ac_ct_DSYMUTIL=$DSYMUTIL 7456 # Extract the first word of "dsymutil", so it can be a program name with args. 7457set dummy dsymutil; ac_word=$2 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7459$as_echo_n "checking for $ac_word... " >&6; } 7460if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 if test -n "$ac_ct_DSYMUTIL"; then 7464 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7465else 7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7467for as_dir in $PATH 7468do 7469 IFS=$as_save_IFS 7470 test -z "$as_dir" && as_dir=. 7471 for ac_exec_ext in '' $ac_executable_extensions; do 7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7473 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7475 break 2 7476 fi 7477done 7478 done 7479IFS=$as_save_IFS 7480 7481fi 7482fi 7483ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7484if test -n "$ac_ct_DSYMUTIL"; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7486$as_echo "$ac_ct_DSYMUTIL" >&6; } 7487else 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7489$as_echo "no" >&6; } 7490fi 7491 7492 if test "x$ac_ct_DSYMUTIL" = x; then 7493 DSYMUTIL=":" 7494 else 7495 case $cross_compiling:$ac_tool_warned in 7496yes:) 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7499ac_tool_warned=yes ;; 7500esac 7501 DSYMUTIL=$ac_ct_DSYMUTIL 7502 fi 7503else 7504 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7505fi 7506 7507 if test -n "$ac_tool_prefix"; then 7508 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7509set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7511$as_echo_n "checking for $ac_word... " >&6; } 7512if ${ac_cv_prog_NMEDIT+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 if test -n "$NMEDIT"; then 7516 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7517else 7518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519for as_dir in $PATH 7520do 7521 IFS=$as_save_IFS 7522 test -z "$as_dir" && as_dir=. 7523 for ac_exec_ext in '' $ac_executable_extensions; do 7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7527 break 2 7528 fi 7529done 7530 done 7531IFS=$as_save_IFS 7532 7533fi 7534fi 7535NMEDIT=$ac_cv_prog_NMEDIT 7536if test -n "$NMEDIT"; then 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7538$as_echo "$NMEDIT" >&6; } 7539else 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7541$as_echo "no" >&6; } 7542fi 7543 7544 7545fi 7546if test -z "$ac_cv_prog_NMEDIT"; then 7547 ac_ct_NMEDIT=$NMEDIT 7548 # Extract the first word of "nmedit", so it can be a program name with args. 7549set dummy nmedit; ac_word=$2 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551$as_echo_n "checking for $ac_word... " >&6; } 7552if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 if test -n "$ac_ct_NMEDIT"; then 7556 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7557else 7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7565 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573fi 7574fi 7575ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7576if test -n "$ac_ct_NMEDIT"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7578$as_echo "$ac_ct_NMEDIT" >&6; } 7579else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581$as_echo "no" >&6; } 7582fi 7583 7584 if test "x$ac_ct_NMEDIT" = x; then 7585 NMEDIT=":" 7586 else 7587 case $cross_compiling:$ac_tool_warned in 7588yes:) 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7591ac_tool_warned=yes ;; 7592esac 7593 NMEDIT=$ac_ct_NMEDIT 7594 fi 7595else 7596 NMEDIT="$ac_cv_prog_NMEDIT" 7597fi 7598 7599 if test -n "$ac_tool_prefix"; then 7600 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7601set dummy ${ac_tool_prefix}lipo; ac_word=$2 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603$as_echo_n "checking for $ac_word... " >&6; } 7604if ${ac_cv_prog_LIPO+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 if test -n "$LIPO"; then 7608 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7609else 7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611for as_dir in $PATH 7612do 7613 IFS=$as_save_IFS 7614 test -z "$as_dir" && as_dir=. 7615 for ac_exec_ext in '' $ac_executable_extensions; do 7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7617 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 break 2 7620 fi 7621done 7622 done 7623IFS=$as_save_IFS 7624 7625fi 7626fi 7627LIPO=$ac_cv_prog_LIPO 7628if test -n "$LIPO"; then 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7630$as_echo "$LIPO" >&6; } 7631else 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7633$as_echo "no" >&6; } 7634fi 7635 7636 7637fi 7638if test -z "$ac_cv_prog_LIPO"; then 7639 ac_ct_LIPO=$LIPO 7640 # Extract the first word of "lipo", so it can be a program name with args. 7641set dummy lipo; ac_word=$2 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7643$as_echo_n "checking for $ac_word... " >&6; } 7644if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 if test -n "$ac_ct_LIPO"; then 7648 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7649else 7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651for as_dir in $PATH 7652do 7653 IFS=$as_save_IFS 7654 test -z "$as_dir" && as_dir=. 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7657 ac_cv_prog_ac_ct_LIPO="lipo" 7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661done 7662 done 7663IFS=$as_save_IFS 7664 7665fi 7666fi 7667ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7668if test -n "$ac_ct_LIPO"; then 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7670$as_echo "$ac_ct_LIPO" >&6; } 7671else 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7673$as_echo "no" >&6; } 7674fi 7675 7676 if test "x$ac_ct_LIPO" = x; then 7677 LIPO=":" 7678 else 7679 case $cross_compiling:$ac_tool_warned in 7680yes:) 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7683ac_tool_warned=yes ;; 7684esac 7685 LIPO=$ac_ct_LIPO 7686 fi 7687else 7688 LIPO="$ac_cv_prog_LIPO" 7689fi 7690 7691 if test -n "$ac_tool_prefix"; then 7692 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7693set dummy ${ac_tool_prefix}otool; ac_word=$2 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7695$as_echo_n "checking for $ac_word... " >&6; } 7696if ${ac_cv_prog_OTOOL+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 if test -n "$OTOOL"; then 7700 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7701else 7702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7703for as_dir in $PATH 7704do 7705 IFS=$as_save_IFS 7706 test -z "$as_dir" && as_dir=. 7707 for ac_exec_ext in '' $ac_executable_extensions; do 7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7709 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7711 break 2 7712 fi 7713done 7714 done 7715IFS=$as_save_IFS 7716 7717fi 7718fi 7719OTOOL=$ac_cv_prog_OTOOL 7720if test -n "$OTOOL"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7722$as_echo "$OTOOL" >&6; } 7723else 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725$as_echo "no" >&6; } 7726fi 7727 7728 7729fi 7730if test -z "$ac_cv_prog_OTOOL"; then 7731 ac_ct_OTOOL=$OTOOL 7732 # Extract the first word of "otool", so it can be a program name with args. 7733set dummy otool; ac_word=$2 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7735$as_echo_n "checking for $ac_word... " >&6; } 7736if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 if test -n "$ac_ct_OTOOL"; then 7740 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7741else 7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7743for as_dir in $PATH 7744do 7745 IFS=$as_save_IFS 7746 test -z "$as_dir" && as_dir=. 7747 for ac_exec_ext in '' $ac_executable_extensions; do 7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7749 ac_cv_prog_ac_ct_OTOOL="otool" 7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7751 break 2 7752 fi 7753done 7754 done 7755IFS=$as_save_IFS 7756 7757fi 7758fi 7759ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7760if test -n "$ac_ct_OTOOL"; then 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7762$as_echo "$ac_ct_OTOOL" >&6; } 7763else 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765$as_echo "no" >&6; } 7766fi 7767 7768 if test "x$ac_ct_OTOOL" = x; then 7769 OTOOL=":" 7770 else 7771 case $cross_compiling:$ac_tool_warned in 7772yes:) 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7775ac_tool_warned=yes ;; 7776esac 7777 OTOOL=$ac_ct_OTOOL 7778 fi 7779else 7780 OTOOL="$ac_cv_prog_OTOOL" 7781fi 7782 7783 if test -n "$ac_tool_prefix"; then 7784 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7785set dummy ${ac_tool_prefix}otool64; ac_word=$2 7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7787$as_echo_n "checking for $ac_word... " >&6; } 7788if ${ac_cv_prog_OTOOL64+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 if test -n "$OTOOL64"; then 7792 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7793else 7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795for as_dir in $PATH 7796do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7801 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805done 7806 done 7807IFS=$as_save_IFS 7808 7809fi 7810fi 7811OTOOL64=$ac_cv_prog_OTOOL64 7812if test -n "$OTOOL64"; then 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7814$as_echo "$OTOOL64" >&6; } 7815else 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7817$as_echo "no" >&6; } 7818fi 7819 7820 7821fi 7822if test -z "$ac_cv_prog_OTOOL64"; then 7823 ac_ct_OTOOL64=$OTOOL64 7824 # Extract the first word of "otool64", so it can be a program name with args. 7825set dummy otool64; ac_word=$2 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7827$as_echo_n "checking for $ac_word... " >&6; } 7828if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7829 $as_echo_n "(cached) " >&6 7830else 7831 if test -n "$ac_ct_OTOOL64"; then 7832 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7833else 7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7835for as_dir in $PATH 7836do 7837 IFS=$as_save_IFS 7838 test -z "$as_dir" && as_dir=. 7839 for ac_exec_ext in '' $ac_executable_extensions; do 7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7841 ac_cv_prog_ac_ct_OTOOL64="otool64" 7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7843 break 2 7844 fi 7845done 7846 done 7847IFS=$as_save_IFS 7848 7849fi 7850fi 7851ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7852if test -n "$ac_ct_OTOOL64"; then 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7854$as_echo "$ac_ct_OTOOL64" >&6; } 7855else 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7857$as_echo "no" >&6; } 7858fi 7859 7860 if test "x$ac_ct_OTOOL64" = x; then 7861 OTOOL64=":" 7862 else 7863 case $cross_compiling:$ac_tool_warned in 7864yes:) 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7867ac_tool_warned=yes ;; 7868esac 7869 OTOOL64=$ac_ct_OTOOL64 7870 fi 7871else 7872 OTOOL64="$ac_cv_prog_OTOOL64" 7873fi 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7902$as_echo_n "checking for -single_module linker flag... " >&6; } 7903if ${lt_cv_apple_cc_single_mod+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 lt_cv_apple_cc_single_mod=no 7907 if test -z "$LT_MULTI_MODULE"; then 7908 # By default we will add the -single_module flag. You can override 7909 # by either setting the environment variable LT_MULTI_MODULE 7910 # non-empty at configure time, or by adding -multi_module to the 7911 # link flags. 7912 rm -rf libconftest.dylib* 7913 echo "int foo(void){return 1;}" > conftest.c 7914 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7915-dynamiclib -Wl,-single_module conftest.c" >&5 7916 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7917 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7918 _lt_result=$? 7919 # If there is a non-empty error log, and "single_module" 7920 # appears in it, assume the flag caused a linker warning 7921 if test -s conftest.err && $GREP single_module conftest.err; then 7922 cat conftest.err >&5 7923 # Otherwise, if the output was created with a 0 exit code from 7924 # the compiler, it worked. 7925 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7926 lt_cv_apple_cc_single_mod=yes 7927 else 7928 cat conftest.err >&5 7929 fi 7930 rm -rf libconftest.dylib* 7931 rm -f conftest.* 7932 fi 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7935$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7936 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7938$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7939if ${lt_cv_ld_exported_symbols_list+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941else 7942 lt_cv_ld_exported_symbols_list=no 7943 save_LDFLAGS=$LDFLAGS 7944 echo "_main" > conftest.sym 7945 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948 7949int 7950main () 7951{ 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957if ac_fn_c_try_link "$LINENO"; then : 7958 lt_cv_ld_exported_symbols_list=yes 7959else 7960 lt_cv_ld_exported_symbols_list=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext \ 7963 conftest$ac_exeext conftest.$ac_ext 7964 LDFLAGS=$save_LDFLAGS 7965 7966fi 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7968$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7969 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7971$as_echo_n "checking for -force_load linker flag... " >&6; } 7972if ${lt_cv_ld_force_load+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 lt_cv_ld_force_load=no 7976 cat > conftest.c << _LT_EOF 7977int forced_loaded() { return 2;} 7978_LT_EOF 7979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7981 echo "$AR cru libconftest.a conftest.o" >&5 7982 $AR cru libconftest.a conftest.o 2>&5 7983 echo "$RANLIB libconftest.a" >&5 7984 $RANLIB libconftest.a 2>&5 7985 cat > conftest.c << _LT_EOF 7986int main() { return 0;} 7987_LT_EOF 7988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7990 _lt_result=$? 7991 if test -s conftest.err && $GREP force_load conftest.err; then 7992 cat conftest.err >&5 7993 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7994 lt_cv_ld_force_load=yes 7995 else 7996 cat conftest.err >&5 7997 fi 7998 rm -f conftest.err libconftest.a conftest conftest.c 7999 rm -rf conftest.dSYM 8000 8001fi 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8003$as_echo "$lt_cv_ld_force_load" >&6; } 8004 case $host_os in 8005 rhapsody* | darwin1.[012]) 8006 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8007 darwin1.*) 8008 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8009 darwin*) # darwin 5.x on 8010 # if running on 10.5 or later, the deployment target defaults 8011 # to the OS version, if on x86, and 10.4, the deployment 8012 # target defaults to 10.4. Don't you love it? 8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8015 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8016 10.[012][,.]*) 8017 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8018 10.*) 8019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8020 esac 8021 ;; 8022 esac 8023 if test yes = "$lt_cv_apple_cc_single_mod"; then 8024 _lt_dar_single_mod='$single_module' 8025 fi 8026 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8027 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8028 else 8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8030 fi 8031 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8032 _lt_dsymutil='~$DSYMUTIL $lib || :' 8033 else 8034 _lt_dsymutil= 8035 fi 8036 ;; 8037 esac 8038 8039ac_ext=c 8040ac_cpp='$CPP $CPPFLAGS' 8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8043ac_compiler_gnu=$ac_cv_c_compiler_gnu 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8045$as_echo_n "checking how to run the C preprocessor... " >&6; } 8046# On Suns, sometimes $CPP names a directory. 8047if test -n "$CPP" && test -d "$CPP"; then 8048 CPP= 8049fi 8050if test -z "$CPP"; then 8051 if ${ac_cv_prog_CPP+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 # Double quotes because CPP needs to be expanded 8055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8056 do 8057 ac_preproc_ok=false 8058for ac_c_preproc_warn_flag in '' yes 8059do 8060 # Use a header file that comes with gcc, so configuring glibc 8061 # with a fresh cross-compiler works. 8062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8063 # <limits.h> exists even on freestanding compilers. 8064 # On the NeXT, cc -E runs the code through the compiler's parser, 8065 # not just through cpp. "Syntax error" is here to catch this case. 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068#ifdef __STDC__ 8069# include <limits.h> 8070#else 8071# include <assert.h> 8072#endif 8073 Syntax error 8074_ACEOF 8075if ac_fn_c_try_cpp "$LINENO"; then : 8076 8077else 8078 # Broken: fails on valid input. 8079continue 8080fi 8081rm -f conftest.err conftest.i conftest.$ac_ext 8082 8083 # OK, works on sane cases. Now check whether nonexistent headers 8084 # can be detected and how. 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087#include <ac_nonexistent.h> 8088_ACEOF 8089if ac_fn_c_try_cpp "$LINENO"; then : 8090 # Broken: success on invalid input. 8091continue 8092else 8093 # Passes both tests. 8094ac_preproc_ok=: 8095break 8096fi 8097rm -f conftest.err conftest.i conftest.$ac_ext 8098 8099done 8100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8101rm -f conftest.i conftest.err conftest.$ac_ext 8102if $ac_preproc_ok; then : 8103 break 8104fi 8105 8106 done 8107 ac_cv_prog_CPP=$CPP 8108 8109fi 8110 CPP=$ac_cv_prog_CPP 8111else 8112 ac_cv_prog_CPP=$CPP 8113fi 8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8115$as_echo "$CPP" >&6; } 8116ac_preproc_ok=false 8117for ac_c_preproc_warn_flag in '' yes 8118do 8119 # Use a header file that comes with gcc, so configuring glibc 8120 # with a fresh cross-compiler works. 8121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8122 # <limits.h> exists even on freestanding compilers. 8123 # On the NeXT, cc -E runs the code through the compiler's parser, 8124 # not just through cpp. "Syntax error" is here to catch this case. 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127#ifdef __STDC__ 8128# include <limits.h> 8129#else 8130# include <assert.h> 8131#endif 8132 Syntax error 8133_ACEOF 8134if ac_fn_c_try_cpp "$LINENO"; then : 8135 8136else 8137 # Broken: fails on valid input. 8138continue 8139fi 8140rm -f conftest.err conftest.i conftest.$ac_ext 8141 8142 # OK, works on sane cases. Now check whether nonexistent headers 8143 # can be detected and how. 8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8145/* end confdefs.h. */ 8146#include <ac_nonexistent.h> 8147_ACEOF 8148if ac_fn_c_try_cpp "$LINENO"; then : 8149 # Broken: success on invalid input. 8150continue 8151else 8152 # Passes both tests. 8153ac_preproc_ok=: 8154break 8155fi 8156rm -f conftest.err conftest.i conftest.$ac_ext 8157 8158done 8159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8160rm -f conftest.i conftest.err conftest.$ac_ext 8161if $ac_preproc_ok; then : 8162 8163else 8164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8166as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8167See \`config.log' for more details" "$LINENO" 5; } 8168fi 8169 8170ac_ext=c 8171ac_cpp='$CPP $CPPFLAGS' 8172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8174ac_compiler_gnu=$ac_cv_c_compiler_gnu 8175 8176 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8178$as_echo_n "checking for ANSI C header files... " >&6; } 8179if ${ac_cv_header_stdc+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184#include <stdlib.h> 8185#include <stdarg.h> 8186#include <string.h> 8187#include <float.h> 8188 8189int 8190main () 8191{ 8192 8193 ; 8194 return 0; 8195} 8196_ACEOF 8197if ac_fn_c_try_compile "$LINENO"; then : 8198 ac_cv_header_stdc=yes 8199else 8200 ac_cv_header_stdc=no 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8203 8204if test $ac_cv_header_stdc = yes; then 8205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208#include <string.h> 8209 8210_ACEOF 8211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8212 $EGREP "memchr" >/dev/null 2>&1; then : 8213 8214else 8215 ac_cv_header_stdc=no 8216fi 8217rm -f conftest* 8218 8219fi 8220 8221if test $ac_cv_header_stdc = yes; then 8222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225#include <stdlib.h> 8226 8227_ACEOF 8228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8229 $EGREP "free" >/dev/null 2>&1; then : 8230 8231else 8232 ac_cv_header_stdc=no 8233fi 8234rm -f conftest* 8235 8236fi 8237 8238if test $ac_cv_header_stdc = yes; then 8239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8240 if test "$cross_compiling" = yes; then : 8241 : 8242else 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245#include <ctype.h> 8246#include <stdlib.h> 8247#if ((' ' & 0x0FF) == 0x020) 8248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8250#else 8251# define ISLOWER(c) \ 8252 (('a' <= (c) && (c) <= 'i') \ 8253 || ('j' <= (c) && (c) <= 'r') \ 8254 || ('s' <= (c) && (c) <= 'z')) 8255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8256#endif 8257 8258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8259int 8260main () 8261{ 8262 int i; 8263 for (i = 0; i < 256; i++) 8264 if (XOR (islower (i), ISLOWER (i)) 8265 || toupper (i) != TOUPPER (i)) 8266 return 2; 8267 return 0; 8268} 8269_ACEOF 8270if ac_fn_c_try_run "$LINENO"; then : 8271 8272else 8273 ac_cv_header_stdc=no 8274fi 8275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8276 conftest.$ac_objext conftest.beam conftest.$ac_ext 8277fi 8278 8279fi 8280fi 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8282$as_echo "$ac_cv_header_stdc" >&6; } 8283if test $ac_cv_header_stdc = yes; then 8284 8285$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8286 8287fi 8288 8289# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8291 inttypes.h stdint.h unistd.h 8292do : 8293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8295" 8296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8297 cat >>confdefs.h <<_ACEOF 8298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8299_ACEOF 8300 8301fi 8302 8303done 8304 8305 8306for ac_header in dlfcn.h 8307do : 8308 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8309" 8310if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8311 cat >>confdefs.h <<_ACEOF 8312#define HAVE_DLFCN_H 1 8313_ACEOF 8314 8315fi 8316 8317done 8318 8319 8320 8321 8322 8323# Set options 8324enable_win32_dll=yes 8325 8326case $host in 8327*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8328 if test -n "$ac_tool_prefix"; then 8329 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8330set dummy ${ac_tool_prefix}as; ac_word=$2 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8332$as_echo_n "checking for $ac_word... " >&6; } 8333if ${ac_cv_prog_AS+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 if test -n "$AS"; then 8337 ac_cv_prog_AS="$AS" # Let the user override the test. 8338else 8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 test -z "$as_dir" && as_dir=. 8344 for ac_exec_ext in '' $ac_executable_extensions; do 8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8346 ac_cv_prog_AS="${ac_tool_prefix}as" 8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8348 break 2 8349 fi 8350done 8351 done 8352IFS=$as_save_IFS 8353 8354fi 8355fi 8356AS=$ac_cv_prog_AS 8357if test -n "$AS"; then 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8359$as_echo "$AS" >&6; } 8360else 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8362$as_echo "no" >&6; } 8363fi 8364 8365 8366fi 8367if test -z "$ac_cv_prog_AS"; then 8368 ac_ct_AS=$AS 8369 # Extract the first word of "as", so it can be a program name with args. 8370set dummy as; ac_word=$2 8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8372$as_echo_n "checking for $ac_word... " >&6; } 8373if ${ac_cv_prog_ac_ct_AS+:} false; then : 8374 $as_echo_n "(cached) " >&6 8375else 8376 if test -n "$ac_ct_AS"; then 8377 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8378else 8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8380for as_dir in $PATH 8381do 8382 IFS=$as_save_IFS 8383 test -z "$as_dir" && as_dir=. 8384 for ac_exec_ext in '' $ac_executable_extensions; do 8385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8386 ac_cv_prog_ac_ct_AS="as" 8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8388 break 2 8389 fi 8390done 8391 done 8392IFS=$as_save_IFS 8393 8394fi 8395fi 8396ac_ct_AS=$ac_cv_prog_ac_ct_AS 8397if test -n "$ac_ct_AS"; then 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8399$as_echo "$ac_ct_AS" >&6; } 8400else 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8402$as_echo "no" >&6; } 8403fi 8404 8405 if test "x$ac_ct_AS" = x; then 8406 AS="false" 8407 else 8408 case $cross_compiling:$ac_tool_warned in 8409yes:) 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8412ac_tool_warned=yes ;; 8413esac 8414 AS=$ac_ct_AS 8415 fi 8416else 8417 AS="$ac_cv_prog_AS" 8418fi 8419 8420 if test -n "$ac_tool_prefix"; then 8421 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8422set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8424$as_echo_n "checking for $ac_word... " >&6; } 8425if ${ac_cv_prog_DLLTOOL+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427else 8428 if test -n "$DLLTOOL"; then 8429 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8430else 8431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8432for as_dir in $PATH 8433do 8434 IFS=$as_save_IFS 8435 test -z "$as_dir" && as_dir=. 8436 for ac_exec_ext in '' $ac_executable_extensions; do 8437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8438 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8440 break 2 8441 fi 8442done 8443 done 8444IFS=$as_save_IFS 8445 8446fi 8447fi 8448DLLTOOL=$ac_cv_prog_DLLTOOL 8449if test -n "$DLLTOOL"; then 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8451$as_echo "$DLLTOOL" >&6; } 8452else 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8454$as_echo "no" >&6; } 8455fi 8456 8457 8458fi 8459if test -z "$ac_cv_prog_DLLTOOL"; then 8460 ac_ct_DLLTOOL=$DLLTOOL 8461 # Extract the first word of "dlltool", so it can be a program name with args. 8462set dummy dlltool; ac_word=$2 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8464$as_echo_n "checking for $ac_word... " >&6; } 8465if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8466 $as_echo_n "(cached) " >&6 8467else 8468 if test -n "$ac_ct_DLLTOOL"; then 8469 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8470else 8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8472for as_dir in $PATH 8473do 8474 IFS=$as_save_IFS 8475 test -z "$as_dir" && as_dir=. 8476 for ac_exec_ext in '' $ac_executable_extensions; do 8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8478 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8480 break 2 8481 fi 8482done 8483 done 8484IFS=$as_save_IFS 8485 8486fi 8487fi 8488ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8489if test -n "$ac_ct_DLLTOOL"; then 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8491$as_echo "$ac_ct_DLLTOOL" >&6; } 8492else 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8494$as_echo "no" >&6; } 8495fi 8496 8497 if test "x$ac_ct_DLLTOOL" = x; then 8498 DLLTOOL="false" 8499 else 8500 case $cross_compiling:$ac_tool_warned in 8501yes:) 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8504ac_tool_warned=yes ;; 8505esac 8506 DLLTOOL=$ac_ct_DLLTOOL 8507 fi 8508else 8509 DLLTOOL="$ac_cv_prog_DLLTOOL" 8510fi 8511 8512 if test -n "$ac_tool_prefix"; then 8513 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8514set dummy ${ac_tool_prefix}objdump; ac_word=$2 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8516$as_echo_n "checking for $ac_word... " >&6; } 8517if ${ac_cv_prog_OBJDUMP+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 if test -n "$OBJDUMP"; then 8521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8522else 8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8524for as_dir in $PATH 8525do 8526 IFS=$as_save_IFS 8527 test -z "$as_dir" && as_dir=. 8528 for ac_exec_ext in '' $ac_executable_extensions; do 8529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8530 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8532 break 2 8533 fi 8534done 8535 done 8536IFS=$as_save_IFS 8537 8538fi 8539fi 8540OBJDUMP=$ac_cv_prog_OBJDUMP 8541if test -n "$OBJDUMP"; then 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8543$as_echo "$OBJDUMP" >&6; } 8544else 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8546$as_echo "no" >&6; } 8547fi 8548 8549 8550fi 8551if test -z "$ac_cv_prog_OBJDUMP"; then 8552 ac_ct_OBJDUMP=$OBJDUMP 8553 # Extract the first word of "objdump", so it can be a program name with args. 8554set dummy objdump; ac_word=$2 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8556$as_echo_n "checking for $ac_word... " >&6; } 8557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8558 $as_echo_n "(cached) " >&6 8559else 8560 if test -n "$ac_ct_OBJDUMP"; then 8561 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8562else 8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8564for as_dir in $PATH 8565do 8566 IFS=$as_save_IFS 8567 test -z "$as_dir" && as_dir=. 8568 for ac_exec_ext in '' $ac_executable_extensions; do 8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8570 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8572 break 2 8573 fi 8574done 8575 done 8576IFS=$as_save_IFS 8577 8578fi 8579fi 8580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8581if test -n "$ac_ct_OBJDUMP"; then 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8583$as_echo "$ac_ct_OBJDUMP" >&6; } 8584else 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8586$as_echo "no" >&6; } 8587fi 8588 8589 if test "x$ac_ct_OBJDUMP" = x; then 8590 OBJDUMP="false" 8591 else 8592 case $cross_compiling:$ac_tool_warned in 8593yes:) 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8596ac_tool_warned=yes ;; 8597esac 8598 OBJDUMP=$ac_ct_OBJDUMP 8599 fi 8600else 8601 OBJDUMP="$ac_cv_prog_OBJDUMP" 8602fi 8603 8604 ;; 8605esac 8606 8607test -z "$AS" && AS=as 8608 8609 8610 8611 8612 8613test -z "$DLLTOOL" && DLLTOOL=dlltool 8614 8615 8616 8617 8618 8619test -z "$OBJDUMP" && OBJDUMP=objdump 8620 8621 8622 8623 8624 8625 8626 8627 enable_dlopen=no 8628 8629 8630 8631 # Check whether --enable-shared was given. 8632if test "${enable_shared+set}" = set; then : 8633 enableval=$enable_shared; p=${PACKAGE-default} 8634 case $enableval in 8635 yes) enable_shared=yes ;; 8636 no) enable_shared=no ;; 8637 *) 8638 enable_shared=no 8639 # Look at the argument we got. We use all the common list separators. 8640 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8641 for pkg in $enableval; do 8642 IFS=$lt_save_ifs 8643 if test "X$pkg" = "X$p"; then 8644 enable_shared=yes 8645 fi 8646 done 8647 IFS=$lt_save_ifs 8648 ;; 8649 esac 8650else 8651 enable_shared=yes 8652fi 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 # Check whether --enable-static was given. 8663if test "${enable_static+set}" = set; then : 8664 enableval=$enable_static; p=${PACKAGE-default} 8665 case $enableval in 8666 yes) enable_static=yes ;; 8667 no) enable_static=no ;; 8668 *) 8669 enable_static=no 8670 # Look at the argument we got. We use all the common list separators. 8671 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8672 for pkg in $enableval; do 8673 IFS=$lt_save_ifs 8674 if test "X$pkg" = "X$p"; then 8675 enable_static=yes 8676 fi 8677 done 8678 IFS=$lt_save_ifs 8679 ;; 8680 esac 8681else 8682 enable_static=yes 8683fi 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694# Check whether --with-pic was given. 8695if test "${with_pic+set}" = set; then : 8696 withval=$with_pic; lt_p=${PACKAGE-default} 8697 case $withval in 8698 yes|no) pic_mode=$withval ;; 8699 *) 8700 pic_mode=default 8701 # Look at the argument we got. We use all the common list separators. 8702 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8703 for lt_pkg in $withval; do 8704 IFS=$lt_save_ifs 8705 if test "X$lt_pkg" = "X$lt_p"; then 8706 pic_mode=yes 8707 fi 8708 done 8709 IFS=$lt_save_ifs 8710 ;; 8711 esac 8712else 8713 pic_mode=default 8714fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 # Check whether --enable-fast-install was given. 8724if test "${enable_fast_install+set}" = set; then : 8725 enableval=$enable_fast_install; p=${PACKAGE-default} 8726 case $enableval in 8727 yes) enable_fast_install=yes ;; 8728 no) enable_fast_install=no ;; 8729 *) 8730 enable_fast_install=no 8731 # Look at the argument we got. We use all the common list separators. 8732 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8733 for pkg in $enableval; do 8734 IFS=$lt_save_ifs 8735 if test "X$pkg" = "X$p"; then 8736 enable_fast_install=yes 8737 fi 8738 done 8739 IFS=$lt_save_ifs 8740 ;; 8741 esac 8742else 8743 enable_fast_install=yes 8744fi 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756# This can be used to rebuild libtool when needed 8757LIBTOOL_DEPS=$ltmain 8758 8759# Always use our own libtool. 8760LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791test -z "$LN_S" && LN_S="ln -s" 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806if test -n "${ZSH_VERSION+set}"; then 8807 setopt NO_GLOB_SUBST 8808fi 8809 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8811$as_echo_n "checking for objdir... " >&6; } 8812if ${lt_cv_objdir+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 rm -f .libs 2>/dev/null 8816mkdir .libs 2>/dev/null 8817if test -d .libs; then 8818 lt_cv_objdir=.libs 8819else 8820 # MS-DOS does not allow filenames that begin with a dot. 8821 lt_cv_objdir=_libs 8822fi 8823rmdir .libs 2>/dev/null 8824fi 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8826$as_echo "$lt_cv_objdir" >&6; } 8827objdir=$lt_cv_objdir 8828 8829 8830 8831 8832 8833cat >>confdefs.h <<_ACEOF 8834#define LT_OBJDIR "$lt_cv_objdir/" 8835_ACEOF 8836 8837 8838 8839 8840case $host_os in 8841aix3*) 8842 # AIX sometimes has problems with the GCC collect2 program. For some 8843 # reason, if we set the COLLECT_NAMES environment variable, the problems 8844 # vanish in a puff of smoke. 8845 if test set != "${COLLECT_NAMES+set}"; then 8846 COLLECT_NAMES= 8847 export COLLECT_NAMES 8848 fi 8849 ;; 8850esac 8851 8852# Global variables: 8853ofile=libtool 8854can_build_shared=yes 8855 8856# All known linkers require a '.a' archive for static linking (except MSVC, 8857# which needs '.lib'). 8858libext=a 8859 8860with_gnu_ld=$lt_cv_prog_gnu_ld 8861 8862old_CC=$CC 8863old_CFLAGS=$CFLAGS 8864 8865# Set sane defaults for various variables 8866test -z "$CC" && CC=cc 8867test -z "$LTCC" && LTCC=$CC 8868test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8869test -z "$LD" && LD=ld 8870test -z "$ac_objext" && ac_objext=o 8871 8872for cc_temp in $compiler""; do 8873 case $cc_temp in 8874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8876 \-*) ;; 8877 *) break;; 8878 esac 8879done 8880cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8881 8882 8883# Only perform the check for file, if the check method requires it 8884test -z "$MAGIC_CMD" && MAGIC_CMD=file 8885case $deplibs_check_method in 8886file_magic*) 8887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8889$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8890if ${lt_cv_path_MAGIC_CMD+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 case $MAGIC_CMD in 8894[\\/*] | ?:[\\/]*) 8895 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8896 ;; 8897*) 8898 lt_save_MAGIC_CMD=$MAGIC_CMD 8899 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8901 for ac_dir in $ac_dummy; do 8902 IFS=$lt_save_ifs 8903 test -z "$ac_dir" && ac_dir=. 8904 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8905 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8906 if test -n "$file_magic_test_file"; then 8907 case $deplibs_check_method in 8908 "file_magic "*) 8909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8910 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8912 $EGREP "$file_magic_regex" > /dev/null; then 8913 : 8914 else 8915 cat <<_LT_EOF 1>&2 8916 8917*** Warning: the command libtool uses to detect shared libraries, 8918*** $file_magic_cmd, produces output that libtool cannot recognize. 8919*** The result is that libtool may fail to recognize shared libraries 8920*** as such. This will affect the creation of libtool libraries that 8921*** depend on shared libraries, but programs linked with such libtool 8922*** libraries will work regardless of this problem. Nevertheless, you 8923*** may want to report the problem to your system manager and/or to 8924*** [email protected] 8925 8926_LT_EOF 8927 fi ;; 8928 esac 8929 fi 8930 break 8931 fi 8932 done 8933 IFS=$lt_save_ifs 8934 MAGIC_CMD=$lt_save_MAGIC_CMD 8935 ;; 8936esac 8937fi 8938 8939MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8940if test -n "$MAGIC_CMD"; then 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8942$as_echo "$MAGIC_CMD" >&6; } 8943else 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8945$as_echo "no" >&6; } 8946fi 8947 8948 8949 8950 8951 8952if test -z "$lt_cv_path_MAGIC_CMD"; then 8953 if test -n "$ac_tool_prefix"; then 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8955$as_echo_n "checking for file... " >&6; } 8956if ${lt_cv_path_MAGIC_CMD+:} false; then : 8957 $as_echo_n "(cached) " >&6 8958else 8959 case $MAGIC_CMD in 8960[\\/*] | ?:[\\/]*) 8961 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8962 ;; 8963*) 8964 lt_save_MAGIC_CMD=$MAGIC_CMD 8965 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8967 for ac_dir in $ac_dummy; do 8968 IFS=$lt_save_ifs 8969 test -z "$ac_dir" && ac_dir=. 8970 if test -f "$ac_dir/file"; then 8971 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8972 if test -n "$file_magic_test_file"; then 8973 case $deplibs_check_method in 8974 "file_magic "*) 8975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8978 $EGREP "$file_magic_regex" > /dev/null; then 8979 : 8980 else 8981 cat <<_LT_EOF 1>&2 8982 8983*** Warning: the command libtool uses to detect shared libraries, 8984*** $file_magic_cmd, produces output that libtool cannot recognize. 8985*** The result is that libtool may fail to recognize shared libraries 8986*** as such. This will affect the creation of libtool libraries that 8987*** depend on shared libraries, but programs linked with such libtool 8988*** libraries will work regardless of this problem. Nevertheless, you 8989*** may want to report the problem to your system manager and/or to 8990*** [email protected] 8991 8992_LT_EOF 8993 fi ;; 8994 esac 8995 fi 8996 break 8997 fi 8998 done 8999 IFS=$lt_save_ifs 9000 MAGIC_CMD=$lt_save_MAGIC_CMD 9001 ;; 9002esac 9003fi 9004 9005MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9006if test -n "$MAGIC_CMD"; then 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9008$as_echo "$MAGIC_CMD" >&6; } 9009else 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9011$as_echo "no" >&6; } 9012fi 9013 9014 9015 else 9016 MAGIC_CMD=: 9017 fi 9018fi 9019 9020 fi 9021 ;; 9022esac 9023 9024# Use C for the default configuration in the libtool script 9025 9026lt_save_CC=$CC 9027ac_ext=c 9028ac_cpp='$CPP $CPPFLAGS' 9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9031ac_compiler_gnu=$ac_cv_c_compiler_gnu 9032 9033 9034# Source file extension for C test sources. 9035ac_ext=c 9036 9037# Object file extension for compiled C test sources. 9038objext=o 9039objext=$objext 9040 9041# Code to be used in simple compile tests 9042lt_simple_compile_test_code="int some_variable = 0;" 9043 9044# Code to be used in simple link tests 9045lt_simple_link_test_code='int main(){return(0);}' 9046 9047 9048 9049 9050 9051 9052 9053# If no C compiler was specified, use CC. 9054LTCC=${LTCC-"$CC"} 9055 9056# If no C compiler flags were specified, use CFLAGS. 9057LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9058 9059# Allow CC to be a program name with arguments. 9060compiler=$CC 9061 9062# Save the default compiler, since it gets overwritten when the other 9063# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9064compiler_DEFAULT=$CC 9065 9066# save warnings/boilerplate of simple test code 9067ac_outfile=conftest.$ac_objext 9068echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9070_lt_compiler_boilerplate=`cat conftest.err` 9071$RM conftest* 9072 9073ac_outfile=conftest.$ac_objext 9074echo "$lt_simple_link_test_code" >conftest.$ac_ext 9075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9076_lt_linker_boilerplate=`cat conftest.err` 9077$RM -r conftest* 9078 9079 9080## CAVEAT EMPTOR: 9081## There is no encapsulation within the following macros, do not change 9082## the running order or otherwise move them around unless you know exactly 9083## what you are doing... 9084if test -n "$compiler"; then 9085 9086lt_prog_compiler_no_builtin_flag= 9087 9088if test yes = "$GCC"; then 9089 case $cc_basename in 9090 nvcc*) 9091 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9092 *) 9093 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9094 esac 9095 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9097$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9098if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 lt_cv_prog_compiler_rtti_exceptions=no 9102 ac_outfile=conftest.$ac_objext 9103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9104 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9105 # Insert the option either (1) after the last *FLAGS variable, or 9106 # (2) before a word containing "conftest.", or (3) at the end. 9107 # Note that $ac_compile itself does not contain backslashes and begins 9108 # with a dollar sign (not a hyphen), so the echo should work correctly. 9109 # The option is referenced via a variable to avoid confusing sed. 9110 lt_compile=`echo "$ac_compile" | $SED \ 9111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9113 -e 's:$: $lt_compiler_flag:'` 9114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9115 (eval "$lt_compile" 2>conftest.err) 9116 ac_status=$? 9117 cat conftest.err >&5 9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 if (exit $ac_status) && test -s "$ac_outfile"; then 9120 # The compiler can only warn and ignore the option if not recognized 9121 # So say no if there are warnings other than the usual output. 9122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9125 lt_cv_prog_compiler_rtti_exceptions=yes 9126 fi 9127 fi 9128 $RM conftest* 9129 9130fi 9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9132$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9133 9134if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9135 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9136else 9137 : 9138fi 9139 9140fi 9141 9142 9143 9144 9145 9146 9147 lt_prog_compiler_wl= 9148lt_prog_compiler_pic= 9149lt_prog_compiler_static= 9150 9151 9152 if test yes = "$GCC"; then 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_static='-static' 9155 9156 case $host_os in 9157 aix*) 9158 # All AIX code is PIC. 9159 if test ia64 = "$host_cpu"; then 9160 # AIX 5 now supports IA64 processor 9161 lt_prog_compiler_static='-Bstatic' 9162 fi 9163 lt_prog_compiler_pic='-fPIC' 9164 ;; 9165 9166 amigaos*) 9167 case $host_cpu in 9168 powerpc) 9169 # see comment about AmigaOS4 .so support 9170 lt_prog_compiler_pic='-fPIC' 9171 ;; 9172 m68k) 9173 # FIXME: we need at least 68020 code to build shared libraries, but 9174 # adding the '-m68020' flag to GCC prevents building anything better, 9175 # like '-m68040'. 9176 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9177 ;; 9178 esac 9179 ;; 9180 9181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9182 # PIC is the default for these OSes. 9183 ;; 9184 9185 mingw* | cygwin* | pw32* | os2* | cegcc*) 9186 # This hack is so that the source file can tell whether it is being 9187 # built for inclusion in a dll (and should export symbols for example). 9188 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9189 # (--disable-auto-import) libraries 9190 lt_prog_compiler_pic='-DDLL_EXPORT' 9191 ;; 9192 9193 darwin* | rhapsody*) 9194 # PIC is the default on this platform 9195 # Common symbols not allowed in MH_DYLIB files 9196 lt_prog_compiler_pic='-fno-common' 9197 ;; 9198 9199 haiku*) 9200 # PIC is the default for Haiku. 9201 # The "-static" flag exists, but is broken. 9202 lt_prog_compiler_static= 9203 ;; 9204 9205 hpux*) 9206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9208 # sets the default TLS model and affects inlining. 9209 case $host_cpu in 9210 hppa*64*) 9211 # +Z the default 9212 ;; 9213 *) 9214 lt_prog_compiler_pic='-fPIC' 9215 ;; 9216 esac 9217 ;; 9218 9219 interix[3-9]*) 9220 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9221 # Instead, we relocate shared libraries at runtime. 9222 ;; 9223 9224 msdosdjgpp*) 9225 # Just because we use GCC doesn't mean we suddenly get shared libraries 9226 # on systems that don't support them. 9227 lt_prog_compiler_can_build_shared=no 9228 enable_shared=no 9229 ;; 9230 9231 *nto* | *qnx*) 9232 # QNX uses GNU C++, but need to define -shared option too, otherwise 9233 # it will coredump. 9234 lt_prog_compiler_pic='-fPIC -shared' 9235 ;; 9236 9237 sysv4*MP*) 9238 if test -d /usr/nec; then 9239 lt_prog_compiler_pic=-Kconform_pic 9240 fi 9241 ;; 9242 9243 *) 9244 lt_prog_compiler_pic='-fPIC' 9245 ;; 9246 esac 9247 9248 case $cc_basename in 9249 nvcc*) # Cuda Compiler Driver 2.2 9250 lt_prog_compiler_wl='-Xlinker ' 9251 if test -n "$lt_prog_compiler_pic"; then 9252 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9253 fi 9254 ;; 9255 esac 9256 else 9257 # PORTME Check for flag to pass linker flags through the system compiler. 9258 case $host_os in 9259 aix*) 9260 lt_prog_compiler_wl='-Wl,' 9261 if test ia64 = "$host_cpu"; then 9262 # AIX 5 now supports IA64 processor 9263 lt_prog_compiler_static='-Bstatic' 9264 else 9265 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9266 fi 9267 ;; 9268 9269 darwin* | rhapsody*) 9270 # PIC is the default on this platform 9271 # Common symbols not allowed in MH_DYLIB files 9272 lt_prog_compiler_pic='-fno-common' 9273 case $cc_basename in 9274 nagfor*) 9275 # NAG Fortran compiler 9276 lt_prog_compiler_wl='-Wl,-Wl,,' 9277 lt_prog_compiler_pic='-PIC' 9278 lt_prog_compiler_static='-Bstatic' 9279 ;; 9280 esac 9281 ;; 9282 9283 mingw* | cygwin* | pw32* | os2* | cegcc*) 9284 # This hack is so that the source file can tell whether it is being 9285 # built for inclusion in a dll (and should export symbols for example). 9286 lt_prog_compiler_pic='-DDLL_EXPORT' 9287 ;; 9288 9289 hpux9* | hpux10* | hpux11*) 9290 lt_prog_compiler_wl='-Wl,' 9291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9292 # not for PA HP-UX. 9293 case $host_cpu in 9294 hppa*64*|ia64*) 9295 # +Z the default 9296 ;; 9297 *) 9298 lt_prog_compiler_pic='+Z' 9299 ;; 9300 esac 9301 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9302 lt_prog_compiler_static='$wl-a ${wl}archive' 9303 ;; 9304 9305 irix5* | irix6* | nonstopux*) 9306 lt_prog_compiler_wl='-Wl,' 9307 # PIC (with -KPIC) is the default. 9308 lt_prog_compiler_static='-non_shared' 9309 ;; 9310 9311 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9312 case $cc_basename in 9313 # old Intel for x86_64, which still supported -KPIC. 9314 ecc*) 9315 lt_prog_compiler_wl='-Wl,' 9316 lt_prog_compiler_pic='-KPIC' 9317 lt_prog_compiler_static='-static' 9318 ;; 9319 # icc used to be incompatible with GCC. 9320 # ICC 10 doesn't accept -KPIC any more. 9321 icc* | ifort*) 9322 lt_prog_compiler_wl='-Wl,' 9323 lt_prog_compiler_pic='-fPIC' 9324 lt_prog_compiler_static='-static' 9325 ;; 9326 # Lahey Fortran 8.1. 9327 lf95*) 9328 lt_prog_compiler_wl='-Wl,' 9329 lt_prog_compiler_pic='--shared' 9330 lt_prog_compiler_static='--static' 9331 ;; 9332 nagfor*) 9333 # NAG Fortran compiler 9334 lt_prog_compiler_wl='-Wl,-Wl,,' 9335 lt_prog_compiler_pic='-PIC' 9336 lt_prog_compiler_static='-Bstatic' 9337 ;; 9338 tcc*) 9339 # Fabrice Bellard et al's Tiny C Compiler 9340 lt_prog_compiler_wl='-Wl,' 9341 lt_prog_compiler_pic='-fPIC' 9342 lt_prog_compiler_static='-static' 9343 ;; 9344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9345 # Portland Group compilers (*not* the Pentium gcc compiler, 9346 # which looks to be a dead project) 9347 lt_prog_compiler_wl='-Wl,' 9348 lt_prog_compiler_pic='-fpic' 9349 lt_prog_compiler_static='-Bstatic' 9350 ;; 9351 ccc*) 9352 lt_prog_compiler_wl='-Wl,' 9353 # All Alpha code is PIC. 9354 lt_prog_compiler_static='-non_shared' 9355 ;; 9356 xl* | bgxl* | bgf* | mpixl*) 9357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9358 lt_prog_compiler_wl='-Wl,' 9359 lt_prog_compiler_pic='-qpic' 9360 lt_prog_compiler_static='-qstaticlink' 9361 ;; 9362 *) 9363 case `$CC -V 2>&1 | sed 5q` in 9364 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9365 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 lt_prog_compiler_wl='' 9369 ;; 9370 *Sun\ F* | *Sun*Fortran*) 9371 lt_prog_compiler_pic='-KPIC' 9372 lt_prog_compiler_static='-Bstatic' 9373 lt_prog_compiler_wl='-Qoption ld ' 9374 ;; 9375 *Sun\ C*) 9376 # Sun C 5.9 9377 lt_prog_compiler_pic='-KPIC' 9378 lt_prog_compiler_static='-Bstatic' 9379 lt_prog_compiler_wl='-Wl,' 9380 ;; 9381 *Intel*\ [CF]*Compiler*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fPIC' 9384 lt_prog_compiler_static='-static' 9385 ;; 9386 *Portland\ Group*) 9387 lt_prog_compiler_wl='-Wl,' 9388 lt_prog_compiler_pic='-fpic' 9389 lt_prog_compiler_static='-Bstatic' 9390 ;; 9391 esac 9392 ;; 9393 esac 9394 ;; 9395 9396 newsos6) 9397 lt_prog_compiler_pic='-KPIC' 9398 lt_prog_compiler_static='-Bstatic' 9399 ;; 9400 9401 *nto* | *qnx*) 9402 # QNX uses GNU C++, but need to define -shared option too, otherwise 9403 # it will coredump. 9404 lt_prog_compiler_pic='-fPIC -shared' 9405 ;; 9406 9407 osf3* | osf4* | osf5*) 9408 lt_prog_compiler_wl='-Wl,' 9409 # All OSF/1 code is PIC. 9410 lt_prog_compiler_static='-non_shared' 9411 ;; 9412 9413 rdos*) 9414 lt_prog_compiler_static='-non_shared' 9415 ;; 9416 9417 solaris*) 9418 lt_prog_compiler_pic='-KPIC' 9419 lt_prog_compiler_static='-Bstatic' 9420 case $cc_basename in 9421 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9422 lt_prog_compiler_wl='-Qoption ld ';; 9423 *) 9424 lt_prog_compiler_wl='-Wl,';; 9425 esac 9426 ;; 9427 9428 sunos4*) 9429 lt_prog_compiler_wl='-Qoption ld ' 9430 lt_prog_compiler_pic='-PIC' 9431 lt_prog_compiler_static='-Bstatic' 9432 ;; 9433 9434 sysv4 | sysv4.2uw2* | sysv4.3*) 9435 lt_prog_compiler_wl='-Wl,' 9436 lt_prog_compiler_pic='-KPIC' 9437 lt_prog_compiler_static='-Bstatic' 9438 ;; 9439 9440 sysv4*MP*) 9441 if test -d /usr/nec; then 9442 lt_prog_compiler_pic='-Kconform_pic' 9443 lt_prog_compiler_static='-Bstatic' 9444 fi 9445 ;; 9446 9447 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9448 lt_prog_compiler_wl='-Wl,' 9449 lt_prog_compiler_pic='-KPIC' 9450 lt_prog_compiler_static='-Bstatic' 9451 ;; 9452 9453 unicos*) 9454 lt_prog_compiler_wl='-Wl,' 9455 lt_prog_compiler_can_build_shared=no 9456 ;; 9457 9458 uts4*) 9459 lt_prog_compiler_pic='-pic' 9460 lt_prog_compiler_static='-Bstatic' 9461 ;; 9462 9463 *) 9464 lt_prog_compiler_can_build_shared=no 9465 ;; 9466 esac 9467 fi 9468 9469case $host_os in 9470 # For platforms that do not support PIC, -DPIC is meaningless: 9471 *djgpp*) 9472 lt_prog_compiler_pic= 9473 ;; 9474 *) 9475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9476 ;; 9477esac 9478 9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9480$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9481if ${lt_cv_prog_compiler_pic+:} false; then : 9482 $as_echo_n "(cached) " >&6 9483else 9484 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9487$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9488lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9489 9490# 9491# Check to make sure the PIC flag actually works. 9492# 9493if test -n "$lt_prog_compiler_pic"; then 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9496if ${lt_cv_prog_compiler_pic_works+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 lt_cv_prog_compiler_pic_works=no 9500 ac_outfile=conftest.$ac_objext 9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9503 # Insert the option either (1) after the last *FLAGS variable, or 9504 # (2) before a word containing "conftest.", or (3) at the end. 9505 # Note that $ac_compile itself does not contain backslashes and begins 9506 # with a dollar sign (not a hyphen), so the echo should work correctly. 9507 # The option is referenced via a variable to avoid confusing sed. 9508 lt_compile=`echo "$ac_compile" | $SED \ 9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9511 -e 's:$: $lt_compiler_flag:'` 9512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9513 (eval "$lt_compile" 2>conftest.err) 9514 ac_status=$? 9515 cat conftest.err >&5 9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9517 if (exit $ac_status) && test -s "$ac_outfile"; then 9518 # The compiler can only warn and ignore the option if not recognized 9519 # So say no if there are warnings other than the usual output. 9520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9523 lt_cv_prog_compiler_pic_works=yes 9524 fi 9525 fi 9526 $RM conftest* 9527 9528fi 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9530$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9531 9532if test yes = "$lt_cv_prog_compiler_pic_works"; then 9533 case $lt_prog_compiler_pic in 9534 "" | " "*) ;; 9535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9536 esac 9537else 9538 lt_prog_compiler_pic= 9539 lt_prog_compiler_can_build_shared=no 9540fi 9541 9542fi 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554# 9555# Check to make sure the static flag actually works. 9556# 9557wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9559$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9560if ${lt_cv_prog_compiler_static_works+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562else 9563 lt_cv_prog_compiler_static_works=no 9564 save_LDFLAGS=$LDFLAGS 9565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9566 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9568 # The linker can only warn and ignore the option if not recognized 9569 # So say no if there are warnings 9570 if test -s conftest.err; then 9571 # Append any errors to the config.log. 9572 cat conftest.err 1>&5 9573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9575 if diff conftest.exp conftest.er2 >/dev/null; then 9576 lt_cv_prog_compiler_static_works=yes 9577 fi 9578 else 9579 lt_cv_prog_compiler_static_works=yes 9580 fi 9581 fi 9582 $RM -r conftest* 9583 LDFLAGS=$save_LDFLAGS 9584 9585fi 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9587$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9588 9589if test yes = "$lt_cv_prog_compiler_static_works"; then 9590 : 9591else 9592 lt_prog_compiler_static= 9593fi 9594 9595 9596 9597 9598 9599 9600 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9603if ${lt_cv_prog_compiler_c_o+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 lt_cv_prog_compiler_c_o=no 9607 $RM -r conftest 2>/dev/null 9608 mkdir conftest 9609 cd conftest 9610 mkdir out 9611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9612 9613 lt_compiler_flag="-o out/conftest2.$ac_objext" 9614 # Insert the option either (1) after the last *FLAGS variable, or 9615 # (2) before a word containing "conftest.", or (3) at the end. 9616 # Note that $ac_compile itself does not contain backslashes and begins 9617 # with a dollar sign (not a hyphen), so the echo should work correctly. 9618 lt_compile=`echo "$ac_compile" | $SED \ 9619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9621 -e 's:$: $lt_compiler_flag:'` 9622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9623 (eval "$lt_compile" 2>out/conftest.err) 9624 ac_status=$? 9625 cat out/conftest.err >&5 9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9627 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9628 then 9629 # The compiler can only warn and ignore the option if not recognized 9630 # So say no if there are warnings 9631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9634 lt_cv_prog_compiler_c_o=yes 9635 fi 9636 fi 9637 chmod u+w . 2>&5 9638 $RM conftest* 9639 # SGI C++ compiler will create directory out/ii_files/ for 9640 # template instantiation 9641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9642 $RM out/* && rmdir out 9643 cd .. 9644 $RM -r conftest 9645 $RM conftest* 9646 9647fi 9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9649$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9650 9651 9652 9653 9654 9655 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9657$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9658if ${lt_cv_prog_compiler_c_o+:} false; then : 9659 $as_echo_n "(cached) " >&6 9660else 9661 lt_cv_prog_compiler_c_o=no 9662 $RM -r conftest 2>/dev/null 9663 mkdir conftest 9664 cd conftest 9665 mkdir out 9666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9667 9668 lt_compiler_flag="-o out/conftest2.$ac_objext" 9669 # Insert the option either (1) after the last *FLAGS variable, or 9670 # (2) before a word containing "conftest.", or (3) at the end. 9671 # Note that $ac_compile itself does not contain backslashes and begins 9672 # with a dollar sign (not a hyphen), so the echo should work correctly. 9673 lt_compile=`echo "$ac_compile" | $SED \ 9674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9676 -e 's:$: $lt_compiler_flag:'` 9677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9678 (eval "$lt_compile" 2>out/conftest.err) 9679 ac_status=$? 9680 cat out/conftest.err >&5 9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9682 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9683 then 9684 # The compiler can only warn and ignore the option if not recognized 9685 # So say no if there are warnings 9686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9689 lt_cv_prog_compiler_c_o=yes 9690 fi 9691 fi 9692 chmod u+w . 2>&5 9693 $RM conftest* 9694 # SGI C++ compiler will create directory out/ii_files/ for 9695 # template instantiation 9696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9697 $RM out/* && rmdir out 9698 cd .. 9699 $RM -r conftest 9700 $RM conftest* 9701 9702fi 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9704$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9705 9706 9707 9708 9709hard_links=nottested 9710if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9711 # do not overwrite the value of need_locks provided by the user 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9713$as_echo_n "checking if we can lock with hard links... " >&6; } 9714 hard_links=yes 9715 $RM conftest* 9716 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9717 touch conftest.a 9718 ln conftest.a conftest.b 2>&5 || hard_links=no 9719 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9721$as_echo "$hard_links" >&6; } 9722 if test no = "$hard_links"; then 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9724$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9725 need_locks=warn 9726 fi 9727else 9728 need_locks=no 9729fi 9730 9731 9732 9733 9734 9735 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9738 9739 runpath_var= 9740 allow_undefined_flag= 9741 always_export_symbols=no 9742 archive_cmds= 9743 archive_expsym_cmds= 9744 compiler_needs_object=no 9745 enable_shared_with_static_runtimes=no 9746 export_dynamic_flag_spec= 9747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9748 hardcode_automatic=no 9749 hardcode_direct=no 9750 hardcode_direct_absolute=no 9751 hardcode_libdir_flag_spec= 9752 hardcode_libdir_separator= 9753 hardcode_minus_L=no 9754 hardcode_shlibpath_var=unsupported 9755 inherit_rpath=no 9756 link_all_deplibs=unknown 9757 module_cmds= 9758 module_expsym_cmds= 9759 old_archive_from_new_cmds= 9760 old_archive_from_expsyms_cmds= 9761 thread_safe_flag_spec= 9762 whole_archive_flag_spec= 9763 # include_expsyms should be a list of space-separated symbols to be *always* 9764 # included in the symbol list 9765 include_expsyms= 9766 # exclude_expsyms can be an extended regexp of symbols to exclude 9767 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9768 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9769 # as well as any symbol that contains 'd'. 9770 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9771 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9772 # platforms (ab)use it in PIC code, but their linkers get confused if 9773 # the symbol is explicitly referenced. Since portable code cannot 9774 # rely on this symbol name, it's probably fine to never include it in 9775 # preloaded symbol tables. 9776 # Exclude shared library initialization/finalization symbols. 9777 extract_expsyms_cmds= 9778 9779 case $host_os in 9780 cygwin* | mingw* | pw32* | cegcc*) 9781 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9782 # When not using gcc, we currently assume that we are using 9783 # Microsoft Visual C++. 9784 if test yes != "$GCC"; then 9785 with_gnu_ld=no 9786 fi 9787 ;; 9788 interix*) 9789 # we just hope/assume this is gcc and not c89 (= MSVC++) 9790 with_gnu_ld=yes 9791 ;; 9792 openbsd* | bitrig*) 9793 with_gnu_ld=no 9794 ;; 9795 esac 9796 9797 ld_shlibs=yes 9798 9799 # On some targets, GNU ld is compatible enough with the native linker 9800 # that we're better off using the native interface for both. 9801 lt_use_gnu_ld_interface=no 9802 if test yes = "$with_gnu_ld"; then 9803 case $host_os in 9804 aix*) 9805 # The AIX port of GNU ld has always aspired to compatibility 9806 # with the native linker. However, as the warning in the GNU ld 9807 # block says, versions before 2.19.5* couldn't really create working 9808 # shared libraries, regardless of the interface used. 9809 case `$LD -v 2>&1` in 9810 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9811 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9812 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9813 *) 9814 lt_use_gnu_ld_interface=yes 9815 ;; 9816 esac 9817 ;; 9818 *) 9819 lt_use_gnu_ld_interface=yes 9820 ;; 9821 esac 9822 fi 9823 9824 if test yes = "$lt_use_gnu_ld_interface"; then 9825 # If archive_cmds runs LD, not CC, wlarc should be empty 9826 wlarc='$wl' 9827 9828 # Set some defaults for GNU ld with shared library support. These 9829 # are reset later if shared libraries are not supported. Putting them 9830 # here allows them to be overridden if necessary. 9831 runpath_var=LD_RUN_PATH 9832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9833 export_dynamic_flag_spec='$wl--export-dynamic' 9834 # ancient GNU ld didn't support --whole-archive et. al. 9835 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9836 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9837 else 9838 whole_archive_flag_spec= 9839 fi 9840 supports_anon_versioning=no 9841 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9842 *GNU\ gold*) supports_anon_versioning=yes ;; 9843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9846 *\ 2.11.*) ;; # other 2.11 versions 9847 *) supports_anon_versioning=yes ;; 9848 esac 9849 9850 # See if GNU ld supports shared libraries. 9851 case $host_os in 9852 aix[3-9]*) 9853 # On AIX/PPC, the GNU linker is very broken 9854 if test ia64 != "$host_cpu"; then 9855 ld_shlibs=no 9856 cat <<_LT_EOF 1>&2 9857 9858*** Warning: the GNU linker, at least up to release 2.19, is reported 9859*** to be unable to reliably create shared libraries on AIX. 9860*** Therefore, libtool is disabling shared libraries support. If you 9861*** really care for shared libraries, you may want to install binutils 9862*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9863*** You will then need to restart the configuration process. 9864 9865_LT_EOF 9866 fi 9867 ;; 9868 9869 amigaos*) 9870 case $host_cpu in 9871 powerpc) 9872 # see comment about AmigaOS4 .so support 9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9874 archive_expsym_cmds='' 9875 ;; 9876 m68k) 9877 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)' 9878 hardcode_libdir_flag_spec='-L$libdir' 9879 hardcode_minus_L=yes 9880 ;; 9881 esac 9882 ;; 9883 9884 beos*) 9885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9886 allow_undefined_flag=unsupported 9887 # Joseph Beckenbach <[email protected]> says some releases of gcc 9888 # support --undefined. This deserves some investigation. FIXME 9889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9890 else 9891 ld_shlibs=no 9892 fi 9893 ;; 9894 9895 cygwin* | mingw* | pw32* | cegcc*) 9896 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9897 # as there is no search path for DLLs. 9898 hardcode_libdir_flag_spec='-L$libdir' 9899 export_dynamic_flag_spec='$wl--export-all-symbols' 9900 allow_undefined_flag=unsupported 9901 always_export_symbols=no 9902 enable_shared_with_static_runtimes=yes 9903 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' 9904 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9905 9906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9908 # If the export-symbols file already is a .def file, use it as 9909 # is; otherwise, prepend EXPORTS... 9910 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9911 cp $export_symbols $output_objdir/$soname.def; 9912 else 9913 echo EXPORTS > $output_objdir/$soname.def; 9914 cat $export_symbols >> $output_objdir/$soname.def; 9915 fi~ 9916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9917 else 9918 ld_shlibs=no 9919 fi 9920 ;; 9921 9922 haiku*) 9923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9924 link_all_deplibs=yes 9925 ;; 9926 9927 interix[3-9]*) 9928 hardcode_direct=no 9929 hardcode_shlibpath_var=no 9930 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9931 export_dynamic_flag_spec='$wl-E' 9932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9933 # Instead, shared libraries are loaded at an image base (0x10000000 by 9934 # default) and relocated if they conflict, which is a slow very memory 9935 # consuming and fragmenting process. To avoid this, we pick a random, 9936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9937 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9939 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' 9940 ;; 9941 9942 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9943 tmp_diet=no 9944 if test linux-dietlibc = "$host_os"; then 9945 case $cc_basename in 9946 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9947 esac 9948 fi 9949 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9950 && test no = "$tmp_diet" 9951 then 9952 tmp_addflag=' $pic_flag' 9953 tmp_sharedflag='-shared' 9954 case $cc_basename,$host_cpu in 9955 pgcc*) # Portland Group C compiler 9956 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' 9957 tmp_addflag=' $pic_flag' 9958 ;; 9959 pgf77* | pgf90* | pgf95* | pgfortran*) 9960 # Portland Group f77 and f90 compilers 9961 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' 9962 tmp_addflag=' $pic_flag -Mnomain' ;; 9963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9964 tmp_addflag=' -i_dynamic' ;; 9965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9966 tmp_addflag=' -i_dynamic -nofor_main' ;; 9967 ifc* | ifort*) # Intel Fortran compiler 9968 tmp_addflag=' -nofor_main' ;; 9969 lf95*) # Lahey Fortran 8.1 9970 whole_archive_flag_spec= 9971 tmp_sharedflag='--shared' ;; 9972 nagfor*) # NAGFOR 5.3 9973 tmp_sharedflag='-Wl,-shared' ;; 9974 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9975 tmp_sharedflag='-qmkshrobj' 9976 tmp_addflag= ;; 9977 nvcc*) # Cuda Compiler Driver 2.2 9978 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' 9979 compiler_needs_object=yes 9980 ;; 9981 esac 9982 case `$CC -V 2>&1 | sed 5q` in 9983 *Sun\ C*) # Sun C 5.9 9984 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' 9985 compiler_needs_object=yes 9986 tmp_sharedflag='-G' ;; 9987 *Sun\ F*) # Sun Fortran 8.3 9988 tmp_sharedflag='-G' ;; 9989 esac 9990 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9991 9992 if test yes = "$supports_anon_versioning"; then 9993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9995 echo "local: *; };" >> $output_objdir/$libname.ver~ 9996 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9997 fi 9998 9999 case $cc_basename in 10000 xlf* | bgf* | bgxlf* | mpixlf*) 10001 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10002 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10004 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10005 if test yes = "$supports_anon_versioning"; then 10006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10008 echo "local: *; };" >> $output_objdir/$libname.ver~ 10009 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10010 fi 10011 ;; 10012 esac 10013 else 10014 ld_shlibs=no 10015 fi 10016 ;; 10017 10018 netbsd*) 10019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10020 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10021 wlarc= 10022 else 10023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10025 fi 10026 ;; 10027 10028 solaris*) 10029 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10030 ld_shlibs=no 10031 cat <<_LT_EOF 1>&2 10032 10033*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10034*** create shared libraries on Solaris systems. Therefore, libtool 10035*** is disabling shared libraries support. We urge you to upgrade GNU 10036*** binutils to release 2.9.1 or newer. Another option is to modify 10037*** your PATH or compiler configuration so that the native linker is 10038*** used, and then restart. 10039 10040_LT_EOF 10041 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10043 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10044 else 10045 ld_shlibs=no 10046 fi 10047 ;; 10048 10049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10050 case `$LD -v 2>&1` in 10051 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10052 ld_shlibs=no 10053 cat <<_LT_EOF 1>&2 10054 10055*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10056*** reliably create shared libraries on SCO systems. Therefore, libtool 10057*** is disabling shared libraries support. We urge you to upgrade GNU 10058*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10059*** your PATH or compiler configuration so that the native linker is 10060*** used, and then restart. 10061 10062_LT_EOF 10063 ;; 10064 *) 10065 # For security reasons, it is highly recommended that you always 10066 # use absolute paths for naming shared libraries, and exclude the 10067 # DT_RUNPATH tag from executables and libraries. But doing so 10068 # requires that you compile everything twice, which is a pain. 10069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10073 else 10074 ld_shlibs=no 10075 fi 10076 ;; 10077 esac 10078 ;; 10079 10080 sunos4*) 10081 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10082 wlarc= 10083 hardcode_direct=yes 10084 hardcode_shlibpath_var=no 10085 ;; 10086 10087 *) 10088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10090 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10091 else 10092 ld_shlibs=no 10093 fi 10094 ;; 10095 esac 10096 10097 if test no = "$ld_shlibs"; then 10098 runpath_var= 10099 hardcode_libdir_flag_spec= 10100 export_dynamic_flag_spec= 10101 whole_archive_flag_spec= 10102 fi 10103 else 10104 # PORTME fill in a description of your system's linker (not GNU ld) 10105 case $host_os in 10106 aix3*) 10107 allow_undefined_flag=unsupported 10108 always_export_symbols=yes 10109 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' 10110 # Note: this linker hardcodes the directories in LIBPATH if there 10111 # are no directories specified by -L. 10112 hardcode_minus_L=yes 10113 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10114 # Neither direct hardcoding nor static linking is supported with a 10115 # broken collect2. 10116 hardcode_direct=unsupported 10117 fi 10118 ;; 10119 10120 aix[4-9]*) 10121 if test ia64 = "$host_cpu"; then 10122 # On IA64, the linker does run time linking by default, so we don't 10123 # have to do anything special. 10124 aix_use_runtimelinking=no 10125 exp_sym_flag='-Bexport' 10126 no_entry_flag= 10127 else 10128 # If we're using GNU nm, then we don't want the "-C" option. 10129 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10130 # Also, AIX nm treats weak defined symbols like other global 10131 # defined symbols, whereas GNU nm marks them as "W". 10132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10133 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10134 else 10135 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10136 fi 10137 aix_use_runtimelinking=no 10138 10139 # Test if we are trying to use run time linking or normal 10140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10141 # need to do runtime linking. 10142 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10143 for ld_flag in $LDFLAGS; do 10144 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10145 aix_use_runtimelinking=yes 10146 break 10147 fi 10148 done 10149 ;; 10150 esac 10151 10152 exp_sym_flag='-bexport' 10153 no_entry_flag='-bnoentry' 10154 fi 10155 10156 # When large executables or shared objects are built, AIX ld can 10157 # have problems creating the table of contents. If linking a library 10158 # or program results in "error TOC overflow" add -mminimal-toc to 10159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10161 10162 archive_cmds='' 10163 hardcode_direct=yes 10164 hardcode_direct_absolute=yes 10165 hardcode_libdir_separator=':' 10166 link_all_deplibs=yes 10167 file_list_spec='$wl-f,' 10168 10169 if test yes = "$GCC"; then 10170 case $host_os in aix4.[012]|aix4.[012].*) 10171 # We only want to do this on AIX 4.2 and lower, the check 10172 # below for broken collect2 doesn't work under 4.3+ 10173 collect2name=`$CC -print-prog-name=collect2` 10174 if test -f "$collect2name" && 10175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10176 then 10177 # We have reworked collect2 10178 : 10179 else 10180 # We have old collect2 10181 hardcode_direct=unsupported 10182 # It fails to find uninstalled libraries when the uninstalled 10183 # path is not listed in the libpath. Setting hardcode_minus_L 10184 # to unsupported forces relinking 10185 hardcode_minus_L=yes 10186 hardcode_libdir_flag_spec='-L$libdir' 10187 hardcode_libdir_separator= 10188 fi 10189 ;; 10190 esac 10191 shared_flag='-shared' 10192 if test yes = "$aix_use_runtimelinking"; then 10193 shared_flag="$shared_flag "'$wl-G' 10194 fi 10195 else 10196 # not using gcc 10197 if test ia64 = "$host_cpu"; then 10198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10199 # chokes on -Wl,-G. The following line is correct: 10200 shared_flag='-G' 10201 else 10202 if test yes = "$aix_use_runtimelinking"; then 10203 shared_flag='$wl-G' 10204 else 10205 shared_flag='$wl-bM:SRE' 10206 fi 10207 fi 10208 fi 10209 10210 export_dynamic_flag_spec='$wl-bexpall' 10211 # It seems that -bexpall does not export symbols beginning with 10212 # underscore (_), so it is better to generate a list of symbols to export. 10213 always_export_symbols=yes 10214 if test yes = "$aix_use_runtimelinking"; then 10215 # Warning - without using the other runtime loading flags (-brtl), 10216 # -berok will link without error, but may produce a broken library. 10217 allow_undefined_flag='-berok' 10218 # Determine the default libpath from the value encoded in an 10219 # empty executable. 10220 if test set = "${lt_cv_aix_libpath+set}"; then 10221 aix_libpath=$lt_cv_aix_libpath 10222else 10223 if ${lt_cv_aix_libpath_+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228 10229int 10230main () 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO"; then : 10238 10239 lt_aix_libpath_sed=' 10240 /Import File Strings/,/^$/ { 10241 /^0/ { 10242 s/^0 *\([^ ]*\) *$/\1/ 10243 p 10244 } 10245 }' 10246 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10247 # Check for a 64-bit object if we didn't find anything. 10248 if test -z "$lt_cv_aix_libpath_"; then 10249 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10250 fi 10251fi 10252rm -f core conftest.err conftest.$ac_objext \ 10253 conftest$ac_exeext conftest.$ac_ext 10254 if test -z "$lt_cv_aix_libpath_"; then 10255 lt_cv_aix_libpath_=/usr/lib:/lib 10256 fi 10257 10258fi 10259 10260 aix_libpath=$lt_cv_aix_libpath_ 10261fi 10262 10263 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10264 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 10265 else 10266 if test ia64 = "$host_cpu"; then 10267 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10268 allow_undefined_flag="-z nodefs" 10269 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" 10270 else 10271 # Determine the default libpath from the value encoded in an 10272 # empty executable. 10273 if test set = "${lt_cv_aix_libpath+set}"; then 10274 aix_libpath=$lt_cv_aix_libpath 10275else 10276 if ${lt_cv_aix_libpath_+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281 10282int 10283main () 10284{ 10285 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290if ac_fn_c_try_link "$LINENO"; then : 10291 10292 lt_aix_libpath_sed=' 10293 /Import File Strings/,/^$/ { 10294 /^0/ { 10295 s/^0 *\([^ ]*\) *$/\1/ 10296 p 10297 } 10298 }' 10299 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10300 # Check for a 64-bit object if we didn't find anything. 10301 if test -z "$lt_cv_aix_libpath_"; then 10302 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10303 fi 10304fi 10305rm -f core conftest.err conftest.$ac_objext \ 10306 conftest$ac_exeext conftest.$ac_ext 10307 if test -z "$lt_cv_aix_libpath_"; then 10308 lt_cv_aix_libpath_=/usr/lib:/lib 10309 fi 10310 10311fi 10312 10313 aix_libpath=$lt_cv_aix_libpath_ 10314fi 10315 10316 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10317 # Warning - without using the other run time loading flags, 10318 # -berok will link without error, but may produce a broken library. 10319 no_undefined_flag=' $wl-bernotok' 10320 allow_undefined_flag=' $wl-berok' 10321 if test yes = "$with_gnu_ld"; then 10322 # We only use this code for GNU lds that support --whole-archive. 10323 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10324 else 10325 # Exported symbols can be pulled into shared objects from archives 10326 whole_archive_flag_spec='$convenience' 10327 fi 10328 archive_cmds_need_lc=yes 10329 # This is similar to how AIX traditionally builds its shared libraries. 10330 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10331 fi 10332 fi 10333 ;; 10334 10335 amigaos*) 10336 case $host_cpu in 10337 powerpc) 10338 # see comment about AmigaOS4 .so support 10339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10340 archive_expsym_cmds='' 10341 ;; 10342 m68k) 10343 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)' 10344 hardcode_libdir_flag_spec='-L$libdir' 10345 hardcode_minus_L=yes 10346 ;; 10347 esac 10348 ;; 10349 10350 bsdi[45]*) 10351 export_dynamic_flag_spec=-rdynamic 10352 ;; 10353 10354 cygwin* | mingw* | pw32* | cegcc*) 10355 # When not using gcc, we currently assume that we are using 10356 # Microsoft Visual C++. 10357 # hardcode_libdir_flag_spec is actually meaningless, as there is 10358 # no search path for DLLs. 10359 case $cc_basename in 10360 cl*) 10361 # Native MSVC 10362 hardcode_libdir_flag_spec=' ' 10363 allow_undefined_flag=unsupported 10364 always_export_symbols=yes 10365 file_list_spec='@' 10366 # Tell ltmain to make .lib files, not .a files. 10367 libext=lib 10368 # Tell ltmain to make .dll files, not .so files. 10369 shrext_cmds=.dll 10370 # FIXME: Setting linknames here is a bad hack. 10371 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10372 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10373 cp "$export_symbols" "$output_objdir/$soname.def"; 10374 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10375 else 10376 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10377 fi~ 10378 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10379 linknames=' 10380 # The linker will not automatically build a static lib if we build a DLL. 10381 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10382 enable_shared_with_static_runtimes=yes 10383 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10385 # Don't use ranlib 10386 old_postinstall_cmds='chmod 644 $oldlib' 10387 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10388 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10389 case $lt_outputfile in 10390 *.exe|*.EXE) ;; 10391 *) 10392 lt_outputfile=$lt_outputfile.exe 10393 lt_tool_outputfile=$lt_tool_outputfile.exe 10394 ;; 10395 esac~ 10396 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10397 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10398 $RM "$lt_outputfile.manifest"; 10399 fi' 10400 ;; 10401 *) 10402 # Assume MSVC wrapper 10403 hardcode_libdir_flag_spec=' ' 10404 allow_undefined_flag=unsupported 10405 # Tell ltmain to make .lib files, not .a files. 10406 libext=lib 10407 # Tell ltmain to make .dll files, not .so files. 10408 shrext_cmds=.dll 10409 # FIXME: Setting linknames here is a bad hack. 10410 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10411 # The linker will automatically build a .lib file if we build a DLL. 10412 old_archive_from_new_cmds='true' 10413 # FIXME: Should let the user specify the lib program. 10414 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10415 enable_shared_with_static_runtimes=yes 10416 ;; 10417 esac 10418 ;; 10419 10420 darwin* | rhapsody*) 10421 10422 10423 archive_cmds_need_lc=no 10424 hardcode_direct=no 10425 hardcode_automatic=yes 10426 hardcode_shlibpath_var=unsupported 10427 if test yes = "$lt_cv_ld_force_load"; then 10428 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\"`' 10429 10430 else 10431 whole_archive_flag_spec='' 10432 fi 10433 link_all_deplibs=yes 10434 allow_undefined_flag=$_lt_dar_allow_undefined 10435 case $cc_basename in 10436 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10437 *) _lt_dar_can_shared=$GCC ;; 10438 esac 10439 if test yes = "$_lt_dar_can_shared"; then 10440 output_verbose_link_cmd=func_echo_all 10441 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10442 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10443 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" 10444 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" 10445 10446 else 10447 ld_shlibs=no 10448 fi 10449 10450 ;; 10451 10452 dgux*) 10453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10454 hardcode_libdir_flag_spec='-L$libdir' 10455 hardcode_shlibpath_var=no 10456 ;; 10457 10458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10459 # support. Future versions do this automatically, but an explicit c++rt0.o 10460 # does not break anything, and helps significantly (at the cost of a little 10461 # extra space). 10462 freebsd2.2*) 10463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10464 hardcode_libdir_flag_spec='-R$libdir' 10465 hardcode_direct=yes 10466 hardcode_shlibpath_var=no 10467 ;; 10468 10469 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10470 freebsd2.*) 10471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_direct=yes 10473 hardcode_minus_L=yes 10474 hardcode_shlibpath_var=no 10475 ;; 10476 10477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10478 freebsd* | dragonfly*) 10479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10480 hardcode_libdir_flag_spec='-R$libdir' 10481 hardcode_direct=yes 10482 hardcode_shlibpath_var=no 10483 ;; 10484 10485 hpux9*) 10486 if test yes = "$GCC"; then 10487 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' 10488 else 10489 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' 10490 fi 10491 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10492 hardcode_libdir_separator=: 10493 hardcode_direct=yes 10494 10495 # hardcode_minus_L: Not really in the search PATH, 10496 # but as the default location of the library. 10497 hardcode_minus_L=yes 10498 export_dynamic_flag_spec='$wl-E' 10499 ;; 10500 10501 hpux10*) 10502 if test yes,no = "$GCC,$with_gnu_ld"; then 10503 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10504 else 10505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10506 fi 10507 if test no = "$with_gnu_ld"; then 10508 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10509 hardcode_libdir_separator=: 10510 hardcode_direct=yes 10511 hardcode_direct_absolute=yes 10512 export_dynamic_flag_spec='$wl-E' 10513 # hardcode_minus_L: Not really in the search PATH, 10514 # but as the default location of the library. 10515 hardcode_minus_L=yes 10516 fi 10517 ;; 10518 10519 hpux11*) 10520 if test yes,no = "$GCC,$with_gnu_ld"; then 10521 case $host_cpu in 10522 hppa*64*) 10523 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10524 ;; 10525 ia64*) 10526 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10527 ;; 10528 *) 10529 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10530 ;; 10531 esac 10532 else 10533 case $host_cpu in 10534 hppa*64*) 10535 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 ia64*) 10538 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10539 ;; 10540 *) 10541 10542 # Older versions of the 11.00 compiler do not understand -b yet 10543 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10545$as_echo_n "checking if $CC understands -b... " >&6; } 10546if ${lt_cv_prog_compiler__b+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 lt_cv_prog_compiler__b=no 10550 save_LDFLAGS=$LDFLAGS 10551 LDFLAGS="$LDFLAGS -b" 10552 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10554 # The linker can only warn and ignore the option if not recognized 10555 # So say no if there are warnings 10556 if test -s conftest.err; then 10557 # Append any errors to the config.log. 10558 cat conftest.err 1>&5 10559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10561 if diff conftest.exp conftest.er2 >/dev/null; then 10562 lt_cv_prog_compiler__b=yes 10563 fi 10564 else 10565 lt_cv_prog_compiler__b=yes 10566 fi 10567 fi 10568 $RM -r conftest* 10569 LDFLAGS=$save_LDFLAGS 10570 10571fi 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10573$as_echo "$lt_cv_prog_compiler__b" >&6; } 10574 10575if test yes = "$lt_cv_prog_compiler__b"; then 10576 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10577else 10578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10579fi 10580 10581 ;; 10582 esac 10583 fi 10584 if test no = "$with_gnu_ld"; then 10585 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10586 hardcode_libdir_separator=: 10587 10588 case $host_cpu in 10589 hppa*64*|ia64*) 10590 hardcode_direct=no 10591 hardcode_shlibpath_var=no 10592 ;; 10593 *) 10594 hardcode_direct=yes 10595 hardcode_direct_absolute=yes 10596 export_dynamic_flag_spec='$wl-E' 10597 10598 # hardcode_minus_L: Not really in the search PATH, 10599 # but as the default location of the library. 10600 hardcode_minus_L=yes 10601 ;; 10602 esac 10603 fi 10604 ;; 10605 10606 irix5* | irix6* | nonstopux*) 10607 if test yes = "$GCC"; then 10608 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' 10609 # Try to use the -exported_symbol ld option, if it does not 10610 # work, assume that -exports_file does not work either and 10611 # implicitly export all symbols. 10612 # This should be the same for all languages, so no per-tag cache variable. 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10614$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10615if ${lt_cv_irix_exported_symbol+:} false; then : 10616 $as_echo_n "(cached) " >&6 10617else 10618 save_LDFLAGS=$LDFLAGS 10619 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622int foo (void) { return 0; } 10623_ACEOF 10624if ac_fn_c_try_link "$LINENO"; then : 10625 lt_cv_irix_exported_symbol=yes 10626else 10627 lt_cv_irix_exported_symbol=no 10628fi 10629rm -f core conftest.err conftest.$ac_objext \ 10630 conftest$ac_exeext conftest.$ac_ext 10631 LDFLAGS=$save_LDFLAGS 10632fi 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10634$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10635 if test yes = "$lt_cv_irix_exported_symbol"; then 10636 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' 10637 fi 10638 else 10639 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' 10640 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' 10641 fi 10642 archive_cmds_need_lc='no' 10643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10644 hardcode_libdir_separator=: 10645 inherit_rpath=yes 10646 link_all_deplibs=yes 10647 ;; 10648 10649 netbsd*) 10650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10652 else 10653 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10654 fi 10655 hardcode_libdir_flag_spec='-R$libdir' 10656 hardcode_direct=yes 10657 hardcode_shlibpath_var=no 10658 ;; 10659 10660 newsos6) 10661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10662 hardcode_direct=yes 10663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10664 hardcode_libdir_separator=: 10665 hardcode_shlibpath_var=no 10666 ;; 10667 10668 *nto* | *qnx*) 10669 ;; 10670 10671 openbsd* | bitrig*) 10672 if test -f /usr/libexec/ld.so; then 10673 hardcode_direct=yes 10674 hardcode_shlibpath_var=no 10675 hardcode_direct_absolute=yes 10676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10678 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10679 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10680 export_dynamic_flag_spec='$wl-E' 10681 else 10682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10683 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10684 fi 10685 else 10686 ld_shlibs=no 10687 fi 10688 ;; 10689 10690 os2*) 10691 hardcode_libdir_flag_spec='-L$libdir' 10692 hardcode_minus_L=yes 10693 allow_undefined_flag=unsupported 10694 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10696 ;; 10697 10698 osf3*) 10699 if test yes = "$GCC"; then 10700 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10701 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' 10702 else 10703 allow_undefined_flag=' -expect_unresolved \*' 10704 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' 10705 fi 10706 archive_cmds_need_lc='no' 10707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10708 hardcode_libdir_separator=: 10709 ;; 10710 10711 osf4* | osf5*) # as osf3* with the addition of -msym flag 10712 if test yes = "$GCC"; then 10713 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10714 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' 10715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10716 else 10717 allow_undefined_flag=' -expect_unresolved \*' 10718 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' 10719 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~ 10720 $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' 10721 10722 # Both c and cxx compiler support -rpath directly 10723 hardcode_libdir_flag_spec='-rpath $libdir' 10724 fi 10725 archive_cmds_need_lc='no' 10726 hardcode_libdir_separator=: 10727 ;; 10728 10729 solaris*) 10730 no_undefined_flag=' -z defs' 10731 if test yes = "$GCC"; then 10732 wlarc='$wl' 10733 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10735 $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' 10736 else 10737 case `$CC -V 2>&1` in 10738 *"Compilers 5.0"*) 10739 wlarc='' 10740 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10742 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10743 ;; 10744 *) 10745 wlarc='$wl' 10746 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10748 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10749 ;; 10750 esac 10751 fi 10752 hardcode_libdir_flag_spec='-R$libdir' 10753 hardcode_shlibpath_var=no 10754 case $host_os in 10755 solaris2.[0-5] | solaris2.[0-5].*) ;; 10756 *) 10757 # The compiler driver will combine and reorder linker options, 10758 # but understands '-z linker_flag'. GCC discards it without '$wl', 10759 # but is careful enough not to reorder. 10760 # Supported since Solaris 2.6 (maybe 2.5.1?) 10761 if test yes = "$GCC"; then 10762 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10763 else 10764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10765 fi 10766 ;; 10767 esac 10768 link_all_deplibs=yes 10769 ;; 10770 10771 sunos4*) 10772 if test sequent = "$host_vendor"; then 10773 # Use $CC to link under sequent, because it throws in some extra .o 10774 # files that make .init and .fini sections work. 10775 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10776 else 10777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10778 fi 10779 hardcode_libdir_flag_spec='-L$libdir' 10780 hardcode_direct=yes 10781 hardcode_minus_L=yes 10782 hardcode_shlibpath_var=no 10783 ;; 10784 10785 sysv4) 10786 case $host_vendor in 10787 sni) 10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10789 hardcode_direct=yes # is this really true??? 10790 ;; 10791 siemens) 10792 ## LD is ld it makes a PLAMLIB 10793 ## CC just makes a GrossModule. 10794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10795 reload_cmds='$CC -r -o $output$reload_objs' 10796 hardcode_direct=no 10797 ;; 10798 motorola) 10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10801 ;; 10802 esac 10803 runpath_var='LD_RUN_PATH' 10804 hardcode_shlibpath_var=no 10805 ;; 10806 10807 sysv4.3*) 10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10809 hardcode_shlibpath_var=no 10810 export_dynamic_flag_spec='-Bexport' 10811 ;; 10812 10813 sysv4*MP*) 10814 if test -d /usr/nec; then 10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10816 hardcode_shlibpath_var=no 10817 runpath_var=LD_RUN_PATH 10818 hardcode_runpath_var=yes 10819 ld_shlibs=yes 10820 fi 10821 ;; 10822 10823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10824 no_undefined_flag='$wl-z,text' 10825 archive_cmds_need_lc=no 10826 hardcode_shlibpath_var=no 10827 runpath_var='LD_RUN_PATH' 10828 10829 if test yes = "$GCC"; then 10830 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10831 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10832 else 10833 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10834 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10835 fi 10836 ;; 10837 10838 sysv5* | sco3.2v5* | sco5v6*) 10839 # Note: We CANNOT use -z defs as we might desire, because we do not 10840 # link with -lc, and that would cause any symbols used from libc to 10841 # always be unresolved, which means just about no library would 10842 # ever link correctly. If we're not using GNU ld we use -z text 10843 # though, which does catch some bad symbols but isn't as heavy-handed 10844 # as -z defs. 10845 no_undefined_flag='$wl-z,text' 10846 allow_undefined_flag='$wl-z,nodefs' 10847 archive_cmds_need_lc=no 10848 hardcode_shlibpath_var=no 10849 hardcode_libdir_flag_spec='$wl-R,$libdir' 10850 hardcode_libdir_separator=':' 10851 link_all_deplibs=yes 10852 export_dynamic_flag_spec='$wl-Bexport' 10853 runpath_var='LD_RUN_PATH' 10854 10855 if test yes = "$GCC"; then 10856 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10857 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10858 else 10859 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10860 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10861 fi 10862 ;; 10863 10864 uts4*) 10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10866 hardcode_libdir_flag_spec='-L$libdir' 10867 hardcode_shlibpath_var=no 10868 ;; 10869 10870 *) 10871 ld_shlibs=no 10872 ;; 10873 esac 10874 10875 if test sni = "$host_vendor"; then 10876 case $host in 10877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10878 export_dynamic_flag_spec='$wl-Blargedynsym' 10879 ;; 10880 esac 10881 fi 10882 fi 10883 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10885$as_echo "$ld_shlibs" >&6; } 10886test no = "$ld_shlibs" && can_build_shared=no 10887 10888with_gnu_ld=$with_gnu_ld 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904# 10905# Do we need to explicitly link libc? 10906# 10907case "x$archive_cmds_need_lc" in 10908x|xyes) 10909 # Assume -lc should be added 10910 archive_cmds_need_lc=yes 10911 10912 if test yes,yes = "$GCC,$enable_shared"; then 10913 case $archive_cmds in 10914 *'~'*) 10915 # FIXME: we may have to deal with multi-command sequences. 10916 ;; 10917 '$CC '*) 10918 # Test whether the compiler implicitly links with -lc since on some 10919 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10920 # to ld, don't add -lc before -lgcc. 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10922$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10923if ${lt_cv_archive_cmds_need_lc+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 $RM conftest* 10927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10928 10929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10930 (eval $ac_compile) 2>&5 10931 ac_status=$? 10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10933 test $ac_status = 0; } 2>conftest.err; then 10934 soname=conftest 10935 lib=conftest 10936 libobjs=conftest.$ac_objext 10937 deplibs= 10938 wl=$lt_prog_compiler_wl 10939 pic_flag=$lt_prog_compiler_pic 10940 compiler_flags=-v 10941 linker_flags=-v 10942 verstring= 10943 output_objdir=. 10944 libname=conftest 10945 lt_save_allow_undefined_flag=$allow_undefined_flag 10946 allow_undefined_flag= 10947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10948 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10949 ac_status=$? 10950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10951 test $ac_status = 0; } 10952 then 10953 lt_cv_archive_cmds_need_lc=no 10954 else 10955 lt_cv_archive_cmds_need_lc=yes 10956 fi 10957 allow_undefined_flag=$lt_save_allow_undefined_flag 10958 else 10959 cat conftest.err 1>&5 10960 fi 10961 $RM conftest* 10962 10963fi 10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10965$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10966 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10967 ;; 10968 esac 10969 fi 10970 ;; 10971esac 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11125$as_echo_n "checking dynamic linker characteristics... " >&6; } 11126 11127if test yes = "$GCC"; then 11128 case $host_os in 11129 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11130 *) lt_awk_arg='/^libraries:/' ;; 11131 esac 11132 case $host_os in 11133 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11134 *) lt_sed_strip_eq='s|=/|/|g' ;; 11135 esac 11136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11137 case $lt_search_path_spec in 11138 *\;*) 11139 # if the path contains ";" then we assume it to be the separator 11140 # otherwise default to the standard path separator (i.e. ":") - it is 11141 # assumed that no part of a normal pathname contains ";" but that should 11142 # okay in the real world where ";" in dirpaths is itself problematic. 11143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11144 ;; 11145 *) 11146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11147 ;; 11148 esac 11149 # Ok, now we have the path, separated by spaces, we can step through it 11150 # and add multilib dir if necessary... 11151 lt_tmp_lt_search_path_spec= 11152 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11153 # ...but if some path component already ends with the multilib dir we assume 11154 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11155 case "$lt_multi_os_dir; $lt_search_path_spec " in 11156 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11157 lt_multi_os_dir= 11158 ;; 11159 esac 11160 for lt_sys_path in $lt_search_path_spec; do 11161 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11162 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11163 elif test -n "$lt_multi_os_dir"; then 11164 test -d "$lt_sys_path" && \ 11165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11166 fi 11167 done 11168 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11169BEGIN {RS = " "; FS = "/|\n";} { 11170 lt_foo = ""; 11171 lt_count = 0; 11172 for (lt_i = NF; lt_i > 0; lt_i--) { 11173 if ($lt_i != "" && $lt_i != ".") { 11174 if ($lt_i == "..") { 11175 lt_count++; 11176 } else { 11177 if (lt_count == 0) { 11178 lt_foo = "/" $lt_i lt_foo; 11179 } else { 11180 lt_count--; 11181 } 11182 } 11183 } 11184 } 11185 if (lt_foo != "") { lt_freq[lt_foo]++; } 11186 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11187}'` 11188 # AWK program above erroneously prepends '/' to C:/dos/paths 11189 # for these hosts. 11190 case $host_os in 11191 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11192 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11193 esac 11194 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11195else 11196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11197fi 11198library_names_spec= 11199libname_spec='lib$name' 11200soname_spec= 11201shrext_cmds=.so 11202postinstall_cmds= 11203postuninstall_cmds= 11204finish_cmds= 11205finish_eval= 11206shlibpath_var= 11207shlibpath_overrides_runpath=unknown 11208version_type=none 11209dynamic_linker="$host_os ld.so" 11210sys_lib_dlsearch_path_spec="/lib /usr/lib" 11211need_lib_prefix=unknown 11212hardcode_into_libs=no 11213 11214# when you set need_version to no, make sure it does not cause -set_version 11215# flags to be left without arguments 11216need_version=unknown 11217 11218case $host_os in 11219aix3*) 11220 version_type=linux # correct to gnu/linux during the next big refactor 11221 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11222 shlibpath_var=LIBPATH 11223 11224 # AIX 3 has no versioning support, so we append a major version to the name. 11225 soname_spec='$libname$release$shared_ext$major' 11226 ;; 11227 11228aix[4-9]*) 11229 version_type=linux # correct to gnu/linux during the next big refactor 11230 need_lib_prefix=no 11231 need_version=no 11232 hardcode_into_libs=yes 11233 if test ia64 = "$host_cpu"; then 11234 # AIX 5 supports IA64 11235 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11236 shlibpath_var=LD_LIBRARY_PATH 11237 else 11238 # With GCC up to 2.95.x, collect2 would create an import file 11239 # for dependence libraries. The import file would start with 11240 # the line '#! .'. This would cause the generated library to 11241 # depend on '.', always an invalid library. This was fixed in 11242 # development snapshots of GCC prior to 3.0. 11243 case $host_os in 11244 aix4 | aix4.[01] | aix4.[01].*) 11245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11246 echo ' yes ' 11247 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11248 : 11249 else 11250 can_build_shared=no 11251 fi 11252 ;; 11253 esac 11254 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11255 # soname into executable. Probably we can add versioning support to 11256 # collect2, so additional links can be useful in future. 11257 if test yes = "$aix_use_runtimelinking"; then 11258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11259 # instead of lib<name>.a to let people know that these are not 11260 # typical AIX shared libraries. 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11262 else 11263 # We preserve .a as extension for shared libraries through AIX4.2 11264 # and later when we are not doing run time linking. 11265 library_names_spec='$libname$release.a $libname.a' 11266 soname_spec='$libname$release$shared_ext$major' 11267 fi 11268 shlibpath_var=LIBPATH 11269 fi 11270 ;; 11271 11272amigaos*) 11273 case $host_cpu in 11274 powerpc) 11275 # Since July 2007 AmigaOS4 officially supports .so libraries. 11276 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11278 ;; 11279 m68k) 11280 library_names_spec='$libname.ixlibrary $libname.a' 11281 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11282 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' 11283 ;; 11284 esac 11285 ;; 11286 11287beos*) 11288 library_names_spec='$libname$shared_ext' 11289 dynamic_linker="$host_os ld.so" 11290 shlibpath_var=LIBRARY_PATH 11291 ;; 11292 11293bsdi[45]*) 11294 version_type=linux # correct to gnu/linux during the next big refactor 11295 need_version=no 11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11297 soname_spec='$libname$release$shared_ext$major' 11298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11299 shlibpath_var=LD_LIBRARY_PATH 11300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11302 # the default ld.so.conf also contains /usr/contrib/lib and 11303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11304 # libtool to hard-code these into programs 11305 ;; 11306 11307cygwin* | mingw* | pw32* | cegcc*) 11308 version_type=windows 11309 shrext_cmds=.dll 11310 need_version=no 11311 need_lib_prefix=no 11312 11313 case $GCC,$cc_basename in 11314 yes,*) 11315 # gcc 11316 library_names_spec='$libname.dll.a' 11317 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11318 postinstall_cmds='base_file=`basename \$file`~ 11319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11320 dldir=$destdir/`dirname \$dlpath`~ 11321 test -d \$dldir || mkdir -p \$dldir~ 11322 $install_prog $dir/$dlname \$dldir/$dlname~ 11323 chmod a+x \$dldir/$dlname~ 11324 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11325 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11326 fi' 11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11328 dlpath=$dir/\$dldll~ 11329 $RM \$dlpath' 11330 shlibpath_overrides_runpath=yes 11331 11332 case $host_os in 11333 cygwin*) 11334 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11335 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11336 11337 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11338 ;; 11339 mingw* | cegcc*) 11340 # MinGW DLLs use traditional 'lib' prefix 11341 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11342 ;; 11343 pw32*) 11344 # pw32 DLLs use 'pw' prefix rather than 'lib' 11345 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11346 ;; 11347 esac 11348 dynamic_linker='Win32 ld.exe' 11349 ;; 11350 11351 *,cl*) 11352 # Native MSVC 11353 libname_spec='$name' 11354 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11355 library_names_spec='$libname.dll.lib' 11356 11357 case $build_os in 11358 mingw*) 11359 sys_lib_search_path_spec= 11360 lt_save_ifs=$IFS 11361 IFS=';' 11362 for lt_path in $LIB 11363 do 11364 IFS=$lt_save_ifs 11365 # Let DOS variable expansion print the short 8.3 style file name. 11366 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11367 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11368 done 11369 IFS=$lt_save_ifs 11370 # Convert to MSYS style. 11371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11372 ;; 11373 cygwin*) 11374 # Convert to unix form, then to dos form, then back to unix form 11375 # but this time dos style (no spaces!) so that the unix form looks 11376 # like /cygdrive/c/PROGRA~1:/cygdr... 11377 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11378 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11379 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11380 ;; 11381 *) 11382 sys_lib_search_path_spec=$LIB 11383 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11384 # It is most probably a Windows format PATH. 11385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11386 else 11387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11388 fi 11389 # FIXME: find the short name or the path components, as spaces are 11390 # common. (e.g. "Program Files" -> "PROGRA~1") 11391 ;; 11392 esac 11393 11394 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11395 postinstall_cmds='base_file=`basename \$file`~ 11396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11397 dldir=$destdir/`dirname \$dlpath`~ 11398 test -d \$dldir || mkdir -p \$dldir~ 11399 $install_prog $dir/$dlname \$dldir/$dlname' 11400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11401 dlpath=$dir/\$dldll~ 11402 $RM \$dlpath' 11403 shlibpath_overrides_runpath=yes 11404 dynamic_linker='Win32 link.exe' 11405 ;; 11406 11407 *) 11408 # Assume MSVC wrapper 11409 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11410 dynamic_linker='Win32 ld.exe' 11411 ;; 11412 esac 11413 # FIXME: first we should search . and the directory the executable is in 11414 shlibpath_var=PATH 11415 ;; 11416 11417darwin* | rhapsody*) 11418 dynamic_linker="$host_os dyld" 11419 version_type=darwin 11420 need_lib_prefix=no 11421 need_version=no 11422 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11423 soname_spec='$libname$release$major$shared_ext' 11424 shlibpath_overrides_runpath=yes 11425 shlibpath_var=DYLD_LIBRARY_PATH 11426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11427 11428 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11430 ;; 11431 11432dgux*) 11433 version_type=linux # correct to gnu/linux during the next big refactor 11434 need_lib_prefix=no 11435 need_version=no 11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11437 soname_spec='$libname$release$shared_ext$major' 11438 shlibpath_var=LD_LIBRARY_PATH 11439 ;; 11440 11441freebsd* | dragonfly*) 11442 # DragonFly does not have aout. When/if they implement a new 11443 # versioning mechanism, adjust this. 11444 if test -x /usr/bin/objformat; then 11445 objformat=`/usr/bin/objformat` 11446 else 11447 case $host_os in 11448 freebsd[23].*) objformat=aout ;; 11449 *) objformat=elf ;; 11450 esac 11451 fi 11452 version_type=freebsd-$objformat 11453 case $version_type in 11454 freebsd-elf*) 11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11456 need_version=no 11457 need_lib_prefix=no 11458 ;; 11459 freebsd-*) 11460 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11461 need_version=yes 11462 ;; 11463 esac 11464 shlibpath_var=LD_LIBRARY_PATH 11465 case $host_os in 11466 freebsd2.*) 11467 shlibpath_overrides_runpath=yes 11468 ;; 11469 freebsd3.[01]* | freebsdelf3.[01]*) 11470 shlibpath_overrides_runpath=yes 11471 hardcode_into_libs=yes 11472 ;; 11473 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11474 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11475 shlibpath_overrides_runpath=no 11476 hardcode_into_libs=yes 11477 ;; 11478 *) # from 4.6 on, and DragonFly 11479 shlibpath_overrides_runpath=yes 11480 hardcode_into_libs=yes 11481 ;; 11482 esac 11483 ;; 11484 11485haiku*) 11486 version_type=linux # correct to gnu/linux during the next big refactor 11487 need_lib_prefix=no 11488 need_version=no 11489 dynamic_linker="$host_os runtime_loader" 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11491 soname_spec='$libname$release$shared_ext$major' 11492 shlibpath_var=LIBRARY_PATH 11493 shlibpath_overrides_runpath=no 11494 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11495 hardcode_into_libs=yes 11496 ;; 11497 11498hpux9* | hpux10* | hpux11*) 11499 # Give a soname corresponding to the major version so that dld.sl refuses to 11500 # link against other versions. 11501 version_type=sunos 11502 need_lib_prefix=no 11503 need_version=no 11504 case $host_cpu in 11505 ia64*) 11506 shrext_cmds='.so' 11507 hardcode_into_libs=yes 11508 dynamic_linker="$host_os dld.so" 11509 shlibpath_var=LD_LIBRARY_PATH 11510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11512 soname_spec='$libname$release$shared_ext$major' 11513 if test 32 = "$HPUX_IA64_MODE"; then 11514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11515 else 11516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11517 fi 11518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11519 ;; 11520 hppa*64*) 11521 shrext_cmds='.sl' 11522 hardcode_into_libs=yes 11523 dynamic_linker="$host_os dld.sl" 11524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 soname_spec='$libname$release$shared_ext$major' 11528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11530 ;; 11531 *) 11532 shrext_cmds='.sl' 11533 dynamic_linker="$host_os dld.sl" 11534 shlibpath_var=SHLIB_PATH 11535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11537 soname_spec='$libname$release$shared_ext$major' 11538 ;; 11539 esac 11540 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11541 postinstall_cmds='chmod 555 $lib' 11542 # or fails outright, so override atomically: 11543 install_override_mode=555 11544 ;; 11545 11546interix[3-9]*) 11547 version_type=linux # correct to gnu/linux during the next big refactor 11548 need_lib_prefix=no 11549 need_version=no 11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11551 soname_spec='$libname$release$shared_ext$major' 11552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11553 shlibpath_var=LD_LIBRARY_PATH 11554 shlibpath_overrides_runpath=no 11555 hardcode_into_libs=yes 11556 ;; 11557 11558irix5* | irix6* | nonstopux*) 11559 case $host_os in 11560 nonstopux*) version_type=nonstopux ;; 11561 *) 11562 if test yes = "$lt_cv_prog_gnu_ld"; then 11563 version_type=linux # correct to gnu/linux during the next big refactor 11564 else 11565 version_type=irix 11566 fi ;; 11567 esac 11568 need_lib_prefix=no 11569 need_version=no 11570 soname_spec='$libname$release$shared_ext$major' 11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11572 case $host_os in 11573 irix5* | nonstopux*) 11574 libsuff= shlibsuff= 11575 ;; 11576 *) 11577 case $LD in # libtool.m4 will add one of these switches to LD 11578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11579 libsuff= shlibsuff= libmagic=32-bit;; 11580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11581 libsuff=32 shlibsuff=N32 libmagic=N32;; 11582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11583 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11584 *) libsuff= shlibsuff= libmagic=never-match;; 11585 esac 11586 ;; 11587 esac 11588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11589 shlibpath_overrides_runpath=no 11590 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11591 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11592 hardcode_into_libs=yes 11593 ;; 11594 11595# No shared lib support for Linux oldld, aout, or coff. 11596linux*oldld* | linux*aout* | linux*coff*) 11597 dynamic_linker=no 11598 ;; 11599 11600linux*android*) 11601 version_type=none # Android doesn't support versioned libraries. 11602 need_lib_prefix=no 11603 need_version=no 11604 library_names_spec='$libname$release$shared_ext' 11605 soname_spec='$libname$release$shared_ext' 11606 finish_cmds= 11607 shlibpath_var=LD_LIBRARY_PATH 11608 shlibpath_overrides_runpath=yes 11609 11610 # This implies no fast_install, which is unacceptable. 11611 # Some rework will be needed to allow for fast_install 11612 # before this can be enabled. 11613 hardcode_into_libs=yes 11614 11615 dynamic_linker='Android linker' 11616 # Don't embed -rpath directories since the linker doesn't support them. 11617 hardcode_libdir_flag_spec='-L$libdir' 11618 ;; 11619 11620# This must be glibc/ELF. 11621linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11622 version_type=linux # correct to gnu/linux during the next big refactor 11623 need_lib_prefix=no 11624 need_version=no 11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11626 soname_spec='$libname$release$shared_ext$major' 11627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11628 shlibpath_var=LD_LIBRARY_PATH 11629 shlibpath_overrides_runpath=no 11630 11631 # Some binutils ld are patched to set DT_RUNPATH 11632 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11633 $as_echo_n "(cached) " >&6 11634else 11635 lt_cv_shlibpath_overrides_runpath=no 11636 save_LDFLAGS=$LDFLAGS 11637 save_libdir=$libdir 11638 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11639 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11641/* end confdefs.h. */ 11642 11643int 11644main () 11645{ 11646 11647 ; 11648 return 0; 11649} 11650_ACEOF 11651if ac_fn_c_try_link "$LINENO"; then : 11652 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11653 lt_cv_shlibpath_overrides_runpath=yes 11654fi 11655fi 11656rm -f core conftest.err conftest.$ac_objext \ 11657 conftest$ac_exeext conftest.$ac_ext 11658 LDFLAGS=$save_LDFLAGS 11659 libdir=$save_libdir 11660 11661fi 11662 11663 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11664 11665 # This implies no fast_install, which is unacceptable. 11666 # Some rework will be needed to allow for fast_install 11667 # before this can be enabled. 11668 hardcode_into_libs=yes 11669 11670 # Append ld.so.conf contents to the search path 11671 if test -f /etc/ld.so.conf; then 11672 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' ' '` 11673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11674 fi 11675 11676 # We used to test for /lib/ld.so.1 and disable shared libraries on 11677 # powerpc, because MkLinux only supported shared libraries with the 11678 # GNU dynamic linker. Since this was broken with cross compilers, 11679 # most powerpc-linux boxes support dynamic linking these days and 11680 # people can always --disable-shared, the test was removed, and we 11681 # assume the GNU/Linux dynamic linker is in use. 11682 dynamic_linker='GNU/Linux ld.so' 11683 ;; 11684 11685netbsd*) 11686 version_type=sunos 11687 need_lib_prefix=no 11688 need_version=no 11689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11692 dynamic_linker='NetBSD (a.out) ld.so' 11693 else 11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11695 soname_spec='$libname$release$shared_ext$major' 11696 dynamic_linker='NetBSD ld.elf_so' 11697 fi 11698 shlibpath_var=LD_LIBRARY_PATH 11699 shlibpath_overrides_runpath=yes 11700 hardcode_into_libs=yes 11701 ;; 11702 11703newsos6) 11704 version_type=linux # correct to gnu/linux during the next big refactor 11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11706 shlibpath_var=LD_LIBRARY_PATH 11707 shlibpath_overrides_runpath=yes 11708 ;; 11709 11710*nto* | *qnx*) 11711 version_type=qnx 11712 need_lib_prefix=no 11713 need_version=no 11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11715 soname_spec='$libname$release$shared_ext$major' 11716 shlibpath_var=LD_LIBRARY_PATH 11717 shlibpath_overrides_runpath=no 11718 hardcode_into_libs=yes 11719 dynamic_linker='ldqnx.so' 11720 ;; 11721 11722openbsd* | bitrig*) 11723 version_type=sunos 11724 sys_lib_dlsearch_path_spec=/usr/lib 11725 need_lib_prefix=no 11726 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11727 need_version=no 11728 else 11729 need_version=yes 11730 fi 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11733 shlibpath_var=LD_LIBRARY_PATH 11734 shlibpath_overrides_runpath=yes 11735 ;; 11736 11737os2*) 11738 libname_spec='$name' 11739 shrext_cmds=.dll 11740 need_lib_prefix=no 11741 library_names_spec='$libname$shared_ext $libname.a' 11742 dynamic_linker='OS/2 ld.exe' 11743 shlibpath_var=LIBPATH 11744 ;; 11745 11746osf3* | osf4* | osf5*) 11747 version_type=osf 11748 need_lib_prefix=no 11749 need_version=no 11750 soname_spec='$libname$release$shared_ext$major' 11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11752 shlibpath_var=LD_LIBRARY_PATH 11753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11755 ;; 11756 11757rdos*) 11758 dynamic_linker=no 11759 ;; 11760 11761solaris*) 11762 version_type=linux # correct to gnu/linux during the next big refactor 11763 need_lib_prefix=no 11764 need_version=no 11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11766 soname_spec='$libname$release$shared_ext$major' 11767 shlibpath_var=LD_LIBRARY_PATH 11768 shlibpath_overrides_runpath=yes 11769 hardcode_into_libs=yes 11770 # ldd complains unless libraries are executable 11771 postinstall_cmds='chmod +x $lib' 11772 ;; 11773 11774sunos4*) 11775 version_type=sunos 11776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11778 shlibpath_var=LD_LIBRARY_PATH 11779 shlibpath_overrides_runpath=yes 11780 if test yes = "$with_gnu_ld"; then 11781 need_lib_prefix=no 11782 fi 11783 need_version=yes 11784 ;; 11785 11786sysv4 | sysv4.3*) 11787 version_type=linux # correct to gnu/linux during the next big refactor 11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11789 soname_spec='$libname$release$shared_ext$major' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 case $host_vendor in 11792 sni) 11793 shlibpath_overrides_runpath=no 11794 need_lib_prefix=no 11795 runpath_var=LD_RUN_PATH 11796 ;; 11797 siemens) 11798 need_lib_prefix=no 11799 ;; 11800 motorola) 11801 need_lib_prefix=no 11802 need_version=no 11803 shlibpath_overrides_runpath=no 11804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11805 ;; 11806 esac 11807 ;; 11808 11809sysv4*MP*) 11810 if test -d /usr/nec; then 11811 version_type=linux # correct to gnu/linux during the next big refactor 11812 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11813 soname_spec='$libname$shared_ext.$major' 11814 shlibpath_var=LD_LIBRARY_PATH 11815 fi 11816 ;; 11817 11818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11819 version_type=freebsd-elf 11820 need_lib_prefix=no 11821 need_version=no 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11823 soname_spec='$libname$release$shared_ext$major' 11824 shlibpath_var=LD_LIBRARY_PATH 11825 shlibpath_overrides_runpath=yes 11826 hardcode_into_libs=yes 11827 if test yes = "$with_gnu_ld"; then 11828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11829 else 11830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11831 case $host_os in 11832 sco3.2v5*) 11833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11834 ;; 11835 esac 11836 fi 11837 sys_lib_dlsearch_path_spec='/usr/lib' 11838 ;; 11839 11840tpf*) 11841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11842 version_type=linux # correct to gnu/linux during the next big refactor 11843 need_lib_prefix=no 11844 need_version=no 11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11846 shlibpath_var=LD_LIBRARY_PATH 11847 shlibpath_overrides_runpath=no 11848 hardcode_into_libs=yes 11849 ;; 11850 11851uts4*) 11852 version_type=linux # correct to gnu/linux during the next big refactor 11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11854 soname_spec='$libname$release$shared_ext$major' 11855 shlibpath_var=LD_LIBRARY_PATH 11856 ;; 11857 11858*) 11859 dynamic_linker=no 11860 ;; 11861esac 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11863$as_echo "$dynamic_linker" >&6; } 11864test no = "$dynamic_linker" && can_build_shared=no 11865 11866variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11867if test yes = "$GCC"; then 11868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11869fi 11870 11871if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11873fi 11874if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11875 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11876fi 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11970$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11971hardcode_action= 11972if test -n "$hardcode_libdir_flag_spec" || 11973 test -n "$runpath_var" || 11974 test yes = "$hardcode_automatic"; then 11975 11976 # We can hardcode non-existent directories. 11977 if test no != "$hardcode_direct" && 11978 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11979 # have to relink, otherwise we might link with an installed library 11980 # when we should be linking with a yet-to-be-installed one 11981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11982 test no != "$hardcode_minus_L"; then 11983 # Linking always hardcodes the temporary library directory. 11984 hardcode_action=relink 11985 else 11986 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11987 hardcode_action=immediate 11988 fi 11989else 11990 # We cannot hardcode anything, or else we can only hardcode existing 11991 # directories. 11992 hardcode_action=unsupported 11993fi 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11995$as_echo "$hardcode_action" >&6; } 11996 11997if test relink = "$hardcode_action" || 11998 test yes = "$inherit_rpath"; then 11999 # Fast installation is not supported 12000 enable_fast_install=no 12001elif test yes = "$shlibpath_overrides_runpath" || 12002 test no = "$enable_shared"; then 12003 # Fast installation is not necessary 12004 enable_fast_install=needless 12005fi 12006 12007 12008 12009 12010 12011 12012 if test yes != "$enable_dlopen"; then 12013 enable_dlopen=unknown 12014 enable_dlopen_self=unknown 12015 enable_dlopen_self_static=unknown 12016else 12017 lt_cv_dlopen=no 12018 lt_cv_dlopen_libs= 12019 12020 case $host_os in 12021 beos*) 12022 lt_cv_dlopen=load_add_on 12023 lt_cv_dlopen_libs= 12024 lt_cv_dlopen_self=yes 12025 ;; 12026 12027 mingw* | pw32* | cegcc*) 12028 lt_cv_dlopen=LoadLibrary 12029 lt_cv_dlopen_libs= 12030 ;; 12031 12032 cygwin*) 12033 lt_cv_dlopen=dlopen 12034 lt_cv_dlopen_libs= 12035 ;; 12036 12037 darwin*) 12038 # if libdl is installed we need to link against it 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12040$as_echo_n "checking for dlopen in -ldl... " >&6; } 12041if ${ac_cv_lib_dl_dlopen+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 ac_check_lib_save_LIBS=$LIBS 12045LIBS="-ldl $LIBS" 12046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12047/* end confdefs.h. */ 12048 12049/* Override any GCC internal prototype to avoid an error. 12050 Use char because int might match the return type of a GCC 12051 builtin and then its argument prototype would still apply. */ 12052#ifdef __cplusplus 12053extern "C" 12054#endif 12055char dlopen (); 12056int 12057main () 12058{ 12059return dlopen (); 12060 ; 12061 return 0; 12062} 12063_ACEOF 12064if ac_fn_c_try_link "$LINENO"; then : 12065 ac_cv_lib_dl_dlopen=yes 12066else 12067 ac_cv_lib_dl_dlopen=no 12068fi 12069rm -f core conftest.err conftest.$ac_objext \ 12070 conftest$ac_exeext conftest.$ac_ext 12071LIBS=$ac_check_lib_save_LIBS 12072fi 12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12074$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12075if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12076 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12077else 12078 12079 lt_cv_dlopen=dyld 12080 lt_cv_dlopen_libs= 12081 lt_cv_dlopen_self=yes 12082 12083fi 12084 12085 ;; 12086 12087 tpf*) 12088 # Don't try to run any link tests for TPF. We know it's impossible 12089 # because TPF is a cross-compiler, and we know how we open DSOs. 12090 lt_cv_dlopen=dlopen 12091 lt_cv_dlopen_libs= 12092 lt_cv_dlopen_self=no 12093 ;; 12094 12095 *) 12096 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12097if test "x$ac_cv_func_shl_load" = xyes; then : 12098 lt_cv_dlopen=shl_load 12099else 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12101$as_echo_n "checking for shl_load in -ldld... " >&6; } 12102if ${ac_cv_lib_dld_shl_load+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 ac_check_lib_save_LIBS=$LIBS 12106LIBS="-ldld $LIBS" 12107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12108/* end confdefs.h. */ 12109 12110/* Override any GCC internal prototype to avoid an error. 12111 Use char because int might match the return type of a GCC 12112 builtin and then its argument prototype would still apply. */ 12113#ifdef __cplusplus 12114extern "C" 12115#endif 12116char shl_load (); 12117int 12118main () 12119{ 12120return shl_load (); 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125if ac_fn_c_try_link "$LINENO"; then : 12126 ac_cv_lib_dld_shl_load=yes 12127else 12128 ac_cv_lib_dld_shl_load=no 12129fi 12130rm -f core conftest.err conftest.$ac_objext \ 12131 conftest$ac_exeext conftest.$ac_ext 12132LIBS=$ac_check_lib_save_LIBS 12133fi 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12135$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12136if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12137 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12138else 12139 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12140if test "x$ac_cv_func_dlopen" = xyes; then : 12141 lt_cv_dlopen=dlopen 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12144$as_echo_n "checking for dlopen in -ldl... " >&6; } 12145if ${ac_cv_lib_dl_dlopen+:} false; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 ac_check_lib_save_LIBS=$LIBS 12149LIBS="-ldl $LIBS" 12150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12151/* end confdefs.h. */ 12152 12153/* Override any GCC internal prototype to avoid an error. 12154 Use char because int might match the return type of a GCC 12155 builtin and then its argument prototype would still apply. */ 12156#ifdef __cplusplus 12157extern "C" 12158#endif 12159char dlopen (); 12160int 12161main () 12162{ 12163return dlopen (); 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168if ac_fn_c_try_link "$LINENO"; then : 12169 ac_cv_lib_dl_dlopen=yes 12170else 12171 ac_cv_lib_dl_dlopen=no 12172fi 12173rm -f core conftest.err conftest.$ac_objext \ 12174 conftest$ac_exeext conftest.$ac_ext 12175LIBS=$ac_check_lib_save_LIBS 12176fi 12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12178$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12179if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12180 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12181else 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12183$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12184if ${ac_cv_lib_svld_dlopen+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-lsvld $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195#ifdef __cplusplus 12196extern "C" 12197#endif 12198char dlopen (); 12199int 12200main () 12201{ 12202return dlopen (); 12203 ; 12204 return 0; 12205} 12206_ACEOF 12207if ac_fn_c_try_link "$LINENO"; then : 12208 ac_cv_lib_svld_dlopen=yes 12209else 12210 ac_cv_lib_svld_dlopen=no 12211fi 12212rm -f core conftest.err conftest.$ac_objext \ 12213 conftest$ac_exeext conftest.$ac_ext 12214LIBS=$ac_check_lib_save_LIBS 12215fi 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12217$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12218if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12219 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12220else 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12222$as_echo_n "checking for dld_link in -ldld... " >&6; } 12223if ${ac_cv_lib_dld_dld_link+:} false; then : 12224 $as_echo_n "(cached) " >&6 12225else 12226 ac_check_lib_save_LIBS=$LIBS 12227LIBS="-ldld $LIBS" 12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12229/* end confdefs.h. */ 12230 12231/* Override any GCC internal prototype to avoid an error. 12232 Use char because int might match the return type of a GCC 12233 builtin and then its argument prototype would still apply. */ 12234#ifdef __cplusplus 12235extern "C" 12236#endif 12237char dld_link (); 12238int 12239main () 12240{ 12241return dld_link (); 12242 ; 12243 return 0; 12244} 12245_ACEOF 12246if ac_fn_c_try_link "$LINENO"; then : 12247 ac_cv_lib_dld_dld_link=yes 12248else 12249 ac_cv_lib_dld_dld_link=no 12250fi 12251rm -f core conftest.err conftest.$ac_objext \ 12252 conftest$ac_exeext conftest.$ac_ext 12253LIBS=$ac_check_lib_save_LIBS 12254fi 12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12256$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12257if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12258 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12259fi 12260 12261 12262fi 12263 12264 12265fi 12266 12267 12268fi 12269 12270 12271fi 12272 12273 12274fi 12275 12276 ;; 12277 esac 12278 12279 if test no = "$lt_cv_dlopen"; then 12280 enable_dlopen=no 12281 else 12282 enable_dlopen=yes 12283 fi 12284 12285 case $lt_cv_dlopen in 12286 dlopen) 12287 save_CPPFLAGS=$CPPFLAGS 12288 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12289 12290 save_LDFLAGS=$LDFLAGS 12291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12292 12293 save_LIBS=$LIBS 12294 LIBS="$lt_cv_dlopen_libs $LIBS" 12295 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12297$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12298if ${lt_cv_dlopen_self+:} false; then : 12299 $as_echo_n "(cached) " >&6 12300else 12301 if test yes = "$cross_compiling"; then : 12302 lt_cv_dlopen_self=cross 12303else 12304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12305 lt_status=$lt_dlunknown 12306 cat > conftest.$ac_ext <<_LT_EOF 12307#line $LINENO "configure" 12308#include "confdefs.h" 12309 12310#if HAVE_DLFCN_H 12311#include <dlfcn.h> 12312#endif 12313 12314#include <stdio.h> 12315 12316#ifdef RTLD_GLOBAL 12317# define LT_DLGLOBAL RTLD_GLOBAL 12318#else 12319# ifdef DL_GLOBAL 12320# define LT_DLGLOBAL DL_GLOBAL 12321# else 12322# define LT_DLGLOBAL 0 12323# endif 12324#endif 12325 12326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12327 find out it does not work in some platform. */ 12328#ifndef LT_DLLAZY_OR_NOW 12329# ifdef RTLD_LAZY 12330# define LT_DLLAZY_OR_NOW RTLD_LAZY 12331# else 12332# ifdef DL_LAZY 12333# define LT_DLLAZY_OR_NOW DL_LAZY 12334# else 12335# ifdef RTLD_NOW 12336# define LT_DLLAZY_OR_NOW RTLD_NOW 12337# else 12338# ifdef DL_NOW 12339# define LT_DLLAZY_OR_NOW DL_NOW 12340# else 12341# define LT_DLLAZY_OR_NOW 0 12342# endif 12343# endif 12344# endif 12345# endif 12346#endif 12347 12348/* When -fvisbility=hidden is used, assume the code has been annotated 12349 correspondingly for the symbols needed. */ 12350#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12351int fnord () __attribute__((visibility("default"))); 12352#endif 12353 12354int fnord () { return 42; } 12355int main () 12356{ 12357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12358 int status = $lt_dlunknown; 12359 12360 if (self) 12361 { 12362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12363 else 12364 { 12365 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12366 else puts (dlerror ()); 12367 } 12368 /* dlclose (self); */ 12369 } 12370 else 12371 puts (dlerror ()); 12372 12373 return status; 12374} 12375_LT_EOF 12376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12377 (eval $ac_link) 2>&5 12378 ac_status=$? 12379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12380 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12381 (./conftest; exit; ) >&5 2>/dev/null 12382 lt_status=$? 12383 case x$lt_status in 12384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12387 esac 12388 else : 12389 # compilation failed 12390 lt_cv_dlopen_self=no 12391 fi 12392fi 12393rm -fr conftest* 12394 12395 12396fi 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12398$as_echo "$lt_cv_dlopen_self" >&6; } 12399 12400 if test yes = "$lt_cv_dlopen_self"; then 12401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12403$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12404if ${lt_cv_dlopen_self_static+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 if test yes = "$cross_compiling"; then : 12408 lt_cv_dlopen_self_static=cross 12409else 12410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12411 lt_status=$lt_dlunknown 12412 cat > conftest.$ac_ext <<_LT_EOF 12413#line $LINENO "configure" 12414#include "confdefs.h" 12415 12416#if HAVE_DLFCN_H 12417#include <dlfcn.h> 12418#endif 12419 12420#include <stdio.h> 12421 12422#ifdef RTLD_GLOBAL 12423# define LT_DLGLOBAL RTLD_GLOBAL 12424#else 12425# ifdef DL_GLOBAL 12426# define LT_DLGLOBAL DL_GLOBAL 12427# else 12428# define LT_DLGLOBAL 0 12429# endif 12430#endif 12431 12432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12433 find out it does not work in some platform. */ 12434#ifndef LT_DLLAZY_OR_NOW 12435# ifdef RTLD_LAZY 12436# define LT_DLLAZY_OR_NOW RTLD_LAZY 12437# else 12438# ifdef DL_LAZY 12439# define LT_DLLAZY_OR_NOW DL_LAZY 12440# else 12441# ifdef RTLD_NOW 12442# define LT_DLLAZY_OR_NOW RTLD_NOW 12443# else 12444# ifdef DL_NOW 12445# define LT_DLLAZY_OR_NOW DL_NOW 12446# else 12447# define LT_DLLAZY_OR_NOW 0 12448# endif 12449# endif 12450# endif 12451# endif 12452#endif 12453 12454/* When -fvisbility=hidden is used, assume the code has been annotated 12455 correspondingly for the symbols needed. */ 12456#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12457int fnord () __attribute__((visibility("default"))); 12458#endif 12459 12460int fnord () { return 42; } 12461int main () 12462{ 12463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12464 int status = $lt_dlunknown; 12465 12466 if (self) 12467 { 12468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12469 else 12470 { 12471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12472 else puts (dlerror ()); 12473 } 12474 /* dlclose (self); */ 12475 } 12476 else 12477 puts (dlerror ()); 12478 12479 return status; 12480} 12481_LT_EOF 12482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12483 (eval $ac_link) 2>&5 12484 ac_status=$? 12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12486 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12487 (./conftest; exit; ) >&5 2>/dev/null 12488 lt_status=$? 12489 case x$lt_status in 12490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12493 esac 12494 else : 12495 # compilation failed 12496 lt_cv_dlopen_self_static=no 12497 fi 12498fi 12499rm -fr conftest* 12500 12501 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12504$as_echo "$lt_cv_dlopen_self_static" >&6; } 12505 fi 12506 12507 CPPFLAGS=$save_CPPFLAGS 12508 LDFLAGS=$save_LDFLAGS 12509 LIBS=$save_LIBS 12510 ;; 12511 esac 12512 12513 case $lt_cv_dlopen_self in 12514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12515 *) enable_dlopen_self=unknown ;; 12516 esac 12517 12518 case $lt_cv_dlopen_self_static in 12519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12520 *) enable_dlopen_self_static=unknown ;; 12521 esac 12522fi 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540striplib= 12541old_striplib= 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12543$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12544if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12545 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12546 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12548$as_echo "yes" >&6; } 12549else 12550# FIXME - insert some real tests, host_os isn't really good enough 12551 case $host_os in 12552 darwin*) 12553 if test -n "$STRIP"; then 12554 striplib="$STRIP -x" 12555 old_striplib="$STRIP -S" 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12557$as_echo "yes" >&6; } 12558 else 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12560$as_echo "no" >&6; } 12561 fi 12562 ;; 12563 *) 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12565$as_echo "no" >&6; } 12566 ;; 12567 esac 12568fi 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 # Report what library types will actually be built 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12583$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12585$as_echo "$can_build_shared" >&6; } 12586 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12588$as_echo_n "checking whether to build shared libraries... " >&6; } 12589 test no = "$can_build_shared" && enable_shared=no 12590 12591 # On AIX, shared libraries and static libraries use the same namespace, and 12592 # are all built from PIC. 12593 case $host_os in 12594 aix3*) 12595 test yes = "$enable_shared" && enable_static=no 12596 if test -n "$RANLIB"; then 12597 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12598 postinstall_cmds='$RANLIB $lib' 12599 fi 12600 ;; 12601 12602 aix[4-9]*) 12603 if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then 12604 test yes = "$enable_shared" && enable_static=no 12605 fi 12606 ;; 12607 esac 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12609$as_echo "$enable_shared" >&6; } 12610 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12612$as_echo_n "checking whether to build static libraries... " >&6; } 12613 # Make sure either enable_shared or enable_static is yes. 12614 test yes = "$enable_shared" || enable_static=yes 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12616$as_echo "$enable_static" >&6; } 12617 12618 12619 12620 12621fi 12622ac_ext=c 12623ac_cpp='$CPP $CPPFLAGS' 12624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12626ac_compiler_gnu=$ac_cv_c_compiler_gnu 12627 12628CC=$lt_save_CC 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 ac_config_commands="$ac_config_commands libtool" 12645 12646 12647 12648 12649# Only expand once: 12650 12651 12652ac_ext=cpp 12653ac_cpp='$CXXCPP $CPPFLAGS' 12654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12657if test -z "$CXX"; then 12658 if test -n "$CCC"; then 12659 CXX=$CCC 12660 else 12661 if test -n "$ac_tool_prefix"; then 12662 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12663 do 12664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12665set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12667$as_echo_n "checking for $ac_word... " >&6; } 12668if ${ac_cv_prog_CXX+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 if test -n "$CXX"; then 12672 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12673else 12674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12675for as_dir in $PATH 12676do 12677 IFS=$as_save_IFS 12678 test -z "$as_dir" && as_dir=. 12679 for ac_exec_ext in '' $ac_executable_extensions; do 12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12681 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12683 break 2 12684 fi 12685done 12686 done 12687IFS=$as_save_IFS 12688 12689fi 12690fi 12691CXX=$ac_cv_prog_CXX 12692if test -n "$CXX"; then 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12694$as_echo "$CXX" >&6; } 12695else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12697$as_echo "no" >&6; } 12698fi 12699 12700 12701 test -n "$CXX" && break 12702 done 12703fi 12704if test -z "$CXX"; then 12705 ac_ct_CXX=$CXX 12706 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12707do 12708 # Extract the first word of "$ac_prog", so it can be a program name with args. 12709set dummy $ac_prog; ac_word=$2 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12711$as_echo_n "checking for $ac_word... " >&6; } 12712if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 if test -n "$ac_ct_CXX"; then 12716 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12717else 12718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12719for as_dir in $PATH 12720do 12721 IFS=$as_save_IFS 12722 test -z "$as_dir" && as_dir=. 12723 for ac_exec_ext in '' $ac_executable_extensions; do 12724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12725 ac_cv_prog_ac_ct_CXX="$ac_prog" 12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12727 break 2 12728 fi 12729done 12730 done 12731IFS=$as_save_IFS 12732 12733fi 12734fi 12735ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12736if test -n "$ac_ct_CXX"; then 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12738$as_echo "$ac_ct_CXX" >&6; } 12739else 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12741$as_echo "no" >&6; } 12742fi 12743 12744 12745 test -n "$ac_ct_CXX" && break 12746done 12747 12748 if test "x$ac_ct_CXX" = x; then 12749 CXX="g++" 12750 else 12751 case $cross_compiling:$ac_tool_warned in 12752yes:) 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12755ac_tool_warned=yes ;; 12756esac 12757 CXX=$ac_ct_CXX 12758 fi 12759fi 12760 12761 fi 12762fi 12763# Provide some information about the compiler. 12764$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12765set X $ac_compile 12766ac_compiler=$2 12767for ac_option in --version -v -V -qversion; do 12768 { { ac_try="$ac_compiler $ac_option >&5" 12769case "(($ac_try" in 12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12771 *) ac_try_echo=$ac_try;; 12772esac 12773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12774$as_echo "$ac_try_echo"; } >&5 12775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12776 ac_status=$? 12777 if test -s conftest.err; then 12778 sed '10a\ 12779... rest of stderr output deleted ... 12780 10q' conftest.err >conftest.er1 12781 cat conftest.er1 >&5 12782 fi 12783 rm -f conftest.er1 conftest.err 12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12785 test $ac_status = 0; } 12786done 12787 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12789$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12790if ${ac_cv_cxx_compiler_gnu+:} false; then : 12791 $as_echo_n "(cached) " >&6 12792else 12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12794/* end confdefs.h. */ 12795 12796int 12797main () 12798{ 12799#ifndef __GNUC__ 12800 choke me 12801#endif 12802 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_cxx_try_compile "$LINENO"; then : 12808 ac_compiler_gnu=yes 12809else 12810 ac_compiler_gnu=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12813ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12814 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12817$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12818if test $ac_compiler_gnu = yes; then 12819 GXX=yes 12820else 12821 GXX= 12822fi 12823ac_test_CXXFLAGS=${CXXFLAGS+set} 12824ac_save_CXXFLAGS=$CXXFLAGS 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12826$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12827if ${ac_cv_prog_cxx_g+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829else 12830 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12831 ac_cxx_werror_flag=yes 12832 ac_cv_prog_cxx_g=no 12833 CXXFLAGS="-g" 12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12835/* end confdefs.h. */ 12836 12837int 12838main () 12839{ 12840 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_cxx_try_compile "$LINENO"; then : 12846 ac_cv_prog_cxx_g=yes 12847else 12848 CXXFLAGS="" 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851 12852int 12853main () 12854{ 12855 12856 ; 12857 return 0; 12858} 12859_ACEOF 12860if ac_fn_cxx_try_compile "$LINENO"; then : 12861 12862else 12863 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12864 CXXFLAGS="-g" 12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866/* end confdefs.h. */ 12867 12868int 12869main () 12870{ 12871 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876if ac_fn_cxx_try_compile "$LINENO"; then : 12877 ac_cv_prog_cxx_g=yes 12878fi 12879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12880fi 12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12882fi 12883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12884 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12885fi 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12887$as_echo "$ac_cv_prog_cxx_g" >&6; } 12888if test "$ac_test_CXXFLAGS" = set; then 12889 CXXFLAGS=$ac_save_CXXFLAGS 12890elif test $ac_cv_prog_cxx_g = yes; then 12891 if test "$GXX" = yes; then 12892 CXXFLAGS="-g -O2" 12893 else 12894 CXXFLAGS="-g" 12895 fi 12896else 12897 if test "$GXX" = yes; then 12898 CXXFLAGS="-O2" 12899 else 12900 CXXFLAGS= 12901 fi 12902fi 12903ac_ext=c 12904ac_cpp='$CPP $CPPFLAGS' 12905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12907ac_compiler_gnu=$ac_cv_c_compiler_gnu 12908 12909depcc="$CXX" am_compiler_list= 12910 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12912$as_echo_n "checking dependency style of $depcc... " >&6; } 12913if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12914 $as_echo_n "(cached) " >&6 12915else 12916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12917 # We make a subdir and do the tests there. Otherwise we can end up 12918 # making bogus files that we don't know about and never remove. For 12919 # instance it was reported that on HP-UX the gcc test will end up 12920 # making a dummy file named 'D' -- because '-MD' means "put the output 12921 # in D". 12922 rm -rf conftest.dir 12923 mkdir conftest.dir 12924 # Copy depcomp to subdir because otherwise we won't find it if we're 12925 # using a relative directory. 12926 cp "$am_depcomp" conftest.dir 12927 cd conftest.dir 12928 # We will build objects and dependencies in a subdirectory because 12929 # it helps to detect inapplicable dependency modes. For instance 12930 # both Tru64's cc and ICC support -MD to output dependencies as a 12931 # side effect of compilation, but ICC will put the dependencies in 12932 # the current directory while Tru64 will put them in the object 12933 # directory. 12934 mkdir sub 12935 12936 am_cv_CXX_dependencies_compiler_type=none 12937 if test "$am_compiler_list" = ""; then 12938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12939 fi 12940 am__universal=false 12941 case " $depcc " in #( 12942 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12943 esac 12944 12945 for depmode in $am_compiler_list; do 12946 # Setup a source with many dependencies, because some compilers 12947 # like to wrap large dependency lists on column 80 (with \), and 12948 # we should not choose a depcomp mode which is confused by this. 12949 # 12950 # We need to recreate these files for each test, as the compiler may 12951 # overwrite some of them when testing with obscure command lines. 12952 # This happens at least with the AIX C compiler. 12953 : > sub/conftest.c 12954 for i in 1 2 3 4 5 6; do 12955 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12956 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12957 # Solaris 10 /bin/sh. 12958 echo '/* dummy */' > sub/conftst$i.h 12959 done 12960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12961 12962 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12963 # mode. It turns out that the SunPro C++ compiler does not properly 12964 # handle '-M -o', and we need to detect this. Also, some Intel 12965 # versions had trouble with output in subdirs. 12966 am__obj=sub/conftest.${OBJEXT-o} 12967 am__minus_obj="-o $am__obj" 12968 case $depmode in 12969 gcc) 12970 # This depmode causes a compiler race in universal mode. 12971 test "$am__universal" = false || continue 12972 ;; 12973 nosideeffect) 12974 # After this tag, mechanisms are not by side-effect, so they'll 12975 # only be used when explicitly requested. 12976 if test "x$enable_dependency_tracking" = xyes; then 12977 continue 12978 else 12979 break 12980 fi 12981 ;; 12982 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12983 # This compiler won't grok '-c -o', but also, the minuso test has 12984 # not run yet. These depmodes are late enough in the game, and 12985 # so weak that their functioning should not be impacted. 12986 am__obj=conftest.${OBJEXT-o} 12987 am__minus_obj= 12988 ;; 12989 none) break ;; 12990 esac 12991 if depmode=$depmode \ 12992 source=sub/conftest.c object=$am__obj \ 12993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12994 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12995 >/dev/null 2>conftest.err && 12996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12998 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13000 # icc doesn't choke on unknown options, it will just issue warnings 13001 # or remarks (even with -Werror). So we grep stderr for any message 13002 # that says an option was ignored or not supported. 13003 # When given -MP, icc 7.0 and 7.1 complain thusly: 13004 # icc: Command line warning: ignoring option '-M'; no argument required 13005 # The diagnosis changed in icc 8.0: 13006 # icc: Command line remark: option '-MP' not supported 13007 if (grep 'ignoring option' conftest.err || 13008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13009 am_cv_CXX_dependencies_compiler_type=$depmode 13010 break 13011 fi 13012 fi 13013 done 13014 13015 cd .. 13016 rm -rf conftest.dir 13017else 13018 am_cv_CXX_dependencies_compiler_type=none 13019fi 13020 13021fi 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13023$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13024CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13025 13026 if 13027 test "x$enable_dependency_tracking" != xno \ 13028 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13029 am__fastdepCXX_TRUE= 13030 am__fastdepCXX_FALSE='#' 13031else 13032 am__fastdepCXX_TRUE='#' 13033 am__fastdepCXX_FALSE= 13034fi 13035 13036 13037 13038 13039 13040func_stripname_cnf () 13041{ 13042 case $2 in 13043 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13044 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13045 esac 13046} # func_stripname_cnf 13047 13048 if test -n "$CXX" && ( test no != "$CXX" && 13049 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13050 (test g++ != "$CXX"))); then 13051 ac_ext=cpp 13052ac_cpp='$CXXCPP $CPPFLAGS' 13053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13057$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13058if test -z "$CXXCPP"; then 13059 if ${ac_cv_prog_CXXCPP+:} false; then : 13060 $as_echo_n "(cached) " >&6 13061else 13062 # Double quotes because CXXCPP needs to be expanded 13063 for CXXCPP in "$CXX -E" "/lib/cpp" 13064 do 13065 ac_preproc_ok=false 13066for ac_cxx_preproc_warn_flag in '' yes 13067do 13068 # Use a header file that comes with gcc, so configuring glibc 13069 # with a fresh cross-compiler works. 13070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13071 # <limits.h> exists even on freestanding compilers. 13072 # On the NeXT, cc -E runs the code through the compiler's parser, 13073 # not just through cpp. "Syntax error" is here to catch this case. 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076#ifdef __STDC__ 13077# include <limits.h> 13078#else 13079# include <assert.h> 13080#endif 13081 Syntax error 13082_ACEOF 13083if ac_fn_cxx_try_cpp "$LINENO"; then : 13084 13085else 13086 # Broken: fails on valid input. 13087continue 13088fi 13089rm -f conftest.err conftest.i conftest.$ac_ext 13090 13091 # OK, works on sane cases. Now check whether nonexistent headers 13092 # can be detected and how. 13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095#include <ac_nonexistent.h> 13096_ACEOF 13097if ac_fn_cxx_try_cpp "$LINENO"; then : 13098 # Broken: success on invalid input. 13099continue 13100else 13101 # Passes both tests. 13102ac_preproc_ok=: 13103break 13104fi 13105rm -f conftest.err conftest.i conftest.$ac_ext 13106 13107done 13108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13109rm -f conftest.i conftest.err conftest.$ac_ext 13110if $ac_preproc_ok; then : 13111 break 13112fi 13113 13114 done 13115 ac_cv_prog_CXXCPP=$CXXCPP 13116 13117fi 13118 CXXCPP=$ac_cv_prog_CXXCPP 13119else 13120 ac_cv_prog_CXXCPP=$CXXCPP 13121fi 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13123$as_echo "$CXXCPP" >&6; } 13124ac_preproc_ok=false 13125for ac_cxx_preproc_warn_flag in '' yes 13126do 13127 # Use a header file that comes with gcc, so configuring glibc 13128 # with a fresh cross-compiler works. 13129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13130 # <limits.h> exists even on freestanding compilers. 13131 # On the NeXT, cc -E runs the code through the compiler's parser, 13132 # not just through cpp. "Syntax error" is here to catch this case. 13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13134/* end confdefs.h. */ 13135#ifdef __STDC__ 13136# include <limits.h> 13137#else 13138# include <assert.h> 13139#endif 13140 Syntax error 13141_ACEOF 13142if ac_fn_cxx_try_cpp "$LINENO"; then : 13143 13144else 13145 # Broken: fails on valid input. 13146continue 13147fi 13148rm -f conftest.err conftest.i conftest.$ac_ext 13149 13150 # OK, works on sane cases. Now check whether nonexistent headers 13151 # can be detected and how. 13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13153/* end confdefs.h. */ 13154#include <ac_nonexistent.h> 13155_ACEOF 13156if ac_fn_cxx_try_cpp "$LINENO"; then : 13157 # Broken: success on invalid input. 13158continue 13159else 13160 # Passes both tests. 13161ac_preproc_ok=: 13162break 13163fi 13164rm -f conftest.err conftest.i conftest.$ac_ext 13165 13166done 13167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13168rm -f conftest.i conftest.err conftest.$ac_ext 13169if $ac_preproc_ok; then : 13170 13171else 13172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13174as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13175See \`config.log' for more details" "$LINENO" 5; } 13176fi 13177 13178ac_ext=c 13179ac_cpp='$CPP $CPPFLAGS' 13180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13182ac_compiler_gnu=$ac_cv_c_compiler_gnu 13183 13184else 13185 _lt_caught_CXX_error=yes 13186fi 13187 13188ac_ext=cpp 13189ac_cpp='$CXXCPP $CPPFLAGS' 13190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13193 13194archive_cmds_need_lc_CXX=no 13195allow_undefined_flag_CXX= 13196always_export_symbols_CXX=no 13197archive_expsym_cmds_CXX= 13198compiler_needs_object_CXX=no 13199export_dynamic_flag_spec_CXX= 13200hardcode_direct_CXX=no 13201hardcode_direct_absolute_CXX=no 13202hardcode_libdir_flag_spec_CXX= 13203hardcode_libdir_separator_CXX= 13204hardcode_minus_L_CXX=no 13205hardcode_shlibpath_var_CXX=unsupported 13206hardcode_automatic_CXX=no 13207inherit_rpath_CXX=no 13208module_cmds_CXX= 13209module_expsym_cmds_CXX= 13210link_all_deplibs_CXX=unknown 13211old_archive_cmds_CXX=$old_archive_cmds 13212reload_flag_CXX=$reload_flag 13213reload_cmds_CXX=$reload_cmds 13214no_undefined_flag_CXX= 13215whole_archive_flag_spec_CXX= 13216enable_shared_with_static_runtimes_CXX=no 13217 13218# Source file extension for C++ test sources. 13219ac_ext=cpp 13220 13221# Object file extension for compiled C++ test sources. 13222objext=o 13223objext_CXX=$objext 13224 13225# No sense in running all these tests if we already determined that 13226# the CXX compiler isn't working. Some variables (like enable_shared) 13227# are currently assumed to apply to all compilers on this platform, 13228# and will be corrupted by setting them based on a non-working compiler. 13229if test yes != "$_lt_caught_CXX_error"; then 13230 # Code to be used in simple compile tests 13231 lt_simple_compile_test_code="int some_variable = 0;" 13232 13233 # Code to be used in simple link tests 13234 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13235 13236 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13237 13238 13239 13240 13241 13242 13243# If no C compiler was specified, use CC. 13244LTCC=${LTCC-"$CC"} 13245 13246# If no C compiler flags were specified, use CFLAGS. 13247LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13248 13249# Allow CC to be a program name with arguments. 13250compiler=$CC 13251 13252 13253 # save warnings/boilerplate of simple test code 13254 ac_outfile=conftest.$ac_objext 13255echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13257_lt_compiler_boilerplate=`cat conftest.err` 13258$RM conftest* 13259 13260 ac_outfile=conftest.$ac_objext 13261echo "$lt_simple_link_test_code" >conftest.$ac_ext 13262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13263_lt_linker_boilerplate=`cat conftest.err` 13264$RM -r conftest* 13265 13266 13267 # Allow CC to be a program name with arguments. 13268 lt_save_CC=$CC 13269 lt_save_CFLAGS=$CFLAGS 13270 lt_save_LD=$LD 13271 lt_save_GCC=$GCC 13272 GCC=$GXX 13273 lt_save_with_gnu_ld=$with_gnu_ld 13274 lt_save_path_LD=$lt_cv_path_LD 13275 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13276 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13277 else 13278 $as_unset lt_cv_prog_gnu_ld 13279 fi 13280 if test -n "${lt_cv_path_LDCXX+set}"; then 13281 lt_cv_path_LD=$lt_cv_path_LDCXX 13282 else 13283 $as_unset lt_cv_path_LD 13284 fi 13285 test -z "${LDCXX+set}" || LD=$LDCXX 13286 CC=${CXX-"c++"} 13287 CFLAGS=$CXXFLAGS 13288 compiler=$CC 13289 compiler_CXX=$CC 13290 for cc_temp in $compiler""; do 13291 case $cc_temp in 13292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13294 \-*) ;; 13295 *) break;; 13296 esac 13297done 13298cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13299 13300 13301 if test -n "$compiler"; then 13302 # We don't want -fno-exception when compiling C++ code, so set the 13303 # no_builtin_flag separately 13304 if test yes = "$GXX"; then 13305 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13306 else 13307 lt_prog_compiler_no_builtin_flag_CXX= 13308 fi 13309 13310 if test yes = "$GXX"; then 13311 # Set up default GNU C++ configuration 13312 13313 13314 13315# Check whether --with-gnu-ld was given. 13316if test "${with_gnu_ld+set}" = set; then : 13317 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13318else 13319 with_gnu_ld=no 13320fi 13321 13322ac_prog=ld 13323if test yes = "$GCC"; then 13324 # Check if gcc -print-prog-name=ld gives a path. 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13326$as_echo_n "checking for ld used by $CC... " >&6; } 13327 case $host in 13328 *-*-mingw*) 13329 # gcc leaves a trailing carriage return, which upsets mingw 13330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13331 *) 13332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13333 esac 13334 case $ac_prog in 13335 # Accept absolute paths. 13336 [\\/]* | ?:[\\/]*) 13337 re_direlt='/[^/][^/]*/\.\./' 13338 # Canonicalize the pathname of ld 13339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13342 done 13343 test -z "$LD" && LD=$ac_prog 13344 ;; 13345 "") 13346 # If it fails, then pretend we aren't using GCC. 13347 ac_prog=ld 13348 ;; 13349 *) 13350 # If it is relative, then search for the first ld in PATH. 13351 with_gnu_ld=unknown 13352 ;; 13353 esac 13354elif test yes = "$with_gnu_ld"; then 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13356$as_echo_n "checking for GNU ld... " >&6; } 13357else 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13359$as_echo_n "checking for non-GNU ld... " >&6; } 13360fi 13361if ${lt_cv_path_LD+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 if test -z "$LD"; then 13365 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13366 for ac_dir in $PATH; do 13367 IFS=$lt_save_ifs 13368 test -z "$ac_dir" && ac_dir=. 13369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13370 lt_cv_path_LD=$ac_dir/$ac_prog 13371 # Check to see if the program is GNU ld. I'd rather use --version, 13372 # but apparently some variants of GNU ld only accept -v. 13373 # Break only if it was the GNU/non-GNU ld that we prefer. 13374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13375 *GNU* | *'with BFD'*) 13376 test no != "$with_gnu_ld" && break 13377 ;; 13378 *) 13379 test yes != "$with_gnu_ld" && break 13380 ;; 13381 esac 13382 fi 13383 done 13384 IFS=$lt_save_ifs 13385else 13386 lt_cv_path_LD=$LD # Let the user override the test with a path. 13387fi 13388fi 13389 13390LD=$lt_cv_path_LD 13391if test -n "$LD"; then 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13393$as_echo "$LD" >&6; } 13394else 13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13396$as_echo "no" >&6; } 13397fi 13398test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13401if ${lt_cv_prog_gnu_ld+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403else 13404 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13405case `$LD -v 2>&1 </dev/null` in 13406*GNU* | *'with BFD'*) 13407 lt_cv_prog_gnu_ld=yes 13408 ;; 13409*) 13410 lt_cv_prog_gnu_ld=no 13411 ;; 13412esac 13413fi 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13415$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13416with_gnu_ld=$lt_cv_prog_gnu_ld 13417 13418 13419 13420 13421 13422 13423 13424 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13425 # archiving commands below assume that GNU ld is being used. 13426 if test yes = "$with_gnu_ld"; then 13427 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13428 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' 13429 13430 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13431 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13432 13433 # If archive_cmds runs LD, not CC, wlarc should be empty 13434 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13435 # investigate it a little bit more. (MM) 13436 wlarc='$wl' 13437 13438 # ancient GNU ld didn't support --whole-archive et. al. 13439 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13440 $GREP 'no-whole-archive' > /dev/null; then 13441 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13442 else 13443 whole_archive_flag_spec_CXX= 13444 fi 13445 else 13446 with_gnu_ld=no 13447 wlarc= 13448 13449 # A generic and very simple default shared library creation 13450 # command for GNU C++ for the case where it uses the native 13451 # linker, instead of GNU ld. If possible, this setting should 13452 # overridden to take advantage of the native linker features on 13453 # the platform it is being used on. 13454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13455 fi 13456 13457 # Commands to make compiler produce verbose output that lists 13458 # what "hidden" libraries, object files and flags are used when 13459 # linking a shared library. 13460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13461 13462 else 13463 GXX=no 13464 with_gnu_ld=no 13465 wlarc= 13466 fi 13467 13468 # PORTME: fill in a description of your system's C++ link characteristics 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13470$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13471 ld_shlibs_CXX=yes 13472 case $host_os in 13473 aix3*) 13474 # FIXME: insert proper C++ library support 13475 ld_shlibs_CXX=no 13476 ;; 13477 aix[4-9]*) 13478 if test ia64 = "$host_cpu"; then 13479 # On IA64, the linker does run time linking by default, so we don't 13480 # have to do anything special. 13481 aix_use_runtimelinking=no 13482 exp_sym_flag='-Bexport' 13483 no_entry_flag= 13484 else 13485 aix_use_runtimelinking=no 13486 13487 # Test if we are trying to use run time linking or normal 13488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13489 # need to do runtime linking. 13490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13491 for ld_flag in $LDFLAGS; do 13492 case $ld_flag in 13493 *-brtl*) 13494 aix_use_runtimelinking=yes 13495 break 13496 ;; 13497 esac 13498 done 13499 ;; 13500 esac 13501 13502 exp_sym_flag='-bexport' 13503 no_entry_flag='-bnoentry' 13504 fi 13505 13506 # When large executables or shared objects are built, AIX ld can 13507 # have problems creating the table of contents. If linking a library 13508 # or program results in "error TOC overflow" add -mminimal-toc to 13509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13511 13512 archive_cmds_CXX='' 13513 hardcode_direct_CXX=yes 13514 hardcode_direct_absolute_CXX=yes 13515 hardcode_libdir_separator_CXX=':' 13516 link_all_deplibs_CXX=yes 13517 file_list_spec_CXX='$wl-f,' 13518 13519 if test yes = "$GXX"; then 13520 case $host_os in aix4.[012]|aix4.[012].*) 13521 # We only want to do this on AIX 4.2 and lower, the check 13522 # below for broken collect2 doesn't work under 4.3+ 13523 collect2name=`$CC -print-prog-name=collect2` 13524 if test -f "$collect2name" && 13525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13526 then 13527 # We have reworked collect2 13528 : 13529 else 13530 # We have old collect2 13531 hardcode_direct_CXX=unsupported 13532 # It fails to find uninstalled libraries when the uninstalled 13533 # path is not listed in the libpath. Setting hardcode_minus_L 13534 # to unsupported forces relinking 13535 hardcode_minus_L_CXX=yes 13536 hardcode_libdir_flag_spec_CXX='-L$libdir' 13537 hardcode_libdir_separator_CXX= 13538 fi 13539 esac 13540 shared_flag='-shared' 13541 if test yes = "$aix_use_runtimelinking"; then 13542 shared_flag=$shared_flag' $wl-G' 13543 fi 13544 else 13545 # not using gcc 13546 if test ia64 = "$host_cpu"; then 13547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13548 # chokes on -Wl,-G. The following line is correct: 13549 shared_flag='-G' 13550 else 13551 if test yes = "$aix_use_runtimelinking"; then 13552 shared_flag='$wl-G' 13553 else 13554 shared_flag='$wl-bM:SRE' 13555 fi 13556 fi 13557 fi 13558 13559 export_dynamic_flag_spec_CXX='$wl-bexpall' 13560 # It seems that -bexpall does not export symbols beginning with 13561 # underscore (_), so it is better to generate a list of symbols to 13562 # export. 13563 always_export_symbols_CXX=yes 13564 if test yes = "$aix_use_runtimelinking"; then 13565 # Warning - without using the other runtime loading flags (-brtl), 13566 # -berok will link without error, but may produce a broken library. 13567 allow_undefined_flag_CXX='-berok' 13568 # Determine the default libpath from the value encoded in an empty 13569 # executable. 13570 if test set = "${lt_cv_aix_libpath+set}"; then 13571 aix_libpath=$lt_cv_aix_libpath 13572else 13573 if ${lt_cv_aix_libpath__CXX+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575else 13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13577/* end confdefs.h. */ 13578 13579int 13580main () 13581{ 13582 13583 ; 13584 return 0; 13585} 13586_ACEOF 13587if ac_fn_cxx_try_link "$LINENO"; then : 13588 13589 lt_aix_libpath_sed=' 13590 /Import File Strings/,/^$/ { 13591 /^0/ { 13592 s/^0 *\([^ ]*\) *$/\1/ 13593 p 13594 } 13595 }' 13596 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13597 # Check for a 64-bit object if we didn't find anything. 13598 if test -z "$lt_cv_aix_libpath__CXX"; then 13599 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13600 fi 13601fi 13602rm -f core conftest.err conftest.$ac_objext \ 13603 conftest$ac_exeext conftest.$ac_ext 13604 if test -z "$lt_cv_aix_libpath__CXX"; then 13605 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13606 fi 13607 13608fi 13609 13610 aix_libpath=$lt_cv_aix_libpath__CXX 13611fi 13612 13613 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13614 13615 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 13616 else 13617 if test ia64 = "$host_cpu"; then 13618 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13619 allow_undefined_flag_CXX="-z nodefs" 13620 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" 13621 else 13622 # Determine the default libpath from the value encoded in an 13623 # empty executable. 13624 if test set = "${lt_cv_aix_libpath+set}"; then 13625 aix_libpath=$lt_cv_aix_libpath 13626else 13627 if ${lt_cv_aix_libpath__CXX+:} false; then : 13628 $as_echo_n "(cached) " >&6 13629else 13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13631/* end confdefs.h. */ 13632 13633int 13634main () 13635{ 13636 13637 ; 13638 return 0; 13639} 13640_ACEOF 13641if ac_fn_cxx_try_link "$LINENO"; then : 13642 13643 lt_aix_libpath_sed=' 13644 /Import File Strings/,/^$/ { 13645 /^0/ { 13646 s/^0 *\([^ ]*\) *$/\1/ 13647 p 13648 } 13649 }' 13650 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13651 # Check for a 64-bit object if we didn't find anything. 13652 if test -z "$lt_cv_aix_libpath__CXX"; then 13653 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13654 fi 13655fi 13656rm -f core conftest.err conftest.$ac_objext \ 13657 conftest$ac_exeext conftest.$ac_ext 13658 if test -z "$lt_cv_aix_libpath__CXX"; then 13659 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13660 fi 13661 13662fi 13663 13664 aix_libpath=$lt_cv_aix_libpath__CXX 13665fi 13666 13667 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13668 # Warning - without using the other run time loading flags, 13669 # -berok will link without error, but may produce a broken library. 13670 no_undefined_flag_CXX=' $wl-bernotok' 13671 allow_undefined_flag_CXX=' $wl-berok' 13672 if test yes = "$with_gnu_ld"; then 13673 # We only use this code for GNU lds that support --whole-archive. 13674 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13675 else 13676 # Exported symbols can be pulled into shared objects from archives 13677 whole_archive_flag_spec_CXX='$convenience' 13678 fi 13679 archive_cmds_need_lc_CXX=yes 13680 # This is similar to how AIX traditionally builds its shared 13681 # libraries. 13682 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13683 fi 13684 fi 13685 ;; 13686 13687 beos*) 13688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13689 allow_undefined_flag_CXX=unsupported 13690 # Joseph Beckenbach <[email protected]> says some releases of gcc 13691 # support --undefined. This deserves some investigation. FIXME 13692 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13693 else 13694 ld_shlibs_CXX=no 13695 fi 13696 ;; 13697 13698 chorus*) 13699 case $cc_basename in 13700 *) 13701 # FIXME: insert proper C++ library support 13702 ld_shlibs_CXX=no 13703 ;; 13704 esac 13705 ;; 13706 13707 cygwin* | mingw* | pw32* | cegcc*) 13708 case $GXX,$cc_basename in 13709 ,cl* | no,cl*) 13710 # Native MSVC 13711 # hardcode_libdir_flag_spec is actually meaningless, as there is 13712 # no search path for DLLs. 13713 hardcode_libdir_flag_spec_CXX=' ' 13714 allow_undefined_flag_CXX=unsupported 13715 always_export_symbols_CXX=yes 13716 file_list_spec_CXX='@' 13717 # Tell ltmain to make .lib files, not .a files. 13718 libext=lib 13719 # Tell ltmain to make .dll files, not .so files. 13720 shrext_cmds=.dll 13721 # FIXME: Setting linknames here is a bad hack. 13722 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13723 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13724 cp "$export_symbols" "$output_objdir/$soname.def"; 13725 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13726 else 13727 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13728 fi~ 13729 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13730 linknames=' 13731 # The linker will not automatically build a static lib if we build a DLL. 13732 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13733 enable_shared_with_static_runtimes_CXX=yes 13734 # Don't use ranlib 13735 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13736 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13737 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13738 case $lt_outputfile in 13739 *.exe|*.EXE) ;; 13740 *) 13741 lt_outputfile=$lt_outputfile.exe 13742 lt_tool_outputfile=$lt_tool_outputfile.exe 13743 ;; 13744 esac~ 13745 func_to_tool_file "$lt_outputfile"~ 13746 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13747 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13748 $RM "$lt_outputfile.manifest"; 13749 fi' 13750 ;; 13751 *) 13752 # g++ 13753 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13754 # as there is no search path for DLLs. 13755 hardcode_libdir_flag_spec_CXX='-L$libdir' 13756 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13757 allow_undefined_flag_CXX=unsupported 13758 always_export_symbols_CXX=no 13759 enable_shared_with_static_runtimes_CXX=yes 13760 13761 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13762 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' 13763 # If the export-symbols file already is a .def file, use it as 13764 # is; otherwise, prepend EXPORTS... 13765 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13766 cp $export_symbols $output_objdir/$soname.def; 13767 else 13768 echo EXPORTS > $output_objdir/$soname.def; 13769 cat $export_symbols >> $output_objdir/$soname.def; 13770 fi~ 13771 $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' 13772 else 13773 ld_shlibs_CXX=no 13774 fi 13775 ;; 13776 esac 13777 ;; 13778 darwin* | rhapsody*) 13779 13780 13781 archive_cmds_need_lc_CXX=no 13782 hardcode_direct_CXX=no 13783 hardcode_automatic_CXX=yes 13784 hardcode_shlibpath_var_CXX=unsupported 13785 if test yes = "$lt_cv_ld_force_load"; then 13786 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\"`' 13787 13788 else 13789 whole_archive_flag_spec_CXX='' 13790 fi 13791 link_all_deplibs_CXX=yes 13792 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13793 case $cc_basename in 13794 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13795 *) _lt_dar_can_shared=$GCC ;; 13796 esac 13797 if test yes = "$_lt_dar_can_shared"; then 13798 output_verbose_link_cmd=func_echo_all 13799 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" 13800 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13801 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" 13802 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" 13803 if test yes != "$lt_cv_apple_cc_single_mod"; then 13804 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" 13805 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" 13806 fi 13807 13808 else 13809 ld_shlibs_CXX=no 13810 fi 13811 13812 ;; 13813 13814 dgux*) 13815 case $cc_basename in 13816 ec++*) 13817 # FIXME: insert proper C++ library support 13818 ld_shlibs_CXX=no 13819 ;; 13820 ghcx*) 13821 # Green Hills C++ Compiler 13822 # FIXME: insert proper C++ library support 13823 ld_shlibs_CXX=no 13824 ;; 13825 *) 13826 # FIXME: insert proper C++ library support 13827 ld_shlibs_CXX=no 13828 ;; 13829 esac 13830 ;; 13831 13832 freebsd2.*) 13833 # C++ shared libraries reported to be fairly broken before 13834 # switch to ELF 13835 ld_shlibs_CXX=no 13836 ;; 13837 13838 freebsd-elf*) 13839 archive_cmds_need_lc_CXX=no 13840 ;; 13841 13842 freebsd* | dragonfly*) 13843 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13844 # conventions 13845 ld_shlibs_CXX=yes 13846 ;; 13847 13848 haiku*) 13849 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13850 link_all_deplibs_CXX=yes 13851 ;; 13852 13853 hpux9*) 13854 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13855 hardcode_libdir_separator_CXX=: 13856 export_dynamic_flag_spec_CXX='$wl-E' 13857 hardcode_direct_CXX=yes 13858 hardcode_minus_L_CXX=yes # Not in the search PATH, 13859 # but as the default 13860 # location of the library. 13861 13862 case $cc_basename in 13863 CC*) 13864 # FIXME: insert proper C++ library support 13865 ld_shlibs_CXX=no 13866 ;; 13867 aCC*) 13868 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' 13869 # Commands to make compiler produce verbose output that lists 13870 # what "hidden" libraries, object files and flags are used when 13871 # linking a shared library. 13872 # 13873 # There doesn't appear to be a way to prevent this compiler from 13874 # explicitly linking system object files so we need to strip them 13875 # from the output so that they don't get included in the library 13876 # dependencies. 13877 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"' 13878 ;; 13879 *) 13880 if test yes = "$GXX"; then 13881 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' 13882 else 13883 # FIXME: insert proper C++ library support 13884 ld_shlibs_CXX=no 13885 fi 13886 ;; 13887 esac 13888 ;; 13889 13890 hpux10*|hpux11*) 13891 if test no = "$with_gnu_ld"; then 13892 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13893 hardcode_libdir_separator_CXX=: 13894 13895 case $host_cpu in 13896 hppa*64*|ia64*) 13897 ;; 13898 *) 13899 export_dynamic_flag_spec_CXX='$wl-E' 13900 ;; 13901 esac 13902 fi 13903 case $host_cpu in 13904 hppa*64*|ia64*) 13905 hardcode_direct_CXX=no 13906 hardcode_shlibpath_var_CXX=no 13907 ;; 13908 *) 13909 hardcode_direct_CXX=yes 13910 hardcode_direct_absolute_CXX=yes 13911 hardcode_minus_L_CXX=yes # Not in the search PATH, 13912 # but as the default 13913 # location of the library. 13914 ;; 13915 esac 13916 13917 case $cc_basename in 13918 CC*) 13919 # FIXME: insert proper C++ library support 13920 ld_shlibs_CXX=no 13921 ;; 13922 aCC*) 13923 case $host_cpu in 13924 hppa*64*) 13925 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13926 ;; 13927 ia64*) 13928 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13929 ;; 13930 *) 13931 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13932 ;; 13933 esac 13934 # Commands to make compiler produce verbose output that lists 13935 # what "hidden" libraries, object files and flags are used when 13936 # linking a shared library. 13937 # 13938 # There doesn't appear to be a way to prevent this compiler from 13939 # explicitly linking system object files so we need to strip them 13940 # from the output so that they don't get included in the library 13941 # dependencies. 13942 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"' 13943 ;; 13944 *) 13945 if test yes = "$GXX"; then 13946 if test no = "$with_gnu_ld"; then 13947 case $host_cpu in 13948 hppa*64*) 13949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13950 ;; 13951 ia64*) 13952 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13953 ;; 13954 *) 13955 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' 13956 ;; 13957 esac 13958 fi 13959 else 13960 # FIXME: insert proper C++ library support 13961 ld_shlibs_CXX=no 13962 fi 13963 ;; 13964 esac 13965 ;; 13966 13967 interix[3-9]*) 13968 hardcode_direct_CXX=no 13969 hardcode_shlibpath_var_CXX=no 13970 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13971 export_dynamic_flag_spec_CXX='$wl-E' 13972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13973 # Instead, shared libraries are loaded at an image base (0x10000000 by 13974 # default) and relocated if they conflict, which is a slow very memory 13975 # consuming and fragmenting process. To avoid this, we pick a random, 13976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13977 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13978 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' 13979 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' 13980 ;; 13981 irix5* | irix6*) 13982 case $cc_basename in 13983 CC*) 13984 # SGI C++ 13985 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' 13986 13987 # Archives containing C++ object files must be created using 13988 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13989 # necessary to make sure instantiated templates are included 13990 # in the archive. 13991 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13992 ;; 13993 *) 13994 if test yes = "$GXX"; then 13995 if test no = "$with_gnu_ld"; then 13996 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' 13997 else 13998 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' 13999 fi 14000 fi 14001 link_all_deplibs_CXX=yes 14002 ;; 14003 esac 14004 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14005 hardcode_libdir_separator_CXX=: 14006 inherit_rpath_CXX=yes 14007 ;; 14008 14009 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14010 case $cc_basename in 14011 KCC*) 14012 # Kuck and Associates, Inc. (KAI) C++ Compiler 14013 14014 # KCC will only create a shared library if the output file 14015 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14016 # to its proper name (with version) after linking. 14017 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' 14018 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' 14019 # Commands to make compiler produce verbose output that lists 14020 # what "hidden" libraries, object files and flags are used when 14021 # linking a shared library. 14022 # 14023 # There doesn't appear to be a way to prevent this compiler from 14024 # explicitly linking system object files so we need to strip them 14025 # from the output so that they don't get included in the library 14026 # dependencies. 14027 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"' 14028 14029 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14030 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14031 14032 # Archives containing C++ object files must be created using 14033 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14034 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14035 ;; 14036 icpc* | ecpc* ) 14037 # Intel C++ 14038 with_gnu_ld=yes 14039 # version 8.0 and above of icpc choke on multiply defined symbols 14040 # if we add $predep_objects and $postdep_objects, however 7.1 and 14041 # earlier do not add the objects themselves. 14042 case `$CC -V 2>&1` in 14043 *"Version 7."*) 14044 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14045 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' 14046 ;; 14047 *) # Version 8.0 or newer 14048 tmp_idyn= 14049 case $host_cpu in 14050 ia64*) tmp_idyn=' -i_dynamic';; 14051 esac 14052 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14053 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' 14054 ;; 14055 esac 14056 archive_cmds_need_lc_CXX=no 14057 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14058 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14059 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14060 ;; 14061 pgCC* | pgcpp*) 14062 # Portland Group C++ compiler 14063 case `$CC -V` in 14064 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14065 prelink_cmds_CXX='tpldir=Template.dir~ 14066 rm -rf $tpldir~ 14067 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14068 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14069 old_archive_cmds_CXX='tpldir=Template.dir~ 14070 rm -rf $tpldir~ 14071 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14072 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14073 $RANLIB $oldlib' 14074 archive_cmds_CXX='tpldir=Template.dir~ 14075 rm -rf $tpldir~ 14076 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14077 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14078 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14079 rm -rf $tpldir~ 14080 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14081 $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' 14082 ;; 14083 *) # Version 6 and above use weak symbols 14084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14085 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' 14086 ;; 14087 esac 14088 14089 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14090 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14091 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' 14092 ;; 14093 cxx*) 14094 # Compaq C++ 14095 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14096 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' 14097 14098 runpath_var=LD_RUN_PATH 14099 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14100 hardcode_libdir_separator_CXX=: 14101 14102 # Commands to make compiler produce verbose output that lists 14103 # what "hidden" libraries, object files and flags are used when 14104 # linking a shared library. 14105 # 14106 # There doesn't appear to be a way to prevent this compiler from 14107 # explicitly linking system object files so we need to strip them 14108 # from the output so that they don't get included in the library 14109 # dependencies. 14110 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' 14111 ;; 14112 xl* | mpixl* | bgxl*) 14113 # IBM XL 8.0 on PPC, with GNU ld 14114 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14115 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14116 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14117 if test yes = "$supports_anon_versioning"; then 14118 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14120 echo "local: *; };" >> $output_objdir/$libname.ver~ 14121 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14122 fi 14123 ;; 14124 *) 14125 case `$CC -V 2>&1 | sed 5q` in 14126 *Sun\ C*) 14127 # Sun C++ 5.9 14128 no_undefined_flag_CXX=' -zdefs' 14129 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14130 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' 14131 hardcode_libdir_flag_spec_CXX='-R$libdir' 14132 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' 14133 compiler_needs_object_CXX=yes 14134 14135 # Not sure whether something based on 14136 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14137 # would be better. 14138 output_verbose_link_cmd='func_echo_all' 14139 14140 # Archives containing C++ object files must be created using 14141 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14142 # necessary to make sure instantiated templates are included 14143 # in the archive. 14144 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14145 ;; 14146 esac 14147 ;; 14148 esac 14149 ;; 14150 14151 lynxos*) 14152 # FIXME: insert proper C++ library support 14153 ld_shlibs_CXX=no 14154 ;; 14155 14156 m88k*) 14157 # FIXME: insert proper C++ library support 14158 ld_shlibs_CXX=no 14159 ;; 14160 14161 mvs*) 14162 case $cc_basename in 14163 cxx*) 14164 # FIXME: insert proper C++ library support 14165 ld_shlibs_CXX=no 14166 ;; 14167 *) 14168 # FIXME: insert proper C++ library support 14169 ld_shlibs_CXX=no 14170 ;; 14171 esac 14172 ;; 14173 14174 netbsd*) 14175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14176 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14177 wlarc= 14178 hardcode_libdir_flag_spec_CXX='-R$libdir' 14179 hardcode_direct_CXX=yes 14180 hardcode_shlibpath_var_CXX=no 14181 fi 14182 # Workaround some broken pre-1.5 toolchains 14183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14184 ;; 14185 14186 *nto* | *qnx*) 14187 ld_shlibs_CXX=yes 14188 ;; 14189 14190 openbsd* | bitrig*) 14191 if test -f /usr/libexec/ld.so; then 14192 hardcode_direct_CXX=yes 14193 hardcode_shlibpath_var_CXX=no 14194 hardcode_direct_absolute_CXX=yes 14195 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14196 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14198 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14199 export_dynamic_flag_spec_CXX='$wl-E' 14200 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14201 fi 14202 output_verbose_link_cmd=func_echo_all 14203 else 14204 ld_shlibs_CXX=no 14205 fi 14206 ;; 14207 14208 osf3* | osf4* | osf5*) 14209 case $cc_basename in 14210 KCC*) 14211 # Kuck and Associates, Inc. (KAI) C++ Compiler 14212 14213 # KCC will only create a shared library if the output file 14214 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14215 # to its proper name (with version) after linking. 14216 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' 14217 14218 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14219 hardcode_libdir_separator_CXX=: 14220 14221 # Archives containing C++ object files must be created using 14222 # the KAI C++ compiler. 14223 case $host in 14224 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14225 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14226 esac 14227 ;; 14228 RCC*) 14229 # Rational C++ 2.4.1 14230 # FIXME: insert proper C++ library support 14231 ld_shlibs_CXX=no 14232 ;; 14233 cxx*) 14234 case $host in 14235 osf3*) 14236 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14237 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' 14238 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14239 ;; 14240 *) 14241 allow_undefined_flag_CXX=' -expect_unresolved \*' 14242 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' 14243 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14244 echo "-hidden">> $lib.exp~ 14245 $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~ 14246 $RM $lib.exp' 14247 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14248 ;; 14249 esac 14250 14251 hardcode_libdir_separator_CXX=: 14252 14253 # Commands to make compiler produce verbose output that lists 14254 # what "hidden" libraries, object files and flags are used when 14255 # linking a shared library. 14256 # 14257 # There doesn't appear to be a way to prevent this compiler from 14258 # explicitly linking system object files so we need to strip them 14259 # from the output so that they don't get included in the library 14260 # dependencies. 14261 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"' 14262 ;; 14263 *) 14264 if test yes,no = "$GXX,$with_gnu_ld"; then 14265 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14266 case $host in 14267 osf3*) 14268 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' 14269 ;; 14270 *) 14271 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' 14272 ;; 14273 esac 14274 14275 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14276 hardcode_libdir_separator_CXX=: 14277 14278 # Commands to make compiler produce verbose output that lists 14279 # what "hidden" libraries, object files and flags are used when 14280 # linking a shared library. 14281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14282 14283 else 14284 # FIXME: insert proper C++ library support 14285 ld_shlibs_CXX=no 14286 fi 14287 ;; 14288 esac 14289 ;; 14290 14291 psos*) 14292 # FIXME: insert proper C++ library support 14293 ld_shlibs_CXX=no 14294 ;; 14295 14296 sunos4*) 14297 case $cc_basename in 14298 CC*) 14299 # Sun C++ 4.x 14300 # FIXME: insert proper C++ library support 14301 ld_shlibs_CXX=no 14302 ;; 14303 lcc*) 14304 # Lucid 14305 # FIXME: insert proper C++ library support 14306 ld_shlibs_CXX=no 14307 ;; 14308 *) 14309 # FIXME: insert proper C++ library support 14310 ld_shlibs_CXX=no 14311 ;; 14312 esac 14313 ;; 14314 14315 solaris*) 14316 case $cc_basename in 14317 CC* | sunCC*) 14318 # Sun C++ 4.2, 5.x and Centerline C++ 14319 archive_cmds_need_lc_CXX=yes 14320 no_undefined_flag_CXX=' -zdefs' 14321 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14322 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14323 $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' 14324 14325 hardcode_libdir_flag_spec_CXX='-R$libdir' 14326 hardcode_shlibpath_var_CXX=no 14327 case $host_os in 14328 solaris2.[0-5] | solaris2.[0-5].*) ;; 14329 *) 14330 # The compiler driver will combine and reorder linker options, 14331 # but understands '-z linker_flag'. 14332 # Supported since Solaris 2.6 (maybe 2.5.1?) 14333 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14334 ;; 14335 esac 14336 link_all_deplibs_CXX=yes 14337 14338 output_verbose_link_cmd='func_echo_all' 14339 14340 # Archives containing C++ object files must be created using 14341 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14342 # necessary to make sure instantiated templates are included 14343 # in the archive. 14344 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14345 ;; 14346 gcx*) 14347 # Green Hills C++ Compiler 14348 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14349 14350 # The C++ compiler must be used to create the archive. 14351 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14352 ;; 14353 *) 14354 # GNU C++ compiler with Solaris linker 14355 if test yes,no = "$GXX,$with_gnu_ld"; then 14356 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14357 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14358 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14359 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14360 $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' 14361 14362 # Commands to make compiler produce verbose output that lists 14363 # what "hidden" libraries, object files and flags are used when 14364 # linking a shared library. 14365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14366 else 14367 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14368 # platform. 14369 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14370 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14371 $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' 14372 14373 # Commands to make compiler produce verbose output that lists 14374 # what "hidden" libraries, object files and flags are used when 14375 # linking a shared library. 14376 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14377 fi 14378 14379 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14380 case $host_os in 14381 solaris2.[0-5] | solaris2.[0-5].*) ;; 14382 *) 14383 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14384 ;; 14385 esac 14386 fi 14387 ;; 14388 esac 14389 ;; 14390 14391 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14392 no_undefined_flag_CXX='$wl-z,text' 14393 archive_cmds_need_lc_CXX=no 14394 hardcode_shlibpath_var_CXX=no 14395 runpath_var='LD_RUN_PATH' 14396 14397 case $cc_basename in 14398 CC*) 14399 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14400 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14401 ;; 14402 *) 14403 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14404 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14405 ;; 14406 esac 14407 ;; 14408 14409 sysv5* | sco3.2v5* | sco5v6*) 14410 # Note: We CANNOT use -z defs as we might desire, because we do not 14411 # link with -lc, and that would cause any symbols used from libc to 14412 # always be unresolved, which means just about no library would 14413 # ever link correctly. If we're not using GNU ld we use -z text 14414 # though, which does catch some bad symbols but isn't as heavy-handed 14415 # as -z defs. 14416 no_undefined_flag_CXX='$wl-z,text' 14417 allow_undefined_flag_CXX='$wl-z,nodefs' 14418 archive_cmds_need_lc_CXX=no 14419 hardcode_shlibpath_var_CXX=no 14420 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14421 hardcode_libdir_separator_CXX=':' 14422 link_all_deplibs_CXX=yes 14423 export_dynamic_flag_spec_CXX='$wl-Bexport' 14424 runpath_var='LD_RUN_PATH' 14425 14426 case $cc_basename in 14427 CC*) 14428 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14429 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14430 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14431 '"$old_archive_cmds_CXX" 14432 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14433 '"$reload_cmds_CXX" 14434 ;; 14435 *) 14436 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14437 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14438 ;; 14439 esac 14440 ;; 14441 14442 tandem*) 14443 case $cc_basename in 14444 NCC*) 14445 # NonStop-UX NCC 3.20 14446 # FIXME: insert proper C++ library support 14447 ld_shlibs_CXX=no 14448 ;; 14449 *) 14450 # FIXME: insert proper C++ library support 14451 ld_shlibs_CXX=no 14452 ;; 14453 esac 14454 ;; 14455 14456 vxworks*) 14457 # FIXME: insert proper C++ library support 14458 ld_shlibs_CXX=no 14459 ;; 14460 14461 *) 14462 # FIXME: insert proper C++ library support 14463 ld_shlibs_CXX=no 14464 ;; 14465 esac 14466 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14468$as_echo "$ld_shlibs_CXX" >&6; } 14469 test no = "$ld_shlibs_CXX" && can_build_shared=no 14470 14471 GCC_CXX=$GXX 14472 LD_CXX=$LD 14473 14474 ## CAVEAT EMPTOR: 14475 ## There is no encapsulation within the following macros, do not change 14476 ## the running order or otherwise move them around unless you know exactly 14477 ## what you are doing... 14478 # Dependencies to place before and after the object being linked: 14479predep_objects_CXX= 14480postdep_objects_CXX= 14481predeps_CXX= 14482postdeps_CXX= 14483compiler_lib_search_path_CXX= 14484 14485cat > conftest.$ac_ext <<_LT_EOF 14486class Foo 14487{ 14488public: 14489 Foo (void) { a = 0; } 14490private: 14491 int a; 14492}; 14493_LT_EOF 14494 14495 14496_lt_libdeps_save_CFLAGS=$CFLAGS 14497case "$CC $CFLAGS " in #( 14498*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14499*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14500*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14501esac 14502 14503if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14504 (eval $ac_compile) 2>&5 14505 ac_status=$? 14506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14507 test $ac_status = 0; }; then 14508 # Parse the compiler output and extract the necessary 14509 # objects, libraries and library flags. 14510 14511 # Sentinel used to keep track of whether or not we are before 14512 # the conftest object file. 14513 pre_test_object_deps_done=no 14514 14515 for p in `eval "$output_verbose_link_cmd"`; do 14516 case $prev$p in 14517 14518 -L* | -R* | -l*) 14519 # Some compilers place space between "-{L,R}" and the path. 14520 # Remove the space. 14521 if test x-L = "$p" || 14522 test x-R = "$p"; then 14523 prev=$p 14524 continue 14525 fi 14526 14527 # Expand the sysroot to ease extracting the directories later. 14528 if test -z "$prev"; then 14529 case $p in 14530 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14531 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14532 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14533 esac 14534 fi 14535 case $p in 14536 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14537 esac 14538 if test no = "$pre_test_object_deps_done"; then 14539 case $prev in 14540 -L | -R) 14541 # Internal compiler library paths should come after those 14542 # provided the user. The postdeps already come after the 14543 # user supplied libs so there is no need to process them. 14544 if test -z "$compiler_lib_search_path_CXX"; then 14545 compiler_lib_search_path_CXX=$prev$p 14546 else 14547 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14548 fi 14549 ;; 14550 # The "-l" case would never come before the object being 14551 # linked, so don't bother handling this case. 14552 esac 14553 else 14554 if test -z "$postdeps_CXX"; then 14555 postdeps_CXX=$prev$p 14556 else 14557 postdeps_CXX="${postdeps_CXX} $prev$p" 14558 fi 14559 fi 14560 prev= 14561 ;; 14562 14563 *.lto.$objext) ;; # Ignore GCC LTO objects 14564 *.$objext) 14565 # This assumes that the test object file only shows up 14566 # once in the compiler output. 14567 if test "$p" = "conftest.$objext"; then 14568 pre_test_object_deps_done=yes 14569 continue 14570 fi 14571 14572 if test no = "$pre_test_object_deps_done"; then 14573 if test -z "$predep_objects_CXX"; then 14574 predep_objects_CXX=$p 14575 else 14576 predep_objects_CXX="$predep_objects_CXX $p" 14577 fi 14578 else 14579 if test -z "$postdep_objects_CXX"; then 14580 postdep_objects_CXX=$p 14581 else 14582 postdep_objects_CXX="$postdep_objects_CXX $p" 14583 fi 14584 fi 14585 ;; 14586 14587 *) ;; # Ignore the rest. 14588 14589 esac 14590 done 14591 14592 # Clean up. 14593 rm -f a.out a.exe 14594else 14595 echo "libtool.m4: error: problem compiling CXX test program" 14596fi 14597 14598$RM -f confest.$objext 14599CFLAGS=$_lt_libdeps_save_CFLAGS 14600 14601# PORTME: override above test on systems where it is broken 14602case $host_os in 14603interix[3-9]*) 14604 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14605 # hack all around it, let's just trust "g++" to DTRT. 14606 predep_objects_CXX= 14607 postdep_objects_CXX= 14608 postdeps_CXX= 14609 ;; 14610 14611linux*) 14612 case `$CC -V 2>&1 | sed 5q` in 14613 *Sun\ C*) 14614 # Sun C++ 5.9 14615 14616 # The more standards-conforming stlport4 library is 14617 # incompatible with the Cstd library. Avoid specifying 14618 # it if it's in CXXFLAGS. Ignore libCrun as 14619 # -library=stlport4 depends on it. 14620 case " $CXX $CXXFLAGS " in 14621 *" -library=stlport4 "*) 14622 solaris_use_stlport4=yes 14623 ;; 14624 esac 14625 14626 if test yes != "$solaris_use_stlport4"; then 14627 postdeps_CXX='-library=Cstd -library=Crun' 14628 fi 14629 ;; 14630 esac 14631 ;; 14632 14633solaris*) 14634 case $cc_basename in 14635 CC* | sunCC*) 14636 # The more standards-conforming stlport4 library is 14637 # incompatible with the Cstd library. Avoid specifying 14638 # it if it's in CXXFLAGS. Ignore libCrun as 14639 # -library=stlport4 depends on it. 14640 case " $CXX $CXXFLAGS " in 14641 *" -library=stlport4 "*) 14642 solaris_use_stlport4=yes 14643 ;; 14644 esac 14645 14646 # Adding this requires a known-good setup of shared libraries for 14647 # Sun compiler versions before 5.6, else PIC objects from an old 14648 # archive will be linked into the output, leading to subtle bugs. 14649 if test yes != "$solaris_use_stlport4"; then 14650 postdeps_CXX='-library=Cstd -library=Crun' 14651 fi 14652 ;; 14653 esac 14654 ;; 14655esac 14656 14657 14658case " $postdeps_CXX " in 14659*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14660esac 14661 compiler_lib_search_dirs_CXX= 14662if test -n "${compiler_lib_search_path_CXX}"; then 14663 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14664fi 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 lt_prog_compiler_wl_CXX= 14697lt_prog_compiler_pic_CXX= 14698lt_prog_compiler_static_CXX= 14699 14700 14701 # C++ specific cases for pic, static, wl, etc. 14702 if test yes = "$GXX"; then 14703 lt_prog_compiler_wl_CXX='-Wl,' 14704 lt_prog_compiler_static_CXX='-static' 14705 14706 case $host_os in 14707 aix*) 14708 # All AIX code is PIC. 14709 if test ia64 = "$host_cpu"; then 14710 # AIX 5 now supports IA64 processor 14711 lt_prog_compiler_static_CXX='-Bstatic' 14712 fi 14713 lt_prog_compiler_pic_CXX='-fPIC' 14714 ;; 14715 14716 amigaos*) 14717 case $host_cpu in 14718 powerpc) 14719 # see comment about AmigaOS4 .so support 14720 lt_prog_compiler_pic_CXX='-fPIC' 14721 ;; 14722 m68k) 14723 # FIXME: we need at least 68020 code to build shared libraries, but 14724 # adding the '-m68020' flag to GCC prevents building anything better, 14725 # like '-m68040'. 14726 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14727 ;; 14728 esac 14729 ;; 14730 14731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14732 # PIC is the default for these OSes. 14733 ;; 14734 mingw* | cygwin* | os2* | pw32* | cegcc*) 14735 # This hack is so that the source file can tell whether it is being 14736 # built for inclusion in a dll (and should export symbols for example). 14737 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14738 # (--disable-auto-import) libraries 14739 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14740 ;; 14741 darwin* | rhapsody*) 14742 # PIC is the default on this platform 14743 # Common symbols not allowed in MH_DYLIB files 14744 lt_prog_compiler_pic_CXX='-fno-common' 14745 ;; 14746 *djgpp*) 14747 # DJGPP does not support shared libraries at all 14748 lt_prog_compiler_pic_CXX= 14749 ;; 14750 haiku*) 14751 # PIC is the default for Haiku. 14752 # The "-static" flag exists, but is broken. 14753 lt_prog_compiler_static_CXX= 14754 ;; 14755 interix[3-9]*) 14756 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14757 # Instead, we relocate shared libraries at runtime. 14758 ;; 14759 sysv4*MP*) 14760 if test -d /usr/nec; then 14761 lt_prog_compiler_pic_CXX=-Kconform_pic 14762 fi 14763 ;; 14764 hpux*) 14765 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14766 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14767 # sets the default TLS model and affects inlining. 14768 case $host_cpu in 14769 hppa*64*) 14770 ;; 14771 *) 14772 lt_prog_compiler_pic_CXX='-fPIC' 14773 ;; 14774 esac 14775 ;; 14776 *qnx* | *nto*) 14777 # QNX uses GNU C++, but need to define -shared option too, otherwise 14778 # it will coredump. 14779 lt_prog_compiler_pic_CXX='-fPIC -shared' 14780 ;; 14781 *) 14782 lt_prog_compiler_pic_CXX='-fPIC' 14783 ;; 14784 esac 14785 else 14786 case $host_os in 14787 aix[4-9]*) 14788 # All AIX code is PIC. 14789 if test ia64 = "$host_cpu"; then 14790 # AIX 5 now supports IA64 processor 14791 lt_prog_compiler_static_CXX='-Bstatic' 14792 else 14793 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14794 fi 14795 ;; 14796 chorus*) 14797 case $cc_basename in 14798 cxch68*) 14799 # Green Hills C++ Compiler 14800 # _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" 14801 ;; 14802 esac 14803 ;; 14804 mingw* | cygwin* | os2* | pw32* | cegcc*) 14805 # This hack is so that the source file can tell whether it is being 14806 # built for inclusion in a dll (and should export symbols for example). 14807 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14808 ;; 14809 dgux*) 14810 case $cc_basename in 14811 ec++*) 14812 lt_prog_compiler_pic_CXX='-KPIC' 14813 ;; 14814 ghcx*) 14815 # Green Hills C++ Compiler 14816 lt_prog_compiler_pic_CXX='-pic' 14817 ;; 14818 *) 14819 ;; 14820 esac 14821 ;; 14822 freebsd* | dragonfly*) 14823 # FreeBSD uses GNU C++ 14824 ;; 14825 hpux9* | hpux10* | hpux11*) 14826 case $cc_basename in 14827 CC*) 14828 lt_prog_compiler_wl_CXX='-Wl,' 14829 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14830 if test ia64 != "$host_cpu"; then 14831 lt_prog_compiler_pic_CXX='+Z' 14832 fi 14833 ;; 14834 aCC*) 14835 lt_prog_compiler_wl_CXX='-Wl,' 14836 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14837 case $host_cpu in 14838 hppa*64*|ia64*) 14839 # +Z the default 14840 ;; 14841 *) 14842 lt_prog_compiler_pic_CXX='+Z' 14843 ;; 14844 esac 14845 ;; 14846 *) 14847 ;; 14848 esac 14849 ;; 14850 interix*) 14851 # This is c89, which is MS Visual C++ (no shared libs) 14852 # Anyone wants to do a port? 14853 ;; 14854 irix5* | irix6* | nonstopux*) 14855 case $cc_basename in 14856 CC*) 14857 lt_prog_compiler_wl_CXX='-Wl,' 14858 lt_prog_compiler_static_CXX='-non_shared' 14859 # CC pic flag -KPIC is the default. 14860 ;; 14861 *) 14862 ;; 14863 esac 14864 ;; 14865 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14866 case $cc_basename in 14867 KCC*) 14868 # KAI C++ Compiler 14869 lt_prog_compiler_wl_CXX='--backend -Wl,' 14870 lt_prog_compiler_pic_CXX='-fPIC' 14871 ;; 14872 ecpc* ) 14873 # old Intel C++ for x86_64, which still supported -KPIC. 14874 lt_prog_compiler_wl_CXX='-Wl,' 14875 lt_prog_compiler_pic_CXX='-KPIC' 14876 lt_prog_compiler_static_CXX='-static' 14877 ;; 14878 icpc* ) 14879 # Intel C++, used to be incompatible with GCC. 14880 # ICC 10 doesn't accept -KPIC any more. 14881 lt_prog_compiler_wl_CXX='-Wl,' 14882 lt_prog_compiler_pic_CXX='-fPIC' 14883 lt_prog_compiler_static_CXX='-static' 14884 ;; 14885 pgCC* | pgcpp*) 14886 # Portland Group C++ compiler 14887 lt_prog_compiler_wl_CXX='-Wl,' 14888 lt_prog_compiler_pic_CXX='-fpic' 14889 lt_prog_compiler_static_CXX='-Bstatic' 14890 ;; 14891 cxx*) 14892 # Compaq C++ 14893 # Make sure the PIC flag is empty. It appears that all Alpha 14894 # Linux and Compaq Tru64 Unix objects are PIC. 14895 lt_prog_compiler_pic_CXX= 14896 lt_prog_compiler_static_CXX='-non_shared' 14897 ;; 14898 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14899 # IBM XL 8.0, 9.0 on PPC and BlueGene 14900 lt_prog_compiler_wl_CXX='-Wl,' 14901 lt_prog_compiler_pic_CXX='-qpic' 14902 lt_prog_compiler_static_CXX='-qstaticlink' 14903 ;; 14904 *) 14905 case `$CC -V 2>&1 | sed 5q` in 14906 *Sun\ C*) 14907 # Sun C++ 5.9 14908 lt_prog_compiler_pic_CXX='-KPIC' 14909 lt_prog_compiler_static_CXX='-Bstatic' 14910 lt_prog_compiler_wl_CXX='-Qoption ld ' 14911 ;; 14912 esac 14913 ;; 14914 esac 14915 ;; 14916 lynxos*) 14917 ;; 14918 m88k*) 14919 ;; 14920 mvs*) 14921 case $cc_basename in 14922 cxx*) 14923 lt_prog_compiler_pic_CXX='-W c,exportall' 14924 ;; 14925 *) 14926 ;; 14927 esac 14928 ;; 14929 netbsd*) 14930 ;; 14931 *qnx* | *nto*) 14932 # QNX uses GNU C++, but need to define -shared option too, otherwise 14933 # it will coredump. 14934 lt_prog_compiler_pic_CXX='-fPIC -shared' 14935 ;; 14936 osf3* | osf4* | osf5*) 14937 case $cc_basename in 14938 KCC*) 14939 lt_prog_compiler_wl_CXX='--backend -Wl,' 14940 ;; 14941 RCC*) 14942 # Rational C++ 2.4.1 14943 lt_prog_compiler_pic_CXX='-pic' 14944 ;; 14945 cxx*) 14946 # Digital/Compaq C++ 14947 lt_prog_compiler_wl_CXX='-Wl,' 14948 # Make sure the PIC flag is empty. It appears that all Alpha 14949 # Linux and Compaq Tru64 Unix objects are PIC. 14950 lt_prog_compiler_pic_CXX= 14951 lt_prog_compiler_static_CXX='-non_shared' 14952 ;; 14953 *) 14954 ;; 14955 esac 14956 ;; 14957 psos*) 14958 ;; 14959 solaris*) 14960 case $cc_basename in 14961 CC* | sunCC*) 14962 # Sun C++ 4.2, 5.x and Centerline C++ 14963 lt_prog_compiler_pic_CXX='-KPIC' 14964 lt_prog_compiler_static_CXX='-Bstatic' 14965 lt_prog_compiler_wl_CXX='-Qoption ld ' 14966 ;; 14967 gcx*) 14968 # Green Hills C++ Compiler 14969 lt_prog_compiler_pic_CXX='-PIC' 14970 ;; 14971 *) 14972 ;; 14973 esac 14974 ;; 14975 sunos4*) 14976 case $cc_basename in 14977 CC*) 14978 # Sun C++ 4.x 14979 lt_prog_compiler_pic_CXX='-pic' 14980 lt_prog_compiler_static_CXX='-Bstatic' 14981 ;; 14982 lcc*) 14983 # Lucid 14984 lt_prog_compiler_pic_CXX='-pic' 14985 ;; 14986 *) 14987 ;; 14988 esac 14989 ;; 14990 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14991 case $cc_basename in 14992 CC*) 14993 lt_prog_compiler_wl_CXX='-Wl,' 14994 lt_prog_compiler_pic_CXX='-KPIC' 14995 lt_prog_compiler_static_CXX='-Bstatic' 14996 ;; 14997 esac 14998 ;; 14999 tandem*) 15000 case $cc_basename in 15001 NCC*) 15002 # NonStop-UX NCC 3.20 15003 lt_prog_compiler_pic_CXX='-KPIC' 15004 ;; 15005 *) 15006 ;; 15007 esac 15008 ;; 15009 vxworks*) 15010 ;; 15011 *) 15012 lt_prog_compiler_can_build_shared_CXX=no 15013 ;; 15014 esac 15015 fi 15016 15017case $host_os in 15018 # For platforms that do not support PIC, -DPIC is meaningless: 15019 *djgpp*) 15020 lt_prog_compiler_pic_CXX= 15021 ;; 15022 *) 15023 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15024 ;; 15025esac 15026 15027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15028$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15029if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15030 $as_echo_n "(cached) " >&6 15031else 15032 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15033fi 15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15035$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15036lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15037 15038# 15039# Check to make sure the PIC flag actually works. 15040# 15041if test -n "$lt_prog_compiler_pic_CXX"; then 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15043$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15044if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 lt_cv_prog_compiler_pic_works_CXX=no 15048 ac_outfile=conftest.$ac_objext 15049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15050 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15051 # Insert the option either (1) after the last *FLAGS variable, or 15052 # (2) before a word containing "conftest.", or (3) at the end. 15053 # Note that $ac_compile itself does not contain backslashes and begins 15054 # with a dollar sign (not a hyphen), so the echo should work correctly. 15055 # The option is referenced via a variable to avoid confusing sed. 15056 lt_compile=`echo "$ac_compile" | $SED \ 15057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15059 -e 's:$: $lt_compiler_flag:'` 15060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15061 (eval "$lt_compile" 2>conftest.err) 15062 ac_status=$? 15063 cat conftest.err >&5 15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15065 if (exit $ac_status) && test -s "$ac_outfile"; then 15066 # The compiler can only warn and ignore the option if not recognized 15067 # So say no if there are warnings other than the usual output. 15068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15071 lt_cv_prog_compiler_pic_works_CXX=yes 15072 fi 15073 fi 15074 $RM conftest* 15075 15076fi 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15078$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15079 15080if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15081 case $lt_prog_compiler_pic_CXX in 15082 "" | " "*) ;; 15083 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15084 esac 15085else 15086 lt_prog_compiler_pic_CXX= 15087 lt_prog_compiler_can_build_shared_CXX=no 15088fi 15089 15090fi 15091 15092 15093 15094 15095 15096# 15097# Check to make sure the static flag actually works. 15098# 15099wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15101$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15102if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15103 $as_echo_n "(cached) " >&6 15104else 15105 lt_cv_prog_compiler_static_works_CXX=no 15106 save_LDFLAGS=$LDFLAGS 15107 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15108 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15109 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15110 # The linker can only warn and ignore the option if not recognized 15111 # So say no if there are warnings 15112 if test -s conftest.err; then 15113 # Append any errors to the config.log. 15114 cat conftest.err 1>&5 15115 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15117 if diff conftest.exp conftest.er2 >/dev/null; then 15118 lt_cv_prog_compiler_static_works_CXX=yes 15119 fi 15120 else 15121 lt_cv_prog_compiler_static_works_CXX=yes 15122 fi 15123 fi 15124 $RM -r conftest* 15125 LDFLAGS=$save_LDFLAGS 15126 15127fi 15128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15129$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15130 15131if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15132 : 15133else 15134 lt_prog_compiler_static_CXX= 15135fi 15136 15137 15138 15139 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15141$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15142if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15143 $as_echo_n "(cached) " >&6 15144else 15145 lt_cv_prog_compiler_c_o_CXX=no 15146 $RM -r conftest 2>/dev/null 15147 mkdir conftest 15148 cd conftest 15149 mkdir out 15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15151 15152 lt_compiler_flag="-o out/conftest2.$ac_objext" 15153 # Insert the option either (1) after the last *FLAGS variable, or 15154 # (2) before a word containing "conftest.", or (3) at the end. 15155 # Note that $ac_compile itself does not contain backslashes and begins 15156 # with a dollar sign (not a hyphen), so the echo should work correctly. 15157 lt_compile=`echo "$ac_compile" | $SED \ 15158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15160 -e 's:$: $lt_compiler_flag:'` 15161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15162 (eval "$lt_compile" 2>out/conftest.err) 15163 ac_status=$? 15164 cat out/conftest.err >&5 15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15166 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15167 then 15168 # The compiler can only warn and ignore the option if not recognized 15169 # So say no if there are warnings 15170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15173 lt_cv_prog_compiler_c_o_CXX=yes 15174 fi 15175 fi 15176 chmod u+w . 2>&5 15177 $RM conftest* 15178 # SGI C++ compiler will create directory out/ii_files/ for 15179 # template instantiation 15180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15181 $RM out/* && rmdir out 15182 cd .. 15183 $RM -r conftest 15184 $RM conftest* 15185 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15188$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15189 15190 15191 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15194if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15195 $as_echo_n "(cached) " >&6 15196else 15197 lt_cv_prog_compiler_c_o_CXX=no 15198 $RM -r conftest 2>/dev/null 15199 mkdir conftest 15200 cd conftest 15201 mkdir out 15202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15203 15204 lt_compiler_flag="-o out/conftest2.$ac_objext" 15205 # Insert the option either (1) after the last *FLAGS variable, or 15206 # (2) before a word containing "conftest.", or (3) at the end. 15207 # Note that $ac_compile itself does not contain backslashes and begins 15208 # with a dollar sign (not a hyphen), so the echo should work correctly. 15209 lt_compile=`echo "$ac_compile" | $SED \ 15210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15212 -e 's:$: $lt_compiler_flag:'` 15213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15214 (eval "$lt_compile" 2>out/conftest.err) 15215 ac_status=$? 15216 cat out/conftest.err >&5 15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15218 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15219 then 15220 # The compiler can only warn and ignore the option if not recognized 15221 # So say no if there are warnings 15222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15225 lt_cv_prog_compiler_c_o_CXX=yes 15226 fi 15227 fi 15228 chmod u+w . 2>&5 15229 $RM conftest* 15230 # SGI C++ compiler will create directory out/ii_files/ for 15231 # template instantiation 15232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15233 $RM out/* && rmdir out 15234 cd .. 15235 $RM -r conftest 15236 $RM conftest* 15237 15238fi 15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15240$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15241 15242 15243 15244 15245hard_links=nottested 15246if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15247 # do not overwrite the value of need_locks provided by the user 15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15249$as_echo_n "checking if we can lock with hard links... " >&6; } 15250 hard_links=yes 15251 $RM conftest* 15252 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15253 touch conftest.a 15254 ln conftest.a conftest.b 2>&5 || hard_links=no 15255 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15257$as_echo "$hard_links" >&6; } 15258 if test no = "$hard_links"; then 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15260$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15261 need_locks=warn 15262 fi 15263else 15264 need_locks=no 15265fi 15266 15267 15268 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15270$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15271 15272 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15273 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15274 case $host_os in 15275 aix[4-9]*) 15276 # If we're using GNU nm, then we don't want the "-C" option. 15277 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15278 # Also, AIX nm treats weak defined symbols like other global defined 15279 # symbols, whereas GNU nm marks them as "W". 15280 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15281 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15282 else 15283 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15284 fi 15285 ;; 15286 pw32*) 15287 export_symbols_cmds_CXX=$ltdll_cmds 15288 ;; 15289 cygwin* | mingw* | cegcc*) 15290 case $cc_basename in 15291 cl*) 15292 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15293 ;; 15294 *) 15295 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' 15296 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15297 ;; 15298 esac 15299 ;; 15300 *) 15301 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15302 ;; 15303 esac 15304 15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15306$as_echo "$ld_shlibs_CXX" >&6; } 15307test no = "$ld_shlibs_CXX" && can_build_shared=no 15308 15309with_gnu_ld_CXX=$with_gnu_ld 15310 15311 15312 15313 15314 15315 15316# 15317# Do we need to explicitly link libc? 15318# 15319case "x$archive_cmds_need_lc_CXX" in 15320x|xyes) 15321 # Assume -lc should be added 15322 archive_cmds_need_lc_CXX=yes 15323 15324 if test yes,yes = "$GCC,$enable_shared"; then 15325 case $archive_cmds_CXX in 15326 *'~'*) 15327 # FIXME: we may have to deal with multi-command sequences. 15328 ;; 15329 '$CC '*) 15330 # Test whether the compiler implicitly links with -lc since on some 15331 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15332 # to ld, don't add -lc before -lgcc. 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15335if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15336 $as_echo_n "(cached) " >&6 15337else 15338 $RM conftest* 15339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15340 15341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15342 (eval $ac_compile) 2>&5 15343 ac_status=$? 15344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15345 test $ac_status = 0; } 2>conftest.err; then 15346 soname=conftest 15347 lib=conftest 15348 libobjs=conftest.$ac_objext 15349 deplibs= 15350 wl=$lt_prog_compiler_wl_CXX 15351 pic_flag=$lt_prog_compiler_pic_CXX 15352 compiler_flags=-v 15353 linker_flags=-v 15354 verstring= 15355 output_objdir=. 15356 libname=conftest 15357 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15358 allow_undefined_flag_CXX= 15359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15360 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15361 ac_status=$? 15362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15363 test $ac_status = 0; } 15364 then 15365 lt_cv_archive_cmds_need_lc_CXX=no 15366 else 15367 lt_cv_archive_cmds_need_lc_CXX=yes 15368 fi 15369 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15370 else 15371 cat conftest.err 1>&5 15372 fi 15373 $RM conftest* 15374 15375fi 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15377$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15378 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15379 ;; 15380 esac 15381 fi 15382 ;; 15383esac 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15447$as_echo_n "checking dynamic linker characteristics... " >&6; } 15448 15449library_names_spec= 15450libname_spec='lib$name' 15451soname_spec= 15452shrext_cmds=.so 15453postinstall_cmds= 15454postuninstall_cmds= 15455finish_cmds= 15456finish_eval= 15457shlibpath_var= 15458shlibpath_overrides_runpath=unknown 15459version_type=none 15460dynamic_linker="$host_os ld.so" 15461sys_lib_dlsearch_path_spec="/lib /usr/lib" 15462need_lib_prefix=unknown 15463hardcode_into_libs=no 15464 15465# when you set need_version to no, make sure it does not cause -set_version 15466# flags to be left without arguments 15467need_version=unknown 15468 15469case $host_os in 15470aix3*) 15471 version_type=linux # correct to gnu/linux during the next big refactor 15472 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15473 shlibpath_var=LIBPATH 15474 15475 # AIX 3 has no versioning support, so we append a major version to the name. 15476 soname_spec='$libname$release$shared_ext$major' 15477 ;; 15478 15479aix[4-9]*) 15480 version_type=linux # correct to gnu/linux during the next big refactor 15481 need_lib_prefix=no 15482 need_version=no 15483 hardcode_into_libs=yes 15484 if test ia64 = "$host_cpu"; then 15485 # AIX 5 supports IA64 15486 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 else 15489 # With GCC up to 2.95.x, collect2 would create an import file 15490 # for dependence libraries. The import file would start with 15491 # the line '#! .'. This would cause the generated library to 15492 # depend on '.', always an invalid library. This was fixed in 15493 # development snapshots of GCC prior to 3.0. 15494 case $host_os in 15495 aix4 | aix4.[01] | aix4.[01].*) 15496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15497 echo ' yes ' 15498 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15499 : 15500 else 15501 can_build_shared=no 15502 fi 15503 ;; 15504 esac 15505 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15506 # soname into executable. Probably we can add versioning support to 15507 # collect2, so additional links can be useful in future. 15508 if test yes = "$aix_use_runtimelinking"; then 15509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15510 # instead of lib<name>.a to let people know that these are not 15511 # typical AIX shared libraries. 15512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15513 else 15514 # We preserve .a as extension for shared libraries through AIX4.2 15515 # and later when we are not doing run time linking. 15516 library_names_spec='$libname$release.a $libname.a' 15517 soname_spec='$libname$release$shared_ext$major' 15518 fi 15519 shlibpath_var=LIBPATH 15520 fi 15521 ;; 15522 15523amigaos*) 15524 case $host_cpu in 15525 powerpc) 15526 # Since July 2007 AmigaOS4 officially supports .so libraries. 15527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15529 ;; 15530 m68k) 15531 library_names_spec='$libname.ixlibrary $libname.a' 15532 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15533 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' 15534 ;; 15535 esac 15536 ;; 15537 15538beos*) 15539 library_names_spec='$libname$shared_ext' 15540 dynamic_linker="$host_os ld.so" 15541 shlibpath_var=LIBRARY_PATH 15542 ;; 15543 15544bsdi[45]*) 15545 version_type=linux # correct to gnu/linux during the next big refactor 15546 need_version=no 15547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15548 soname_spec='$libname$release$shared_ext$major' 15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15550 shlibpath_var=LD_LIBRARY_PATH 15551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15553 # the default ld.so.conf also contains /usr/contrib/lib and 15554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15555 # libtool to hard-code these into programs 15556 ;; 15557 15558cygwin* | mingw* | pw32* | cegcc*) 15559 version_type=windows 15560 shrext_cmds=.dll 15561 need_version=no 15562 need_lib_prefix=no 15563 15564 case $GCC,$cc_basename in 15565 yes,*) 15566 # gcc 15567 library_names_spec='$libname.dll.a' 15568 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15569 postinstall_cmds='base_file=`basename \$file`~ 15570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15571 dldir=$destdir/`dirname \$dlpath`~ 15572 test -d \$dldir || mkdir -p \$dldir~ 15573 $install_prog $dir/$dlname \$dldir/$dlname~ 15574 chmod a+x \$dldir/$dlname~ 15575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15577 fi' 15578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15579 dlpath=$dir/\$dldll~ 15580 $RM \$dlpath' 15581 shlibpath_overrides_runpath=yes 15582 15583 case $host_os in 15584 cygwin*) 15585 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15586 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15587 15588 ;; 15589 mingw* | cegcc*) 15590 # MinGW DLLs use traditional 'lib' prefix 15591 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15592 ;; 15593 pw32*) 15594 # pw32 DLLs use 'pw' prefix rather than 'lib' 15595 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15596 ;; 15597 esac 15598 dynamic_linker='Win32 ld.exe' 15599 ;; 15600 15601 *,cl*) 15602 # Native MSVC 15603 libname_spec='$name' 15604 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15605 library_names_spec='$libname.dll.lib' 15606 15607 case $build_os in 15608 mingw*) 15609 sys_lib_search_path_spec= 15610 lt_save_ifs=$IFS 15611 IFS=';' 15612 for lt_path in $LIB 15613 do 15614 IFS=$lt_save_ifs 15615 # Let DOS variable expansion print the short 8.3 style file name. 15616 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15617 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15618 done 15619 IFS=$lt_save_ifs 15620 # Convert to MSYS style. 15621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15622 ;; 15623 cygwin*) 15624 # Convert to unix form, then to dos form, then back to unix form 15625 # but this time dos style (no spaces!) so that the unix form looks 15626 # like /cygdrive/c/PROGRA~1:/cygdr... 15627 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15628 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15629 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15630 ;; 15631 *) 15632 sys_lib_search_path_spec=$LIB 15633 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15634 # It is most probably a Windows format PATH. 15635 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15636 else 15637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15638 fi 15639 # FIXME: find the short name or the path components, as spaces are 15640 # common. (e.g. "Program Files" -> "PROGRA~1") 15641 ;; 15642 esac 15643 15644 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15645 postinstall_cmds='base_file=`basename \$file`~ 15646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15647 dldir=$destdir/`dirname \$dlpath`~ 15648 test -d \$dldir || mkdir -p \$dldir~ 15649 $install_prog $dir/$dlname \$dldir/$dlname' 15650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15651 dlpath=$dir/\$dldll~ 15652 $RM \$dlpath' 15653 shlibpath_overrides_runpath=yes 15654 dynamic_linker='Win32 link.exe' 15655 ;; 15656 15657 *) 15658 # Assume MSVC wrapper 15659 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15660 dynamic_linker='Win32 ld.exe' 15661 ;; 15662 esac 15663 # FIXME: first we should search . and the directory the executable is in 15664 shlibpath_var=PATH 15665 ;; 15666 15667darwin* | rhapsody*) 15668 dynamic_linker="$host_os dyld" 15669 version_type=darwin 15670 need_lib_prefix=no 15671 need_version=no 15672 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15673 soname_spec='$libname$release$major$shared_ext' 15674 shlibpath_overrides_runpath=yes 15675 shlibpath_var=DYLD_LIBRARY_PATH 15676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15677 15678 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15679 ;; 15680 15681dgux*) 15682 version_type=linux # correct to gnu/linux during the next big refactor 15683 need_lib_prefix=no 15684 need_version=no 15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15686 soname_spec='$libname$release$shared_ext$major' 15687 shlibpath_var=LD_LIBRARY_PATH 15688 ;; 15689 15690freebsd* | dragonfly*) 15691 # DragonFly does not have aout. When/if they implement a new 15692 # versioning mechanism, adjust this. 15693 if test -x /usr/bin/objformat; then 15694 objformat=`/usr/bin/objformat` 15695 else 15696 case $host_os in 15697 freebsd[23].*) objformat=aout ;; 15698 *) objformat=elf ;; 15699 esac 15700 fi 15701 version_type=freebsd-$objformat 15702 case $version_type in 15703 freebsd-elf*) 15704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15705 need_version=no 15706 need_lib_prefix=no 15707 ;; 15708 freebsd-*) 15709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15710 need_version=yes 15711 ;; 15712 esac 15713 shlibpath_var=LD_LIBRARY_PATH 15714 case $host_os in 15715 freebsd2.*) 15716 shlibpath_overrides_runpath=yes 15717 ;; 15718 freebsd3.[01]* | freebsdelf3.[01]*) 15719 shlibpath_overrides_runpath=yes 15720 hardcode_into_libs=yes 15721 ;; 15722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15724 shlibpath_overrides_runpath=no 15725 hardcode_into_libs=yes 15726 ;; 15727 *) # from 4.6 on, and DragonFly 15728 shlibpath_overrides_runpath=yes 15729 hardcode_into_libs=yes 15730 ;; 15731 esac 15732 ;; 15733 15734haiku*) 15735 version_type=linux # correct to gnu/linux during the next big refactor 15736 need_lib_prefix=no 15737 need_version=no 15738 dynamic_linker="$host_os runtime_loader" 15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15740 soname_spec='$libname$release$shared_ext$major' 15741 shlibpath_var=LIBRARY_PATH 15742 shlibpath_overrides_runpath=no 15743 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15744 hardcode_into_libs=yes 15745 ;; 15746 15747hpux9* | hpux10* | hpux11*) 15748 # Give a soname corresponding to the major version so that dld.sl refuses to 15749 # link against other versions. 15750 version_type=sunos 15751 need_lib_prefix=no 15752 need_version=no 15753 case $host_cpu in 15754 ia64*) 15755 shrext_cmds='.so' 15756 hardcode_into_libs=yes 15757 dynamic_linker="$host_os dld.so" 15758 shlibpath_var=LD_LIBRARY_PATH 15759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15761 soname_spec='$libname$release$shared_ext$major' 15762 if test 32 = "$HPUX_IA64_MODE"; then 15763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15764 else 15765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15766 fi 15767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15768 ;; 15769 hppa*64*) 15770 shrext_cmds='.sl' 15771 hardcode_into_libs=yes 15772 dynamic_linker="$host_os dld.sl" 15773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15776 soname_spec='$libname$release$shared_ext$major' 15777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15779 ;; 15780 *) 15781 shrext_cmds='.sl' 15782 dynamic_linker="$host_os dld.sl" 15783 shlibpath_var=SHLIB_PATH 15784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15786 soname_spec='$libname$release$shared_ext$major' 15787 ;; 15788 esac 15789 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15790 postinstall_cmds='chmod 555 $lib' 15791 # or fails outright, so override atomically: 15792 install_override_mode=555 15793 ;; 15794 15795interix[3-9]*) 15796 version_type=linux # correct to gnu/linux during the next big refactor 15797 need_lib_prefix=no 15798 need_version=no 15799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15800 soname_spec='$libname$release$shared_ext$major' 15801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15802 shlibpath_var=LD_LIBRARY_PATH 15803 shlibpath_overrides_runpath=no 15804 hardcode_into_libs=yes 15805 ;; 15806 15807irix5* | irix6* | nonstopux*) 15808 case $host_os in 15809 nonstopux*) version_type=nonstopux ;; 15810 *) 15811 if test yes = "$lt_cv_prog_gnu_ld"; then 15812 version_type=linux # correct to gnu/linux during the next big refactor 15813 else 15814 version_type=irix 15815 fi ;; 15816 esac 15817 need_lib_prefix=no 15818 need_version=no 15819 soname_spec='$libname$release$shared_ext$major' 15820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15821 case $host_os in 15822 irix5* | nonstopux*) 15823 libsuff= shlibsuff= 15824 ;; 15825 *) 15826 case $LD in # libtool.m4 will add one of these switches to LD 15827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15828 libsuff= shlibsuff= libmagic=32-bit;; 15829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15830 libsuff=32 shlibsuff=N32 libmagic=N32;; 15831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15832 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15833 *) libsuff= shlibsuff= libmagic=never-match;; 15834 esac 15835 ;; 15836 esac 15837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15838 shlibpath_overrides_runpath=no 15839 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15840 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15841 hardcode_into_libs=yes 15842 ;; 15843 15844# No shared lib support for Linux oldld, aout, or coff. 15845linux*oldld* | linux*aout* | linux*coff*) 15846 dynamic_linker=no 15847 ;; 15848 15849linux*android*) 15850 version_type=none # Android doesn't support versioned libraries. 15851 need_lib_prefix=no 15852 need_version=no 15853 library_names_spec='$libname$release$shared_ext' 15854 soname_spec='$libname$release$shared_ext' 15855 finish_cmds= 15856 shlibpath_var=LD_LIBRARY_PATH 15857 shlibpath_overrides_runpath=yes 15858 15859 # This implies no fast_install, which is unacceptable. 15860 # Some rework will be needed to allow for fast_install 15861 # before this can be enabled. 15862 hardcode_into_libs=yes 15863 15864 dynamic_linker='Android linker' 15865 # Don't embed -rpath directories since the linker doesn't support them. 15866 hardcode_libdir_flag_spec_CXX='-L$libdir' 15867 ;; 15868 15869# This must be glibc/ELF. 15870linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15871 version_type=linux # correct to gnu/linux during the next big refactor 15872 need_lib_prefix=no 15873 need_version=no 15874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15875 soname_spec='$libname$release$shared_ext$major' 15876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15877 shlibpath_var=LD_LIBRARY_PATH 15878 shlibpath_overrides_runpath=no 15879 15880 # Some binutils ld are patched to set DT_RUNPATH 15881 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 lt_cv_shlibpath_overrides_runpath=no 15885 save_LDFLAGS=$LDFLAGS 15886 save_libdir=$libdir 15887 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15888 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15890/* end confdefs.h. */ 15891 15892int 15893main () 15894{ 15895 15896 ; 15897 return 0; 15898} 15899_ACEOF 15900if ac_fn_cxx_try_link "$LINENO"; then : 15901 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15902 lt_cv_shlibpath_overrides_runpath=yes 15903fi 15904fi 15905rm -f core conftest.err conftest.$ac_objext \ 15906 conftest$ac_exeext conftest.$ac_ext 15907 LDFLAGS=$save_LDFLAGS 15908 libdir=$save_libdir 15909 15910fi 15911 15912 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15913 15914 # This implies no fast_install, which is unacceptable. 15915 # Some rework will be needed to allow for fast_install 15916 # before this can be enabled. 15917 hardcode_into_libs=yes 15918 15919 # Append ld.so.conf contents to the search path 15920 if test -f /etc/ld.so.conf; then 15921 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' ' '` 15922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15923 fi 15924 15925 # We used to test for /lib/ld.so.1 and disable shared libraries on 15926 # powerpc, because MkLinux only supported shared libraries with the 15927 # GNU dynamic linker. Since this was broken with cross compilers, 15928 # most powerpc-linux boxes support dynamic linking these days and 15929 # people can always --disable-shared, the test was removed, and we 15930 # assume the GNU/Linux dynamic linker is in use. 15931 dynamic_linker='GNU/Linux ld.so' 15932 ;; 15933 15934netbsd*) 15935 version_type=sunos 15936 need_lib_prefix=no 15937 need_version=no 15938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15941 dynamic_linker='NetBSD (a.out) ld.so' 15942 else 15943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15944 soname_spec='$libname$release$shared_ext$major' 15945 dynamic_linker='NetBSD ld.elf_so' 15946 fi 15947 shlibpath_var=LD_LIBRARY_PATH 15948 shlibpath_overrides_runpath=yes 15949 hardcode_into_libs=yes 15950 ;; 15951 15952newsos6) 15953 version_type=linux # correct to gnu/linux during the next big refactor 15954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15955 shlibpath_var=LD_LIBRARY_PATH 15956 shlibpath_overrides_runpath=yes 15957 ;; 15958 15959*nto* | *qnx*) 15960 version_type=qnx 15961 need_lib_prefix=no 15962 need_version=no 15963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15964 soname_spec='$libname$release$shared_ext$major' 15965 shlibpath_var=LD_LIBRARY_PATH 15966 shlibpath_overrides_runpath=no 15967 hardcode_into_libs=yes 15968 dynamic_linker='ldqnx.so' 15969 ;; 15970 15971openbsd* | bitrig*) 15972 version_type=sunos 15973 sys_lib_dlsearch_path_spec=/usr/lib 15974 need_lib_prefix=no 15975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15976 need_version=no 15977 else 15978 need_version=yes 15979 fi 15980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15982 shlibpath_var=LD_LIBRARY_PATH 15983 shlibpath_overrides_runpath=yes 15984 ;; 15985 15986os2*) 15987 libname_spec='$name' 15988 shrext_cmds=.dll 15989 need_lib_prefix=no 15990 library_names_spec='$libname$shared_ext $libname.a' 15991 dynamic_linker='OS/2 ld.exe' 15992 shlibpath_var=LIBPATH 15993 ;; 15994 15995osf3* | osf4* | osf5*) 15996 version_type=osf 15997 need_lib_prefix=no 15998 need_version=no 15999 soname_spec='$libname$release$shared_ext$major' 16000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16001 shlibpath_var=LD_LIBRARY_PATH 16002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16004 ;; 16005 16006rdos*) 16007 dynamic_linker=no 16008 ;; 16009 16010solaris*) 16011 version_type=linux # correct to gnu/linux during the next big refactor 16012 need_lib_prefix=no 16013 need_version=no 16014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16015 soname_spec='$libname$release$shared_ext$major' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 shlibpath_overrides_runpath=yes 16018 hardcode_into_libs=yes 16019 # ldd complains unless libraries are executable 16020 postinstall_cmds='chmod +x $lib' 16021 ;; 16022 16023sunos4*) 16024 version_type=sunos 16025 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16027 shlibpath_var=LD_LIBRARY_PATH 16028 shlibpath_overrides_runpath=yes 16029 if test yes = "$with_gnu_ld"; then 16030 need_lib_prefix=no 16031 fi 16032 need_version=yes 16033 ;; 16034 16035sysv4 | sysv4.3*) 16036 version_type=linux # correct to gnu/linux during the next big refactor 16037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16038 soname_spec='$libname$release$shared_ext$major' 16039 shlibpath_var=LD_LIBRARY_PATH 16040 case $host_vendor in 16041 sni) 16042 shlibpath_overrides_runpath=no 16043 need_lib_prefix=no 16044 runpath_var=LD_RUN_PATH 16045 ;; 16046 siemens) 16047 need_lib_prefix=no 16048 ;; 16049 motorola) 16050 need_lib_prefix=no 16051 need_version=no 16052 shlibpath_overrides_runpath=no 16053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16054 ;; 16055 esac 16056 ;; 16057 16058sysv4*MP*) 16059 if test -d /usr/nec; then 16060 version_type=linux # correct to gnu/linux during the next big refactor 16061 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16062 soname_spec='$libname$shared_ext.$major' 16063 shlibpath_var=LD_LIBRARY_PATH 16064 fi 16065 ;; 16066 16067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16068 version_type=freebsd-elf 16069 need_lib_prefix=no 16070 need_version=no 16071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16072 soname_spec='$libname$release$shared_ext$major' 16073 shlibpath_var=LD_LIBRARY_PATH 16074 shlibpath_overrides_runpath=yes 16075 hardcode_into_libs=yes 16076 if test yes = "$with_gnu_ld"; then 16077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16078 else 16079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16080 case $host_os in 16081 sco3.2v5*) 16082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16083 ;; 16084 esac 16085 fi 16086 sys_lib_dlsearch_path_spec='/usr/lib' 16087 ;; 16088 16089tpf*) 16090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16091 version_type=linux # correct to gnu/linux during the next big refactor 16092 need_lib_prefix=no 16093 need_version=no 16094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16095 shlibpath_var=LD_LIBRARY_PATH 16096 shlibpath_overrides_runpath=no 16097 hardcode_into_libs=yes 16098 ;; 16099 16100uts4*) 16101 version_type=linux # correct to gnu/linux during the next big refactor 16102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16103 soname_spec='$libname$release$shared_ext$major' 16104 shlibpath_var=LD_LIBRARY_PATH 16105 ;; 16106 16107*) 16108 dynamic_linker=no 16109 ;; 16110esac 16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16112$as_echo "$dynamic_linker" >&6; } 16113test no = "$dynamic_linker" && can_build_shared=no 16114 16115variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16116if test yes = "$GCC"; then 16117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16118fi 16119 16120if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16121 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16122fi 16123if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16124 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16125fi 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16165$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16166hardcode_action_CXX= 16167if test -n "$hardcode_libdir_flag_spec_CXX" || 16168 test -n "$runpath_var_CXX" || 16169 test yes = "$hardcode_automatic_CXX"; then 16170 16171 # We can hardcode non-existent directories. 16172 if test no != "$hardcode_direct_CXX" && 16173 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16174 # have to relink, otherwise we might link with an installed library 16175 # when we should be linking with a yet-to-be-installed one 16176 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16177 test no != "$hardcode_minus_L_CXX"; then 16178 # Linking always hardcodes the temporary library directory. 16179 hardcode_action_CXX=relink 16180 else 16181 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16182 hardcode_action_CXX=immediate 16183 fi 16184else 16185 # We cannot hardcode anything, or else we can only hardcode existing 16186 # directories. 16187 hardcode_action_CXX=unsupported 16188fi 16189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16190$as_echo "$hardcode_action_CXX" >&6; } 16191 16192if test relink = "$hardcode_action_CXX" || 16193 test yes = "$inherit_rpath_CXX"; then 16194 # Fast installation is not supported 16195 enable_fast_install=no 16196elif test yes = "$shlibpath_overrides_runpath" || 16197 test no = "$enable_shared"; then 16198 # Fast installation is not necessary 16199 enable_fast_install=needless 16200fi 16201 16202 16203 16204 16205 16206 16207 16208 fi # test -n "$compiler" 16209 16210 CC=$lt_save_CC 16211 CFLAGS=$lt_save_CFLAGS 16212 LDCXX=$LD 16213 LD=$lt_save_LD 16214 GCC=$lt_save_GCC 16215 with_gnu_ld=$lt_save_with_gnu_ld 16216 lt_cv_path_LDCXX=$lt_cv_path_LD 16217 lt_cv_path_LD=$lt_save_path_LD 16218 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16219 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16220fi # test yes != "$_lt_caught_CXX_error" 16221 16222ac_ext=c 16223ac_cpp='$CPP $CPPFLAGS' 16224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16226ac_compiler_gnu=$ac_cv_c_compiler_gnu 16227 16228 16229 16230# Enable support for silent build rules 16231# Check whether --enable-silent-rules was given. 16232if test "${enable_silent_rules+set}" = set; then : 16233 enableval=$enable_silent_rules; 16234fi 16235 16236case $enable_silent_rules in # ((( 16237 yes) AM_DEFAULT_VERBOSITY=0;; 16238 no) AM_DEFAULT_VERBOSITY=1;; 16239 *) AM_DEFAULT_VERBOSITY=1;; 16240esac 16241am_make=${MAKE-make} 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16243$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16244if ${am_cv_make_support_nested_variables+:} false; then : 16245 $as_echo_n "(cached) " >&6 16246else 16247 if $as_echo 'TRUE=$(BAR$(V)) 16248BAR0=false 16249BAR1=true 16250V=1 16251am__doit: 16252 @$(TRUE) 16253.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16254 am_cv_make_support_nested_variables=yes 16255else 16256 am_cv_make_support_nested_variables=no 16257fi 16258fi 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16260$as_echo "$am_cv_make_support_nested_variables" >&6; } 16261if test $am_cv_make_support_nested_variables = yes; then 16262 AM_V='$(V)' 16263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16264else 16265 AM_V=$AM_DEFAULT_VERBOSITY 16266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16267fi 16268AM_BACKSLASH='\' 16269 16270 16271tiff_libs_private= 16272 16273 16274case "${host_os}" in 16275 cygwin* | mingw32* | beos* | darwin*) 16276 ;; 16277 *) 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16279$as_echo_n "checking for sin in -lm... " >&6; } 16280if ${ac_cv_lib_m_sin+:} false; then : 16281 $as_echo_n "(cached) " >&6 16282else 16283 ac_check_lib_save_LIBS=$LIBS 16284LIBS="-lm $LIBS" 16285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16286/* end confdefs.h. */ 16287 16288/* Override any GCC internal prototype to avoid an error. 16289 Use char because int might match the return type of a GCC 16290 builtin and then its argument prototype would still apply. */ 16291#ifdef __cplusplus 16292extern "C" 16293#endif 16294char sin (); 16295int 16296main () 16297{ 16298return sin (); 16299 ; 16300 return 0; 16301} 16302_ACEOF 16303if ac_fn_c_try_link "$LINENO"; then : 16304 ac_cv_lib_m_sin=yes 16305else 16306 ac_cv_lib_m_sin=no 16307fi 16308rm -f core conftest.err conftest.$ac_objext \ 16309 conftest$ac_exeext conftest.$ac_ext 16310LIBS=$ac_check_lib_save_LIBS 16311fi 16312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16313$as_echo "$ac_cv_lib_m_sin" >&6; } 16314if test "x$ac_cv_lib_m_sin" = xyes; then : 16315 libm_lib=yes 16316else 16317 libm_lib=no 16318fi 16319 16320 if test "x$libm_lib" = "xyes" ; then 16321 LIBS="-lm $LIBS" 16322 tiff_libs_private="-lm ${tiff_libs_private}" 16323 fi 16324 ;; 16325esac 16326 16327for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16328do : 16329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16330ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16332 cat >>confdefs.h <<_ACEOF 16333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16334_ACEOF 16335 16336fi 16337 16338done 16339 16340 16341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16342$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16343if ${ac_cv_c_const+:} false; then : 16344 $as_echo_n "(cached) " >&6 16345else 16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16347/* end confdefs.h. */ 16348 16349int 16350main () 16351{ 16352 16353#ifndef __cplusplus 16354 /* Ultrix mips cc rejects this sort of thing. */ 16355 typedef int charset[2]; 16356 const charset cs = { 0, 0 }; 16357 /* SunOS 4.1.1 cc rejects this. */ 16358 char const *const *pcpcc; 16359 char **ppc; 16360 /* NEC SVR4.0.2 mips cc rejects this. */ 16361 struct point {int x, y;}; 16362 static struct point const zero = {0,0}; 16363 /* AIX XL C 1.02.0.0 rejects this. 16364 It does not let you subtract one const X* pointer from another in 16365 an arm of an if-expression whose if-part is not a constant 16366 expression */ 16367 const char *g = "string"; 16368 pcpcc = &g + (g ? g-g : 0); 16369 /* HPUX 7.0 cc rejects these. */ 16370 ++pcpcc; 16371 ppc = (char**) pcpcc; 16372 pcpcc = (char const *const *) ppc; 16373 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16374 char tx; 16375 char *t = &tx; 16376 char const *s = 0 ? (char *) 0 : (char const *) 0; 16377 16378 *t++ = 0; 16379 if (s) return 0; 16380 } 16381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16382 int x[] = {25, 17}; 16383 const int *foo = &x[0]; 16384 ++foo; 16385 } 16386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16387 typedef const int *iptr; 16388 iptr p = 0; 16389 ++p; 16390 } 16391 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16393 struct s { int j; const int *ap[3]; } bx; 16394 struct s *b = &bx; b->j = 5; 16395 } 16396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16397 const int foo = 10; 16398 if (!foo) return 0; 16399 } 16400 return !cs[0] && !zero.x; 16401#endif 16402 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_compile "$LINENO"; then : 16408 ac_cv_c_const=yes 16409else 16410 ac_cv_c_const=no 16411fi 16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16413fi 16414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16415$as_echo "$ac_cv_c_const" >&6; } 16416if test $ac_cv_c_const = no; then 16417 16418$as_echo "#define const /**/" >>confdefs.h 16419 16420fi 16421 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16423$as_echo_n "checking for inline... " >&6; } 16424if ${ac_cv_c_inline+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 ac_cv_c_inline=no 16428for ac_kw in inline __inline__ __inline; do 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430/* end confdefs.h. */ 16431#ifndef __cplusplus 16432typedef int foo_t; 16433static $ac_kw foo_t static_foo () {return 0; } 16434$ac_kw foo_t foo () {return 0; } 16435#endif 16436 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO"; then : 16439 ac_cv_c_inline=$ac_kw 16440fi 16441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16442 test "$ac_cv_c_inline" != no && break 16443done 16444 16445fi 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16447$as_echo "$ac_cv_c_inline" >&6; } 16448 16449case $ac_cv_c_inline in 16450 inline | yes) ;; 16451 *) 16452 case $ac_cv_c_inline in 16453 no) ac_val=;; 16454 *) ac_val=$ac_cv_c_inline;; 16455 esac 16456 cat >>confdefs.h <<_ACEOF 16457#ifndef __cplusplus 16458#define inline $ac_val 16459#endif 16460_ACEOF 16461 ;; 16462esac 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16465$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16466if ${ac_cv_c_bigendian+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 ac_cv_c_bigendian=unknown 16470 # See if we're dealing with a universal compiler. 16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472/* end confdefs.h. */ 16473#ifndef __APPLE_CC__ 16474 not a universal capable compiler 16475 #endif 16476 typedef int dummy; 16477 16478_ACEOF 16479if ac_fn_c_try_compile "$LINENO"; then : 16480 16481 # Check for potential -arch flags. It is not universal unless 16482 # there are at least two -arch flags with different values. 16483 ac_arch= 16484 ac_prev= 16485 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16486 if test -n "$ac_prev"; then 16487 case $ac_word in 16488 i?86 | x86_64 | ppc | ppc64) 16489 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16490 ac_arch=$ac_word 16491 else 16492 ac_cv_c_bigendian=universal 16493 break 16494 fi 16495 ;; 16496 esac 16497 ac_prev= 16498 elif test "x$ac_word" = "x-arch"; then 16499 ac_prev=arch 16500 fi 16501 done 16502fi 16503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16504 if test $ac_cv_c_bigendian = unknown; then 16505 # See if sys/param.h defines the BYTE_ORDER macro. 16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16507/* end confdefs.h. */ 16508#include <sys/types.h> 16509 #include <sys/param.h> 16510 16511int 16512main () 16513{ 16514#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16515 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16516 && LITTLE_ENDIAN) 16517 bogus endian macros 16518 #endif 16519 16520 ; 16521 return 0; 16522} 16523_ACEOF 16524if ac_fn_c_try_compile "$LINENO"; then : 16525 # It does; now see whether it defined to BIG_ENDIAN or not. 16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16527/* end confdefs.h. */ 16528#include <sys/types.h> 16529 #include <sys/param.h> 16530 16531int 16532main () 16533{ 16534#if BYTE_ORDER != BIG_ENDIAN 16535 not big endian 16536 #endif 16537 16538 ; 16539 return 0; 16540} 16541_ACEOF 16542if ac_fn_c_try_compile "$LINENO"; then : 16543 ac_cv_c_bigendian=yes 16544else 16545 ac_cv_c_bigendian=no 16546fi 16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16548fi 16549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16550 fi 16551 if test $ac_cv_c_bigendian = unknown; then 16552 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554/* end confdefs.h. */ 16555#include <limits.h> 16556 16557int 16558main () 16559{ 16560#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16561 bogus endian macros 16562 #endif 16563 16564 ; 16565 return 0; 16566} 16567_ACEOF 16568if ac_fn_c_try_compile "$LINENO"; then : 16569 # It does; now see whether it defined to _BIG_ENDIAN or not. 16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572#include <limits.h> 16573 16574int 16575main () 16576{ 16577#ifndef _BIG_ENDIAN 16578 not big endian 16579 #endif 16580 16581 ; 16582 return 0; 16583} 16584_ACEOF 16585if ac_fn_c_try_compile "$LINENO"; then : 16586 ac_cv_c_bigendian=yes 16587else 16588 ac_cv_c_bigendian=no 16589fi 16590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16591fi 16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16593 fi 16594 if test $ac_cv_c_bigendian = unknown; then 16595 # Compile a test program. 16596 if test "$cross_compiling" = yes; then : 16597 # Try to guess by grepping values from an object file. 16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16599/* end confdefs.h. */ 16600short int ascii_mm[] = 16601 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16602 short int ascii_ii[] = 16603 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16604 int use_ascii (int i) { 16605 return ascii_mm[i] + ascii_ii[i]; 16606 } 16607 short int ebcdic_ii[] = 16608 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16609 short int ebcdic_mm[] = 16610 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16611 int use_ebcdic (int i) { 16612 return ebcdic_mm[i] + ebcdic_ii[i]; 16613 } 16614 extern int foo; 16615 16616int 16617main () 16618{ 16619return use_ascii (foo) == use_ebcdic (foo); 16620 ; 16621 return 0; 16622} 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16626 ac_cv_c_bigendian=yes 16627 fi 16628 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16629 if test "$ac_cv_c_bigendian" = unknown; then 16630 ac_cv_c_bigendian=no 16631 else 16632 # finding both strings is unlikely to happen, but who knows? 16633 ac_cv_c_bigendian=unknown 16634 fi 16635 fi 16636fi 16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16638else 16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16640/* end confdefs.h. */ 16641$ac_includes_default 16642int 16643main () 16644{ 16645 16646 /* Are we little or big endian? From Harbison&Steele. */ 16647 union 16648 { 16649 long int l; 16650 char c[sizeof (long int)]; 16651 } u; 16652 u.l = 1; 16653 return u.c[sizeof (long int) - 1] == 1; 16654 16655 ; 16656 return 0; 16657} 16658_ACEOF 16659if ac_fn_c_try_run "$LINENO"; then : 16660 ac_cv_c_bigendian=no 16661else 16662 ac_cv_c_bigendian=yes 16663fi 16664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16665 conftest.$ac_objext conftest.beam conftest.$ac_ext 16666fi 16667 16668 fi 16669fi 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16671$as_echo "$ac_cv_c_bigendian" >&6; } 16672 case $ac_cv_c_bigendian in #( 16673 yes) 16674 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16675;; #( 16676 no) 16677 ;; #( 16678 universal) 16679 16680$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16681 16682 ;; #( 16683 *) 16684 as_fn_error $? "unknown endianness 16685 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16686 esac 16687 16688ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16689if test "x$ac_cv_type_off_t" = xyes; then : 16690 16691else 16692 16693cat >>confdefs.h <<_ACEOF 16694#define off_t long int 16695_ACEOF 16696 16697fi 16698 16699ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16700if test "x$ac_cv_type_size_t" = xyes; then : 16701 16702else 16703 16704cat >>confdefs.h <<_ACEOF 16705#define size_t unsigned int 16706_ACEOF 16707 16708fi 16709 16710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16711$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16712if ${ac_cv_header_time+:} false; then : 16713 $as_echo_n "(cached) " >&6 16714else 16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16716/* end confdefs.h. */ 16717#include <sys/types.h> 16718#include <sys/time.h> 16719#include <time.h> 16720 16721int 16722main () 16723{ 16724if ((struct tm *) 0) 16725return 0; 16726 ; 16727 return 0; 16728} 16729_ACEOF 16730if ac_fn_c_try_compile "$LINENO"; then : 16731 ac_cv_header_time=yes 16732else 16733 ac_cv_header_time=no 16734fi 16735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16736fi 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16738$as_echo "$ac_cv_header_time" >&6; } 16739if test $ac_cv_header_time = yes; then 16740 16741$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16742 16743fi 16744 16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16746$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16747if ${ac_cv_struct_tm+:} false; then : 16748 $as_echo_n "(cached) " >&6 16749else 16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752#include <sys/types.h> 16753#include <time.h> 16754 16755int 16756main () 16757{ 16758struct tm tm; 16759 int *p = &tm.tm_sec; 16760 return !p; 16761 ; 16762 return 0; 16763} 16764_ACEOF 16765if ac_fn_c_try_compile "$LINENO"; then : 16766 ac_cv_struct_tm=time.h 16767else 16768 ac_cv_struct_tm=sys/time.h 16769fi 16770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16771fi 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16773$as_echo "$ac_cv_struct_tm" >&6; } 16774if test $ac_cv_struct_tm = sys/time.h; then 16775 16776$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16777 16778fi 16779 16780 16781 16782# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 16783# The cast to long int works around a bug in the HP C Compiler 16784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16786# This bug is HP SR number 8606223364. 16787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 16788$as_echo_n "checking size of signed short... " >&6; } 16789if ${ac_cv_sizeof_signed_short+:} false; then : 16790 $as_echo_n "(cached) " >&6 16791else 16792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 16793 16794else 16795 if test "$ac_cv_type_signed_short" = yes; then 16796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16798as_fn_error 77 "cannot compute sizeof (signed short) 16799See \`config.log' for more details" "$LINENO" 5; } 16800 else 16801 ac_cv_sizeof_signed_short=0 16802 fi 16803fi 16804 16805fi 16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 16807$as_echo "$ac_cv_sizeof_signed_short" >&6; } 16808 16809 16810 16811cat >>confdefs.h <<_ACEOF 16812#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 16813_ACEOF 16814 16815 16816 16817# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 16818# The cast to long int works around a bug in the HP C Compiler 16819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16821# This bug is HP SR number 8606223364. 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 16823$as_echo_n "checking size of unsigned short... " >&6; } 16824if ${ac_cv_sizeof_unsigned_short+:} false; then : 16825 $as_echo_n "(cached) " >&6 16826else 16827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 16828 16829else 16830 if test "$ac_cv_type_unsigned_short" = yes; then 16831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16833as_fn_error 77 "cannot compute sizeof (unsigned short) 16834See \`config.log' for more details" "$LINENO" 5; } 16835 else 16836 ac_cv_sizeof_unsigned_short=0 16837 fi 16838fi 16839 16840fi 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 16842$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 16843 16844 16845 16846cat >>confdefs.h <<_ACEOF 16847#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 16848_ACEOF 16849 16850 16851 16852# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 16853# The cast to long int works around a bug in the HP C Compiler 16854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16856# This bug is HP SR number 8606223364. 16857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 16858$as_echo_n "checking size of signed int... " >&6; } 16859if ${ac_cv_sizeof_signed_int+:} false; then : 16860 $as_echo_n "(cached) " >&6 16861else 16862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 16863 16864else 16865 if test "$ac_cv_type_signed_int" = yes; then 16866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16868as_fn_error 77 "cannot compute sizeof (signed int) 16869See \`config.log' for more details" "$LINENO" 5; } 16870 else 16871 ac_cv_sizeof_signed_int=0 16872 fi 16873fi 16874 16875fi 16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 16877$as_echo "$ac_cv_sizeof_signed_int" >&6; } 16878 16879 16880 16881cat >>confdefs.h <<_ACEOF 16882#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 16883_ACEOF 16884 16885 16886 16887# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 16888# The cast to long int works around a bug in the HP C Compiler 16889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16891# This bug is HP SR number 8606223364. 16892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 16893$as_echo_n "checking size of unsigned int... " >&6; } 16894if ${ac_cv_sizeof_unsigned_int+:} false; then : 16895 $as_echo_n "(cached) " >&6 16896else 16897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 16898 16899else 16900 if test "$ac_cv_type_unsigned_int" = yes; then 16901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16903as_fn_error 77 "cannot compute sizeof (unsigned int) 16904See \`config.log' for more details" "$LINENO" 5; } 16905 else 16906 ac_cv_sizeof_unsigned_int=0 16907 fi 16908fi 16909 16910fi 16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 16912$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 16913 16914 16915 16916cat >>confdefs.h <<_ACEOF 16917#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 16918_ACEOF 16919 16920 16921 16922# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16923# The cast to long int works around a bug in the HP C Compiler 16924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16926# This bug is HP SR number 8606223364. 16927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16928$as_echo_n "checking size of signed long... " >&6; } 16929if ${ac_cv_sizeof_signed_long+:} false; then : 16930 $as_echo_n "(cached) " >&6 16931else 16932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16933 16934else 16935 if test "$ac_cv_type_signed_long" = yes; then 16936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16938as_fn_error 77 "cannot compute sizeof (signed long) 16939See \`config.log' for more details" "$LINENO" 5; } 16940 else 16941 ac_cv_sizeof_signed_long=0 16942 fi 16943fi 16944 16945fi 16946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16947$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16948 16949 16950 16951cat >>confdefs.h <<_ACEOF 16952#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16953_ACEOF 16954 16955 16956 16957# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16958# The cast to long int works around a bug in the HP C Compiler 16959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16961# This bug is HP SR number 8606223364. 16962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16963$as_echo_n "checking size of unsigned long... " >&6; } 16964if ${ac_cv_sizeof_unsigned_long+:} false; then : 16965 $as_echo_n "(cached) " >&6 16966else 16967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16968 16969else 16970 if test "$ac_cv_type_unsigned_long" = yes; then 16971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16973as_fn_error 77 "cannot compute sizeof (unsigned long) 16974See \`config.log' for more details" "$LINENO" 5; } 16975 else 16976 ac_cv_sizeof_unsigned_long=0 16977 fi 16978fi 16979 16980fi 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16982$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16983 16984 16985 16986cat >>confdefs.h <<_ACEOF 16987#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16988_ACEOF 16989 16990 16991 16992# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16993# If 'long long' is not supported then the value defined is zero. 16994# The cast to long int works around a bug in the HP C Compiler 16995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16997# This bug is HP SR number 8606223364. 16998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16999$as_echo_n "checking size of signed long long... " >&6; } 17000if ${ac_cv_sizeof_signed_long_long+:} false; then : 17001 $as_echo_n "(cached) " >&6 17002else 17003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 17004 17005else 17006 if test "$ac_cv_type_signed_long_long" = yes; then 17007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17009as_fn_error 77 "cannot compute sizeof (signed long long) 17010See \`config.log' for more details" "$LINENO" 5; } 17011 else 17012 ac_cv_sizeof_signed_long_long=0 17013 fi 17014fi 17015 17016fi 17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 17018$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 17019 17020 17021 17022cat >>confdefs.h <<_ACEOF 17023#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 17024_ACEOF 17025 17026 17027 17028# Obtain size of a 'unsigned long long' and define as 17029# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 17030# supported then the value defined is zero. 17031# The cast to long int works around a bug in the HP C Compiler 17032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17034# This bug is HP SR number 8606223364. 17035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 17036$as_echo_n "checking size of unsigned long long... " >&6; } 17037if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 17038 $as_echo_n "(cached) " >&6 17039else 17040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 17041 17042else 17043 if test "$ac_cv_type_unsigned_long_long" = yes; then 17044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17046as_fn_error 77 "cannot compute sizeof (unsigned long long) 17047See \`config.log' for more details" "$LINENO" 5; } 17048 else 17049 ac_cv_sizeof_unsigned_long_long=0 17050 fi 17051fi 17052 17053fi 17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 17055$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 17056 17057 17058 17059cat >>confdefs.h <<_ACEOF 17060#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 17061_ACEOF 17062 17063 17064 17065# Obtain the size of an 'unsigned char *' and define as 17066# SIZEOF_UNSIGNED_CHAR_P. Result is available in 17067# ac_cv_sizeof_unsigned_char_p. 17068# The cast to long int works around a bug in the HP C Compiler 17069# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17070# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17071# This bug is HP SR number 8606223364. 17072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 17073$as_echo_n "checking size of unsigned char *... " >&6; } 17074if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 17078 17079else 17080 if test "$ac_cv_type_unsigned_char_p" = yes; then 17081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17083as_fn_error 77 "cannot compute sizeof (unsigned char *) 17084See \`config.log' for more details" "$LINENO" 5; } 17085 else 17086 ac_cv_sizeof_unsigned_char_p=0 17087 fi 17088fi 17089 17090fi 17091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 17092$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 17093 17094 17095 17096cat >>confdefs.h <<_ACEOF 17097#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 17098_ACEOF 17099 17100 17101 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 17103$as_echo_n "checking for signed 8-bit type... " >&6; } 17104INT8_T='signed char' 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 17106$as_echo "$INT8_T" >&6; } 17107 17108cat >>confdefs.h <<_ACEOF 17109#define TIFF_INT8_T $INT8_T 17110_ACEOF 17111 17112 17113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 17114$as_echo_n "checking for unsigned 8-bit type... " >&6; } 17115UINT8_T='unsigned char' 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 17117$as_echo "$UINT8_T" >&6; } 17118 17119cat >>confdefs.h <<_ACEOF 17120#define TIFF_UINT8_T $UINT8_T 17121_ACEOF 17122 17123 17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 17125$as_echo_n "checking for signed 16-bit type... " >&6; } 17126INT16_T='signed short' 17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 17128$as_echo "$INT16_T" >&6; } 17129 17130cat >>confdefs.h <<_ACEOF 17131#define TIFF_INT16_T $INT16_T 17132_ACEOF 17133 17134 17135 17136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 17137$as_echo_n "checking for unsigned 16-bit type... " >&6; } 17138UINT16_T='unsigned short' 17139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 17140$as_echo "$UINT16_T" >&6; } 17141 17142cat >>confdefs.h <<_ACEOF 17143#define TIFF_UINT16_T $UINT16_T 17144_ACEOF 17145 17146 17147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 17148$as_echo_n "checking for signed 32-bit type... " >&6; } 17149INT32_T='none' 17150INT32_FORMAT='none' 17151if test $ac_cv_sizeof_signed_int -eq 4 17152then 17153 INT32_T='signed int' 17154 INT32_FORMAT='"%d"' 17155elif test $ac_cv_sizeof_signed_long -eq 4 17156then 17157 INT32_T='signed long' 17158 INT32_FORMAT='"%ld"' 17159fi 17160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 17161$as_echo "$INT32_T" >&6; } 17162 17163cat >>confdefs.h <<_ACEOF 17164#define TIFF_INT32_T $INT32_T 17165_ACEOF 17166 17167 17168cat >>confdefs.h <<_ACEOF 17169#define TIFF_INT32_FORMAT $INT32_FORMAT 17170_ACEOF 17171 17172 17173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 17174$as_echo_n "checking for unsigned 32-bit type... " >&6; } 17175UINT32_T='none' 17176UINT32_FORMAT='none' 17177if test $ac_cv_sizeof_unsigned_int -eq 4 17178then 17179 UINT32_T='unsigned int' 17180 UINT32_FORMAT='"%u"' 17181elif test $ac_cv_sizeof_unsigned_long -eq 4 17182then 17183 UINT32_T='unsigned long' 17184 UINT32_FORMAT='"%lu"' 17185fi 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 17187$as_echo "$UINT32_T" >&6; } 17188 17189cat >>confdefs.h <<_ACEOF 17190#define TIFF_UINT32_T $UINT32_T 17191_ACEOF 17192 17193 17194cat >>confdefs.h <<_ACEOF 17195#define TIFF_UINT32_FORMAT $UINT32_FORMAT 17196_ACEOF 17197 17198 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 17200$as_echo_n "checking for signed 64-bit type... " >&6; } 17201INT64_T='none' 17202INT64_FORMAT='none' 17203if test $ac_cv_sizeof_signed_long -eq 8 17204then 17205 INT64_T='signed long' 17206 INT64_FORMAT='"%ld"' 17207elif test $ac_cv_sizeof_signed_long_long -eq 8 17208then 17209 INT64_T='signed long long' 17210 case "${host_os}" in 17211 mingw32*) 17212 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17213 INT64_FORMAT='"%I64d"' 17214 ;; 17215 *) 17216 INT64_FORMAT='"%lld"' 17217 ;; 17218 esac 17219fi 17220 17221 17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 17223$as_echo "$INT64_T" >&6; } 17224 17225cat >>confdefs.h <<_ACEOF 17226#define TIFF_INT64_T $INT64_T 17227_ACEOF 17228 17229 17230cat >>confdefs.h <<_ACEOF 17231#define TIFF_INT64_FORMAT $INT64_FORMAT 17232_ACEOF 17233 17234 17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 17236$as_echo_n "checking for unsigned 64-bit type... " >&6; } 17237UINT64_T='none' 17238UINT64_FORMAT='none' 17239if test $ac_cv_sizeof_unsigned_long -eq 8 17240then 17241 UINT64_T='unsigned long' 17242 UINT64_FORMAT='"%lu"' 17243elif test $ac_cv_sizeof_unsigned_long_long -eq 8 17244then 17245 UINT64_T='unsigned long long' 17246 case "${host_os}" in 17247 mingw32*) 17248 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17249 UINT64_FORMAT='"%I64u"' 17250 ;; 17251 *) 17252 UINT64_FORMAT='"%llu"' 17253 ;; 17254 esac 17255fi 17256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 17257$as_echo "$UINT64_T" >&6; } 17258 17259cat >>confdefs.h <<_ACEOF 17260#define TIFF_UINT64_T $UINT64_T 17261_ACEOF 17262 17263 17264cat >>confdefs.h <<_ACEOF 17265#define TIFF_UINT64_FORMAT $UINT64_FORMAT 17266_ACEOF 17267 17268 17269# Determine TIFF equivalent of ssize_t 17270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 17271$as_echo_n "checking for signed size type... " >&6; } 17272SSIZE_T='unknown' 17273SSIZE_FORMAT='unknown' 17274if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 17275then 17276 SSIZE_T='signed long' 17277 SSIZE_FORMAT='"%ld"' 17278elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17279then 17280 SSIZE_T='signed long long' 17281 SSIZE_FORMAT='"%lld"' 17282fi 17283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17284$as_echo "$SSIZE_T" >&6; } 17285 17286cat >>confdefs.h <<_ACEOF 17287#define TIFF_SSIZE_T $SSIZE_T 17288_ACEOF 17289 17290 17291cat >>confdefs.h <<_ACEOF 17292#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17293_ACEOF 17294 17295 17296# Determine the type to use for the difference between two pointers. 17297# We will default to the POSIX ptrdiff_t if it is available, but will 17298# be prepared for the case when it is not. 17299PTRDIFF_T='unknown' 17300PTRDIFF_FORMAT='"%ld"' 17301ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17302if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17303 PTRDIFF_T=ptrdiff_t 17304fi 17305 17306if test $PTRDIFF_T = unknown 17307then 17308 PTRDIFF_T=$SSIZE_T 17309 PTRDIFF_FORMAT=$SSIZE_FORMAT 17310fi 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17312$as_echo_n "checking for pointer difference type... " >&6; } 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17314$as_echo "$PTRDIFF_T" >&6; } 17315 17316cat >>confdefs.h <<_ACEOF 17317#define TIFF_PTRDIFF_T $PTRDIFF_T 17318_ACEOF 17319 17320 17321cat >>confdefs.h <<_ACEOF 17322#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17323_ACEOF 17324 17325 17326ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17327#if HAVE_INTTYPES_H 17328# include <inttypes.h> 17329#endif 17330 17331" 17332if test "x$ac_cv_type_int8" = xyes; then : 17333 17334cat >>confdefs.h <<_ACEOF 17335#define HAVE_INT8 1 17336_ACEOF 17337 17338 17339fi 17340ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17341#if HAVE_INTTYPES_H 17342# include <inttypes.h> 17343#endif 17344 17345" 17346if test "x$ac_cv_type_int16" = xyes; then : 17347 17348cat >>confdefs.h <<_ACEOF 17349#define HAVE_INT16 1 17350_ACEOF 17351 17352 17353fi 17354ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17355#if HAVE_INTTYPES_H 17356# include <inttypes.h> 17357#endif 17358 17359" 17360if test "x$ac_cv_type_int32" = xyes; then : 17361 17362cat >>confdefs.h <<_ACEOF 17363#define HAVE_INT32 1 17364_ACEOF 17365 17366 17367fi 17368 17369 17370for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17371do : 17372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17373ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17374if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17375 cat >>confdefs.h <<_ACEOF 17376#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17377_ACEOF 17378 17379fi 17380done 17381 17382 17383ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17384if test "x$ac_cv_func_getopt" = xyes; then : 17385 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17386 17387else 17388 case " $LIBOBJS " in 17389 *" getopt.$ac_objext "* ) ;; 17390 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17391 ;; 17392esac 17393 17394fi 17395 17396 17397ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17398if test "x$ac_cv_func_strcasecmp" = xyes; then : 17399 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17400 17401else 17402 case " $LIBOBJS " in 17403 *" strcasecmp.$ac_objext "* ) ;; 17404 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17405 ;; 17406esac 17407 17408fi 17409 17410 17411ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17412if test "x$ac_cv_func_strtoul" = xyes; then : 17413 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17414 17415else 17416 case " $LIBOBJS " in 17417 *" strtoul.$ac_objext "* ) ;; 17418 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17419 ;; 17420esac 17421 17422fi 17423 17424 17425ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17426if test "x$ac_cv_func_strtoull" = xyes; then : 17427 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17428 17429else 17430 case " $LIBOBJS " in 17431 *" strtoull.$ac_objext "* ) ;; 17432 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17433 ;; 17434esac 17435 17436fi 17437 17438 17439ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17440if test "x$ac_cv_func_lfind" = xyes; then : 17441 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17442 17443else 17444 case " $LIBOBJS " in 17445 *" lfind.$ac_objext "* ) ;; 17446 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17447 ;; 17448esac 17449 17450fi 17451 17452 17453 17454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17455$as_echo_n "checking native cpu bit order... " >&6; } 17456case "$host_cpu" in 17457 i*86*|x86_64*) 17458 HOST_FILLORDER=FILLORDER_LSB2MSB 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17460$as_echo "lsb2msb" >&6; } 17461 ;; 17462 *) 17463 HOST_FILLORDER=FILLORDER_MSB2LSB 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17465$as_echo "msb2lsb" >&6; } 17466 ;; 17467esac 17468 17469cat >>confdefs.h <<_ACEOF 17470#define HOST_FILLORDER $HOST_FILLORDER 17471_ACEOF 17472 17473 17474if test "$ac_cv_c_bigendian" = yes ; then 17475 HOST_BIGENDIAN=1 17476else 17477 HOST_BIGENDIAN=0 17478fi 17479 17480cat >>confdefs.h <<_ACEOF 17481#define HOST_BIGENDIAN $HOST_BIGENDIAN 17482_ACEOF 17483 17484 17485#_POSIX_C_SOURCE=2 17486#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17487 17488HAVE_IEEEFP=1 17489 17490cat >>confdefs.h <<_ACEOF 17491#define HAVE_IEEEFP $HAVE_IEEEFP 17492_ACEOF 17493 17494 17495 17496# Check whether --enable-rpath was given. 17497if test "${enable_rpath+set}" = set; then : 17498 enableval=$enable_rpath; HAVE_RPATH=$enableval 17499else 17500 HAVE_RPATH=no 17501fi 17502 17503 if test "$HAVE_RPATH" = "yes"; then 17504 HAVE_RPATH_TRUE= 17505 HAVE_RPATH_FALSE='#' 17506else 17507 HAVE_RPATH_TRUE='#' 17508 HAVE_RPATH_FALSE= 17509fi 17510 17511 17512 17513# Check whether --enable-largefile was given. 17514if test "${enable_largefile+set}" = set; then : 17515 enableval=$enable_largefile; 17516fi 17517 17518if test "$enable_largefile" != no; then 17519 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17521$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17522if ${ac_cv_sys_largefile_CC+:} false; then : 17523 $as_echo_n "(cached) " >&6 17524else 17525 ac_cv_sys_largefile_CC=no 17526 if test "$GCC" != yes; then 17527 ac_save_CC=$CC 17528 while :; do 17529 # IRIX 6.2 and later do not support large files by default, 17530 # so use the C compiler's -n32 option if that helps. 17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17532/* end confdefs.h. */ 17533#include <sys/types.h> 17534 /* Check that off_t can represent 2**63 - 1 correctly. 17535 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17536 since some C++ compilers masquerading as C compilers 17537 incorrectly reject 9223372036854775807. */ 17538#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17540 && LARGE_OFF_T % 2147483647 == 1) 17541 ? 1 : -1]; 17542int 17543main () 17544{ 17545 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550 if ac_fn_c_try_compile "$LINENO"; then : 17551 break 17552fi 17553rm -f core conftest.err conftest.$ac_objext 17554 CC="$CC -n32" 17555 if ac_fn_c_try_compile "$LINENO"; then : 17556 ac_cv_sys_largefile_CC=' -n32'; break 17557fi 17558rm -f core conftest.err conftest.$ac_objext 17559 break 17560 done 17561 CC=$ac_save_CC 17562 rm -f conftest.$ac_ext 17563 fi 17564fi 17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17566$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17567 if test "$ac_cv_sys_largefile_CC" != no; then 17568 CC=$CC$ac_cv_sys_largefile_CC 17569 fi 17570 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17572$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17573if ${ac_cv_sys_file_offset_bits+:} false; then : 17574 $as_echo_n "(cached) " >&6 17575else 17576 while :; do 17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17578/* end confdefs.h. */ 17579#include <sys/types.h> 17580 /* Check that off_t can represent 2**63 - 1 correctly. 17581 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17582 since some C++ compilers masquerading as C compilers 17583 incorrectly reject 9223372036854775807. */ 17584#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17586 && LARGE_OFF_T % 2147483647 == 1) 17587 ? 1 : -1]; 17588int 17589main () 17590{ 17591 17592 ; 17593 return 0; 17594} 17595_ACEOF 17596if ac_fn_c_try_compile "$LINENO"; then : 17597 ac_cv_sys_file_offset_bits=no; break 17598fi 17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17601/* end confdefs.h. */ 17602#define _FILE_OFFSET_BITS 64 17603#include <sys/types.h> 17604 /* Check that off_t can represent 2**63 - 1 correctly. 17605 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17606 since some C++ compilers masquerading as C compilers 17607 incorrectly reject 9223372036854775807. */ 17608#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17610 && LARGE_OFF_T % 2147483647 == 1) 17611 ? 1 : -1]; 17612int 17613main () 17614{ 17615 17616 ; 17617 return 0; 17618} 17619_ACEOF 17620if ac_fn_c_try_compile "$LINENO"; then : 17621 ac_cv_sys_file_offset_bits=64; break 17622fi 17623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17624 ac_cv_sys_file_offset_bits=unknown 17625 break 17626done 17627fi 17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17629$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17630case $ac_cv_sys_file_offset_bits in #( 17631 no | unknown) ;; 17632 *) 17633cat >>confdefs.h <<_ACEOF 17634#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17635_ACEOF 17636;; 17637esac 17638rm -rf conftest* 17639 if test $ac_cv_sys_file_offset_bits = unknown; then 17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17641$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17642if ${ac_cv_sys_large_files+:} false; then : 17643 $as_echo_n "(cached) " >&6 17644else 17645 while :; do 17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17647/* end confdefs.h. */ 17648#include <sys/types.h> 17649 /* Check that off_t can represent 2**63 - 1 correctly. 17650 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17651 since some C++ compilers masquerading as C compilers 17652 incorrectly reject 9223372036854775807. */ 17653#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17655 && LARGE_OFF_T % 2147483647 == 1) 17656 ? 1 : -1]; 17657int 17658main () 17659{ 17660 17661 ; 17662 return 0; 17663} 17664_ACEOF 17665if ac_fn_c_try_compile "$LINENO"; then : 17666 ac_cv_sys_large_files=no; break 17667fi 17668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670/* end confdefs.h. */ 17671#define _LARGE_FILES 1 17672#include <sys/types.h> 17673 /* Check that off_t can represent 2**63 - 1 correctly. 17674 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17675 since some C++ compilers masquerading as C compilers 17676 incorrectly reject 9223372036854775807. */ 17677#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17679 && LARGE_OFF_T % 2147483647 == 1) 17680 ? 1 : -1]; 17681int 17682main () 17683{ 17684 17685 ; 17686 return 0; 17687} 17688_ACEOF 17689if ac_fn_c_try_compile "$LINENO"; then : 17690 ac_cv_sys_large_files=1; break 17691fi 17692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17693 ac_cv_sys_large_files=unknown 17694 break 17695done 17696fi 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17698$as_echo "$ac_cv_sys_large_files" >&6; } 17699case $ac_cv_sys_large_files in #( 17700 no | unknown) ;; 17701 *) 17702cat >>confdefs.h <<_ACEOF 17703#define _LARGE_FILES $ac_cv_sys_large_files 17704_ACEOF 17705;; 17706esac 17707rm -rf conftest* 17708 fi 17709 17710 17711fi 17712 17713 17714 17715LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 17716 17717 17718# Check whether --with-docdir was given. 17719if test "${with_docdir+set}" = set; then : 17720 withval=$with_docdir; 17721fi 17722 17723if test "x$with_docdir" != "x" ; then 17724 LIBTIFF_DOCDIR=$with_docdir 17725fi 17726 17727 17728 17729 17730# Check whether --enable-ccitt was given. 17731if test "${enable_ccitt+set}" = set; then : 17732 enableval=$enable_ccitt; HAVE_CCITT=$enableval 17733else 17734 HAVE_CCITT=yes 17735fi 17736 17737 17738if test "$HAVE_CCITT" = "yes" ; then 17739 17740$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 17741 17742fi 17743 17744# Check whether --enable-packbits was given. 17745if test "${enable_packbits+set}" = set; then : 17746 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 17747else 17748 HAVE_PACKBITS=yes 17749fi 17750 17751 17752if test "$HAVE_PACKBITS" = "yes" ; then 17753 17754$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 17755 17756fi 17757 17758# Check whether --enable-lzw was given. 17759if test "${enable_lzw+set}" = set; then : 17760 enableval=$enable_lzw; HAVE_LZW=$enableval 17761else 17762 HAVE_LZW=yes 17763fi 17764 17765 17766if test "$HAVE_LZW" = "yes" ; then 17767 17768$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 17769 17770fi 17771 17772# Check whether --enable-thunder was given. 17773if test "${enable_thunder+set}" = set; then : 17774 enableval=$enable_thunder; HAVE_THUNDER=$enableval 17775else 17776 HAVE_THUNDER=yes 17777fi 17778 17779 17780if test "$HAVE_THUNDER" = "yes" ; then 17781 17782$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 17783 17784fi 17785 17786HAVE_NEXT=yes 17787 17788# Check whether --enable-next was given. 17789if test "${enable_next+set}" = set; then : 17790 enableval=$enable_next; HAVE_NEXT=$enableval 17791else 17792 HAVE_NEXT=yes 17793fi 17794 17795 17796if test "$HAVE_NEXT" = "yes" ; then 17797 17798$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 17799 17800fi 17801 17802# Check whether --enable-logluv was given. 17803if test "${enable_logluv+set}" = set; then : 17804 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 17805else 17806 HAVE_LOGLUV=yes 17807fi 17808 17809 17810if test "$HAVE_LOGLUV" = "yes" ; then 17811 17812$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 17813 17814fi 17815 17816 17817# Check whether --enable-mdi was given. 17818if test "${enable_mdi+set}" = set; then : 17819 enableval=$enable_mdi; HAVE_MDI=$enableval 17820else 17821 HAVE_MDI=yes 17822fi 17823 17824 17825if test "$HAVE_MDI" = "yes" ; then 17826 17827$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 17828 17829fi 17830 17831 17832HAVE_ZLIB=no 17833 17834# Check whether --enable-zlib was given. 17835if test "${enable_zlib+set}" = set; then : 17836 enableval=$enable_zlib; 17837fi 17838 17839 17840# Check whether --with-zlib-include-dir was given. 17841if test "${with_zlib_include_dir+set}" = set; then : 17842 withval=$with_zlib_include_dir; 17843fi 17844 17845 17846# Check whether --with-zlib-lib-dir was given. 17847if test "${with_zlib_lib_dir+set}" = set; then : 17848 withval=$with_zlib_lib_dir; 17849fi 17850 17851 17852if test "x$enable_zlib" != "xno" ; then 17853 17854 if test "x$with_zlib_lib_dir" != "x" ; then 17855 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 17856 fi 17857 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 17859$as_echo_n "checking for inflateEnd in -lz... " >&6; } 17860if ${ac_cv_lib_z_inflateEnd+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 ac_check_lib_save_LIBS=$LIBS 17864LIBS="-lz $LIBS" 17865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17866/* end confdefs.h. */ 17867 17868/* Override any GCC internal prototype to avoid an error. 17869 Use char because int might match the return type of a GCC 17870 builtin and then its argument prototype would still apply. */ 17871#ifdef __cplusplus 17872extern "C" 17873#endif 17874char inflateEnd (); 17875int 17876main () 17877{ 17878return inflateEnd (); 17879 ; 17880 return 0; 17881} 17882_ACEOF 17883if ac_fn_c_try_link "$LINENO"; then : 17884 ac_cv_lib_z_inflateEnd=yes 17885else 17886 ac_cv_lib_z_inflateEnd=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext \ 17889 conftest$ac_exeext conftest.$ac_ext 17890LIBS=$ac_check_lib_save_LIBS 17891fi 17892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 17893$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 17894if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 17895 zlib_lib=yes 17896else 17897 zlib_lib=no 17898fi 17899 17900 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 17901 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 17902 fi 17903 17904 if test "x$with_zlib_include_dir" != "x" ; then 17905 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 17906 fi 17907 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17908if test "x$ac_cv_header_zlib_h" = xyes; then : 17909 zlib_h=yes 17910else 17911 zlib_h=no 17912fi 17913 17914 17915 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 17916 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 17917 fi 17918 17919 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 17920 HAVE_ZLIB=yes 17921 fi 17922 17923fi 17924 17925if test "$HAVE_ZLIB" = "yes" ; then 17926 17927$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 17928 17929 LIBS="-lz $LIBS" 17930 tiff_libs_private="-lz ${tiff_libs_private}" 17931 17932 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 17933 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 17934 fi 17935 17936fi 17937 17938 17939# Check whether --enable-pixarlog was given. 17940if test "${enable_pixarlog+set}" = set; then : 17941 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 17942else 17943 HAVE_PIXARLOG=yes 17944fi 17945 17946 17947if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17948 17949$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17950 17951else 17952 HAVE_PIXARLOG=no 17953fi 17954 17955 17956HAVE_JPEG=no 17957 17958# Check whether --enable-jpeg was given. 17959if test "${enable_jpeg+set}" = set; then : 17960 enableval=$enable_jpeg; 17961fi 17962 17963 17964# Check whether --with-jpeg-include-dir was given. 17965if test "${with_jpeg_include_dir+set}" = set; then : 17966 withval=$with_jpeg_include_dir; 17967fi 17968 17969 17970# Check whether --with-jpeg-lib-dir was given. 17971if test "${with_jpeg_lib_dir+set}" = set; then : 17972 withval=$with_jpeg_lib_dir; 17973fi 17974 17975 17976if test "x$enable_jpeg" != "xno" ; then 17977 17978 if test "x$with_jpeg_lib_dir" != "x" ; then 17979 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17980 17981 fi 17982 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17984$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17985if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 17986 $as_echo_n "(cached) " >&6 17987else 17988 ac_check_lib_save_LIBS=$LIBS 17989LIBS="-ljpeg $LIBS" 17990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17991/* end confdefs.h. */ 17992 17993/* Override any GCC internal prototype to avoid an error. 17994 Use char because int might match the return type of a GCC 17995 builtin and then its argument prototype would still apply. */ 17996#ifdef __cplusplus 17997extern "C" 17998#endif 17999char jpeg_read_scanlines (); 18000int 18001main () 18002{ 18003return jpeg_read_scanlines (); 18004 ; 18005 return 0; 18006} 18007_ACEOF 18008if ac_fn_c_try_link "$LINENO"; then : 18009 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18010else 18011 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18012fi 18013rm -f core conftest.err conftest.$ac_objext \ 18014 conftest$ac_exeext conftest.$ac_ext 18015LIBS=$ac_check_lib_save_LIBS 18016fi 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18018$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18019if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18020 jpeg_lib=yes 18021else 18022 jpeg_lib=no 18023fi 18024 18025 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18026 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18027 fi 18028 18029 if test "x$with_jpeg_include_dir" != "x" ; then 18030 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18031 fi 18032 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18033if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18034 jpeg_h=yes 18035else 18036 jpeg_h=no 18037fi 18038 18039 18040 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18041 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18042 fi 18043 18044 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18045 HAVE_JPEG=yes 18046 fi 18047 18048fi 18049 18050if test "$HAVE_JPEG" = "yes" ; then 18051 18052$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18053 18054 LIBS="-ljpeg $LIBS" 18055 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18056 18057 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18058 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18059 fi 18060 18061fi 18062 18063 18064# Check whether --enable-old-jpeg was given. 18065if test "${enable_old_jpeg+set}" = set; then : 18066 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18067else 18068 HAVE_OJPEG=yes 18069fi 18070 18071 18072if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18073 18074$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18075 18076else 18077 HAVE_OJPEG=no 18078fi 18079 18080 18081HAVE_JBIG=no 18082 18083# Check whether --enable-jbig was given. 18084if test "${enable_jbig+set}" = set; then : 18085 enableval=$enable_jbig; 18086fi 18087 18088 18089# Check whether --with-jbig-include-dir was given. 18090if test "${with_jbig_include_dir+set}" = set; then : 18091 withval=$with_jbig_include_dir; 18092fi 18093 18094 18095# Check whether --with-jbig-lib-dir was given. 18096if test "${with_jbig_lib_dir+set}" = set; then : 18097 withval=$with_jbig_lib_dir; 18098fi 18099 18100 18101if test "x$enable_jbig" != "xno" ; then 18102 18103 if test "x$with_jbig_lib_dir" != "x" ; then 18104 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18105 18106 fi 18107 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18109$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18110if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18111 $as_echo_n "(cached) " >&6 18112else 18113 ac_check_lib_save_LIBS=$LIBS 18114LIBS="-ljbig $LIBS" 18115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18116/* end confdefs.h. */ 18117 18118/* Override any GCC internal prototype to avoid an error. 18119 Use char because int might match the return type of a GCC 18120 builtin and then its argument prototype would still apply. */ 18121#ifdef __cplusplus 18122extern "C" 18123#endif 18124char jbg_dec_init (); 18125int 18126main () 18127{ 18128return jbg_dec_init (); 18129 ; 18130 return 0; 18131} 18132_ACEOF 18133if ac_fn_c_try_link "$LINENO"; then : 18134 ac_cv_lib_jbig_jbg_dec_init=yes 18135else 18136 ac_cv_lib_jbig_jbg_dec_init=no 18137fi 18138rm -f core conftest.err conftest.$ac_objext \ 18139 conftest$ac_exeext conftest.$ac_ext 18140LIBS=$ac_check_lib_save_LIBS 18141fi 18142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18143$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18144if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18145 jbig_lib=yes 18146else 18147 jbig_lib=no 18148fi 18149 18150 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18151 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18152 fi 18153 18154 if test "x$with_jbig_include_dir" != "x" ; then 18155 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18156 fi 18157 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18158if test "x$ac_cv_header_jbig_h" = xyes; then : 18159 jbig_h=yes 18160else 18161 jbig_h=no 18162fi 18163 18164 18165 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18166 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18167 fi 18168 18169 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18170 HAVE_JBIG=yes 18171 fi 18172 18173fi 18174 18175if test "$HAVE_JBIG" = "yes" ; then 18176 18177$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 18178 18179 LIBS="-ljbig $LIBS" 18180 tiff_libs_private="-ljbig ${tiff_libs_private}" 18181 18182 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 18183 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 18184 fi 18185 18186 # Older versions of jbigkit lack jbg_newlen 18187 for ac_func in jbg_newlen 18188do : 18189 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 18190if test "x$ac_cv_func_jbg_newlen" = xyes; then : 18191 cat >>confdefs.h <<_ACEOF 18192#define HAVE_JBG_NEWLEN 1 18193_ACEOF 18194 18195fi 18196done 18197 18198 18199fi 18200 18201 18202HAVE_LZMA=no 18203 18204# Check whether --enable-lzma was given. 18205if test "${enable_lzma+set}" = set; then : 18206 enableval=$enable_lzma; 18207fi 18208 18209 18210# Check whether --with-lzma-include-dir was given. 18211if test "${with_lzma_include_dir+set}" = set; then : 18212 withval=$with_lzma_include_dir; 18213fi 18214 18215 18216# Check whether --with-lzma-lib-dir was given. 18217if test "${with_lzma_lib_dir+set}" = set; then : 18218 withval=$with_lzma_lib_dir; 18219fi 18220 18221 18222if test "x$enable_lzma" != "xno" ; then 18223 18224 if test "x$with_lzma_lib_dir" != "x" ; then 18225 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 18226 fi 18227 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 18229$as_echo_n "checking for lzma_code in -llzma... " >&6; } 18230if ${ac_cv_lib_lzma_lzma_code+:} false; then : 18231 $as_echo_n "(cached) " >&6 18232else 18233 ac_check_lib_save_LIBS=$LIBS 18234LIBS="-llzma $LIBS" 18235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18236/* end confdefs.h. */ 18237 18238/* Override any GCC internal prototype to avoid an error. 18239 Use char because int might match the return type of a GCC 18240 builtin and then its argument prototype would still apply. */ 18241#ifdef __cplusplus 18242extern "C" 18243#endif 18244char lzma_code (); 18245int 18246main () 18247{ 18248return lzma_code (); 18249 ; 18250 return 0; 18251} 18252_ACEOF 18253if ac_fn_c_try_link "$LINENO"; then : 18254 ac_cv_lib_lzma_lzma_code=yes 18255else 18256 ac_cv_lib_lzma_lzma_code=no 18257fi 18258rm -f core conftest.err conftest.$ac_objext \ 18259 conftest$ac_exeext conftest.$ac_ext 18260LIBS=$ac_check_lib_save_LIBS 18261fi 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 18263$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 18264if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 18265 lzma_lib=yes 18266else 18267 lzma_lib=no 18268fi 18269 18270 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 18271 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 18272 fi 18273 18274 if test "x$with_lzma_include_dir" != "x" ; then 18275 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 18276 fi 18277 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18278if test "x$ac_cv_header_lzma_h" = xyes; then : 18279 lzma_h=yes 18280else 18281 lzma_h=no 18282fi 18283 18284 18285 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18286 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18287 fi 18288 18289 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18290 HAVE_LZMA=yes 18291 fi 18292 18293fi 18294 18295if test "$HAVE_LZMA" = "yes" ; then 18296 18297$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18298 18299 LIBS="-llzma $LIBS" 18300 tiff_libs_private="-llzma ${tiff_libs_private}" 18301 18302 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18303 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18304 fi 18305 18306fi 18307 18308 18309HAVE_JPEG12=no 18310 18311# Check whether --enable-jpeg12 was given. 18312if test "${enable_jpeg12+set}" = set; then : 18313 enableval=$enable_jpeg12; 18314fi 18315 18316 18317# Check whether --with-jpeg12-include-dir was given. 18318if test "${with_jpeg12_include_dir+set}" = set; then : 18319 withval=$with_jpeg12_include_dir; 18320fi 18321 18322 18323# Check whether --with-jpeg12-lib was given. 18324if test "${with_jpeg12_lib+set}" = set; then : 18325 withval=$with_jpeg12_lib; 18326fi 18327 18328 18329if test "x$enable_jpeg12" == "xyes" ; then 18330 18331 if test "x$with_jpeg12_lib" != "x" ; then 18332 LIBS="$with_jpeg12_lib $LIBS" 18333 fi 18334 18335 HAVE_JPEG12=yes 18336 18337 18338$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18339 18340 if test "x$with_jpeg12_include_dir" != "x" ; then 18341 18342cat >>confdefs.h <<_ACEOF 18343#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18344_ACEOF 18345 18346 fi 18347fi 18348 18349 18350 18351# Check whether --enable-cxx was given. 18352if test "${enable_cxx+set}" = set; then : 18353 enableval=$enable_cxx; HAVE_CXX=$enableval 18354else 18355 HAVE_CXX=yes 18356fi 18357 18358 18359if test "$HAVE_CXX" = "yes" ; then 18360 18361$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18362 18363else 18364 HAVE_CXX=no 18365fi 18366 18367 if test "$HAVE_CXX" = "yes"; then 18368 HAVE_CXX_TRUE= 18369 HAVE_CXX_FALSE='#' 18370else 18371 HAVE_CXX_TRUE='#' 18372 HAVE_CXX_FALSE= 18373fi 18374 18375 18376 18377HAVE_OPENGL=no 18378 18379 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18381$as_echo_n "checking for X... " >&6; } 18382 18383 18384# Check whether --with-x was given. 18385if test "${with_x+set}" = set; then : 18386 withval=$with_x; 18387fi 18388 18389# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18390if test "x$with_x" = xno; then 18391 # The user explicitly disabled X. 18392 have_x=disabled 18393else 18394 case $x_includes,$x_libraries in #( 18395 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18396 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18397 $as_echo_n "(cached) " >&6 18398else 18399 # One or both of the vars are not set, and there is no cached value. 18400ac_x_includes=no ac_x_libraries=no 18401rm -f -r conftest.dir 18402if mkdir conftest.dir; then 18403 cd conftest.dir 18404 cat >Imakefile <<'_ACEOF' 18405incroot: 18406 @echo incroot='${INCROOT}' 18407usrlibdir: 18408 @echo usrlibdir='${USRLIBDIR}' 18409libdir: 18410 @echo libdir='${LIBDIR}' 18411_ACEOF 18412 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18413 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18414 for ac_var in incroot usrlibdir libdir; do 18415 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18416 done 18417 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18418 for ac_extension in a so sl dylib la dll; do 18419 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18420 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18421 ac_im_usrlibdir=$ac_im_libdir; break 18422 fi 18423 done 18424 # Screen out bogus values from the imake configuration. They are 18425 # bogus both because they are the default anyway, and because 18426 # using them would break gcc on systems where it needs fixed includes. 18427 case $ac_im_incroot in 18428 /usr/include) ac_x_includes= ;; 18429 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18430 esac 18431 case $ac_im_usrlibdir in 18432 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18433 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18434 esac 18435 fi 18436 cd .. 18437 rm -f -r conftest.dir 18438fi 18439 18440# Standard set of common directories for X headers. 18441# Check X11 before X11Rn because it is often a symlink to the current release. 18442ac_x_header_dirs=' 18443/usr/X11/include 18444/usr/X11R7/include 18445/usr/X11R6/include 18446/usr/X11R5/include 18447/usr/X11R4/include 18448 18449/usr/include/X11 18450/usr/include/X11R7 18451/usr/include/X11R6 18452/usr/include/X11R5 18453/usr/include/X11R4 18454 18455/usr/local/X11/include 18456/usr/local/X11R7/include 18457/usr/local/X11R6/include 18458/usr/local/X11R5/include 18459/usr/local/X11R4/include 18460 18461/usr/local/include/X11 18462/usr/local/include/X11R7 18463/usr/local/include/X11R6 18464/usr/local/include/X11R5 18465/usr/local/include/X11R4 18466 18467/usr/X386/include 18468/usr/x386/include 18469/usr/XFree86/include/X11 18470 18471/usr/include 18472/usr/local/include 18473/usr/unsupported/include 18474/usr/athena/include 18475/usr/local/x11r5/include 18476/usr/lpp/Xamples/include 18477 18478/usr/openwin/include 18479/usr/openwin/share/include' 18480 18481if test "$ac_x_includes" = no; then 18482 # Guess where to find include files, by looking for Xlib.h. 18483 # First, try using that file with no special directory specified. 18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18485/* end confdefs.h. */ 18486#include <X11/Xlib.h> 18487_ACEOF 18488if ac_fn_c_try_cpp "$LINENO"; then : 18489 # We can compile using X headers with no special include directory. 18490ac_x_includes= 18491else 18492 for ac_dir in $ac_x_header_dirs; do 18493 if test -r "$ac_dir/X11/Xlib.h"; then 18494 ac_x_includes=$ac_dir 18495 break 18496 fi 18497done 18498fi 18499rm -f conftest.err conftest.i conftest.$ac_ext 18500fi # $ac_x_includes = no 18501 18502if test "$ac_x_libraries" = no; then 18503 # Check for the libraries. 18504 # See if we find them without any special options. 18505 # Don't add to $LIBS permanently. 18506 ac_save_LIBS=$LIBS 18507 LIBS="-lX11 $LIBS" 18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18509/* end confdefs.h. */ 18510#include <X11/Xlib.h> 18511int 18512main () 18513{ 18514XrmInitialize () 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519if ac_fn_c_try_link "$LINENO"; then : 18520 LIBS=$ac_save_LIBS 18521# We can link X programs with no special library path. 18522ac_x_libraries= 18523else 18524 LIBS=$ac_save_LIBS 18525for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18526do 18527 # Don't even attempt the hair of trying to link an X program! 18528 for ac_extension in a so sl dylib la dll; do 18529 if test -r "$ac_dir/libX11.$ac_extension"; then 18530 ac_x_libraries=$ac_dir 18531 break 2 18532 fi 18533 done 18534done 18535fi 18536rm -f core conftest.err conftest.$ac_objext \ 18537 conftest$ac_exeext conftest.$ac_ext 18538fi # $ac_x_libraries = no 18539 18540case $ac_x_includes,$ac_x_libraries in #( 18541 no,* | *,no | *\'*) 18542 # Didn't find X, or a directory has "'" in its name. 18543 ac_cv_have_x="have_x=no";; #( 18544 *) 18545 # Record where we found X for the cache. 18546 ac_cv_have_x="have_x=yes\ 18547 ac_x_includes='$ac_x_includes'\ 18548 ac_x_libraries='$ac_x_libraries'" 18549esac 18550fi 18551;; #( 18552 *) have_x=yes;; 18553 esac 18554 eval "$ac_cv_have_x" 18555fi # $with_x != no 18556 18557if test "$have_x" != yes; then 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18559$as_echo "$have_x" >&6; } 18560 no_x=yes 18561else 18562 # If each of the values was on the command line, it overrides each guess. 18563 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18564 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18565 # Update the cache value to reflect the command line values. 18566 ac_cv_have_x="have_x=yes\ 18567 ac_x_includes='$x_includes'\ 18568 ac_x_libraries='$x_libraries'" 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18570$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18571fi 18572 18573if test "$no_x" = yes; then 18574 # Not all programs may use this symbol, but it does not hurt to define it. 18575 18576$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18577 18578 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18579else 18580 if test -n "$x_includes"; then 18581 X_CFLAGS="$X_CFLAGS -I$x_includes" 18582 fi 18583 18584 # It would also be nice to do this for all -L options, not just this one. 18585 if test -n "$x_libraries"; then 18586 X_LIBS="$X_LIBS -L$x_libraries" 18587 # For Solaris; some versions of Sun CC require a space after -R and 18588 # others require no space. Words are not sufficient . . . . 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18590$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18591 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18592 ac_xsave_c_werror_flag=$ac_c_werror_flag 18593 ac_c_werror_flag=yes 18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18595/* end confdefs.h. */ 18596 18597int 18598main () 18599{ 18600 18601 ; 18602 return 0; 18603} 18604_ACEOF 18605if ac_fn_c_try_link "$LINENO"; then : 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18607$as_echo "no" >&6; } 18608 X_LIBS="$X_LIBS -R$x_libraries" 18609else 18610 LIBS="$ac_xsave_LIBS -R $x_libraries" 18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18612/* end confdefs.h. */ 18613 18614int 18615main () 18616{ 18617 18618 ; 18619 return 0; 18620} 18621_ACEOF 18622if ac_fn_c_try_link "$LINENO"; then : 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18624$as_echo "yes" >&6; } 18625 X_LIBS="$X_LIBS -R $x_libraries" 18626else 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18628$as_echo "neither works" >&6; } 18629fi 18630rm -f core conftest.err conftest.$ac_objext \ 18631 conftest$ac_exeext conftest.$ac_ext 18632fi 18633rm -f core conftest.err conftest.$ac_objext \ 18634 conftest$ac_exeext conftest.$ac_ext 18635 ac_c_werror_flag=$ac_xsave_c_werror_flag 18636 LIBS=$ac_xsave_LIBS 18637 fi 18638 18639 # Check for system-dependent libraries X programs must link with. 18640 # Do this before checking for the system-independent R6 libraries 18641 # (-lICE), since we may need -lsocket or whatever for X linking. 18642 18643 if test "$ISC" = yes; then 18644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18645 else 18646 # Martyn Johnson says this is needed for Ultrix, if the X 18647 # libraries were built with DECnet support. And Karl Berry says 18648 # the Alpha needs dnet_stub (dnet does not exist). 18649 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18650 cat 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 XOpenDisplay (); 18660int 18661main () 18662{ 18663return XOpenDisplay (); 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668if ac_fn_c_try_link "$LINENO"; then : 18669 18670else 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18672$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18673if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18674 $as_echo_n "(cached) " >&6 18675else 18676 ac_check_lib_save_LIBS=$LIBS 18677LIBS="-ldnet $LIBS" 18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681/* Override any GCC internal prototype to avoid an error. 18682 Use char because int might match the return type of a GCC 18683 builtin and then its argument prototype would still apply. */ 18684#ifdef __cplusplus 18685extern "C" 18686#endif 18687char dnet_ntoa (); 18688int 18689main () 18690{ 18691return dnet_ntoa (); 18692 ; 18693 return 0; 18694} 18695_ACEOF 18696if ac_fn_c_try_link "$LINENO"; then : 18697 ac_cv_lib_dnet_dnet_ntoa=yes 18698else 18699 ac_cv_lib_dnet_dnet_ntoa=no 18700fi 18701rm -f core conftest.err conftest.$ac_objext \ 18702 conftest$ac_exeext conftest.$ac_ext 18703LIBS=$ac_check_lib_save_LIBS 18704fi 18705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18706$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18707if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18709fi 18710 18711 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18713$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18714if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716else 18717 ac_check_lib_save_LIBS=$LIBS 18718LIBS="-ldnet_stub $LIBS" 18719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18720/* end confdefs.h. */ 18721 18722/* Override any GCC internal prototype to avoid an error. 18723 Use char because int might match the return type of a GCC 18724 builtin and then its argument prototype would still apply. */ 18725#ifdef __cplusplus 18726extern "C" 18727#endif 18728char dnet_ntoa (); 18729int 18730main () 18731{ 18732return dnet_ntoa (); 18733 ; 18734 return 0; 18735} 18736_ACEOF 18737if ac_fn_c_try_link "$LINENO"; then : 18738 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18739else 18740 ac_cv_lib_dnet_stub_dnet_ntoa=no 18741fi 18742rm -f core conftest.err conftest.$ac_objext \ 18743 conftest$ac_exeext conftest.$ac_ext 18744LIBS=$ac_check_lib_save_LIBS 18745fi 18746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18747$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18748if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18749 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18750fi 18751 18752 fi 18753fi 18754rm -f core conftest.err conftest.$ac_objext \ 18755 conftest$ac_exeext conftest.$ac_ext 18756 LIBS="$ac_xsave_LIBS" 18757 18758 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 18759 # to get the SysV transport functions. 18760 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18761 # needs -lnsl. 18762 # The nsl library prevents programs from opening the X display 18763 # on Irix 5.2, according to T.E. Dickey. 18764 # The functions gethostbyname, getservbyname, and inet_addr are 18765 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18766 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18767if test "x$ac_cv_func_gethostbyname" = xyes; then : 18768 18769fi 18770 18771 if test $ac_cv_func_gethostbyname = no; then 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18773$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18774if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18775 $as_echo_n "(cached) " >&6 18776else 18777 ac_check_lib_save_LIBS=$LIBS 18778LIBS="-lnsl $LIBS" 18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18780/* end confdefs.h. */ 18781 18782/* Override any GCC internal prototype to avoid an error. 18783 Use char because int might match the return type of a GCC 18784 builtin and then its argument prototype would still apply. */ 18785#ifdef __cplusplus 18786extern "C" 18787#endif 18788char gethostbyname (); 18789int 18790main () 18791{ 18792return gethostbyname (); 18793 ; 18794 return 0; 18795} 18796_ACEOF 18797if ac_fn_c_try_link "$LINENO"; then : 18798 ac_cv_lib_nsl_gethostbyname=yes 18799else 18800 ac_cv_lib_nsl_gethostbyname=no 18801fi 18802rm -f core conftest.err conftest.$ac_objext \ 18803 conftest$ac_exeext conftest.$ac_ext 18804LIBS=$ac_check_lib_save_LIBS 18805fi 18806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18807$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18808if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18809 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18810fi 18811 18812 if test $ac_cv_lib_nsl_gethostbyname = no; then 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18814$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18815if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18816 $as_echo_n "(cached) " >&6 18817else 18818 ac_check_lib_save_LIBS=$LIBS 18819LIBS="-lbsd $LIBS" 18820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18821/* end confdefs.h. */ 18822 18823/* Override any GCC internal prototype to avoid an error. 18824 Use char because int might match the return type of a GCC 18825 builtin and then its argument prototype would still apply. */ 18826#ifdef __cplusplus 18827extern "C" 18828#endif 18829char gethostbyname (); 18830int 18831main () 18832{ 18833return gethostbyname (); 18834 ; 18835 return 0; 18836} 18837_ACEOF 18838if ac_fn_c_try_link "$LINENO"; then : 18839 ac_cv_lib_bsd_gethostbyname=yes 18840else 18841 ac_cv_lib_bsd_gethostbyname=no 18842fi 18843rm -f core conftest.err conftest.$ac_objext \ 18844 conftest$ac_exeext conftest.$ac_ext 18845LIBS=$ac_check_lib_save_LIBS 18846fi 18847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18848$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18849if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18851fi 18852 18853 fi 18854 fi 18855 18856 # [email protected] says without -lsocket, 18857 # socket/setsockopt and other routines are undefined under SCO ODT 18858 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18859 # on later versions), says Simon Leinen: it contains gethostby* 18860 # variants that don't use the name server (or something). -lsocket 18861 # must be given before -lnsl if both are needed. We assume that 18862 # if connect needs -lnsl, so does gethostbyname. 18863 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18864if test "x$ac_cv_func_connect" = xyes; then : 18865 18866fi 18867 18868 if test $ac_cv_func_connect = no; then 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18870$as_echo_n "checking for connect in -lsocket... " >&6; } 18871if ${ac_cv_lib_socket_connect+:} false; then : 18872 $as_echo_n "(cached) " >&6 18873else 18874 ac_check_lib_save_LIBS=$LIBS 18875LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878 18879/* Override any GCC internal prototype to avoid an error. 18880 Use char because int might match the return type of a GCC 18881 builtin and then its argument prototype would still apply. */ 18882#ifdef __cplusplus 18883extern "C" 18884#endif 18885char connect (); 18886int 18887main () 18888{ 18889return connect (); 18890 ; 18891 return 0; 18892} 18893_ACEOF 18894if ac_fn_c_try_link "$LINENO"; then : 18895 ac_cv_lib_socket_connect=yes 18896else 18897 ac_cv_lib_socket_connect=no 18898fi 18899rm -f core conftest.err conftest.$ac_objext \ 18900 conftest$ac_exeext conftest.$ac_ext 18901LIBS=$ac_check_lib_save_LIBS 18902fi 18903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18904$as_echo "$ac_cv_lib_socket_connect" >&6; } 18905if test "x$ac_cv_lib_socket_connect" = xyes; then : 18906 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18907fi 18908 18909 fi 18910 18911 # Guillermo Gomez says -lposix is necessary on A/UX. 18912 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18913if test "x$ac_cv_func_remove" = xyes; then : 18914 18915fi 18916 18917 if test $ac_cv_func_remove = no; then 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18919$as_echo_n "checking for remove in -lposix... " >&6; } 18920if ${ac_cv_lib_posix_remove+:} false; then : 18921 $as_echo_n "(cached) " >&6 18922else 18923 ac_check_lib_save_LIBS=$LIBS 18924LIBS="-lposix $LIBS" 18925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18926/* end confdefs.h. */ 18927 18928/* Override any GCC internal prototype to avoid an error. 18929 Use char because int might match the return type of a GCC 18930 builtin and then its argument prototype would still apply. */ 18931#ifdef __cplusplus 18932extern "C" 18933#endif 18934char remove (); 18935int 18936main () 18937{ 18938return remove (); 18939 ; 18940 return 0; 18941} 18942_ACEOF 18943if ac_fn_c_try_link "$LINENO"; then : 18944 ac_cv_lib_posix_remove=yes 18945else 18946 ac_cv_lib_posix_remove=no 18947fi 18948rm -f core conftest.err conftest.$ac_objext \ 18949 conftest$ac_exeext conftest.$ac_ext 18950LIBS=$ac_check_lib_save_LIBS 18951fi 18952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18953$as_echo "$ac_cv_lib_posix_remove" >&6; } 18954if test "x$ac_cv_lib_posix_remove" = xyes; then : 18955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18956fi 18957 18958 fi 18959 18960 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18961 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18962if test "x$ac_cv_func_shmat" = xyes; then : 18963 18964fi 18965 18966 if test $ac_cv_func_shmat = no; then 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18968$as_echo_n "checking for shmat in -lipc... " >&6; } 18969if ${ac_cv_lib_ipc_shmat+:} false; then : 18970 $as_echo_n "(cached) " >&6 18971else 18972 ac_check_lib_save_LIBS=$LIBS 18973LIBS="-lipc $LIBS" 18974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18975/* end confdefs.h. */ 18976 18977/* Override any GCC internal prototype to avoid an error. 18978 Use char because int might match the return type of a GCC 18979 builtin and then its argument prototype would still apply. */ 18980#ifdef __cplusplus 18981extern "C" 18982#endif 18983char shmat (); 18984int 18985main () 18986{ 18987return shmat (); 18988 ; 18989 return 0; 18990} 18991_ACEOF 18992if ac_fn_c_try_link "$LINENO"; then : 18993 ac_cv_lib_ipc_shmat=yes 18994else 18995 ac_cv_lib_ipc_shmat=no 18996fi 18997rm -f core conftest.err conftest.$ac_objext \ 18998 conftest$ac_exeext conftest.$ac_ext 18999LIBS=$ac_check_lib_save_LIBS 19000fi 19001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19002$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19003if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19005fi 19006 19007 fi 19008 fi 19009 19010 # Check for libraries that X11R6 Xt/Xaw programs need. 19011 ac_save_LDFLAGS=$LDFLAGS 19012 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19013 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19014 # check for ICE first), but we must link in the order -lSM -lICE or 19015 # we get undefined symbols. So assume we have SM if we have ICE. 19016 # These have to be linked with before -lX11, unlike the other 19017 # libraries we check for below, so use a different variable. 19018 # John Interrante, Karl Berry 19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19020$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19021if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19022 $as_echo_n "(cached) " >&6 19023else 19024 ac_check_lib_save_LIBS=$LIBS 19025LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027/* end confdefs.h. */ 19028 19029/* Override any GCC internal prototype to avoid an error. 19030 Use char because int might match the return type of a GCC 19031 builtin and then its argument prototype would still apply. */ 19032#ifdef __cplusplus 19033extern "C" 19034#endif 19035char IceConnectionNumber (); 19036int 19037main () 19038{ 19039return IceConnectionNumber (); 19040 ; 19041 return 0; 19042} 19043_ACEOF 19044if ac_fn_c_try_link "$LINENO"; then : 19045 ac_cv_lib_ICE_IceConnectionNumber=yes 19046else 19047 ac_cv_lib_ICE_IceConnectionNumber=no 19048fi 19049rm -f core conftest.err conftest.$ac_objext \ 19050 conftest$ac_exeext conftest.$ac_ext 19051LIBS=$ac_check_lib_save_LIBS 19052fi 19053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19054$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19055if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19056 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19057fi 19058 19059 LDFLAGS=$ac_save_LDFLAGS 19060 19061fi 19062 19063 19064 19065 19066 19067ac_ext=c 19068ac_cpp='$CPP $CPPFLAGS' 19069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19071ac_compiler_gnu=$ac_cv_c_compiler_gnu 19072 19073ax_pthread_ok=no 19074 19075 19076if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 19077 save_CFLAGS="$CFLAGS" 19078 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19079 save_LIBS="$LIBS" 19080 LIBS="$PTHREAD_LIBS $LIBS" 19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 19082$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19084/* end confdefs.h. */ 19085 19086/* Override any GCC internal prototype to avoid an error. 19087 Use char because int might match the return type of a GCC 19088 builtin and then its argument prototype would still apply. */ 19089#ifdef __cplusplus 19090extern "C" 19091#endif 19092char pthread_join (); 19093int 19094main () 19095{ 19096return pthread_join (); 19097 ; 19098 return 0; 19099} 19100_ACEOF 19101if ac_fn_c_try_link "$LINENO"; then : 19102 ax_pthread_ok=yes 19103fi 19104rm -f core conftest.err conftest.$ac_objext \ 19105 conftest$ac_exeext conftest.$ac_ext 19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19107$as_echo "$ax_pthread_ok" >&6; } 19108 if test x"$ax_pthread_ok" = xno; then 19109 PTHREAD_LIBS="" 19110 PTHREAD_CFLAGS="" 19111 fi 19112 LIBS="$save_LIBS" 19113 CFLAGS="$save_CFLAGS" 19114fi 19115 19116 19117 19118ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19119 19120 19121 19122case "${host_cpu}-${host_os}" in 19123 *solaris*) 19124 19125 19126 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 19127 ;; 19128 19129 *-darwin*) 19130 ax_pthread_flags="-pthread $ax_pthread_flags" 19131 ;; 19132esac 19133 19134if test x"$ax_pthread_ok" = xno; then 19135for flag in $ax_pthread_flags; do 19136 19137 case $flag in 19138 none) 19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19140$as_echo_n "checking whether pthreads work without any flags... " >&6; } 19141 ;; 19142 19143 -*) 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 19145$as_echo_n "checking whether pthreads work with $flag... " >&6; } 19146 PTHREAD_CFLAGS="$flag" 19147 ;; 19148 19149 pthread-config) 19150 # Extract the first word of "pthread-config", so it can be a program name with args. 19151set dummy pthread-config; ac_word=$2 19152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19153$as_echo_n "checking for $ac_word... " >&6; } 19154if ${ac_cv_prog_ax_pthread_config+:} false; then : 19155 $as_echo_n "(cached) " >&6 19156else 19157 if test -n "$ax_pthread_config"; then 19158 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19159else 19160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19161for as_dir in $PATH 19162do 19163 IFS=$as_save_IFS 19164 test -z "$as_dir" && as_dir=. 19165 for ac_exec_ext in '' $ac_executable_extensions; do 19166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19167 ac_cv_prog_ax_pthread_config="yes" 19168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19169 break 2 19170 fi 19171done 19172 done 19173IFS=$as_save_IFS 19174 19175 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19176fi 19177fi 19178ax_pthread_config=$ac_cv_prog_ax_pthread_config 19179if test -n "$ax_pthread_config"; then 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19181$as_echo "$ax_pthread_config" >&6; } 19182else 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19184$as_echo "no" >&6; } 19185fi 19186 19187 19188 if test x"$ax_pthread_config" = xno; then continue; fi 19189 PTHREAD_CFLAGS="`pthread-config --cflags`" 19190 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19191 ;; 19192 19193 *) 19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 19195$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 19196 PTHREAD_LIBS="-l$flag" 19197 ;; 19198 esac 19199 19200 save_LIBS="$LIBS" 19201 save_CFLAGS="$CFLAGS" 19202 LIBS="$PTHREAD_LIBS $LIBS" 19203 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19204 19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19206/* end confdefs.h. */ 19207#include <pthread.h> 19208 static void routine(void* a) {a=0;} 19209 static void* start_routine(void* a) {return a;} 19210int 19211main () 19212{ 19213pthread_t th; pthread_attr_t attr; 19214 pthread_create(&th,0,start_routine,0); 19215 pthread_join(th, 0); 19216 pthread_attr_init(&attr); 19217 pthread_cleanup_push(routine, 0); 19218 pthread_cleanup_pop(0); 19219 ; 19220 return 0; 19221} 19222_ACEOF 19223if ac_fn_c_try_link "$LINENO"; then : 19224 ax_pthread_ok=yes 19225fi 19226rm -f core conftest.err conftest.$ac_objext \ 19227 conftest$ac_exeext conftest.$ac_ext 19228 19229 LIBS="$save_LIBS" 19230 CFLAGS="$save_CFLAGS" 19231 19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19233$as_echo "$ax_pthread_ok" >&6; } 19234 if test "x$ax_pthread_ok" = xyes; then 19235 break; 19236 fi 19237 19238 PTHREAD_LIBS="" 19239 PTHREAD_CFLAGS="" 19240done 19241fi 19242 19243if test "x$ax_pthread_ok" = xyes; then 19244 save_LIBS="$LIBS" 19245 LIBS="$PTHREAD_LIBS $LIBS" 19246 save_CFLAGS="$CFLAGS" 19247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19248 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19250$as_echo_n "checking for joinable pthread attribute... " >&6; } 19251 attr_name=unknown 19252 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19254/* end confdefs.h. */ 19255#include <pthread.h> 19256int 19257main () 19258{ 19259int attr=$attr; return attr; 19260 ; 19261 return 0; 19262} 19263_ACEOF 19264if ac_fn_c_try_link "$LINENO"; then : 19265 attr_name=$attr; break 19266fi 19267rm -f core conftest.err conftest.$ac_objext \ 19268 conftest$ac_exeext conftest.$ac_ext 19269 done 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 19271$as_echo "$attr_name" >&6; } 19272 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 19273 19274cat >>confdefs.h <<_ACEOF 19275#define PTHREAD_CREATE_JOINABLE $attr_name 19276_ACEOF 19277 19278 fi 19279 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19281$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19282 flag=no 19283 case "${host_cpu}-${host_os}" in 19284 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19285 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19286 esac 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19288$as_echo "${flag}" >&6; } 19289 if test "x$flag" != xno; then 19290 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19291 fi 19292 19293 LIBS="$save_LIBS" 19294 CFLAGS="$save_CFLAGS" 19295 19296 if test x"$GCC" != xyes; then 19297 for ac_prog in xlc_r cc_r 19298do 19299 # Extract the first word of "$ac_prog", so it can be a program name with args. 19300set dummy $ac_prog; ac_word=$2 19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19302$as_echo_n "checking for $ac_word... " >&6; } 19303if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19304 $as_echo_n "(cached) " >&6 19305else 19306 if test -n "$PTHREAD_CC"; then 19307 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19308else 19309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19310for as_dir in $PATH 19311do 19312 IFS=$as_save_IFS 19313 test -z "$as_dir" && as_dir=. 19314 for ac_exec_ext in '' $ac_executable_extensions; do 19315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19316 ac_cv_prog_PTHREAD_CC="$ac_prog" 19317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19318 break 2 19319 fi 19320done 19321 done 19322IFS=$as_save_IFS 19323 19324fi 19325fi 19326PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19327if test -n "$PTHREAD_CC"; then 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19329$as_echo "$PTHREAD_CC" >&6; } 19330else 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19332$as_echo "no" >&6; } 19333fi 19334 19335 19336 test -n "$PTHREAD_CC" && break 19337done 19338test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19339 19340 else 19341 PTHREAD_CC=$CC 19342 fi 19343else 19344 PTHREAD_CC="$CC" 19345fi 19346 19347 19348 19349 19350 19351if test x"$ax_pthread_ok" = xyes; then 19352 19353$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19354 19355 : 19356else 19357 ax_pthread_ok=no 19358 19359fi 19360ac_ext=c 19361ac_cpp='$CPP $CPPFLAGS' 19362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19364ac_compiler_gnu=$ac_cv_c_compiler_gnu 19365 19366 19367 19368 19369ac_ext=c 19370ac_cpp='$CPP $CPPFLAGS' 19371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19373ac_compiler_gnu=$ac_cv_c_compiler_gnu 19374 19375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19376$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19377if ${ax_cv_c_compiler_ms+:} false; then : 19378 $as_echo_n "(cached) " >&6 19379else 19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19381/* end confdefs.h. */ 19382 19383int 19384main () 19385{ 19386#ifndef _MSC_VER 19387 choke me 19388#endif 19389 19390 ; 19391 return 0; 19392} 19393_ACEOF 19394if ac_fn_c_try_compile "$LINENO"; then : 19395 ax_compiler_ms=yes 19396else 19397 ax_compiler_ms=no 19398fi 19399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19400ax_cv_c_compiler_ms=$ax_compiler_ms 19401 19402fi 19403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19404$as_echo "$ax_cv_c_compiler_ms" >&6; } 19405if test X$ax_compiler_ms = Xno; then : 19406 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19407fi 19408 19409if test "X$no_x" != "Xyes"; then : 19410 if test -n "$x_includes"; then : 19411 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19412fi 19413 if test -n "$x_libraries"; then : 19414 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19415fi 19416fi 19417 19418ax_save_CPPFLAGS="${CPPFLAGS}" 19419CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19420for ac_header in GL/gl.h OpenGL/gl.h 19421do : 19422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19425 cat >>confdefs.h <<_ACEOF 19426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19427_ACEOF 19428 19429fi 19430 19431done 19432 19433CPPFLAGS="${ax_save_CPPFLAGS}" 19434 19435for ac_header in windows.h 19436do : 19437 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19438if test "x$ac_cv_header_windows_h" = xyes; then : 19439 cat >>confdefs.h <<_ACEOF 19440#define HAVE_WINDOWS_H 1 19441_ACEOF 19442 19443fi 19444 19445done 19446 19447 19448 19449 19450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19451$as_echo_n "checking for OpenGL library... " >&6; } 19452if ${ax_cv_check_gl_libgl+:} false; then : 19453 $as_echo_n "(cached) " >&6 19454else 19455 ax_cv_check_gl_libgl="no" 19456case $host_cpu in 19457 x86_64) ax_check_gl_libdir=lib64 ;; 19458 *) ax_check_gl_libdir=lib ;; 19459esac 19460ax_save_CPPFLAGS="${CPPFLAGS}" 19461CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19462ax_save_LIBS="${LIBS}" 19463LIBS="" 19464ax_check_libs="-lopengl32 -lGL" 19465for ax_lib in ${ax_check_libs}; do 19466 if test X$ax_compiler_ms = Xyes; then : 19467 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19468else 19469 ax_try_lib="${ax_lib}" 19470fi 19471 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19473/* end confdefs.h. */ 19474 19475# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19476# include <windows.h> 19477# endif 19478# ifdef HAVE_GL_GL_H 19479# include <GL/gl.h> 19480# elif defined(HAVE_OPENGL_GL_H) 19481# include <OpenGL/gl.h> 19482# else 19483# error no gl.h 19484# endif 19485int 19486main () 19487{ 19488glBegin(0) 19489 ; 19490 return 0; 19491} 19492_ACEOF 19493if ac_fn_c_try_link "$LINENO"; then : 19494 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19495else 19496 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}" 19497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19498/* end confdefs.h. */ 19499 19500# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19501# include <windows.h> 19502# endif 19503# ifdef HAVE_GL_GL_H 19504# include <GL/gl.h> 19505# elif defined(HAVE_OPENGL_GL_H) 19506# include <OpenGL/gl.h> 19507# else 19508# error no gl.h 19509# endif 19510int 19511main () 19512{ 19513glBegin(0) 19514 ; 19515 return 0; 19516} 19517_ACEOF 19518if ac_fn_c_try_link "$LINENO"; then : 19519 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19520else 19521 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}" 19522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19523/* end confdefs.h. */ 19524 19525# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19526# include <windows.h> 19527# endif 19528# ifdef HAVE_GL_GL_H 19529# include <GL/gl.h> 19530# elif defined(HAVE_OPENGL_GL_H) 19531# include <OpenGL/gl.h> 19532# else 19533# error no gl.h 19534# endif 19535int 19536main () 19537{ 19538glBegin(0) 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543if ac_fn_c_try_link "$LINENO"; then : 19544 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19545fi 19546rm -f core conftest.err conftest.$ac_objext \ 19547 conftest$ac_exeext conftest.$ac_ext 19548fi 19549rm -f core conftest.err conftest.$ac_objext \ 19550 conftest$ac_exeext conftest.$ac_ext 19551fi 19552rm -f core conftest.err conftest.$ac_objext \ 19553 conftest$ac_exeext conftest.$ac_ext 19554done 19555 19556if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19557 LIBS='-framework OpenGL' 19558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19559/* end confdefs.h. */ 19560 19561# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19562# include <windows.h> 19563# endif 19564# ifdef HAVE_GL_GL_H 19565# include <GL/gl.h> 19566# elif defined(HAVE_OPENGL_GL_H) 19567# include <OpenGL/gl.h> 19568# else 19569# error no gl.h 19570# endif 19571int 19572main () 19573{ 19574glBegin(0) 19575 ; 19576 return 0; 19577} 19578_ACEOF 19579if ac_fn_c_try_link "$LINENO"; then : 19580 ax_cv_check_gl_libgl="$LIBS" 19581fi 19582rm -f core conftest.err conftest.$ac_objext \ 19583 conftest$ac_exeext conftest.$ac_ext 19584fi 19585 19586LIBS=${ax_save_LIBS} 19587CPPFLAGS=${ax_save_CPPFLAGS} 19588fi 19589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 19590$as_echo "$ax_cv_check_gl_libgl" >&6; } 19591 19592if test "X$ax_cv_check_gl_libgl" = Xno; then : 19593 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 19594else 19595 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 19596fi 19597ac_ext=c 19598ac_cpp='$CPP $CPPFLAGS' 19599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19601ac_compiler_gnu=$ac_cv_c_compiler_gnu 19602 19603 19604 19605 19606 19607 19608GLU_CFLAGS="${GL_CFLAGS}" 19609 19610ax_save_CPPFLAGS="${CPPFLAGS}" 19611CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19612for ac_header in GL/glu.h OpenGL/glu.h 19613do : 19614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19615ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19617 cat >>confdefs.h <<_ACEOF 19618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19619_ACEOF 19620 19621fi 19622 19623done 19624 19625CPPFLAGS="${ax_save_CPPFLAGS}" 19626 19627 19628 19629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 19630$as_echo_n "checking for OpenGL Utility library... " >&6; } 19631if ${ax_cv_check_glu_libglu+:} false; then : 19632 $as_echo_n "(cached) " >&6 19633else 19634 ax_cv_check_glu_libglu="no" 19635ax_save_CPPFLAGS="${CPPFLAGS}" 19636CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19637ax_save_LIBS="${LIBS}" 19638 19639LIBS="${GL_LIBS} ${ax_save_LIBS}" 19640ac_ext=cpp 19641ac_cpp='$CXXCPP $CPPFLAGS' 19642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19645 19646if test X$ax_compiler_ms = Xyes; then : 19647 ac_ext=c 19648ac_cpp='$CPP $CPPFLAGS' 19649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19651ac_compiler_gnu=$ac_cv_c_compiler_gnu 19652 19653fi 19654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19655/* end confdefs.h. */ 19656 19657# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19658# include <windows.h> 19659# endif 19660# ifdef HAVE_GL_GLU_H 19661# include <GL/glu.h> 19662# elif defined(HAVE_OPENGL_GLU_H) 19663# include <OpenGL/glu.h> 19664# else 19665# error no glu.h 19666# endif 19667int 19668main () 19669{ 19670gluBeginCurve(0) 19671 ; 19672 return 0; 19673} 19674_ACEOF 19675if ac_fn_c_try_link "$LINENO"; then : 19676 ax_cv_check_glu_libglu=yes 19677else 19678 LIBS="" 19679ax_check_libs="-lglu32 -lGLU" 19680for ax_lib in ${ax_check_libs}; do 19681 if test X$ax_compiler_ms = Xyes; then : 19682 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19683else 19684 ax_try_lib="${ax_lib}" 19685fi 19686 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19688/* end confdefs.h. */ 19689 19690# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19691# include <windows.h> 19692# endif 19693# ifdef HAVE_GL_GLU_H 19694# include <GL/glu.h> 19695# elif defined(HAVE_OPENGL_GLU_H) 19696# include <OpenGL/glu.h> 19697# else 19698# error no glu.h 19699# endif 19700int 19701main () 19702{ 19703gluBeginCurve(0) 19704 ; 19705 return 0; 19706} 19707_ACEOF 19708if ac_fn_c_try_link "$LINENO"; then : 19709 ax_cv_check_glu_libglu="${ax_try_lib}"; break 19710fi 19711rm -f core conftest.err conftest.$ac_objext \ 19712 conftest$ac_exeext conftest.$ac_ext 19713done 19714 19715fi 19716rm -f core conftest.err conftest.$ac_objext \ 19717 conftest$ac_exeext conftest.$ac_ext 19718if test X$ax_compiler_ms = Xyes; then : 19719 ac_ext=cpp 19720ac_cpp='$CXXCPP $CPPFLAGS' 19721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19724 19725fi 19726ac_ext=c 19727ac_cpp='$CPP $CPPFLAGS' 19728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19730ac_compiler_gnu=$ac_cv_c_compiler_gnu 19731 19732 19733LIBS=${ax_save_LIBS} 19734CPPFLAGS=${ax_save_CPPFLAGS} 19735fi 19736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 19737$as_echo "$ax_cv_check_glu_libglu" >&6; } 19738if test "X$ax_cv_check_glu_libglu" = Xno; then : 19739 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 19740else 19741 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 19742 GLU_LIBS="$GL_LIBS" 19743else 19744 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 19745fi 19746fi 19747 19748 19749 19750if test "X$ax_cv_check_glu_libglu" != Xno; then : 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 19752$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 19753if ${ax_cv_varargs_glu_tesscb+:} false; then : 19754 $as_echo_n "(cached) " >&6 19755else 19756 ax_cv_varargs_glu_tesscb=no 19757ax_save_CFLAGS="$CFLAGS" 19758CFLAGS="$GL_CFLAGS $CFLAGS" 19759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19760/* end confdefs.h. */ 19761 19762# ifdef HAVE_GL_GLU_H 19763# include <GL/glu.h> 19764# else 19765# include <OpenGL/glu.h> 19766# endif 19767int 19768main () 19769{ 19770GLvoid (*func)(...); gluTessCallback(0, 0, func) 19771 ; 19772 return 0; 19773} 19774_ACEOF 19775if ac_fn_c_try_compile "$LINENO"; then : 19776 ax_cv_varargs_glu_tesscb=yes 19777fi 19778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19779CFLAGS="$ax_save_CFLAGS" 19780fi 19781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 19782$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 19783if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 19784 19785$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 19786 19787fi 19788fi 19789 19790 19791 19792ax_save_CPPFLAGS="${CPPFLAGS}" 19793CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 19794for ac_header in GL/glut.h GLUT/glut.h 19795do : 19796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19799 cat >>confdefs.h <<_ACEOF 19800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19801_ACEOF 19802 19803fi 19804 19805done 19806 19807CPPFLAGS="${ax_save_CPPFLAGS}" 19808 19809GLUT_CFLAGS=${GLU_CFLAGS} 19810GLUT_LIBS=${GLU_LIBS} 19811 19812 19813 19814if test X$no_x != Xyes; then : 19815 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 19816fi 19817 19818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 19819$as_echo_n "checking for GLUT library... " >&6; } 19820if ${ax_cv_check_glut_libglut+:} false; then : 19821 $as_echo_n "(cached) " >&6 19822else 19823 ax_cv_check_glut_libglut="no" 19824ac_ext=c 19825ac_cpp='$CPP $CPPFLAGS' 19826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19828ac_compiler_gnu=$ac_cv_c_compiler_gnu 19829 19830ax_save_CPPFLAGS="${CPPFLAGS}" 19831CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 19832ax_save_LIBS="${LIBS}" 19833LIBS="" 19834ax_check_libs="-lglut32 -lglut" 19835for ax_lib in ${ax_check_libs}; do 19836 if test X$ax_compiler_ms = Xyes; then : 19837 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19838else 19839 ax_try_lib="${ax_lib}" 19840fi 19841 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19843/* end confdefs.h. */ 19844 19845# if HAVE_WINDOWS_H && defined(_WIN32) 19846# include <windows.h> 19847# endif 19848# ifdef HAVE_GL_GLUT_H 19849# include <GL/glut.h> 19850# elif defined(HAVE_GLUT_GLUT_H) 19851# include <GLUT/glut.h> 19852# else 19853# error no glut.h 19854# endif 19855int 19856main () 19857{ 19858glutMainLoop() 19859 ; 19860 return 0; 19861} 19862_ACEOF 19863if ac_fn_c_try_link "$LINENO"; then : 19864 ax_cv_check_glut_libglut="${ax_try_lib}"; break 19865fi 19866rm -f core conftest.err conftest.$ac_objext \ 19867 conftest$ac_exeext conftest.$ac_ext 19868done 19869 19870if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 19871 LIBS='-framework GLUT' 19872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19873/* end confdefs.h. */ 19874 19875# if HAVE_WINDOWS_H && defined(_WIN32) 19876# include <windows.h> 19877# endif 19878# ifdef HAVE_GL_GLUT_H 19879# include <GL/glut.h> 19880# elif defined(HAVE_GLUT_GLUT_H) 19881# include <GLUT/glut.h> 19882# else 19883# error no glut.h 19884# endif 19885int 19886main () 19887{ 19888glutMainLoop() 19889 ; 19890 return 0; 19891} 19892_ACEOF 19893if ac_fn_c_try_link "$LINENO"; then : 19894 ax_cv_check_glut_libglut="$LIBS" 19895fi 19896rm -f core conftest.err conftest.$ac_objext \ 19897 conftest$ac_exeext conftest.$ac_ext 19898fi 19899 19900CPPFLAGS="${ax_save_CPPFLAGS}" 19901LIBS="${ax_save_LIBS}" 19902ac_ext=c 19903ac_cpp='$CPP $CPPFLAGS' 19904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19906ac_compiler_gnu=$ac_cv_c_compiler_gnu 19907 19908fi 19909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 19910$as_echo "$ax_cv_check_glut_libglut" >&6; } 19911 19912if test "X$ax_cv_check_glut_libglut" = Xno; then : 19913 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 19914else 19915 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 19916fi 19917 19918 19919 19920 19921 19922if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 19923 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 19924 HAVE_OPENGL=yes 19925fi 19926 19927 if test "$HAVE_OPENGL" = "yes"; then 19928 HAVE_OPENGL_TRUE= 19929 HAVE_OPENGL_FALSE='#' 19930else 19931 HAVE_OPENGL_TRUE='#' 19932 HAVE_OPENGL_FALSE= 19933fi 19934 19935 19936 19937win32_io_ok=no 19938case "${host_os}" in 19939 cygwin*) 19940 ;; 19941 *) 19942 if test x"$ac_cv_header_windows_h" = xyes; then 19943 win32_io_ok=yes 19944 19945$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 19946 19947 fi 19948 ;; 19949esac 19950 if test "$win32_io_ok" = yes; then 19951 WIN32_IO_TRUE= 19952 WIN32_IO_FALSE='#' 19953else 19954 WIN32_IO_TRUE='#' 19955 WIN32_IO_FALSE= 19956fi 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966# Check whether --enable-strip-chopping was given. 19967if test "${enable_strip_chopping+set}" = set; then : 19968 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 19969else 19970 HAVE_STRIPCHOP=yes 19971fi 19972 19973 19974# Check whether --with-default-strip-size was given. 19975if test "${with_default_strip_size+set}" = set; then : 19976 withval=$with_default_strip_size; 19977fi 19978 19979 19980if test "$HAVE_STRIPCHOP" = "yes" \ 19981 -a "x$with_default_strip_size" != "xno"; then 19982 19983$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 19984 19985 19986 if test "x$with_default_strip_size" = "x" \ 19987 -o "x$with_default_strip_size" = "xyes"; then 19988 with_default_strip_size="8192" 19989 fi 19990 19991 19992cat >>confdefs.h <<_ACEOF 19993#define STRIP_SIZE_DEFAULT $with_default_strip_size 19994_ACEOF 19995 19996 19997fi 19998 19999 20000# Check whether --enable-defer-strile-load was given. 20001if test "${enable_defer_strile_load+set}" = set; then : 20002 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20003else 20004 HAVE_DEFER_STRILE_LOAD=no 20005fi 20006 20007 20008if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20009 20010$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20011 20012 20013fi 20014 20015 20016# Check whether --enable-chunky-strip-read was given. 20017if test "${enable_chunky_strip_read+set}" = set; then : 20018 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20019else 20020 HAVE_CHUNKY_STRIP_READ=no 20021fi 20022 20023 20024if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20025 20026$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20027 20028 20029fi 20030 20031 20032$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20033 20034 20035 20036# Check whether --enable-extrasample-as-alpha was given. 20037if test "${enable_extrasample_as_alpha+set}" = set; then : 20038 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20039else 20040 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20041fi 20042 20043 20044if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20045 20046$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20047 20048fi 20049 20050 20051# Check whether --enable-check-ycbcr-subsampling was given. 20052if test "${enable_check_ycbcr_subsampling+set}" = set; then : 20053 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 20054else 20055 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 20056fi 20057 20058 20059if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 20060 20061$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 20062 20063fi 20064 20065 20066 20067 20068ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 20069 20070 20071ac_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" 20072 20073cat >confcache <<\_ACEOF 20074# This file is a shell script that caches the results of configure 20075# tests run on this system so they can be shared between configure 20076# scripts and configure runs, see configure's option --config-cache. 20077# It is not useful on other systems. If it contains results you don't 20078# want to keep, you may remove or edit it. 20079# 20080# config.status only pays attention to the cache file if you give it 20081# the --recheck option to rerun configure. 20082# 20083# `ac_cv_env_foo' variables (set or unset) will be overridden when 20084# loading this file, other *unset* `ac_cv_foo' will be assigned the 20085# following values. 20086 20087_ACEOF 20088 20089# The following way of writing the cache mishandles newlines in values, 20090# but we know of no workaround that is simple, portable, and efficient. 20091# So, we kill variables containing newlines. 20092# Ultrix sh set writes to stderr and can't be redirected directly, 20093# and sets the high bit in the cache file unless we assign to the vars. 20094( 20095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20096 eval ac_val=\$$ac_var 20097 case $ac_val in #( 20098 *${as_nl}*) 20099 case $ac_var in #( 20100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20102 esac 20103 case $ac_var in #( 20104 _ | IFS | as_nl) ;; #( 20105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20106 *) { eval $ac_var=; unset $ac_var;} ;; 20107 esac ;; 20108 esac 20109 done 20110 20111 (set) 2>&1 | 20112 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20113 *${as_nl}ac_space=\ *) 20114 # `set' does not quote correctly, so add quotes: double-quote 20115 # substitution turns \\\\ into \\, and sed turns \\ into \. 20116 sed -n \ 20117 "s/'/'\\\\''/g; 20118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20119 ;; #( 20120 *) 20121 # `set' quotes correctly as required by POSIX, so do not add quotes. 20122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20123 ;; 20124 esac | 20125 sort 20126) | 20127 sed ' 20128 /^ac_cv_env_/b end 20129 t clear 20130 :clear 20131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20132 t end 20133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20134 :end' >>confcache 20135if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20136 if test -w "$cache_file"; then 20137 if test "x$cache_file" != "x/dev/null"; then 20138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20139$as_echo "$as_me: updating cache $cache_file" >&6;} 20140 if test ! -f "$cache_file" || test -h "$cache_file"; then 20141 cat confcache >"$cache_file" 20142 else 20143 case $cache_file in #( 20144 */* | ?:*) 20145 mv -f confcache "$cache_file"$$ && 20146 mv -f "$cache_file"$$ "$cache_file" ;; #( 20147 *) 20148 mv -f confcache "$cache_file" ;; 20149 esac 20150 fi 20151 fi 20152 else 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20154$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20155 fi 20156fi 20157rm -f confcache 20158 20159test "x$prefix" = xNONE && prefix=$ac_default_prefix 20160# Let make expand exec_prefix. 20161test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20162 20163DEFS=-DHAVE_CONFIG_H 20164 20165ac_libobjs= 20166ac_ltlibobjs= 20167U= 20168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20169 # 1. Remove the extension, and $U if already installed. 20170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20173 # will be set to the directory where LIBOBJS objects are built. 20174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20176done 20177LIBOBJS=$ac_libobjs 20178 20179LTLIBOBJS=$ac_ltlibobjs 20180 20181 20182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20183$as_echo_n "checking that generated files are newer than configure... " >&6; } 20184 if test -n "$am_sleep_pid"; then 20185 # Hide warnings about reused PIDs. 20186 wait $am_sleep_pid 2>/dev/null 20187 fi 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20189$as_echo "done" >&6; } 20190 if test -n "$EXEEXT"; then 20191 am__EXEEXT_TRUE= 20192 am__EXEEXT_FALSE='#' 20193else 20194 am__EXEEXT_TRUE='#' 20195 am__EXEEXT_FALSE= 20196fi 20197 20198if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20199 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20200Usually this means the macro was only invoked conditionally." "$LINENO" 5 20201fi 20202if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20203 as_fn_error $? "conditional \"AMDEP\" was never defined. 20204Usually this means the macro was only invoked conditionally." "$LINENO" 5 20205fi 20206if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20208Usually this means the macro was only invoked conditionally." "$LINENO" 5 20209fi 20210if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 20211 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 20212Usually this means the macro was only invoked conditionally." "$LINENO" 5 20213fi 20214if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20215 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20216Usually this means the macro was only invoked conditionally." "$LINENO" 5 20217fi 20218 20219if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 20220 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 20221Usually this means the macro was only invoked conditionally." "$LINENO" 5 20222fi 20223if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 20224 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 20225Usually this means the macro was only invoked conditionally." "$LINENO" 5 20226fi 20227if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 20228 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 20229Usually this means the macro was only invoked conditionally." "$LINENO" 5 20230fi 20231if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 20232 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 20233Usually this means the macro was only invoked conditionally." "$LINENO" 5 20234fi 20235 20236: "${CONFIG_STATUS=./config.status}" 20237ac_write_fail=0 20238ac_clean_files_save=$ac_clean_files 20239ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20240{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20241$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20242as_write_fail=0 20243cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20244#! $SHELL 20245# Generated by $as_me. 20246# Run this file to recreate the current configuration. 20247# Compiler output produced by configure, useful for debugging 20248# configure, is in config.log if it exists. 20249 20250debug=false 20251ac_cs_recheck=false 20252ac_cs_silent=false 20253 20254SHELL=\${CONFIG_SHELL-$SHELL} 20255export SHELL 20256_ASEOF 20257cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20258## -------------------- ## 20259## M4sh Initialization. ## 20260## -------------------- ## 20261 20262# Be more Bourne compatible 20263DUALCASE=1; export DUALCASE # for MKS sh 20264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20265 emulate sh 20266 NULLCMD=: 20267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20268 # is contrary to our usage. Disable this feature. 20269 alias -g '${1+"$@"}'='"$@"' 20270 setopt NO_GLOB_SUBST 20271else 20272 case `(set -o) 2>/dev/null` in #( 20273 *posix*) : 20274 set -o posix ;; #( 20275 *) : 20276 ;; 20277esac 20278fi 20279 20280 20281as_nl=' 20282' 20283export as_nl 20284# Printing a long string crashes Solaris 7 /usr/bin/printf. 20285as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20288# Prefer a ksh shell builtin over an external printf program on Solaris, 20289# but without wasting forks for bash or zsh. 20290if test -z "$BASH_VERSION$ZSH_VERSION" \ 20291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20292 as_echo='print -r --' 20293 as_echo_n='print -rn --' 20294elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20295 as_echo='printf %s\n' 20296 as_echo_n='printf %s' 20297else 20298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20300 as_echo_n='/usr/ucb/echo -n' 20301 else 20302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20303 as_echo_n_body='eval 20304 arg=$1; 20305 case $arg in #( 20306 *"$as_nl"*) 20307 expr "X$arg" : "X\\(.*\\)$as_nl"; 20308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20309 esac; 20310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20311 ' 20312 export as_echo_n_body 20313 as_echo_n='sh -c $as_echo_n_body as_echo' 20314 fi 20315 export as_echo_body 20316 as_echo='sh -c $as_echo_body as_echo' 20317fi 20318 20319# The user is always right. 20320if test "${PATH_SEPARATOR+set}" != set; then 20321 PATH_SEPARATOR=: 20322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20324 PATH_SEPARATOR=';' 20325 } 20326fi 20327 20328 20329# IFS 20330# We need space, tab and new line, in precisely that order. Quoting is 20331# there to prevent editors from complaining about space-tab. 20332# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20333# splitting by setting IFS to empty value.) 20334IFS=" "" $as_nl" 20335 20336# Find who we are. Look in the path if we contain no directory separator. 20337as_myself= 20338case $0 in #(( 20339 *[\\/]* ) as_myself=$0 ;; 20340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20341for as_dir in $PATH 20342do 20343 IFS=$as_save_IFS 20344 test -z "$as_dir" && as_dir=. 20345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20346 done 20347IFS=$as_save_IFS 20348 20349 ;; 20350esac 20351# We did not find ourselves, most probably we were run as `sh COMMAND' 20352# in which case we are not to be found in the path. 20353if test "x$as_myself" = x; then 20354 as_myself=$0 20355fi 20356if test ! -f "$as_myself"; then 20357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20358 exit 1 20359fi 20360 20361# Unset variables that we do not need and which cause bugs (e.g. in 20362# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20363# suppresses any "Segmentation fault" message there. '((' could 20364# trigger a bug in pdksh 5.2.14. 20365for as_var in BASH_ENV ENV MAIL MAILPATH 20366do eval test x\${$as_var+set} = xset \ 20367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20368done 20369PS1='$ ' 20370PS2='> ' 20371PS4='+ ' 20372 20373# NLS nuisances. 20374LC_ALL=C 20375export LC_ALL 20376LANGUAGE=C 20377export LANGUAGE 20378 20379# CDPATH. 20380(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20381 20382 20383# as_fn_error STATUS ERROR [LINENO LOG_FD] 20384# ---------------------------------------- 20385# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20386# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20387# script with STATUS, using 1 if that was 0. 20388as_fn_error () 20389{ 20390 as_status=$1; test $as_status -eq 0 && as_status=1 20391 if test "$4"; then 20392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20394 fi 20395 $as_echo "$as_me: error: $2" >&2 20396 as_fn_exit $as_status 20397} # as_fn_error 20398 20399 20400# as_fn_set_status STATUS 20401# ----------------------- 20402# Set $? to STATUS, without forking. 20403as_fn_set_status () 20404{ 20405 return $1 20406} # as_fn_set_status 20407 20408# as_fn_exit STATUS 20409# ----------------- 20410# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20411as_fn_exit () 20412{ 20413 set +e 20414 as_fn_set_status $1 20415 exit $1 20416} # as_fn_exit 20417 20418# as_fn_unset VAR 20419# --------------- 20420# Portably unset VAR. 20421as_fn_unset () 20422{ 20423 { eval $1=; unset $1;} 20424} 20425as_unset=as_fn_unset 20426# as_fn_append VAR VALUE 20427# ---------------------- 20428# Append the text in VALUE to the end of the definition contained in VAR. Take 20429# advantage of any shell optimizations that allow amortized linear growth over 20430# repeated appends, instead of the typical quadratic growth present in naive 20431# implementations. 20432if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20433 eval 'as_fn_append () 20434 { 20435 eval $1+=\$2 20436 }' 20437else 20438 as_fn_append () 20439 { 20440 eval $1=\$$1\$2 20441 } 20442fi # as_fn_append 20443 20444# as_fn_arith ARG... 20445# ------------------ 20446# Perform arithmetic evaluation on the ARGs, and store the result in the 20447# global $as_val. Take advantage of shells that can avoid forks. The arguments 20448# must be portable across $(()) and expr. 20449if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20450 eval 'as_fn_arith () 20451 { 20452 as_val=$(( $* )) 20453 }' 20454else 20455 as_fn_arith () 20456 { 20457 as_val=`expr "$@" || test $? -eq 1` 20458 } 20459fi # as_fn_arith 20460 20461 20462if expr a : '\(a\)' >/dev/null 2>&1 && 20463 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20464 as_expr=expr 20465else 20466 as_expr=false 20467fi 20468 20469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20470 as_basename=basename 20471else 20472 as_basename=false 20473fi 20474 20475if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20476 as_dirname=dirname 20477else 20478 as_dirname=false 20479fi 20480 20481as_me=`$as_basename -- "$0" || 20482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20483 X"$0" : 'X\(//\)$' \| \ 20484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20485$as_echo X/"$0" | 20486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20487 s//\1/ 20488 q 20489 } 20490 /^X\/\(\/\/\)$/{ 20491 s//\1/ 20492 q 20493 } 20494 /^X\/\(\/\).*/{ 20495 s//\1/ 20496 q 20497 } 20498 s/.*/./; q'` 20499 20500# Avoid depending upon Character Ranges. 20501as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20503as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20504as_cr_digits='0123456789' 20505as_cr_alnum=$as_cr_Letters$as_cr_digits 20506 20507ECHO_C= ECHO_N= ECHO_T= 20508case `echo -n x` in #((((( 20509-n*) 20510 case `echo 'xy\c'` in 20511 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20512 xy) ECHO_C='\c';; 20513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20514 ECHO_T=' ';; 20515 esac;; 20516*) 20517 ECHO_N='-n';; 20518esac 20519 20520rm -f conf$$ conf$$.exe conf$$.file 20521if test -d conf$$.dir; then 20522 rm -f conf$$.dir/conf$$.file 20523else 20524 rm -f conf$$.dir 20525 mkdir conf$$.dir 2>/dev/null 20526fi 20527if (echo >conf$$.file) 2>/dev/null; then 20528 if ln -s conf$$.file conf$$ 2>/dev/null; then 20529 as_ln_s='ln -s' 20530 # ... but there are two gotchas: 20531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20533 # In both cases, we have to default to `cp -pR'. 20534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20535 as_ln_s='cp -pR' 20536 elif ln conf$$.file conf$$ 2>/dev/null; then 20537 as_ln_s=ln 20538 else 20539 as_ln_s='cp -pR' 20540 fi 20541else 20542 as_ln_s='cp -pR' 20543fi 20544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20545rmdir conf$$.dir 2>/dev/null 20546 20547 20548# as_fn_mkdir_p 20549# ------------- 20550# Create "$as_dir" as a directory, including parents if necessary. 20551as_fn_mkdir_p () 20552{ 20553 20554 case $as_dir in #( 20555 -*) as_dir=./$as_dir;; 20556 esac 20557 test -d "$as_dir" || eval $as_mkdir_p || { 20558 as_dirs= 20559 while :; do 20560 case $as_dir in #( 20561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20562 *) as_qdir=$as_dir;; 20563 esac 20564 as_dirs="'$as_qdir' $as_dirs" 20565 as_dir=`$as_dirname -- "$as_dir" || 20566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20567 X"$as_dir" : 'X\(//\)[^/]' \| \ 20568 X"$as_dir" : 'X\(//\)$' \| \ 20569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20570$as_echo X"$as_dir" | 20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20572 s//\1/ 20573 q 20574 } 20575 /^X\(\/\/\)[^/].*/{ 20576 s//\1/ 20577 q 20578 } 20579 /^X\(\/\/\)$/{ 20580 s//\1/ 20581 q 20582 } 20583 /^X\(\/\).*/{ 20584 s//\1/ 20585 q 20586 } 20587 s/.*/./; q'` 20588 test -d "$as_dir" && break 20589 done 20590 test -z "$as_dirs" || eval "mkdir $as_dirs" 20591 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20592 20593 20594} # as_fn_mkdir_p 20595if mkdir -p . 2>/dev/null; then 20596 as_mkdir_p='mkdir -p "$as_dir"' 20597else 20598 test -d ./-p && rmdir ./-p 20599 as_mkdir_p=false 20600fi 20601 20602 20603# as_fn_executable_p FILE 20604# ----------------------- 20605# Test if FILE is an executable regular file. 20606as_fn_executable_p () 20607{ 20608 test -f "$1" && test -x "$1" 20609} # as_fn_executable_p 20610as_test_x='test -x' 20611as_executable_p=as_fn_executable_p 20612 20613# Sed expression to map a string onto a valid CPP name. 20614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20615 20616# Sed expression to map a string onto a valid variable name. 20617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20618 20619 20620exec 6>&1 20621## ----------------------------------- ## 20622## Main body of $CONFIG_STATUS script. ## 20623## ----------------------------------- ## 20624_ASEOF 20625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20626 20627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20628# Save the log message, to keep $0 and so on meaningful, and to 20629# report actual input values of CONFIG_FILES etc. instead of their 20630# values after options handling. 20631ac_log=" 20632This file was extended by LibTIFF Software $as_me 4.0.3, which was 20633generated by GNU Autoconf 2.69. Invocation command line was 20634 20635 CONFIG_FILES = $CONFIG_FILES 20636 CONFIG_HEADERS = $CONFIG_HEADERS 20637 CONFIG_LINKS = $CONFIG_LINKS 20638 CONFIG_COMMANDS = $CONFIG_COMMANDS 20639 $ $0 $@ 20640 20641on `(hostname || uname -n) 2>/dev/null | sed 1q` 20642" 20643 20644_ACEOF 20645 20646case $ac_config_files in *" 20647"*) set x $ac_config_files; shift; ac_config_files=$*;; 20648esac 20649 20650case $ac_config_headers in *" 20651"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20652esac 20653 20654 20655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20656# Files that config.status was made for. 20657config_files="$ac_config_files" 20658config_headers="$ac_config_headers" 20659config_commands="$ac_config_commands" 20660 20661_ACEOF 20662 20663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20664ac_cs_usage="\ 20665\`$as_me' instantiates files and other configuration actions 20666from templates according to the current configuration. Unless the files 20667and actions are specified as TAGs, all are instantiated by default. 20668 20669Usage: $0 [OPTION]... [TAG]... 20670 20671 -h, --help print this help, then exit 20672 -V, --version print version number and configuration settings, then exit 20673 --config print configuration, then exit 20674 -q, --quiet, --silent 20675 do not print progress messages 20676 -d, --debug don't remove temporary files 20677 --recheck update $as_me by reconfiguring in the same conditions 20678 --file=FILE[:TEMPLATE] 20679 instantiate the configuration file FILE 20680 --header=FILE[:TEMPLATE] 20681 instantiate the configuration header FILE 20682 20683Configuration files: 20684$config_files 20685 20686Configuration headers: 20687$config_headers 20688 20689Configuration commands: 20690$config_commands 20691 20692Report bugs to <[email protected]>." 20693 20694_ACEOF 20695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20696ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20697ac_cs_version="\\ 20698LibTIFF Software config.status 4.0.3 20699configured by $0, generated by GNU Autoconf 2.69, 20700 with options \\"\$ac_cs_config\\" 20701 20702Copyright (C) 2012 Free Software Foundation, Inc. 20703This config.status script is free software; the Free Software Foundation 20704gives unlimited permission to copy, distribute and modify it." 20705 20706ac_pwd='$ac_pwd' 20707srcdir='$srcdir' 20708INSTALL='$INSTALL' 20709MKDIR_P='$MKDIR_P' 20710AWK='$AWK' 20711test -n "\$AWK" || AWK=awk 20712_ACEOF 20713 20714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20715# The default lists apply if the user does not specify any file. 20716ac_need_defaults=: 20717while test $# != 0 20718do 20719 case $1 in 20720 --*=?*) 20721 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20722 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20723 ac_shift=: 20724 ;; 20725 --*=) 20726 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20727 ac_optarg= 20728 ac_shift=: 20729 ;; 20730 *) 20731 ac_option=$1 20732 ac_optarg=$2 20733 ac_shift=shift 20734 ;; 20735 esac 20736 20737 case $ac_option in 20738 # Handling of the options. 20739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20740 ac_cs_recheck=: ;; 20741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20742 $as_echo "$ac_cs_version"; exit ;; 20743 --config | --confi | --conf | --con | --co | --c ) 20744 $as_echo "$ac_cs_config"; exit ;; 20745 --debug | --debu | --deb | --de | --d | -d ) 20746 debug=: ;; 20747 --file | --fil | --fi | --f ) 20748 $ac_shift 20749 case $ac_optarg in 20750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20751 '') as_fn_error $? "missing file argument" ;; 20752 esac 20753 as_fn_append CONFIG_FILES " '$ac_optarg'" 20754 ac_need_defaults=false;; 20755 --header | --heade | --head | --hea ) 20756 $ac_shift 20757 case $ac_optarg in 20758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20759 esac 20760 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20761 ac_need_defaults=false;; 20762 --he | --h) 20763 # Conflict between --help and --header 20764 as_fn_error $? "ambiguous option: \`$1' 20765Try \`$0 --help' for more information.";; 20766 --help | --hel | -h ) 20767 $as_echo "$ac_cs_usage"; exit ;; 20768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20769 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20770 ac_cs_silent=: ;; 20771 20772 # This is an error. 20773 -*) as_fn_error $? "unrecognized option: \`$1' 20774Try \`$0 --help' for more information." ;; 20775 20776 *) as_fn_append ac_config_targets " $1" 20777 ac_need_defaults=false ;; 20778 20779 esac 20780 shift 20781done 20782 20783ac_configure_extra_args= 20784 20785if $ac_cs_silent; then 20786 exec 6>/dev/null 20787 ac_configure_extra_args="$ac_configure_extra_args --silent" 20788fi 20789 20790_ACEOF 20791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20792if \$ac_cs_recheck; then 20793 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20794 shift 20795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20796 CONFIG_SHELL='$SHELL' 20797 export CONFIG_SHELL 20798 exec "\$@" 20799fi 20800 20801_ACEOF 20802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20803exec 5>>config.log 20804{ 20805 echo 20806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20807## Running $as_me. ## 20808_ASBOX 20809 $as_echo "$ac_log" 20810} >&5 20811 20812_ACEOF 20813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20814# 20815# INIT-COMMANDS 20816# 20817AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20818 20819 20820# The HP-UX ksh and POSIX shell print the target directory to stdout 20821# if CDPATH is set. 20822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20823 20824sed_quote_subst='$sed_quote_subst' 20825double_quote_subst='$double_quote_subst' 20826delay_variable_subst='$delay_variable_subst' 20827macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20828macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20829AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20830DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20831OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20832enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20833enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20834pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20835enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20836SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20837ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20838PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20839host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20840host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20841host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20842build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20843build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20844build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20845SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20846Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20847GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20848EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20849FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20850LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20851NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20852LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20853max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20854ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20855exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20856lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20857lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20858lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20859lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20860lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20861reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20862reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20863deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20864file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20865file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20866want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20867sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20868AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20869AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20870archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20871STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20872RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20873old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20874old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20875old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20876lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20877CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20878CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20879compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20880GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20881lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20882lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20883lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20885lt_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"`' 20886lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20887nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20888lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20889lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20890objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20891MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20892lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20893lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20894lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20895lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20896lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20897need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20898MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20899DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20900NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20901LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20902OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20903OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20904libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20905shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20906extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20907archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20908enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20909export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20910whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20911compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20912old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20913old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20914archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20915archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20916module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20917module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20918with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20919allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20920no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20921hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20922hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20923hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20924hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20925hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20926hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20927hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20928inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20929link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20930always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20931export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20932exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20933include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20934prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20935postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20936file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20937variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20938need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20939need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20940version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20941runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20942shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20943shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20944libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20945library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20946soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20947install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20948postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20949postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20950finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20951finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20952hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20953sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20954sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20955hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20956enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20957enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20958enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20959old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20960striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20961compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20962predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20963postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20964predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20965postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20966compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20967LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20968reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20969reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20970old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20971compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20972GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20973lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20974lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20975lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20976lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20977lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20978archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20979enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20980export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20981whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20982compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20983old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20984old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20985archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20986archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20987module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20988module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20989with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20990allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20991no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20992hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20993hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20994hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20995hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20996hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20997hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20998hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20999inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21000link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21001always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21002export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21003exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21004include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21005prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21006postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21007file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21008hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21009compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21010predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21011postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21012predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21013postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21014compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21015 21016LTCC='$LTCC' 21017LTCFLAGS='$LTCFLAGS' 21018compiler='$compiler_DEFAULT' 21019 21020# A function that is used when there is no print builtin or printf. 21021func_fallback_echo () 21022{ 21023 eval 'cat <<_LTECHO_EOF 21024\$1 21025_LTECHO_EOF' 21026} 21027 21028# Quote evaled strings. 21029for var in AS \ 21030DLLTOOL \ 21031OBJDUMP \ 21032SHELL \ 21033ECHO \ 21034PATH_SEPARATOR \ 21035SED \ 21036GREP \ 21037EGREP \ 21038FGREP \ 21039LD \ 21040NM \ 21041LN_S \ 21042lt_SP2NL \ 21043lt_NL2SP \ 21044reload_flag \ 21045deplibs_check_method \ 21046file_magic_cmd \ 21047file_magic_glob \ 21048want_nocaseglob \ 21049sharedlib_from_linklib_cmd \ 21050AR \ 21051AR_FLAGS \ 21052archiver_list_spec \ 21053STRIP \ 21054RANLIB \ 21055CC \ 21056CFLAGS \ 21057compiler \ 21058lt_cv_sys_global_symbol_pipe \ 21059lt_cv_sys_global_symbol_to_cdecl \ 21060lt_cv_sys_global_symbol_to_import \ 21061lt_cv_sys_global_symbol_to_c_name_address \ 21062lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21063lt_cv_nm_interface \ 21064nm_file_list_spec \ 21065lt_cv_truncate_bin \ 21066lt_prog_compiler_no_builtin_flag \ 21067lt_prog_compiler_pic \ 21068lt_prog_compiler_wl \ 21069lt_prog_compiler_static \ 21070lt_cv_prog_compiler_c_o \ 21071need_locks \ 21072MANIFEST_TOOL \ 21073DSYMUTIL \ 21074NMEDIT \ 21075LIPO \ 21076OTOOL \ 21077OTOOL64 \ 21078shrext_cmds \ 21079export_dynamic_flag_spec \ 21080whole_archive_flag_spec \ 21081compiler_needs_object \ 21082with_gnu_ld \ 21083allow_undefined_flag \ 21084no_undefined_flag \ 21085hardcode_libdir_flag_spec \ 21086hardcode_libdir_separator \ 21087exclude_expsyms \ 21088include_expsyms \ 21089file_list_spec \ 21090variables_saved_for_relink \ 21091libname_spec \ 21092library_names_spec \ 21093soname_spec \ 21094install_override_mode \ 21095finish_eval \ 21096old_striplib \ 21097striplib \ 21098compiler_lib_search_dirs \ 21099predep_objects \ 21100postdep_objects \ 21101predeps \ 21102postdeps \ 21103compiler_lib_search_path \ 21104LD_CXX \ 21105reload_flag_CXX \ 21106compiler_CXX \ 21107lt_prog_compiler_no_builtin_flag_CXX \ 21108lt_prog_compiler_pic_CXX \ 21109lt_prog_compiler_wl_CXX \ 21110lt_prog_compiler_static_CXX \ 21111lt_cv_prog_compiler_c_o_CXX \ 21112export_dynamic_flag_spec_CXX \ 21113whole_archive_flag_spec_CXX \ 21114compiler_needs_object_CXX \ 21115with_gnu_ld_CXX \ 21116allow_undefined_flag_CXX \ 21117no_undefined_flag_CXX \ 21118hardcode_libdir_flag_spec_CXX \ 21119hardcode_libdir_separator_CXX \ 21120exclude_expsyms_CXX \ 21121include_expsyms_CXX \ 21122file_list_spec_CXX \ 21123compiler_lib_search_dirs_CXX \ 21124predep_objects_CXX \ 21125postdep_objects_CXX \ 21126predeps_CXX \ 21127postdeps_CXX \ 21128compiler_lib_search_path_CXX; do 21129 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21130 *[\\\\\\\`\\"\\\$]*) 21131 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21132 ;; 21133 *) 21134 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21135 ;; 21136 esac 21137done 21138 21139# Double-quote double-evaled strings. 21140for var in reload_cmds \ 21141old_postinstall_cmds \ 21142old_postuninstall_cmds \ 21143old_archive_cmds \ 21144extract_expsyms_cmds \ 21145old_archive_from_new_cmds \ 21146old_archive_from_expsyms_cmds \ 21147archive_cmds \ 21148archive_expsym_cmds \ 21149module_cmds \ 21150module_expsym_cmds \ 21151export_symbols_cmds \ 21152prelink_cmds \ 21153postlink_cmds \ 21154postinstall_cmds \ 21155postuninstall_cmds \ 21156finish_cmds \ 21157sys_lib_search_path_spec \ 21158sys_lib_dlsearch_path_spec \ 21159reload_cmds_CXX \ 21160old_archive_cmds_CXX \ 21161old_archive_from_new_cmds_CXX \ 21162old_archive_from_expsyms_cmds_CXX \ 21163archive_cmds_CXX \ 21164archive_expsym_cmds_CXX \ 21165module_cmds_CXX \ 21166module_expsym_cmds_CXX \ 21167export_symbols_cmds_CXX \ 21168prelink_cmds_CXX \ 21169postlink_cmds_CXX; do 21170 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21171 *[\\\\\\\`\\"\\\$]*) 21172 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21173 ;; 21174 *) 21175 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21176 ;; 21177 esac 21178done 21179 21180ac_aux_dir='$ac_aux_dir' 21181 21182# See if we are running on zsh, and set the options that allow our 21183# commands through without removal of \ escapes INIT. 21184if test -n "\${ZSH_VERSION+set}"; then 21185 setopt NO_GLOB_SUBST 21186fi 21187 21188 21189 PACKAGE='$PACKAGE' 21190 VERSION='$VERSION' 21191 RM='$RM' 21192 ofile='$ofile' 21193 21194 21195 21196 21197 21198 21199_ACEOF 21200 21201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21202 21203# Handling of arguments. 21204for ac_config_target in $ac_config_targets 21205do 21206 case $ac_config_target in 21207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21209 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 21210 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 21211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21212 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 21213 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 21214 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 21215 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 21216 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 21217 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 21218 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 21219 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 21220 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 21221 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 21222 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 21223 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 21224 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 21225 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 21226 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 21227 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 21228 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 21229 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21230 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 21231 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21232 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21233 21234 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21235 esac 21236done 21237 21238 21239# If the user did not use the arguments to specify the items to instantiate, 21240# then the envvar interface is used. Set only those that are not. 21241# We use the long form for the default assignment because of an extremely 21242# bizarre bug on SunOS 4.1.3. 21243if $ac_need_defaults; then 21244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21246 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21247fi 21248 21249# Have a temporary directory for convenience. Make it in the build tree 21250# simply because there is no reason against having it here, and in addition, 21251# creating and moving files from /tmp can sometimes cause problems. 21252# Hook for its removal unless debugging. 21253# Note that there is a small window in which the directory will not be cleaned: 21254# after its creation but before its name has been assigned to `$tmp'. 21255$debug || 21256{ 21257 tmp= ac_tmp= 21258 trap 'exit_status=$? 21259 : "${ac_tmp:=$tmp}" 21260 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21261' 0 21262 trap 'as_fn_exit 1' 1 2 13 15 21263} 21264# Create a (secure) tmp directory for tmp files. 21265 21266{ 21267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21268 test -d "$tmp" 21269} || 21270{ 21271 tmp=./conf$$-$RANDOM 21272 (umask 077 && mkdir "$tmp") 21273} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21274ac_tmp=$tmp 21275 21276# Set up the scripts for CONFIG_FILES section. 21277# No need to generate them if there are no CONFIG_FILES. 21278# This happens for instance with `./config.status config.h'. 21279if test -n "$CONFIG_FILES"; then 21280 21281 21282ac_cr=`echo X | tr X '\015'` 21283# On cygwin, bash can eat \r inside `` if the user requested igncr. 21284# But we know of no other shell where ac_cr would be empty at this 21285# point, so we can use a bashism as a fallback. 21286if test "x$ac_cr" = x; then 21287 eval ac_cr=\$\'\\r\' 21288fi 21289ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21290if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21291 ac_cs_awk_cr='\\r' 21292else 21293 ac_cs_awk_cr=$ac_cr 21294fi 21295 21296echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21297_ACEOF 21298 21299 21300{ 21301 echo "cat >conf$$subs.awk <<_ACEOF" && 21302 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21303 echo "_ACEOF" 21304} >conf$$subs.sh || 21305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21306ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21307ac_delim='%!_!# ' 21308for ac_last_try in false false false false false :; do 21309 . ./conf$$subs.sh || 21310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21311 21312 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21313 if test $ac_delim_n = $ac_delim_num; then 21314 break 21315 elif $ac_last_try; then 21316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21317 else 21318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21319 fi 21320done 21321rm -f conf$$subs.sh 21322 21323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21324cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21325_ACEOF 21326sed -n ' 21327h 21328s/^/S["/; s/!.*/"]=/ 21329p 21330g 21331s/^[^!]*!// 21332:repl 21333t repl 21334s/'"$ac_delim"'$// 21335t delim 21336:nl 21337h 21338s/\(.\{148\}\)..*/\1/ 21339t more1 21340s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21341p 21342n 21343b repl 21344:more1 21345s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21346p 21347g 21348s/.\{148\}// 21349t nl 21350:delim 21351h 21352s/\(.\{148\}\)..*/\1/ 21353t more2 21354s/["\\]/\\&/g; s/^/"/; s/$/"/ 21355p 21356b 21357:more2 21358s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21359p 21360g 21361s/.\{148\}// 21362t delim 21363' <conf$$subs.awk | sed ' 21364/^[^""]/{ 21365 N 21366 s/\n// 21367} 21368' >>$CONFIG_STATUS || ac_write_fail=1 21369rm -f conf$$subs.awk 21370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21371_ACAWK 21372cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21373 for (key in S) S_is_set[key] = 1 21374 FS = "" 21375 21376} 21377{ 21378 line = $ 0 21379 nfields = split(line, field, "@") 21380 substed = 0 21381 len = length(field[1]) 21382 for (i = 2; i < nfields; i++) { 21383 key = field[i] 21384 keylen = length(key) 21385 if (S_is_set[key]) { 21386 value = S[key] 21387 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21388 len += length(value) + length(field[++i]) 21389 substed = 1 21390 } else 21391 len += 1 + keylen 21392 } 21393 21394 print line 21395} 21396 21397_ACAWK 21398_ACEOF 21399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21400if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21401 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21402else 21403 cat 21404fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21405 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21406_ACEOF 21407 21408# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21409# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21410# trailing colons and then remove the whole line if VPATH becomes empty 21411# (actually we leave an empty line to preserve line numbers). 21412if test "x$srcdir" = x.; then 21413 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21414h 21415s/// 21416s/^/:/ 21417s/[ ]*$/:/ 21418s/:\$(srcdir):/:/g 21419s/:\${srcdir}:/:/g 21420s/:@srcdir@:/:/g 21421s/^:*// 21422s/:*$// 21423x 21424s/\(=[ ]*\).*/\1/ 21425G 21426s/\n// 21427s/^[^=]*=[ ]*$// 21428}' 21429fi 21430 21431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21432fi # test -n "$CONFIG_FILES" 21433 21434# Set up the scripts for CONFIG_HEADERS section. 21435# No need to generate them if there are no CONFIG_HEADERS. 21436# This happens for instance with `./config.status Makefile'. 21437if test -n "$CONFIG_HEADERS"; then 21438cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21439BEGIN { 21440_ACEOF 21441 21442# Transform confdefs.h into an awk script `defines.awk', embedded as 21443# here-document in config.status, that substitutes the proper values into 21444# config.h.in to produce config.h. 21445 21446# Create a delimiter string that does not exist in confdefs.h, to ease 21447# handling of long lines. 21448ac_delim='%!_!# ' 21449for ac_last_try in false false :; do 21450 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21451 if test -z "$ac_tt"; then 21452 break 21453 elif $ac_last_try; then 21454 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21455 else 21456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21457 fi 21458done 21459 21460# For the awk script, D is an array of macro values keyed by name, 21461# likewise P contains macro parameters if any. Preserve backslash 21462# newline sequences. 21463 21464ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21465sed -n ' 21466s/.\{148\}/&'"$ac_delim"'/g 21467t rset 21468:rset 21469s/^[ ]*#[ ]*define[ ][ ]*/ / 21470t def 21471d 21472:def 21473s/\\$// 21474t bsnl 21475s/["\\]/\\&/g 21476s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21477D["\1"]=" \3"/p 21478s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21479d 21480:bsnl 21481s/["\\]/\\&/g 21482s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21483D["\1"]=" \3\\\\\\n"\\/p 21484t cont 21485s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21486t cont 21487d 21488:cont 21489n 21490s/.\{148\}/&'"$ac_delim"'/g 21491t clear 21492:clear 21493s/\\$// 21494t bsnlc 21495s/["\\]/\\&/g; s/^/"/; s/$/"/p 21496d 21497:bsnlc 21498s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21499b cont 21500' <confdefs.h | sed ' 21501s/'"$ac_delim"'/"\\\ 21502"/g' >>$CONFIG_STATUS || ac_write_fail=1 21503 21504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21505 for (key in D) D_is_set[key] = 1 21506 FS = "" 21507} 21508/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21509 line = \$ 0 21510 split(line, arg, " ") 21511 if (arg[1] == "#") { 21512 defundef = arg[2] 21513 mac1 = arg[3] 21514 } else { 21515 defundef = substr(arg[1], 2) 21516 mac1 = arg[2] 21517 } 21518 split(mac1, mac2, "(") #) 21519 macro = mac2[1] 21520 prefix = substr(line, 1, index(line, defundef) - 1) 21521 if (D_is_set[macro]) { 21522 # Preserve the white space surrounding the "#". 21523 print prefix "define", macro P[macro] D[macro] 21524 next 21525 } else { 21526 # Replace #undef with comments. This is necessary, for example, 21527 # in the case of _POSIX_SOURCE, which is predefined and required 21528 # on some systems where configure will not decide to define it. 21529 if (defundef == "undef") { 21530 print "/*", prefix defundef, macro, "*/" 21531 next 21532 } 21533 } 21534} 21535{ print } 21536_ACAWK 21537_ACEOF 21538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21539 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21540fi # test -n "$CONFIG_HEADERS" 21541 21542 21543eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21544shift 21545for ac_tag 21546do 21547 case $ac_tag in 21548 :[FHLC]) ac_mode=$ac_tag; continue;; 21549 esac 21550 case $ac_mode$ac_tag in 21551 :[FHL]*:*);; 21552 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21553 :[FH]-) ac_tag=-:-;; 21554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21555 esac 21556 ac_save_IFS=$IFS 21557 IFS=: 21558 set x $ac_tag 21559 IFS=$ac_save_IFS 21560 shift 21561 ac_file=$1 21562 shift 21563 21564 case $ac_mode in 21565 :L) ac_source=$1;; 21566 :[FH]) 21567 ac_file_inputs= 21568 for ac_f 21569 do 21570 case $ac_f in 21571 -) ac_f="$ac_tmp/stdin";; 21572 *) # Look for the file first in the build tree, then in the source tree 21573 # (if the path is not absolute). The absolute path cannot be DOS-style, 21574 # because $ac_f cannot contain `:'. 21575 test -f "$ac_f" || 21576 case $ac_f in 21577 [\\/$]*) false;; 21578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21579 esac || 21580 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21581 esac 21582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21583 as_fn_append ac_file_inputs " '$ac_f'" 21584 done 21585 21586 # Let's still pretend it is `configure' which instantiates (i.e., don't 21587 # use $as_me), people would be surprised to read: 21588 # /* config.h. Generated by config.status. */ 21589 configure_input='Generated from '` 21590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21591 `' by configure.' 21592 if test x"$ac_file" != x-; then 21593 configure_input="$ac_file. $configure_input" 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21595$as_echo "$as_me: creating $ac_file" >&6;} 21596 fi 21597 # Neutralize special characters interpreted by sed in replacement strings. 21598 case $configure_input in #( 21599 *\&* | *\|* | *\\* ) 21600 ac_sed_conf_input=`$as_echo "$configure_input" | 21601 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21602 *) ac_sed_conf_input=$configure_input;; 21603 esac 21604 21605 case $ac_tag in 21606 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21608 esac 21609 ;; 21610 esac 21611 21612 ac_dir=`$as_dirname -- "$ac_file" || 21613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21614 X"$ac_file" : 'X\(//\)[^/]' \| \ 21615 X"$ac_file" : 'X\(//\)$' \| \ 21616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21617$as_echo X"$ac_file" | 21618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21619 s//\1/ 21620 q 21621 } 21622 /^X\(\/\/\)[^/].*/{ 21623 s//\1/ 21624 q 21625 } 21626 /^X\(\/\/\)$/{ 21627 s//\1/ 21628 q 21629 } 21630 /^X\(\/\).*/{ 21631 s//\1/ 21632 q 21633 } 21634 s/.*/./; q'` 21635 as_dir="$ac_dir"; as_fn_mkdir_p 21636 ac_builddir=. 21637 21638case "$ac_dir" in 21639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21640*) 21641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21642 # A ".." for each directory in $ac_dir_suffix. 21643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21644 case $ac_top_builddir_sub in 21645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21647 esac ;; 21648esac 21649ac_abs_top_builddir=$ac_pwd 21650ac_abs_builddir=$ac_pwd$ac_dir_suffix 21651# for backward compatibility: 21652ac_top_builddir=$ac_top_build_prefix 21653 21654case $srcdir in 21655 .) # We are building in place. 21656 ac_srcdir=. 21657 ac_top_srcdir=$ac_top_builddir_sub 21658 ac_abs_top_srcdir=$ac_pwd ;; 21659 [\\/]* | ?:[\\/]* ) # Absolute name. 21660 ac_srcdir=$srcdir$ac_dir_suffix; 21661 ac_top_srcdir=$srcdir 21662 ac_abs_top_srcdir=$srcdir ;; 21663 *) # Relative name. 21664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21665 ac_top_srcdir=$ac_top_build_prefix$srcdir 21666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21667esac 21668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21669 21670 21671 case $ac_mode in 21672 :F) 21673 # 21674 # CONFIG_FILE 21675 # 21676 21677 case $INSTALL in 21678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21680 esac 21681 ac_MKDIR_P=$MKDIR_P 21682 case $MKDIR_P in 21683 [\\/$]* | ?:[\\/]* ) ;; 21684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21685 esac 21686_ACEOF 21687 21688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21689# If the template does not know about datarootdir, expand it. 21690# FIXME: This hack should be removed a few years after 2.60. 21691ac_datarootdir_hack=; ac_datarootdir_seen= 21692ac_sed_dataroot=' 21693/datarootdir/ { 21694 p 21695 q 21696} 21697/@datadir@/p 21698/@docdir@/p 21699/@infodir@/p 21700/@localedir@/p 21701/@mandir@/p' 21702case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21703*datarootdir*) ac_datarootdir_seen=yes;; 21704*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21706$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21707_ACEOF 21708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21709 ac_datarootdir_hack=' 21710 s&@datadir@&$datadir&g 21711 s&@docdir@&$docdir&g 21712 s&@infodir@&$infodir&g 21713 s&@localedir@&$localedir&g 21714 s&@mandir@&$mandir&g 21715 s&\\\${datarootdir}&$datarootdir&g' ;; 21716esac 21717_ACEOF 21718 21719# Neutralize VPATH when `$srcdir' = `.'. 21720# Shell code in configure.ac might set extrasub. 21721# FIXME: do we really want to maintain this feature? 21722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21723ac_sed_extra="$ac_vpsub 21724$extrasub 21725_ACEOF 21726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21727:t 21728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21729s|@configure_input@|$ac_sed_conf_input|;t t 21730s&@top_builddir@&$ac_top_builddir_sub&;t t 21731s&@top_build_prefix@&$ac_top_build_prefix&;t t 21732s&@srcdir@&$ac_srcdir&;t t 21733s&@abs_srcdir@&$ac_abs_srcdir&;t t 21734s&@top_srcdir@&$ac_top_srcdir&;t t 21735s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21736s&@builddir@&$ac_builddir&;t t 21737s&@abs_builddir@&$ac_abs_builddir&;t t 21738s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21739s&@INSTALL@&$ac_INSTALL&;t t 21740s&@MKDIR_P@&$ac_MKDIR_P&;t t 21741$ac_datarootdir_hack 21742" 21743eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21744 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21745 21746test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21747 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21749 "$ac_tmp/out"`; test -z "$ac_out"; } && 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21751which seems to be undefined. Please make sure it is defined" >&5 21752$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21753which seems to be undefined. Please make sure it is defined" >&2;} 21754 21755 rm -f "$ac_tmp/stdin" 21756 case $ac_file in 21757 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21758 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21759 esac \ 21760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21761 ;; 21762 :H) 21763 # 21764 # CONFIG_HEADER 21765 # 21766 if test x"$ac_file" != x-; then 21767 { 21768 $as_echo "/* $configure_input */" \ 21769 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21770 } >"$ac_tmp/config.h" \ 21771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21772 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21774$as_echo "$as_me: $ac_file is unchanged" >&6;} 21775 else 21776 rm -f "$ac_file" 21777 mv "$ac_tmp/config.h" "$ac_file" \ 21778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21779 fi 21780 else 21781 $as_echo "/* $configure_input */" \ 21782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21783 || as_fn_error $? "could not create -" "$LINENO" 5 21784 fi 21785# Compute "$ac_file"'s index in $config_headers. 21786_am_arg="$ac_file" 21787_am_stamp_count=1 21788for _am_header in $config_headers :; do 21789 case $_am_header in 21790 $_am_arg | $_am_arg:* ) 21791 break ;; 21792 * ) 21793 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21794 esac 21795done 21796echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21797$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21798 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21799 X"$_am_arg" : 'X\(//\)$' \| \ 21800 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21801$as_echo X"$_am_arg" | 21802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21803 s//\1/ 21804 q 21805 } 21806 /^X\(\/\/\)[^/].*/{ 21807 s//\1/ 21808 q 21809 } 21810 /^X\(\/\/\)$/{ 21811 s//\1/ 21812 q 21813 } 21814 /^X\(\/\).*/{ 21815 s//\1/ 21816 q 21817 } 21818 s/.*/./; q'`/stamp-h$_am_stamp_count 21819 ;; 21820 21821 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21822$as_echo "$as_me: executing $ac_file commands" >&6;} 21823 ;; 21824 esac 21825 21826 21827 case $ac_file$ac_mode in 21828 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21829 # Older Autoconf quotes --file arguments for eval, but not when files 21830 # are listed without --file. Let's play safe and only enable the eval 21831 # if we detect the quoting. 21832 case $CONFIG_FILES in 21833 *\'*) eval set x "$CONFIG_FILES" ;; 21834 *) set x $CONFIG_FILES ;; 21835 esac 21836 shift 21837 for mf 21838 do 21839 # Strip MF so we end up with the name of the file. 21840 mf=`echo "$mf" | sed -e 's/:.*$//'` 21841 # Check whether this is an Automake generated Makefile or not. 21842 # We used to match only the files named 'Makefile.in', but 21843 # some people rename them; so instead we look at the file content. 21844 # Grep'ing the first line is not enough: some people post-process 21845 # each Makefile.in and add a new line on top of each file to say so. 21846 # Grep'ing the whole file is not good either: AIX grep has a line 21847 # limit of 2048, but all sed's we know have understand at least 4000. 21848 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21849 dirpart=`$as_dirname -- "$mf" || 21850$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21851 X"$mf" : 'X\(//\)[^/]' \| \ 21852 X"$mf" : 'X\(//\)$' \| \ 21853 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21854$as_echo X"$mf" | 21855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21856 s//\1/ 21857 q 21858 } 21859 /^X\(\/\/\)[^/].*/{ 21860 s//\1/ 21861 q 21862 } 21863 /^X\(\/\/\)$/{ 21864 s//\1/ 21865 q 21866 } 21867 /^X\(\/\).*/{ 21868 s//\1/ 21869 q 21870 } 21871 s/.*/./; q'` 21872 else 21873 continue 21874 fi 21875 # Extract the definition of DEPDIR, am__include, and am__quote 21876 # from the Makefile without running 'make'. 21877 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21878 test -z "$DEPDIR" && continue 21879 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21880 test -z "$am__include" && continue 21881 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21882 # Find all dependency output files, they are included files with 21883 # $(DEPDIR) in their names. We invoke sed twice because it is the 21884 # simplest approach to changing $(DEPDIR) to its actual value in the 21885 # expansion. 21886 for file in `sed -n " 21887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21889 # Make sure the directory exists. 21890 test -f "$dirpart/$file" && continue 21891 fdir=`$as_dirname -- "$file" || 21892$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21893 X"$file" : 'X\(//\)[^/]' \| \ 21894 X"$file" : 'X\(//\)$' \| \ 21895 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21896$as_echo X"$file" | 21897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21898 s//\1/ 21899 q 21900 } 21901 /^X\(\/\/\)[^/].*/{ 21902 s//\1/ 21903 q 21904 } 21905 /^X\(\/\/\)$/{ 21906 s//\1/ 21907 q 21908 } 21909 /^X\(\/\).*/{ 21910 s//\1/ 21911 q 21912 } 21913 s/.*/./; q'` 21914 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21915 # echo "creating $dirpart/$file" 21916 echo '# dummy' > "$dirpart/$file" 21917 done 21918 done 21919} 21920 ;; 21921 "libtool":C) 21922 21923 # See if we are running on zsh, and set the options that allow our 21924 # commands through without removal of \ escapes. 21925 if test -n "${ZSH_VERSION+set}"; then 21926 setopt NO_GLOB_SUBST 21927 fi 21928 21929 cfgfile=${ofile}T 21930 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21931 $RM "$cfgfile" 21932 21933 cat <<_LT_EOF >> "$cfgfile" 21934#! $SHELL 21935# Generated automatically by $as_me ($PACKAGE) $VERSION 21936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21937# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21938 21939# Provide generalized library-building support services. 21940# Written by Gordon Matzigkeit, 1996 21941 21942# Copyright (C) 2014 Free Software Foundation, Inc. 21943# This is free software; see the source for copying conditions. There is NO 21944# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21945 21946# GNU Libtool is free software; you can redistribute it and/or modify 21947# it under the terms of the GNU General Public License as published by 21948# the Free Software Foundation; either version 2 of of the License, or 21949# (at your option) any later version. 21950# 21951# As a special exception to the GNU General Public License, if you 21952# distribute this file as part of a program or library that is built 21953# using GNU Libtool, you may include this file under the same 21954# distribution terms that you use for the rest of that program. 21955# 21956# GNU Libtool is distributed in the hope that it will be useful, but 21957# WITHOUT ANY WARRANTY; without even the implied warranty of 21958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21959# GNU General Public License for more details. 21960# 21961# You should have received a copy of the GNU General Public License 21962# along with this program. If not, see <http://www.gnu.org/licenses/>. 21963 21964 21965# The names of the tagged configurations supported by this script. 21966available_tags='CXX ' 21967 21968# ### BEGIN LIBTOOL CONFIG 21969 21970# Which release of libtool.m4 was used? 21971macro_version=$macro_version 21972macro_revision=$macro_revision 21973 21974# Assembler program. 21975AS=$lt_AS 21976 21977# DLL creation program. 21978DLLTOOL=$lt_DLLTOOL 21979 21980# Object dumper program. 21981OBJDUMP=$lt_OBJDUMP 21982 21983# Whether or not to build shared libraries. 21984build_libtool_libs=$enable_shared 21985 21986# Whether or not to build static libraries. 21987build_old_libs=$enable_static 21988 21989# What type of objects to build. 21990pic_mode=$pic_mode 21991 21992# Whether or not to optimize for fast installation. 21993fast_install=$enable_fast_install 21994 21995# Shell to use when invoking shell scripts. 21996SHELL=$lt_SHELL 21997 21998# An echo program that protects backslashes. 21999ECHO=$lt_ECHO 22000 22001# The PATH separator for the build system. 22002PATH_SEPARATOR=$lt_PATH_SEPARATOR 22003 22004# The host system. 22005host_alias=$host_alias 22006host=$host 22007host_os=$host_os 22008 22009# The build system. 22010build_alias=$build_alias 22011build=$build 22012build_os=$build_os 22013 22014# A sed program that does not truncate output. 22015SED=$lt_SED 22016 22017# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22018Xsed="\$SED -e 1s/^X//" 22019 22020# A grep program that handles long lines. 22021GREP=$lt_GREP 22022 22023# An ERE matcher. 22024EGREP=$lt_EGREP 22025 22026# A literal string matcher. 22027FGREP=$lt_FGREP 22028 22029# A BSD- or MS-compatible name lister. 22030NM=$lt_NM 22031 22032# Whether we need soft or hard links. 22033LN_S=$lt_LN_S 22034 22035# What is the maximum length of a command? 22036max_cmd_len=$max_cmd_len 22037 22038# Object file suffix (normally "o"). 22039objext=$ac_objext 22040 22041# Executable file suffix (normally ""). 22042exeext=$exeext 22043 22044# whether the shell understands "unset". 22045lt_unset=$lt_unset 22046 22047# turn spaces into newlines. 22048SP2NL=$lt_lt_SP2NL 22049 22050# turn newlines into spaces. 22051NL2SP=$lt_lt_NL2SP 22052 22053# convert \$build file names to \$host format. 22054to_host_file_cmd=$lt_cv_to_host_file_cmd 22055 22056# convert \$build files to toolchain format. 22057to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22058 22059# Method to check whether dependent libraries are shared objects. 22060deplibs_check_method=$lt_deplibs_check_method 22061 22062# Command to use when deplibs_check_method = "file_magic". 22063file_magic_cmd=$lt_file_magic_cmd 22064 22065# How to find potential files when deplibs_check_method = "file_magic". 22066file_magic_glob=$lt_file_magic_glob 22067 22068# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22069want_nocaseglob=$lt_want_nocaseglob 22070 22071# Command to associate shared and link libraries. 22072sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22073 22074# The archiver. 22075AR=$lt_AR 22076 22077# Flags to create an archive. 22078AR_FLAGS=$lt_AR_FLAGS 22079 22080# How to feed a file listing to the archiver. 22081archiver_list_spec=$lt_archiver_list_spec 22082 22083# A symbol stripping program. 22084STRIP=$lt_STRIP 22085 22086# Commands used to install an old-style archive. 22087RANLIB=$lt_RANLIB 22088old_postinstall_cmds=$lt_old_postinstall_cmds 22089old_postuninstall_cmds=$lt_old_postuninstall_cmds 22090 22091# Whether to use a lock for old archive extraction. 22092lock_old_archive_extraction=$lock_old_archive_extraction 22093 22094# A C compiler. 22095LTCC=$lt_CC 22096 22097# LTCC compiler flags. 22098LTCFLAGS=$lt_CFLAGS 22099 22100# Take the output of nm and produce a listing of raw symbols and C names. 22101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22102 22103# Transform the output of nm in a proper C declaration. 22104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22105 22106# Transform the output of nm into a list of symbols to manually relocate. 22107global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22108 22109# Transform the output of nm in a C name address pair. 22110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22111 22112# Transform the output of nm in a C name address pair when lib prefix is needed. 22113global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22114 22115# The name lister interface. 22116nm_interface=$lt_lt_cv_nm_interface 22117 22118# Specify filename containing input files for \$NM. 22119nm_file_list_spec=$lt_nm_file_list_spec 22120 22121# The root where to search for dependent libraries,and where our libraries should be installed. 22122lt_sysroot=$lt_sysroot 22123 22124# Command to truncate a binary pipe. 22125lt_truncate_bin=$lt_lt_cv_truncate_bin 22126 22127# The name of the directory that contains temporary libtool files. 22128objdir=$objdir 22129 22130# Used to examine libraries when file_magic_cmd begins with "file". 22131MAGIC_CMD=$MAGIC_CMD 22132 22133# Must we lock files when doing compilation? 22134need_locks=$lt_need_locks 22135 22136# Manifest tool. 22137MANIFEST_TOOL=$lt_MANIFEST_TOOL 22138 22139# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22140DSYMUTIL=$lt_DSYMUTIL 22141 22142# Tool to change global to local symbols on Mac OS X. 22143NMEDIT=$lt_NMEDIT 22144 22145# Tool to manipulate fat objects and archives on Mac OS X. 22146LIPO=$lt_LIPO 22147 22148# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22149OTOOL=$lt_OTOOL 22150 22151# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22152OTOOL64=$lt_OTOOL64 22153 22154# Old archive suffix (normally "a"). 22155libext=$libext 22156 22157# Shared library suffix (normally ".so"). 22158shrext_cmds=$lt_shrext_cmds 22159 22160# The commands to extract the exported symbol list from a shared archive. 22161extract_expsyms_cmds=$lt_extract_expsyms_cmds 22162 22163# Variables whose values should be saved in libtool wrapper scripts and 22164# restored at link time. 22165variables_saved_for_relink=$lt_variables_saved_for_relink 22166 22167# Do we need the "lib" prefix for modules? 22168need_lib_prefix=$need_lib_prefix 22169 22170# Do we need a version for libraries? 22171need_version=$need_version 22172 22173# Library versioning type. 22174version_type=$version_type 22175 22176# Shared library runtime path variable. 22177runpath_var=$runpath_var 22178 22179# Shared library path variable. 22180shlibpath_var=$shlibpath_var 22181 22182# Is shlibpath searched before the hard-coded library search path? 22183shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22184 22185# Format of library name prefix. 22186libname_spec=$lt_libname_spec 22187 22188# List of archive names. First name is the real one, the rest are links. 22189# The last name is the one that the linker finds with -lNAME 22190library_names_spec=$lt_library_names_spec 22191 22192# The coded name of the library, if different from the real name. 22193soname_spec=$lt_soname_spec 22194 22195# Permission mode override for installation of shared libraries. 22196install_override_mode=$lt_install_override_mode 22197 22198# Command to use after installation of a shared archive. 22199postinstall_cmds=$lt_postinstall_cmds 22200 22201# Command to use after uninstallation of a shared archive. 22202postuninstall_cmds=$lt_postuninstall_cmds 22203 22204# Commands used to finish a libtool library installation in a directory. 22205finish_cmds=$lt_finish_cmds 22206 22207# As "finish_cmds", except a single script fragment to be evaled but 22208# not shown. 22209finish_eval=$lt_finish_eval 22210 22211# Whether we should hardcode library paths into libraries. 22212hardcode_into_libs=$hardcode_into_libs 22213 22214# Compile-time system search path for libraries. 22215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22216 22217# Run-time system search path for libraries. 22218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22219 22220# Whether dlopen is supported. 22221dlopen_support=$enable_dlopen 22222 22223# Whether dlopen of programs is supported. 22224dlopen_self=$enable_dlopen_self 22225 22226# Whether dlopen of statically linked programs is supported. 22227dlopen_self_static=$enable_dlopen_self_static 22228 22229# Commands to strip libraries. 22230old_striplib=$lt_old_striplib 22231striplib=$lt_striplib 22232 22233 22234# The linker used to build libraries. 22235LD=$lt_LD 22236 22237# How to create reloadable object files. 22238reload_flag=$lt_reload_flag 22239reload_cmds=$lt_reload_cmds 22240 22241# Commands used to build an old-style archive. 22242old_archive_cmds=$lt_old_archive_cmds 22243 22244# A language specific compiler. 22245CC=$lt_compiler 22246 22247# Is the compiler the GNU compiler? 22248with_gcc=$GCC 22249 22250# Compiler flag to turn off builtin functions. 22251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22252 22253# Additional compiler flags for building library objects. 22254pic_flag=$lt_lt_prog_compiler_pic 22255 22256# How to pass a linker flag through the compiler. 22257wl=$lt_lt_prog_compiler_wl 22258 22259# Compiler flag to prevent dynamic linking. 22260link_static_flag=$lt_lt_prog_compiler_static 22261 22262# Does compiler simultaneously support -c and -o options? 22263compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22264 22265# Whether or not to add -lc for building shared libraries. 22266build_libtool_need_lc=$archive_cmds_need_lc 22267 22268# Whether or not to disallow shared libs when runtime libs are static. 22269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22270 22271# Compiler flag to allow reflexive dlopens. 22272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22273 22274# Compiler flag to generate shared objects directly from archives. 22275whole_archive_flag_spec=$lt_whole_archive_flag_spec 22276 22277# Whether the compiler copes with passing no objects directly. 22278compiler_needs_object=$lt_compiler_needs_object 22279 22280# Create an old-style archive from a shared archive. 22281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22282 22283# Create a temporary old-style archive to link instead of a shared archive. 22284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22285 22286# Commands used to build a shared archive. 22287archive_cmds=$lt_archive_cmds 22288archive_expsym_cmds=$lt_archive_expsym_cmds 22289 22290# Commands used to build a loadable module if different from building 22291# a shared archive. 22292module_cmds=$lt_module_cmds 22293module_expsym_cmds=$lt_module_expsym_cmds 22294 22295# Whether we are building with GNU ld or not. 22296with_gnu_ld=$lt_with_gnu_ld 22297 22298# Flag that allows shared libraries with undefined symbols to be built. 22299allow_undefined_flag=$lt_allow_undefined_flag 22300 22301# Flag that enforces no undefined symbols. 22302no_undefined_flag=$lt_no_undefined_flag 22303 22304# Flag to hardcode \$libdir into a binary during linking. 22305# This must work even if \$libdir does not exist 22306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22307 22308# Whether we need a single "-rpath" flag with a separated argument. 22309hardcode_libdir_separator=$lt_hardcode_libdir_separator 22310 22311# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22312# DIR into the resulting binary. 22313hardcode_direct=$hardcode_direct 22314 22315# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22316# DIR into the resulting binary and the resulting library dependency is 22317# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22318# library is relocated. 22319hardcode_direct_absolute=$hardcode_direct_absolute 22320 22321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22322# into the resulting binary. 22323hardcode_minus_L=$hardcode_minus_L 22324 22325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22326# into the resulting binary. 22327hardcode_shlibpath_var=$hardcode_shlibpath_var 22328 22329# Set to "yes" if building a shared library automatically hardcodes DIR 22330# into the library and all subsequent libraries and executables linked 22331# against it. 22332hardcode_automatic=$hardcode_automatic 22333 22334# Set to yes if linker adds runtime paths of dependent libraries 22335# to runtime path list. 22336inherit_rpath=$inherit_rpath 22337 22338# Whether libtool must link a program against all its dependency libraries. 22339link_all_deplibs=$link_all_deplibs 22340 22341# Set to "yes" if exported symbols are required. 22342always_export_symbols=$always_export_symbols 22343 22344# The commands to list exported symbols. 22345export_symbols_cmds=$lt_export_symbols_cmds 22346 22347# Symbols that should not be listed in the preloaded symbols. 22348exclude_expsyms=$lt_exclude_expsyms 22349 22350# Symbols that must always be exported. 22351include_expsyms=$lt_include_expsyms 22352 22353# Commands necessary for linking programs (against libraries) with templates. 22354prelink_cmds=$lt_prelink_cmds 22355 22356# Commands necessary for finishing linking programs. 22357postlink_cmds=$lt_postlink_cmds 22358 22359# Specify filename containing input files. 22360file_list_spec=$lt_file_list_spec 22361 22362# How to hardcode a shared library path into an executable. 22363hardcode_action=$hardcode_action 22364 22365# The directories searched by this compiler when creating a shared library. 22366compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22367 22368# Dependencies to place before and after the objects being linked to 22369# create a shared library. 22370predep_objects=$lt_predep_objects 22371postdep_objects=$lt_postdep_objects 22372predeps=$lt_predeps 22373postdeps=$lt_postdeps 22374 22375# The library search path used internally by the compiler when linking 22376# a shared library. 22377compiler_lib_search_path=$lt_compiler_lib_search_path 22378 22379# ### END LIBTOOL CONFIG 22380 22381_LT_EOF 22382 22383 case $host_os in 22384 aix3*) 22385 cat <<\_LT_EOF >> "$cfgfile" 22386# AIX sometimes has problems with the GCC collect2 program. For some 22387# reason, if we set the COLLECT_NAMES environment variable, the problems 22388# vanish in a puff of smoke. 22389if test set != "${COLLECT_NAMES+set}"; then 22390 COLLECT_NAMES= 22391 export COLLECT_NAMES 22392fi 22393_LT_EOF 22394 ;; 22395 esac 22396 22397 22398ltmain=$ac_aux_dir/ltmain.sh 22399 22400 22401 # We use sed instead of cat because bash on DJGPP gets confused if 22402 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22403 # text mode, it properly converts lines to CR/LF. This bash problem 22404 # is reportedly fixed, but why not run on old versions too? 22405 sed '$q' "$ltmain" >> "$cfgfile" \ 22406 || (rm -f "$cfgfile"; exit 1) 22407 22408 mv -f "$cfgfile" "$ofile" || 22409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22410 chmod +x "$ofile" 22411 22412 22413 cat <<_LT_EOF >> "$ofile" 22414 22415# ### BEGIN LIBTOOL TAG CONFIG: CXX 22416 22417# The linker used to build libraries. 22418LD=$lt_LD_CXX 22419 22420# How to create reloadable object files. 22421reload_flag=$lt_reload_flag_CXX 22422reload_cmds=$lt_reload_cmds_CXX 22423 22424# Commands used to build an old-style archive. 22425old_archive_cmds=$lt_old_archive_cmds_CXX 22426 22427# A language specific compiler. 22428CC=$lt_compiler_CXX 22429 22430# Is the compiler the GNU compiler? 22431with_gcc=$GCC_CXX 22432 22433# Compiler flag to turn off builtin functions. 22434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22435 22436# Additional compiler flags for building library objects. 22437pic_flag=$lt_lt_prog_compiler_pic_CXX 22438 22439# How to pass a linker flag through the compiler. 22440wl=$lt_lt_prog_compiler_wl_CXX 22441 22442# Compiler flag to prevent dynamic linking. 22443link_static_flag=$lt_lt_prog_compiler_static_CXX 22444 22445# Does compiler simultaneously support -c and -o options? 22446compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22447 22448# Whether or not to add -lc for building shared libraries. 22449build_libtool_need_lc=$archive_cmds_need_lc_CXX 22450 22451# Whether or not to disallow shared libs when runtime libs are static. 22452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22453 22454# Compiler flag to allow reflexive dlopens. 22455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22456 22457# Compiler flag to generate shared objects directly from archives. 22458whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22459 22460# Whether the compiler copes with passing no objects directly. 22461compiler_needs_object=$lt_compiler_needs_object_CXX 22462 22463# Create an old-style archive from a shared archive. 22464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22465 22466# Create a temporary old-style archive to link instead of a shared archive. 22467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22468 22469# Commands used to build a shared archive. 22470archive_cmds=$lt_archive_cmds_CXX 22471archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22472 22473# Commands used to build a loadable module if different from building 22474# a shared archive. 22475module_cmds=$lt_module_cmds_CXX 22476module_expsym_cmds=$lt_module_expsym_cmds_CXX 22477 22478# Whether we are building with GNU ld or not. 22479with_gnu_ld=$lt_with_gnu_ld_CXX 22480 22481# Flag that allows shared libraries with undefined symbols to be built. 22482allow_undefined_flag=$lt_allow_undefined_flag_CXX 22483 22484# Flag that enforces no undefined symbols. 22485no_undefined_flag=$lt_no_undefined_flag_CXX 22486 22487# Flag to hardcode \$libdir into a binary during linking. 22488# This must work even if \$libdir does not exist 22489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22490 22491# Whether we need a single "-rpath" flag with a separated argument. 22492hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22493 22494# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22495# DIR into the resulting binary. 22496hardcode_direct=$hardcode_direct_CXX 22497 22498# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22499# DIR into the resulting binary and the resulting library dependency is 22500# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22501# library is relocated. 22502hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22503 22504# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22505# into the resulting binary. 22506hardcode_minus_L=$hardcode_minus_L_CXX 22507 22508# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22509# into the resulting binary. 22510hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22511 22512# Set to "yes" if building a shared library automatically hardcodes DIR 22513# into the library and all subsequent libraries and executables linked 22514# against it. 22515hardcode_automatic=$hardcode_automatic_CXX 22516 22517# Set to yes if linker adds runtime paths of dependent libraries 22518# to runtime path list. 22519inherit_rpath=$inherit_rpath_CXX 22520 22521# Whether libtool must link a program against all its dependency libraries. 22522link_all_deplibs=$link_all_deplibs_CXX 22523 22524# Set to "yes" if exported symbols are required. 22525always_export_symbols=$always_export_symbols_CXX 22526 22527# The commands to list exported symbols. 22528export_symbols_cmds=$lt_export_symbols_cmds_CXX 22529 22530# Symbols that should not be listed in the preloaded symbols. 22531exclude_expsyms=$lt_exclude_expsyms_CXX 22532 22533# Symbols that must always be exported. 22534include_expsyms=$lt_include_expsyms_CXX 22535 22536# Commands necessary for linking programs (against libraries) with templates. 22537prelink_cmds=$lt_prelink_cmds_CXX 22538 22539# Commands necessary for finishing linking programs. 22540postlink_cmds=$lt_postlink_cmds_CXX 22541 22542# Specify filename containing input files. 22543file_list_spec=$lt_file_list_spec_CXX 22544 22545# How to hardcode a shared library path into an executable. 22546hardcode_action=$hardcode_action_CXX 22547 22548# The directories searched by this compiler when creating a shared library. 22549compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22550 22551# Dependencies to place before and after the objects being linked to 22552# create a shared library. 22553predep_objects=$lt_predep_objects_CXX 22554postdep_objects=$lt_postdep_objects_CXX 22555predeps=$lt_predeps_CXX 22556postdeps=$lt_postdeps_CXX 22557 22558# The library search path used internally by the compiler when linking 22559# a shared library. 22560compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22561 22562# ### END LIBTOOL TAG CONFIG: CXX 22563_LT_EOF 22564 22565 ;; 22566 22567 esac 22568done # for ac_tag 22569 22570 22571as_fn_exit 0 22572_ACEOF 22573ac_clean_files=$ac_clean_files_save 22574 22575test $ac_write_fail = 0 || 22576 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22577 22578 22579# configure is writing to config.log, and then calls config.status. 22580# config.status does its own redirection, appending to config.log. 22581# Unfortunately, on DOS this fails, as config.log is still kept open 22582# by configure, so config.status won't be able to write to it; its 22583# output is simply discarded. So we exec the FD to /dev/null, 22584# effectively closing config.log, so it can be properly (re)opened and 22585# appended to by config.status. When coming back to configure, we 22586# need to make the FD available again. 22587if test "$no_create" != yes; then 22588 ac_cs_success=: 22589 ac_config_status_args= 22590 test "$silent" = yes && 22591 ac_config_status_args="$ac_config_status_args --quiet" 22592 exec 5>/dev/null 22593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22594 exec 5>>config.log 22595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22596 # would make configure fail if this is the last instruction. 22597 $ac_cs_success || as_fn_exit 1 22598fi 22599if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22601$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22602fi 22603 22604 22605 22606echo "" 22607echo "Libtiff is now configured for ${host}" 22608echo "" 22609echo " Installation directory: ${prefix}" 22610echo " Documentation directory: ${LIBTIFF_DOCDIR}" 22611echo " C compiler: ${CC} ${CFLAGS}" 22612echo " C++ compiler: ${CXX} ${CXXFLAGS}" 22613echo " Enable runtime linker paths: ${HAVE_RPATH}" 22614echo " Enable linker symbol versioning: ${have_ld_version_script}" 22615echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 22616echo " Use win32 IO: ${win32_io_ok}" 22617echo "" 22618echo " Support for internal codecs:" 22619echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 22620echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 22621echo " LZW algorithm: ${HAVE_LZW}" 22622echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 22623echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 22624echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 22625echo "" 22626echo " Support for external codecs:" 22627echo " ZLIB support: ${HAVE_ZLIB}" 22628echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 22629echo " JPEG support: ${HAVE_JPEG}" 22630echo " Old JPEG support: ${HAVE_OJPEG}" 22631echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 22632echo " ISO JBIG support: ${HAVE_JBIG}" 22633echo " LZMA2 support: ${HAVE_LZMA}" 22634echo "" 22635echo " C++ support: ${HAVE_CXX}" 22636echo "" 22637echo " OpenGL support: ${HAVE_OPENGL}" 22638echo "" 22639 22640