1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for LibTIFF Software 4.0.0beta7. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell [email protected] and 250$0: [email protected] about your system, including 251$0: any error possibly output before this message. Then 252$0: install a modern shell, or manually run the script 253$0: under such a shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='LibTIFF Software' 572PACKAGE_TARNAME='tiff' 573PACKAGE_VERSION='4.0.0beta7' 574PACKAGE_STRING='LibTIFF Software 4.0.0beta7' 575PACKAGE_BUGREPORT='[email protected]' 576PACKAGE_URL='' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_subst_vars='am__EXEEXT_FALSE 615am__EXEEXT_TRUE 616LTLIBOBJS 617LIBDIR 618WIN32_IO_FALSE 619WIN32_IO_TRUE 620HAVE_OPENGL_FALSE 621HAVE_OPENGL_TRUE 622GLUT_LIBS 623GLUT_CFLAGS 624GLU_LIBS 625GLU_CFLAGS 626GL_LIBS 627GL_CFLAGS 628PTHREAD_CFLAGS 629PTHREAD_LIBS 630PTHREAD_CC 631ax_pthread_config 632X_EXTRA_LIBS 633X_LIBS 634X_PRE_LIBS 635X_CFLAGS 636XMKMF 637HAVE_CXX_FALSE 638HAVE_CXX_TRUE 639LIBTIFF_DOCDIR 640HAVE_RPATH_FALSE 641HAVE_RPATH_TRUE 642LIBOBJS 643tiff_libs_private 644AM_BACKSLASH 645AM_DEFAULT_VERBOSITY 646CXXCPP 647am__fastdepCXX_FALSE 648am__fastdepCXX_TRUE 649CXXDEPMODE 650ac_ct_CXX 651CXXFLAGS 652CXX 653CPP 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663NM 664ac_ct_DUMPBIN 665DUMPBIN 666LD 667FGREP 668EGREP 669GREP 670SED 671LIBTOOL 672OBJDUMP 673DLLTOOL 674AS 675LN_S 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__quote 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692LIBTIFF_RELEASE_DATE 693LIBTIFF_VERSION_INFO 694LIBTIFF_VERSION 695LIBTIFF_ALPHA_VERSION 696LIBTIFF_MICRO_VERSION 697LIBTIFF_MINOR_VERSION 698LIBTIFF_MAJOR_VERSION 699MAINT 700MAINTAINER_MODE_FALSE 701MAINTAINER_MODE_TRUE 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733target_alias 734host_alias 735build_alias 736LIBS 737ECHO_T 738ECHO_N 739ECHO_C 740DEFS 741mandir 742localedir 743libdir 744psdir 745pdfdir 746dvidir 747htmldir 748infodir 749docdir 750oldincludedir 751includedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL' 771ac_subst_files='' 772ac_user_opts=' 773enable_option_checking 774enable_maintainer_mode 775enable_dependency_tracking 776enable_shared 777enable_static 778with_pic 779enable_fast_install 780with_gnu_ld 781with_sysroot 782enable_libtool_lock 783enable_silent_rules 784enable_rpath 785enable_largefile 786with_docdir 787enable_ccitt 788enable_packbits 789enable_lzw 790enable_thunder 791enable_next 792enable_logluv 793enable_mdi 794enable_zlib 795with_zlib_include_dir 796with_zlib_lib_dir 797enable_pixarlog 798enable_jpeg 799with_jpeg_include_dir 800with_jpeg_lib_dir 801enable_old_jpeg 802enable_jbig 803with_jbig_include_dir 804with_jbig_lib_dir 805enable_lzma 806with_lzma_include_dir 807with_lzma_lib_dir 808enable_jpeg12 809with_jpeg12_include_dir 810with_jpeg12_lib 811enable_cxx 812with_x 813enable_strip_chopping 814with_default_strip_size 815enable_defer_strile_load 816enable_chunky_strip_read 817enable_extrasample_as_alpha 818enable_check_ycbcr_subsampling 819' 820 ac_precious_vars='build_alias 821host_alias 822target_alias 823CC 824CFLAGS 825LDFLAGS 826LIBS 827CPPFLAGS 828CPP 829CXX 830CXXFLAGS 831CCC 832CXXCPP 833XMKMF' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1290 If a cross compiler is detected then cross compile mode will be used" >&2 1291 elif test "x$build_alias" != "x$host_alias"; then 1292 cross_compiling=yes 1293 fi 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 as_fn_error $? "pwd does not report name of working directory" 1308 1309 1310# Find the source files, if location was not specified. 1311if test -z "$srcdir"; then 1312 ac_srcdir_defaulted=yes 1313 # Try the directory containing this script, then the parent directory. 1314 ac_confdir=`$as_dirname -- "$as_myself" || 1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1316 X"$as_myself" : 'X\(//\)[^/]' \| \ 1317 X"$as_myself" : 'X\(//\)$' \| \ 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1319$as_echo X"$as_myself" | 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)[^/].*/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\).*/{ 1333 s//\1/ 1334 q 1335 } 1336 s/.*/./; q'` 1337 srcdir=$ac_confdir 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 srcdir=.. 1340 fi 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if test ! -r "$srcdir/$ac_unique_file"; then 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1347fi 1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 1356# Remove unnecessary trailing slashes from srcdir. 1357# Double slashes in file names in object file debugging info 1358# mess up M-x gdb in Emacs. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for ac_var in $ac_precious_vars; do 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_env_${ac_var}_value=\$${ac_var} 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if test "$ac_init_help" = "long"; then 1373 # Omit some internal or obsolete options to make the list less imposing. 1374 # This message is too long to be a string in the A/UX 3.1 sh. 1375 cat <<_ACEOF 1376\`configure' configures LibTIFF Software 4.0.0beta7 to adapt to many kinds of systems. 1377 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 1386 -h, --help display this help and exit 1387 --help=short display options specific to this package 1388 --help=recursive display the short help of all the included packages 1389 -V, --version display version information and exit 1390 -q, --quiet, --silent do not print \`checking ...' messages 1391 --cache-file=FILE cache test results in FILE [disabled] 1392 -C, --config-cache alias for \`--cache-file=config.cache' 1393 -n, --no-create do not create output files 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1395 1396Installation directories: 1397 --prefix=PREFIX install architecture-independent files in PREFIX 1398 [$ac_default_prefix] 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1400 [PREFIX] 1401 1402By default, \`make install' will install all the files in 1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1405for instance \`--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine tuning of the installation directories: 1410 --bindir=DIR user executables [EPREFIX/bin] 1411 --sbindir=DIR system admin executables [EPREFIX/sbin] 1412 --libexecdir=DIR program executables [EPREFIX/libexec] 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1416 --libdir=DIR object code libraries [EPREFIX/lib] 1417 --includedir=DIR C header files [PREFIX/include] 1418 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1421 --infodir=DIR info documentation [DATAROOTDIR/info] 1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1423 --mandir=DIR man documentation [DATAROOTDIR/man] 1424 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1425 --htmldir=DIR html documentation [DOCDIR] 1426 --dvidir=DIR dvi documentation [DOCDIR] 1427 --pdfdir=DIR pdf documentation [DOCDIR] 1428 --psdir=DIR ps documentation [DOCDIR] 1429_ACEOF 1430 1431 cat <<\_ACEOF 1432 1433Program names: 1434 --program-prefix=PREFIX prepend PREFIX to installed program names 1435 --program-suffix=SUFFIX append SUFFIX to installed program names 1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1437 1438X features: 1439 --x-includes=DIR X include files are in DIR 1440 --x-libraries=DIR X library files are in DIR 1441 1442System types: 1443 --build=BUILD configure for building on BUILD [guessed] 1444 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of LibTIFF Software 4.0.0beta7:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-maintainer-mode enable make rules and dependencies not useful 1459 (and sometimes confusing) to the casual installer 1460 --disable-dependency-tracking speeds up one-time build 1461 --enable-dependency-tracking do not reject slow dependency extractors 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --enable-silent-rules less verbose build output (undo: `make V=1') 1468 --disable-silent-rules verbose build output (undo: `make V=0') 1469 --enable-rpath Enable runtime linker paths (-R libtool option) 1470 --disable-largefile omit support for large files 1471 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1472 --disable-packbits disable support for Macintosh PackBits algorithm 1473 --disable-lzw disable support for LZW algorithm 1474 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1475 --disable-next disable support for NeXT 2-bit RLE algorithm 1476 --disable-logluv disable support for LogLuv high dynamic range 1477 encoding 1478 --disable-mdi disable support for Microsoft Document Imaging 1479 --disable-zlib disable Zlib usage (required for Deflate 1480 compression, enabled by default) 1481 --disable-pixarlog disable support for Pixar log-format algorithm 1482 (requires Zlib) 1483 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1484 compression, enabled by default) 1485 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1486 enabled by default) 1487 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1488 compression, enabled by default) 1489 --disable-lzma disable liblzma usage (required for LZMA2 1490 compression, enabled by default) 1491 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1492 --enable-cxx enable C++ stream API building (requires C++ 1493 compiler) 1494 --disable-strip-chopping 1495 disable support for strip chopping (whether or not 1496 to convert single-strip uncompressed images to 1497 mutiple strips of specified size to reduce memory 1498 usage) 1499 --enable-defer-strile-load 1500 enable deferred strip/tile offset/size loading 1501 (experimental) 1502 --enable-chunky-strip-read 1503 enable reading large strips in chunks for 1504 TIFFReadScanline() (experimental) 1505 --disable-extrasample-as-alpha 1506 the RGBA interface will treat a fourth sample with 1507 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1508 packages produce RGBA files but don't mark the alpha 1509 properly 1510 --disable-check-ycbcr-subsampling 1511 disable picking up YCbCr subsampling info from the 1512 JPEG data stream to support files lacking the tag 1513 1514Optional Packages: 1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1518 both] 1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520 --with-sysroot=DIR Search for dependent libraries within DIR 1521 (or the compiler's sysroot if not specified). 1522 --with-docdir=DIR directory where documentation should be installed 1523 --with-zlib-include-dir=DIR 1524 location of Zlib headers 1525 --with-zlib-lib-dir=DIR location of Zlib library binary 1526 --with-jpeg-include-dir=DIR 1527 location of IJG JPEG library headers 1528 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1529 --with-jbig-include-dir=DIR 1530 location of JBIG-KIT headers 1531 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1532 --with-lzma-include-dir=DIR 1533 location of liblzma headers 1534 --with-lzma-lib-dir=DIR location of liblzma library binary 1535 --with-jpeg12-include-dir=DIR 1536 location of libjpeg 12bit headers 1537 --with-jpeg12-lib=LIBRARY 1538 path to libjpeg 12bit library 1539 --with-x use the X Window System 1540 --with-default-strip-size=SIZE 1541 default size of the strip in bytes (when strip 1542 chopping enabled) [[default=8192]] 1543 1544Some influential environment variables: 1545 CC C compiler command 1546 CFLAGS C compiler flags 1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1548 nonstandard directory <lib dir> 1549 LIBS libraries to pass to the linker, e.g. -l<library> 1550 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1551 you have headers in a nonstandard directory <include dir> 1552 CPP C preprocessor 1553 CXX C++ compiler command 1554 CXXFLAGS C++ compiler flags 1555 CXXCPP C++ preprocessor 1556 XMKMF Path to xmkmf, Makefile generator for X Window System 1557 1558Use these variables to override the choices made by `configure' or to help 1559it to find libraries and programs with nonstandard names/locations. 1560 1561Report bugs to <[email protected]>. 1562_ACEOF 1563ac_status=$? 1564fi 1565 1566if test "$ac_init_help" = "recursive"; then 1567 # If there are subdirs, report their specific --help. 1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1569 test -d "$ac_dir" || 1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1571 continue 1572 ac_builddir=. 1573 1574case "$ac_dir" in 1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576*) 1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1578 # A ".." for each directory in $ac_dir_suffix. 1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1580 case $ac_top_builddir_sub in 1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1583 esac ;; 1584esac 1585ac_abs_top_builddir=$ac_pwd 1586ac_abs_builddir=$ac_pwd$ac_dir_suffix 1587# for backward compatibility: 1588ac_top_builddir=$ac_top_build_prefix 1589 1590case $srcdir in 1591 .) # We are building in place. 1592 ac_srcdir=. 1593 ac_top_srcdir=$ac_top_builddir_sub 1594 ac_abs_top_srcdir=$ac_pwd ;; 1595 [\\/]* | ?:[\\/]* ) # Absolute name. 1596 ac_srcdir=$srcdir$ac_dir_suffix; 1597 ac_top_srcdir=$srcdir 1598 ac_abs_top_srcdir=$srcdir ;; 1599 *) # Relative name. 1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1601 ac_top_srcdir=$ac_top_build_prefix$srcdir 1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1603esac 1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1605 1606 cd "$ac_dir" || { ac_status=$?; continue; } 1607 # Check for guested configure. 1608 if test -f "$ac_srcdir/configure.gnu"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1611 elif test -f "$ac_srcdir/configure"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure" --help=recursive 1614 else 1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1616 fi || ac_status=$? 1617 cd "$ac_pwd" || { ac_status=$?; break; } 1618 done 1619fi 1620 1621test -n "$ac_init_help" && exit $ac_status 1622if $ac_init_version; then 1623 cat <<\_ACEOF 1624LibTIFF Software configure 4.0.0beta7 1625generated by GNU Autoconf 2.68 1626 1627Copyright (C) 2010 Free Software Foundation, Inc. 1628This configure script is free software; the Free Software Foundation 1629gives unlimited permission to copy, distribute and modify it. 1630_ACEOF 1631 exit 1632fi 1633 1634## ------------------------ ## 1635## Autoconf initialization. ## 1636## ------------------------ ## 1637 1638# ac_fn_c_try_compile LINENO 1639# -------------------------- 1640# Try to compile conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_c_try_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext 1645 if { { ac_try="$ac_compile" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_compile") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest.$ac_objext; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 $as_test_x conftest$ac_exeext 1704 }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721 1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists and can be compiled using the include files in 1725# INCLUDES, setting the cache variable VAR accordingly. 1726ac_fn_c_check_header_compile () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 eval "$3=yes" 1741else 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_c_try_cpp LINENO 1754# ---------------------- 1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_cpp () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_cpp conftest.$ac_ext" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } > conftest.i && { 1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_cpp 1789 1790# ac_fn_c_try_run LINENO 1791# ---------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1793# that executables *can* be run. 1794ac_fn_c_try_run () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1808 { { case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_try") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; }; }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: program exited with status $ac_status" >&5 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=$ac_status 1825fi 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_run 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_cxx_try_compile LINENO 1900# ---------------------------- 1901# Try to compile conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_cxx_try_compile () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 rm -f conftest.$ac_objext 1906 if { { ac_try="$ac_compile" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_compile") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { 1922 test -z "$ac_cxx_werror_flag" || 1923 test ! -s conftest.err 1924 } && test -s conftest.$ac_objext; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: failed program was:" >&5 1928sed 's/^/| /' conftest.$ac_ext >&5 1929 1930 ac_retval=1 1931fi 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_compile 1936 1937# ac_fn_cxx_try_cpp LINENO 1938# ------------------------ 1939# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_cxx_try_cpp () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 if { { ac_try="$ac_cpp conftest.$ac_ext" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949$as_echo "$ac_try_echo"; } >&5 1950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1951 ac_status=$? 1952 if test -s conftest.err; then 1953 grep -v '^ *+' conftest.err >conftest.er1 1954 cat conftest.er1 >&5 1955 mv -f conftest.er1 conftest.err 1956 fi 1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1958 test $ac_status = 0; } > conftest.i && { 1959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1960 test ! -s conftest.err 1961 }; then : 1962 ac_retval=0 1963else 1964 $as_echo "$as_me: failed program was:" >&5 1965sed 's/^/| /' conftest.$ac_ext >&5 1966 1967 ac_retval=1 1968fi 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_cxx_try_cpp 1973 1974# ac_fn_cxx_try_link LINENO 1975# ------------------------- 1976# Try to link conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_cxx_try_link () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 rm -f conftest.$ac_objext conftest$ac_exeext 1981 if { { ac_try="$ac_link" 1982case "(($ac_try" in 1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1984 *) ac_try_echo=$ac_try;; 1985esac 1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1987$as_echo "$ac_try_echo"; } >&5 1988 (eval "$ac_link") 2>conftest.err 1989 ac_status=$? 1990 if test -s conftest.err; then 1991 grep -v '^ *+' conftest.err >conftest.er1 1992 cat conftest.er1 >&5 1993 mv -f conftest.er1 conftest.err 1994 fi 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { 1997 test -z "$ac_cxx_werror_flag" || 1998 test ! -s conftest.err 1999 } && test -s conftest$ac_exeext && { 2000 test "$cross_compiling" = yes || 2001 $as_test_x conftest$ac_exeext 2002 }; then : 2003 ac_retval=0 2004else 2005 $as_echo "$as_me: failed program was:" >&5 2006sed 's/^/| /' conftest.$ac_ext >&5 2007 2008 ac_retval=1 2009fi 2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2012 # interfere with the next link command; also delete a directory that is 2013 # left behind by Apple's compiler. We do this before executing the actions. 2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 as_fn_set_status $ac_retval 2017 2018} # ac_fn_cxx_try_link 2019 2020# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2021# ------------------------------------------------------- 2022# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2023# the include files in INCLUDES and setting the cache variable VAR 2024# accordingly. 2025ac_fn_c_check_header_mongrel () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 if eval \${$3+:} false; then : 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037else 2038 # Is the header compilable? 2039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2040$as_echo_n "checking $2 usability... " >&6; } 2041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044#include <$2> 2045_ACEOF 2046if ac_fn_c_try_compile "$LINENO"; then : 2047 ac_header_compiler=yes 2048else 2049 ac_header_compiler=no 2050fi 2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2053$as_echo "$ac_header_compiler" >&6; } 2054 2055# Is the header present? 2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2057$as_echo_n "checking $2 presence... " >&6; } 2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060#include <$2> 2061_ACEOF 2062if ac_fn_c_try_cpp "$LINENO"; then : 2063 ac_header_preproc=yes 2064else 2065 ac_header_preproc=no 2066fi 2067rm -f conftest.err conftest.i conftest.$ac_ext 2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2069$as_echo "$ac_header_preproc" >&6; } 2070 2071# So? What about this header? 2072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2073 yes:no: ) 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2075$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2077$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2078 ;; 2079 no:yes:* ) 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2081$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2083$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2085$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2087$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2090( $as_echo "## -------------------------------------- ## 2091## Report this to [email protected] ## 2092## -------------------------------------- ##" 2093 ) | sed "s/^/$as_me: WARNING: /" >&2 2094 ;; 2095esac 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097$as_echo_n "checking for $2... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100else 2101 eval "$3=\$ac_header_compiler" 2102fi 2103eval ac_res=\$$3 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2105$as_echo "$ac_res" >&6; } 2106fi 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 2109} # ac_fn_c_check_header_mongrel 2110 2111# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2112# ------------------------------------------- 2113# Tests whether TYPE exists after having included INCLUDES, setting cache 2114# variable VAR accordingly. 2115ac_fn_c_check_type () 2116{ 2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2119$as_echo_n "checking for $2... " >&6; } 2120if eval \${$3+:} false; then : 2121 $as_echo_n "(cached) " >&6 2122else 2123 eval "$3=no" 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125/* end confdefs.h. */ 2126$4 2127int 2128main () 2129{ 2130if (sizeof ($2)) 2131 return 0; 2132 ; 2133 return 0; 2134} 2135_ACEOF 2136if ac_fn_c_try_compile "$LINENO"; then : 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139$4 2140int 2141main () 2142{ 2143if (sizeof (($2))) 2144 return 0; 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 2151else 2152 eval "$3=yes" 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157fi 2158eval ac_res=\$$3 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160$as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_type 2164 2165# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2166# -------------------------------------------- 2167# Tries to find the compile-time value of EXPR in a program that includes 2168# INCLUDES, setting VAR accordingly. Returns whether the value could be 2169# computed 2170ac_fn_c_compute_int () 2171{ 2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2173 if test "$cross_compiling" = yes; then 2174 # Depending upon the size, compute the lo and hi bounds. 2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array [1 - 2 * !(($2) >= 0)]; 2182test_array [0] = 0 2183 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_compile "$LINENO"; then : 2189 ac_lo=0 ac_mid=0 2190 while :; do 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2198test_array [0] = 0 2199 2200 ; 2201 return 0; 2202} 2203_ACEOF 2204if ac_fn_c_try_compile "$LINENO"; then : 2205 ac_hi=$ac_mid; break 2206else 2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2208 if test $ac_lo -le $ac_mid; then 2209 ac_lo= ac_hi= 2210 break 2211 fi 2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215 done 2216else 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218/* end confdefs.h. */ 2219$4 2220int 2221main () 2222{ 2223static int test_array [1 - 2 * !(($2) < 0)]; 2224test_array [0] = 0 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_hi=-1 ac_mid=-1 2232 while :; do 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2240test_array [0] = 0 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246if ac_fn_c_try_compile "$LINENO"; then : 2247 ac_lo=$ac_mid; break 2248else 2249 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2250 if test $ac_mid -le $ac_hi; then 2251 ac_lo= ac_hi= 2252 break 2253 fi 2254 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2255fi 2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257 done 2258else 2259 ac_lo= ac_hi= 2260fi 2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264# Binary search between lo and hi bounds. 2265while test "x$ac_lo" != "x$ac_hi"; do 2266 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2274test_array [0] = 0 2275 2276 ; 2277 return 0; 2278} 2279_ACEOF 2280if ac_fn_c_try_compile "$LINENO"; then : 2281 ac_hi=$ac_mid 2282else 2283 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2284fi 2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2286done 2287case $ac_lo in #(( 2288?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2289'') ac_retval=1 ;; 2290esac 2291 else 2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2293/* end confdefs.h. */ 2294$4 2295static long int longval () { return $2; } 2296static unsigned long int ulongval () { return $2; } 2297#include <stdio.h> 2298#include <stdlib.h> 2299int 2300main () 2301{ 2302 2303 FILE *f = fopen ("conftest.val", "w"); 2304 if (! f) 2305 return 1; 2306 if (($2) < 0) 2307 { 2308 long int i = longval (); 2309 if (i != ($2)) 2310 return 1; 2311 fprintf (f, "%ld", i); 2312 } 2313 else 2314 { 2315 unsigned long int i = ulongval (); 2316 if (i != ($2)) 2317 return 1; 2318 fprintf (f, "%lu", i); 2319 } 2320 /* Do not output a trailing newline, as this causes \r\n confusion 2321 on some platforms. */ 2322 return ferror (f) || fclose (f) != 0; 2323 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328if ac_fn_c_try_run "$LINENO"; then : 2329 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2330else 2331 ac_retval=1 2332fi 2333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2334 conftest.$ac_objext conftest.beam conftest.$ac_ext 2335rm -f conftest.val 2336 2337 fi 2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2339 as_fn_set_status $ac_retval 2340 2341} # ac_fn_c_compute_int 2342cat >config.log <<_ACEOF 2343This file contains any messages produced by compilers while 2344running configure, to aid debugging if configure makes a mistake. 2345 2346It was created by LibTIFF Software $as_me 4.0.0beta7, which was 2347generated by GNU Autoconf 2.68. Invocation command line was 2348 2349 $ $0 $@ 2350 2351_ACEOF 2352exec 5>>config.log 2353{ 2354cat <<_ASUNAME 2355## --------- ## 2356## Platform. ## 2357## --------- ## 2358 2359hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2360uname -m = `(uname -m) 2>/dev/null || echo unknown` 2361uname -r = `(uname -r) 2>/dev/null || echo unknown` 2362uname -s = `(uname -s) 2>/dev/null || echo unknown` 2363uname -v = `(uname -v) 2>/dev/null || echo unknown` 2364 2365/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2366/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2367 2368/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2369/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2370/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2371/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2372/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2373/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2374/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2375 2376_ASUNAME 2377 2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379for as_dir in $PATH 2380do 2381 IFS=$as_save_IFS 2382 test -z "$as_dir" && as_dir=. 2383 $as_echo "PATH: $as_dir" 2384 done 2385IFS=$as_save_IFS 2386 2387} >&5 2388 2389cat >&5 <<_ACEOF 2390 2391 2392## ----------- ## 2393## Core tests. ## 2394## ----------- ## 2395 2396_ACEOF 2397 2398 2399# Keep a trace of the command line. 2400# Strip out --no-create and --no-recursion so they do not pile up. 2401# Strip out --silent because we don't want to record it for future runs. 2402# Also quote any args containing shell meta-characters. 2403# Make two passes to allow for proper duplicate-argument suppression. 2404ac_configure_args= 2405ac_configure_args0= 2406ac_configure_args1= 2407ac_must_keep_next=false 2408for ac_pass in 1 2 2409do 2410 for ac_arg 2411 do 2412 case $ac_arg in 2413 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2415 | -silent | --silent | --silen | --sile | --sil) 2416 continue ;; 2417 *\'*) 2418 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2419 esac 2420 case $ac_pass in 2421 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2422 2) 2423 as_fn_append ac_configure_args1 " '$ac_arg'" 2424 if test $ac_must_keep_next = true; then 2425 ac_must_keep_next=false # Got value, back to normal. 2426 else 2427 case $ac_arg in 2428 *=* | --config-cache | -C | -disable-* | --disable-* \ 2429 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2430 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2431 | -with-* | --with-* | -without-* | --without-* | --x) 2432 case "$ac_configure_args0 " in 2433 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2434 esac 2435 ;; 2436 -* ) ac_must_keep_next=true ;; 2437 esac 2438 fi 2439 as_fn_append ac_configure_args " '$ac_arg'" 2440 ;; 2441 esac 2442 done 2443done 2444{ ac_configure_args0=; unset ac_configure_args0;} 2445{ ac_configure_args1=; unset ac_configure_args1;} 2446 2447# When interrupted or exit'd, cleanup temporary files, and complete 2448# config.log. We remove comments because anyway the quotes in there 2449# would cause problems or look ugly. 2450# WARNING: Use '\'' to represent an apostrophe within the trap. 2451# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2452trap 'exit_status=$? 2453 # Save into config.log some information that might help in debugging. 2454 { 2455 echo 2456 2457 $as_echo "## ---------------- ## 2458## Cache variables. ## 2459## ---------------- ##" 2460 echo 2461 # The following way of writing the cache mishandles newlines in values, 2462( 2463 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2464 eval ac_val=\$$ac_var 2465 case $ac_val in #( 2466 *${as_nl}*) 2467 case $ac_var in #( 2468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2469$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2470 esac 2471 case $ac_var in #( 2472 _ | IFS | as_nl) ;; #( 2473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2474 *) { eval $ac_var=; unset $ac_var;} ;; 2475 esac ;; 2476 esac 2477 done 2478 (set) 2>&1 | 2479 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2480 *${as_nl}ac_space=\ *) 2481 sed -n \ 2482 "s/'\''/'\''\\\\'\'''\''/g; 2483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2484 ;; #( 2485 *) 2486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2487 ;; 2488 esac | 2489 sort 2490) 2491 echo 2492 2493 $as_echo "## ----------------- ## 2494## Output variables. ## 2495## ----------------- ##" 2496 echo 2497 for ac_var in $ac_subst_vars 2498 do 2499 eval ac_val=\$$ac_var 2500 case $ac_val in 2501 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2502 esac 2503 $as_echo "$ac_var='\''$ac_val'\''" 2504 done | sort 2505 echo 2506 2507 if test -n "$ac_subst_files"; then 2508 $as_echo "## ------------------- ## 2509## File substitutions. ## 2510## ------------------- ##" 2511 echo 2512 for ac_var in $ac_subst_files 2513 do 2514 eval ac_val=\$$ac_var 2515 case $ac_val in 2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2517 esac 2518 $as_echo "$ac_var='\''$ac_val'\''" 2519 done | sort 2520 echo 2521 fi 2522 2523 if test -s confdefs.h; then 2524 $as_echo "## ----------- ## 2525## confdefs.h. ## 2526## ----------- ##" 2527 echo 2528 cat confdefs.h 2529 echo 2530 fi 2531 test "$ac_signal" != 0 && 2532 $as_echo "$as_me: caught signal $ac_signal" 2533 $as_echo "$as_me: exit $exit_status" 2534 } >&5 2535 rm -f core *.core core.conftest.* && 2536 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2537 exit $exit_status 2538' 0 2539for ac_signal in 1 2 13 15; do 2540 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2541done 2542ac_signal=0 2543 2544# confdefs.h avoids OS command line length limits that DEFS can exceed. 2545rm -f -r conftest* confdefs.h 2546 2547$as_echo "/* confdefs.h */" > confdefs.h 2548 2549# Predefined preprocessor variables. 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_NAME "$PACKAGE_NAME" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_VERSION "$PACKAGE_VERSION" 2561_ACEOF 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE_STRING "$PACKAGE_STRING" 2565_ACEOF 2566 2567cat >>confdefs.h <<_ACEOF 2568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2569_ACEOF 2570 2571cat >>confdefs.h <<_ACEOF 2572#define PACKAGE_URL "$PACKAGE_URL" 2573_ACEOF 2574 2575 2576# Let the site file select an alternate cache file if it wants to. 2577# Prefer an explicitly selected file to automatically selected ones. 2578ac_site_file1=NONE 2579ac_site_file2=NONE 2580if test -n "$CONFIG_SITE"; then 2581 # We do not want a PATH search for config.site. 2582 case $CONFIG_SITE in #(( 2583 -*) ac_site_file1=./$CONFIG_SITE;; 2584 */*) ac_site_file1=$CONFIG_SITE;; 2585 *) ac_site_file1=./$CONFIG_SITE;; 2586 esac 2587elif test "x$prefix" != xNONE; then 2588 ac_site_file1=$prefix/share/config.site 2589 ac_site_file2=$prefix/etc/config.site 2590else 2591 ac_site_file1=$ac_default_prefix/share/config.site 2592 ac_site_file2=$ac_default_prefix/etc/config.site 2593fi 2594for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2595do 2596 test "x$ac_site_file" = xNONE && continue 2597 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2599$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2600 sed 's/^/| /' "$ac_site_file" >&5 2601 . "$ac_site_file" \ 2602 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2604as_fn_error $? "failed to load site script $ac_site_file 2605See \`config.log' for more details" "$LINENO" 5; } 2606 fi 2607done 2608 2609if test -r "$cache_file"; then 2610 # Some versions of bash will fail to source /dev/null (special files 2611 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2612 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2614$as_echo "$as_me: loading cache $cache_file" >&6;} 2615 case $cache_file in 2616 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2617 *) . "./$cache_file";; 2618 esac 2619 fi 2620else 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2622$as_echo "$as_me: creating cache $cache_file" >&6;} 2623 >$cache_file 2624fi 2625 2626# Check that the precious variables saved in the cache have kept the same 2627# value. 2628ac_cache_corrupted=false 2629for ac_var in $ac_precious_vars; do 2630 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2631 eval ac_new_set=\$ac_env_${ac_var}_set 2632 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2633 eval ac_new_val=\$ac_env_${ac_var}_value 2634 case $ac_old_set,$ac_new_set in 2635 set,) 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2637$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2638 ac_cache_corrupted=: ;; 2639 ,set) 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2641$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2642 ac_cache_corrupted=: ;; 2643 ,);; 2644 *) 2645 if test "x$ac_old_val" != "x$ac_new_val"; then 2646 # differences in whitespace do not lead to failure. 2647 ac_old_val_w=`echo x $ac_old_val` 2648 ac_new_val_w=`echo x $ac_new_val` 2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2651$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2652 ac_cache_corrupted=: 2653 else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2655$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2656 eval $ac_var=\$ac_old_val 2657 fi 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2659$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2661$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2662 fi;; 2663 esac 2664 # Pass precious variables to config.status. 2665 if test "$ac_new_set" = set; then 2666 case $ac_new_val in 2667 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2668 *) ac_arg=$ac_var=$ac_new_val ;; 2669 esac 2670 case " $ac_configure_args " in 2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2672 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2673 esac 2674 fi 2675done 2676if $ac_cache_corrupted; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2680$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2681 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2682fi 2683## -------------------- ## 2684## Main body of script. ## 2685## -------------------- ## 2686 2687ac_ext=c 2688ac_cpp='$CPP $CPPFLAGS' 2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2691ac_compiler_gnu=$ac_cv_c_compiler_gnu 2692 2693 2694ac_aux_dir= 2695for ac_dir in config "$srcdir"/config; do 2696 if test -f "$ac_dir/install-sh"; then 2697 ac_aux_dir=$ac_dir 2698 ac_install_sh="$ac_aux_dir/install-sh -c" 2699 break 2700 elif test -f "$ac_dir/install.sh"; then 2701 ac_aux_dir=$ac_dir 2702 ac_install_sh="$ac_aux_dir/install.sh -c" 2703 break 2704 elif test -f "$ac_dir/shtool"; then 2705 ac_aux_dir=$ac_dir 2706 ac_install_sh="$ac_aux_dir/shtool install -c" 2707 break 2708 fi 2709done 2710if test -z "$ac_aux_dir"; then 2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2712fi 2713 2714# These three variables are undocumented and unsupported, 2715# and are intended to be withdrawn in a future Autoconf release. 2716# They can cause serious problems if a builder's source tree is in a directory 2717# whose full name contains unusual characters. 2718ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2719ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2720ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2721 2722 2723 2724ac_ext=c 2725ac_cpp='$CPP $CPPFLAGS' 2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2728ac_compiler_gnu=$ac_cv_c_compiler_gnu 2729 2730 2731# Make sure we can run config.sub. 2732$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2734 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2736$as_echo_n "checking build system type... " >&6; } 2737if ${ac_cv_build+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 ac_build_alias=$build_alias 2741test "x$ac_build_alias" = x && 2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2743test "x$ac_build_alias" = x && 2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2745ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2747 2748fi 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2750$as_echo "$ac_cv_build" >&6; } 2751case $ac_cv_build in 2752*-*-*) ;; 2753*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2754esac 2755build=$ac_cv_build 2756ac_save_IFS=$IFS; IFS='-' 2757set x $ac_cv_build 2758shift 2759build_cpu=$1 2760build_vendor=$2 2761shift; shift 2762# Remember, the first character of IFS is used to create $*, 2763# except with old shells: 2764build_os=$* 2765IFS=$ac_save_IFS 2766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2767 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2770$as_echo_n "checking host system type... " >&6; } 2771if ${ac_cv_host+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test "x$host_alias" = x; then 2775 ac_cv_host=$ac_cv_build 2776else 2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2779fi 2780 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2783$as_echo "$ac_cv_host" >&6; } 2784case $ac_cv_host in 2785*-*-*) ;; 2786*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2787esac 2788host=$ac_cv_host 2789ac_save_IFS=$IFS; IFS='-' 2790set x $ac_cv_host 2791shift 2792host_cpu=$1 2793host_vendor=$2 2794shift; shift 2795# Remember, the first character of IFS is used to create $*, 2796# except with old shells: 2797host_os=$* 2798IFS=$ac_save_IFS 2799case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2800 2801 2802 2803am__api_version='1.11' 2804 2805# Find a good install program. We prefer a C program (faster), 2806# so one script is as good as another. But avoid the broken or 2807# incompatible versions: 2808# SysV /etc/install, /usr/sbin/install 2809# SunOS /usr/etc/install 2810# IRIX /sbin/install 2811# AIX /bin/install 2812# AmigaOS /C/install, which installs bootblocks on floppy discs 2813# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2814# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2815# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2816# OS/2's system install, which has a completely different semantic 2817# ./install, which can be erroneously created by make from ./install.sh. 2818# Reject install programs that cannot install multiple files. 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2820$as_echo_n "checking for a BSD-compatible install... " >&6; } 2821if test -z "$INSTALL"; then 2822if ${ac_cv_path_install+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 test -z "$as_dir" && as_dir=. 2830 # Account for people who put trailing slashes in PATH elements. 2831case $as_dir/ in #(( 2832 ./ | .// | /[cC]/* | \ 2833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2835 /usr/ucb/* ) ;; 2836 *) 2837 # OSF1 and SCO ODT 3.0 have their own names for install. 2838 # Don't use installbsd from OSF since it installs stuff as root 2839 # by default. 2840 for ac_prog in ginstall scoinst install; do 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2843 if test $ac_prog = install && 2844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2845 # AIX install. It has an incompatible calling convention. 2846 : 2847 elif test $ac_prog = install && 2848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2849 # program-specific install script used by HP pwplus--don't use. 2850 : 2851 else 2852 rm -rf conftest.one conftest.two conftest.dir 2853 echo one > conftest.one 2854 echo two > conftest.two 2855 mkdir conftest.dir 2856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2857 test -s conftest.one && test -s conftest.two && 2858 test -s conftest.dir/conftest.one && 2859 test -s conftest.dir/conftest.two 2860 then 2861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2862 break 3 2863 fi 2864 fi 2865 fi 2866 done 2867 done 2868 ;; 2869esac 2870 2871 done 2872IFS=$as_save_IFS 2873 2874rm -rf conftest.one conftest.two conftest.dir 2875 2876fi 2877 if test "${ac_cv_path_install+set}" = set; then 2878 INSTALL=$ac_cv_path_install 2879 else 2880 # As a last resort, use the slow shell script. Don't cache a 2881 # value for INSTALL within a source directory, because that will 2882 # break other packages using the cache if that directory is 2883 # removed, or if the value is a relative name. 2884 INSTALL=$ac_install_sh 2885 fi 2886fi 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2888$as_echo "$INSTALL" >&6; } 2889 2890# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2891# It thinks the first close brace ends the variable substitution. 2892test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2893 2894test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2895 2896test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2899$as_echo_n "checking whether build environment is sane... " >&6; } 2900# Just in case 2901sleep 1 2902echo timestamp > conftest.file 2903# Reject unsafe characters in $srcdir or the absolute working directory 2904# name. Accept space and tab only in the latter. 2905am_lf=' 2906' 2907case `pwd` in 2908 *[\\\"\#\$\&\'\`$am_lf]*) 2909 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2910esac 2911case $srcdir in 2912 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2913 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2914esac 2915 2916# Do `set' in a subshell so we don't clobber the current shell's 2917# arguments. Must try -L first in case configure is actually a 2918# symlink; some systems play weird games with the mod time of symlinks 2919# (eg FreeBSD returns the mod time of the symlink's containing 2920# directory). 2921if ( 2922 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2923 if test "$*" = "X"; then 2924 # -L didn't work. 2925 set X `ls -t "$srcdir/configure" conftest.file` 2926 fi 2927 rm -f conftest.file 2928 if test "$*" != "X $srcdir/configure conftest.file" \ 2929 && test "$*" != "X conftest.file $srcdir/configure"; then 2930 2931 # If neither matched, then we have a broken ls. This can happen 2932 # if, for instance, CONFIG_SHELL is bash and it inherits a 2933 # broken ls alias from the environment. This has actually 2934 # happened. Such a system could not be considered "sane". 2935 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2936alias in your environment" "$LINENO" 5 2937 fi 2938 2939 test "$2" = conftest.file 2940 ) 2941then 2942 # Ok. 2943 : 2944else 2945 as_fn_error $? "newly created file is older than distributed files! 2946Check your system clock" "$LINENO" 5 2947fi 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2949$as_echo "yes" >&6; } 2950test "$program_prefix" != NONE && 2951 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2952# Use a double $ so make ignores it. 2953test "$program_suffix" != NONE && 2954 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2955# Double any \ or $. 2956# By default was `s,x,x', remove it if useless. 2957ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2958program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2959 2960# expand $ac_aux_dir to an absolute path 2961am_aux_dir=`cd $ac_aux_dir && pwd` 2962 2963if test x"${MISSING+set}" != xset; then 2964 case $am_aux_dir in 2965 *\ * | *\ *) 2966 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2967 *) 2968 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2969 esac 2970fi 2971# Use eval to expand $SHELL 2972if eval "$MISSING --run true"; then 2973 am_missing_run="$MISSING --run " 2974else 2975 am_missing_run= 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2977$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2978fi 2979 2980if test x"${install_sh}" != xset; then 2981 case $am_aux_dir in 2982 *\ * | *\ *) 2983 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2984 *) 2985 install_sh="\${SHELL} $am_aux_dir/install-sh" 2986 esac 2987fi 2988 2989# Installed binaries are usually stripped using `strip' when the user 2990# run `make install-strip'. However `strip' might not be the right 2991# tool to use in cross-compilation environments, therefore Automake 2992# will honor the `STRIP' environment variable to overrule this program. 2993if test "$cross_compiling" != no; then 2994 if test -n "$ac_tool_prefix"; then 2995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2996set dummy ${ac_tool_prefix}strip; ac_word=$2 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998$as_echo_n "checking for $ac_word... " >&6; } 2999if ${ac_cv_prog_STRIP+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if test -n "$STRIP"; then 3003 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3004else 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3012 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021fi 3022STRIP=$ac_cv_prog_STRIP 3023if test -n "$STRIP"; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3025$as_echo "$STRIP" >&6; } 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029fi 3030 3031 3032fi 3033if test -z "$ac_cv_prog_STRIP"; then 3034 ac_ct_STRIP=$STRIP 3035 # Extract the first word of "strip", so it can be a program name with args. 3036set dummy strip; ac_word=$2 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$ac_ct_STRIP"; then 3043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 ac_cv_prog_ac_ct_STRIP="strip" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3063if test -n "$ac_ct_STRIP"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3065$as_echo "$ac_ct_STRIP" >&6; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 if test "x$ac_ct_STRIP" = x; then 3072 STRIP=":" 3073 else 3074 case $cross_compiling:$ac_tool_warned in 3075yes:) 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3078ac_tool_warned=yes ;; 3079esac 3080 STRIP=$ac_ct_STRIP 3081 fi 3082else 3083 STRIP="$ac_cv_prog_STRIP" 3084fi 3085 3086fi 3087INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3088 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3090$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3091if test -z "$MKDIR_P"; then 3092 if ${ac_cv_path_mkdir+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_prog in mkdir gmkdir; do 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3103 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3104 'mkdir (GNU coreutils) '* | \ 3105 'mkdir (coreutils) '* | \ 3106 'mkdir (fileutils) '4.1*) 3107 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3108 break 3;; 3109 esac 3110 done 3111 done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116 3117 test -d ./--version && rmdir ./--version 3118 if test "${ac_cv_path_mkdir+set}" = set; then 3119 MKDIR_P="$ac_cv_path_mkdir -p" 3120 else 3121 # As a last resort, use the slow shell script. Don't cache a 3122 # value for MKDIR_P within a source directory, because that will 3123 # break other packages using the cache if that directory is 3124 # removed, or if the value is a relative name. 3125 MKDIR_P="$ac_install_sh -d" 3126 fi 3127fi 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3129$as_echo "$MKDIR_P" >&6; } 3130 3131mkdir_p="$MKDIR_P" 3132case $mkdir_p in 3133 [\\/$]* | ?:[\\/]*) ;; 3134 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3135esac 3136 3137for ac_prog in gawk mawk nawk awk 3138do 3139 # Extract the first word of "$ac_prog", so it can be a program name with args. 3140set dummy $ac_prog; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_AWK+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$AWK"; then 3147 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3156 ac_cv_prog_AWK="$ac_prog" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166AWK=$ac_cv_prog_AWK 3167if test -n "$AWK"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3169$as_echo "$AWK" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176 test -n "$AWK" && break 3177done 3178 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3180$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3181set x ${MAKE-make} 3182ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3183if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 cat >conftest.make <<\_ACEOF 3187SHELL = /bin/sh 3188all: 3189 @echo '@@@%%%=$(MAKE)=@@@%%%' 3190_ACEOF 3191# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3192case `${MAKE-make} -f conftest.make 2>/dev/null` in 3193 *@@@%%%=?*=@@@%%%*) 3194 eval ac_cv_prog_make_${ac_make}_set=yes;; 3195 *) 3196 eval ac_cv_prog_make_${ac_make}_set=no;; 3197esac 3198rm -f conftest.make 3199fi 3200if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3202$as_echo "yes" >&6; } 3203 SET_MAKE= 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206$as_echo "no" >&6; } 3207 SET_MAKE="MAKE=${MAKE-make}" 3208fi 3209 3210rm -rf .tst 2>/dev/null 3211mkdir .tst 2>/dev/null 3212if test -d .tst; then 3213 am__leading_dot=. 3214else 3215 am__leading_dot=_ 3216fi 3217rmdir .tst 2>/dev/null 3218 3219if test "`cd $srcdir && pwd`" != "`pwd`"; then 3220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3221 # is not polluted with repeated "-I." 3222 am__isrc=' -I$(srcdir)' 3223 # test to see if srcdir already configured 3224 if test -f $srcdir/config.status; then 3225 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3226 fi 3227fi 3228 3229# test whether we have cygpath 3230if test -z "$CYGPATH_W"; then 3231 if (cygpath --version) >/dev/null 2>/dev/null; then 3232 CYGPATH_W='cygpath -w' 3233 else 3234 CYGPATH_W=echo 3235 fi 3236fi 3237 3238 3239# Define the identity of the package. 3240 PACKAGE='tiff' 3241 VERSION='4.0.0beta7' 3242 3243 3244cat >>confdefs.h <<_ACEOF 3245#define PACKAGE "$PACKAGE" 3246_ACEOF 3247 3248 3249cat >>confdefs.h <<_ACEOF 3250#define VERSION "$VERSION" 3251_ACEOF 3252 3253# Some tools Automake needs. 3254 3255ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3256 3257 3258AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3259 3260 3261AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3262 3263 3264AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3265 3266 3267MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3268 3269# We need awk for the "check" target. The system "awk" is bad on 3270# some platforms. 3271# Always define AMTAR for backward compatibility. 3272 3273AMTAR=${AMTAR-"${am_missing_run}tar"} 3274 3275am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3276 3277 3278 3279 3280 3281 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3283$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3284 # Check whether --enable-maintainer-mode was given. 3285if test "${enable_maintainer_mode+set}" = set; then : 3286 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3287else 3288 USE_MAINTAINER_MODE=no 3289fi 3290 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3292$as_echo "$USE_MAINTAINER_MODE" >&6; } 3293 if test $USE_MAINTAINER_MODE = yes; then 3294 MAINTAINER_MODE_TRUE= 3295 MAINTAINER_MODE_FALSE='#' 3296else 3297 MAINTAINER_MODE_TRUE='#' 3298 MAINTAINER_MODE_FALSE= 3299fi 3300 3301 MAINT=$MAINTAINER_MODE_TRUE 3302 3303 3304 3305LIBTIFF_MAJOR_VERSION=4 3306LIBTIFF_MINOR_VERSION=0 3307LIBTIFF_MICRO_VERSION=0 3308LIBTIFF_ALPHA_VERSION=beta7 3309LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3310LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3311 3312LIBTIFF_CURRENT=5 3313LIBTIFF_REVISION=4 3314LIBTIFF_AGE=0 3315LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3316 3317# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3318# in OpenBSD uses some special semantics for shared libraries. Their soname 3319# contains only two numbers, major and minor. 3320# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3321#case "$host_os" in 3322# openbsd* | mirbsd*) 3323# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3324# ;; 3325# *) 3326# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3327# ;; 3328#esac 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338ac_ext=c 3339ac_cpp='$CPP $CPPFLAGS' 3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3342ac_compiler_gnu=$ac_cv_c_compiler_gnu 3343if test -n "$ac_tool_prefix"; then 3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3345set dummy ${ac_tool_prefix}gcc; ac_word=$2 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3347$as_echo_n "checking for $ac_word... " >&6; } 3348if ${ac_cv_prog_CC+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if test -n "$CC"; then 3352 ac_cv_prog_CC="$CC" # Let the user override the test. 3353else 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369fi 3370fi 3371CC=$ac_cv_prog_CC 3372if test -n "$CC"; then 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3374$as_echo "$CC" >&6; } 3375else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3377$as_echo "no" >&6; } 3378fi 3379 3380 3381fi 3382if test -z "$ac_cv_prog_CC"; then 3383 ac_ct_CC=$CC 3384 # Extract the first word of "gcc", so it can be a program name with args. 3385set dummy gcc; ac_word=$2 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3387$as_echo_n "checking for $ac_word... " >&6; } 3388if ${ac_cv_prog_ac_ct_CC+:} false; then : 3389 $as_echo_n "(cached) " >&6 3390else 3391 if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393else 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 test -z "$as_dir" && as_dir=. 3399 for ac_exec_ext in '' $ac_executable_extensions; do 3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3401 ac_cv_prog_ac_ct_CC="gcc" 3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3403 break 2 3404 fi 3405done 3406 done 3407IFS=$as_save_IFS 3408 3409fi 3410fi 3411ac_ct_CC=$ac_cv_prog_ac_ct_CC 3412if test -n "$ac_ct_CC"; then 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3414$as_echo "$ac_ct_CC" >&6; } 3415else 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417$as_echo "no" >&6; } 3418fi 3419 3420 if test "x$ac_ct_CC" = x; then 3421 CC="" 3422 else 3423 case $cross_compiling:$ac_tool_warned in 3424yes:) 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3427ac_tool_warned=yes ;; 3428esac 3429 CC=$ac_ct_CC 3430 fi 3431else 3432 CC="$ac_cv_prog_CC" 3433fi 3434 3435if test -z "$CC"; then 3436 if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3438set dummy ${ac_tool_prefix}cc; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_CC+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3454 ac_cv_prog_CC="${ac_tool_prefix}cc" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464CC=$ac_cv_prog_CC 3465if test -n "$CC"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467$as_echo "$CC" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474 fi 3475fi 3476if test -z "$CC"; then 3477 # Extract the first word of "cc", so it can be a program name with args. 3478set dummy cc; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487 ac_prog_rejected=no 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3496 ac_prog_rejected=yes 3497 continue 3498 fi 3499 ac_cv_prog_CC="cc" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507if test $ac_prog_rejected = yes; then 3508 # We found a bogon in the path, so make sure we never use it. 3509 set dummy $ac_cv_prog_CC 3510 shift 3511 if test $# != 0; then 3512 # We chose a different compiler from the bogus one. 3513 # However, it has the same basename, so the bogon will be chosen 3514 # first if we set CC to just the basename; use the full file name. 3515 shift 3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3517 fi 3518fi 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524$as_echo "$CC" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$CC"; then 3533 if test -n "$ac_tool_prefix"; then 3534 for ac_prog in cl.exe 3535 do 3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$CC"; then 3544 ac_cv_prog_CC="$CC" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563CC=$ac_cv_prog_CC 3564if test -n "$CC"; then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3566$as_echo "$CC" >&6; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570fi 3571 3572 3573 test -n "$CC" && break 3574 done 3575fi 3576if test -z "$CC"; then 3577 ac_ct_CC=$CC 3578 for ac_prog in cl.exe 3579do 3580 # Extract the first word of "$ac_prog", so it can be a program name with args. 3581set dummy $ac_prog; ac_word=$2 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583$as_echo_n "checking for $ac_word... " >&6; } 3584if ${ac_cv_prog_ac_ct_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -n "$ac_ct_CC"; then 3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3589else 3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3597 ac_cv_prog_ac_ct_CC="$ac_prog" 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3599 break 2 3600 fi 3601done 3602 done 3603IFS=$as_save_IFS 3604 3605fi 3606fi 3607ac_ct_CC=$ac_cv_prog_ac_ct_CC 3608if test -n "$ac_ct_CC"; then 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610$as_echo "$ac_ct_CC" >&6; } 3611else 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614fi 3615 3616 3617 test -n "$ac_ct_CC" && break 3618done 3619 3620 if test "x$ac_ct_CC" = x; then 3621 CC="" 3622 else 3623 case $cross_compiling:$ac_tool_warned in 3624yes:) 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3627ac_tool_warned=yes ;; 3628esac 3629 CC=$ac_ct_CC 3630 fi 3631fi 3632 3633fi 3634 3635 3636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error $? "no acceptable C compiler found in \$PATH 3639See \`config.log' for more details" "$LINENO" 5; } 3640 3641# Provide some information about the compiler. 3642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3643set X $ac_compile 3644ac_compiler=$2 3645for ac_option in --version -v -V -qversion; do 3646 { { ac_try="$ac_compiler $ac_option >&5" 3647case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650esac 3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3652$as_echo "$ac_try_echo"; } >&5 3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3654 ac_status=$? 3655 if test -s conftest.err; then 3656 sed '10a\ 3657... rest of stderr output deleted ... 3658 10q' conftest.err >conftest.er1 3659 cat conftest.er1 >&5 3660 fi 3661 rm -f conftest.er1 conftest.err 3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; } 3664done 3665 3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677ac_clean_files_save=$ac_clean_files 3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3679# Try to create an executable without -o first, disregard a.out. 3680# It will help us diagnose broken compilers, and finding out an intuition 3681# of exeext. 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3683$as_echo_n "checking whether the C compiler works... " >&6; } 3684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3685 3686# The possible output files: 3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3688 3689ac_rmfiles= 3690for ac_file in $ac_files 3691do 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3695 esac 3696done 3697rm -f $ac_rmfiles 3698 3699if { { ac_try="$ac_link_default" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705$as_echo "$ac_try_echo"; } >&5 3706 (eval "$ac_link_default") 2>&5 3707 ac_status=$? 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3709 test $ac_status = 0; }; then : 3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3712# in a Makefile. We should not override ac_cv_exeext if it was cached, 3713# so that the user can short-circuit this test for compilers unknown to 3714# Autoconf. 3715for ac_file in $ac_files '' 3716do 3717 test -f "$ac_file" || continue 3718 case $ac_file in 3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3720 ;; 3721 [ab].out ) 3722 # We found the default executable, but exeext='' is most 3723 # certainly right. 3724 break;; 3725 *.* ) 3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3727 then :; else 3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3729 fi 3730 # We set ac_cv_exeext here because the later test for it is not 3731 # safe: cross compilers may not add the suffix if given an `-o' 3732 # argument, so we may need to know it at that point already. 3733 # Even if this section looks crufty: it has the advantage of 3734 # actually working. 3735 break;; 3736 * ) 3737 break;; 3738 esac 3739done 3740test "$ac_cv_exeext" = no && ac_cv_exeext= 3741 3742else 3743 ac_file='' 3744fi 3745if test -z "$ac_file"; then : 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748$as_echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3753as_fn_error 77 "C compiler cannot create executables 3754See \`config.log' for more details" "$LINENO" 5; } 3755else 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3757$as_echo "yes" >&6; } 3758fi 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3760$as_echo_n "checking for C compiler default output file name... " >&6; } 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3762$as_echo "$ac_file" >&6; } 3763ac_exeext=$ac_cv_exeext 3764 3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3766ac_clean_files=$ac_clean_files_save 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3768$as_echo_n "checking for suffix of executables... " >&6; } 3769if { { ac_try="$ac_link" 3770case "(($ac_try" in 3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772 *) ac_try_echo=$ac_try;; 3773esac 3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3775$as_echo "$ac_try_echo"; } >&5 3776 (eval "$ac_link") 2>&5 3777 ac_status=$? 3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3779 test $ac_status = 0; }; then : 3780 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3781# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3782# work properly (i.e., refer to `conftest.exe'), while it won't with 3783# `rm'. 3784for ac_file in conftest.exe conftest conftest.*; do 3785 test -f "$ac_file" || continue 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3789 break;; 3790 * ) break;; 3791 esac 3792done 3793else 3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3797See \`config.log' for more details" "$LINENO" 5; } 3798fi 3799rm -f conftest conftest$ac_cv_exeext 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3801$as_echo "$ac_cv_exeext" >&6; } 3802 3803rm -f conftest.$ac_ext 3804EXEEXT=$ac_cv_exeext 3805ac_exeext=$EXEEXT 3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#include <stdio.h> 3809int 3810main () 3811{ 3812FILE *f = fopen ("conftest.out", "w"); 3813 return ferror (f) || fclose (f) != 0; 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819ac_clean_files="$ac_clean_files conftest.out" 3820# Check that the compiler produces executables we can run. If not, either 3821# the compiler is broken, or we cross compile. 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3823$as_echo_n "checking whether we are cross compiling... " >&6; } 3824if test "$cross_compiling" != yes; then 3825 { { ac_try="$ac_link" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831$as_echo "$ac_try_echo"; } >&5 3832 (eval "$ac_link") 2>&5 3833 ac_status=$? 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; } 3836 if { ac_try='./conftest$ac_cv_exeext' 3837 { { case "(($ac_try" in 3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3839 *) ac_try_echo=$ac_try;; 3840esac 3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3842$as_echo "$ac_try_echo"; } >&5 3843 (eval "$ac_try") 2>&5 3844 ac_status=$? 3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3846 test $ac_status = 0; }; }; then 3847 cross_compiling=no 3848 else 3849 if test "$cross_compiling" = maybe; then 3850 cross_compiling=yes 3851 else 3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3854as_fn_error $? "cannot run C compiled programs. 3855If you meant to cross compile, use \`--host'. 3856See \`config.log' for more details" "$LINENO" 5; } 3857 fi 3858 fi 3859fi 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3861$as_echo "$cross_compiling" >&6; } 3862 3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3864ac_clean_files=$ac_clean_files_save 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3866$as_echo_n "checking for suffix of object files... " >&6; } 3867if ${ac_cv_objext+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881rm -f conftest.o conftest.obj 3882if { { ac_try="$ac_compile" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888$as_echo "$ac_try_echo"; } >&5 3889 (eval "$ac_compile") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; }; then : 3893 for ac_file in conftest.o conftest.obj conftest.*; do 3894 test -f "$ac_file" || continue; 3895 case $ac_file in 3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3898 break;; 3899 esac 3900done 3901else 3902 $as_echo "$as_me: failed program was:" >&5 3903sed 's/^/| /' conftest.$ac_ext >&5 3904 3905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3907as_fn_error $? "cannot compute suffix of object files: cannot compile 3908See \`config.log' for more details" "$LINENO" 5; } 3909fi 3910rm -f conftest.$ac_cv_objext conftest.$ac_ext 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3913$as_echo "$ac_cv_objext" >&6; } 3914OBJEXT=$ac_cv_objext 3915ac_objext=$OBJEXT 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3918if ${ac_cv_c_compiler_gnu+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927#ifndef __GNUC__ 3928 choke me 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_compiler_gnu=yes 3937else 3938 ac_compiler_gnu=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941ac_cv_c_compiler_gnu=$ac_compiler_gnu 3942 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3945$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3946if test $ac_compiler_gnu = yes; then 3947 GCC=yes 3948else 3949 GCC= 3950fi 3951ac_test_CFLAGS=${CFLAGS+set} 3952ac_save_CFLAGS=$CFLAGS 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3954$as_echo_n "checking whether $CC accepts -g... " >&6; } 3955if ${ac_cv_prog_cc_g+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 ac_save_c_werror_flag=$ac_c_werror_flag 3959 ac_c_werror_flag=yes 3960 ac_cv_prog_cc_g=no 3961 CFLAGS="-g" 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964 3965int 3966main () 3967{ 3968 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973if ac_fn_c_try_compile "$LINENO"; then : 3974 ac_cv_prog_cc_g=yes 3975else 3976 CFLAGS="" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 3990else 3991 ac_c_werror_flag=$ac_save_c_werror_flag 3992 CFLAGS="-g" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_prog_cc_g=yes 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010fi 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4012 ac_c_werror_flag=$ac_save_c_werror_flag 4013fi 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4015$as_echo "$ac_cv_prog_cc_g" >&6; } 4016if test "$ac_test_CFLAGS" = set; then 4017 CFLAGS=$ac_save_CFLAGS 4018elif test $ac_cv_prog_cc_g = yes; then 4019 if test "$GCC" = yes; then 4020 CFLAGS="-g -O2" 4021 else 4022 CFLAGS="-g" 4023 fi 4024else 4025 if test "$GCC" = yes; then 4026 CFLAGS="-O2" 4027 else 4028 CFLAGS= 4029 fi 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4033if ${ac_cv_prog_cc_c89+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 ac_cv_prog_cc_c89=no 4037ac_save_CC=$CC 4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#include <stdarg.h> 4041#include <stdio.h> 4042#include <sys/types.h> 4043#include <sys/stat.h> 4044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4045struct buf { int x; }; 4046FILE * (*rcsopen) (struct buf *, struct stat *, int); 4047static char *e (p, i) 4048 char **p; 4049 int i; 4050{ 4051 return p[i]; 4052} 4053static char *f (char * (*g) (char **, int), char **p, ...) 4054{ 4055 char *s; 4056 va_list v; 4057 va_start (v,p); 4058 s = g (p, va_arg (v,int)); 4059 va_end (v); 4060 return s; 4061} 4062 4063/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4064 function prototypes and stuff, but not '\xHH' hex character constants. 4065 These don't provoke an error unfortunately, instead are silently treated 4066 as 'x'. The following induces an error, until -std is added to get 4067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4068 array size at least. It's necessary to write '\x00'==0 to get something 4069 that's true only with -std. */ 4070int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4071 4072/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4073 inside strings and character constants. */ 4074#define FOO(x) 'x' 4075int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4076 4077int test (int i, double x); 4078struct s1 {int (*f) (int a);}; 4079struct s2 {int (*f) (double a);}; 4080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4081int argc; 4082char **argv; 4083int 4084main () 4085{ 4086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4093do 4094 CC="$ac_save_CC $ac_arg" 4095 if ac_fn_c_try_compile "$LINENO"; then : 4096 ac_cv_prog_cc_c89=$ac_arg 4097fi 4098rm -f core conftest.err conftest.$ac_objext 4099 test "x$ac_cv_prog_cc_c89" != "xno" && break 4100done 4101rm -f conftest.$ac_ext 4102CC=$ac_save_CC 4103 4104fi 4105# AC_CACHE_VAL 4106case "x$ac_cv_prog_cc_c89" in 4107 x) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4109$as_echo "none needed" >&6; } ;; 4110 xno) 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4112$as_echo "unsupported" >&6; } ;; 4113 *) 4114 CC="$CC $ac_cv_prog_cc_c89" 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4117esac 4118if test "x$ac_cv_prog_cc_c89" != xno; then : 4119 4120fi 4121 4122ac_ext=c 4123ac_cpp='$CPP $CPPFLAGS' 4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4126ac_compiler_gnu=$ac_cv_c_compiler_gnu 4127DEPDIR="${am__leading_dot}deps" 4128 4129ac_config_commands="$ac_config_commands depfiles" 4130 4131 4132am_make=${MAKE-make} 4133cat > confinc << 'END' 4134am__doit: 4135 @echo this is the am__doit target 4136.PHONY: am__doit 4137END 4138# If we don't find an include directive, just comment out the code. 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4140$as_echo_n "checking for style of include used by $am_make... " >&6; } 4141am__include="#" 4142am__quote= 4143_am_result=none 4144# First try GNU make style include. 4145echo "include confinc" > confmf 4146# Ignore all kinds of additional output from `make'. 4147case `$am_make -s -f confmf 2> /dev/null` in #( 4148*the\ am__doit\ target*) 4149 am__include=include 4150 am__quote= 4151 _am_result=GNU 4152 ;; 4153esac 4154# Now try BSD make style include. 4155if test "$am__include" = "#"; then 4156 echo '.include "confinc"' > confmf 4157 case `$am_make -s -f confmf 2> /dev/null` in #( 4158 *the\ am__doit\ target*) 4159 am__include=.include 4160 am__quote="\"" 4161 _am_result=BSD 4162 ;; 4163 esac 4164fi 4165 4166 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4168$as_echo "$_am_result" >&6; } 4169rm -f confinc confmf 4170 4171# Check whether --enable-dependency-tracking was given. 4172if test "${enable_dependency_tracking+set}" = set; then : 4173 enableval=$enable_dependency_tracking; 4174fi 4175 4176if test "x$enable_dependency_tracking" != xno; then 4177 am_depcomp="$ac_aux_dir/depcomp" 4178 AMDEPBACKSLASH='\' 4179fi 4180 if test "x$enable_dependency_tracking" != xno; then 4181 AMDEP_TRUE= 4182 AMDEP_FALSE='#' 4183else 4184 AMDEP_TRUE='#' 4185 AMDEP_FALSE= 4186fi 4187 4188 4189 4190depcc="$CC" am_compiler_list= 4191 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4193$as_echo_n "checking dependency style of $depcc... " >&6; } 4194if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4198 # We make a subdir and do the tests there. Otherwise we can end up 4199 # making bogus files that we don't know about and never remove. For 4200 # instance it was reported that on HP-UX the gcc test will end up 4201 # making a dummy file named `D' -- because `-MD' means `put the output 4202 # in D'. 4203 mkdir conftest.dir 4204 # Copy depcomp to subdir because otherwise we won't find it if we're 4205 # using a relative directory. 4206 cp "$am_depcomp" conftest.dir 4207 cd conftest.dir 4208 # We will build objects and dependencies in a subdirectory because 4209 # it helps to detect inapplicable dependency modes. For instance 4210 # both Tru64's cc and ICC support -MD to output dependencies as a 4211 # side effect of compilation, but ICC will put the dependencies in 4212 # the current directory while Tru64 will put them in the object 4213 # directory. 4214 mkdir sub 4215 4216 am_cv_CC_dependencies_compiler_type=none 4217 if test "$am_compiler_list" = ""; then 4218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4219 fi 4220 am__universal=false 4221 case " $depcc " in #( 4222 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4223 esac 4224 4225 for depmode in $am_compiler_list; do 4226 # Setup a source with many dependencies, because some compilers 4227 # like to wrap large dependency lists on column 80 (with \), and 4228 # we should not choose a depcomp mode which is confused by this. 4229 # 4230 # We need to recreate these files for each test, as the compiler may 4231 # overwrite some of them when testing with obscure command lines. 4232 # This happens at least with the AIX C compiler. 4233 : > sub/conftest.c 4234 for i in 1 2 3 4 5 6; do 4235 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4236 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4237 # Solaris 8's {/usr,}/bin/sh. 4238 touch sub/conftst$i.h 4239 done 4240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4241 4242 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4243 # mode. It turns out that the SunPro C++ compiler does not properly 4244 # handle `-M -o', and we need to detect this. Also, some Intel 4245 # versions had trouble with output in subdirs 4246 am__obj=sub/conftest.${OBJEXT-o} 4247 am__minus_obj="-o $am__obj" 4248 case $depmode in 4249 gcc) 4250 # This depmode causes a compiler race in universal mode. 4251 test "$am__universal" = false || continue 4252 ;; 4253 nosideeffect) 4254 # after this tag, mechanisms are not by side-effect, so they'll 4255 # only be used when explicitly requested 4256 if test "x$enable_dependency_tracking" = xyes; then 4257 continue 4258 else 4259 break 4260 fi 4261 ;; 4262 msvisualcpp | msvcmsys) 4263 # This compiler won't grok `-c -o', but also, the minuso test has 4264 # not run yet. These depmodes are late enough in the game, and 4265 # so weak that their functioning should not be impacted. 4266 am__obj=conftest.${OBJEXT-o} 4267 am__minus_obj= 4268 ;; 4269 none) break ;; 4270 esac 4271 if depmode=$depmode \ 4272 source=sub/conftest.c object=$am__obj \ 4273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4275 >/dev/null 2>conftest.err && 4276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4280 # icc doesn't choke on unknown options, it will just issue warnings 4281 # or remarks (even with -Werror). So we grep stderr for any message 4282 # that says an option was ignored or not supported. 4283 # When given -MP, icc 7.0 and 7.1 complain thusly: 4284 # icc: Command line warning: ignoring option '-M'; no argument required 4285 # The diagnosis changed in icc 8.0: 4286 # icc: Command line remark: option '-MP' not supported 4287 if (grep 'ignoring option' conftest.err || 4288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4289 am_cv_CC_dependencies_compiler_type=$depmode 4290 break 4291 fi 4292 fi 4293 done 4294 4295 cd .. 4296 rm -rf conftest.dir 4297else 4298 am_cv_CC_dependencies_compiler_type=none 4299fi 4300 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4303$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4305 4306 if 4307 test "x$enable_dependency_tracking" != xno \ 4308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4309 am__fastdepCC_TRUE= 4310 am__fastdepCC_FALSE='#' 4311else 4312 am__fastdepCC_TRUE='#' 4313 am__fastdepCC_FALSE= 4314fi 4315 4316 4317if test "x$CC" != xcc; then 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4319$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4320else 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4322$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4323fi 4324set dummy $CC; ac_cc=`$as_echo "$2" | 4325 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4326if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331 4332int 4333main () 4334{ 4335 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340# Make sure it works both with $CC and with simple cc. 4341# We do the test twice because some compilers refuse to overwrite an 4342# existing .o file with -o, though they will create one. 4343ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4344rm -f conftest2.* 4345if { { case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348esac 4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4350$as_echo "$ac_try_echo"; } >&5 4351 (eval "$ac_try") 2>&5 4352 ac_status=$? 4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4354 test $ac_status = 0; } && 4355 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4357 *) ac_try_echo=$ac_try;; 4358esac 4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4360$as_echo "$ac_try_echo"; } >&5 4361 (eval "$ac_try") 2>&5 4362 ac_status=$? 4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4364 test $ac_status = 0; }; 4365then 4366 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4367 if test "x$CC" != xcc; then 4368 # Test first that cc exists at all. 4369 if { ac_try='cc -c conftest.$ac_ext >&5' 4370 { { case "(($ac_try" in 4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 *) ac_try_echo=$ac_try;; 4373esac 4374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4375$as_echo "$ac_try_echo"; } >&5 4376 (eval "$ac_try") 2>&5 4377 ac_status=$? 4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4379 test $ac_status = 0; }; }; then 4380 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4381 rm -f conftest2.* 4382 if { { case "(($ac_try" in 4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4384 *) ac_try_echo=$ac_try;; 4385esac 4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4387$as_echo "$ac_try_echo"; } >&5 4388 (eval "$ac_try") 2>&5 4389 ac_status=$? 4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4391 test $ac_status = 0; } && 4392 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4394 *) ac_try_echo=$ac_try;; 4395esac 4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4397$as_echo "$ac_try_echo"; } >&5 4398 (eval "$ac_try") 2>&5 4399 ac_status=$? 4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4401 test $ac_status = 0; }; 4402 then 4403 # cc works too. 4404 : 4405 else 4406 # cc exists but doesn't like -o. 4407 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4408 fi 4409 fi 4410 fi 4411else 4412 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4413fi 4414rm -f core conftest* 4415 4416fi 4417if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4419$as_echo "yes" >&6; } 4420else 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4422$as_echo "no" >&6; } 4423 4424$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4425 4426fi 4427 4428# FIXME: we rely on the cache variable name because 4429# there is no other way. 4430set dummy $CC 4431am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4432eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4433if test "$am_t" != yes; then 4434 # Losing compiler, so override with the script. 4435 # FIXME: It is wrong to rewrite CC. 4436 # But if we don't then we get into trouble of one sort or another. 4437 # A longer-term fix would be to have automake use am__CC in this case, 4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4439 CC="$am_aux_dir/compile $CC" 4440fi 4441 4442 4443 4444 4445 ansi= 4446 if test -z "$ansi"; then 4447 msg="for C compiler warning flags" 4448 else 4449 msg="for C compiler warning and ANSI conformance flags" 4450 fi 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4452$as_echo_n "checking $msg... " >&6; } 4453if ${vl_cv_prog_cc_warnings+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 4457 if test -n "$CC"; then 4458 cat > conftest.c <<EOF 4459int main(int argc, char **argv) { return 0; } 4460EOF 4461 4462 if test "$GCC" = "yes"; then 4463 if test -z "$ansi"; then 4464 vl_cv_prog_cc_warnings="-Wall -W" 4465 else 4466 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4467 fi 4468 4469 4470 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4471 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4472 test -f conftest.o; then 4473 if test -z "$ansi"; then 4474 vl_cv_prog_cc_warnings="-v" 4475 else 4476 vl_cv_prog_cc_warnings="-v -Xc" 4477 fi 4478 4479 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4480 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4481 test -f conftest.o; then 4482 if test -z "$ansi"; then 4483 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4484 else 4485 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4486 fi 4487 4488 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4489 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4490 test -f conftest.o; then 4491 if test -z "$ansi"; then 4492 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4493 else 4494 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4495 fi 4496 4497 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4498 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4499 test -f conftest.o; then 4500 if test -z "$ansi"; then 4501 vl_cv_prog_cc_warnings="-fullwarn" 4502 else 4503 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4504 fi 4505 4506 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4507 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4508 test -f conftest.o; then 4509 if test -z "$ansi"; then 4510 vl_cv_prog_cc_warnings="+w1" 4511 else 4512 vl_cv_prog_cc_warnings="+w1 -Aa" 4513 fi 4514 4515 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4516 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4517 test -f conftest.o; then 4518 if test -z "$ansi"; then 4519 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4520 else 4521 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4522 fi 4523 4524 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4525 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4526 test -f conftest.o; then 4527 if test -z "$ansi"; then 4528 vl_cv_prog_cc_warnings="-h msglevel 2" 4529 else 4530 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4531 fi 4532 4533 fi 4534 rm -f conftest.* 4535 fi 4536 if test -n "$vl_cv_prog_cc_warnings"; then 4537 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4538 else 4539 vl_cv_prog_cc_warnings="unknown" 4540 fi 4541 4542fi 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4544$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4545 4546 4547 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4549$as_echo_n "checking whether ln -s works... " >&6; } 4550LN_S=$as_ln_s 4551if test "$LN_S" = "ln -s"; then 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4553$as_echo "yes" >&6; } 4554else 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4556$as_echo "no, using $LN_S" >&6; } 4557fi 4558 4559 4560 4561 4562 4563case `pwd` in 4564 *\ * | *\ *) 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4566$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4567esac 4568 4569 4570 4571macro_version='2.4.2' 4572macro_revision='1.3337' 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586ltmain="$ac_aux_dir/ltmain.sh" 4587 4588# Backslashify metacharacters that are still active within 4589# double-quoted strings. 4590sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4591 4592# Same as above, but do not quote variable references. 4593double_quote_subst='s/\(["`\\]\)/\\\1/g' 4594 4595# Sed substitution to delay expansion of an escaped shell variable in a 4596# double_quote_subst'ed string. 4597delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4598 4599# Sed substitution to delay expansion of an escaped single quote. 4600delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4601 4602# Sed substitution to avoid accidental globbing in evaled expressions 4603no_glob_subst='s/\*/\\\*/g' 4604 4605ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4607ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4610$as_echo_n "checking how to print strings... " >&6; } 4611# Test print first, because it will be a builtin if present. 4612if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4614 ECHO='print -r --' 4615elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4616 ECHO='printf %s\n' 4617else 4618 # Use this function as a fallback that always works. 4619 func_fallback_echo () 4620 { 4621 eval 'cat <<_LTECHO_EOF 4622$1 4623_LTECHO_EOF' 4624 } 4625 ECHO='func_fallback_echo' 4626fi 4627 4628# func_echo_all arg... 4629# Invoke $ECHO with all args, space-separated. 4630func_echo_all () 4631{ 4632 $ECHO "" 4633} 4634 4635case "$ECHO" in 4636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4637$as_echo "printf" >&6; } ;; 4638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4639$as_echo "print -r" >&6; } ;; 4640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4641$as_echo "cat" >&6; } ;; 4642esac 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4658$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4659if ${ac_cv_path_SED+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4663 for ac_i in 1 2 3 4 5 6 7; do 4664 ac_script="$ac_script$as_nl$ac_script" 4665 done 4666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4667 { ac_script=; unset ac_script;} 4668 if test -z "$SED"; then 4669 ac_path_SED_found=false 4670 # Loop through the user's path and test for each of PROGNAME-LIST 4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4672for as_dir in $PATH 4673do 4674 IFS=$as_save_IFS 4675 test -z "$as_dir" && as_dir=. 4676 for ac_prog in sed gsed; do 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4679 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4680# Check for GNU ac_path_SED and select it if it is found. 4681 # Check for GNU $ac_path_SED 4682case `"$ac_path_SED" --version 2>&1` in 4683*GNU*) 4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4685*) 4686 ac_count=0 4687 $as_echo_n 0123456789 >"conftest.in" 4688 while : 4689 do 4690 cat "conftest.in" "conftest.in" >"conftest.tmp" 4691 mv "conftest.tmp" "conftest.in" 4692 cp "conftest.in" "conftest.nl" 4693 $as_echo '' >> "conftest.nl" 4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4696 as_fn_arith $ac_count + 1 && ac_count=$as_val 4697 if test $ac_count -gt ${ac_path_SED_max-0}; then 4698 # Best one so far, save it but keep looking for a better one 4699 ac_cv_path_SED="$ac_path_SED" 4700 ac_path_SED_max=$ac_count 4701 fi 4702 # 10*(2^10) chars as input seems more than enough 4703 test $ac_count -gt 10 && break 4704 done 4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4706esac 4707 4708 $ac_path_SED_found && break 3 4709 done 4710 done 4711 done 4712IFS=$as_save_IFS 4713 if test -z "$ac_cv_path_SED"; then 4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4715 fi 4716else 4717 ac_cv_path_SED=$SED 4718fi 4719 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4722$as_echo "$ac_cv_path_SED" >&6; } 4723 SED="$ac_cv_path_SED" 4724 rm -f conftest.sed 4725 4726test -z "$SED" && SED=sed 4727Xsed="$SED -e 1s/^X//" 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4740$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4741if ${ac_cv_path_GREP+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -z "$GREP"; then 4745 ac_path_GREP_found=false 4746 # Loop through the user's path and test for each of PROGNAME-LIST 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4749do 4750 IFS=$as_save_IFS 4751 test -z "$as_dir" && as_dir=. 4752 for ac_prog in grep ggrep; do 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4755 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4756# Check for GNU ac_path_GREP and select it if it is found. 4757 # Check for GNU $ac_path_GREP 4758case `"$ac_path_GREP" --version 2>&1` in 4759*GNU*) 4760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4761*) 4762 ac_count=0 4763 $as_echo_n 0123456789 >"conftest.in" 4764 while : 4765 do 4766 cat "conftest.in" "conftest.in" >"conftest.tmp" 4767 mv "conftest.tmp" "conftest.in" 4768 cp "conftest.in" "conftest.nl" 4769 $as_echo 'GREP' >> "conftest.nl" 4770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4772 as_fn_arith $ac_count + 1 && ac_count=$as_val 4773 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4774 # Best one so far, save it but keep looking for a better one 4775 ac_cv_path_GREP="$ac_path_GREP" 4776 ac_path_GREP_max=$ac_count 4777 fi 4778 # 10*(2^10) chars as input seems more than enough 4779 test $ac_count -gt 10 && break 4780 done 4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4782esac 4783 4784 $ac_path_GREP_found && break 3 4785 done 4786 done 4787 done 4788IFS=$as_save_IFS 4789 if test -z "$ac_cv_path_GREP"; then 4790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4791 fi 4792else 4793 ac_cv_path_GREP=$GREP 4794fi 4795 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4798$as_echo "$ac_cv_path_GREP" >&6; } 4799 GREP="$ac_cv_path_GREP" 4800 4801 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4803$as_echo_n "checking for egrep... " >&6; } 4804if ${ac_cv_path_EGREP+:} false; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4808 then ac_cv_path_EGREP="$GREP -E" 4809 else 4810 if test -z "$EGREP"; then 4811 ac_path_EGREP_found=false 4812 # Loop through the user's path and test for each of PROGNAME-LIST 4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4815do 4816 IFS=$as_save_IFS 4817 test -z "$as_dir" && as_dir=. 4818 for ac_prog in egrep; do 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4822# Check for GNU ac_path_EGREP and select it if it is found. 4823 # Check for GNU $ac_path_EGREP 4824case `"$ac_path_EGREP" --version 2>&1` in 4825*GNU*) 4826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4827*) 4828 ac_count=0 4829 $as_echo_n 0123456789 >"conftest.in" 4830 while : 4831 do 4832 cat "conftest.in" "conftest.in" >"conftest.tmp" 4833 mv "conftest.tmp" "conftest.in" 4834 cp "conftest.in" "conftest.nl" 4835 $as_echo 'EGREP' >> "conftest.nl" 4836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4838 as_fn_arith $ac_count + 1 && ac_count=$as_val 4839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4840 # Best one so far, save it but keep looking for a better one 4841 ac_cv_path_EGREP="$ac_path_EGREP" 4842 ac_path_EGREP_max=$ac_count 4843 fi 4844 # 10*(2^10) chars as input seems more than enough 4845 test $ac_count -gt 10 && break 4846 done 4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4848esac 4849 4850 $ac_path_EGREP_found && break 3 4851 done 4852 done 4853 done 4854IFS=$as_save_IFS 4855 if test -z "$ac_cv_path_EGREP"; then 4856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4857 fi 4858else 4859 ac_cv_path_EGREP=$EGREP 4860fi 4861 4862 fi 4863fi 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4865$as_echo "$ac_cv_path_EGREP" >&6; } 4866 EGREP="$ac_cv_path_EGREP" 4867 4868 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4870$as_echo_n "checking for fgrep... " >&6; } 4871if ${ac_cv_path_FGREP+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4875 then ac_cv_path_FGREP="$GREP -F" 4876 else 4877 if test -z "$FGREP"; then 4878 ac_path_FGREP_found=false 4879 # Loop through the user's path and test for each of PROGNAME-LIST 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4882do 4883 IFS=$as_save_IFS 4884 test -z "$as_dir" && as_dir=. 4885 for ac_prog in fgrep; do 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4888 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4889# Check for GNU ac_path_FGREP and select it if it is found. 4890 # Check for GNU $ac_path_FGREP 4891case `"$ac_path_FGREP" --version 2>&1` in 4892*GNU*) 4893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4894*) 4895 ac_count=0 4896 $as_echo_n 0123456789 >"conftest.in" 4897 while : 4898 do 4899 cat "conftest.in" "conftest.in" >"conftest.tmp" 4900 mv "conftest.tmp" "conftest.in" 4901 cp "conftest.in" "conftest.nl" 4902 $as_echo 'FGREP' >> "conftest.nl" 4903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4905 as_fn_arith $ac_count + 1 && ac_count=$as_val 4906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4907 # Best one so far, save it but keep looking for a better one 4908 ac_cv_path_FGREP="$ac_path_FGREP" 4909 ac_path_FGREP_max=$ac_count 4910 fi 4911 # 10*(2^10) chars as input seems more than enough 4912 test $ac_count -gt 10 && break 4913 done 4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4915esac 4916 4917 $ac_path_FGREP_found && break 3 4918 done 4919 done 4920 done 4921IFS=$as_save_IFS 4922 if test -z "$ac_cv_path_FGREP"; then 4923 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4924 fi 4925else 4926 ac_cv_path_FGREP=$FGREP 4927fi 4928 4929 fi 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4932$as_echo "$ac_cv_path_FGREP" >&6; } 4933 FGREP="$ac_cv_path_FGREP" 4934 4935 4936test -z "$GREP" && GREP=grep 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956# Check whether --with-gnu-ld was given. 4957if test "${with_gnu_ld+set}" = set; then : 4958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4959else 4960 with_gnu_ld=no 4961fi 4962 4963ac_prog=ld 4964if test "$GCC" = yes; then 4965 # Check if gcc -print-prog-name=ld gives a path. 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4967$as_echo_n "checking for ld used by $CC... " >&6; } 4968 case $host in 4969 *-*-mingw*) 4970 # gcc leaves a trailing carriage return which upsets mingw 4971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4972 *) 4973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4974 esac 4975 case $ac_prog in 4976 # Accept absolute paths. 4977 [\\/]* | ?:[\\/]*) 4978 re_direlt='/[^/][^/]*/\.\./' 4979 # Canonicalize the pathname of ld 4980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4983 done 4984 test -z "$LD" && LD="$ac_prog" 4985 ;; 4986 "") 4987 # If it fails, then pretend we aren't using GCC. 4988 ac_prog=ld 4989 ;; 4990 *) 4991 # If it is relative, then search for the first ld in PATH. 4992 with_gnu_ld=unknown 4993 ;; 4994 esac 4995elif test "$with_gnu_ld" = yes; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4997$as_echo_n "checking for GNU ld... " >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5000$as_echo_n "checking for non-GNU ld... " >&6; } 5001fi 5002if ${lt_cv_path_LD+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 if test -z "$LD"; then 5006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5007 for ac_dir in $PATH; do 5008 IFS="$lt_save_ifs" 5009 test -z "$ac_dir" && ac_dir=. 5010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5011 lt_cv_path_LD="$ac_dir/$ac_prog" 5012 # Check to see if the program is GNU ld. I'd rather use --version, 5013 # but apparently some variants of GNU ld only accept -v. 5014 # Break only if it was the GNU/non-GNU ld that we prefer. 5015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5016 *GNU* | *'with BFD'*) 5017 test "$with_gnu_ld" != no && break 5018 ;; 5019 *) 5020 test "$with_gnu_ld" != yes && break 5021 ;; 5022 esac 5023 fi 5024 done 5025 IFS="$lt_save_ifs" 5026else 5027 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5028fi 5029fi 5030 5031LD="$lt_cv_path_LD" 5032if test -n "$LD"; then 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5034$as_echo "$LD" >&6; } 5035else 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5037$as_echo "no" >&6; } 5038fi 5039test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5042if ${lt_cv_prog_gnu_ld+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5046case `$LD -v 2>&1 </dev/null` in 5047*GNU* | *'with BFD'*) 5048 lt_cv_prog_gnu_ld=yes 5049 ;; 5050*) 5051 lt_cv_prog_gnu_ld=no 5052 ;; 5053esac 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5056$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5057with_gnu_ld=$lt_cv_prog_gnu_ld 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5068$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5069if ${lt_cv_path_NM+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 if test -n "$NM"; then 5073 # Let the user override the test. 5074 lt_cv_path_NM="$NM" 5075else 5076 lt_nm_to_check="${ac_tool_prefix}nm" 5077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5078 lt_nm_to_check="$lt_nm_to_check nm" 5079 fi 5080 for lt_tmp_nm in $lt_nm_to_check; do 5081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5083 IFS="$lt_save_ifs" 5084 test -z "$ac_dir" && ac_dir=. 5085 tmp_nm="$ac_dir/$lt_tmp_nm" 5086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5087 # Check to see if the nm accepts a BSD-compat flag. 5088 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5089 # nm: unknown option "B" ignored 5090 # Tru64's nm complains that /dev/null is an invalid object file 5091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5092 */dev/null* | *'Invalid file or object type'*) 5093 lt_cv_path_NM="$tmp_nm -B" 5094 break 5095 ;; 5096 *) 5097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5098 */dev/null*) 5099 lt_cv_path_NM="$tmp_nm -p" 5100 break 5101 ;; 5102 *) 5103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5104 continue # so that we can try to find one that supports BSD flags 5105 ;; 5106 esac 5107 ;; 5108 esac 5109 fi 5110 done 5111 IFS="$lt_save_ifs" 5112 done 5113 : ${lt_cv_path_NM=no} 5114fi 5115fi 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5117$as_echo "$lt_cv_path_NM" >&6; } 5118if test "$lt_cv_path_NM" != "no"; then 5119 NM="$lt_cv_path_NM" 5120else 5121 # Didn't find any BSD compatible name lister, look for dumpbin. 5122 if test -n "$DUMPBIN"; then : 5123 # Let the user override the test. 5124 else 5125 if test -n "$ac_tool_prefix"; then 5126 for ac_prog in dumpbin "link -dump" 5127 do 5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131$as_echo_n "checking for $ac_word... " >&6; } 5132if ${ac_cv_prog_DUMPBIN+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 if test -n "$DUMPBIN"; then 5136 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5137else 5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH 5140do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5145 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149done 5150 done 5151IFS=$as_save_IFS 5152 5153fi 5154fi 5155DUMPBIN=$ac_cv_prog_DUMPBIN 5156if test -n "$DUMPBIN"; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5158$as_echo "$DUMPBIN" >&6; } 5159else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5161$as_echo "no" >&6; } 5162fi 5163 5164 5165 test -n "$DUMPBIN" && break 5166 done 5167fi 5168if test -z "$DUMPBIN"; then 5169 ac_ct_DUMPBIN=$DUMPBIN 5170 for ac_prog in dumpbin "link -dump" 5171do 5172 # Extract the first word of "$ac_prog", so it can be a program name with args. 5173set dummy $ac_prog; ac_word=$2 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175$as_echo_n "checking for $ac_word... " >&6; } 5176if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 if test -n "$ac_ct_DUMPBIN"; then 5180 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5181else 5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183for as_dir in $PATH 5184do 5185 IFS=$as_save_IFS 5186 test -z "$as_dir" && as_dir=. 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5189 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5191 break 2 5192 fi 5193done 5194 done 5195IFS=$as_save_IFS 5196 5197fi 5198fi 5199ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5200if test -n "$ac_ct_DUMPBIN"; then 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5202$as_echo "$ac_ct_DUMPBIN" >&6; } 5203else 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5205$as_echo "no" >&6; } 5206fi 5207 5208 5209 test -n "$ac_ct_DUMPBIN" && break 5210done 5211 5212 if test "x$ac_ct_DUMPBIN" = x; then 5213 DUMPBIN=":" 5214 else 5215 case $cross_compiling:$ac_tool_warned in 5216yes:) 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5219ac_tool_warned=yes ;; 5220esac 5221 DUMPBIN=$ac_ct_DUMPBIN 5222 fi 5223fi 5224 5225 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5226 *COFF*) 5227 DUMPBIN="$DUMPBIN -symbols" 5228 ;; 5229 *) 5230 DUMPBIN=: 5231 ;; 5232 esac 5233 fi 5234 5235 if test "$DUMPBIN" != ":"; then 5236 NM="$DUMPBIN" 5237 fi 5238fi 5239test -z "$NM" && NM=nm 5240 5241 5242 5243 5244 5245 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5247$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5248if ${lt_cv_nm_interface+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 lt_cv_nm_interface="BSD nm" 5252 echo "int some_variable = 0;" > conftest.$ac_ext 5253 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5254 (eval "$ac_compile" 2>conftest.err) 5255 cat conftest.err >&5 5256 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5258 cat conftest.err >&5 5259 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5260 cat conftest.out >&5 5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5262 lt_cv_nm_interface="MS dumpbin" 5263 fi 5264 rm -f conftest* 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5267$as_echo "$lt_cv_nm_interface" >&6; } 5268 5269# find the maximum length of command line arguments 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5271$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5272if ${lt_cv_sys_max_cmd_len+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 i=0 5276 teststring="ABCD" 5277 5278 case $build_os in 5279 msdosdjgpp*) 5280 # On DJGPP, this test can blow up pretty badly due to problems in libc 5281 # (any single argument exceeding 2000 bytes causes a buffer overrun 5282 # during glob expansion). Even if it were fixed, the result of this 5283 # check would be larger than it should be. 5284 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5285 ;; 5286 5287 gnu*) 5288 # Under GNU Hurd, this test is not required because there is 5289 # no limit to the length of command line arguments. 5290 # Libtool will interpret -1 as no limit whatsoever 5291 lt_cv_sys_max_cmd_len=-1; 5292 ;; 5293 5294 cygwin* | mingw* | cegcc*) 5295 # On Win9x/ME, this test blows up -- it succeeds, but takes 5296 # about 5 minutes as the teststring grows exponentially. 5297 # Worse, since 9x/ME are not pre-emptively multitasking, 5298 # you end up with a "frozen" computer, even though with patience 5299 # the test eventually succeeds (with a max line length of 256k). 5300 # Instead, let's just punt: use the minimum linelength reported by 5301 # all of the supported platforms: 8192 (on NT/2K/XP). 5302 lt_cv_sys_max_cmd_len=8192; 5303 ;; 5304 5305 mint*) 5306 # On MiNT this can take a long time and run out of memory. 5307 lt_cv_sys_max_cmd_len=8192; 5308 ;; 5309 5310 amigaos*) 5311 # On AmigaOS with pdksh, this test takes hours, literally. 5312 # So we just punt and use a minimum line length of 8192. 5313 lt_cv_sys_max_cmd_len=8192; 5314 ;; 5315 5316 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5317 # This has been around since 386BSD, at least. Likely further. 5318 if test -x /sbin/sysctl; then 5319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5320 elif test -x /usr/sbin/sysctl; then 5321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5322 else 5323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5324 fi 5325 # And add a safety zone 5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5328 ;; 5329 5330 interix*) 5331 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5332 lt_cv_sys_max_cmd_len=196608 5333 ;; 5334 5335 os2*) 5336 # The test takes a long time on OS/2. 5337 lt_cv_sys_max_cmd_len=8192 5338 ;; 5339 5340 osf*) 5341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5343 # nice to cause kernel panics so lets avoid the loop below. 5344 # First set a reasonable default. 5345 lt_cv_sys_max_cmd_len=16384 5346 # 5347 if test -x /sbin/sysconfig; then 5348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5349 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5350 esac 5351 fi 5352 ;; 5353 sco3.2v5*) 5354 lt_cv_sys_max_cmd_len=102400 5355 ;; 5356 sysv5* | sco5v6* | sysv4.2uw2*) 5357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5358 if test -n "$kargmax"; then 5359 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5360 else 5361 lt_cv_sys_max_cmd_len=32768 5362 fi 5363 ;; 5364 *) 5365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5366 if test -n "$lt_cv_sys_max_cmd_len"; then 5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5369 else 5370 # Make teststring a little bigger before we do anything with it. 5371 # a 1K string should be a reasonable start. 5372 for i in 1 2 3 4 5 6 7 8 ; do 5373 teststring=$teststring$teststring 5374 done 5375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5376 # If test is not a shell built-in, we'll probably end up computing a 5377 # maximum length that is only half of the actual maximum length, but 5378 # we can't tell. 5379 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5380 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5381 test $i != 17 # 1/2 MB should be enough 5382 do 5383 i=`expr $i + 1` 5384 teststring=$teststring$teststring 5385 done 5386 # Only check the string length outside the loop. 5387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5388 teststring= 5389 # Add a significant safety factor because C++ compilers can tack on 5390 # massive amounts of additional arguments before passing them to the 5391 # linker. It appears as though 1/2 is a usable value. 5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5393 fi 5394 ;; 5395 esac 5396 5397fi 5398 5399if test -n $lt_cv_sys_max_cmd_len ; then 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5401$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5402else 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5404$as_echo "none" >&6; } 5405fi 5406max_cmd_len=$lt_cv_sys_max_cmd_len 5407 5408 5409 5410 5411 5412 5413: ${CP="cp -f"} 5414: ${MV="mv -f"} 5415: ${RM="rm -f"} 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5418$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5419# Try some XSI features 5420xsi_shell=no 5421( _lt_dummy="a/b/c" 5422 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5423 = c,a/b,b/c, \ 5424 && eval 'test $(( 1 + 1 )) -eq 2 \ 5425 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5426 && xsi_shell=yes 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5428$as_echo "$xsi_shell" >&6; } 5429 5430 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5432$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5433lt_shell_append=no 5434( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5435 >/dev/null 2>&1 \ 5436 && lt_shell_append=yes 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5438$as_echo "$lt_shell_append" >&6; } 5439 5440 5441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5442 lt_unset=unset 5443else 5444 lt_unset=false 5445fi 5446 5447 5448 5449 5450 5451# test EBCDIC or ASCII 5452case `echo X|tr X '\101'` in 5453 A) # ASCII based system 5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5455 lt_SP2NL='tr \040 \012' 5456 lt_NL2SP='tr \015\012 \040\040' 5457 ;; 5458 *) # EBCDIC based system 5459 lt_SP2NL='tr \100 \n' 5460 lt_NL2SP='tr \r\n \100\100' 5461 ;; 5462esac 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5473$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5474if ${lt_cv_to_host_file_cmd+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 case $host in 5478 *-*-mingw* ) 5479 case $build in 5480 *-*-mingw* ) # actually msys 5481 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5482 ;; 5483 *-*-cygwin* ) 5484 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5485 ;; 5486 * ) # otherwise, assume *nix 5487 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5488 ;; 5489 esac 5490 ;; 5491 *-*-cygwin* ) 5492 case $build in 5493 *-*-mingw* ) # actually msys 5494 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5495 ;; 5496 *-*-cygwin* ) 5497 lt_cv_to_host_file_cmd=func_convert_file_noop 5498 ;; 5499 * ) # otherwise, assume *nix 5500 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5501 ;; 5502 esac 5503 ;; 5504 * ) # unhandled hosts (and "normal" native builds) 5505 lt_cv_to_host_file_cmd=func_convert_file_noop 5506 ;; 5507esac 5508 5509fi 5510 5511to_host_file_cmd=$lt_cv_to_host_file_cmd 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5513$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5514 5515 5516 5517 5518 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5520$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5521if ${lt_cv_to_tool_file_cmd+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 #assume ordinary cross tools, or native build. 5525lt_cv_to_tool_file_cmd=func_convert_file_noop 5526case $host in 5527 *-*-mingw* ) 5528 case $build in 5529 *-*-mingw* ) # actually msys 5530 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5531 ;; 5532 esac 5533 ;; 5534esac 5535 5536fi 5537 5538to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5540$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5541 5542 5543 5544 5545 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5547$as_echo_n "checking for $LD option to reload object files... " >&6; } 5548if ${lt_cv_ld_reload_flag+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 lt_cv_ld_reload_flag='-r' 5552fi 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5554$as_echo "$lt_cv_ld_reload_flag" >&6; } 5555reload_flag=$lt_cv_ld_reload_flag 5556case $reload_flag in 5557"" | " "*) ;; 5558*) reload_flag=" $reload_flag" ;; 5559esac 5560reload_cmds='$LD$reload_flag -o $output$reload_objs' 5561case $host_os in 5562 cygwin* | mingw* | pw32* | cegcc*) 5563 if test "$GCC" != yes; then 5564 reload_cmds=false 5565 fi 5566 ;; 5567 darwin*) 5568 if test "$GCC" = yes; then 5569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5570 else 5571 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5572 fi 5573 ;; 5574esac 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584if test -n "$ac_tool_prefix"; then 5585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5586set dummy ${ac_tool_prefix}objdump; ac_word=$2 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588$as_echo_n "checking for $ac_word... " >&6; } 5589if ${ac_cv_prog_OBJDUMP+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$OBJDUMP"; then 5593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5594else 5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610fi 5611fi 5612OBJDUMP=$ac_cv_prog_OBJDUMP 5613if test -n "$OBJDUMP"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5615$as_echo "$OBJDUMP" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620 5621 5622fi 5623if test -z "$ac_cv_prog_OBJDUMP"; then 5624 ac_ct_OBJDUMP=$OBJDUMP 5625 # Extract the first word of "objdump", so it can be a program name with args. 5626set dummy objdump; ac_word=$2 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5628$as_echo_n "checking for $ac_word... " >&6; } 5629if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631else 5632 if test -n "$ac_ct_OBJDUMP"; then 5633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5634else 5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5636for as_dir in $PATH 5637do 5638 IFS=$as_save_IFS 5639 test -z "$as_dir" && as_dir=. 5640 for ac_exec_ext in '' $ac_executable_extensions; do 5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5642 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5644 break 2 5645 fi 5646done 5647 done 5648IFS=$as_save_IFS 5649 5650fi 5651fi 5652ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5653if test -n "$ac_ct_OBJDUMP"; then 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5655$as_echo "$ac_ct_OBJDUMP" >&6; } 5656else 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5658$as_echo "no" >&6; } 5659fi 5660 5661 if test "x$ac_ct_OBJDUMP" = x; then 5662 OBJDUMP="false" 5663 else 5664 case $cross_compiling:$ac_tool_warned in 5665yes:) 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5668ac_tool_warned=yes ;; 5669esac 5670 OBJDUMP=$ac_ct_OBJDUMP 5671 fi 5672else 5673 OBJDUMP="$ac_cv_prog_OBJDUMP" 5674fi 5675 5676test -z "$OBJDUMP" && OBJDUMP=objdump 5677 5678 5679 5680 5681 5682 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5684$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5685if ${lt_cv_deplibs_check_method+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 lt_cv_file_magic_cmd='$MAGIC_CMD' 5689lt_cv_file_magic_test_file= 5690lt_cv_deplibs_check_method='unknown' 5691# Need to set the preceding variable on all platforms that support 5692# interlibrary dependencies. 5693# 'none' -- dependencies not supported. 5694# `unknown' -- same as none, but documents that we really don't know. 5695# 'pass_all' -- all dependencies passed with no checks. 5696# 'test_compile' -- check by making test program. 5697# 'file_magic [[regex]]' -- check by looking for files in library path 5698# which responds to the $file_magic_cmd with a given extended regex. 5699# If you have `file' or equivalent on your system and you're not sure 5700# whether `pass_all' will *always* work, you probably want this one. 5701 5702case $host_os in 5703aix[4-9]*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706 5707beos*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711bsdi[45]*) 5712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5713 lt_cv_file_magic_cmd='/usr/bin/file -L' 5714 lt_cv_file_magic_test_file=/shlib/libc.so 5715 ;; 5716 5717cygwin*) 5718 # func_win32_libid is a shell function defined in ltmain.sh 5719 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5720 lt_cv_file_magic_cmd='func_win32_libid' 5721 ;; 5722 5723mingw* | pw32*) 5724 # Base MSYS/MinGW do not provide the 'file' command needed by 5725 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5726 # unless we find 'file', for example because we are cross-compiling. 5727 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5728 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5729 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5730 lt_cv_file_magic_cmd='func_win32_libid' 5731 else 5732 # Keep this pattern in sync with the one in func_win32_libid. 5733 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5734 lt_cv_file_magic_cmd='$OBJDUMP -f' 5735 fi 5736 ;; 5737 5738cegcc*) 5739 # use the weaker test based on 'objdump'. See mingw*. 5740 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5741 lt_cv_file_magic_cmd='$OBJDUMP -f' 5742 ;; 5743 5744darwin* | rhapsody*) 5745 lt_cv_deplibs_check_method=pass_all 5746 ;; 5747 5748freebsd* | dragonfly*) 5749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5750 case $host_cpu in 5751 i*86 ) 5752 # Not sure whether the presence of OpenBSD here was a mistake. 5753 # Let's accept both of them until this is cleared up. 5754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5755 lt_cv_file_magic_cmd=/usr/bin/file 5756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5757 ;; 5758 esac 5759 else 5760 lt_cv_deplibs_check_method=pass_all 5761 fi 5762 ;; 5763 5764gnu*) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 5768haiku*) 5769 lt_cv_deplibs_check_method=pass_all 5770 ;; 5771 5772hpux10.20* | hpux11*) 5773 lt_cv_file_magic_cmd=/usr/bin/file 5774 case $host_cpu in 5775 ia64*) 5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5778 ;; 5779 hppa*64*) 5780 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]' 5781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5782 ;; 5783 *) 5784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5785 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5786 ;; 5787 esac 5788 ;; 5789 5790interix[3-9]*) 5791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5793 ;; 5794 5795irix5* | irix6* | nonstopux*) 5796 case $LD in 5797 *-32|*"-32 ") libmagic=32-bit;; 5798 *-n32|*"-n32 ") libmagic=N32;; 5799 *-64|*"-64 ") libmagic=64-bit;; 5800 *) libmagic=never-match;; 5801 esac 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804 5805# This must be glibc/ELF. 5806linux* | k*bsd*-gnu | kopensolaris*-gnu) 5807 lt_cv_deplibs_check_method=pass_all 5808 ;; 5809 5810netbsd*) 5811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5813 else 5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5815 fi 5816 ;; 5817 5818newos6*) 5819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5820 lt_cv_file_magic_cmd=/usr/bin/file 5821 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5822 ;; 5823 5824*nto* | *qnx*) 5825 lt_cv_deplibs_check_method=pass_all 5826 ;; 5827 5828openbsd*) 5829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5831 else 5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5833 fi 5834 ;; 5835 5836osf3* | osf4* | osf5*) 5837 lt_cv_deplibs_check_method=pass_all 5838 ;; 5839 5840rdos*) 5841 lt_cv_deplibs_check_method=pass_all 5842 ;; 5843 5844solaris*) 5845 lt_cv_deplibs_check_method=pass_all 5846 ;; 5847 5848sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5849 lt_cv_deplibs_check_method=pass_all 5850 ;; 5851 5852sysv4 | sysv4.3*) 5853 case $host_vendor in 5854 motorola) 5855 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]' 5856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5857 ;; 5858 ncr) 5859 lt_cv_deplibs_check_method=pass_all 5860 ;; 5861 sequent) 5862 lt_cv_file_magic_cmd='/bin/file' 5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5864 ;; 5865 sni) 5866 lt_cv_file_magic_cmd='/bin/file' 5867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5868 lt_cv_file_magic_test_file=/lib/libc.so 5869 ;; 5870 siemens) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 pc) 5874 lt_cv_deplibs_check_method=pass_all 5875 ;; 5876 esac 5877 ;; 5878 5879tpf*) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882esac 5883 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5886$as_echo "$lt_cv_deplibs_check_method" >&6; } 5887 5888file_magic_glob= 5889want_nocaseglob=no 5890if test "$build" = "$host"; then 5891 case $host_os in 5892 mingw* | pw32*) 5893 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5894 want_nocaseglob=yes 5895 else 5896 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5897 fi 5898 ;; 5899 esac 5900fi 5901 5902file_magic_cmd=$lt_cv_file_magic_cmd 5903deplibs_check_method=$lt_cv_deplibs_check_method 5904test -z "$deplibs_check_method" && deplibs_check_method=unknown 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927if test -n "$ac_tool_prefix"; then 5928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5929set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5931$as_echo_n "checking for $ac_word... " >&6; } 5932if ${ac_cv_prog_DLLTOOL+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 if test -n "$DLLTOOL"; then 5936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5945 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950 done 5951IFS=$as_save_IFS 5952 5953fi 5954fi 5955DLLTOOL=$ac_cv_prog_DLLTOOL 5956if test -n "$DLLTOOL"; then 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5958$as_echo "$DLLTOOL" >&6; } 5959else 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961$as_echo "no" >&6; } 5962fi 5963 5964 5965fi 5966if test -z "$ac_cv_prog_DLLTOOL"; then 5967 ac_ct_DLLTOOL=$DLLTOOL 5968 # Extract the first word of "dlltool", so it can be a program name with args. 5969set dummy dlltool; ac_word=$2 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$ac_ct_DLLTOOL"; then 5976 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5985 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990 done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5996if test -n "$ac_ct_DLLTOOL"; then 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5998$as_echo "$ac_ct_DLLTOOL" >&6; } 5999else 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 if test "x$ac_ct_DLLTOOL" = x; then 6005 DLLTOOL="false" 6006 else 6007 case $cross_compiling:$ac_tool_warned in 6008yes:) 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6011ac_tool_warned=yes ;; 6012esac 6013 DLLTOOL=$ac_ct_DLLTOOL 6014 fi 6015else 6016 DLLTOOL="$ac_cv_prog_DLLTOOL" 6017fi 6018 6019test -z "$DLLTOOL" && DLLTOOL=dlltool 6020 6021 6022 6023 6024 6025 6026 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6028$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6029if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 lt_cv_sharedlib_from_linklib_cmd='unknown' 6033 6034case $host_os in 6035cygwin* | mingw* | pw32* | cegcc*) 6036 # two different shell functions defined in ltmain.sh 6037 # decide which to use based on capabilities of $DLLTOOL 6038 case `$DLLTOOL --help 2>&1` in 6039 *--identify-strict*) 6040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6041 ;; 6042 *) 6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6044 ;; 6045 esac 6046 ;; 6047*) 6048 # fallback: assume linklib IS sharedlib 6049 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6050 ;; 6051esac 6052 6053fi 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6055$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6056sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6057test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6058 6059 6060 6061 6062 6063 6064 6065 6066if test -n "$ac_tool_prefix"; then 6067 for ac_prog in ar 6068 do 6069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6072$as_echo_n "checking for $ac_word... " >&6; } 6073if ${ac_cv_prog_AR+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 if test -n "$AR"; then 6077 ac_cv_prog_AR="$AR" # Let the user override the test. 6078else 6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6080for as_dir in $PATH 6081do 6082 IFS=$as_save_IFS 6083 test -z "$as_dir" && as_dir=. 6084 for ac_exec_ext in '' $ac_executable_extensions; do 6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6086 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6088 break 2 6089 fi 6090done 6091 done 6092IFS=$as_save_IFS 6093 6094fi 6095fi 6096AR=$ac_cv_prog_AR 6097if test -n "$AR"; then 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6099$as_echo "$AR" >&6; } 6100else 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; } 6103fi 6104 6105 6106 test -n "$AR" && break 6107 done 6108fi 6109if test -z "$AR"; then 6110 ac_ct_AR=$AR 6111 for ac_prog in ar 6112do 6113 # Extract the first word of "$ac_prog", so it can be a program name with args. 6114set dummy $ac_prog; ac_word=$2 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116$as_echo_n "checking for $ac_word... " >&6; } 6117if ${ac_cv_prog_ac_ct_AR+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 if test -n "$ac_ct_AR"; then 6121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6122else 6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124for as_dir in $PATH 6125do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6130 ac_cv_prog_ac_ct_AR="$ac_prog" 6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134done 6135 done 6136IFS=$as_save_IFS 6137 6138fi 6139fi 6140ac_ct_AR=$ac_cv_prog_ac_ct_AR 6141if test -n "$ac_ct_AR"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6143$as_echo "$ac_ct_AR" >&6; } 6144else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146$as_echo "no" >&6; } 6147fi 6148 6149 6150 test -n "$ac_ct_AR" && break 6151done 6152 6153 if test "x$ac_ct_AR" = x; then 6154 AR="false" 6155 else 6156 case $cross_compiling:$ac_tool_warned in 6157yes:) 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6160ac_tool_warned=yes ;; 6161esac 6162 AR=$ac_ct_AR 6163 fi 6164fi 6165 6166: ${AR=ar} 6167: ${AR_FLAGS=cru} 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6180$as_echo_n "checking for archiver @FILE support... " >&6; } 6181if ${lt_cv_ar_at_file+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 lt_cv_ar_at_file=no 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187 6188int 6189main () 6190{ 6191 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196if ac_fn_c_try_compile "$LINENO"; then : 6197 echo conftest.$ac_objext > conftest.lst 6198 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6200 (eval $lt_ar_try) 2>&5 6201 ac_status=$? 6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6203 test $ac_status = 0; } 6204 if test "$ac_status" -eq 0; then 6205 # Ensure the archiver fails upon bogus file names. 6206 rm -f conftest.$ac_objext libconftest.a 6207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6208 (eval $lt_ar_try) 2>&5 6209 ac_status=$? 6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6211 test $ac_status = 0; } 6212 if test "$ac_status" -ne 0; then 6213 lt_cv_ar_at_file=@ 6214 fi 6215 fi 6216 rm -f conftest.* libconftest.a 6217 6218fi 6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6220 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6223$as_echo "$lt_cv_ar_at_file" >&6; } 6224 6225if test "x$lt_cv_ar_at_file" = xno; then 6226 archiver_list_spec= 6227else 6228 archiver_list_spec=$lt_cv_ar_at_file 6229fi 6230 6231 6232 6233 6234 6235 6236 6237if test -n "$ac_tool_prefix"; then 6238 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6239set dummy ${ac_tool_prefix}strip; ac_word=$2 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if ${ac_cv_prog_STRIP+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$STRIP"; then 6246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6255 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260 done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265STRIP=$ac_cv_prog_STRIP 6266if test -n "$STRIP"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6268$as_echo "$STRIP" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275fi 6276if test -z "$ac_cv_prog_STRIP"; then 6277 ac_ct_STRIP=$STRIP 6278 # Extract the first word of "strip", so it can be a program name with args. 6279set dummy strip; ac_word=$2 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$ac_ct_STRIP"; then 6286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6295 ac_cv_prog_ac_ct_STRIP="strip" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300 done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6306if test -n "$ac_ct_STRIP"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6308$as_echo "$ac_ct_STRIP" >&6; } 6309else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 if test "x$ac_ct_STRIP" = x; then 6315 STRIP=":" 6316 else 6317 case $cross_compiling:$ac_tool_warned in 6318yes:) 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6321ac_tool_warned=yes ;; 6322esac 6323 STRIP=$ac_ct_STRIP 6324 fi 6325else 6326 STRIP="$ac_cv_prog_STRIP" 6327fi 6328 6329test -z "$STRIP" && STRIP=: 6330 6331 6332 6333 6334 6335 6336if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6338set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_RANLIB+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$RANLIB"; then 6345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364RANLIB=$ac_cv_prog_RANLIB 6365if test -n "$RANLIB"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6367$as_echo "$RANLIB" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374fi 6375if test -z "$ac_cv_prog_RANLIB"; then 6376 ac_ct_RANLIB=$RANLIB 6377 # Extract the first word of "ranlib", so it can be a program name with args. 6378set dummy ranlib; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$ac_ct_RANLIB"; then 6385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6394 ac_cv_prog_ac_ct_RANLIB="ranlib" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6405if test -n "$ac_ct_RANLIB"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6407$as_echo "$ac_ct_RANLIB" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 if test "x$ac_ct_RANLIB" = x; then 6414 RANLIB=":" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417yes:) 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420ac_tool_warned=yes ;; 6421esac 6422 RANLIB=$ac_ct_RANLIB 6423 fi 6424else 6425 RANLIB="$ac_cv_prog_RANLIB" 6426fi 6427 6428test -z "$RANLIB" && RANLIB=: 6429 6430 6431 6432 6433 6434 6435# Determine commands to create old-style static archives. 6436old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6437old_postinstall_cmds='chmod 644 $oldlib' 6438old_postuninstall_cmds= 6439 6440if test -n "$RANLIB"; then 6441 case $host_os in 6442 openbsd*) 6443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6444 ;; 6445 *) 6446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6447 ;; 6448 esac 6449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6450fi 6451 6452case $host_os in 6453 darwin*) 6454 lock_old_archive_extraction=yes ;; 6455 *) 6456 lock_old_archive_extraction=no ;; 6457esac 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497# If no C compiler was specified, use CC. 6498LTCC=${LTCC-"$CC"} 6499 6500# If no C compiler flags were specified, use CFLAGS. 6501LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6502 6503# Allow CC to be a program name with arguments. 6504compiler=$CC 6505 6506 6507# Check for command to grab the raw symbol name followed by C symbol from nm. 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6509$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6510if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512else 6513 6514# These are sane defaults that work on at least a few old systems. 6515# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6516 6517# Character class describing NM global symbol codes. 6518symcode='[BCDEGRST]' 6519 6520# Regexp to match symbols that can be accessed directly from C. 6521sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6522 6523# Define system-specific variables. 6524case $host_os in 6525aix*) 6526 symcode='[BCDT]' 6527 ;; 6528cygwin* | mingw* | pw32* | cegcc*) 6529 symcode='[ABCDGISTW]' 6530 ;; 6531hpux*) 6532 if test "$host_cpu" = ia64; then 6533 symcode='[ABCDEGRST]' 6534 fi 6535 ;; 6536irix* | nonstopux*) 6537 symcode='[BCDEGRST]' 6538 ;; 6539osf*) 6540 symcode='[BCDEGQRST]' 6541 ;; 6542solaris*) 6543 symcode='[BDRT]' 6544 ;; 6545sco3.2v5*) 6546 symcode='[DT]' 6547 ;; 6548sysv4.2uw2*) 6549 symcode='[DT]' 6550 ;; 6551sysv5* | sco5v6* | unixware* | OpenUNIX*) 6552 symcode='[ABDT]' 6553 ;; 6554sysv4) 6555 symcode='[DFNSTU]' 6556 ;; 6557esac 6558 6559# If we're using GNU nm, then use its standard symbol codes. 6560case `$NM -V 2>&1` in 6561*GNU* | *'with BFD'*) 6562 symcode='[ABCDGIRSTW]' ;; 6563esac 6564 6565# Transform an extracted symbol line into a proper C declaration. 6566# Some systems (esp. on ia64) link data and code symbols differently, 6567# so use this general approach. 6568lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6569 6570# Transform an extracted symbol line into symbol name and symbol address 6571lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6572lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6573 6574# Handle CRLF in mingw tool chain 6575opt_cr= 6576case $build_os in 6577mingw*) 6578 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6579 ;; 6580esac 6581 6582# Try without a prefix underscore, then with it. 6583for ac_symprfx in "" "_"; do 6584 6585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6586 symxfrm="\\1 $ac_symprfx\\2 \\2" 6587 6588 # Write the raw and C identifiers. 6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6590 # Fake it for dumpbin and say T for any non-static function 6591 # and D for any global variable. 6592 # Also find C++ and __fastcall symbols from MSVC++, 6593 # which start with @ or ?. 6594 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6595" {last_section=section; section=\$ 3};"\ 6596" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6597" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6598" \$ 0!~/External *\|/{next};"\ 6599" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6600" {if(hide[section]) next};"\ 6601" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6602" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6603" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6604" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6605" ' prfx=^$ac_symprfx" 6606 else 6607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6608 fi 6609 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6610 6611 # Check to see that the pipe works correctly. 6612 pipe_works=no 6613 6614 rm -f conftest* 6615 cat > conftest.$ac_ext <<_LT_EOF 6616#ifdef __cplusplus 6617extern "C" { 6618#endif 6619char nm_test_var; 6620void nm_test_func(void); 6621void nm_test_func(void){} 6622#ifdef __cplusplus 6623} 6624#endif 6625int main(){nm_test_var='a';nm_test_func();return(0);} 6626_LT_EOF 6627 6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6629 (eval $ac_compile) 2>&5 6630 ac_status=$? 6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6632 test $ac_status = 0; }; then 6633 # Now try to grab the symbols. 6634 nlist=conftest.nm 6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6636 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6637 ac_status=$? 6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6639 test $ac_status = 0; } && test -s "$nlist"; then 6640 # Try sorting and uniquifying the output. 6641 if sort "$nlist" | uniq > "$nlist"T; then 6642 mv -f "$nlist"T "$nlist" 6643 else 6644 rm -f "$nlist"T 6645 fi 6646 6647 # Make sure that we snagged all the symbols we need. 6648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6650 cat <<_LT_EOF > conftest.$ac_ext 6651/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6652#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6653/* DATA imports from DLLs on WIN32 con't be const, because runtime 6654 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6655# define LT_DLSYM_CONST 6656#elif defined(__osf__) 6657/* This system does not cope well with relocations in const data. */ 6658# define LT_DLSYM_CONST 6659#else 6660# define LT_DLSYM_CONST const 6661#endif 6662 6663#ifdef __cplusplus 6664extern "C" { 6665#endif 6666 6667_LT_EOF 6668 # Now generate the symbol file. 6669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6670 6671 cat <<_LT_EOF >> conftest.$ac_ext 6672 6673/* The mapping between symbol names and symbols. */ 6674LT_DLSYM_CONST struct { 6675 const char *name; 6676 void *address; 6677} 6678lt__PROGRAM__LTX_preloaded_symbols[] = 6679{ 6680 { "@PROGRAM@", (void *) 0 }, 6681_LT_EOF 6682 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6683 cat <<\_LT_EOF >> conftest.$ac_ext 6684 {0, (void *) 0} 6685}; 6686 6687/* This works around a problem in FreeBSD linker */ 6688#ifdef FREEBSD_WORKAROUND 6689static const void *lt_preloaded_setup() { 6690 return lt__PROGRAM__LTX_preloaded_symbols; 6691} 6692#endif 6693 6694#ifdef __cplusplus 6695} 6696#endif 6697_LT_EOF 6698 # Now try linking the two files. 6699 mv conftest.$ac_objext conftstm.$ac_objext 6700 lt_globsym_save_LIBS=$LIBS 6701 lt_globsym_save_CFLAGS=$CFLAGS 6702 LIBS="conftstm.$ac_objext" 6703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6705 (eval $ac_link) 2>&5 6706 ac_status=$? 6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6708 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6709 pipe_works=yes 6710 fi 6711 LIBS=$lt_globsym_save_LIBS 6712 CFLAGS=$lt_globsym_save_CFLAGS 6713 else 6714 echo "cannot find nm_test_func in $nlist" >&5 6715 fi 6716 else 6717 echo "cannot find nm_test_var in $nlist" >&5 6718 fi 6719 else 6720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6721 fi 6722 else 6723 echo "$progname: failed program was:" >&5 6724 cat conftest.$ac_ext >&5 6725 fi 6726 rm -rf conftest* conftst* 6727 6728 # Do not use the global_symbol_pipe unless it works. 6729 if test "$pipe_works" = yes; then 6730 break 6731 else 6732 lt_cv_sys_global_symbol_pipe= 6733 fi 6734done 6735 6736fi 6737 6738if test -z "$lt_cv_sys_global_symbol_pipe"; then 6739 lt_cv_sys_global_symbol_to_cdecl= 6740fi 6741if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6743$as_echo "failed" >&6; } 6744else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6746$as_echo "ok" >&6; } 6747fi 6748 6749# Response file support. 6750if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6751 nm_file_list_spec='@' 6752elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6753 nm_file_list_spec='@' 6754fi 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6783$as_echo_n "checking for sysroot... " >&6; } 6784 6785# Check whether --with-sysroot was given. 6786if test "${with_sysroot+set}" = set; then : 6787 withval=$with_sysroot; 6788else 6789 with_sysroot=no 6790fi 6791 6792 6793lt_sysroot= 6794case ${with_sysroot} in #( 6795 yes) 6796 if test "$GCC" = yes; then 6797 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6798 fi 6799 ;; #( 6800 /*) 6801 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6802 ;; #( 6803 no|'') 6804 ;; #( 6805 *) 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6807$as_echo "${with_sysroot}" >&6; } 6808 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6809 ;; 6810esac 6811 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6813$as_echo "${lt_sysroot:-no}" >&6; } 6814 6815 6816 6817 6818 6819# Check whether --enable-libtool-lock was given. 6820if test "${enable_libtool_lock+set}" = set; then : 6821 enableval=$enable_libtool_lock; 6822fi 6823 6824test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6825 6826# Some flags need to be propagated to the compiler or linker for good 6827# libtool support. 6828case $host in 6829ia64-*-hpux*) 6830 # Find out which ABI we are using. 6831 echo 'int i;' > conftest.$ac_ext 6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6833 (eval $ac_compile) 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6836 test $ac_status = 0; }; then 6837 case `/usr/bin/file conftest.$ac_objext` in 6838 *ELF-32*) 6839 HPUX_IA64_MODE="32" 6840 ;; 6841 *ELF-64*) 6842 HPUX_IA64_MODE="64" 6843 ;; 6844 esac 6845 fi 6846 rm -rf conftest* 6847 ;; 6848*-*-irix6*) 6849 # Find out which ABI we are using. 6850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6852 (eval $ac_compile) 2>&5 6853 ac_status=$? 6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6855 test $ac_status = 0; }; then 6856 if test "$lt_cv_prog_gnu_ld" = yes; then 6857 case `/usr/bin/file conftest.$ac_objext` in 6858 *32-bit*) 6859 LD="${LD-ld} -melf32bsmip" 6860 ;; 6861 *N32*) 6862 LD="${LD-ld} -melf32bmipn32" 6863 ;; 6864 *64-bit*) 6865 LD="${LD-ld} -melf64bmip" 6866 ;; 6867 esac 6868 else 6869 case `/usr/bin/file conftest.$ac_objext` in 6870 *32-bit*) 6871 LD="${LD-ld} -32" 6872 ;; 6873 *N32*) 6874 LD="${LD-ld} -n32" 6875 ;; 6876 *64-bit*) 6877 LD="${LD-ld} -64" 6878 ;; 6879 esac 6880 fi 6881 fi 6882 rm -rf conftest* 6883 ;; 6884 6885x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6886s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6887 # Find out which ABI we are using. 6888 echo 'int i;' > conftest.$ac_ext 6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6890 (eval $ac_compile) 2>&5 6891 ac_status=$? 6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6893 test $ac_status = 0; }; then 6894 case `/usr/bin/file conftest.o` in 6895 *32-bit*) 6896 case $host in 6897 x86_64-*kfreebsd*-gnu) 6898 LD="${LD-ld} -m elf_i386_fbsd" 6899 ;; 6900 x86_64-*linux*) 6901 LD="${LD-ld} -m elf_i386" 6902 ;; 6903 ppc64-*linux*|powerpc64-*linux*) 6904 LD="${LD-ld} -m elf32ppclinux" 6905 ;; 6906 s390x-*linux*) 6907 LD="${LD-ld} -m elf_s390" 6908 ;; 6909 sparc64-*linux*) 6910 LD="${LD-ld} -m elf32_sparc" 6911 ;; 6912 esac 6913 ;; 6914 *64-bit*) 6915 case $host in 6916 x86_64-*kfreebsd*-gnu) 6917 LD="${LD-ld} -m elf_x86_64_fbsd" 6918 ;; 6919 x86_64-*linux*) 6920 LD="${LD-ld} -m elf_x86_64" 6921 ;; 6922 ppc*-*linux*|powerpc*-*linux*) 6923 LD="${LD-ld} -m elf64ppc" 6924 ;; 6925 s390*-*linux*|s390*-*tpf*) 6926 LD="${LD-ld} -m elf64_s390" 6927 ;; 6928 sparc*-*linux*) 6929 LD="${LD-ld} -m elf64_sparc" 6930 ;; 6931 esac 6932 ;; 6933 esac 6934 fi 6935 rm -rf conftest* 6936 ;; 6937 6938*-*-sco3.2v5*) 6939 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6940 SAVE_CFLAGS="$CFLAGS" 6941 CFLAGS="$CFLAGS -belf" 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6943$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6944if ${lt_cv_cc_needs_belf+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 ac_ext=c 6948ac_cpp='$CPP $CPPFLAGS' 6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6951ac_compiler_gnu=$ac_cv_c_compiler_gnu 6952 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955 6956int 6957main () 6958{ 6959 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964if ac_fn_c_try_link "$LINENO"; then : 6965 lt_cv_cc_needs_belf=yes 6966else 6967 lt_cv_cc_needs_belf=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext \ 6970 conftest$ac_exeext conftest.$ac_ext 6971 ac_ext=c 6972ac_cpp='$CPP $CPPFLAGS' 6973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6975ac_compiler_gnu=$ac_cv_c_compiler_gnu 6976 6977fi 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6979$as_echo "$lt_cv_cc_needs_belf" >&6; } 6980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6982 CFLAGS="$SAVE_CFLAGS" 6983 fi 6984 ;; 6985*-*solaris*) 6986 # Find out which ABI we are using. 6987 echo 'int i;' > conftest.$ac_ext 6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6989 (eval $ac_compile) 2>&5 6990 ac_status=$? 6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6992 test $ac_status = 0; }; then 6993 case `/usr/bin/file conftest.o` in 6994 *64-bit*) 6995 case $lt_cv_prog_gnu_ld in 6996 yes*) 6997 case $host in 6998 i?86-*-solaris*) 6999 LD="${LD-ld} -m elf_x86_64" 7000 ;; 7001 sparc*-*-solaris*) 7002 LD="${LD-ld} -m elf64_sparc" 7003 ;; 7004 esac 7005 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7006 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7007 LD="${LD-ld}_sol2" 7008 fi 7009 ;; 7010 *) 7011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7012 LD="${LD-ld} -64" 7013 fi 7014 ;; 7015 esac 7016 ;; 7017 esac 7018 fi 7019 rm -rf conftest* 7020 ;; 7021esac 7022 7023need_locks="$enable_libtool_lock" 7024 7025if test -n "$ac_tool_prefix"; then 7026 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7027set dummy ${ac_tool_prefix}mt; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$MANIFEST_TOOL"; then 7034 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7054if test -n "$MANIFEST_TOOL"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7056$as_echo "$MANIFEST_TOOL" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 7063fi 7064if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7065 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7066 # Extract the first word of "mt", so it can be a program name with args. 7067set dummy mt; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 if test -n "$ac_ct_MANIFEST_TOOL"; then 7074 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7083 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi 7092fi 7093ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7094if test -n "$ac_ct_MANIFEST_TOOL"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7096$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7103 MANIFEST_TOOL=":" 7104 else 7105 case $cross_compiling:$ac_tool_warned in 7106yes:) 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7109ac_tool_warned=yes ;; 7110esac 7111 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7112 fi 7113else 7114 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7115fi 7116 7117test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7119$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7120if ${lt_cv_path_mainfest_tool+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 lt_cv_path_mainfest_tool=no 7124 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7125 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7126 cat conftest.err >&5 7127 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7128 lt_cv_path_mainfest_tool=yes 7129 fi 7130 rm -f conftest* 7131fi 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7133$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7134if test "x$lt_cv_path_mainfest_tool" != xyes; then 7135 MANIFEST_TOOL=: 7136fi 7137 7138 7139 7140 7141 7142 7143 case $host_os in 7144 rhapsody* | darwin*) 7145 if test -n "$ac_tool_prefix"; then 7146 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7147set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7149$as_echo_n "checking for $ac_word... " >&6; } 7150if ${ac_cv_prog_DSYMUTIL+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 if test -n "$DSYMUTIL"; then 7154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7155else 7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7163 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167done 7168 done 7169IFS=$as_save_IFS 7170 7171fi 7172fi 7173DSYMUTIL=$ac_cv_prog_DSYMUTIL 7174if test -n "$DSYMUTIL"; then 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7176$as_echo "$DSYMUTIL" >&6; } 7177else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179$as_echo "no" >&6; } 7180fi 7181 7182 7183fi 7184if test -z "$ac_cv_prog_DSYMUTIL"; then 7185 ac_ct_DSYMUTIL=$DSYMUTIL 7186 # Extract the first word of "dsymutil", so it can be a program name with args. 7187set dummy dsymutil; ac_word=$2 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189$as_echo_n "checking for $ac_word... " >&6; } 7190if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 if test -n "$ac_ct_DSYMUTIL"; then 7194 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7195else 7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197for as_dir in $PATH 7198do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7203 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207done 7208 done 7209IFS=$as_save_IFS 7210 7211fi 7212fi 7213ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7214if test -n "$ac_ct_DSYMUTIL"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7216$as_echo "$ac_ct_DSYMUTIL" >&6; } 7217else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219$as_echo "no" >&6; } 7220fi 7221 7222 if test "x$ac_ct_DSYMUTIL" = x; then 7223 DSYMUTIL=":" 7224 else 7225 case $cross_compiling:$ac_tool_warned in 7226yes:) 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7229ac_tool_warned=yes ;; 7230esac 7231 DSYMUTIL=$ac_ct_DSYMUTIL 7232 fi 7233else 7234 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7235fi 7236 7237 if test -n "$ac_tool_prefix"; then 7238 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7239set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7241$as_echo_n "checking for $ac_word... " >&6; } 7242if ${ac_cv_prog_NMEDIT+:} false; then : 7243 $as_echo_n "(cached) " >&6 7244else 7245 if test -n "$NMEDIT"; then 7246 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7247else 7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249for as_dir in $PATH 7250do 7251 IFS=$as_save_IFS 7252 test -z "$as_dir" && as_dir=. 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7255 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7257 break 2 7258 fi 7259done 7260 done 7261IFS=$as_save_IFS 7262 7263fi 7264fi 7265NMEDIT=$ac_cv_prog_NMEDIT 7266if test -n "$NMEDIT"; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7268$as_echo "$NMEDIT" >&6; } 7269else 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271$as_echo "no" >&6; } 7272fi 7273 7274 7275fi 7276if test -z "$ac_cv_prog_NMEDIT"; then 7277 ac_ct_NMEDIT=$NMEDIT 7278 # Extract the first word of "nmedit", so it can be a program name with args. 7279set dummy nmedit; ac_word=$2 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281$as_echo_n "checking for $ac_word... " >&6; } 7282if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 if test -n "$ac_ct_NMEDIT"; then 7286 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7287else 7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289for as_dir in $PATH 7290do 7291 IFS=$as_save_IFS 7292 test -z "$as_dir" && as_dir=. 7293 for ac_exec_ext in '' $ac_executable_extensions; do 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7295 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7297 break 2 7298 fi 7299done 7300 done 7301IFS=$as_save_IFS 7302 7303fi 7304fi 7305ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7306if test -n "$ac_ct_NMEDIT"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7308$as_echo "$ac_ct_NMEDIT" >&6; } 7309else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 if test "x$ac_ct_NMEDIT" = x; then 7315 NMEDIT=":" 7316 else 7317 case $cross_compiling:$ac_tool_warned in 7318yes:) 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7321ac_tool_warned=yes ;; 7322esac 7323 NMEDIT=$ac_ct_NMEDIT 7324 fi 7325else 7326 NMEDIT="$ac_cv_prog_NMEDIT" 7327fi 7328 7329 if test -n "$ac_tool_prefix"; then 7330 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7331set dummy ${ac_tool_prefix}lipo; ac_word=$2 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7333$as_echo_n "checking for $ac_word... " >&6; } 7334if ${ac_cv_prog_LIPO+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 if test -n "$LIPO"; then 7338 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7339else 7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7341for as_dir in $PATH 7342do 7343 IFS=$as_save_IFS 7344 test -z "$as_dir" && as_dir=. 7345 for ac_exec_ext in '' $ac_executable_extensions; do 7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7347 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7349 break 2 7350 fi 7351done 7352 done 7353IFS=$as_save_IFS 7354 7355fi 7356fi 7357LIPO=$ac_cv_prog_LIPO 7358if test -n "$LIPO"; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7360$as_echo "$LIPO" >&6; } 7361else 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7363$as_echo "no" >&6; } 7364fi 7365 7366 7367fi 7368if test -z "$ac_cv_prog_LIPO"; then 7369 ac_ct_LIPO=$LIPO 7370 # Extract the first word of "lipo", so it can be a program name with args. 7371set dummy lipo; ac_word=$2 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7373$as_echo_n "checking for $ac_word... " >&6; } 7374if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 if test -n "$ac_ct_LIPO"; then 7378 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7379else 7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381for as_dir in $PATH 7382do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7387 ac_cv_prog_ac_ct_LIPO="lipo" 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7389 break 2 7390 fi 7391done 7392 done 7393IFS=$as_save_IFS 7394 7395fi 7396fi 7397ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7398if test -n "$ac_ct_LIPO"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7400$as_echo "$ac_ct_LIPO" >&6; } 7401else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7403$as_echo "no" >&6; } 7404fi 7405 7406 if test "x$ac_ct_LIPO" = x; then 7407 LIPO=":" 7408 else 7409 case $cross_compiling:$ac_tool_warned in 7410yes:) 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7413ac_tool_warned=yes ;; 7414esac 7415 LIPO=$ac_ct_LIPO 7416 fi 7417else 7418 LIPO="$ac_cv_prog_LIPO" 7419fi 7420 7421 if test -n "$ac_tool_prefix"; then 7422 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7423set dummy ${ac_tool_prefix}otool; ac_word=$2 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7425$as_echo_n "checking for $ac_word... " >&6; } 7426if ${ac_cv_prog_OTOOL+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 if test -n "$OTOOL"; then 7430 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7431else 7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433for as_dir in $PATH 7434do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_exec_ext in '' $ac_executable_extensions; do 7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7439 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7441 break 2 7442 fi 7443done 7444 done 7445IFS=$as_save_IFS 7446 7447fi 7448fi 7449OTOOL=$ac_cv_prog_OTOOL 7450if test -n "$OTOOL"; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7452$as_echo "$OTOOL" >&6; } 7453else 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7455$as_echo "no" >&6; } 7456fi 7457 7458 7459fi 7460if test -z "$ac_cv_prog_OTOOL"; then 7461 ac_ct_OTOOL=$OTOOL 7462 # Extract the first word of "otool", so it can be a program name with args. 7463set dummy otool; ac_word=$2 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7465$as_echo_n "checking for $ac_word... " >&6; } 7466if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 if test -n "$ac_ct_OTOOL"; then 7470 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7471else 7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 test -z "$as_dir" && as_dir=. 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7479 ac_cv_prog_ac_ct_OTOOL="otool" 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483done 7484 done 7485IFS=$as_save_IFS 7486 7487fi 7488fi 7489ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7490if test -n "$ac_ct_OTOOL"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7492$as_echo "$ac_ct_OTOOL" >&6; } 7493else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496fi 7497 7498 if test "x$ac_ct_OTOOL" = x; then 7499 OTOOL=":" 7500 else 7501 case $cross_compiling:$ac_tool_warned in 7502yes:) 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7505ac_tool_warned=yes ;; 7506esac 7507 OTOOL=$ac_ct_OTOOL 7508 fi 7509else 7510 OTOOL="$ac_cv_prog_OTOOL" 7511fi 7512 7513 if test -n "$ac_tool_prefix"; then 7514 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7515set dummy ${ac_tool_prefix}otool64; ac_word=$2 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7517$as_echo_n "checking for $ac_word... " >&6; } 7518if ${ac_cv_prog_OTOOL64+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 if test -n "$OTOOL64"; then 7522 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7523else 7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7531 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539fi 7540fi 7541OTOOL64=$ac_cv_prog_OTOOL64 7542if test -n "$OTOOL64"; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7544$as_echo "$OTOOL64" >&6; } 7545else 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547$as_echo "no" >&6; } 7548fi 7549 7550 7551fi 7552if test -z "$ac_cv_prog_OTOOL64"; then 7553 ac_ct_OTOOL64=$OTOOL64 7554 # Extract the first word of "otool64", so it can be a program name with args. 7555set dummy otool64; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$ac_ct_OTOOL64"; then 7562 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7571 ac_cv_prog_ac_ct_OTOOL64="otool64" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7582if test -n "$ac_ct_OTOOL64"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7584$as_echo "$ac_ct_OTOOL64" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 if test "x$ac_ct_OTOOL64" = x; then 7591 OTOOL64=":" 7592 else 7593 case $cross_compiling:$ac_tool_warned in 7594yes:) 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7597ac_tool_warned=yes ;; 7598esac 7599 OTOOL64=$ac_ct_OTOOL64 7600 fi 7601else 7602 OTOOL64="$ac_cv_prog_OTOOL64" 7603fi 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7632$as_echo_n "checking for -single_module linker flag... " >&6; } 7633if ${lt_cv_apple_cc_single_mod+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 lt_cv_apple_cc_single_mod=no 7637 if test -z "${LT_MULTI_MODULE}"; then 7638 # By default we will add the -single_module flag. You can override 7639 # by either setting the environment variable LT_MULTI_MODULE 7640 # non-empty at configure time, or by adding -multi_module to the 7641 # link flags. 7642 rm -rf libconftest.dylib* 7643 echo "int foo(void){return 1;}" > conftest.c 7644 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7645-dynamiclib -Wl,-single_module conftest.c" >&5 7646 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7647 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7648 _lt_result=$? 7649 # If there is a non-empty error log, and "single_module" 7650 # appears in it, assume the flag caused a linker warning 7651 if test -s conftest.err && $GREP single_module conftest.err; then 7652 cat conftest.err >&5 7653 # Otherwise, if the output was created with a 0 exit code from 7654 # the compiler, it worked. 7655 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7656 lt_cv_apple_cc_single_mod=yes 7657 else 7658 cat conftest.err >&5 7659 fi 7660 rm -rf libconftest.dylib* 7661 rm -f conftest.* 7662 fi 7663fi 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7665$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7666 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7668$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7669if ${lt_cv_ld_exported_symbols_list+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 lt_cv_ld_exported_symbols_list=no 7673 save_LDFLAGS=$LDFLAGS 7674 echo "_main" > conftest.sym 7675 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 lt_cv_ld_exported_symbols_list=yes 7689else 7690 lt_cv_ld_exported_symbols_list=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext \ 7693 conftest$ac_exeext conftest.$ac_ext 7694 LDFLAGS="$save_LDFLAGS" 7695 7696fi 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7698$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7699 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7701$as_echo_n "checking for -force_load linker flag... " >&6; } 7702if ${lt_cv_ld_force_load+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 lt_cv_ld_force_load=no 7706 cat > conftest.c << _LT_EOF 7707int forced_loaded() { return 2;} 7708_LT_EOF 7709 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7710 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7711 echo "$AR cru libconftest.a conftest.o" >&5 7712 $AR cru libconftest.a conftest.o 2>&5 7713 echo "$RANLIB libconftest.a" >&5 7714 $RANLIB libconftest.a 2>&5 7715 cat > conftest.c << _LT_EOF 7716int main() { return 0;} 7717_LT_EOF 7718 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7719 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7720 _lt_result=$? 7721 if test -s conftest.err && $GREP force_load conftest.err; then 7722 cat conftest.err >&5 7723 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7724 lt_cv_ld_force_load=yes 7725 else 7726 cat conftest.err >&5 7727 fi 7728 rm -f conftest.err libconftest.a conftest conftest.c 7729 rm -rf conftest.dSYM 7730 7731fi 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7733$as_echo "$lt_cv_ld_force_load" >&6; } 7734 case $host_os in 7735 rhapsody* | darwin1.[012]) 7736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7737 darwin1.*) 7738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7739 darwin*) # darwin 5.x on 7740 # if running on 10.5 or later, the deployment target defaults 7741 # to the OS version, if on x86, and 10.4, the deployment 7742 # target defaults to 10.4. Don't you love it? 7743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7744 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7746 10.[012]*) 7747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7748 10.*) 7749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7750 esac 7751 ;; 7752 esac 7753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7754 _lt_dar_single_mod='$single_module' 7755 fi 7756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7758 else 7759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7760 fi 7761 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7762 _lt_dsymutil='~$DSYMUTIL $lib || :' 7763 else 7764 _lt_dsymutil= 7765 fi 7766 ;; 7767 esac 7768 7769ac_ext=c 7770ac_cpp='$CPP $CPPFLAGS' 7771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7773ac_compiler_gnu=$ac_cv_c_compiler_gnu 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7775$as_echo_n "checking how to run the C preprocessor... " >&6; } 7776# On Suns, sometimes $CPP names a directory. 7777if test -n "$CPP" && test -d "$CPP"; then 7778 CPP= 7779fi 7780if test -z "$CPP"; then 7781 if ${ac_cv_prog_CPP+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 # Double quotes because CPP needs to be expanded 7785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7786 do 7787 ac_preproc_ok=false 7788for ac_c_preproc_warn_flag in '' yes 7789do 7790 # Use a header file that comes with gcc, so configuring glibc 7791 # with a fresh cross-compiler works. 7792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7793 # <limits.h> exists even on freestanding compilers. 7794 # On the NeXT, cc -E runs the code through the compiler's parser, 7795 # not just through cpp. "Syntax error" is here to catch this case. 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797/* end confdefs.h. */ 7798#ifdef __STDC__ 7799# include <limits.h> 7800#else 7801# include <assert.h> 7802#endif 7803 Syntax error 7804_ACEOF 7805if ac_fn_c_try_cpp "$LINENO"; then : 7806 7807else 7808 # Broken: fails on valid input. 7809continue 7810fi 7811rm -f conftest.err conftest.i conftest.$ac_ext 7812 7813 # OK, works on sane cases. Now check whether nonexistent headers 7814 # can be detected and how. 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817#include <ac_nonexistent.h> 7818_ACEOF 7819if ac_fn_c_try_cpp "$LINENO"; then : 7820 # Broken: success on invalid input. 7821continue 7822else 7823 # Passes both tests. 7824ac_preproc_ok=: 7825break 7826fi 7827rm -f conftest.err conftest.i conftest.$ac_ext 7828 7829done 7830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7831rm -f conftest.i conftest.err conftest.$ac_ext 7832if $ac_preproc_ok; then : 7833 break 7834fi 7835 7836 done 7837 ac_cv_prog_CPP=$CPP 7838 7839fi 7840 CPP=$ac_cv_prog_CPP 7841else 7842 ac_cv_prog_CPP=$CPP 7843fi 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7845$as_echo "$CPP" >&6; } 7846ac_preproc_ok=false 7847for ac_c_preproc_warn_flag in '' yes 7848do 7849 # Use a header file that comes with gcc, so configuring glibc 7850 # with a fresh cross-compiler works. 7851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7852 # <limits.h> exists even on freestanding compilers. 7853 # On the NeXT, cc -E runs the code through the compiler's parser, 7854 # not just through cpp. "Syntax error" is here to catch this case. 7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7856/* end confdefs.h. */ 7857#ifdef __STDC__ 7858# include <limits.h> 7859#else 7860# include <assert.h> 7861#endif 7862 Syntax error 7863_ACEOF 7864if ac_fn_c_try_cpp "$LINENO"; then : 7865 7866else 7867 # Broken: fails on valid input. 7868continue 7869fi 7870rm -f conftest.err conftest.i conftest.$ac_ext 7871 7872 # OK, works on sane cases. Now check whether nonexistent headers 7873 # can be detected and how. 7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876#include <ac_nonexistent.h> 7877_ACEOF 7878if ac_fn_c_try_cpp "$LINENO"; then : 7879 # Broken: success on invalid input. 7880continue 7881else 7882 # Passes both tests. 7883ac_preproc_ok=: 7884break 7885fi 7886rm -f conftest.err conftest.i conftest.$ac_ext 7887 7888done 7889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7890rm -f conftest.i conftest.err conftest.$ac_ext 7891if $ac_preproc_ok; then : 7892 7893else 7894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7896as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7897See \`config.log' for more details" "$LINENO" 5; } 7898fi 7899 7900ac_ext=c 7901ac_cpp='$CPP $CPPFLAGS' 7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7904ac_compiler_gnu=$ac_cv_c_compiler_gnu 7905 7906 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7908$as_echo_n "checking for ANSI C header files... " >&6; } 7909if ${ac_cv_header_stdc+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914#include <stdlib.h> 7915#include <stdarg.h> 7916#include <string.h> 7917#include <float.h> 7918 7919int 7920main () 7921{ 7922 7923 ; 7924 return 0; 7925} 7926_ACEOF 7927if ac_fn_c_try_compile "$LINENO"; then : 7928 ac_cv_header_stdc=yes 7929else 7930 ac_cv_header_stdc=no 7931fi 7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7933 7934if test $ac_cv_header_stdc = yes; then 7935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938#include <string.h> 7939 7940_ACEOF 7941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7942 $EGREP "memchr" >/dev/null 2>&1; then : 7943 7944else 7945 ac_cv_header_stdc=no 7946fi 7947rm -f conftest* 7948 7949fi 7950 7951if test $ac_cv_header_stdc = yes; then 7952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7954/* end confdefs.h. */ 7955#include <stdlib.h> 7956 7957_ACEOF 7958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7959 $EGREP "free" >/dev/null 2>&1; then : 7960 7961else 7962 ac_cv_header_stdc=no 7963fi 7964rm -f conftest* 7965 7966fi 7967 7968if test $ac_cv_header_stdc = yes; then 7969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7970 if test "$cross_compiling" = yes; then : 7971 : 7972else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975#include <ctype.h> 7976#include <stdlib.h> 7977#if ((' ' & 0x0FF) == 0x020) 7978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7980#else 7981# define ISLOWER(c) \ 7982 (('a' <= (c) && (c) <= 'i') \ 7983 || ('j' <= (c) && (c) <= 'r') \ 7984 || ('s' <= (c) && (c) <= 'z')) 7985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7986#endif 7987 7988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7989int 7990main () 7991{ 7992 int i; 7993 for (i = 0; i < 256; i++) 7994 if (XOR (islower (i), ISLOWER (i)) 7995 || toupper (i) != TOUPPER (i)) 7996 return 2; 7997 return 0; 7998} 7999_ACEOF 8000if ac_fn_c_try_run "$LINENO"; then : 8001 8002else 8003 ac_cv_header_stdc=no 8004fi 8005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8006 conftest.$ac_objext conftest.beam conftest.$ac_ext 8007fi 8008 8009fi 8010fi 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8012$as_echo "$ac_cv_header_stdc" >&6; } 8013if test $ac_cv_header_stdc = yes; then 8014 8015$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8016 8017fi 8018 8019# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8021 inttypes.h stdint.h unistd.h 8022do : 8023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8025" 8026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8027 cat >>confdefs.h <<_ACEOF 8028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8029_ACEOF 8030 8031fi 8032 8033done 8034 8035 8036for ac_header in dlfcn.h 8037do : 8038 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8039" 8040if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8041 cat >>confdefs.h <<_ACEOF 8042#define HAVE_DLFCN_H 1 8043_ACEOF 8044 8045fi 8046 8047done 8048 8049 8050 8051 8052 8053# Set options 8054enable_win32_dll=yes 8055 8056case $host in 8057*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8058 if test -n "$ac_tool_prefix"; then 8059 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8060set dummy ${ac_tool_prefix}as; ac_word=$2 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8062$as_echo_n "checking for $ac_word... " >&6; } 8063if ${ac_cv_prog_AS+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 if test -n "$AS"; then 8067 ac_cv_prog_AS="$AS" # Let the user override the test. 8068else 8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8070for as_dir in $PATH 8071do 8072 IFS=$as_save_IFS 8073 test -z "$as_dir" && as_dir=. 8074 for ac_exec_ext in '' $ac_executable_extensions; do 8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8076 ac_cv_prog_AS="${ac_tool_prefix}as" 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8078 break 2 8079 fi 8080done 8081 done 8082IFS=$as_save_IFS 8083 8084fi 8085fi 8086AS=$ac_cv_prog_AS 8087if test -n "$AS"; then 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8089$as_echo "$AS" >&6; } 8090else 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092$as_echo "no" >&6; } 8093fi 8094 8095 8096fi 8097if test -z "$ac_cv_prog_AS"; then 8098 ac_ct_AS=$AS 8099 # Extract the first word of "as", so it can be a program name with args. 8100set dummy as; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_ac_ct_AS+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$ac_ct_AS"; then 8107 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8116 ac_cv_prog_ac_ct_AS="as" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126ac_ct_AS=$ac_cv_prog_ac_ct_AS 8127if test -n "$ac_ct_AS"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8129$as_echo "$ac_ct_AS" >&6; } 8130else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132$as_echo "no" >&6; } 8133fi 8134 8135 if test "x$ac_ct_AS" = x; then 8136 AS="false" 8137 else 8138 case $cross_compiling:$ac_tool_warned in 8139yes:) 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8142ac_tool_warned=yes ;; 8143esac 8144 AS=$ac_ct_AS 8145 fi 8146else 8147 AS="$ac_cv_prog_AS" 8148fi 8149 8150 if test -n "$ac_tool_prefix"; then 8151 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8152set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8154$as_echo_n "checking for $ac_word... " >&6; } 8155if ${ac_cv_prog_DLLTOOL+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 if test -n "$DLLTOOL"; then 8159 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8160else 8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8162for as_dir in $PATH 8163do 8164 IFS=$as_save_IFS 8165 test -z "$as_dir" && as_dir=. 8166 for ac_exec_ext in '' $ac_executable_extensions; do 8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8168 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8170 break 2 8171 fi 8172done 8173 done 8174IFS=$as_save_IFS 8175 8176fi 8177fi 8178DLLTOOL=$ac_cv_prog_DLLTOOL 8179if test -n "$DLLTOOL"; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8181$as_echo "$DLLTOOL" >&6; } 8182else 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8184$as_echo "no" >&6; } 8185fi 8186 8187 8188fi 8189if test -z "$ac_cv_prog_DLLTOOL"; then 8190 ac_ct_DLLTOOL=$DLLTOOL 8191 # Extract the first word of "dlltool", so it can be a program name with args. 8192set dummy dlltool; ac_word=$2 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194$as_echo_n "checking for $ac_word... " >&6; } 8195if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 if test -n "$ac_ct_DLLTOOL"; then 8199 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8200else 8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202for as_dir in $PATH 8203do 8204 IFS=$as_save_IFS 8205 test -z "$as_dir" && as_dir=. 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8208 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212done 8213 done 8214IFS=$as_save_IFS 8215 8216fi 8217fi 8218ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8219if test -n "$ac_ct_DLLTOOL"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8221$as_echo "$ac_ct_DLLTOOL" >&6; } 8222else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224$as_echo "no" >&6; } 8225fi 8226 8227 if test "x$ac_ct_DLLTOOL" = x; then 8228 DLLTOOL="false" 8229 else 8230 case $cross_compiling:$ac_tool_warned in 8231yes:) 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8234ac_tool_warned=yes ;; 8235esac 8236 DLLTOOL=$ac_ct_DLLTOOL 8237 fi 8238else 8239 DLLTOOL="$ac_cv_prog_DLLTOOL" 8240fi 8241 8242 if test -n "$ac_tool_prefix"; then 8243 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8244set dummy ${ac_tool_prefix}objdump; ac_word=$2 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246$as_echo_n "checking for $ac_word... " >&6; } 8247if ${ac_cv_prog_OBJDUMP+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 if test -n "$OBJDUMP"; then 8251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8252else 8253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8254for as_dir in $PATH 8255do 8256 IFS=$as_save_IFS 8257 test -z "$as_dir" && as_dir=. 8258 for ac_exec_ext in '' $ac_executable_extensions; do 8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8260 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8262 break 2 8263 fi 8264done 8265 done 8266IFS=$as_save_IFS 8267 8268fi 8269fi 8270OBJDUMP=$ac_cv_prog_OBJDUMP 8271if test -n "$OBJDUMP"; then 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8273$as_echo "$OBJDUMP" >&6; } 8274else 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8276$as_echo "no" >&6; } 8277fi 8278 8279 8280fi 8281if test -z "$ac_cv_prog_OBJDUMP"; then 8282 ac_ct_OBJDUMP=$OBJDUMP 8283 # Extract the first word of "objdump", so it can be a program name with args. 8284set dummy objdump; ac_word=$2 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286$as_echo_n "checking for $ac_word... " >&6; } 8287if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 if test -n "$ac_ct_OBJDUMP"; then 8291 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8292else 8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294for as_dir in $PATH 8295do 8296 IFS=$as_save_IFS 8297 test -z "$as_dir" && as_dir=. 8298 for ac_exec_ext in '' $ac_executable_extensions; do 8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8300 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8302 break 2 8303 fi 8304done 8305 done 8306IFS=$as_save_IFS 8307 8308fi 8309fi 8310ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8311if test -n "$ac_ct_OBJDUMP"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8313$as_echo "$ac_ct_OBJDUMP" >&6; } 8314else 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316$as_echo "no" >&6; } 8317fi 8318 8319 if test "x$ac_ct_OBJDUMP" = x; then 8320 OBJDUMP="false" 8321 else 8322 case $cross_compiling:$ac_tool_warned in 8323yes:) 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8326ac_tool_warned=yes ;; 8327esac 8328 OBJDUMP=$ac_ct_OBJDUMP 8329 fi 8330else 8331 OBJDUMP="$ac_cv_prog_OBJDUMP" 8332fi 8333 8334 ;; 8335esac 8336 8337test -z "$AS" && AS=as 8338 8339 8340 8341 8342 8343test -z "$DLLTOOL" && DLLTOOL=dlltool 8344 8345 8346 8347 8348 8349test -z "$OBJDUMP" && OBJDUMP=objdump 8350 8351 8352 8353 8354 8355 8356 8357 enable_dlopen=no 8358 8359 8360 8361 # Check whether --enable-shared was given. 8362if test "${enable_shared+set}" = set; then : 8363 enableval=$enable_shared; p=${PACKAGE-default} 8364 case $enableval in 8365 yes) enable_shared=yes ;; 8366 no) enable_shared=no ;; 8367 *) 8368 enable_shared=no 8369 # Look at the argument we got. We use all the common list separators. 8370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8371 for pkg in $enableval; do 8372 IFS="$lt_save_ifs" 8373 if test "X$pkg" = "X$p"; then 8374 enable_shared=yes 8375 fi 8376 done 8377 IFS="$lt_save_ifs" 8378 ;; 8379 esac 8380else 8381 enable_shared=yes 8382fi 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 # Check whether --enable-static was given. 8393if test "${enable_static+set}" = set; then : 8394 enableval=$enable_static; p=${PACKAGE-default} 8395 case $enableval in 8396 yes) enable_static=yes ;; 8397 no) enable_static=no ;; 8398 *) 8399 enable_static=no 8400 # Look at the argument we got. We use all the common list separators. 8401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8402 for pkg in $enableval; do 8403 IFS="$lt_save_ifs" 8404 if test "X$pkg" = "X$p"; then 8405 enable_static=yes 8406 fi 8407 done 8408 IFS="$lt_save_ifs" 8409 ;; 8410 esac 8411else 8412 enable_static=yes 8413fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424# Check whether --with-pic was given. 8425if test "${with_pic+set}" = set; then : 8426 withval=$with_pic; lt_p=${PACKAGE-default} 8427 case $withval in 8428 yes|no) pic_mode=$withval ;; 8429 *) 8430 pic_mode=default 8431 # Look at the argument we got. We use all the common list separators. 8432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8433 for lt_pkg in $withval; do 8434 IFS="$lt_save_ifs" 8435 if test "X$lt_pkg" = "X$lt_p"; then 8436 pic_mode=yes 8437 fi 8438 done 8439 IFS="$lt_save_ifs" 8440 ;; 8441 esac 8442else 8443 pic_mode=default 8444fi 8445 8446 8447test -z "$pic_mode" && pic_mode=default 8448 8449 8450 8451 8452 8453 8454 8455 # Check whether --enable-fast-install was given. 8456if test "${enable_fast_install+set}" = set; then : 8457 enableval=$enable_fast_install; p=${PACKAGE-default} 8458 case $enableval in 8459 yes) enable_fast_install=yes ;; 8460 no) enable_fast_install=no ;; 8461 *) 8462 enable_fast_install=no 8463 # Look at the argument we got. We use all the common list separators. 8464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8465 for pkg in $enableval; do 8466 IFS="$lt_save_ifs" 8467 if test "X$pkg" = "X$p"; then 8468 enable_fast_install=yes 8469 fi 8470 done 8471 IFS="$lt_save_ifs" 8472 ;; 8473 esac 8474else 8475 enable_fast_install=yes 8476fi 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488# This can be used to rebuild libtool when needed 8489LIBTOOL_DEPS="$ltmain" 8490 8491# Always use our own libtool. 8492LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523test -z "$LN_S" && LN_S="ln -s" 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538if test -n "${ZSH_VERSION+set}" ; then 8539 setopt NO_GLOB_SUBST 8540fi 8541 8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8543$as_echo_n "checking for objdir... " >&6; } 8544if ${lt_cv_objdir+:} false; then : 8545 $as_echo_n "(cached) " >&6 8546else 8547 rm -f .libs 2>/dev/null 8548mkdir .libs 2>/dev/null 8549if test -d .libs; then 8550 lt_cv_objdir=.libs 8551else 8552 # MS-DOS does not allow filenames that begin with a dot. 8553 lt_cv_objdir=_libs 8554fi 8555rmdir .libs 2>/dev/null 8556fi 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8558$as_echo "$lt_cv_objdir" >&6; } 8559objdir=$lt_cv_objdir 8560 8561 8562 8563 8564 8565cat >>confdefs.h <<_ACEOF 8566#define LT_OBJDIR "$lt_cv_objdir/" 8567_ACEOF 8568 8569 8570 8571 8572case $host_os in 8573aix3*) 8574 # AIX sometimes has problems with the GCC collect2 program. For some 8575 # reason, if we set the COLLECT_NAMES environment variable, the problems 8576 # vanish in a puff of smoke. 8577 if test "X${COLLECT_NAMES+set}" != Xset; then 8578 COLLECT_NAMES= 8579 export COLLECT_NAMES 8580 fi 8581 ;; 8582esac 8583 8584# Global variables: 8585ofile=libtool 8586can_build_shared=yes 8587 8588# All known linkers require a `.a' archive for static linking (except MSVC, 8589# which needs '.lib'). 8590libext=a 8591 8592with_gnu_ld="$lt_cv_prog_gnu_ld" 8593 8594old_CC="$CC" 8595old_CFLAGS="$CFLAGS" 8596 8597# Set sane defaults for various variables 8598test -z "$CC" && CC=cc 8599test -z "$LTCC" && LTCC=$CC 8600test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8601test -z "$LD" && LD=ld 8602test -z "$ac_objext" && ac_objext=o 8603 8604for cc_temp in $compiler""; do 8605 case $cc_temp in 8606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8608 \-*) ;; 8609 *) break;; 8610 esac 8611done 8612cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8613 8614 8615# Only perform the check for file, if the check method requires it 8616test -z "$MAGIC_CMD" && MAGIC_CMD=file 8617case $deplibs_check_method in 8618file_magic*) 8619 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8621$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8622if ${lt_cv_path_MAGIC_CMD+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 case $MAGIC_CMD in 8626[\\/*] | ?:[\\/]*) 8627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8628 ;; 8629*) 8630 lt_save_MAGIC_CMD="$MAGIC_CMD" 8631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8633 for ac_dir in $ac_dummy; do 8634 IFS="$lt_save_ifs" 8635 test -z "$ac_dir" && ac_dir=. 8636 if test -f $ac_dir/${ac_tool_prefix}file; then 8637 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8638 if test -n "$file_magic_test_file"; then 8639 case $deplibs_check_method in 8640 "file_magic "*) 8641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8644 $EGREP "$file_magic_regex" > /dev/null; then 8645 : 8646 else 8647 cat <<_LT_EOF 1>&2 8648 8649*** Warning: the command libtool uses to detect shared libraries, 8650*** $file_magic_cmd, produces output that libtool cannot recognize. 8651*** The result is that libtool may fail to recognize shared libraries 8652*** as such. This will affect the creation of libtool libraries that 8653*** depend on shared libraries, but programs linked with such libtool 8654*** libraries will work regardless of this problem. Nevertheless, you 8655*** may want to report the problem to your system manager and/or to 8656*** [email protected] 8657 8658_LT_EOF 8659 fi ;; 8660 esac 8661 fi 8662 break 8663 fi 8664 done 8665 IFS="$lt_save_ifs" 8666 MAGIC_CMD="$lt_save_MAGIC_CMD" 8667 ;; 8668esac 8669fi 8670 8671MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8672if test -n "$MAGIC_CMD"; then 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8674$as_echo "$MAGIC_CMD" >&6; } 8675else 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8677$as_echo "no" >&6; } 8678fi 8679 8680 8681 8682 8683 8684if test -z "$lt_cv_path_MAGIC_CMD"; then 8685 if test -n "$ac_tool_prefix"; then 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8687$as_echo_n "checking for file... " >&6; } 8688if ${lt_cv_path_MAGIC_CMD+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 case $MAGIC_CMD in 8692[\\/*] | ?:[\\/]*) 8693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8694 ;; 8695*) 8696 lt_save_MAGIC_CMD="$MAGIC_CMD" 8697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8699 for ac_dir in $ac_dummy; do 8700 IFS="$lt_save_ifs" 8701 test -z "$ac_dir" && ac_dir=. 8702 if test -f $ac_dir/file; then 8703 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8704 if test -n "$file_magic_test_file"; then 8705 case $deplibs_check_method in 8706 "file_magic "*) 8707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8710 $EGREP "$file_magic_regex" > /dev/null; then 8711 : 8712 else 8713 cat <<_LT_EOF 1>&2 8714 8715*** Warning: the command libtool uses to detect shared libraries, 8716*** $file_magic_cmd, produces output that libtool cannot recognize. 8717*** The result is that libtool may fail to recognize shared libraries 8718*** as such. This will affect the creation of libtool libraries that 8719*** depend on shared libraries, but programs linked with such libtool 8720*** libraries will work regardless of this problem. Nevertheless, you 8721*** may want to report the problem to your system manager and/or to 8722*** [email protected] 8723 8724_LT_EOF 8725 fi ;; 8726 esac 8727 fi 8728 break 8729 fi 8730 done 8731 IFS="$lt_save_ifs" 8732 MAGIC_CMD="$lt_save_MAGIC_CMD" 8733 ;; 8734esac 8735fi 8736 8737MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8738if test -n "$MAGIC_CMD"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8740$as_echo "$MAGIC_CMD" >&6; } 8741else 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8743$as_echo "no" >&6; } 8744fi 8745 8746 8747 else 8748 MAGIC_CMD=: 8749 fi 8750fi 8751 8752 fi 8753 ;; 8754esac 8755 8756# Use C for the default configuration in the libtool script 8757 8758lt_save_CC="$CC" 8759ac_ext=c 8760ac_cpp='$CPP $CPPFLAGS' 8761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8763ac_compiler_gnu=$ac_cv_c_compiler_gnu 8764 8765 8766# Source file extension for C test sources. 8767ac_ext=c 8768 8769# Object file extension for compiled C test sources. 8770objext=o 8771objext=$objext 8772 8773# Code to be used in simple compile tests 8774lt_simple_compile_test_code="int some_variable = 0;" 8775 8776# Code to be used in simple link tests 8777lt_simple_link_test_code='int main(){return(0);}' 8778 8779 8780 8781 8782 8783 8784 8785# If no C compiler was specified, use CC. 8786LTCC=${LTCC-"$CC"} 8787 8788# If no C compiler flags were specified, use CFLAGS. 8789LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8790 8791# Allow CC to be a program name with arguments. 8792compiler=$CC 8793 8794# Save the default compiler, since it gets overwritten when the other 8795# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8796compiler_DEFAULT=$CC 8797 8798# save warnings/boilerplate of simple test code 8799ac_outfile=conftest.$ac_objext 8800echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8801eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8802_lt_compiler_boilerplate=`cat conftest.err` 8803$RM conftest* 8804 8805ac_outfile=conftest.$ac_objext 8806echo "$lt_simple_link_test_code" >conftest.$ac_ext 8807eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8808_lt_linker_boilerplate=`cat conftest.err` 8809$RM -r conftest* 8810 8811 8812## CAVEAT EMPTOR: 8813## There is no encapsulation within the following macros, do not change 8814## the running order or otherwise move them around unless you know exactly 8815## what you are doing... 8816if test -n "$compiler"; then 8817 8818lt_prog_compiler_no_builtin_flag= 8819 8820if test "$GCC" = yes; then 8821 case $cc_basename in 8822 nvcc*) 8823 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8824 *) 8825 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8826 esac 8827 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8829$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8830if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_rtti_exceptions=no 8834 ac_outfile=conftest.$ac_objext 8835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8836 lt_compiler_flag="-fno-rtti -fno-exceptions" 8837 # Insert the option either (1) after the last *FLAGS variable, or 8838 # (2) before a word containing "conftest.", or (3) at the end. 8839 # Note that $ac_compile itself does not contain backslashes and begins 8840 # with a dollar sign (not a hyphen), so the echo should work correctly. 8841 # The option is referenced via a variable to avoid confusing sed. 8842 lt_compile=`echo "$ac_compile" | $SED \ 8843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8845 -e 's:$: $lt_compiler_flag:'` 8846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8847 (eval "$lt_compile" 2>conftest.err) 8848 ac_status=$? 8849 cat conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 if (exit $ac_status) && test -s "$ac_outfile"; then 8852 # The compiler can only warn and ignore the option if not recognized 8853 # So say no if there are warnings other than the usual output. 8854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8857 lt_cv_prog_compiler_rtti_exceptions=yes 8858 fi 8859 fi 8860 $RM conftest* 8861 8862fi 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8864$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8865 8866if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8867 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8868else 8869 : 8870fi 8871 8872fi 8873 8874 8875 8876 8877 8878 8879 lt_prog_compiler_wl= 8880lt_prog_compiler_pic= 8881lt_prog_compiler_static= 8882 8883 8884 if test "$GCC" = yes; then 8885 lt_prog_compiler_wl='-Wl,' 8886 lt_prog_compiler_static='-static' 8887 8888 case $host_os in 8889 aix*) 8890 # All AIX code is PIC. 8891 if test "$host_cpu" = ia64; then 8892 # AIX 5 now supports IA64 processor 8893 lt_prog_compiler_static='-Bstatic' 8894 fi 8895 ;; 8896 8897 amigaos*) 8898 case $host_cpu in 8899 powerpc) 8900 # see comment about AmigaOS4 .so support 8901 lt_prog_compiler_pic='-fPIC' 8902 ;; 8903 m68k) 8904 # FIXME: we need at least 68020 code to build shared libraries, but 8905 # adding the `-m68020' flag to GCC prevents building anything better, 8906 # like `-m68040'. 8907 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8908 ;; 8909 esac 8910 ;; 8911 8912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8913 # PIC is the default for these OSes. 8914 ;; 8915 8916 mingw* | cygwin* | pw32* | os2* | cegcc*) 8917 # This hack is so that the source file can tell whether it is being 8918 # built for inclusion in a dll (and should export symbols for example). 8919 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8920 # (--disable-auto-import) libraries 8921 lt_prog_compiler_pic='-DDLL_EXPORT' 8922 ;; 8923 8924 darwin* | rhapsody*) 8925 # PIC is the default on this platform 8926 # Common symbols not allowed in MH_DYLIB files 8927 lt_prog_compiler_pic='-fno-common' 8928 ;; 8929 8930 haiku*) 8931 # PIC is the default for Haiku. 8932 # The "-static" flag exists, but is broken. 8933 lt_prog_compiler_static= 8934 ;; 8935 8936 hpux*) 8937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8939 # sets the default TLS model and affects inlining. 8940 case $host_cpu in 8941 hppa*64*) 8942 # +Z the default 8943 ;; 8944 *) 8945 lt_prog_compiler_pic='-fPIC' 8946 ;; 8947 esac 8948 ;; 8949 8950 interix[3-9]*) 8951 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8952 # Instead, we relocate shared libraries at runtime. 8953 ;; 8954 8955 msdosdjgpp*) 8956 # Just because we use GCC doesn't mean we suddenly get shared libraries 8957 # on systems that don't support them. 8958 lt_prog_compiler_can_build_shared=no 8959 enable_shared=no 8960 ;; 8961 8962 *nto* | *qnx*) 8963 # QNX uses GNU C++, but need to define -shared option too, otherwise 8964 # it will coredump. 8965 lt_prog_compiler_pic='-fPIC -shared' 8966 ;; 8967 8968 sysv4*MP*) 8969 if test -d /usr/nec; then 8970 lt_prog_compiler_pic=-Kconform_pic 8971 fi 8972 ;; 8973 8974 *) 8975 lt_prog_compiler_pic='-fPIC' 8976 ;; 8977 esac 8978 8979 case $cc_basename in 8980 nvcc*) # Cuda Compiler Driver 2.2 8981 lt_prog_compiler_wl='-Xlinker ' 8982 if test -n "$lt_prog_compiler_pic"; then 8983 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8984 fi 8985 ;; 8986 esac 8987 else 8988 # PORTME Check for flag to pass linker flags through the system compiler. 8989 case $host_os in 8990 aix*) 8991 lt_prog_compiler_wl='-Wl,' 8992 if test "$host_cpu" = ia64; then 8993 # AIX 5 now supports IA64 processor 8994 lt_prog_compiler_static='-Bstatic' 8995 else 8996 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8997 fi 8998 ;; 8999 9000 mingw* | cygwin* | pw32* | os2* | cegcc*) 9001 # This hack is so that the source file can tell whether it is being 9002 # built for inclusion in a dll (and should export symbols for example). 9003 lt_prog_compiler_pic='-DDLL_EXPORT' 9004 ;; 9005 9006 hpux9* | hpux10* | hpux11*) 9007 lt_prog_compiler_wl='-Wl,' 9008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9009 # not for PA HP-UX. 9010 case $host_cpu in 9011 hppa*64*|ia64*) 9012 # +Z the default 9013 ;; 9014 *) 9015 lt_prog_compiler_pic='+Z' 9016 ;; 9017 esac 9018 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9019 lt_prog_compiler_static='${wl}-a ${wl}archive' 9020 ;; 9021 9022 irix5* | irix6* | nonstopux*) 9023 lt_prog_compiler_wl='-Wl,' 9024 # PIC (with -KPIC) is the default. 9025 lt_prog_compiler_static='-non_shared' 9026 ;; 9027 9028 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9029 case $cc_basename in 9030 # old Intel for x86_64 which still supported -KPIC. 9031 ecc*) 9032 lt_prog_compiler_wl='-Wl,' 9033 lt_prog_compiler_pic='-KPIC' 9034 lt_prog_compiler_static='-static' 9035 ;; 9036 # icc used to be incompatible with GCC. 9037 # ICC 10 doesn't accept -KPIC any more. 9038 icc* | ifort*) 9039 lt_prog_compiler_wl='-Wl,' 9040 lt_prog_compiler_pic='-fPIC' 9041 lt_prog_compiler_static='-static' 9042 ;; 9043 # Lahey Fortran 8.1. 9044 lf95*) 9045 lt_prog_compiler_wl='-Wl,' 9046 lt_prog_compiler_pic='--shared' 9047 lt_prog_compiler_static='--static' 9048 ;; 9049 nagfor*) 9050 # NAG Fortran compiler 9051 lt_prog_compiler_wl='-Wl,-Wl,,' 9052 lt_prog_compiler_pic='-PIC' 9053 lt_prog_compiler_static='-Bstatic' 9054 ;; 9055 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9056 # Portland Group compilers (*not* the Pentium gcc compiler, 9057 # which looks to be a dead project) 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_pic='-fpic' 9060 lt_prog_compiler_static='-Bstatic' 9061 ;; 9062 ccc*) 9063 lt_prog_compiler_wl='-Wl,' 9064 # All Alpha code is PIC. 9065 lt_prog_compiler_static='-non_shared' 9066 ;; 9067 xl* | bgxl* | bgf* | mpixl*) 9068 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9069 lt_prog_compiler_wl='-Wl,' 9070 lt_prog_compiler_pic='-qpic' 9071 lt_prog_compiler_static='-qstaticlink' 9072 ;; 9073 *) 9074 case `$CC -V 2>&1 | sed 5q` in 9075 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9076 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9077 lt_prog_compiler_pic='-KPIC' 9078 lt_prog_compiler_static='-Bstatic' 9079 lt_prog_compiler_wl='' 9080 ;; 9081 *Sun\ F* | *Sun*Fortran*) 9082 lt_prog_compiler_pic='-KPIC' 9083 lt_prog_compiler_static='-Bstatic' 9084 lt_prog_compiler_wl='-Qoption ld ' 9085 ;; 9086 *Sun\ C*) 9087 # Sun C 5.9 9088 lt_prog_compiler_pic='-KPIC' 9089 lt_prog_compiler_static='-Bstatic' 9090 lt_prog_compiler_wl='-Wl,' 9091 ;; 9092 *Intel*\ [CF]*Compiler*) 9093 lt_prog_compiler_wl='-Wl,' 9094 lt_prog_compiler_pic='-fPIC' 9095 lt_prog_compiler_static='-static' 9096 ;; 9097 *Portland\ Group*) 9098 lt_prog_compiler_wl='-Wl,' 9099 lt_prog_compiler_pic='-fpic' 9100 lt_prog_compiler_static='-Bstatic' 9101 ;; 9102 esac 9103 ;; 9104 esac 9105 ;; 9106 9107 newsos6) 9108 lt_prog_compiler_pic='-KPIC' 9109 lt_prog_compiler_static='-Bstatic' 9110 ;; 9111 9112 *nto* | *qnx*) 9113 # QNX uses GNU C++, but need to define -shared option too, otherwise 9114 # it will coredump. 9115 lt_prog_compiler_pic='-fPIC -shared' 9116 ;; 9117 9118 osf3* | osf4* | osf5*) 9119 lt_prog_compiler_wl='-Wl,' 9120 # All OSF/1 code is PIC. 9121 lt_prog_compiler_static='-non_shared' 9122 ;; 9123 9124 rdos*) 9125 lt_prog_compiler_static='-non_shared' 9126 ;; 9127 9128 solaris*) 9129 lt_prog_compiler_pic='-KPIC' 9130 lt_prog_compiler_static='-Bstatic' 9131 case $cc_basename in 9132 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9133 lt_prog_compiler_wl='-Qoption ld ';; 9134 *) 9135 lt_prog_compiler_wl='-Wl,';; 9136 esac 9137 ;; 9138 9139 sunos4*) 9140 lt_prog_compiler_wl='-Qoption ld ' 9141 lt_prog_compiler_pic='-PIC' 9142 lt_prog_compiler_static='-Bstatic' 9143 ;; 9144 9145 sysv4 | sysv4.2uw2* | sysv4.3*) 9146 lt_prog_compiler_wl='-Wl,' 9147 lt_prog_compiler_pic='-KPIC' 9148 lt_prog_compiler_static='-Bstatic' 9149 ;; 9150 9151 sysv4*MP*) 9152 if test -d /usr/nec ;then 9153 lt_prog_compiler_pic='-Kconform_pic' 9154 lt_prog_compiler_static='-Bstatic' 9155 fi 9156 ;; 9157 9158 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9159 lt_prog_compiler_wl='-Wl,' 9160 lt_prog_compiler_pic='-KPIC' 9161 lt_prog_compiler_static='-Bstatic' 9162 ;; 9163 9164 unicos*) 9165 lt_prog_compiler_wl='-Wl,' 9166 lt_prog_compiler_can_build_shared=no 9167 ;; 9168 9169 uts4*) 9170 lt_prog_compiler_pic='-pic' 9171 lt_prog_compiler_static='-Bstatic' 9172 ;; 9173 9174 *) 9175 lt_prog_compiler_can_build_shared=no 9176 ;; 9177 esac 9178 fi 9179 9180case $host_os in 9181 # For platforms which do not support PIC, -DPIC is meaningless: 9182 *djgpp*) 9183 lt_prog_compiler_pic= 9184 ;; 9185 *) 9186 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9187 ;; 9188esac 9189 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9191$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9192if ${lt_cv_prog_compiler_pic+:} false; then : 9193 $as_echo_n "(cached) " >&6 9194else 9195 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9196fi 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9198$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9199lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9200 9201# 9202# Check to make sure the PIC flag actually works. 9203# 9204if test -n "$lt_prog_compiler_pic"; then 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9206$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9207if ${lt_cv_prog_compiler_pic_works+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 lt_cv_prog_compiler_pic_works=no 9211 ac_outfile=conftest.$ac_objext 9212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9213 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9214 # Insert the option either (1) after the last *FLAGS variable, or 9215 # (2) before a word containing "conftest.", or (3) at the end. 9216 # Note that $ac_compile itself does not contain backslashes and begins 9217 # with a dollar sign (not a hyphen), so the echo should work correctly. 9218 # The option is referenced via a variable to avoid confusing sed. 9219 lt_compile=`echo "$ac_compile" | $SED \ 9220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9222 -e 's:$: $lt_compiler_flag:'` 9223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9224 (eval "$lt_compile" 2>conftest.err) 9225 ac_status=$? 9226 cat conftest.err >&5 9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9228 if (exit $ac_status) && test -s "$ac_outfile"; then 9229 # The compiler can only warn and ignore the option if not recognized 9230 # So say no if there are warnings other than the usual output. 9231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9234 lt_cv_prog_compiler_pic_works=yes 9235 fi 9236 fi 9237 $RM conftest* 9238 9239fi 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9241$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9242 9243if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9244 case $lt_prog_compiler_pic in 9245 "" | " "*) ;; 9246 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9247 esac 9248else 9249 lt_prog_compiler_pic= 9250 lt_prog_compiler_can_build_shared=no 9251fi 9252 9253fi 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265# 9266# Check to make sure the static flag actually works. 9267# 9268wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9270$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9271if ${lt_cv_prog_compiler_static_works+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 lt_cv_prog_compiler_static_works=no 9275 save_LDFLAGS="$LDFLAGS" 9276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9277 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9279 # The linker can only warn and ignore the option if not recognized 9280 # So say no if there are warnings 9281 if test -s conftest.err; then 9282 # Append any errors to the config.log. 9283 cat conftest.err 1>&5 9284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9286 if diff conftest.exp conftest.er2 >/dev/null; then 9287 lt_cv_prog_compiler_static_works=yes 9288 fi 9289 else 9290 lt_cv_prog_compiler_static_works=yes 9291 fi 9292 fi 9293 $RM -r conftest* 9294 LDFLAGS="$save_LDFLAGS" 9295 9296fi 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9298$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9299 9300if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9301 : 9302else 9303 lt_prog_compiler_static= 9304fi 9305 9306 9307 9308 9309 9310 9311 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9314if ${lt_cv_prog_compiler_c_o+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 lt_cv_prog_compiler_c_o=no 9318 $RM -r conftest 2>/dev/null 9319 mkdir conftest 9320 cd conftest 9321 mkdir out 9322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9323 9324 lt_compiler_flag="-o out/conftest2.$ac_objext" 9325 # Insert the option either (1) after the last *FLAGS variable, or 9326 # (2) before a word containing "conftest.", or (3) at the end. 9327 # Note that $ac_compile itself does not contain backslashes and begins 9328 # with a dollar sign (not a hyphen), so the echo should work correctly. 9329 lt_compile=`echo "$ac_compile" | $SED \ 9330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9332 -e 's:$: $lt_compiler_flag:'` 9333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9334 (eval "$lt_compile" 2>out/conftest.err) 9335 ac_status=$? 9336 cat out/conftest.err >&5 9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9338 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9339 then 9340 # The compiler can only warn and ignore the option if not recognized 9341 # So say no if there are warnings 9342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9345 lt_cv_prog_compiler_c_o=yes 9346 fi 9347 fi 9348 chmod u+w . 2>&5 9349 $RM conftest* 9350 # SGI C++ compiler will create directory out/ii_files/ for 9351 # template instantiation 9352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9353 $RM out/* && rmdir out 9354 cd .. 9355 $RM -r conftest 9356 $RM conftest* 9357 9358fi 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9360$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9361 9362 9363 9364 9365 9366 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9368$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9369if ${lt_cv_prog_compiler_c_o+:} false; then : 9370 $as_echo_n "(cached) " >&6 9371else 9372 lt_cv_prog_compiler_c_o=no 9373 $RM -r conftest 2>/dev/null 9374 mkdir conftest 9375 cd conftest 9376 mkdir out 9377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9378 9379 lt_compiler_flag="-o out/conftest2.$ac_objext" 9380 # Insert the option either (1) after the last *FLAGS variable, or 9381 # (2) before a word containing "conftest.", or (3) at the end. 9382 # Note that $ac_compile itself does not contain backslashes and begins 9383 # with a dollar sign (not a hyphen), so the echo should work correctly. 9384 lt_compile=`echo "$ac_compile" | $SED \ 9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9387 -e 's:$: $lt_compiler_flag:'` 9388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9389 (eval "$lt_compile" 2>out/conftest.err) 9390 ac_status=$? 9391 cat out/conftest.err >&5 9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9393 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9394 then 9395 # The compiler can only warn and ignore the option if not recognized 9396 # So say no if there are warnings 9397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9400 lt_cv_prog_compiler_c_o=yes 9401 fi 9402 fi 9403 chmod u+w . 2>&5 9404 $RM conftest* 9405 # SGI C++ compiler will create directory out/ii_files/ for 9406 # template instantiation 9407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9408 $RM out/* && rmdir out 9409 cd .. 9410 $RM -r conftest 9411 $RM conftest* 9412 9413fi 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9415$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9416 9417 9418 9419 9420hard_links="nottested" 9421if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9422 # do not overwrite the value of need_locks provided by the user 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9424$as_echo_n "checking if we can lock with hard links... " >&6; } 9425 hard_links=yes 9426 $RM conftest* 9427 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9428 touch conftest.a 9429 ln conftest.a conftest.b 2>&5 || hard_links=no 9430 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9432$as_echo "$hard_links" >&6; } 9433 if test "$hard_links" = no; then 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9435$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9436 need_locks=warn 9437 fi 9438else 9439 need_locks=no 9440fi 9441 9442 9443 9444 9445 9446 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9448$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9449 9450 runpath_var= 9451 allow_undefined_flag= 9452 always_export_symbols=no 9453 archive_cmds= 9454 archive_expsym_cmds= 9455 compiler_needs_object=no 9456 enable_shared_with_static_runtimes=no 9457 export_dynamic_flag_spec= 9458 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9459 hardcode_automatic=no 9460 hardcode_direct=no 9461 hardcode_direct_absolute=no 9462 hardcode_libdir_flag_spec= 9463 hardcode_libdir_separator= 9464 hardcode_minus_L=no 9465 hardcode_shlibpath_var=unsupported 9466 inherit_rpath=no 9467 link_all_deplibs=unknown 9468 module_cmds= 9469 module_expsym_cmds= 9470 old_archive_from_new_cmds= 9471 old_archive_from_expsyms_cmds= 9472 thread_safe_flag_spec= 9473 whole_archive_flag_spec= 9474 # include_expsyms should be a list of space-separated symbols to be *always* 9475 # included in the symbol list 9476 include_expsyms= 9477 # exclude_expsyms can be an extended regexp of symbols to exclude 9478 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9480 # as well as any symbol that contains `d'. 9481 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9483 # platforms (ab)use it in PIC code, but their linkers get confused if 9484 # the symbol is explicitly referenced. Since portable code cannot 9485 # rely on this symbol name, it's probably fine to never include it in 9486 # preloaded symbol tables. 9487 # Exclude shared library initialization/finalization symbols. 9488 extract_expsyms_cmds= 9489 9490 case $host_os in 9491 cygwin* | mingw* | pw32* | cegcc*) 9492 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9493 # When not using gcc, we currently assume that we are using 9494 # Microsoft Visual C++. 9495 if test "$GCC" != yes; then 9496 with_gnu_ld=no 9497 fi 9498 ;; 9499 interix*) 9500 # we just hope/assume this is gcc and not c89 (= MSVC++) 9501 with_gnu_ld=yes 9502 ;; 9503 openbsd*) 9504 with_gnu_ld=no 9505 ;; 9506 esac 9507 9508 ld_shlibs=yes 9509 9510 # On some targets, GNU ld is compatible enough with the native linker 9511 # that we're better off using the native interface for both. 9512 lt_use_gnu_ld_interface=no 9513 if test "$with_gnu_ld" = yes; then 9514 case $host_os in 9515 aix*) 9516 # The AIX port of GNU ld has always aspired to compatibility 9517 # with the native linker. However, as the warning in the GNU ld 9518 # block says, versions before 2.19.5* couldn't really create working 9519 # shared libraries, regardless of the interface used. 9520 case `$LD -v 2>&1` in 9521 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9522 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9523 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9524 *) 9525 lt_use_gnu_ld_interface=yes 9526 ;; 9527 esac 9528 ;; 9529 *) 9530 lt_use_gnu_ld_interface=yes 9531 ;; 9532 esac 9533 fi 9534 9535 if test "$lt_use_gnu_ld_interface" = yes; then 9536 # If archive_cmds runs LD, not CC, wlarc should be empty 9537 wlarc='${wl}' 9538 9539 # Set some defaults for GNU ld with shared library support. These 9540 # are reset later if shared libraries are not supported. Putting them 9541 # here allows them to be overridden if necessary. 9542 runpath_var=LD_RUN_PATH 9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9544 export_dynamic_flag_spec='${wl}--export-dynamic' 9545 # ancient GNU ld didn't support --whole-archive et. al. 9546 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9547 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9548 else 9549 whole_archive_flag_spec= 9550 fi 9551 supports_anon_versioning=no 9552 case `$LD -v 2>&1` in 9553 *GNU\ gold*) supports_anon_versioning=yes ;; 9554 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9555 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9556 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9557 *\ 2.11.*) ;; # other 2.11 versions 9558 *) supports_anon_versioning=yes ;; 9559 esac 9560 9561 # See if GNU ld supports shared libraries. 9562 case $host_os in 9563 aix[3-9]*) 9564 # On AIX/PPC, the GNU linker is very broken 9565 if test "$host_cpu" != ia64; then 9566 ld_shlibs=no 9567 cat <<_LT_EOF 1>&2 9568 9569*** Warning: the GNU linker, at least up to release 2.19, is reported 9570*** to be unable to reliably create shared libraries on AIX. 9571*** Therefore, libtool is disabling shared libraries support. If you 9572*** really care for shared libraries, you may want to install binutils 9573*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9574*** You will then need to restart the configuration process. 9575 9576_LT_EOF 9577 fi 9578 ;; 9579 9580 amigaos*) 9581 case $host_cpu in 9582 powerpc) 9583 # see comment about AmigaOS4 .so support 9584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9585 archive_expsym_cmds='' 9586 ;; 9587 m68k) 9588 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)' 9589 hardcode_libdir_flag_spec='-L$libdir' 9590 hardcode_minus_L=yes 9591 ;; 9592 esac 9593 ;; 9594 9595 beos*) 9596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9597 allow_undefined_flag=unsupported 9598 # Joseph Beckenbach <[email protected]> says some releases of gcc 9599 # support --undefined. This deserves some investigation. FIXME 9600 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9601 else 9602 ld_shlibs=no 9603 fi 9604 ;; 9605 9606 cygwin* | mingw* | pw32* | cegcc*) 9607 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9608 # as there is no search path for DLLs. 9609 hardcode_libdir_flag_spec='-L$libdir' 9610 export_dynamic_flag_spec='${wl}--export-all-symbols' 9611 allow_undefined_flag=unsupported 9612 always_export_symbols=no 9613 enable_shared_with_static_runtimes=yes 9614 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' 9615 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9616 9617 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9619 # If the export-symbols file already is a .def file (1st line 9620 # is EXPORTS), use it as is; otherwise, prepend... 9621 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9622 cp $export_symbols $output_objdir/$soname.def; 9623 else 9624 echo EXPORTS > $output_objdir/$soname.def; 9625 cat $export_symbols >> $output_objdir/$soname.def; 9626 fi~ 9627 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9628 else 9629 ld_shlibs=no 9630 fi 9631 ;; 9632 9633 haiku*) 9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9635 link_all_deplibs=yes 9636 ;; 9637 9638 interix[3-9]*) 9639 hardcode_direct=no 9640 hardcode_shlibpath_var=no 9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9642 export_dynamic_flag_spec='${wl}-E' 9643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9644 # Instead, shared libraries are loaded at an image base (0x10000000 by 9645 # default) and relocated if they conflict, which is a slow very memory 9646 # consuming and fragmenting process. To avoid this, we pick a random, 9647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9648 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9650 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' 9651 ;; 9652 9653 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9654 tmp_diet=no 9655 if test "$host_os" = linux-dietlibc; then 9656 case $cc_basename in 9657 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9658 esac 9659 fi 9660 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9661 && test "$tmp_diet" = no 9662 then 9663 tmp_addflag=' $pic_flag' 9664 tmp_sharedflag='-shared' 9665 case $cc_basename,$host_cpu in 9666 pgcc*) # Portland Group C compiler 9667 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' 9668 tmp_addflag=' $pic_flag' 9669 ;; 9670 pgf77* | pgf90* | pgf95* | pgfortran*) 9671 # Portland Group f77 and f90 compilers 9672 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' 9673 tmp_addflag=' $pic_flag -Mnomain' ;; 9674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9675 tmp_addflag=' -i_dynamic' ;; 9676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9677 tmp_addflag=' -i_dynamic -nofor_main' ;; 9678 ifc* | ifort*) # Intel Fortran compiler 9679 tmp_addflag=' -nofor_main' ;; 9680 lf95*) # Lahey Fortran 8.1 9681 whole_archive_flag_spec= 9682 tmp_sharedflag='--shared' ;; 9683 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9684 tmp_sharedflag='-qmkshrobj' 9685 tmp_addflag= ;; 9686 nvcc*) # Cuda Compiler Driver 2.2 9687 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' 9688 compiler_needs_object=yes 9689 ;; 9690 esac 9691 case `$CC -V 2>&1 | sed 5q` in 9692 *Sun\ C*) # Sun C 5.9 9693 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' 9694 compiler_needs_object=yes 9695 tmp_sharedflag='-G' ;; 9696 *Sun\ F*) # Sun Fortran 8.3 9697 tmp_sharedflag='-G' ;; 9698 esac 9699 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9700 9701 if test "x$supports_anon_versioning" = xyes; then 9702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9704 echo "local: *; };" >> $output_objdir/$libname.ver~ 9705 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9706 fi 9707 9708 case $cc_basename in 9709 xlf* | bgf* | bgxlf* | mpixlf*) 9710 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9711 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9713 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9714 if test "x$supports_anon_versioning" = xyes; then 9715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9717 echo "local: *; };" >> $output_objdir/$libname.ver~ 9718 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9719 fi 9720 ;; 9721 esac 9722 else 9723 ld_shlibs=no 9724 fi 9725 ;; 9726 9727 netbsd*) 9728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9730 wlarc= 9731 else 9732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9734 fi 9735 ;; 9736 9737 solaris*) 9738 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9739 ld_shlibs=no 9740 cat <<_LT_EOF 1>&2 9741 9742*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9743*** create shared libraries on Solaris systems. Therefore, libtool 9744*** is disabling shared libraries support. We urge you to upgrade GNU 9745*** binutils to release 2.9.1 or newer. Another option is to modify 9746*** your PATH or compiler configuration so that the native linker is 9747*** used, and then restart. 9748 9749_LT_EOF 9750 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9753 else 9754 ld_shlibs=no 9755 fi 9756 ;; 9757 9758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9759 case `$LD -v 2>&1` in 9760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9761 ld_shlibs=no 9762 cat <<_LT_EOF 1>&2 9763 9764*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9765*** reliably create shared libraries on SCO systems. Therefore, libtool 9766*** is disabling shared libraries support. We urge you to upgrade GNU 9767*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9768*** your PATH or compiler configuration so that the native linker is 9769*** used, and then restart. 9770 9771_LT_EOF 9772 ;; 9773 *) 9774 # For security reasons, it is highly recommended that you always 9775 # use absolute paths for naming shared libraries, and exclude the 9776 # DT_RUNPATH tag from executables and libraries. But doing so 9777 # requires that you compile everything twice, which is a pain. 9778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9782 else 9783 ld_shlibs=no 9784 fi 9785 ;; 9786 esac 9787 ;; 9788 9789 sunos4*) 9790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9791 wlarc= 9792 hardcode_direct=yes 9793 hardcode_shlibpath_var=no 9794 ;; 9795 9796 *) 9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9799 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9800 else 9801 ld_shlibs=no 9802 fi 9803 ;; 9804 esac 9805 9806 if test "$ld_shlibs" = no; then 9807 runpath_var= 9808 hardcode_libdir_flag_spec= 9809 export_dynamic_flag_spec= 9810 whole_archive_flag_spec= 9811 fi 9812 else 9813 # PORTME fill in a description of your system's linker (not GNU ld) 9814 case $host_os in 9815 aix3*) 9816 allow_undefined_flag=unsupported 9817 always_export_symbols=yes 9818 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' 9819 # Note: this linker hardcodes the directories in LIBPATH if there 9820 # are no directories specified by -L. 9821 hardcode_minus_L=yes 9822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9823 # Neither direct hardcoding nor static linking is supported with a 9824 # broken collect2. 9825 hardcode_direct=unsupported 9826 fi 9827 ;; 9828 9829 aix[4-9]*) 9830 if test "$host_cpu" = ia64; then 9831 # On IA64, the linker does run time linking by default, so we don't 9832 # have to do anything special. 9833 aix_use_runtimelinking=no 9834 exp_sym_flag='-Bexport' 9835 no_entry_flag="" 9836 else 9837 # If we're using GNU nm, then we don't want the "-C" option. 9838 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9839 # Also, AIX nm treats weak defined symbols like other global 9840 # defined symbols, whereas GNU nm marks them as "W". 9841 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9842 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' 9843 else 9844 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' 9845 fi 9846 aix_use_runtimelinking=no 9847 9848 # Test if we are trying to use run time linking or normal 9849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9850 # need to do runtime linking. 9851 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9852 for ld_flag in $LDFLAGS; do 9853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9854 aix_use_runtimelinking=yes 9855 break 9856 fi 9857 done 9858 ;; 9859 esac 9860 9861 exp_sym_flag='-bexport' 9862 no_entry_flag='-bnoentry' 9863 fi 9864 9865 # When large executables or shared objects are built, AIX ld can 9866 # have problems creating the table of contents. If linking a library 9867 # or program results in "error TOC overflow" add -mminimal-toc to 9868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9870 9871 archive_cmds='' 9872 hardcode_direct=yes 9873 hardcode_direct_absolute=yes 9874 hardcode_libdir_separator=':' 9875 link_all_deplibs=yes 9876 file_list_spec='${wl}-f,' 9877 9878 if test "$GCC" = yes; then 9879 case $host_os in aix4.[012]|aix4.[012].*) 9880 # We only want to do this on AIX 4.2 and lower, the check 9881 # below for broken collect2 doesn't work under 4.3+ 9882 collect2name=`${CC} -print-prog-name=collect2` 9883 if test -f "$collect2name" && 9884 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9885 then 9886 # We have reworked collect2 9887 : 9888 else 9889 # We have old collect2 9890 hardcode_direct=unsupported 9891 # It fails to find uninstalled libraries when the uninstalled 9892 # path is not listed in the libpath. Setting hardcode_minus_L 9893 # to unsupported forces relinking 9894 hardcode_minus_L=yes 9895 hardcode_libdir_flag_spec='-L$libdir' 9896 hardcode_libdir_separator= 9897 fi 9898 ;; 9899 esac 9900 shared_flag='-shared' 9901 if test "$aix_use_runtimelinking" = yes; then 9902 shared_flag="$shared_flag "'${wl}-G' 9903 fi 9904 else 9905 # not using gcc 9906 if test "$host_cpu" = ia64; then 9907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9908 # chokes on -Wl,-G. The following line is correct: 9909 shared_flag='-G' 9910 else 9911 if test "$aix_use_runtimelinking" = yes; then 9912 shared_flag='${wl}-G' 9913 else 9914 shared_flag='${wl}-bM:SRE' 9915 fi 9916 fi 9917 fi 9918 9919 export_dynamic_flag_spec='${wl}-bexpall' 9920 # It seems that -bexpall does not export symbols beginning with 9921 # underscore (_), so it is better to generate a list of symbols to export. 9922 always_export_symbols=yes 9923 if test "$aix_use_runtimelinking" = yes; then 9924 # Warning - without using the other runtime loading flags (-brtl), 9925 # -berok will link without error, but may produce a broken library. 9926 allow_undefined_flag='-berok' 9927 # Determine the default libpath from the value encoded in an 9928 # empty executable. 9929 if test "${lt_cv_aix_libpath+set}" = set; then 9930 aix_libpath=$lt_cv_aix_libpath 9931else 9932 if ${lt_cv_aix_libpath_+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937 9938int 9939main () 9940{ 9941 9942 ; 9943 return 0; 9944} 9945_ACEOF 9946if ac_fn_c_try_link "$LINENO"; then : 9947 9948 lt_aix_libpath_sed=' 9949 /Import File Strings/,/^$/ { 9950 /^0/ { 9951 s/^0 *\([^ ]*\) *$/\1/ 9952 p 9953 } 9954 }' 9955 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9956 # Check for a 64-bit object if we didn't find anything. 9957 if test -z "$lt_cv_aix_libpath_"; then 9958 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9959 fi 9960fi 9961rm -f core conftest.err conftest.$ac_objext \ 9962 conftest$ac_exeext conftest.$ac_ext 9963 if test -z "$lt_cv_aix_libpath_"; then 9964 lt_cv_aix_libpath_="/usr/lib:/lib" 9965 fi 9966 9967fi 9968 9969 aix_libpath=$lt_cv_aix_libpath_ 9970fi 9971 9972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9973 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9974 else 9975 if test "$host_cpu" = ia64; then 9976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9977 allow_undefined_flag="-z nodefs" 9978 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" 9979 else 9980 # Determine the default libpath from the value encoded in an 9981 # empty executable. 9982 if test "${lt_cv_aix_libpath+set}" = set; then 9983 aix_libpath=$lt_cv_aix_libpath 9984else 9985 if ${lt_cv_aix_libpath_+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990 9991int 9992main () 9993{ 9994 9995 ; 9996 return 0; 9997} 9998_ACEOF 9999if ac_fn_c_try_link "$LINENO"; then : 10000 10001 lt_aix_libpath_sed=' 10002 /Import File Strings/,/^$/ { 10003 /^0/ { 10004 s/^0 *\([^ ]*\) *$/\1/ 10005 p 10006 } 10007 }' 10008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10009 # Check for a 64-bit object if we didn't find anything. 10010 if test -z "$lt_cv_aix_libpath_"; then 10011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10012 fi 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016 if test -z "$lt_cv_aix_libpath_"; then 10017 lt_cv_aix_libpath_="/usr/lib:/lib" 10018 fi 10019 10020fi 10021 10022 aix_libpath=$lt_cv_aix_libpath_ 10023fi 10024 10025 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10026 # Warning - without using the other run time loading flags, 10027 # -berok will link without error, but may produce a broken library. 10028 no_undefined_flag=' ${wl}-bernotok' 10029 allow_undefined_flag=' ${wl}-berok' 10030 if test "$with_gnu_ld" = yes; then 10031 # We only use this code for GNU lds that support --whole-archive. 10032 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10033 else 10034 # Exported symbols can be pulled into shared objects from archives 10035 whole_archive_flag_spec='$convenience' 10036 fi 10037 archive_cmds_need_lc=yes 10038 # This is similar to how AIX traditionally builds its shared libraries. 10039 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' 10040 fi 10041 fi 10042 ;; 10043 10044 amigaos*) 10045 case $host_cpu in 10046 powerpc) 10047 # see comment about AmigaOS4 .so support 10048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10049 archive_expsym_cmds='' 10050 ;; 10051 m68k) 10052 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)' 10053 hardcode_libdir_flag_spec='-L$libdir' 10054 hardcode_minus_L=yes 10055 ;; 10056 esac 10057 ;; 10058 10059 bsdi[45]*) 10060 export_dynamic_flag_spec=-rdynamic 10061 ;; 10062 10063 cygwin* | mingw* | pw32* | cegcc*) 10064 # When not using gcc, we currently assume that we are using 10065 # Microsoft Visual C++. 10066 # hardcode_libdir_flag_spec is actually meaningless, as there is 10067 # no search path for DLLs. 10068 case $cc_basename in 10069 cl*) 10070 # Native MSVC 10071 hardcode_libdir_flag_spec=' ' 10072 allow_undefined_flag=unsupported 10073 always_export_symbols=yes 10074 file_list_spec='@' 10075 # Tell ltmain to make .lib files, not .a files. 10076 libext=lib 10077 # Tell ltmain to make .dll files, not .so files. 10078 shrext_cmds=".dll" 10079 # FIXME: Setting linknames here is a bad hack. 10080 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10081 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10082 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10083 else 10084 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10085 fi~ 10086 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10087 linknames=' 10088 # The linker will not automatically build a static lib if we build a DLL. 10089 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10090 enable_shared_with_static_runtimes=yes 10091 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10093 # Don't use ranlib 10094 old_postinstall_cmds='chmod 644 $oldlib' 10095 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10096 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10097 case $lt_outputfile in 10098 *.exe|*.EXE) ;; 10099 *) 10100 lt_outputfile="$lt_outputfile.exe" 10101 lt_tool_outputfile="$lt_tool_outputfile.exe" 10102 ;; 10103 esac~ 10104 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10105 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10106 $RM "$lt_outputfile.manifest"; 10107 fi' 10108 ;; 10109 *) 10110 # Assume MSVC wrapper 10111 hardcode_libdir_flag_spec=' ' 10112 allow_undefined_flag=unsupported 10113 # Tell ltmain to make .lib files, not .a files. 10114 libext=lib 10115 # Tell ltmain to make .dll files, not .so files. 10116 shrext_cmds=".dll" 10117 # FIXME: Setting linknames here is a bad hack. 10118 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10119 # The linker will automatically build a .lib file if we build a DLL. 10120 old_archive_from_new_cmds='true' 10121 # FIXME: Should let the user specify the lib program. 10122 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10123 enable_shared_with_static_runtimes=yes 10124 ;; 10125 esac 10126 ;; 10127 10128 darwin* | rhapsody*) 10129 10130 10131 archive_cmds_need_lc=no 10132 hardcode_direct=no 10133 hardcode_automatic=yes 10134 hardcode_shlibpath_var=unsupported 10135 if test "$lt_cv_ld_force_load" = "yes"; then 10136 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\"`' 10137 10138 else 10139 whole_archive_flag_spec='' 10140 fi 10141 link_all_deplibs=yes 10142 allow_undefined_flag="$_lt_dar_allow_undefined" 10143 case $cc_basename in 10144 ifort*) _lt_dar_can_shared=yes ;; 10145 *) _lt_dar_can_shared=$GCC ;; 10146 esac 10147 if test "$_lt_dar_can_shared" = "yes"; then 10148 output_verbose_link_cmd=func_echo_all 10149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10151 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}" 10152 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}" 10153 10154 else 10155 ld_shlibs=no 10156 fi 10157 10158 ;; 10159 10160 dgux*) 10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10162 hardcode_libdir_flag_spec='-L$libdir' 10163 hardcode_shlibpath_var=no 10164 ;; 10165 10166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10167 # support. Future versions do this automatically, but an explicit c++rt0.o 10168 # does not break anything, and helps significantly (at the cost of a little 10169 # extra space). 10170 freebsd2.2*) 10171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10172 hardcode_libdir_flag_spec='-R$libdir' 10173 hardcode_direct=yes 10174 hardcode_shlibpath_var=no 10175 ;; 10176 10177 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10178 freebsd2.*) 10179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10180 hardcode_direct=yes 10181 hardcode_minus_L=yes 10182 hardcode_shlibpath_var=no 10183 ;; 10184 10185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10186 freebsd* | dragonfly*) 10187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10188 hardcode_libdir_flag_spec='-R$libdir' 10189 hardcode_direct=yes 10190 hardcode_shlibpath_var=no 10191 ;; 10192 10193 hpux9*) 10194 if test "$GCC" = yes; then 10195 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10196 else 10197 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10198 fi 10199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10200 hardcode_libdir_separator=: 10201 hardcode_direct=yes 10202 10203 # hardcode_minus_L: Not really in the search PATH, 10204 # but as the default location of the library. 10205 hardcode_minus_L=yes 10206 export_dynamic_flag_spec='${wl}-E' 10207 ;; 10208 10209 hpux10*) 10210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10211 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10212 else 10213 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10214 fi 10215 if test "$with_gnu_ld" = no; then 10216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10217 hardcode_libdir_separator=: 10218 hardcode_direct=yes 10219 hardcode_direct_absolute=yes 10220 export_dynamic_flag_spec='${wl}-E' 10221 # hardcode_minus_L: Not really in the search PATH, 10222 # but as the default location of the library. 10223 hardcode_minus_L=yes 10224 fi 10225 ;; 10226 10227 hpux11*) 10228 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10229 case $host_cpu in 10230 hppa*64*) 10231 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10232 ;; 10233 ia64*) 10234 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10235 ;; 10236 *) 10237 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10238 ;; 10239 esac 10240 else 10241 case $host_cpu in 10242 hppa*64*) 10243 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10244 ;; 10245 ia64*) 10246 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10247 ;; 10248 *) 10249 10250 # Older versions of the 11.00 compiler do not understand -b yet 10251 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10253$as_echo_n "checking if $CC understands -b... " >&6; } 10254if ${lt_cv_prog_compiler__b+:} false; then : 10255 $as_echo_n "(cached) " >&6 10256else 10257 lt_cv_prog_compiler__b=no 10258 save_LDFLAGS="$LDFLAGS" 10259 LDFLAGS="$LDFLAGS -b" 10260 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10262 # The linker can only warn and ignore the option if not recognized 10263 # So say no if there are warnings 10264 if test -s conftest.err; then 10265 # Append any errors to the config.log. 10266 cat conftest.err 1>&5 10267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10269 if diff conftest.exp conftest.er2 >/dev/null; then 10270 lt_cv_prog_compiler__b=yes 10271 fi 10272 else 10273 lt_cv_prog_compiler__b=yes 10274 fi 10275 fi 10276 $RM -r conftest* 10277 LDFLAGS="$save_LDFLAGS" 10278 10279fi 10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10281$as_echo "$lt_cv_prog_compiler__b" >&6; } 10282 10283if test x"$lt_cv_prog_compiler__b" = xyes; then 10284 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10285else 10286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10287fi 10288 10289 ;; 10290 esac 10291 fi 10292 if test "$with_gnu_ld" = no; then 10293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10294 hardcode_libdir_separator=: 10295 10296 case $host_cpu in 10297 hppa*64*|ia64*) 10298 hardcode_direct=no 10299 hardcode_shlibpath_var=no 10300 ;; 10301 *) 10302 hardcode_direct=yes 10303 hardcode_direct_absolute=yes 10304 export_dynamic_flag_spec='${wl}-E' 10305 10306 # hardcode_minus_L: Not really in the search PATH, 10307 # but as the default location of the library. 10308 hardcode_minus_L=yes 10309 ;; 10310 esac 10311 fi 10312 ;; 10313 10314 irix5* | irix6* | nonstopux*) 10315 if test "$GCC" = yes; then 10316 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' 10317 # Try to use the -exported_symbol ld option, if it does not 10318 # work, assume that -exports_file does not work either and 10319 # implicitly export all symbols. 10320 # This should be the same for all languages, so no per-tag cache variable. 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10322$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10323if ${lt_cv_irix_exported_symbol+:} false; then : 10324 $as_echo_n "(cached) " >&6 10325else 10326 save_LDFLAGS="$LDFLAGS" 10327 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int foo (void) { return 0; } 10331_ACEOF 10332if ac_fn_c_try_link "$LINENO"; then : 10333 lt_cv_irix_exported_symbol=yes 10334else 10335 lt_cv_irix_exported_symbol=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext \ 10338 conftest$ac_exeext conftest.$ac_ext 10339 LDFLAGS="$save_LDFLAGS" 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10342$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10343 if test "$lt_cv_irix_exported_symbol" = yes; then 10344 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' 10345 fi 10346 else 10347 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' 10348 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' 10349 fi 10350 archive_cmds_need_lc='no' 10351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10352 hardcode_libdir_separator=: 10353 inherit_rpath=yes 10354 link_all_deplibs=yes 10355 ;; 10356 10357 netbsd*) 10358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10360 else 10361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10362 fi 10363 hardcode_libdir_flag_spec='-R$libdir' 10364 hardcode_direct=yes 10365 hardcode_shlibpath_var=no 10366 ;; 10367 10368 newsos6) 10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10370 hardcode_direct=yes 10371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10372 hardcode_libdir_separator=: 10373 hardcode_shlibpath_var=no 10374 ;; 10375 10376 *nto* | *qnx*) 10377 ;; 10378 10379 openbsd*) 10380 if test -f /usr/libexec/ld.so; then 10381 hardcode_direct=yes 10382 hardcode_shlibpath_var=no 10383 hardcode_direct_absolute=yes 10384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10386 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10388 export_dynamic_flag_spec='${wl}-E' 10389 else 10390 case $host_os in 10391 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10393 hardcode_libdir_flag_spec='-R$libdir' 10394 ;; 10395 *) 10396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10398 ;; 10399 esac 10400 fi 10401 else 10402 ld_shlibs=no 10403 fi 10404 ;; 10405 10406 os2*) 10407 hardcode_libdir_flag_spec='-L$libdir' 10408 hardcode_minus_L=yes 10409 allow_undefined_flag=unsupported 10410 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' 10411 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10412 ;; 10413 10414 osf3*) 10415 if test "$GCC" = yes; then 10416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10417 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' 10418 else 10419 allow_undefined_flag=' -expect_unresolved \*' 10420 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' 10421 fi 10422 archive_cmds_need_lc='no' 10423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10424 hardcode_libdir_separator=: 10425 ;; 10426 10427 osf4* | osf5*) # as osf3* with the addition of -msym flag 10428 if test "$GCC" = yes; then 10429 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10430 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' 10431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10432 else 10433 allow_undefined_flag=' -expect_unresolved \*' 10434 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' 10435 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~ 10436 $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' 10437 10438 # Both c and cxx compiler support -rpath directly 10439 hardcode_libdir_flag_spec='-rpath $libdir' 10440 fi 10441 archive_cmds_need_lc='no' 10442 hardcode_libdir_separator=: 10443 ;; 10444 10445 solaris*) 10446 no_undefined_flag=' -z defs' 10447 if test "$GCC" = yes; then 10448 wlarc='${wl}' 10449 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10451 $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' 10452 else 10453 case `$CC -V 2>&1` in 10454 *"Compilers 5.0"*) 10455 wlarc='' 10456 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10459 ;; 10460 *) 10461 wlarc='${wl}' 10462 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10464 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10465 ;; 10466 esac 10467 fi 10468 hardcode_libdir_flag_spec='-R$libdir' 10469 hardcode_shlibpath_var=no 10470 case $host_os in 10471 solaris2.[0-5] | solaris2.[0-5].*) ;; 10472 *) 10473 # The compiler driver will combine and reorder linker options, 10474 # but understands `-z linker_flag'. GCC discards it without `$wl', 10475 # but is careful enough not to reorder. 10476 # Supported since Solaris 2.6 (maybe 2.5.1?) 10477 if test "$GCC" = yes; then 10478 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10479 else 10480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10481 fi 10482 ;; 10483 esac 10484 link_all_deplibs=yes 10485 ;; 10486 10487 sunos4*) 10488 if test "x$host_vendor" = xsequent; then 10489 # Use $CC to link under sequent, because it throws in some extra .o 10490 # files that make .init and .fini sections work. 10491 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10492 else 10493 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10494 fi 10495 hardcode_libdir_flag_spec='-L$libdir' 10496 hardcode_direct=yes 10497 hardcode_minus_L=yes 10498 hardcode_shlibpath_var=no 10499 ;; 10500 10501 sysv4) 10502 case $host_vendor in 10503 sni) 10504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10505 hardcode_direct=yes # is this really true??? 10506 ;; 10507 siemens) 10508 ## LD is ld it makes a PLAMLIB 10509 ## CC just makes a GrossModule. 10510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10511 reload_cmds='$CC -r -o $output$reload_objs' 10512 hardcode_direct=no 10513 ;; 10514 motorola) 10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10516 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10517 ;; 10518 esac 10519 runpath_var='LD_RUN_PATH' 10520 hardcode_shlibpath_var=no 10521 ;; 10522 10523 sysv4.3*) 10524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10525 hardcode_shlibpath_var=no 10526 export_dynamic_flag_spec='-Bexport' 10527 ;; 10528 10529 sysv4*MP*) 10530 if test -d /usr/nec; then 10531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10532 hardcode_shlibpath_var=no 10533 runpath_var=LD_RUN_PATH 10534 hardcode_runpath_var=yes 10535 ld_shlibs=yes 10536 fi 10537 ;; 10538 10539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10540 no_undefined_flag='${wl}-z,text' 10541 archive_cmds_need_lc=no 10542 hardcode_shlibpath_var=no 10543 runpath_var='LD_RUN_PATH' 10544 10545 if test "$GCC" = yes; then 10546 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 else 10549 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10551 fi 10552 ;; 10553 10554 sysv5* | sco3.2v5* | sco5v6*) 10555 # Note: We can NOT use -z defs as we might desire, because we do not 10556 # link with -lc, and that would cause any symbols used from libc to 10557 # always be unresolved, which means just about no library would 10558 # ever link correctly. If we're not using GNU ld we use -z text 10559 # though, which does catch some bad symbols but isn't as heavy-handed 10560 # as -z defs. 10561 no_undefined_flag='${wl}-z,text' 10562 allow_undefined_flag='${wl}-z,nodefs' 10563 archive_cmds_need_lc=no 10564 hardcode_shlibpath_var=no 10565 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10566 hardcode_libdir_separator=':' 10567 link_all_deplibs=yes 10568 export_dynamic_flag_spec='${wl}-Bexport' 10569 runpath_var='LD_RUN_PATH' 10570 10571 if test "$GCC" = yes; then 10572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10574 else 10575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10577 fi 10578 ;; 10579 10580 uts4*) 10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10582 hardcode_libdir_flag_spec='-L$libdir' 10583 hardcode_shlibpath_var=no 10584 ;; 10585 10586 *) 10587 ld_shlibs=no 10588 ;; 10589 esac 10590 10591 if test x$host_vendor = xsni; then 10592 case $host in 10593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10594 export_dynamic_flag_spec='${wl}-Blargedynsym' 10595 ;; 10596 esac 10597 fi 10598 fi 10599 10600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10601$as_echo "$ld_shlibs" >&6; } 10602test "$ld_shlibs" = no && can_build_shared=no 10603 10604with_gnu_ld=$with_gnu_ld 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620# 10621# Do we need to explicitly link libc? 10622# 10623case "x$archive_cmds_need_lc" in 10624x|xyes) 10625 # Assume -lc should be added 10626 archive_cmds_need_lc=yes 10627 10628 if test "$enable_shared" = yes && test "$GCC" = yes; then 10629 case $archive_cmds in 10630 *'~'*) 10631 # FIXME: we may have to deal with multi-command sequences. 10632 ;; 10633 '$CC '*) 10634 # Test whether the compiler implicitly links with -lc since on some 10635 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10636 # to ld, don't add -lc before -lgcc. 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10638$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10639if ${lt_cv_archive_cmds_need_lc+:} false; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 $RM conftest* 10643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10644 10645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10646 (eval $ac_compile) 2>&5 10647 ac_status=$? 10648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10649 test $ac_status = 0; } 2>conftest.err; then 10650 soname=conftest 10651 lib=conftest 10652 libobjs=conftest.$ac_objext 10653 deplibs= 10654 wl=$lt_prog_compiler_wl 10655 pic_flag=$lt_prog_compiler_pic 10656 compiler_flags=-v 10657 linker_flags=-v 10658 verstring= 10659 output_objdir=. 10660 libname=conftest 10661 lt_save_allow_undefined_flag=$allow_undefined_flag 10662 allow_undefined_flag= 10663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10664 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10665 ac_status=$? 10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10667 test $ac_status = 0; } 10668 then 10669 lt_cv_archive_cmds_need_lc=no 10670 else 10671 lt_cv_archive_cmds_need_lc=yes 10672 fi 10673 allow_undefined_flag=$lt_save_allow_undefined_flag 10674 else 10675 cat conftest.err 1>&5 10676 fi 10677 $RM conftest* 10678 10679fi 10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10681$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10682 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10683 ;; 10684 esac 10685 fi 10686 ;; 10687esac 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10841$as_echo_n "checking dynamic linker characteristics... " >&6; } 10842 10843if test "$GCC" = yes; then 10844 case $host_os in 10845 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10846 *) lt_awk_arg="/^libraries:/" ;; 10847 esac 10848 case $host_os in 10849 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10850 *) lt_sed_strip_eq="s,=/,/,g" ;; 10851 esac 10852 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10853 case $lt_search_path_spec in 10854 *\;*) 10855 # if the path contains ";" then we assume it to be the separator 10856 # otherwise default to the standard path separator (i.e. ":") - it is 10857 # assumed that no part of a normal pathname contains ";" but that should 10858 # okay in the real world where ";" in dirpaths is itself problematic. 10859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10860 ;; 10861 *) 10862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10863 ;; 10864 esac 10865 # Ok, now we have the path, separated by spaces, we can step through it 10866 # and add multilib dir if necessary. 10867 lt_tmp_lt_search_path_spec= 10868 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10869 for lt_sys_path in $lt_search_path_spec; do 10870 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10872 else 10873 test -d "$lt_sys_path" && \ 10874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10875 fi 10876 done 10877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10878BEGIN {RS=" "; FS="/|\n";} { 10879 lt_foo=""; 10880 lt_count=0; 10881 for (lt_i = NF; lt_i > 0; lt_i--) { 10882 if ($lt_i != "" && $lt_i != ".") { 10883 if ($lt_i == "..") { 10884 lt_count++; 10885 } else { 10886 if (lt_count == 0) { 10887 lt_foo="/" $lt_i lt_foo; 10888 } else { 10889 lt_count--; 10890 } 10891 } 10892 } 10893 } 10894 if (lt_foo != "") { lt_freq[lt_foo]++; } 10895 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10896}'` 10897 # AWK program above erroneously prepends '/' to C:/dos/paths 10898 # for these hosts. 10899 case $host_os in 10900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10901 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10902 esac 10903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10904else 10905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10906fi 10907library_names_spec= 10908libname_spec='lib$name' 10909soname_spec= 10910shrext_cmds=".so" 10911postinstall_cmds= 10912postuninstall_cmds= 10913finish_cmds= 10914finish_eval= 10915shlibpath_var= 10916shlibpath_overrides_runpath=unknown 10917version_type=none 10918dynamic_linker="$host_os ld.so" 10919sys_lib_dlsearch_path_spec="/lib /usr/lib" 10920need_lib_prefix=unknown 10921hardcode_into_libs=no 10922 10923# when you set need_version to no, make sure it does not cause -set_version 10924# flags to be left without arguments 10925need_version=unknown 10926 10927case $host_os in 10928aix3*) 10929 version_type=linux # correct to gnu/linux during the next big refactor 10930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10931 shlibpath_var=LIBPATH 10932 10933 # AIX 3 has no versioning support, so we append a major version to the name. 10934 soname_spec='${libname}${release}${shared_ext}$major' 10935 ;; 10936 10937aix[4-9]*) 10938 version_type=linux # correct to gnu/linux during the next big refactor 10939 need_lib_prefix=no 10940 need_version=no 10941 hardcode_into_libs=yes 10942 if test "$host_cpu" = ia64; then 10943 # AIX 5 supports IA64 10944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10945 shlibpath_var=LD_LIBRARY_PATH 10946 else 10947 # With GCC up to 2.95.x, collect2 would create an import file 10948 # for dependence libraries. The import file would start with 10949 # the line `#! .'. This would cause the generated library to 10950 # depend on `.', always an invalid library. This was fixed in 10951 # development snapshots of GCC prior to 3.0. 10952 case $host_os in 10953 aix4 | aix4.[01] | aix4.[01].*) 10954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10955 echo ' yes ' 10956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10957 : 10958 else 10959 can_build_shared=no 10960 fi 10961 ;; 10962 esac 10963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10964 # soname into executable. Probably we can add versioning support to 10965 # collect2, so additional links can be useful in future. 10966 if test "$aix_use_runtimelinking" = yes; then 10967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10968 # instead of lib<name>.a to let people know that these are not 10969 # typical AIX shared libraries. 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10971 else 10972 # We preserve .a as extension for shared libraries through AIX4.2 10973 # and later when we are not doing run time linking. 10974 library_names_spec='${libname}${release}.a $libname.a' 10975 soname_spec='${libname}${release}${shared_ext}$major' 10976 fi 10977 shlibpath_var=LIBPATH 10978 fi 10979 ;; 10980 10981amigaos*) 10982 case $host_cpu in 10983 powerpc) 10984 # Since July 2007 AmigaOS4 officially supports .so libraries. 10985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10987 ;; 10988 m68k) 10989 library_names_spec='$libname.ixlibrary $libname.a' 10990 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10991 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10992 ;; 10993 esac 10994 ;; 10995 10996beos*) 10997 library_names_spec='${libname}${shared_ext}' 10998 dynamic_linker="$host_os ld.so" 10999 shlibpath_var=LIBRARY_PATH 11000 ;; 11001 11002bsdi[45]*) 11003 version_type=linux # correct to gnu/linux during the next big refactor 11004 need_version=no 11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11006 soname_spec='${libname}${release}${shared_ext}$major' 11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11011 # the default ld.so.conf also contains /usr/contrib/lib and 11012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11013 # libtool to hard-code these into programs 11014 ;; 11015 11016cygwin* | mingw* | pw32* | cegcc*) 11017 version_type=windows 11018 shrext_cmds=".dll" 11019 need_version=no 11020 need_lib_prefix=no 11021 11022 case $GCC,$cc_basename in 11023 yes,*) 11024 # gcc 11025 library_names_spec='$libname.dll.a' 11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11027 postinstall_cmds='base_file=`basename \${file}`~ 11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11029 dldir=$destdir/`dirname \$dlpath`~ 11030 test -d \$dldir || mkdir -p \$dldir~ 11031 $install_prog $dir/$dlname \$dldir/$dlname~ 11032 chmod a+x \$dldir/$dlname~ 11033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11035 fi' 11036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11037 dlpath=$dir/\$dldll~ 11038 $RM \$dlpath' 11039 shlibpath_overrides_runpath=yes 11040 11041 case $host_os in 11042 cygwin*) 11043 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11045 11046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11047 ;; 11048 mingw* | cegcc*) 11049 # MinGW DLLs use traditional 'lib' prefix 11050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11051 ;; 11052 pw32*) 11053 # pw32 DLLs use 'pw' prefix rather than 'lib' 11054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11055 ;; 11056 esac 11057 dynamic_linker='Win32 ld.exe' 11058 ;; 11059 11060 *,cl*) 11061 # Native MSVC 11062 libname_spec='$name' 11063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11064 library_names_spec='${libname}.dll.lib' 11065 11066 case $build_os in 11067 mingw*) 11068 sys_lib_search_path_spec= 11069 lt_save_ifs=$IFS 11070 IFS=';' 11071 for lt_path in $LIB 11072 do 11073 IFS=$lt_save_ifs 11074 # Let DOS variable expansion print the short 8.3 style file name. 11075 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11076 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11077 done 11078 IFS=$lt_save_ifs 11079 # Convert to MSYS style. 11080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11081 ;; 11082 cygwin*) 11083 # Convert to unix form, then to dos form, then back to unix form 11084 # but this time dos style (no spaces!) so that the unix form looks 11085 # like /cygdrive/c/PROGRA~1:/cygdr... 11086 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11087 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11088 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11089 ;; 11090 *) 11091 sys_lib_search_path_spec="$LIB" 11092 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11093 # It is most probably a Windows format PATH. 11094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11095 else 11096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11097 fi 11098 # FIXME: find the short name or the path components, as spaces are 11099 # common. (e.g. "Program Files" -> "PROGRA~1") 11100 ;; 11101 esac 11102 11103 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11104 postinstall_cmds='base_file=`basename \${file}`~ 11105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11106 dldir=$destdir/`dirname \$dlpath`~ 11107 test -d \$dldir || mkdir -p \$dldir~ 11108 $install_prog $dir/$dlname \$dldir/$dlname' 11109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11110 dlpath=$dir/\$dldll~ 11111 $RM \$dlpath' 11112 shlibpath_overrides_runpath=yes 11113 dynamic_linker='Win32 link.exe' 11114 ;; 11115 11116 *) 11117 # Assume MSVC wrapper 11118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11119 dynamic_linker='Win32 ld.exe' 11120 ;; 11121 esac 11122 # FIXME: first we should search . and the directory the executable is in 11123 shlibpath_var=PATH 11124 ;; 11125 11126darwin* | rhapsody*) 11127 dynamic_linker="$host_os dyld" 11128 version_type=darwin 11129 need_lib_prefix=no 11130 need_version=no 11131 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11132 soname_spec='${libname}${release}${major}$shared_ext' 11133 shlibpath_overrides_runpath=yes 11134 shlibpath_var=DYLD_LIBRARY_PATH 11135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11136 11137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11139 ;; 11140 11141dgux*) 11142 version_type=linux # correct to gnu/linux during the next big refactor 11143 need_lib_prefix=no 11144 need_version=no 11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11146 soname_spec='${libname}${release}${shared_ext}$major' 11147 shlibpath_var=LD_LIBRARY_PATH 11148 ;; 11149 11150freebsd* | dragonfly*) 11151 # DragonFly does not have aout. When/if they implement a new 11152 # versioning mechanism, adjust this. 11153 if test -x /usr/bin/objformat; then 11154 objformat=`/usr/bin/objformat` 11155 else 11156 case $host_os in 11157 freebsd[23].*) objformat=aout ;; 11158 *) objformat=elf ;; 11159 esac 11160 fi 11161 version_type=freebsd-$objformat 11162 case $version_type in 11163 freebsd-elf*) 11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11165 need_version=no 11166 need_lib_prefix=no 11167 ;; 11168 freebsd-*) 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11170 need_version=yes 11171 ;; 11172 esac 11173 shlibpath_var=LD_LIBRARY_PATH 11174 case $host_os in 11175 freebsd2.*) 11176 shlibpath_overrides_runpath=yes 11177 ;; 11178 freebsd3.[01]* | freebsdelf3.[01]*) 11179 shlibpath_overrides_runpath=yes 11180 hardcode_into_libs=yes 11181 ;; 11182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11184 shlibpath_overrides_runpath=no 11185 hardcode_into_libs=yes 11186 ;; 11187 *) # from 4.6 on, and DragonFly 11188 shlibpath_overrides_runpath=yes 11189 hardcode_into_libs=yes 11190 ;; 11191 esac 11192 ;; 11193 11194gnu*) 11195 version_type=linux # correct to gnu/linux during the next big refactor 11196 need_lib_prefix=no 11197 need_version=no 11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11199 soname_spec='${libname}${release}${shared_ext}$major' 11200 shlibpath_var=LD_LIBRARY_PATH 11201 shlibpath_overrides_runpath=no 11202 hardcode_into_libs=yes 11203 ;; 11204 11205haiku*) 11206 version_type=linux # correct to gnu/linux during the next big refactor 11207 need_lib_prefix=no 11208 need_version=no 11209 dynamic_linker="$host_os runtime_loader" 11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11211 soname_spec='${libname}${release}${shared_ext}$major' 11212 shlibpath_var=LIBRARY_PATH 11213 shlibpath_overrides_runpath=yes 11214 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11215 hardcode_into_libs=yes 11216 ;; 11217 11218hpux9* | hpux10* | hpux11*) 11219 # Give a soname corresponding to the major version so that dld.sl refuses to 11220 # link against other versions. 11221 version_type=sunos 11222 need_lib_prefix=no 11223 need_version=no 11224 case $host_cpu in 11225 ia64*) 11226 shrext_cmds='.so' 11227 hardcode_into_libs=yes 11228 dynamic_linker="$host_os dld.so" 11229 shlibpath_var=LD_LIBRARY_PATH 11230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11232 soname_spec='${libname}${release}${shared_ext}$major' 11233 if test "X$HPUX_IA64_MODE" = X32; then 11234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11235 else 11236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11237 fi 11238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11239 ;; 11240 hppa*64*) 11241 shrext_cmds='.sl' 11242 hardcode_into_libs=yes 11243 dynamic_linker="$host_os dld.sl" 11244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11247 soname_spec='${libname}${release}${shared_ext}$major' 11248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11250 ;; 11251 *) 11252 shrext_cmds='.sl' 11253 dynamic_linker="$host_os dld.sl" 11254 shlibpath_var=SHLIB_PATH 11255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11257 soname_spec='${libname}${release}${shared_ext}$major' 11258 ;; 11259 esac 11260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11261 postinstall_cmds='chmod 555 $lib' 11262 # or fails outright, so override atomically: 11263 install_override_mode=555 11264 ;; 11265 11266interix[3-9]*) 11267 version_type=linux # correct to gnu/linux during the next big refactor 11268 need_lib_prefix=no 11269 need_version=no 11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11271 soname_spec='${libname}${release}${shared_ext}$major' 11272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11273 shlibpath_var=LD_LIBRARY_PATH 11274 shlibpath_overrides_runpath=no 11275 hardcode_into_libs=yes 11276 ;; 11277 11278irix5* | irix6* | nonstopux*) 11279 case $host_os in 11280 nonstopux*) version_type=nonstopux ;; 11281 *) 11282 if test "$lt_cv_prog_gnu_ld" = yes; then 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 else 11285 version_type=irix 11286 fi ;; 11287 esac 11288 need_lib_prefix=no 11289 need_version=no 11290 soname_spec='${libname}${release}${shared_ext}$major' 11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11292 case $host_os in 11293 irix5* | nonstopux*) 11294 libsuff= shlibsuff= 11295 ;; 11296 *) 11297 case $LD in # libtool.m4 will add one of these switches to LD 11298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11299 libsuff= shlibsuff= libmagic=32-bit;; 11300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11301 libsuff=32 shlibsuff=N32 libmagic=N32;; 11302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11303 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11304 *) libsuff= shlibsuff= libmagic=never-match;; 11305 esac 11306 ;; 11307 esac 11308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11309 shlibpath_overrides_runpath=no 11310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11312 hardcode_into_libs=yes 11313 ;; 11314 11315# No shared lib support for Linux oldld, aout, or coff. 11316linux*oldld* | linux*aout* | linux*coff*) 11317 dynamic_linker=no 11318 ;; 11319 11320# This must be glibc/ELF. 11321linux* | k*bsd*-gnu | kopensolaris*-gnu) 11322 version_type=linux # correct to gnu/linux during the next big refactor 11323 need_lib_prefix=no 11324 need_version=no 11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11326 soname_spec='${libname}${release}${shared_ext}$major' 11327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11328 shlibpath_var=LD_LIBRARY_PATH 11329 shlibpath_overrides_runpath=no 11330 11331 # Some binutils ld are patched to set DT_RUNPATH 11332 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11333 $as_echo_n "(cached) " >&6 11334else 11335 lt_cv_shlibpath_overrides_runpath=no 11336 save_LDFLAGS=$LDFLAGS 11337 save_libdir=$libdir 11338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11341/* end confdefs.h. */ 11342 11343int 11344main () 11345{ 11346 11347 ; 11348 return 0; 11349} 11350_ACEOF 11351if ac_fn_c_try_link "$LINENO"; then : 11352 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11353 lt_cv_shlibpath_overrides_runpath=yes 11354fi 11355fi 11356rm -f core conftest.err conftest.$ac_objext \ 11357 conftest$ac_exeext conftest.$ac_ext 11358 LDFLAGS=$save_LDFLAGS 11359 libdir=$save_libdir 11360 11361fi 11362 11363 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11364 11365 # This implies no fast_install, which is unacceptable. 11366 # Some rework will be needed to allow for fast_install 11367 # before this can be enabled. 11368 hardcode_into_libs=yes 11369 11370 # Append ld.so.conf contents to the search path 11371 if test -f /etc/ld.so.conf; then 11372 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' ' '` 11373 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11374 fi 11375 11376 # We used to test for /lib/ld.so.1 and disable shared libraries on 11377 # powerpc, because MkLinux only supported shared libraries with the 11378 # GNU dynamic linker. Since this was broken with cross compilers, 11379 # most powerpc-linux boxes support dynamic linking these days and 11380 # people can always --disable-shared, the test was removed, and we 11381 # assume the GNU/Linux dynamic linker is in use. 11382 dynamic_linker='GNU/Linux ld.so' 11383 ;; 11384 11385netbsd*) 11386 version_type=sunos 11387 need_lib_prefix=no 11388 need_version=no 11389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11392 dynamic_linker='NetBSD (a.out) ld.so' 11393 else 11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11395 soname_spec='${libname}${release}${shared_ext}$major' 11396 dynamic_linker='NetBSD ld.elf_so' 11397 fi 11398 shlibpath_var=LD_LIBRARY_PATH 11399 shlibpath_overrides_runpath=yes 11400 hardcode_into_libs=yes 11401 ;; 11402 11403newsos6) 11404 version_type=linux # correct to gnu/linux during the next big refactor 11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11406 shlibpath_var=LD_LIBRARY_PATH 11407 shlibpath_overrides_runpath=yes 11408 ;; 11409 11410*nto* | *qnx*) 11411 version_type=qnx 11412 need_lib_prefix=no 11413 need_version=no 11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11415 soname_spec='${libname}${release}${shared_ext}$major' 11416 shlibpath_var=LD_LIBRARY_PATH 11417 shlibpath_overrides_runpath=no 11418 hardcode_into_libs=yes 11419 dynamic_linker='ldqnx.so' 11420 ;; 11421 11422openbsd*) 11423 version_type=sunos 11424 sys_lib_dlsearch_path_spec="/usr/lib" 11425 need_lib_prefix=no 11426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11427 case $host_os in 11428 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11429 *) need_version=no ;; 11430 esac 11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11433 shlibpath_var=LD_LIBRARY_PATH 11434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11435 case $host_os in 11436 openbsd2.[89] | openbsd2.[89].*) 11437 shlibpath_overrides_runpath=no 11438 ;; 11439 *) 11440 shlibpath_overrides_runpath=yes 11441 ;; 11442 esac 11443 else 11444 shlibpath_overrides_runpath=yes 11445 fi 11446 ;; 11447 11448os2*) 11449 libname_spec='$name' 11450 shrext_cmds=".dll" 11451 need_lib_prefix=no 11452 library_names_spec='$libname${shared_ext} $libname.a' 11453 dynamic_linker='OS/2 ld.exe' 11454 shlibpath_var=LIBPATH 11455 ;; 11456 11457osf3* | osf4* | osf5*) 11458 version_type=osf 11459 need_lib_prefix=no 11460 need_version=no 11461 soname_spec='${libname}${release}${shared_ext}$major' 11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11463 shlibpath_var=LD_LIBRARY_PATH 11464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11466 ;; 11467 11468rdos*) 11469 dynamic_linker=no 11470 ;; 11471 11472solaris*) 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 need_lib_prefix=no 11475 need_version=no 11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11477 soname_spec='${libname}${release}${shared_ext}$major' 11478 shlibpath_var=LD_LIBRARY_PATH 11479 shlibpath_overrides_runpath=yes 11480 hardcode_into_libs=yes 11481 # ldd complains unless libraries are executable 11482 postinstall_cmds='chmod +x $lib' 11483 ;; 11484 11485sunos4*) 11486 version_type=sunos 11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11489 shlibpath_var=LD_LIBRARY_PATH 11490 shlibpath_overrides_runpath=yes 11491 if test "$with_gnu_ld" = yes; then 11492 need_lib_prefix=no 11493 fi 11494 need_version=yes 11495 ;; 11496 11497sysv4 | sysv4.3*) 11498 version_type=linux # correct to gnu/linux during the next big refactor 11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11500 soname_spec='${libname}${release}${shared_ext}$major' 11501 shlibpath_var=LD_LIBRARY_PATH 11502 case $host_vendor in 11503 sni) 11504 shlibpath_overrides_runpath=no 11505 need_lib_prefix=no 11506 runpath_var=LD_RUN_PATH 11507 ;; 11508 siemens) 11509 need_lib_prefix=no 11510 ;; 11511 motorola) 11512 need_lib_prefix=no 11513 need_version=no 11514 shlibpath_overrides_runpath=no 11515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11516 ;; 11517 esac 11518 ;; 11519 11520sysv4*MP*) 11521 if test -d /usr/nec ;then 11522 version_type=linux # correct to gnu/linux during the next big refactor 11523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11524 soname_spec='$libname${shared_ext}.$major' 11525 shlibpath_var=LD_LIBRARY_PATH 11526 fi 11527 ;; 11528 11529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11530 version_type=freebsd-elf 11531 need_lib_prefix=no 11532 need_version=no 11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11534 soname_spec='${libname}${release}${shared_ext}$major' 11535 shlibpath_var=LD_LIBRARY_PATH 11536 shlibpath_overrides_runpath=yes 11537 hardcode_into_libs=yes 11538 if test "$with_gnu_ld" = yes; then 11539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11540 else 11541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11542 case $host_os in 11543 sco3.2v5*) 11544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11545 ;; 11546 esac 11547 fi 11548 sys_lib_dlsearch_path_spec='/usr/lib' 11549 ;; 11550 11551tpf*) 11552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 need_lib_prefix=no 11555 need_version=no 11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11557 shlibpath_var=LD_LIBRARY_PATH 11558 shlibpath_overrides_runpath=no 11559 hardcode_into_libs=yes 11560 ;; 11561 11562uts4*) 11563 version_type=linux # correct to gnu/linux during the next big refactor 11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11565 soname_spec='${libname}${release}${shared_ext}$major' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 ;; 11568 11569*) 11570 dynamic_linker=no 11571 ;; 11572esac 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11574$as_echo "$dynamic_linker" >&6; } 11575test "$dynamic_linker" = no && can_build_shared=no 11576 11577variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11578if test "$GCC" = yes; then 11579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11580fi 11581 11582if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11583 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11584fi 11585if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11586 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11587fi 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11681$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11682hardcode_action= 11683if test -n "$hardcode_libdir_flag_spec" || 11684 test -n "$runpath_var" || 11685 test "X$hardcode_automatic" = "Xyes" ; then 11686 11687 # We can hardcode non-existent directories. 11688 if test "$hardcode_direct" != no && 11689 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11690 # have to relink, otherwise we might link with an installed library 11691 # when we should be linking with a yet-to-be-installed one 11692 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11693 test "$hardcode_minus_L" != no; then 11694 # Linking always hardcodes the temporary library directory. 11695 hardcode_action=relink 11696 else 11697 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11698 hardcode_action=immediate 11699 fi 11700else 11701 # We cannot hardcode anything, or else we can only hardcode existing 11702 # directories. 11703 hardcode_action=unsupported 11704fi 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11706$as_echo "$hardcode_action" >&6; } 11707 11708if test "$hardcode_action" = relink || 11709 test "$inherit_rpath" = yes; then 11710 # Fast installation is not supported 11711 enable_fast_install=no 11712elif test "$shlibpath_overrides_runpath" = yes || 11713 test "$enable_shared" = no; then 11714 # Fast installation is not necessary 11715 enable_fast_install=needless 11716fi 11717 11718 11719 11720 11721 11722 11723 if test "x$enable_dlopen" != xyes; then 11724 enable_dlopen=unknown 11725 enable_dlopen_self=unknown 11726 enable_dlopen_self_static=unknown 11727else 11728 lt_cv_dlopen=no 11729 lt_cv_dlopen_libs= 11730 11731 case $host_os in 11732 beos*) 11733 lt_cv_dlopen="load_add_on" 11734 lt_cv_dlopen_libs= 11735 lt_cv_dlopen_self=yes 11736 ;; 11737 11738 mingw* | pw32* | cegcc*) 11739 lt_cv_dlopen="LoadLibrary" 11740 lt_cv_dlopen_libs= 11741 ;; 11742 11743 cygwin*) 11744 lt_cv_dlopen="dlopen" 11745 lt_cv_dlopen_libs= 11746 ;; 11747 11748 darwin*) 11749 # if libdl is installed we need to link against it 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11751$as_echo_n "checking for dlopen in -ldl... " >&6; } 11752if ${ac_cv_lib_dl_dlopen+:} false; then : 11753 $as_echo_n "(cached) " >&6 11754else 11755 ac_check_lib_save_LIBS=$LIBS 11756LIBS="-ldl $LIBS" 11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759 11760/* Override any GCC internal prototype to avoid an error. 11761 Use char because int might match the return type of a GCC 11762 builtin and then its argument prototype would still apply. */ 11763#ifdef __cplusplus 11764extern "C" 11765#endif 11766char dlopen (); 11767int 11768main () 11769{ 11770return dlopen (); 11771 ; 11772 return 0; 11773} 11774_ACEOF 11775if ac_fn_c_try_link "$LINENO"; then : 11776 ac_cv_lib_dl_dlopen=yes 11777else 11778 ac_cv_lib_dl_dlopen=no 11779fi 11780rm -f core conftest.err conftest.$ac_objext \ 11781 conftest$ac_exeext conftest.$ac_ext 11782LIBS=$ac_check_lib_save_LIBS 11783fi 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11785$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11786if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11788else 11789 11790 lt_cv_dlopen="dyld" 11791 lt_cv_dlopen_libs= 11792 lt_cv_dlopen_self=yes 11793 11794fi 11795 11796 ;; 11797 11798 *) 11799 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11800if test "x$ac_cv_func_shl_load" = xyes; then : 11801 lt_cv_dlopen="shl_load" 11802else 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11804$as_echo_n "checking for shl_load in -ldld... " >&6; } 11805if ${ac_cv_lib_dld_shl_load+:} false; then : 11806 $as_echo_n "(cached) " >&6 11807else 11808 ac_check_lib_save_LIBS=$LIBS 11809LIBS="-ldld $LIBS" 11810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811/* end confdefs.h. */ 11812 11813/* Override any GCC internal prototype to avoid an error. 11814 Use char because int might match the return type of a GCC 11815 builtin and then its argument prototype would still apply. */ 11816#ifdef __cplusplus 11817extern "C" 11818#endif 11819char shl_load (); 11820int 11821main () 11822{ 11823return shl_load (); 11824 ; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_c_try_link "$LINENO"; then : 11829 ac_cv_lib_dld_shl_load=yes 11830else 11831 ac_cv_lib_dld_shl_load=no 11832fi 11833rm -f core conftest.err conftest.$ac_objext \ 11834 conftest$ac_exeext conftest.$ac_ext 11835LIBS=$ac_check_lib_save_LIBS 11836fi 11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11838$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11839if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11840 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11841else 11842 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11843if test "x$ac_cv_func_dlopen" = xyes; then : 11844 lt_cv_dlopen="dlopen" 11845else 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11847$as_echo_n "checking for dlopen in -ldl... " >&6; } 11848if ${ac_cv_lib_dl_dlopen+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 ac_check_lib_save_LIBS=$LIBS 11852LIBS="-ldl $LIBS" 11853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11854/* end confdefs.h. */ 11855 11856/* Override any GCC internal prototype to avoid an error. 11857 Use char because int might match the return type of a GCC 11858 builtin and then its argument prototype would still apply. */ 11859#ifdef __cplusplus 11860extern "C" 11861#endif 11862char dlopen (); 11863int 11864main () 11865{ 11866return dlopen (); 11867 ; 11868 return 0; 11869} 11870_ACEOF 11871if ac_fn_c_try_link "$LINENO"; then : 11872 ac_cv_lib_dl_dlopen=yes 11873else 11874 ac_cv_lib_dl_dlopen=no 11875fi 11876rm -f core conftest.err conftest.$ac_objext \ 11877 conftest$ac_exeext conftest.$ac_ext 11878LIBS=$ac_check_lib_save_LIBS 11879fi 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11881$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11882if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11884else 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11886$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11887if ${ac_cv_lib_svld_dlopen+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 ac_check_lib_save_LIBS=$LIBS 11891LIBS="-lsvld $LIBS" 11892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11893/* end confdefs.h. */ 11894 11895/* Override any GCC internal prototype to avoid an error. 11896 Use char because int might match the return type of a GCC 11897 builtin and then its argument prototype would still apply. */ 11898#ifdef __cplusplus 11899extern "C" 11900#endif 11901char dlopen (); 11902int 11903main () 11904{ 11905return dlopen (); 11906 ; 11907 return 0; 11908} 11909_ACEOF 11910if ac_fn_c_try_link "$LINENO"; then : 11911 ac_cv_lib_svld_dlopen=yes 11912else 11913 ac_cv_lib_svld_dlopen=no 11914fi 11915rm -f core conftest.err conftest.$ac_objext \ 11916 conftest$ac_exeext conftest.$ac_ext 11917LIBS=$ac_check_lib_save_LIBS 11918fi 11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11920$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11921if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11923else 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11925$as_echo_n "checking for dld_link in -ldld... " >&6; } 11926if ${ac_cv_lib_dld_dld_link+:} false; then : 11927 $as_echo_n "(cached) " >&6 11928else 11929 ac_check_lib_save_LIBS=$LIBS 11930LIBS="-ldld $LIBS" 11931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11932/* end confdefs.h. */ 11933 11934/* Override any GCC internal prototype to avoid an error. 11935 Use char because int might match the return type of a GCC 11936 builtin and then its argument prototype would still apply. */ 11937#ifdef __cplusplus 11938extern "C" 11939#endif 11940char dld_link (); 11941int 11942main () 11943{ 11944return dld_link (); 11945 ; 11946 return 0; 11947} 11948_ACEOF 11949if ac_fn_c_try_link "$LINENO"; then : 11950 ac_cv_lib_dld_dld_link=yes 11951else 11952 ac_cv_lib_dld_dld_link=no 11953fi 11954rm -f core conftest.err conftest.$ac_objext \ 11955 conftest$ac_exeext conftest.$ac_ext 11956LIBS=$ac_check_lib_save_LIBS 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11959$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11960if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11962fi 11963 11964 11965fi 11966 11967 11968fi 11969 11970 11971fi 11972 11973 11974fi 11975 11976 11977fi 11978 11979 ;; 11980 esac 11981 11982 if test "x$lt_cv_dlopen" != xno; then 11983 enable_dlopen=yes 11984 else 11985 enable_dlopen=no 11986 fi 11987 11988 case $lt_cv_dlopen in 11989 dlopen) 11990 save_CPPFLAGS="$CPPFLAGS" 11991 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11992 11993 save_LDFLAGS="$LDFLAGS" 11994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11995 11996 save_LIBS="$LIBS" 11997 LIBS="$lt_cv_dlopen_libs $LIBS" 11998 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12000$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12001if ${lt_cv_dlopen_self+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003else 12004 if test "$cross_compiling" = yes; then : 12005 lt_cv_dlopen_self=cross 12006else 12007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12008 lt_status=$lt_dlunknown 12009 cat > conftest.$ac_ext <<_LT_EOF 12010#line $LINENO "configure" 12011#include "confdefs.h" 12012 12013#if HAVE_DLFCN_H 12014#include <dlfcn.h> 12015#endif 12016 12017#include <stdio.h> 12018 12019#ifdef RTLD_GLOBAL 12020# define LT_DLGLOBAL RTLD_GLOBAL 12021#else 12022# ifdef DL_GLOBAL 12023# define LT_DLGLOBAL DL_GLOBAL 12024# else 12025# define LT_DLGLOBAL 0 12026# endif 12027#endif 12028 12029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12030 find out it does not work in some platform. */ 12031#ifndef LT_DLLAZY_OR_NOW 12032# ifdef RTLD_LAZY 12033# define LT_DLLAZY_OR_NOW RTLD_LAZY 12034# else 12035# ifdef DL_LAZY 12036# define LT_DLLAZY_OR_NOW DL_LAZY 12037# else 12038# ifdef RTLD_NOW 12039# define LT_DLLAZY_OR_NOW RTLD_NOW 12040# else 12041# ifdef DL_NOW 12042# define LT_DLLAZY_OR_NOW DL_NOW 12043# else 12044# define LT_DLLAZY_OR_NOW 0 12045# endif 12046# endif 12047# endif 12048# endif 12049#endif 12050 12051/* When -fvisbility=hidden is used, assume the code has been annotated 12052 correspondingly for the symbols needed. */ 12053#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12054int fnord () __attribute__((visibility("default"))); 12055#endif 12056 12057int fnord () { return 42; } 12058int main () 12059{ 12060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12061 int status = $lt_dlunknown; 12062 12063 if (self) 12064 { 12065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12066 else 12067 { 12068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12069 else puts (dlerror ()); 12070 } 12071 /* dlclose (self); */ 12072 } 12073 else 12074 puts (dlerror ()); 12075 12076 return status; 12077} 12078_LT_EOF 12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12080 (eval $ac_link) 2>&5 12081 ac_status=$? 12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12084 (./conftest; exit; ) >&5 2>/dev/null 12085 lt_status=$? 12086 case x$lt_status in 12087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12089 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12090 esac 12091 else : 12092 # compilation failed 12093 lt_cv_dlopen_self=no 12094 fi 12095fi 12096rm -fr conftest* 12097 12098 12099fi 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12101$as_echo "$lt_cv_dlopen_self" >&6; } 12102 12103 if test "x$lt_cv_dlopen_self" = xyes; then 12104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12106$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12107if ${lt_cv_dlopen_self_static+:} false; then : 12108 $as_echo_n "(cached) " >&6 12109else 12110 if test "$cross_compiling" = yes; then : 12111 lt_cv_dlopen_self_static=cross 12112else 12113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12114 lt_status=$lt_dlunknown 12115 cat > conftest.$ac_ext <<_LT_EOF 12116#line $LINENO "configure" 12117#include "confdefs.h" 12118 12119#if HAVE_DLFCN_H 12120#include <dlfcn.h> 12121#endif 12122 12123#include <stdio.h> 12124 12125#ifdef RTLD_GLOBAL 12126# define LT_DLGLOBAL RTLD_GLOBAL 12127#else 12128# ifdef DL_GLOBAL 12129# define LT_DLGLOBAL DL_GLOBAL 12130# else 12131# define LT_DLGLOBAL 0 12132# endif 12133#endif 12134 12135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12136 find out it does not work in some platform. */ 12137#ifndef LT_DLLAZY_OR_NOW 12138# ifdef RTLD_LAZY 12139# define LT_DLLAZY_OR_NOW RTLD_LAZY 12140# else 12141# ifdef DL_LAZY 12142# define LT_DLLAZY_OR_NOW DL_LAZY 12143# else 12144# ifdef RTLD_NOW 12145# define LT_DLLAZY_OR_NOW RTLD_NOW 12146# else 12147# ifdef DL_NOW 12148# define LT_DLLAZY_OR_NOW DL_NOW 12149# else 12150# define LT_DLLAZY_OR_NOW 0 12151# endif 12152# endif 12153# endif 12154# endif 12155#endif 12156 12157/* When -fvisbility=hidden is used, assume the code has been annotated 12158 correspondingly for the symbols needed. */ 12159#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12160int fnord () __attribute__((visibility("default"))); 12161#endif 12162 12163int fnord () { return 42; } 12164int main () 12165{ 12166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12167 int status = $lt_dlunknown; 12168 12169 if (self) 12170 { 12171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12172 else 12173 { 12174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12175 else puts (dlerror ()); 12176 } 12177 /* dlclose (self); */ 12178 } 12179 else 12180 puts (dlerror ()); 12181 12182 return status; 12183} 12184_LT_EOF 12185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12186 (eval $ac_link) 2>&5 12187 ac_status=$? 12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12189 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12190 (./conftest; exit; ) >&5 2>/dev/null 12191 lt_status=$? 12192 case x$lt_status in 12193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12195 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12196 esac 12197 else : 12198 # compilation failed 12199 lt_cv_dlopen_self_static=no 12200 fi 12201fi 12202rm -fr conftest* 12203 12204 12205fi 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12207$as_echo "$lt_cv_dlopen_self_static" >&6; } 12208 fi 12209 12210 CPPFLAGS="$save_CPPFLAGS" 12211 LDFLAGS="$save_LDFLAGS" 12212 LIBS="$save_LIBS" 12213 ;; 12214 esac 12215 12216 case $lt_cv_dlopen_self in 12217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12218 *) enable_dlopen_self=unknown ;; 12219 esac 12220 12221 case $lt_cv_dlopen_self_static in 12222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12223 *) enable_dlopen_self_static=unknown ;; 12224 esac 12225fi 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243striplib= 12244old_striplib= 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12246$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12247if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12248 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12249 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12251$as_echo "yes" >&6; } 12252else 12253# FIXME - insert some real tests, host_os isn't really good enough 12254 case $host_os in 12255 darwin*) 12256 if test -n "$STRIP" ; then 12257 striplib="$STRIP -x" 12258 old_striplib="$STRIP -S" 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12260$as_echo "yes" >&6; } 12261 else 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12263$as_echo "no" >&6; } 12264 fi 12265 ;; 12266 *) 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12268$as_echo "no" >&6; } 12269 ;; 12270 esac 12271fi 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 # Report which library types will actually be built 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12286$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12288$as_echo "$can_build_shared" >&6; } 12289 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12291$as_echo_n "checking whether to build shared libraries... " >&6; } 12292 test "$can_build_shared" = "no" && enable_shared=no 12293 12294 # On AIX, shared libraries and static libraries use the same namespace, and 12295 # are all built from PIC. 12296 case $host_os in 12297 aix3*) 12298 test "$enable_shared" = yes && enable_static=no 12299 if test -n "$RANLIB"; then 12300 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12301 postinstall_cmds='$RANLIB $lib' 12302 fi 12303 ;; 12304 12305 aix[4-9]*) 12306 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12307 test "$enable_shared" = yes && enable_static=no 12308 fi 12309 ;; 12310 esac 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12312$as_echo "$enable_shared" >&6; } 12313 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12315$as_echo_n "checking whether to build static libraries... " >&6; } 12316 # Make sure either enable_shared or enable_static is yes. 12317 test "$enable_shared" = yes || enable_static=yes 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12319$as_echo "$enable_static" >&6; } 12320 12321 12322 12323 12324fi 12325ac_ext=c 12326ac_cpp='$CPP $CPPFLAGS' 12327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12329ac_compiler_gnu=$ac_cv_c_compiler_gnu 12330 12331CC="$lt_save_CC" 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 ac_config_commands="$ac_config_commands libtool" 12348 12349 12350 12351 12352# Only expand once: 12353 12354 12355ac_ext=cpp 12356ac_cpp='$CXXCPP $CPPFLAGS' 12357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12360if test -z "$CXX"; then 12361 if test -n "$CCC"; then 12362 CXX=$CCC 12363 else 12364 if test -n "$ac_tool_prefix"; then 12365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12366 do 12367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12368set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12370$as_echo_n "checking for $ac_word... " >&6; } 12371if ${ac_cv_prog_CXX+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 if test -n "$CXX"; then 12375 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12376else 12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12378for as_dir in $PATH 12379do 12380 IFS=$as_save_IFS 12381 test -z "$as_dir" && as_dir=. 12382 for ac_exec_ext in '' $ac_executable_extensions; do 12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12384 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12386 break 2 12387 fi 12388done 12389 done 12390IFS=$as_save_IFS 12391 12392fi 12393fi 12394CXX=$ac_cv_prog_CXX 12395if test -n "$CXX"; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12397$as_echo "$CXX" >&6; } 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401fi 12402 12403 12404 test -n "$CXX" && break 12405 done 12406fi 12407if test -z "$CXX"; then 12408 ac_ct_CXX=$CXX 12409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12410do 12411 # Extract the first word of "$ac_prog", so it can be a program name with args. 12412set dummy $ac_prog; ac_word=$2 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12414$as_echo_n "checking for $ac_word... " >&6; } 12415if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 if test -n "$ac_ct_CXX"; then 12419 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12420else 12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12422for as_dir in $PATH 12423do 12424 IFS=$as_save_IFS 12425 test -z "$as_dir" && as_dir=. 12426 for ac_exec_ext in '' $ac_executable_extensions; do 12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12428 ac_cv_prog_ac_ct_CXX="$ac_prog" 12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12430 break 2 12431 fi 12432done 12433 done 12434IFS=$as_save_IFS 12435 12436fi 12437fi 12438ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12439if test -n "$ac_ct_CXX"; then 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12441$as_echo "$ac_ct_CXX" >&6; } 12442else 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12444$as_echo "no" >&6; } 12445fi 12446 12447 12448 test -n "$ac_ct_CXX" && break 12449done 12450 12451 if test "x$ac_ct_CXX" = x; then 12452 CXX="g++" 12453 else 12454 case $cross_compiling:$ac_tool_warned in 12455yes:) 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12458ac_tool_warned=yes ;; 12459esac 12460 CXX=$ac_ct_CXX 12461 fi 12462fi 12463 12464 fi 12465fi 12466# Provide some information about the compiler. 12467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12468set X $ac_compile 12469ac_compiler=$2 12470for ac_option in --version -v -V -qversion; do 12471 { { ac_try="$ac_compiler $ac_option >&5" 12472case "(($ac_try" in 12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12474 *) ac_try_echo=$ac_try;; 12475esac 12476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12477$as_echo "$ac_try_echo"; } >&5 12478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12479 ac_status=$? 12480 if test -s conftest.err; then 12481 sed '10a\ 12482... rest of stderr output deleted ... 12483 10q' conftest.err >conftest.er1 12484 cat conftest.er1 >&5 12485 fi 12486 rm -f conftest.er1 conftest.err 12487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12488 test $ac_status = 0; } 12489done 12490 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12492$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12493if ${ac_cv_cxx_compiler_gnu+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498 12499int 12500main () 12501{ 12502#ifndef __GNUC__ 12503 choke me 12504#endif 12505 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_cxx_try_compile "$LINENO"; then : 12511 ac_compiler_gnu=yes 12512else 12513 ac_compiler_gnu=no 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12517 12518fi 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12520$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12521if test $ac_compiler_gnu = yes; then 12522 GXX=yes 12523else 12524 GXX= 12525fi 12526ac_test_CXXFLAGS=${CXXFLAGS+set} 12527ac_save_CXXFLAGS=$CXXFLAGS 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12529$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12530if ${ac_cv_prog_cxx_g+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12534 ac_cxx_werror_flag=yes 12535 ac_cv_prog_cxx_g=no 12536 CXXFLAGS="-g" 12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12538/* end confdefs.h. */ 12539 12540int 12541main () 12542{ 12543 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548if ac_fn_cxx_try_compile "$LINENO"; then : 12549 ac_cv_prog_cxx_g=yes 12550else 12551 CXXFLAGS="" 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554 12555int 12556main () 12557{ 12558 12559 ; 12560 return 0; 12561} 12562_ACEOF 12563if ac_fn_cxx_try_compile "$LINENO"; then : 12564 12565else 12566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12567 CXXFLAGS="-g" 12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570 12571int 12572main () 12573{ 12574 12575 ; 12576 return 0; 12577} 12578_ACEOF 12579if ac_fn_cxx_try_compile "$LINENO"; then : 12580 ac_cv_prog_cxx_g=yes 12581fi 12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12583fi 12584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12588fi 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12590$as_echo "$ac_cv_prog_cxx_g" >&6; } 12591if test "$ac_test_CXXFLAGS" = set; then 12592 CXXFLAGS=$ac_save_CXXFLAGS 12593elif test $ac_cv_prog_cxx_g = yes; then 12594 if test "$GXX" = yes; then 12595 CXXFLAGS="-g -O2" 12596 else 12597 CXXFLAGS="-g" 12598 fi 12599else 12600 if test "$GXX" = yes; then 12601 CXXFLAGS="-O2" 12602 else 12603 CXXFLAGS= 12604 fi 12605fi 12606ac_ext=c 12607ac_cpp='$CPP $CPPFLAGS' 12608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12610ac_compiler_gnu=$ac_cv_c_compiler_gnu 12611 12612depcc="$CXX" am_compiler_list= 12613 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12615$as_echo_n "checking dependency style of $depcc... " >&6; } 12616if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618else 12619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12620 # We make a subdir and do the tests there. Otherwise we can end up 12621 # making bogus files that we don't know about and never remove. For 12622 # instance it was reported that on HP-UX the gcc test will end up 12623 # making a dummy file named `D' -- because `-MD' means `put the output 12624 # in D'. 12625 mkdir conftest.dir 12626 # Copy depcomp to subdir because otherwise we won't find it if we're 12627 # using a relative directory. 12628 cp "$am_depcomp" conftest.dir 12629 cd conftest.dir 12630 # We will build objects and dependencies in a subdirectory because 12631 # it helps to detect inapplicable dependency modes. For instance 12632 # both Tru64's cc and ICC support -MD to output dependencies as a 12633 # side effect of compilation, but ICC will put the dependencies in 12634 # the current directory while Tru64 will put them in the object 12635 # directory. 12636 mkdir sub 12637 12638 am_cv_CXX_dependencies_compiler_type=none 12639 if test "$am_compiler_list" = ""; then 12640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12641 fi 12642 am__universal=false 12643 case " $depcc " in #( 12644 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12645 esac 12646 12647 for depmode in $am_compiler_list; do 12648 # Setup a source with many dependencies, because some compilers 12649 # like to wrap large dependency lists on column 80 (with \), and 12650 # we should not choose a depcomp mode which is confused by this. 12651 # 12652 # We need to recreate these files for each test, as the compiler may 12653 # overwrite some of them when testing with obscure command lines. 12654 # This happens at least with the AIX C compiler. 12655 : > sub/conftest.c 12656 for i in 1 2 3 4 5 6; do 12657 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12658 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12659 # Solaris 8's {/usr,}/bin/sh. 12660 touch sub/conftst$i.h 12661 done 12662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12663 12664 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12665 # mode. It turns out that the SunPro C++ compiler does not properly 12666 # handle `-M -o', and we need to detect this. Also, some Intel 12667 # versions had trouble with output in subdirs 12668 am__obj=sub/conftest.${OBJEXT-o} 12669 am__minus_obj="-o $am__obj" 12670 case $depmode in 12671 gcc) 12672 # This depmode causes a compiler race in universal mode. 12673 test "$am__universal" = false || continue 12674 ;; 12675 nosideeffect) 12676 # after this tag, mechanisms are not by side-effect, so they'll 12677 # only be used when explicitly requested 12678 if test "x$enable_dependency_tracking" = xyes; then 12679 continue 12680 else 12681 break 12682 fi 12683 ;; 12684 msvisualcpp | msvcmsys) 12685 # This compiler won't grok `-c -o', but also, the minuso test has 12686 # not run yet. These depmodes are late enough in the game, and 12687 # so weak that their functioning should not be impacted. 12688 am__obj=conftest.${OBJEXT-o} 12689 am__minus_obj= 12690 ;; 12691 none) break ;; 12692 esac 12693 if depmode=$depmode \ 12694 source=sub/conftest.c object=$am__obj \ 12695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12696 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12697 >/dev/null 2>conftest.err && 12698 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12700 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12702 # icc doesn't choke on unknown options, it will just issue warnings 12703 # or remarks (even with -Werror). So we grep stderr for any message 12704 # that says an option was ignored or not supported. 12705 # When given -MP, icc 7.0 and 7.1 complain thusly: 12706 # icc: Command line warning: ignoring option '-M'; no argument required 12707 # The diagnosis changed in icc 8.0: 12708 # icc: Command line remark: option '-MP' not supported 12709 if (grep 'ignoring option' conftest.err || 12710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12711 am_cv_CXX_dependencies_compiler_type=$depmode 12712 break 12713 fi 12714 fi 12715 done 12716 12717 cd .. 12718 rm -rf conftest.dir 12719else 12720 am_cv_CXX_dependencies_compiler_type=none 12721fi 12722 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12725$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12726CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12727 12728 if 12729 test "x$enable_dependency_tracking" != xno \ 12730 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12731 am__fastdepCXX_TRUE= 12732 am__fastdepCXX_FALSE='#' 12733else 12734 am__fastdepCXX_TRUE='#' 12735 am__fastdepCXX_FALSE= 12736fi 12737 12738 12739 12740 12741 12742func_stripname_cnf () 12743{ 12744 case ${2} in 12745 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12746 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12747 esac 12748} # func_stripname_cnf 12749 12750 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12752 (test "X$CXX" != "Xg++"))) ; then 12753 ac_ext=cpp 12754ac_cpp='$CXXCPP $CPPFLAGS' 12755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12759$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12760if test -z "$CXXCPP"; then 12761 if ${ac_cv_prog_CXXCPP+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763else 12764 # Double quotes because CXXCPP needs to be expanded 12765 for CXXCPP in "$CXX -E" "/lib/cpp" 12766 do 12767 ac_preproc_ok=false 12768for ac_cxx_preproc_warn_flag in '' yes 12769do 12770 # Use a header file that comes with gcc, so configuring glibc 12771 # with a fresh cross-compiler works. 12772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12773 # <limits.h> exists even on freestanding compilers. 12774 # On the NeXT, cc -E runs the code through the compiler's parser, 12775 # not just through cpp. "Syntax error" is here to catch this case. 12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12777/* end confdefs.h. */ 12778#ifdef __STDC__ 12779# include <limits.h> 12780#else 12781# include <assert.h> 12782#endif 12783 Syntax error 12784_ACEOF 12785if ac_fn_cxx_try_cpp "$LINENO"; then : 12786 12787else 12788 # Broken: fails on valid input. 12789continue 12790fi 12791rm -f conftest.err conftest.i conftest.$ac_ext 12792 12793 # OK, works on sane cases. Now check whether nonexistent headers 12794 # can be detected and how. 12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12796/* end confdefs.h. */ 12797#include <ac_nonexistent.h> 12798_ACEOF 12799if ac_fn_cxx_try_cpp "$LINENO"; then : 12800 # Broken: success on invalid input. 12801continue 12802else 12803 # Passes both tests. 12804ac_preproc_ok=: 12805break 12806fi 12807rm -f conftest.err conftest.i conftest.$ac_ext 12808 12809done 12810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12811rm -f conftest.i conftest.err conftest.$ac_ext 12812if $ac_preproc_ok; then : 12813 break 12814fi 12815 12816 done 12817 ac_cv_prog_CXXCPP=$CXXCPP 12818 12819fi 12820 CXXCPP=$ac_cv_prog_CXXCPP 12821else 12822 ac_cv_prog_CXXCPP=$CXXCPP 12823fi 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12825$as_echo "$CXXCPP" >&6; } 12826ac_preproc_ok=false 12827for ac_cxx_preproc_warn_flag in '' yes 12828do 12829 # Use a header file that comes with gcc, so configuring glibc 12830 # with a fresh cross-compiler works. 12831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12832 # <limits.h> exists even on freestanding compilers. 12833 # On the NeXT, cc -E runs the code through the compiler's parser, 12834 # not just through cpp. "Syntax error" is here to catch this case. 12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12836/* end confdefs.h. */ 12837#ifdef __STDC__ 12838# include <limits.h> 12839#else 12840# include <assert.h> 12841#endif 12842 Syntax error 12843_ACEOF 12844if ac_fn_cxx_try_cpp "$LINENO"; then : 12845 12846else 12847 # Broken: fails on valid input. 12848continue 12849fi 12850rm -f conftest.err conftest.i conftest.$ac_ext 12851 12852 # OK, works on sane cases. Now check whether nonexistent headers 12853 # can be detected and how. 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856#include <ac_nonexistent.h> 12857_ACEOF 12858if ac_fn_cxx_try_cpp "$LINENO"; then : 12859 # Broken: success on invalid input. 12860continue 12861else 12862 # Passes both tests. 12863ac_preproc_ok=: 12864break 12865fi 12866rm -f conftest.err conftest.i conftest.$ac_ext 12867 12868done 12869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12870rm -f conftest.i conftest.err conftest.$ac_ext 12871if $ac_preproc_ok; then : 12872 12873else 12874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12876as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12877See \`config.log' for more details" "$LINENO" 5; } 12878fi 12879 12880ac_ext=c 12881ac_cpp='$CPP $CPPFLAGS' 12882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12884ac_compiler_gnu=$ac_cv_c_compiler_gnu 12885 12886else 12887 _lt_caught_CXX_error=yes 12888fi 12889 12890ac_ext=cpp 12891ac_cpp='$CXXCPP $CPPFLAGS' 12892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12895 12896archive_cmds_need_lc_CXX=no 12897allow_undefined_flag_CXX= 12898always_export_symbols_CXX=no 12899archive_expsym_cmds_CXX= 12900compiler_needs_object_CXX=no 12901export_dynamic_flag_spec_CXX= 12902hardcode_direct_CXX=no 12903hardcode_direct_absolute_CXX=no 12904hardcode_libdir_flag_spec_CXX= 12905hardcode_libdir_separator_CXX= 12906hardcode_minus_L_CXX=no 12907hardcode_shlibpath_var_CXX=unsupported 12908hardcode_automatic_CXX=no 12909inherit_rpath_CXX=no 12910module_cmds_CXX= 12911module_expsym_cmds_CXX= 12912link_all_deplibs_CXX=unknown 12913old_archive_cmds_CXX=$old_archive_cmds 12914reload_flag_CXX=$reload_flag 12915reload_cmds_CXX=$reload_cmds 12916no_undefined_flag_CXX= 12917whole_archive_flag_spec_CXX= 12918enable_shared_with_static_runtimes_CXX=no 12919 12920# Source file extension for C++ test sources. 12921ac_ext=cpp 12922 12923# Object file extension for compiled C++ test sources. 12924objext=o 12925objext_CXX=$objext 12926 12927# No sense in running all these tests if we already determined that 12928# the CXX compiler isn't working. Some variables (like enable_shared) 12929# are currently assumed to apply to all compilers on this platform, 12930# and will be corrupted by setting them based on a non-working compiler. 12931if test "$_lt_caught_CXX_error" != yes; then 12932 # Code to be used in simple compile tests 12933 lt_simple_compile_test_code="int some_variable = 0;" 12934 12935 # Code to be used in simple link tests 12936 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12937 12938 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12939 12940 12941 12942 12943 12944 12945# If no C compiler was specified, use CC. 12946LTCC=${LTCC-"$CC"} 12947 12948# If no C compiler flags were specified, use CFLAGS. 12949LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12950 12951# Allow CC to be a program name with arguments. 12952compiler=$CC 12953 12954 12955 # save warnings/boilerplate of simple test code 12956 ac_outfile=conftest.$ac_objext 12957echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12958eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12959_lt_compiler_boilerplate=`cat conftest.err` 12960$RM conftest* 12961 12962 ac_outfile=conftest.$ac_objext 12963echo "$lt_simple_link_test_code" >conftest.$ac_ext 12964eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12965_lt_linker_boilerplate=`cat conftest.err` 12966$RM -r conftest* 12967 12968 12969 # Allow CC to be a program name with arguments. 12970 lt_save_CC=$CC 12971 lt_save_CFLAGS=$CFLAGS 12972 lt_save_LD=$LD 12973 lt_save_GCC=$GCC 12974 GCC=$GXX 12975 lt_save_with_gnu_ld=$with_gnu_ld 12976 lt_save_path_LD=$lt_cv_path_LD 12977 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12978 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12979 else 12980 $as_unset lt_cv_prog_gnu_ld 12981 fi 12982 if test -n "${lt_cv_path_LDCXX+set}"; then 12983 lt_cv_path_LD=$lt_cv_path_LDCXX 12984 else 12985 $as_unset lt_cv_path_LD 12986 fi 12987 test -z "${LDCXX+set}" || LD=$LDCXX 12988 CC=${CXX-"c++"} 12989 CFLAGS=$CXXFLAGS 12990 compiler=$CC 12991 compiler_CXX=$CC 12992 for cc_temp in $compiler""; do 12993 case $cc_temp in 12994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12996 \-*) ;; 12997 *) break;; 12998 esac 12999done 13000cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13001 13002 13003 if test -n "$compiler"; then 13004 # We don't want -fno-exception when compiling C++ code, so set the 13005 # no_builtin_flag separately 13006 if test "$GXX" = yes; then 13007 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13008 else 13009 lt_prog_compiler_no_builtin_flag_CXX= 13010 fi 13011 13012 if test "$GXX" = yes; then 13013 # Set up default GNU C++ configuration 13014 13015 13016 13017# Check whether --with-gnu-ld was given. 13018if test "${with_gnu_ld+set}" = set; then : 13019 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13020else 13021 with_gnu_ld=no 13022fi 13023 13024ac_prog=ld 13025if test "$GCC" = yes; then 13026 # Check if gcc -print-prog-name=ld gives a path. 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13028$as_echo_n "checking for ld used by $CC... " >&6; } 13029 case $host in 13030 *-*-mingw*) 13031 # gcc leaves a trailing carriage return which upsets mingw 13032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13033 *) 13034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13035 esac 13036 case $ac_prog in 13037 # Accept absolute paths. 13038 [\\/]* | ?:[\\/]*) 13039 re_direlt='/[^/][^/]*/\.\./' 13040 # Canonicalize the pathname of ld 13041 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13042 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13043 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13044 done 13045 test -z "$LD" && LD="$ac_prog" 13046 ;; 13047 "") 13048 # If it fails, then pretend we aren't using GCC. 13049 ac_prog=ld 13050 ;; 13051 *) 13052 # If it is relative, then search for the first ld in PATH. 13053 with_gnu_ld=unknown 13054 ;; 13055 esac 13056elif test "$with_gnu_ld" = yes; then 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13058$as_echo_n "checking for GNU ld... " >&6; } 13059else 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13061$as_echo_n "checking for non-GNU ld... " >&6; } 13062fi 13063if ${lt_cv_path_LD+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 if test -z "$LD"; then 13067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13068 for ac_dir in $PATH; do 13069 IFS="$lt_save_ifs" 13070 test -z "$ac_dir" && ac_dir=. 13071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13072 lt_cv_path_LD="$ac_dir/$ac_prog" 13073 # Check to see if the program is GNU ld. I'd rather use --version, 13074 # but apparently some variants of GNU ld only accept -v. 13075 # Break only if it was the GNU/non-GNU ld that we prefer. 13076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13077 *GNU* | *'with BFD'*) 13078 test "$with_gnu_ld" != no && break 13079 ;; 13080 *) 13081 test "$with_gnu_ld" != yes && break 13082 ;; 13083 esac 13084 fi 13085 done 13086 IFS="$lt_save_ifs" 13087else 13088 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13089fi 13090fi 13091 13092LD="$lt_cv_path_LD" 13093if test -n "$LD"; then 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13095$as_echo "$LD" >&6; } 13096else 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13098$as_echo "no" >&6; } 13099fi 13100test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13102$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13103if ${lt_cv_prog_gnu_ld+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105else 13106 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13107case `$LD -v 2>&1 </dev/null` in 13108*GNU* | *'with BFD'*) 13109 lt_cv_prog_gnu_ld=yes 13110 ;; 13111*) 13112 lt_cv_prog_gnu_ld=no 13113 ;; 13114esac 13115fi 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13117$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13118with_gnu_ld=$lt_cv_prog_gnu_ld 13119 13120 13121 13122 13123 13124 13125 13126 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13127 # archiving commands below assume that GNU ld is being used. 13128 if test "$with_gnu_ld" = yes; then 13129 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13130 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' 13131 13132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13134 13135 # If archive_cmds runs LD, not CC, wlarc should be empty 13136 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13137 # investigate it a little bit more. (MM) 13138 wlarc='${wl}' 13139 13140 # ancient GNU ld didn't support --whole-archive et. al. 13141 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13142 $GREP 'no-whole-archive' > /dev/null; then 13143 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13144 else 13145 whole_archive_flag_spec_CXX= 13146 fi 13147 else 13148 with_gnu_ld=no 13149 wlarc= 13150 13151 # A generic and very simple default shared library creation 13152 # command for GNU C++ for the case where it uses the native 13153 # linker, instead of GNU ld. If possible, this setting should 13154 # overridden to take advantage of the native linker features on 13155 # the platform it is being used on. 13156 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13157 fi 13158 13159 # Commands to make compiler produce verbose output that lists 13160 # what "hidden" libraries, object files and flags are used when 13161 # linking a shared library. 13162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13163 13164 else 13165 GXX=no 13166 with_gnu_ld=no 13167 wlarc= 13168 fi 13169 13170 # PORTME: fill in a description of your system's C++ link characteristics 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13172$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13173 ld_shlibs_CXX=yes 13174 case $host_os in 13175 aix3*) 13176 # FIXME: insert proper C++ library support 13177 ld_shlibs_CXX=no 13178 ;; 13179 aix[4-9]*) 13180 if test "$host_cpu" = ia64; then 13181 # On IA64, the linker does run time linking by default, so we don't 13182 # have to do anything special. 13183 aix_use_runtimelinking=no 13184 exp_sym_flag='-Bexport' 13185 no_entry_flag="" 13186 else 13187 aix_use_runtimelinking=no 13188 13189 # Test if we are trying to use run time linking or normal 13190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13191 # need to do runtime linking. 13192 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13193 for ld_flag in $LDFLAGS; do 13194 case $ld_flag in 13195 *-brtl*) 13196 aix_use_runtimelinking=yes 13197 break 13198 ;; 13199 esac 13200 done 13201 ;; 13202 esac 13203 13204 exp_sym_flag='-bexport' 13205 no_entry_flag='-bnoentry' 13206 fi 13207 13208 # When large executables or shared objects are built, AIX ld can 13209 # have problems creating the table of contents. If linking a library 13210 # or program results in "error TOC overflow" add -mminimal-toc to 13211 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13212 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13213 13214 archive_cmds_CXX='' 13215 hardcode_direct_CXX=yes 13216 hardcode_direct_absolute_CXX=yes 13217 hardcode_libdir_separator_CXX=':' 13218 link_all_deplibs_CXX=yes 13219 file_list_spec_CXX='${wl}-f,' 13220 13221 if test "$GXX" = yes; then 13222 case $host_os in aix4.[012]|aix4.[012].*) 13223 # We only want to do this on AIX 4.2 and lower, the check 13224 # below for broken collect2 doesn't work under 4.3+ 13225 collect2name=`${CC} -print-prog-name=collect2` 13226 if test -f "$collect2name" && 13227 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13228 then 13229 # We have reworked collect2 13230 : 13231 else 13232 # We have old collect2 13233 hardcode_direct_CXX=unsupported 13234 # It fails to find uninstalled libraries when the uninstalled 13235 # path is not listed in the libpath. Setting hardcode_minus_L 13236 # to unsupported forces relinking 13237 hardcode_minus_L_CXX=yes 13238 hardcode_libdir_flag_spec_CXX='-L$libdir' 13239 hardcode_libdir_separator_CXX= 13240 fi 13241 esac 13242 shared_flag='-shared' 13243 if test "$aix_use_runtimelinking" = yes; then 13244 shared_flag="$shared_flag "'${wl}-G' 13245 fi 13246 else 13247 # not using gcc 13248 if test "$host_cpu" = ia64; then 13249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13250 # chokes on -Wl,-G. The following line is correct: 13251 shared_flag='-G' 13252 else 13253 if test "$aix_use_runtimelinking" = yes; then 13254 shared_flag='${wl}-G' 13255 else 13256 shared_flag='${wl}-bM:SRE' 13257 fi 13258 fi 13259 fi 13260 13261 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13262 # It seems that -bexpall does not export symbols beginning with 13263 # underscore (_), so it is better to generate a list of symbols to 13264 # export. 13265 always_export_symbols_CXX=yes 13266 if test "$aix_use_runtimelinking" = yes; then 13267 # Warning - without using the other runtime loading flags (-brtl), 13268 # -berok will link without error, but may produce a broken library. 13269 allow_undefined_flag_CXX='-berok' 13270 # Determine the default libpath from the value encoded in an empty 13271 # executable. 13272 if test "${lt_cv_aix_libpath+set}" = set; then 13273 aix_libpath=$lt_cv_aix_libpath 13274else 13275 if ${lt_cv_aix_libpath__CXX+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277else 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13279/* end confdefs.h. */ 13280 13281int 13282main () 13283{ 13284 13285 ; 13286 return 0; 13287} 13288_ACEOF 13289if ac_fn_cxx_try_link "$LINENO"; then : 13290 13291 lt_aix_libpath_sed=' 13292 /Import File Strings/,/^$/ { 13293 /^0/ { 13294 s/^0 *\([^ ]*\) *$/\1/ 13295 p 13296 } 13297 }' 13298 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13299 # Check for a 64-bit object if we didn't find anything. 13300 if test -z "$lt_cv_aix_libpath__CXX"; then 13301 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13302 fi 13303fi 13304rm -f core conftest.err conftest.$ac_objext \ 13305 conftest$ac_exeext conftest.$ac_ext 13306 if test -z "$lt_cv_aix_libpath__CXX"; then 13307 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13308 fi 13309 13310fi 13311 13312 aix_libpath=$lt_cv_aix_libpath__CXX 13313fi 13314 13315 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13316 13317 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13318 else 13319 if test "$host_cpu" = ia64; then 13320 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13321 allow_undefined_flag_CXX="-z nodefs" 13322 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" 13323 else 13324 # Determine the default libpath from the value encoded in an 13325 # empty executable. 13326 if test "${lt_cv_aix_libpath+set}" = set; then 13327 aix_libpath=$lt_cv_aix_libpath 13328else 13329 if ${lt_cv_aix_libpath__CXX+:} false; then : 13330 $as_echo_n "(cached) " >&6 13331else 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13333/* end confdefs.h. */ 13334 13335int 13336main () 13337{ 13338 13339 ; 13340 return 0; 13341} 13342_ACEOF 13343if ac_fn_cxx_try_link "$LINENO"; then : 13344 13345 lt_aix_libpath_sed=' 13346 /Import File Strings/,/^$/ { 13347 /^0/ { 13348 s/^0 *\([^ ]*\) *$/\1/ 13349 p 13350 } 13351 }' 13352 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13353 # Check for a 64-bit object if we didn't find anything. 13354 if test -z "$lt_cv_aix_libpath__CXX"; then 13355 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13356 fi 13357fi 13358rm -f core conftest.err conftest.$ac_objext \ 13359 conftest$ac_exeext conftest.$ac_ext 13360 if test -z "$lt_cv_aix_libpath__CXX"; then 13361 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13362 fi 13363 13364fi 13365 13366 aix_libpath=$lt_cv_aix_libpath__CXX 13367fi 13368 13369 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13370 # Warning - without using the other run time loading flags, 13371 # -berok will link without error, but may produce a broken library. 13372 no_undefined_flag_CXX=' ${wl}-bernotok' 13373 allow_undefined_flag_CXX=' ${wl}-berok' 13374 if test "$with_gnu_ld" = yes; then 13375 # We only use this code for GNU lds that support --whole-archive. 13376 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13377 else 13378 # Exported symbols can be pulled into shared objects from archives 13379 whole_archive_flag_spec_CXX='$convenience' 13380 fi 13381 archive_cmds_need_lc_CXX=yes 13382 # This is similar to how AIX traditionally builds its shared 13383 # libraries. 13384 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' 13385 fi 13386 fi 13387 ;; 13388 13389 beos*) 13390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13391 allow_undefined_flag_CXX=unsupported 13392 # Joseph Beckenbach <[email protected]> says some releases of gcc 13393 # support --undefined. This deserves some investigation. FIXME 13394 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13395 else 13396 ld_shlibs_CXX=no 13397 fi 13398 ;; 13399 13400 chorus*) 13401 case $cc_basename in 13402 *) 13403 # FIXME: insert proper C++ library support 13404 ld_shlibs_CXX=no 13405 ;; 13406 esac 13407 ;; 13408 13409 cygwin* | mingw* | pw32* | cegcc*) 13410 case $GXX,$cc_basename in 13411 ,cl* | no,cl*) 13412 # Native MSVC 13413 # hardcode_libdir_flag_spec is actually meaningless, as there is 13414 # no search path for DLLs. 13415 hardcode_libdir_flag_spec_CXX=' ' 13416 allow_undefined_flag_CXX=unsupported 13417 always_export_symbols_CXX=yes 13418 file_list_spec_CXX='@' 13419 # Tell ltmain to make .lib files, not .a files. 13420 libext=lib 13421 # Tell ltmain to make .dll files, not .so files. 13422 shrext_cmds=".dll" 13423 # FIXME: Setting linknames here is a bad hack. 13424 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13425 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13426 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13427 else 13428 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13429 fi~ 13430 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13431 linknames=' 13432 # The linker will not automatically build a static lib if we build a DLL. 13433 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13434 enable_shared_with_static_runtimes_CXX=yes 13435 # Don't use ranlib 13436 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13437 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13438 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13439 case $lt_outputfile in 13440 *.exe|*.EXE) ;; 13441 *) 13442 lt_outputfile="$lt_outputfile.exe" 13443 lt_tool_outputfile="$lt_tool_outputfile.exe" 13444 ;; 13445 esac~ 13446 func_to_tool_file "$lt_outputfile"~ 13447 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13449 $RM "$lt_outputfile.manifest"; 13450 fi' 13451 ;; 13452 *) 13453 # g++ 13454 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13455 # as there is no search path for DLLs. 13456 hardcode_libdir_flag_spec_CXX='-L$libdir' 13457 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13458 allow_undefined_flag_CXX=unsupported 13459 always_export_symbols_CXX=no 13460 enable_shared_with_static_runtimes_CXX=yes 13461 13462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13463 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' 13464 # If the export-symbols file already is a .def file (1st line 13465 # is EXPORTS), use it as is; otherwise, prepend... 13466 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13467 cp $export_symbols $output_objdir/$soname.def; 13468 else 13469 echo EXPORTS > $output_objdir/$soname.def; 13470 cat $export_symbols >> $output_objdir/$soname.def; 13471 fi~ 13472 $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' 13473 else 13474 ld_shlibs_CXX=no 13475 fi 13476 ;; 13477 esac 13478 ;; 13479 darwin* | rhapsody*) 13480 13481 13482 archive_cmds_need_lc_CXX=no 13483 hardcode_direct_CXX=no 13484 hardcode_automatic_CXX=yes 13485 hardcode_shlibpath_var_CXX=unsupported 13486 if test "$lt_cv_ld_force_load" = "yes"; then 13487 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\"`' 13488 13489 else 13490 whole_archive_flag_spec_CXX='' 13491 fi 13492 link_all_deplibs_CXX=yes 13493 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13494 case $cc_basename in 13495 ifort*) _lt_dar_can_shared=yes ;; 13496 *) _lt_dar_can_shared=$GCC ;; 13497 esac 13498 if test "$_lt_dar_can_shared" = "yes"; then 13499 output_verbose_link_cmd=func_echo_all 13500 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}" 13501 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13502 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}" 13503 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}" 13504 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13505 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}" 13506 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}" 13507 fi 13508 13509 else 13510 ld_shlibs_CXX=no 13511 fi 13512 13513 ;; 13514 13515 dgux*) 13516 case $cc_basename in 13517 ec++*) 13518 # FIXME: insert proper C++ library support 13519 ld_shlibs_CXX=no 13520 ;; 13521 ghcx*) 13522 # Green Hills C++ Compiler 13523 # FIXME: insert proper C++ library support 13524 ld_shlibs_CXX=no 13525 ;; 13526 *) 13527 # FIXME: insert proper C++ library support 13528 ld_shlibs_CXX=no 13529 ;; 13530 esac 13531 ;; 13532 13533 freebsd2.*) 13534 # C++ shared libraries reported to be fairly broken before 13535 # switch to ELF 13536 ld_shlibs_CXX=no 13537 ;; 13538 13539 freebsd-elf*) 13540 archive_cmds_need_lc_CXX=no 13541 ;; 13542 13543 freebsd* | dragonfly*) 13544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13545 # conventions 13546 ld_shlibs_CXX=yes 13547 ;; 13548 13549 gnu*) 13550 ;; 13551 13552 haiku*) 13553 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13554 link_all_deplibs_CXX=yes 13555 ;; 13556 13557 hpux9*) 13558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13559 hardcode_libdir_separator_CXX=: 13560 export_dynamic_flag_spec_CXX='${wl}-E' 13561 hardcode_direct_CXX=yes 13562 hardcode_minus_L_CXX=yes # Not in the search PATH, 13563 # but as the default 13564 # location of the library. 13565 13566 case $cc_basename in 13567 CC*) 13568 # FIXME: insert proper C++ library support 13569 ld_shlibs_CXX=no 13570 ;; 13571 aCC*) 13572 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13573 # Commands to make compiler produce verbose output that lists 13574 # what "hidden" libraries, object files and flags are used when 13575 # linking a shared library. 13576 # 13577 # There doesn't appear to be a way to prevent this compiler from 13578 # explicitly linking system object files so we need to strip them 13579 # from the output so that they don't get included in the library 13580 # dependencies. 13581 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"' 13582 ;; 13583 *) 13584 if test "$GXX" = yes; then 13585 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13586 else 13587 # FIXME: insert proper C++ library support 13588 ld_shlibs_CXX=no 13589 fi 13590 ;; 13591 esac 13592 ;; 13593 13594 hpux10*|hpux11*) 13595 if test $with_gnu_ld = no; then 13596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13597 hardcode_libdir_separator_CXX=: 13598 13599 case $host_cpu in 13600 hppa*64*|ia64*) 13601 ;; 13602 *) 13603 export_dynamic_flag_spec_CXX='${wl}-E' 13604 ;; 13605 esac 13606 fi 13607 case $host_cpu in 13608 hppa*64*|ia64*) 13609 hardcode_direct_CXX=no 13610 hardcode_shlibpath_var_CXX=no 13611 ;; 13612 *) 13613 hardcode_direct_CXX=yes 13614 hardcode_direct_absolute_CXX=yes 13615 hardcode_minus_L_CXX=yes # Not in the search PATH, 13616 # but as the default 13617 # location of the library. 13618 ;; 13619 esac 13620 13621 case $cc_basename in 13622 CC*) 13623 # FIXME: insert proper C++ library support 13624 ld_shlibs_CXX=no 13625 ;; 13626 aCC*) 13627 case $host_cpu in 13628 hppa*64*) 13629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13630 ;; 13631 ia64*) 13632 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13633 ;; 13634 *) 13635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13636 ;; 13637 esac 13638 # Commands to make compiler produce verbose output that lists 13639 # what "hidden" libraries, object files and flags are used when 13640 # linking a shared library. 13641 # 13642 # There doesn't appear to be a way to prevent this compiler from 13643 # explicitly linking system object files so we need to strip them 13644 # from the output so that they don't get included in the library 13645 # dependencies. 13646 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"' 13647 ;; 13648 *) 13649 if test "$GXX" = yes; then 13650 if test $with_gnu_ld = no; then 13651 case $host_cpu in 13652 hppa*64*) 13653 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13654 ;; 13655 ia64*) 13656 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13657 ;; 13658 *) 13659 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' 13660 ;; 13661 esac 13662 fi 13663 else 13664 # FIXME: insert proper C++ library support 13665 ld_shlibs_CXX=no 13666 fi 13667 ;; 13668 esac 13669 ;; 13670 13671 interix[3-9]*) 13672 hardcode_direct_CXX=no 13673 hardcode_shlibpath_var_CXX=no 13674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13675 export_dynamic_flag_spec_CXX='${wl}-E' 13676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13677 # Instead, shared libraries are loaded at an image base (0x10000000 by 13678 # default) and relocated if they conflict, which is a slow very memory 13679 # consuming and fragmenting process. To avoid this, we pick a random, 13680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13681 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13682 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' 13683 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' 13684 ;; 13685 irix5* | irix6*) 13686 case $cc_basename in 13687 CC*) 13688 # SGI C++ 13689 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' 13690 13691 # Archives containing C++ object files must be created using 13692 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13693 # necessary to make sure instantiated templates are included 13694 # in the archive. 13695 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13696 ;; 13697 *) 13698 if test "$GXX" = yes; then 13699 if test "$with_gnu_ld" = no; then 13700 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' 13701 else 13702 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' 13703 fi 13704 fi 13705 link_all_deplibs_CXX=yes 13706 ;; 13707 esac 13708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13709 hardcode_libdir_separator_CXX=: 13710 inherit_rpath_CXX=yes 13711 ;; 13712 13713 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13714 case $cc_basename in 13715 KCC*) 13716 # Kuck and Associates, Inc. (KAI) C++ Compiler 13717 13718 # KCC will only create a shared library if the output file 13719 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13720 # to its proper name (with version) after linking. 13721 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' 13722 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' 13723 # Commands to make compiler produce verbose output that lists 13724 # what "hidden" libraries, object files and flags are used when 13725 # linking a shared library. 13726 # 13727 # There doesn't appear to be a way to prevent this compiler from 13728 # explicitly linking system object files so we need to strip them 13729 # from the output so that they don't get included in the library 13730 # dependencies. 13731 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"' 13732 13733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13735 13736 # Archives containing C++ object files must be created using 13737 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13739 ;; 13740 icpc* | ecpc* ) 13741 # Intel C++ 13742 with_gnu_ld=yes 13743 # version 8.0 and above of icpc choke on multiply defined symbols 13744 # if we add $predep_objects and $postdep_objects, however 7.1 and 13745 # earlier do not add the objects themselves. 13746 case `$CC -V 2>&1` in 13747 *"Version 7."*) 13748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13749 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' 13750 ;; 13751 *) # Version 8.0 or newer 13752 tmp_idyn= 13753 case $host_cpu in 13754 ia64*) tmp_idyn=' -i_dynamic';; 13755 esac 13756 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13757 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' 13758 ;; 13759 esac 13760 archive_cmds_need_lc_CXX=no 13761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13763 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13764 ;; 13765 pgCC* | pgcpp*) 13766 # Portland Group C++ compiler 13767 case `$CC -V` in 13768 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13769 prelink_cmds_CXX='tpldir=Template.dir~ 13770 rm -rf $tpldir~ 13771 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13772 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13773 old_archive_cmds_CXX='tpldir=Template.dir~ 13774 rm -rf $tpldir~ 13775 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13776 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13777 $RANLIB $oldlib' 13778 archive_cmds_CXX='tpldir=Template.dir~ 13779 rm -rf $tpldir~ 13780 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13781 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13782 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13783 rm -rf $tpldir~ 13784 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13785 $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' 13786 ;; 13787 *) # Version 6 and above use weak symbols 13788 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13789 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' 13790 ;; 13791 esac 13792 13793 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13795 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' 13796 ;; 13797 cxx*) 13798 # Compaq C++ 13799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13800 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' 13801 13802 runpath_var=LD_RUN_PATH 13803 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13804 hardcode_libdir_separator_CXX=: 13805 13806 # Commands to make compiler produce verbose output that lists 13807 # what "hidden" libraries, object files and flags are used when 13808 # linking a shared library. 13809 # 13810 # There doesn't appear to be a way to prevent this compiler from 13811 # explicitly linking system object files so we need to strip them 13812 # from the output so that they don't get included in the library 13813 # dependencies. 13814 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' 13815 ;; 13816 xl* | mpixl* | bgxl*) 13817 # IBM XL 8.0 on PPC, with GNU ld 13818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13820 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13821 if test "x$supports_anon_versioning" = xyes; then 13822 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13824 echo "local: *; };" >> $output_objdir/$libname.ver~ 13825 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13826 fi 13827 ;; 13828 *) 13829 case `$CC -V 2>&1 | sed 5q` in 13830 *Sun\ C*) 13831 # Sun C++ 5.9 13832 no_undefined_flag_CXX=' -zdefs' 13833 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13834 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' 13835 hardcode_libdir_flag_spec_CXX='-R$libdir' 13836 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' 13837 compiler_needs_object_CXX=yes 13838 13839 # Not sure whether something based on 13840 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13841 # would be better. 13842 output_verbose_link_cmd='func_echo_all' 13843 13844 # Archives containing C++ object files must be created using 13845 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13846 # necessary to make sure instantiated templates are included 13847 # in the archive. 13848 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13849 ;; 13850 esac 13851 ;; 13852 esac 13853 ;; 13854 13855 lynxos*) 13856 # FIXME: insert proper C++ library support 13857 ld_shlibs_CXX=no 13858 ;; 13859 13860 m88k*) 13861 # FIXME: insert proper C++ library support 13862 ld_shlibs_CXX=no 13863 ;; 13864 13865 mvs*) 13866 case $cc_basename in 13867 cxx*) 13868 # FIXME: insert proper C++ library support 13869 ld_shlibs_CXX=no 13870 ;; 13871 *) 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 ;; 13875 esac 13876 ;; 13877 13878 netbsd*) 13879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13880 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13881 wlarc= 13882 hardcode_libdir_flag_spec_CXX='-R$libdir' 13883 hardcode_direct_CXX=yes 13884 hardcode_shlibpath_var_CXX=no 13885 fi 13886 # Workaround some broken pre-1.5 toolchains 13887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13888 ;; 13889 13890 *nto* | *qnx*) 13891 ld_shlibs_CXX=yes 13892 ;; 13893 13894 openbsd2*) 13895 # C++ shared libraries are fairly broken 13896 ld_shlibs_CXX=no 13897 ;; 13898 13899 openbsd*) 13900 if test -f /usr/libexec/ld.so; then 13901 hardcode_direct_CXX=yes 13902 hardcode_shlibpath_var_CXX=no 13903 hardcode_direct_absolute_CXX=yes 13904 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13907 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13908 export_dynamic_flag_spec_CXX='${wl}-E' 13909 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13910 fi 13911 output_verbose_link_cmd=func_echo_all 13912 else 13913 ld_shlibs_CXX=no 13914 fi 13915 ;; 13916 13917 osf3* | osf4* | osf5*) 13918 case $cc_basename in 13919 KCC*) 13920 # Kuck and Associates, Inc. (KAI) C++ Compiler 13921 13922 # KCC will only create a shared library if the output file 13923 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13924 # to its proper name (with version) after linking. 13925 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' 13926 13927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13928 hardcode_libdir_separator_CXX=: 13929 13930 # Archives containing C++ object files must be created using 13931 # the KAI C++ compiler. 13932 case $host in 13933 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13934 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13935 esac 13936 ;; 13937 RCC*) 13938 # Rational C++ 2.4.1 13939 # FIXME: insert proper C++ library support 13940 ld_shlibs_CXX=no 13941 ;; 13942 cxx*) 13943 case $host in 13944 osf3*) 13945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13946 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' 13947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13948 ;; 13949 *) 13950 allow_undefined_flag_CXX=' -expect_unresolved \*' 13951 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' 13952 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13953 echo "-hidden">> $lib.exp~ 13954 $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~ 13955 $RM $lib.exp' 13956 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13957 ;; 13958 esac 13959 13960 hardcode_libdir_separator_CXX=: 13961 13962 # Commands to make compiler produce verbose output that lists 13963 # what "hidden" libraries, object files and flags are used when 13964 # linking a shared library. 13965 # 13966 # There doesn't appear to be a way to prevent this compiler from 13967 # explicitly linking system object files so we need to strip them 13968 # from the output so that they don't get included in the library 13969 # dependencies. 13970 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"' 13971 ;; 13972 *) 13973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13975 case $host in 13976 osf3*) 13977 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' 13978 ;; 13979 *) 13980 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' 13981 ;; 13982 esac 13983 13984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13985 hardcode_libdir_separator_CXX=: 13986 13987 # Commands to make compiler produce verbose output that lists 13988 # what "hidden" libraries, object files and flags are used when 13989 # linking a shared library. 13990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13991 13992 else 13993 # FIXME: insert proper C++ library support 13994 ld_shlibs_CXX=no 13995 fi 13996 ;; 13997 esac 13998 ;; 13999 14000 psos*) 14001 # FIXME: insert proper C++ library support 14002 ld_shlibs_CXX=no 14003 ;; 14004 14005 sunos4*) 14006 case $cc_basename in 14007 CC*) 14008 # Sun C++ 4.x 14009 # FIXME: insert proper C++ library support 14010 ld_shlibs_CXX=no 14011 ;; 14012 lcc*) 14013 # Lucid 14014 # FIXME: insert proper C++ library support 14015 ld_shlibs_CXX=no 14016 ;; 14017 *) 14018 # FIXME: insert proper C++ library support 14019 ld_shlibs_CXX=no 14020 ;; 14021 esac 14022 ;; 14023 14024 solaris*) 14025 case $cc_basename in 14026 CC* | sunCC*) 14027 # Sun C++ 4.2, 5.x and Centerline C++ 14028 archive_cmds_need_lc_CXX=yes 14029 no_undefined_flag_CXX=' -zdefs' 14030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14031 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14032 $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' 14033 14034 hardcode_libdir_flag_spec_CXX='-R$libdir' 14035 hardcode_shlibpath_var_CXX=no 14036 case $host_os in 14037 solaris2.[0-5] | solaris2.[0-5].*) ;; 14038 *) 14039 # The compiler driver will combine and reorder linker options, 14040 # but understands `-z linker_flag'. 14041 # Supported since Solaris 2.6 (maybe 2.5.1?) 14042 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14043 ;; 14044 esac 14045 link_all_deplibs_CXX=yes 14046 14047 output_verbose_link_cmd='func_echo_all' 14048 14049 # Archives containing C++ object files must be created using 14050 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14051 # necessary to make sure instantiated templates are included 14052 # in the archive. 14053 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14054 ;; 14055 gcx*) 14056 # Green Hills C++ Compiler 14057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14058 14059 # The C++ compiler must be used to create the archive. 14060 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14061 ;; 14062 *) 14063 # GNU C++ compiler with Solaris linker 14064 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14065 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14066 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14067 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14068 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14069 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14070 14071 # Commands to make compiler produce verbose output that lists 14072 # what "hidden" libraries, object files and flags are used when 14073 # linking a shared library. 14074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14075 else 14076 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14077 # platform. 14078 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14079 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14080 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14081 14082 # Commands to make compiler produce verbose output that lists 14083 # what "hidden" libraries, object files and flags are used when 14084 # linking a shared library. 14085 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14086 fi 14087 14088 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14089 case $host_os in 14090 solaris2.[0-5] | solaris2.[0-5].*) ;; 14091 *) 14092 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14093 ;; 14094 esac 14095 fi 14096 ;; 14097 esac 14098 ;; 14099 14100 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14101 no_undefined_flag_CXX='${wl}-z,text' 14102 archive_cmds_need_lc_CXX=no 14103 hardcode_shlibpath_var_CXX=no 14104 runpath_var='LD_RUN_PATH' 14105 14106 case $cc_basename in 14107 CC*) 14108 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14109 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14110 ;; 14111 *) 14112 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14113 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14114 ;; 14115 esac 14116 ;; 14117 14118 sysv5* | sco3.2v5* | sco5v6*) 14119 # Note: We can NOT use -z defs as we might desire, because we do not 14120 # link with -lc, and that would cause any symbols used from libc to 14121 # always be unresolved, which means just about no library would 14122 # ever link correctly. If we're not using GNU ld we use -z text 14123 # though, which does catch some bad symbols but isn't as heavy-handed 14124 # as -z defs. 14125 no_undefined_flag_CXX='${wl}-z,text' 14126 allow_undefined_flag_CXX='${wl}-z,nodefs' 14127 archive_cmds_need_lc_CXX=no 14128 hardcode_shlibpath_var_CXX=no 14129 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14130 hardcode_libdir_separator_CXX=':' 14131 link_all_deplibs_CXX=yes 14132 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14133 runpath_var='LD_RUN_PATH' 14134 14135 case $cc_basename in 14136 CC*) 14137 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14139 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14140 '"$old_archive_cmds_CXX" 14141 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14142 '"$reload_cmds_CXX" 14143 ;; 14144 *) 14145 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14146 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14147 ;; 14148 esac 14149 ;; 14150 14151 tandem*) 14152 case $cc_basename in 14153 NCC*) 14154 # NonStop-UX NCC 3.20 14155 # FIXME: insert proper C++ library support 14156 ld_shlibs_CXX=no 14157 ;; 14158 *) 14159 # FIXME: insert proper C++ library support 14160 ld_shlibs_CXX=no 14161 ;; 14162 esac 14163 ;; 14164 14165 vxworks*) 14166 # FIXME: insert proper C++ library support 14167 ld_shlibs_CXX=no 14168 ;; 14169 14170 *) 14171 # FIXME: insert proper C++ library support 14172 ld_shlibs_CXX=no 14173 ;; 14174 esac 14175 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14177$as_echo "$ld_shlibs_CXX" >&6; } 14178 test "$ld_shlibs_CXX" = no && can_build_shared=no 14179 14180 GCC_CXX="$GXX" 14181 LD_CXX="$LD" 14182 14183 ## CAVEAT EMPTOR: 14184 ## There is no encapsulation within the following macros, do not change 14185 ## the running order or otherwise move them around unless you know exactly 14186 ## what you are doing... 14187 # Dependencies to place before and after the object being linked: 14188predep_objects_CXX= 14189postdep_objects_CXX= 14190predeps_CXX= 14191postdeps_CXX= 14192compiler_lib_search_path_CXX= 14193 14194cat > conftest.$ac_ext <<_LT_EOF 14195class Foo 14196{ 14197public: 14198 Foo (void) { a = 0; } 14199private: 14200 int a; 14201}; 14202_LT_EOF 14203 14204 14205_lt_libdeps_save_CFLAGS=$CFLAGS 14206case "$CC $CFLAGS " in #( 14207*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14208*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14209*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14210esac 14211 14212if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14213 (eval $ac_compile) 2>&5 14214 ac_status=$? 14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14216 test $ac_status = 0; }; then 14217 # Parse the compiler output and extract the necessary 14218 # objects, libraries and library flags. 14219 14220 # Sentinel used to keep track of whether or not we are before 14221 # the conftest object file. 14222 pre_test_object_deps_done=no 14223 14224 for p in `eval "$output_verbose_link_cmd"`; do 14225 case ${prev}${p} in 14226 14227 -L* | -R* | -l*) 14228 # Some compilers place space between "-{L,R}" and the path. 14229 # Remove the space. 14230 if test $p = "-L" || 14231 test $p = "-R"; then 14232 prev=$p 14233 continue 14234 fi 14235 14236 # Expand the sysroot to ease extracting the directories later. 14237 if test -z "$prev"; then 14238 case $p in 14239 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14240 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14241 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14242 esac 14243 fi 14244 case $p in 14245 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14246 esac 14247 if test "$pre_test_object_deps_done" = no; then 14248 case ${prev} in 14249 -L | -R) 14250 # Internal compiler library paths should come after those 14251 # provided the user. The postdeps already come after the 14252 # user supplied libs so there is no need to process them. 14253 if test -z "$compiler_lib_search_path_CXX"; then 14254 compiler_lib_search_path_CXX="${prev}${p}" 14255 else 14256 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14257 fi 14258 ;; 14259 # The "-l" case would never come before the object being 14260 # linked, so don't bother handling this case. 14261 esac 14262 else 14263 if test -z "$postdeps_CXX"; then 14264 postdeps_CXX="${prev}${p}" 14265 else 14266 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14267 fi 14268 fi 14269 prev= 14270 ;; 14271 14272 *.lto.$objext) ;; # Ignore GCC LTO objects 14273 *.$objext) 14274 # This assumes that the test object file only shows up 14275 # once in the compiler output. 14276 if test "$p" = "conftest.$objext"; then 14277 pre_test_object_deps_done=yes 14278 continue 14279 fi 14280 14281 if test "$pre_test_object_deps_done" = no; then 14282 if test -z "$predep_objects_CXX"; then 14283 predep_objects_CXX="$p" 14284 else 14285 predep_objects_CXX="$predep_objects_CXX $p" 14286 fi 14287 else 14288 if test -z "$postdep_objects_CXX"; then 14289 postdep_objects_CXX="$p" 14290 else 14291 postdep_objects_CXX="$postdep_objects_CXX $p" 14292 fi 14293 fi 14294 ;; 14295 14296 *) ;; # Ignore the rest. 14297 14298 esac 14299 done 14300 14301 # Clean up. 14302 rm -f a.out a.exe 14303else 14304 echo "libtool.m4: error: problem compiling CXX test program" 14305fi 14306 14307$RM -f confest.$objext 14308CFLAGS=$_lt_libdeps_save_CFLAGS 14309 14310# PORTME: override above test on systems where it is broken 14311case $host_os in 14312interix[3-9]*) 14313 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14314 # hack all around it, let's just trust "g++" to DTRT. 14315 predep_objects_CXX= 14316 postdep_objects_CXX= 14317 postdeps_CXX= 14318 ;; 14319 14320linux*) 14321 case `$CC -V 2>&1 | sed 5q` in 14322 *Sun\ C*) 14323 # Sun C++ 5.9 14324 14325 # The more standards-conforming stlport4 library is 14326 # incompatible with the Cstd library. Avoid specifying 14327 # it if it's in CXXFLAGS. Ignore libCrun as 14328 # -library=stlport4 depends on it. 14329 case " $CXX $CXXFLAGS " in 14330 *" -library=stlport4 "*) 14331 solaris_use_stlport4=yes 14332 ;; 14333 esac 14334 14335 if test "$solaris_use_stlport4" != yes; then 14336 postdeps_CXX='-library=Cstd -library=Crun' 14337 fi 14338 ;; 14339 esac 14340 ;; 14341 14342solaris*) 14343 case $cc_basename in 14344 CC* | sunCC*) 14345 # The more standards-conforming stlport4 library is 14346 # incompatible with the Cstd library. Avoid specifying 14347 # it if it's in CXXFLAGS. Ignore libCrun as 14348 # -library=stlport4 depends on it. 14349 case " $CXX $CXXFLAGS " in 14350 *" -library=stlport4 "*) 14351 solaris_use_stlport4=yes 14352 ;; 14353 esac 14354 14355 # Adding this requires a known-good setup of shared libraries for 14356 # Sun compiler versions before 5.6, else PIC objects from an old 14357 # archive will be linked into the output, leading to subtle bugs. 14358 if test "$solaris_use_stlport4" != yes; then 14359 postdeps_CXX='-library=Cstd -library=Crun' 14360 fi 14361 ;; 14362 esac 14363 ;; 14364esac 14365 14366 14367case " $postdeps_CXX " in 14368*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14369esac 14370 compiler_lib_search_dirs_CXX= 14371if test -n "${compiler_lib_search_path_CXX}"; then 14372 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14373fi 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 lt_prog_compiler_wl_CXX= 14406lt_prog_compiler_pic_CXX= 14407lt_prog_compiler_static_CXX= 14408 14409 14410 # C++ specific cases for pic, static, wl, etc. 14411 if test "$GXX" = yes; then 14412 lt_prog_compiler_wl_CXX='-Wl,' 14413 lt_prog_compiler_static_CXX='-static' 14414 14415 case $host_os in 14416 aix*) 14417 # All AIX code is PIC. 14418 if test "$host_cpu" = ia64; then 14419 # AIX 5 now supports IA64 processor 14420 lt_prog_compiler_static_CXX='-Bstatic' 14421 fi 14422 ;; 14423 14424 amigaos*) 14425 case $host_cpu in 14426 powerpc) 14427 # see comment about AmigaOS4 .so support 14428 lt_prog_compiler_pic_CXX='-fPIC' 14429 ;; 14430 m68k) 14431 # FIXME: we need at least 68020 code to build shared libraries, but 14432 # adding the `-m68020' flag to GCC prevents building anything better, 14433 # like `-m68040'. 14434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14435 ;; 14436 esac 14437 ;; 14438 14439 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14440 # PIC is the default for these OSes. 14441 ;; 14442 mingw* | cygwin* | os2* | pw32* | cegcc*) 14443 # This hack is so that the source file can tell whether it is being 14444 # built for inclusion in a dll (and should export symbols for example). 14445 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14446 # (--disable-auto-import) libraries 14447 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14448 ;; 14449 darwin* | rhapsody*) 14450 # PIC is the default on this platform 14451 # Common symbols not allowed in MH_DYLIB files 14452 lt_prog_compiler_pic_CXX='-fno-common' 14453 ;; 14454 *djgpp*) 14455 # DJGPP does not support shared libraries at all 14456 lt_prog_compiler_pic_CXX= 14457 ;; 14458 haiku*) 14459 # PIC is the default for Haiku. 14460 # The "-static" flag exists, but is broken. 14461 lt_prog_compiler_static_CXX= 14462 ;; 14463 interix[3-9]*) 14464 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14465 # Instead, we relocate shared libraries at runtime. 14466 ;; 14467 sysv4*MP*) 14468 if test -d /usr/nec; then 14469 lt_prog_compiler_pic_CXX=-Kconform_pic 14470 fi 14471 ;; 14472 hpux*) 14473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14475 # sets the default TLS model and affects inlining. 14476 case $host_cpu in 14477 hppa*64*) 14478 ;; 14479 *) 14480 lt_prog_compiler_pic_CXX='-fPIC' 14481 ;; 14482 esac 14483 ;; 14484 *qnx* | *nto*) 14485 # QNX uses GNU C++, but need to define -shared option too, otherwise 14486 # it will coredump. 14487 lt_prog_compiler_pic_CXX='-fPIC -shared' 14488 ;; 14489 *) 14490 lt_prog_compiler_pic_CXX='-fPIC' 14491 ;; 14492 esac 14493 else 14494 case $host_os in 14495 aix[4-9]*) 14496 # All AIX code is PIC. 14497 if test "$host_cpu" = ia64; then 14498 # AIX 5 now supports IA64 processor 14499 lt_prog_compiler_static_CXX='-Bstatic' 14500 else 14501 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14502 fi 14503 ;; 14504 chorus*) 14505 case $cc_basename in 14506 cxch68*) 14507 # Green Hills C++ Compiler 14508 # _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" 14509 ;; 14510 esac 14511 ;; 14512 mingw* | cygwin* | os2* | pw32* | cegcc*) 14513 # This hack is so that the source file can tell whether it is being 14514 # built for inclusion in a dll (and should export symbols for example). 14515 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14516 ;; 14517 dgux*) 14518 case $cc_basename in 14519 ec++*) 14520 lt_prog_compiler_pic_CXX='-KPIC' 14521 ;; 14522 ghcx*) 14523 # Green Hills C++ Compiler 14524 lt_prog_compiler_pic_CXX='-pic' 14525 ;; 14526 *) 14527 ;; 14528 esac 14529 ;; 14530 freebsd* | dragonfly*) 14531 # FreeBSD uses GNU C++ 14532 ;; 14533 hpux9* | hpux10* | hpux11*) 14534 case $cc_basename in 14535 CC*) 14536 lt_prog_compiler_wl_CXX='-Wl,' 14537 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14538 if test "$host_cpu" != ia64; then 14539 lt_prog_compiler_pic_CXX='+Z' 14540 fi 14541 ;; 14542 aCC*) 14543 lt_prog_compiler_wl_CXX='-Wl,' 14544 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14545 case $host_cpu in 14546 hppa*64*|ia64*) 14547 # +Z the default 14548 ;; 14549 *) 14550 lt_prog_compiler_pic_CXX='+Z' 14551 ;; 14552 esac 14553 ;; 14554 *) 14555 ;; 14556 esac 14557 ;; 14558 interix*) 14559 # This is c89, which is MS Visual C++ (no shared libs) 14560 # Anyone wants to do a port? 14561 ;; 14562 irix5* | irix6* | nonstopux*) 14563 case $cc_basename in 14564 CC*) 14565 lt_prog_compiler_wl_CXX='-Wl,' 14566 lt_prog_compiler_static_CXX='-non_shared' 14567 # CC pic flag -KPIC is the default. 14568 ;; 14569 *) 14570 ;; 14571 esac 14572 ;; 14573 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14574 case $cc_basename in 14575 KCC*) 14576 # KAI C++ Compiler 14577 lt_prog_compiler_wl_CXX='--backend -Wl,' 14578 lt_prog_compiler_pic_CXX='-fPIC' 14579 ;; 14580 ecpc* ) 14581 # old Intel C++ for x86_64 which still supported -KPIC. 14582 lt_prog_compiler_wl_CXX='-Wl,' 14583 lt_prog_compiler_pic_CXX='-KPIC' 14584 lt_prog_compiler_static_CXX='-static' 14585 ;; 14586 icpc* ) 14587 # Intel C++, used to be incompatible with GCC. 14588 # ICC 10 doesn't accept -KPIC any more. 14589 lt_prog_compiler_wl_CXX='-Wl,' 14590 lt_prog_compiler_pic_CXX='-fPIC' 14591 lt_prog_compiler_static_CXX='-static' 14592 ;; 14593 pgCC* | pgcpp*) 14594 # Portland Group C++ compiler 14595 lt_prog_compiler_wl_CXX='-Wl,' 14596 lt_prog_compiler_pic_CXX='-fpic' 14597 lt_prog_compiler_static_CXX='-Bstatic' 14598 ;; 14599 cxx*) 14600 # Compaq C++ 14601 # Make sure the PIC flag is empty. It appears that all Alpha 14602 # Linux and Compaq Tru64 Unix objects are PIC. 14603 lt_prog_compiler_pic_CXX= 14604 lt_prog_compiler_static_CXX='-non_shared' 14605 ;; 14606 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14607 # IBM XL 8.0, 9.0 on PPC and BlueGene 14608 lt_prog_compiler_wl_CXX='-Wl,' 14609 lt_prog_compiler_pic_CXX='-qpic' 14610 lt_prog_compiler_static_CXX='-qstaticlink' 14611 ;; 14612 *) 14613 case `$CC -V 2>&1 | sed 5q` in 14614 *Sun\ C*) 14615 # Sun C++ 5.9 14616 lt_prog_compiler_pic_CXX='-KPIC' 14617 lt_prog_compiler_static_CXX='-Bstatic' 14618 lt_prog_compiler_wl_CXX='-Qoption ld ' 14619 ;; 14620 esac 14621 ;; 14622 esac 14623 ;; 14624 lynxos*) 14625 ;; 14626 m88k*) 14627 ;; 14628 mvs*) 14629 case $cc_basename in 14630 cxx*) 14631 lt_prog_compiler_pic_CXX='-W c,exportall' 14632 ;; 14633 *) 14634 ;; 14635 esac 14636 ;; 14637 netbsd*) 14638 ;; 14639 *qnx* | *nto*) 14640 # QNX uses GNU C++, but need to define -shared option too, otherwise 14641 # it will coredump. 14642 lt_prog_compiler_pic_CXX='-fPIC -shared' 14643 ;; 14644 osf3* | osf4* | osf5*) 14645 case $cc_basename in 14646 KCC*) 14647 lt_prog_compiler_wl_CXX='--backend -Wl,' 14648 ;; 14649 RCC*) 14650 # Rational C++ 2.4.1 14651 lt_prog_compiler_pic_CXX='-pic' 14652 ;; 14653 cxx*) 14654 # Digital/Compaq C++ 14655 lt_prog_compiler_wl_CXX='-Wl,' 14656 # Make sure the PIC flag is empty. It appears that all Alpha 14657 # Linux and Compaq Tru64 Unix objects are PIC. 14658 lt_prog_compiler_pic_CXX= 14659 lt_prog_compiler_static_CXX='-non_shared' 14660 ;; 14661 *) 14662 ;; 14663 esac 14664 ;; 14665 psos*) 14666 ;; 14667 solaris*) 14668 case $cc_basename in 14669 CC* | sunCC*) 14670 # Sun C++ 4.2, 5.x and Centerline C++ 14671 lt_prog_compiler_pic_CXX='-KPIC' 14672 lt_prog_compiler_static_CXX='-Bstatic' 14673 lt_prog_compiler_wl_CXX='-Qoption ld ' 14674 ;; 14675 gcx*) 14676 # Green Hills C++ Compiler 14677 lt_prog_compiler_pic_CXX='-PIC' 14678 ;; 14679 *) 14680 ;; 14681 esac 14682 ;; 14683 sunos4*) 14684 case $cc_basename in 14685 CC*) 14686 # Sun C++ 4.x 14687 lt_prog_compiler_pic_CXX='-pic' 14688 lt_prog_compiler_static_CXX='-Bstatic' 14689 ;; 14690 lcc*) 14691 # Lucid 14692 lt_prog_compiler_pic_CXX='-pic' 14693 ;; 14694 *) 14695 ;; 14696 esac 14697 ;; 14698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14699 case $cc_basename in 14700 CC*) 14701 lt_prog_compiler_wl_CXX='-Wl,' 14702 lt_prog_compiler_pic_CXX='-KPIC' 14703 lt_prog_compiler_static_CXX='-Bstatic' 14704 ;; 14705 esac 14706 ;; 14707 tandem*) 14708 case $cc_basename in 14709 NCC*) 14710 # NonStop-UX NCC 3.20 14711 lt_prog_compiler_pic_CXX='-KPIC' 14712 ;; 14713 *) 14714 ;; 14715 esac 14716 ;; 14717 vxworks*) 14718 ;; 14719 *) 14720 lt_prog_compiler_can_build_shared_CXX=no 14721 ;; 14722 esac 14723 fi 14724 14725case $host_os in 14726 # For platforms which do not support PIC, -DPIC is meaningless: 14727 *djgpp*) 14728 lt_prog_compiler_pic_CXX= 14729 ;; 14730 *) 14731 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14732 ;; 14733esac 14734 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14736$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14737if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14741fi 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14743$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14744lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14745 14746# 14747# Check to make sure the PIC flag actually works. 14748# 14749if test -n "$lt_prog_compiler_pic_CXX"; then 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14751$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14752if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14753 $as_echo_n "(cached) " >&6 14754else 14755 lt_cv_prog_compiler_pic_works_CXX=no 14756 ac_outfile=conftest.$ac_objext 14757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14758 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14759 # Insert the option either (1) after the last *FLAGS variable, or 14760 # (2) before a word containing "conftest.", or (3) at the end. 14761 # Note that $ac_compile itself does not contain backslashes and begins 14762 # with a dollar sign (not a hyphen), so the echo should work correctly. 14763 # The option is referenced via a variable to avoid confusing sed. 14764 lt_compile=`echo "$ac_compile" | $SED \ 14765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14767 -e 's:$: $lt_compiler_flag:'` 14768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14769 (eval "$lt_compile" 2>conftest.err) 14770 ac_status=$? 14771 cat conftest.err >&5 14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14773 if (exit $ac_status) && test -s "$ac_outfile"; then 14774 # The compiler can only warn and ignore the option if not recognized 14775 # So say no if there are warnings other than the usual output. 14776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14779 lt_cv_prog_compiler_pic_works_CXX=yes 14780 fi 14781 fi 14782 $RM conftest* 14783 14784fi 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14786$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14787 14788if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14789 case $lt_prog_compiler_pic_CXX in 14790 "" | " "*) ;; 14791 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14792 esac 14793else 14794 lt_prog_compiler_pic_CXX= 14795 lt_prog_compiler_can_build_shared_CXX=no 14796fi 14797 14798fi 14799 14800 14801 14802 14803 14804# 14805# Check to make sure the static flag actually works. 14806# 14807wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14809$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14810if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14811 $as_echo_n "(cached) " >&6 14812else 14813 lt_cv_prog_compiler_static_works_CXX=no 14814 save_LDFLAGS="$LDFLAGS" 14815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14816 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14818 # The linker can only warn and ignore the option if not recognized 14819 # So say no if there are warnings 14820 if test -s conftest.err; then 14821 # Append any errors to the config.log. 14822 cat conftest.err 1>&5 14823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14825 if diff conftest.exp conftest.er2 >/dev/null; then 14826 lt_cv_prog_compiler_static_works_CXX=yes 14827 fi 14828 else 14829 lt_cv_prog_compiler_static_works_CXX=yes 14830 fi 14831 fi 14832 $RM -r conftest* 14833 LDFLAGS="$save_LDFLAGS" 14834 14835fi 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14837$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14838 14839if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14840 : 14841else 14842 lt_prog_compiler_static_CXX= 14843fi 14844 14845 14846 14847 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14849$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14850if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852else 14853 lt_cv_prog_compiler_c_o_CXX=no 14854 $RM -r conftest 2>/dev/null 14855 mkdir conftest 14856 cd conftest 14857 mkdir out 14858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14859 14860 lt_compiler_flag="-o out/conftest2.$ac_objext" 14861 # Insert the option either (1) after the last *FLAGS variable, or 14862 # (2) before a word containing "conftest.", or (3) at the end. 14863 # Note that $ac_compile itself does not contain backslashes and begins 14864 # with a dollar sign (not a hyphen), so the echo should work correctly. 14865 lt_compile=`echo "$ac_compile" | $SED \ 14866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14868 -e 's:$: $lt_compiler_flag:'` 14869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14870 (eval "$lt_compile" 2>out/conftest.err) 14871 ac_status=$? 14872 cat out/conftest.err >&5 14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14874 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14875 then 14876 # The compiler can only warn and ignore the option if not recognized 14877 # So say no if there are warnings 14878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14881 lt_cv_prog_compiler_c_o_CXX=yes 14882 fi 14883 fi 14884 chmod u+w . 2>&5 14885 $RM conftest* 14886 # SGI C++ compiler will create directory out/ii_files/ for 14887 # template instantiation 14888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14889 $RM out/* && rmdir out 14890 cd .. 14891 $RM -r conftest 14892 $RM conftest* 14893 14894fi 14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14896$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14897 14898 14899 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14902if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14903 $as_echo_n "(cached) " >&6 14904else 14905 lt_cv_prog_compiler_c_o_CXX=no 14906 $RM -r conftest 2>/dev/null 14907 mkdir conftest 14908 cd conftest 14909 mkdir out 14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14911 14912 lt_compiler_flag="-o out/conftest2.$ac_objext" 14913 # Insert the option either (1) after the last *FLAGS variable, or 14914 # (2) before a word containing "conftest.", or (3) at the end. 14915 # Note that $ac_compile itself does not contain backslashes and begins 14916 # with a dollar sign (not a hyphen), so the echo should work correctly. 14917 lt_compile=`echo "$ac_compile" | $SED \ 14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14920 -e 's:$: $lt_compiler_flag:'` 14921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14922 (eval "$lt_compile" 2>out/conftest.err) 14923 ac_status=$? 14924 cat out/conftest.err >&5 14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14926 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14927 then 14928 # The compiler can only warn and ignore the option if not recognized 14929 # So say no if there are warnings 14930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14933 lt_cv_prog_compiler_c_o_CXX=yes 14934 fi 14935 fi 14936 chmod u+w . 2>&5 14937 $RM conftest* 14938 # SGI C++ compiler will create directory out/ii_files/ for 14939 # template instantiation 14940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14941 $RM out/* && rmdir out 14942 cd .. 14943 $RM -r conftest 14944 $RM conftest* 14945 14946fi 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14948$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14949 14950 14951 14952 14953hard_links="nottested" 14954if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14955 # do not overwrite the value of need_locks provided by the user 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14957$as_echo_n "checking if we can lock with hard links... " >&6; } 14958 hard_links=yes 14959 $RM conftest* 14960 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14961 touch conftest.a 14962 ln conftest.a conftest.b 2>&5 || hard_links=no 14963 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14965$as_echo "$hard_links" >&6; } 14966 if test "$hard_links" = no; then 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14968$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14969 need_locks=warn 14970 fi 14971else 14972 need_locks=no 14973fi 14974 14975 14976 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14978$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14979 14980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14981 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14982 case $host_os in 14983 aix[4-9]*) 14984 # If we're using GNU nm, then we don't want the "-C" option. 14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14986 # Also, AIX nm treats weak defined symbols like other global defined 14987 # symbols, whereas GNU nm marks them as "W". 14988 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14989 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' 14990 else 14991 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' 14992 fi 14993 ;; 14994 pw32*) 14995 export_symbols_cmds_CXX="$ltdll_cmds" 14996 ;; 14997 cygwin* | mingw* | cegcc*) 14998 case $cc_basename in 14999 cl*) 15000 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15001 ;; 15002 *) 15003 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' 15004 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15005 ;; 15006 esac 15007 ;; 15008 *) 15009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15010 ;; 15011 esac 15012 15013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15014$as_echo "$ld_shlibs_CXX" >&6; } 15015test "$ld_shlibs_CXX" = no && can_build_shared=no 15016 15017with_gnu_ld_CXX=$with_gnu_ld 15018 15019 15020 15021 15022 15023 15024# 15025# Do we need to explicitly link libc? 15026# 15027case "x$archive_cmds_need_lc_CXX" in 15028x|xyes) 15029 # Assume -lc should be added 15030 archive_cmds_need_lc_CXX=yes 15031 15032 if test "$enable_shared" = yes && test "$GCC" = yes; then 15033 case $archive_cmds_CXX in 15034 *'~'*) 15035 # FIXME: we may have to deal with multi-command sequences. 15036 ;; 15037 '$CC '*) 15038 # Test whether the compiler implicitly links with -lc since on some 15039 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15040 # to ld, don't add -lc before -lgcc. 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15043if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15044 $as_echo_n "(cached) " >&6 15045else 15046 $RM conftest* 15047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15048 15049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15050 (eval $ac_compile) 2>&5 15051 ac_status=$? 15052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15053 test $ac_status = 0; } 2>conftest.err; then 15054 soname=conftest 15055 lib=conftest 15056 libobjs=conftest.$ac_objext 15057 deplibs= 15058 wl=$lt_prog_compiler_wl_CXX 15059 pic_flag=$lt_prog_compiler_pic_CXX 15060 compiler_flags=-v 15061 linker_flags=-v 15062 verstring= 15063 output_objdir=. 15064 libname=conftest 15065 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15066 allow_undefined_flag_CXX= 15067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15068 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15069 ac_status=$? 15070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15071 test $ac_status = 0; } 15072 then 15073 lt_cv_archive_cmds_need_lc_CXX=no 15074 else 15075 lt_cv_archive_cmds_need_lc_CXX=yes 15076 fi 15077 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15078 else 15079 cat conftest.err 1>&5 15080 fi 15081 $RM conftest* 15082 15083fi 15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15085$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15086 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15087 ;; 15088 esac 15089 fi 15090 ;; 15091esac 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15155$as_echo_n "checking dynamic linker characteristics... " >&6; } 15156 15157library_names_spec= 15158libname_spec='lib$name' 15159soname_spec= 15160shrext_cmds=".so" 15161postinstall_cmds= 15162postuninstall_cmds= 15163finish_cmds= 15164finish_eval= 15165shlibpath_var= 15166shlibpath_overrides_runpath=unknown 15167version_type=none 15168dynamic_linker="$host_os ld.so" 15169sys_lib_dlsearch_path_spec="/lib /usr/lib" 15170need_lib_prefix=unknown 15171hardcode_into_libs=no 15172 15173# when you set need_version to no, make sure it does not cause -set_version 15174# flags to be left without arguments 15175need_version=unknown 15176 15177case $host_os in 15178aix3*) 15179 version_type=linux # correct to gnu/linux during the next big refactor 15180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15181 shlibpath_var=LIBPATH 15182 15183 # AIX 3 has no versioning support, so we append a major version to the name. 15184 soname_spec='${libname}${release}${shared_ext}$major' 15185 ;; 15186 15187aix[4-9]*) 15188 version_type=linux # correct to gnu/linux during the next big refactor 15189 need_lib_prefix=no 15190 need_version=no 15191 hardcode_into_libs=yes 15192 if test "$host_cpu" = ia64; then 15193 # AIX 5 supports IA64 15194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15195 shlibpath_var=LD_LIBRARY_PATH 15196 else 15197 # With GCC up to 2.95.x, collect2 would create an import file 15198 # for dependence libraries. The import file would start with 15199 # the line `#! .'. This would cause the generated library to 15200 # depend on `.', always an invalid library. This was fixed in 15201 # development snapshots of GCC prior to 3.0. 15202 case $host_os in 15203 aix4 | aix4.[01] | aix4.[01].*) 15204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15205 echo ' yes ' 15206 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15207 : 15208 else 15209 can_build_shared=no 15210 fi 15211 ;; 15212 esac 15213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15214 # soname into executable. Probably we can add versioning support to 15215 # collect2, so additional links can be useful in future. 15216 if test "$aix_use_runtimelinking" = yes; then 15217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15218 # instead of lib<name>.a to let people know that these are not 15219 # typical AIX shared libraries. 15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15221 else 15222 # We preserve .a as extension for shared libraries through AIX4.2 15223 # and later when we are not doing run time linking. 15224 library_names_spec='${libname}${release}.a $libname.a' 15225 soname_spec='${libname}${release}${shared_ext}$major' 15226 fi 15227 shlibpath_var=LIBPATH 15228 fi 15229 ;; 15230 15231amigaos*) 15232 case $host_cpu in 15233 powerpc) 15234 # Since July 2007 AmigaOS4 officially supports .so libraries. 15235 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15237 ;; 15238 m68k) 15239 library_names_spec='$libname.ixlibrary $libname.a' 15240 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15241 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 15242 ;; 15243 esac 15244 ;; 15245 15246beos*) 15247 library_names_spec='${libname}${shared_ext}' 15248 dynamic_linker="$host_os ld.so" 15249 shlibpath_var=LIBRARY_PATH 15250 ;; 15251 15252bsdi[45]*) 15253 version_type=linux # correct to gnu/linux during the next big refactor 15254 need_version=no 15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15256 soname_spec='${libname}${release}${shared_ext}$major' 15257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15258 shlibpath_var=LD_LIBRARY_PATH 15259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15261 # the default ld.so.conf also contains /usr/contrib/lib and 15262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15263 # libtool to hard-code these into programs 15264 ;; 15265 15266cygwin* | mingw* | pw32* | cegcc*) 15267 version_type=windows 15268 shrext_cmds=".dll" 15269 need_version=no 15270 need_lib_prefix=no 15271 15272 case $GCC,$cc_basename in 15273 yes,*) 15274 # gcc 15275 library_names_spec='$libname.dll.a' 15276 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15277 postinstall_cmds='base_file=`basename \${file}`~ 15278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15279 dldir=$destdir/`dirname \$dlpath`~ 15280 test -d \$dldir || mkdir -p \$dldir~ 15281 $install_prog $dir/$dlname \$dldir/$dlname~ 15282 chmod a+x \$dldir/$dlname~ 15283 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15284 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15285 fi' 15286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15287 dlpath=$dir/\$dldll~ 15288 $RM \$dlpath' 15289 shlibpath_overrides_runpath=yes 15290 15291 case $host_os in 15292 cygwin*) 15293 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15295 15296 ;; 15297 mingw* | cegcc*) 15298 # MinGW DLLs use traditional 'lib' prefix 15299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15300 ;; 15301 pw32*) 15302 # pw32 DLLs use 'pw' prefix rather than 'lib' 15303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15304 ;; 15305 esac 15306 dynamic_linker='Win32 ld.exe' 15307 ;; 15308 15309 *,cl*) 15310 # Native MSVC 15311 libname_spec='$name' 15312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15313 library_names_spec='${libname}.dll.lib' 15314 15315 case $build_os in 15316 mingw*) 15317 sys_lib_search_path_spec= 15318 lt_save_ifs=$IFS 15319 IFS=';' 15320 for lt_path in $LIB 15321 do 15322 IFS=$lt_save_ifs 15323 # Let DOS variable expansion print the short 8.3 style file name. 15324 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15325 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15326 done 15327 IFS=$lt_save_ifs 15328 # Convert to MSYS style. 15329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15330 ;; 15331 cygwin*) 15332 # Convert to unix form, then to dos form, then back to unix form 15333 # but this time dos style (no spaces!) so that the unix form looks 15334 # like /cygdrive/c/PROGRA~1:/cygdr... 15335 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15336 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15337 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15338 ;; 15339 *) 15340 sys_lib_search_path_spec="$LIB" 15341 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15342 # It is most probably a Windows format PATH. 15343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15344 else 15345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15346 fi 15347 # FIXME: find the short name or the path components, as spaces are 15348 # common. (e.g. "Program Files" -> "PROGRA~1") 15349 ;; 15350 esac 15351 15352 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15353 postinstall_cmds='base_file=`basename \${file}`~ 15354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15355 dldir=$destdir/`dirname \$dlpath`~ 15356 test -d \$dldir || mkdir -p \$dldir~ 15357 $install_prog $dir/$dlname \$dldir/$dlname' 15358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15359 dlpath=$dir/\$dldll~ 15360 $RM \$dlpath' 15361 shlibpath_overrides_runpath=yes 15362 dynamic_linker='Win32 link.exe' 15363 ;; 15364 15365 *) 15366 # Assume MSVC wrapper 15367 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15368 dynamic_linker='Win32 ld.exe' 15369 ;; 15370 esac 15371 # FIXME: first we should search . and the directory the executable is in 15372 shlibpath_var=PATH 15373 ;; 15374 15375darwin* | rhapsody*) 15376 dynamic_linker="$host_os dyld" 15377 version_type=darwin 15378 need_lib_prefix=no 15379 need_version=no 15380 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15381 soname_spec='${libname}${release}${major}$shared_ext' 15382 shlibpath_overrides_runpath=yes 15383 shlibpath_var=DYLD_LIBRARY_PATH 15384 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15385 15386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15387 ;; 15388 15389dgux*) 15390 version_type=linux # correct to gnu/linux during the next big refactor 15391 need_lib_prefix=no 15392 need_version=no 15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15394 soname_spec='${libname}${release}${shared_ext}$major' 15395 shlibpath_var=LD_LIBRARY_PATH 15396 ;; 15397 15398freebsd* | dragonfly*) 15399 # DragonFly does not have aout. When/if they implement a new 15400 # versioning mechanism, adjust this. 15401 if test -x /usr/bin/objformat; then 15402 objformat=`/usr/bin/objformat` 15403 else 15404 case $host_os in 15405 freebsd[23].*) objformat=aout ;; 15406 *) objformat=elf ;; 15407 esac 15408 fi 15409 version_type=freebsd-$objformat 15410 case $version_type in 15411 freebsd-elf*) 15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15413 need_version=no 15414 need_lib_prefix=no 15415 ;; 15416 freebsd-*) 15417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15418 need_version=yes 15419 ;; 15420 esac 15421 shlibpath_var=LD_LIBRARY_PATH 15422 case $host_os in 15423 freebsd2.*) 15424 shlibpath_overrides_runpath=yes 15425 ;; 15426 freebsd3.[01]* | freebsdelf3.[01]*) 15427 shlibpath_overrides_runpath=yes 15428 hardcode_into_libs=yes 15429 ;; 15430 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15431 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15432 shlibpath_overrides_runpath=no 15433 hardcode_into_libs=yes 15434 ;; 15435 *) # from 4.6 on, and DragonFly 15436 shlibpath_overrides_runpath=yes 15437 hardcode_into_libs=yes 15438 ;; 15439 esac 15440 ;; 15441 15442gnu*) 15443 version_type=linux # correct to gnu/linux during the next big refactor 15444 need_lib_prefix=no 15445 need_version=no 15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15447 soname_spec='${libname}${release}${shared_ext}$major' 15448 shlibpath_var=LD_LIBRARY_PATH 15449 shlibpath_overrides_runpath=no 15450 hardcode_into_libs=yes 15451 ;; 15452 15453haiku*) 15454 version_type=linux # correct to gnu/linux during the next big refactor 15455 need_lib_prefix=no 15456 need_version=no 15457 dynamic_linker="$host_os runtime_loader" 15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15459 soname_spec='${libname}${release}${shared_ext}$major' 15460 shlibpath_var=LIBRARY_PATH 15461 shlibpath_overrides_runpath=yes 15462 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15463 hardcode_into_libs=yes 15464 ;; 15465 15466hpux9* | hpux10* | hpux11*) 15467 # Give a soname corresponding to the major version so that dld.sl refuses to 15468 # link against other versions. 15469 version_type=sunos 15470 need_lib_prefix=no 15471 need_version=no 15472 case $host_cpu in 15473 ia64*) 15474 shrext_cmds='.so' 15475 hardcode_into_libs=yes 15476 dynamic_linker="$host_os dld.so" 15477 shlibpath_var=LD_LIBRARY_PATH 15478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15480 soname_spec='${libname}${release}${shared_ext}$major' 15481 if test "X$HPUX_IA64_MODE" = X32; then 15482 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15483 else 15484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15485 fi 15486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15487 ;; 15488 hppa*64*) 15489 shrext_cmds='.sl' 15490 hardcode_into_libs=yes 15491 dynamic_linker="$host_os dld.sl" 15492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15495 soname_spec='${libname}${release}${shared_ext}$major' 15496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15498 ;; 15499 *) 15500 shrext_cmds='.sl' 15501 dynamic_linker="$host_os dld.sl" 15502 shlibpath_var=SHLIB_PATH 15503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15505 soname_spec='${libname}${release}${shared_ext}$major' 15506 ;; 15507 esac 15508 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15509 postinstall_cmds='chmod 555 $lib' 15510 # or fails outright, so override atomically: 15511 install_override_mode=555 15512 ;; 15513 15514interix[3-9]*) 15515 version_type=linux # correct to gnu/linux during the next big refactor 15516 need_lib_prefix=no 15517 need_version=no 15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15519 soname_spec='${libname}${release}${shared_ext}$major' 15520 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15521 shlibpath_var=LD_LIBRARY_PATH 15522 shlibpath_overrides_runpath=no 15523 hardcode_into_libs=yes 15524 ;; 15525 15526irix5* | irix6* | nonstopux*) 15527 case $host_os in 15528 nonstopux*) version_type=nonstopux ;; 15529 *) 15530 if test "$lt_cv_prog_gnu_ld" = yes; then 15531 version_type=linux # correct to gnu/linux during the next big refactor 15532 else 15533 version_type=irix 15534 fi ;; 15535 esac 15536 need_lib_prefix=no 15537 need_version=no 15538 soname_spec='${libname}${release}${shared_ext}$major' 15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15540 case $host_os in 15541 irix5* | nonstopux*) 15542 libsuff= shlibsuff= 15543 ;; 15544 *) 15545 case $LD in # libtool.m4 will add one of these switches to LD 15546 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15547 libsuff= shlibsuff= libmagic=32-bit;; 15548 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15549 libsuff=32 shlibsuff=N32 libmagic=N32;; 15550 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15551 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15552 *) libsuff= shlibsuff= libmagic=never-match;; 15553 esac 15554 ;; 15555 esac 15556 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15557 shlibpath_overrides_runpath=no 15558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15560 hardcode_into_libs=yes 15561 ;; 15562 15563# No shared lib support for Linux oldld, aout, or coff. 15564linux*oldld* | linux*aout* | linux*coff*) 15565 dynamic_linker=no 15566 ;; 15567 15568# This must be glibc/ELF. 15569linux* | k*bsd*-gnu | kopensolaris*-gnu) 15570 version_type=linux # correct to gnu/linux during the next big refactor 15571 need_lib_prefix=no 15572 need_version=no 15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15574 soname_spec='${libname}${release}${shared_ext}$major' 15575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15576 shlibpath_var=LD_LIBRARY_PATH 15577 shlibpath_overrides_runpath=no 15578 15579 # Some binutils ld are patched to set DT_RUNPATH 15580 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15581 $as_echo_n "(cached) " >&6 15582else 15583 lt_cv_shlibpath_overrides_runpath=no 15584 save_LDFLAGS=$LDFLAGS 15585 save_libdir=$libdir 15586 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15587 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590 15591int 15592main () 15593{ 15594 15595 ; 15596 return 0; 15597} 15598_ACEOF 15599if ac_fn_cxx_try_link "$LINENO"; then : 15600 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15601 lt_cv_shlibpath_overrides_runpath=yes 15602fi 15603fi 15604rm -f core conftest.err conftest.$ac_objext \ 15605 conftest$ac_exeext conftest.$ac_ext 15606 LDFLAGS=$save_LDFLAGS 15607 libdir=$save_libdir 15608 15609fi 15610 15611 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15612 15613 # This implies no fast_install, which is unacceptable. 15614 # Some rework will be needed to allow for fast_install 15615 # before this can be enabled. 15616 hardcode_into_libs=yes 15617 15618 # Append ld.so.conf contents to the search path 15619 if test -f /etc/ld.so.conf; then 15620 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' ' '` 15621 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15622 fi 15623 15624 # We used to test for /lib/ld.so.1 and disable shared libraries on 15625 # powerpc, because MkLinux only supported shared libraries with the 15626 # GNU dynamic linker. Since this was broken with cross compilers, 15627 # most powerpc-linux boxes support dynamic linking these days and 15628 # people can always --disable-shared, the test was removed, and we 15629 # assume the GNU/Linux dynamic linker is in use. 15630 dynamic_linker='GNU/Linux ld.so' 15631 ;; 15632 15633netbsd*) 15634 version_type=sunos 15635 need_lib_prefix=no 15636 need_version=no 15637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15640 dynamic_linker='NetBSD (a.out) ld.so' 15641 else 15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15643 soname_spec='${libname}${release}${shared_ext}$major' 15644 dynamic_linker='NetBSD ld.elf_so' 15645 fi 15646 shlibpath_var=LD_LIBRARY_PATH 15647 shlibpath_overrides_runpath=yes 15648 hardcode_into_libs=yes 15649 ;; 15650 15651newsos6) 15652 version_type=linux # correct to gnu/linux during the next big refactor 15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15654 shlibpath_var=LD_LIBRARY_PATH 15655 shlibpath_overrides_runpath=yes 15656 ;; 15657 15658*nto* | *qnx*) 15659 version_type=qnx 15660 need_lib_prefix=no 15661 need_version=no 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15663 soname_spec='${libname}${release}${shared_ext}$major' 15664 shlibpath_var=LD_LIBRARY_PATH 15665 shlibpath_overrides_runpath=no 15666 hardcode_into_libs=yes 15667 dynamic_linker='ldqnx.so' 15668 ;; 15669 15670openbsd*) 15671 version_type=sunos 15672 sys_lib_dlsearch_path_spec="/usr/lib" 15673 need_lib_prefix=no 15674 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15675 case $host_os in 15676 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15677 *) need_version=no ;; 15678 esac 15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15681 shlibpath_var=LD_LIBRARY_PATH 15682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15683 case $host_os in 15684 openbsd2.[89] | openbsd2.[89].*) 15685 shlibpath_overrides_runpath=no 15686 ;; 15687 *) 15688 shlibpath_overrides_runpath=yes 15689 ;; 15690 esac 15691 else 15692 shlibpath_overrides_runpath=yes 15693 fi 15694 ;; 15695 15696os2*) 15697 libname_spec='$name' 15698 shrext_cmds=".dll" 15699 need_lib_prefix=no 15700 library_names_spec='$libname${shared_ext} $libname.a' 15701 dynamic_linker='OS/2 ld.exe' 15702 shlibpath_var=LIBPATH 15703 ;; 15704 15705osf3* | osf4* | osf5*) 15706 version_type=osf 15707 need_lib_prefix=no 15708 need_version=no 15709 soname_spec='${libname}${release}${shared_ext}$major' 15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15711 shlibpath_var=LD_LIBRARY_PATH 15712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15714 ;; 15715 15716rdos*) 15717 dynamic_linker=no 15718 ;; 15719 15720solaris*) 15721 version_type=linux # correct to gnu/linux during the next big refactor 15722 need_lib_prefix=no 15723 need_version=no 15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15725 soname_spec='${libname}${release}${shared_ext}$major' 15726 shlibpath_var=LD_LIBRARY_PATH 15727 shlibpath_overrides_runpath=yes 15728 hardcode_into_libs=yes 15729 # ldd complains unless libraries are executable 15730 postinstall_cmds='chmod +x $lib' 15731 ;; 15732 15733sunos4*) 15734 version_type=sunos 15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15737 shlibpath_var=LD_LIBRARY_PATH 15738 shlibpath_overrides_runpath=yes 15739 if test "$with_gnu_ld" = yes; then 15740 need_lib_prefix=no 15741 fi 15742 need_version=yes 15743 ;; 15744 15745sysv4 | sysv4.3*) 15746 version_type=linux # correct to gnu/linux during the next big refactor 15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15748 soname_spec='${libname}${release}${shared_ext}$major' 15749 shlibpath_var=LD_LIBRARY_PATH 15750 case $host_vendor in 15751 sni) 15752 shlibpath_overrides_runpath=no 15753 need_lib_prefix=no 15754 runpath_var=LD_RUN_PATH 15755 ;; 15756 siemens) 15757 need_lib_prefix=no 15758 ;; 15759 motorola) 15760 need_lib_prefix=no 15761 need_version=no 15762 shlibpath_overrides_runpath=no 15763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15764 ;; 15765 esac 15766 ;; 15767 15768sysv4*MP*) 15769 if test -d /usr/nec ;then 15770 version_type=linux # correct to gnu/linux during the next big refactor 15771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15772 soname_spec='$libname${shared_ext}.$major' 15773 shlibpath_var=LD_LIBRARY_PATH 15774 fi 15775 ;; 15776 15777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15778 version_type=freebsd-elf 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 shlibpath_var=LD_LIBRARY_PATH 15784 shlibpath_overrides_runpath=yes 15785 hardcode_into_libs=yes 15786 if test "$with_gnu_ld" = yes; then 15787 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15788 else 15789 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15790 case $host_os in 15791 sco3.2v5*) 15792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15793 ;; 15794 esac 15795 fi 15796 sys_lib_dlsearch_path_spec='/usr/lib' 15797 ;; 15798 15799tpf*) 15800 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15801 version_type=linux # correct to gnu/linux during the next big refactor 15802 need_lib_prefix=no 15803 need_version=no 15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15805 shlibpath_var=LD_LIBRARY_PATH 15806 shlibpath_overrides_runpath=no 15807 hardcode_into_libs=yes 15808 ;; 15809 15810uts4*) 15811 version_type=linux # correct to gnu/linux during the next big refactor 15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15813 soname_spec='${libname}${release}${shared_ext}$major' 15814 shlibpath_var=LD_LIBRARY_PATH 15815 ;; 15816 15817*) 15818 dynamic_linker=no 15819 ;; 15820esac 15821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15822$as_echo "$dynamic_linker" >&6; } 15823test "$dynamic_linker" = no && can_build_shared=no 15824 15825variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15826if test "$GCC" = yes; then 15827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15828fi 15829 15830if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15831 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15832fi 15833if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15834 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15835fi 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15875$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15876hardcode_action_CXX= 15877if test -n "$hardcode_libdir_flag_spec_CXX" || 15878 test -n "$runpath_var_CXX" || 15879 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15880 15881 # We can hardcode non-existent directories. 15882 if test "$hardcode_direct_CXX" != no && 15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15884 # have to relink, otherwise we might link with an installed library 15885 # when we should be linking with a yet-to-be-installed one 15886 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15887 test "$hardcode_minus_L_CXX" != no; then 15888 # Linking always hardcodes the temporary library directory. 15889 hardcode_action_CXX=relink 15890 else 15891 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15892 hardcode_action_CXX=immediate 15893 fi 15894else 15895 # We cannot hardcode anything, or else we can only hardcode existing 15896 # directories. 15897 hardcode_action_CXX=unsupported 15898fi 15899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15900$as_echo "$hardcode_action_CXX" >&6; } 15901 15902if test "$hardcode_action_CXX" = relink || 15903 test "$inherit_rpath_CXX" = yes; then 15904 # Fast installation is not supported 15905 enable_fast_install=no 15906elif test "$shlibpath_overrides_runpath" = yes || 15907 test "$enable_shared" = no; then 15908 # Fast installation is not necessary 15909 enable_fast_install=needless 15910fi 15911 15912 15913 15914 15915 15916 15917 15918 fi # test -n "$compiler" 15919 15920 CC=$lt_save_CC 15921 CFLAGS=$lt_save_CFLAGS 15922 LDCXX=$LD 15923 LD=$lt_save_LD 15924 GCC=$lt_save_GCC 15925 with_gnu_ld=$lt_save_with_gnu_ld 15926 lt_cv_path_LDCXX=$lt_cv_path_LD 15927 lt_cv_path_LD=$lt_save_path_LD 15928 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15929 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15930fi # test "$_lt_caught_CXX_error" != yes 15931 15932ac_ext=c 15933ac_cpp='$CPP $CPPFLAGS' 15934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15936ac_compiler_gnu=$ac_cv_c_compiler_gnu 15937 15938 15939 15940# Enable support for silent build rules 15941# Check whether --enable-silent-rules was given. 15942if test "${enable_silent_rules+set}" = set; then : 15943 enableval=$enable_silent_rules; 15944fi 15945 15946case $enable_silent_rules in 15947yes) AM_DEFAULT_VERBOSITY=0;; 15948no) AM_DEFAULT_VERBOSITY=1;; 15949*) AM_DEFAULT_VERBOSITY=1;; 15950esac 15951AM_BACKSLASH='\' 15952 15953 15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 15955$as_echo_n "checking for main in -lc... " >&6; } 15956if ${ac_cv_lib_c_main+:} false; then : 15957 $as_echo_n "(cached) " >&6 15958else 15959 ac_check_lib_save_LIBS=$LIBS 15960LIBS="-lc $LIBS" 15961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963 15964 15965int 15966main () 15967{ 15968return main (); 15969 ; 15970 return 0; 15971} 15972_ACEOF 15973if ac_fn_c_try_link "$LINENO"; then : 15974 ac_cv_lib_c_main=yes 15975else 15976 ac_cv_lib_c_main=no 15977fi 15978rm -f core conftest.err conftest.$ac_objext \ 15979 conftest$ac_exeext conftest.$ac_ext 15980LIBS=$ac_check_lib_save_LIBS 15981fi 15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5 15983$as_echo "$ac_cv_lib_c_main" >&6; } 15984if test "x$ac_cv_lib_c_main" = xyes; then : 15985 cat >>confdefs.h <<_ACEOF 15986#define HAVE_LIBC 1 15987_ACEOF 15988 15989 LIBS="-lc $LIBS" 15990 15991fi 15992 15993 15994case "${host_os}" in 15995 cygwin* | mingw32* | beos* | darwin*) 15996 ;; 15997 *) 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 15999$as_echo_n "checking for sin in -lm... " >&6; } 16000if ${ac_cv_lib_m_sin+:} false; then : 16001 $as_echo_n "(cached) " >&6 16002else 16003 ac_check_lib_save_LIBS=$LIBS 16004LIBS="-lm $LIBS" 16005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007 16008/* Override any GCC internal prototype to avoid an error. 16009 Use char because int might match the return type of a GCC 16010 builtin and then its argument prototype would still apply. */ 16011#ifdef __cplusplus 16012extern "C" 16013#endif 16014char sin (); 16015int 16016main () 16017{ 16018return sin (); 16019 ; 16020 return 0; 16021} 16022_ACEOF 16023if ac_fn_c_try_link "$LINENO"; then : 16024 ac_cv_lib_m_sin=yes 16025else 16026 ac_cv_lib_m_sin=no 16027fi 16028rm -f core conftest.err conftest.$ac_objext \ 16029 conftest$ac_exeext conftest.$ac_ext 16030LIBS=$ac_check_lib_save_LIBS 16031fi 16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16033$as_echo "$ac_cv_lib_m_sin" >&6; } 16034if test "x$ac_cv_lib_m_sin" = xyes; then : 16035 cat >>confdefs.h <<_ACEOF 16036#define HAVE_LIBM 1 16037_ACEOF 16038 16039 LIBS="-lm $LIBS" 16040 16041fi 16042 16043 ;; 16044esac 16045 16046tiff_libs_private= 16047 16048 16049for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16050do : 16051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16052ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16053if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16054 cat >>confdefs.h <<_ACEOF 16055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16056_ACEOF 16057 16058fi 16059 16060done 16061 16062 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16064$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16065if ${ac_cv_c_const+:} false; then : 16066 $as_echo_n "(cached) " >&6 16067else 16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16069/* end confdefs.h. */ 16070 16071int 16072main () 16073{ 16074/* FIXME: Include the comments suggested by Paul. */ 16075#ifndef __cplusplus 16076 /* Ultrix mips cc rejects this. */ 16077 typedef int charset[2]; 16078 const charset cs; 16079 /* SunOS 4.1.1 cc rejects this. */ 16080 char const *const *pcpcc; 16081 char **ppc; 16082 /* NEC SVR4.0.2 mips cc rejects this. */ 16083 struct point {int x, y;}; 16084 static struct point const zero = {0,0}; 16085 /* AIX XL C 1.02.0.0 rejects this. 16086 It does not let you subtract one const X* pointer from another in 16087 an arm of an if-expression whose if-part is not a constant 16088 expression */ 16089 const char *g = "string"; 16090 pcpcc = &g + (g ? g-g : 0); 16091 /* HPUX 7.0 cc rejects these. */ 16092 ++pcpcc; 16093 ppc = (char**) pcpcc; 16094 pcpcc = (char const *const *) ppc; 16095 { /* SCO 3.2v4 cc rejects this. */ 16096 char *t; 16097 char const *s = 0 ? (char *) 0 : (char const *) 0; 16098 16099 *t++ = 0; 16100 if (s) return 0; 16101 } 16102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16103 int x[] = {25, 17}; 16104 const int *foo = &x[0]; 16105 ++foo; 16106 } 16107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16108 typedef const int *iptr; 16109 iptr p = 0; 16110 ++p; 16111 } 16112 { /* AIX XL C 1.02.0.0 rejects this saying 16113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16114 struct s { int j; const int *ap[3]; }; 16115 struct s *b; b->j = 5; 16116 } 16117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16118 const int foo = 10; 16119 if (!foo) return 0; 16120 } 16121 return !cs[0] && !zero.x; 16122#endif 16123 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO"; then : 16129 ac_cv_c_const=yes 16130else 16131 ac_cv_c_const=no 16132fi 16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16134fi 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16136$as_echo "$ac_cv_c_const" >&6; } 16137if test $ac_cv_c_const = no; then 16138 16139$as_echo "#define const /**/" >>confdefs.h 16140 16141fi 16142 16143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16144$as_echo_n "checking for inline... " >&6; } 16145if ${ac_cv_c_inline+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 ac_cv_c_inline=no 16149for ac_kw in inline __inline__ __inline; do 16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152#ifndef __cplusplus 16153typedef int foo_t; 16154static $ac_kw foo_t static_foo () {return 0; } 16155$ac_kw foo_t foo () {return 0; } 16156#endif 16157 16158_ACEOF 16159if ac_fn_c_try_compile "$LINENO"; then : 16160 ac_cv_c_inline=$ac_kw 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16163 test "$ac_cv_c_inline" != no && break 16164done 16165 16166fi 16167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16168$as_echo "$ac_cv_c_inline" >&6; } 16169 16170case $ac_cv_c_inline in 16171 inline | yes) ;; 16172 *) 16173 case $ac_cv_c_inline in 16174 no) ac_val=;; 16175 *) ac_val=$ac_cv_c_inline;; 16176 esac 16177 cat >>confdefs.h <<_ACEOF 16178#ifndef __cplusplus 16179#define inline $ac_val 16180#endif 16181_ACEOF 16182 ;; 16183esac 16184 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16186$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16187if ${ac_cv_c_bigendian+:} false; then : 16188 $as_echo_n "(cached) " >&6 16189else 16190 ac_cv_c_bigendian=unknown 16191 # See if we're dealing with a universal compiler. 16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16193/* end confdefs.h. */ 16194#ifndef __APPLE_CC__ 16195 not a universal capable compiler 16196 #endif 16197 typedef int dummy; 16198 16199_ACEOF 16200if ac_fn_c_try_compile "$LINENO"; then : 16201 16202 # Check for potential -arch flags. It is not universal unless 16203 # there are at least two -arch flags with different values. 16204 ac_arch= 16205 ac_prev= 16206 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16207 if test -n "$ac_prev"; then 16208 case $ac_word in 16209 i?86 | x86_64 | ppc | ppc64) 16210 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16211 ac_arch=$ac_word 16212 else 16213 ac_cv_c_bigendian=universal 16214 break 16215 fi 16216 ;; 16217 esac 16218 ac_prev= 16219 elif test "x$ac_word" = "x-arch"; then 16220 ac_prev=arch 16221 fi 16222 done 16223fi 16224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16225 if test $ac_cv_c_bigendian = unknown; then 16226 # See if sys/param.h defines the BYTE_ORDER macro. 16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16228/* end confdefs.h. */ 16229#include <sys/types.h> 16230 #include <sys/param.h> 16231 16232int 16233main () 16234{ 16235#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16236 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16237 && LITTLE_ENDIAN) 16238 bogus endian macros 16239 #endif 16240 16241 ; 16242 return 0; 16243} 16244_ACEOF 16245if ac_fn_c_try_compile "$LINENO"; then : 16246 # It does; now see whether it defined to BIG_ENDIAN or not. 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249#include <sys/types.h> 16250 #include <sys/param.h> 16251 16252int 16253main () 16254{ 16255#if BYTE_ORDER != BIG_ENDIAN 16256 not big endian 16257 #endif 16258 16259 ; 16260 return 0; 16261} 16262_ACEOF 16263if ac_fn_c_try_compile "$LINENO"; then : 16264 ac_cv_c_bigendian=yes 16265else 16266 ac_cv_c_bigendian=no 16267fi 16268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16269fi 16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16271 fi 16272 if test $ac_cv_c_bigendian = unknown; then 16273 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16275/* end confdefs.h. */ 16276#include <limits.h> 16277 16278int 16279main () 16280{ 16281#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16282 bogus endian macros 16283 #endif 16284 16285 ; 16286 return 0; 16287} 16288_ACEOF 16289if ac_fn_c_try_compile "$LINENO"; then : 16290 # It does; now see whether it defined to _BIG_ENDIAN or not. 16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16292/* end confdefs.h. */ 16293#include <limits.h> 16294 16295int 16296main () 16297{ 16298#ifndef _BIG_ENDIAN 16299 not big endian 16300 #endif 16301 16302 ; 16303 return 0; 16304} 16305_ACEOF 16306if ac_fn_c_try_compile "$LINENO"; then : 16307 ac_cv_c_bigendian=yes 16308else 16309 ac_cv_c_bigendian=no 16310fi 16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16312fi 16313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16314 fi 16315 if test $ac_cv_c_bigendian = unknown; then 16316 # Compile a test program. 16317 if test "$cross_compiling" = yes; then : 16318 # Try to guess by grepping values from an object file. 16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16320/* end confdefs.h. */ 16321short int ascii_mm[] = 16322 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16323 short int ascii_ii[] = 16324 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16325 int use_ascii (int i) { 16326 return ascii_mm[i] + ascii_ii[i]; 16327 } 16328 short int ebcdic_ii[] = 16329 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16330 short int ebcdic_mm[] = 16331 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16332 int use_ebcdic (int i) { 16333 return ebcdic_mm[i] + ebcdic_ii[i]; 16334 } 16335 extern int foo; 16336 16337int 16338main () 16339{ 16340return use_ascii (foo) == use_ebcdic (foo); 16341 ; 16342 return 0; 16343} 16344_ACEOF 16345if ac_fn_c_try_compile "$LINENO"; then : 16346 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16347 ac_cv_c_bigendian=yes 16348 fi 16349 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16350 if test "$ac_cv_c_bigendian" = unknown; then 16351 ac_cv_c_bigendian=no 16352 else 16353 # finding both strings is unlikely to happen, but who knows? 16354 ac_cv_c_bigendian=unknown 16355 fi 16356 fi 16357fi 16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16359else 16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16361/* end confdefs.h. */ 16362$ac_includes_default 16363int 16364main () 16365{ 16366 16367 /* Are we little or big endian? From Harbison&Steele. */ 16368 union 16369 { 16370 long int l; 16371 char c[sizeof (long int)]; 16372 } u; 16373 u.l = 1; 16374 return u.c[sizeof (long int) - 1] == 1; 16375 16376 ; 16377 return 0; 16378} 16379_ACEOF 16380if ac_fn_c_try_run "$LINENO"; then : 16381 ac_cv_c_bigendian=no 16382else 16383 ac_cv_c_bigendian=yes 16384fi 16385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16386 conftest.$ac_objext conftest.beam conftest.$ac_ext 16387fi 16388 16389 fi 16390fi 16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16392$as_echo "$ac_cv_c_bigendian" >&6; } 16393 case $ac_cv_c_bigendian in #( 16394 yes) 16395 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16396;; #( 16397 no) 16398 ;; #( 16399 universal) 16400 16401$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16402 16403 ;; #( 16404 *) 16405 as_fn_error $? "unknown endianness 16406 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16407 esac 16408 16409ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16410if test "x$ac_cv_type_off_t" = xyes; then : 16411 16412else 16413 16414cat >>confdefs.h <<_ACEOF 16415#define off_t long int 16416_ACEOF 16417 16418fi 16419 16420ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16421if test "x$ac_cv_type_size_t" = xyes; then : 16422 16423else 16424 16425cat >>confdefs.h <<_ACEOF 16426#define size_t unsigned int 16427_ACEOF 16428 16429fi 16430 16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16432$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16433if ${ac_cv_header_time+:} false; then : 16434 $as_echo_n "(cached) " >&6 16435else 16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16437/* end confdefs.h. */ 16438#include <sys/types.h> 16439#include <sys/time.h> 16440#include <time.h> 16441 16442int 16443main () 16444{ 16445if ((struct tm *) 0) 16446return 0; 16447 ; 16448 return 0; 16449} 16450_ACEOF 16451if ac_fn_c_try_compile "$LINENO"; then : 16452 ac_cv_header_time=yes 16453else 16454 ac_cv_header_time=no 16455fi 16456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16457fi 16458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16459$as_echo "$ac_cv_header_time" >&6; } 16460if test $ac_cv_header_time = yes; then 16461 16462$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16463 16464fi 16465 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16467$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16468if ${ac_cv_struct_tm+:} false; then : 16469 $as_echo_n "(cached) " >&6 16470else 16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472/* end confdefs.h. */ 16473#include <sys/types.h> 16474#include <time.h> 16475 16476int 16477main () 16478{ 16479struct tm tm; 16480 int *p = &tm.tm_sec; 16481 return !p; 16482 ; 16483 return 0; 16484} 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 ac_cv_struct_tm=time.h 16488else 16489 ac_cv_struct_tm=sys/time.h 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16494$as_echo "$ac_cv_struct_tm" >&6; } 16495if test $ac_cv_struct_tm = sys/time.h; then 16496 16497$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16498 16499fi 16500 16501 16502 16503# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 16504# The cast to long int works around a bug in the HP C Compiler 16505# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16506# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16507# This bug is HP SR number 8606223364. 16508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 16509$as_echo_n "checking size of signed short... " >&6; } 16510if ${ac_cv_sizeof_signed_short+:} false; then : 16511 $as_echo_n "(cached) " >&6 16512else 16513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 16514 16515else 16516 if test "$ac_cv_type_signed_short" = yes; then 16517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16519as_fn_error 77 "cannot compute sizeof (signed short) 16520See \`config.log' for more details" "$LINENO" 5; } 16521 else 16522 ac_cv_sizeof_signed_short=0 16523 fi 16524fi 16525 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 16528$as_echo "$ac_cv_sizeof_signed_short" >&6; } 16529 16530 16531 16532cat >>confdefs.h <<_ACEOF 16533#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 16534_ACEOF 16535 16536 16537 16538# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 16539# The cast to long int works around a bug in the HP C Compiler 16540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16542# This bug is HP SR number 8606223364. 16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 16544$as_echo_n "checking size of unsigned short... " >&6; } 16545if ${ac_cv_sizeof_unsigned_short+:} false; then : 16546 $as_echo_n "(cached) " >&6 16547else 16548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 16549 16550else 16551 if test "$ac_cv_type_unsigned_short" = yes; then 16552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16554as_fn_error 77 "cannot compute sizeof (unsigned short) 16555See \`config.log' for more details" "$LINENO" 5; } 16556 else 16557 ac_cv_sizeof_unsigned_short=0 16558 fi 16559fi 16560 16561fi 16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 16563$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 16564 16565 16566 16567cat >>confdefs.h <<_ACEOF 16568#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 16569_ACEOF 16570 16571 16572 16573# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 16574# The cast to long int works around a bug in the HP C Compiler 16575# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16576# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16577# This bug is HP SR number 8606223364. 16578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 16579$as_echo_n "checking size of signed int... " >&6; } 16580if ${ac_cv_sizeof_signed_int+:} false; then : 16581 $as_echo_n "(cached) " >&6 16582else 16583 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 16584 16585else 16586 if test "$ac_cv_type_signed_int" = yes; then 16587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16589as_fn_error 77 "cannot compute sizeof (signed int) 16590See \`config.log' for more details" "$LINENO" 5; } 16591 else 16592 ac_cv_sizeof_signed_int=0 16593 fi 16594fi 16595 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 16598$as_echo "$ac_cv_sizeof_signed_int" >&6; } 16599 16600 16601 16602cat >>confdefs.h <<_ACEOF 16603#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 16604_ACEOF 16605 16606 16607 16608# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 16609# The cast to long int works around a bug in the HP C Compiler 16610# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16611# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16612# This bug is HP SR number 8606223364. 16613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 16614$as_echo_n "checking size of unsigned int... " >&6; } 16615if ${ac_cv_sizeof_unsigned_int+:} false; then : 16616 $as_echo_n "(cached) " >&6 16617else 16618 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 16619 16620else 16621 if test "$ac_cv_type_unsigned_int" = yes; then 16622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16624as_fn_error 77 "cannot compute sizeof (unsigned int) 16625See \`config.log' for more details" "$LINENO" 5; } 16626 else 16627 ac_cv_sizeof_unsigned_int=0 16628 fi 16629fi 16630 16631fi 16632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 16633$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 16634 16635 16636 16637cat >>confdefs.h <<_ACEOF 16638#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 16639_ACEOF 16640 16641 16642 16643# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16644# The cast to long int works around a bug in the HP C Compiler 16645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16647# This bug is HP SR number 8606223364. 16648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16649$as_echo_n "checking size of signed long... " >&6; } 16650if ${ac_cv_sizeof_signed_long+:} false; then : 16651 $as_echo_n "(cached) " >&6 16652else 16653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16654 16655else 16656 if test "$ac_cv_type_signed_long" = yes; then 16657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16659as_fn_error 77 "cannot compute sizeof (signed long) 16660See \`config.log' for more details" "$LINENO" 5; } 16661 else 16662 ac_cv_sizeof_signed_long=0 16663 fi 16664fi 16665 16666fi 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16668$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16669 16670 16671 16672cat >>confdefs.h <<_ACEOF 16673#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16674_ACEOF 16675 16676 16677 16678# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16679# The cast to long int works around a bug in the HP C Compiler 16680# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16681# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16682# This bug is HP SR number 8606223364. 16683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16684$as_echo_n "checking size of unsigned long... " >&6; } 16685if ${ac_cv_sizeof_unsigned_long+:} false; then : 16686 $as_echo_n "(cached) " >&6 16687else 16688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16689 16690else 16691 if test "$ac_cv_type_unsigned_long" = yes; then 16692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16694as_fn_error 77 "cannot compute sizeof (unsigned long) 16695See \`config.log' for more details" "$LINENO" 5; } 16696 else 16697 ac_cv_sizeof_unsigned_long=0 16698 fi 16699fi 16700 16701fi 16702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16703$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16704 16705 16706 16707cat >>confdefs.h <<_ACEOF 16708#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16709_ACEOF 16710 16711 16712 16713# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16714# If 'long long' is not supported then the value defined is zero. 16715# The cast to long int works around a bug in the HP C Compiler 16716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16718# This bug is HP SR number 8606223364. 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16720$as_echo_n "checking size of signed long long... " >&6; } 16721if ${ac_cv_sizeof_signed_long_long+:} false; then : 16722 $as_echo_n "(cached) " >&6 16723else 16724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 16725 16726else 16727 if test "$ac_cv_type_signed_long_long" = yes; then 16728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16730as_fn_error 77 "cannot compute sizeof (signed long long) 16731See \`config.log' for more details" "$LINENO" 5; } 16732 else 16733 ac_cv_sizeof_signed_long_long=0 16734 fi 16735fi 16736 16737fi 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 16739$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 16740 16741 16742 16743cat >>confdefs.h <<_ACEOF 16744#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 16745_ACEOF 16746 16747 16748 16749# Obtain size of a 'unsigned long long' and define as 16750# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 16751# supported then the value defined is zero. 16752# The cast to long int works around a bug in the HP C Compiler 16753# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16754# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16755# This bug is HP SR number 8606223364. 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 16757$as_echo_n "checking size of unsigned long long... " >&6; } 16758if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760else 16761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 16762 16763else 16764 if test "$ac_cv_type_unsigned_long_long" = yes; then 16765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16767as_fn_error 77 "cannot compute sizeof (unsigned long long) 16768See \`config.log' for more details" "$LINENO" 5; } 16769 else 16770 ac_cv_sizeof_unsigned_long_long=0 16771 fi 16772fi 16773 16774fi 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 16776$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 16777 16778 16779 16780cat >>confdefs.h <<_ACEOF 16781#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 16782_ACEOF 16783 16784 16785 16786# Obtain the size of an 'unsigned char *' and define as 16787# SIZEOF_UNSIGNED_CHAR_P. Result is available in 16788# ac_cv_sizeof_unsigned_char_p. 16789# The cast to long int works around a bug in the HP C Compiler 16790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16792# This bug is HP SR number 8606223364. 16793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 16794$as_echo_n "checking size of unsigned char *... " >&6; } 16795if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 16796 $as_echo_n "(cached) " >&6 16797else 16798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 16799 16800else 16801 if test "$ac_cv_type_unsigned_char_p" = yes; then 16802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16804as_fn_error 77 "cannot compute sizeof (unsigned char *) 16805See \`config.log' for more details" "$LINENO" 5; } 16806 else 16807 ac_cv_sizeof_unsigned_char_p=0 16808 fi 16809fi 16810 16811fi 16812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 16813$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 16814 16815 16816 16817cat >>confdefs.h <<_ACEOF 16818#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 16819_ACEOF 16820 16821 16822 16823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 16824$as_echo_n "checking for signed 8-bit type... " >&6; } 16825INT8_T='signed char' 16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 16827$as_echo "$INT8_T" >&6; } 16828 16829cat >>confdefs.h <<_ACEOF 16830#define TIFF_INT8_T $INT8_T 16831_ACEOF 16832 16833 16834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 16835$as_echo_n "checking for unsigned 8-bit type... " >&6; } 16836UINT8_T='unsigned char' 16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 16838$as_echo "$UINT8_T" >&6; } 16839 16840cat >>confdefs.h <<_ACEOF 16841#define TIFF_UINT8_T $UINT8_T 16842_ACEOF 16843 16844 16845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 16846$as_echo_n "checking for signed 16-bit type... " >&6; } 16847INT16_T='signed short' 16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 16849$as_echo "$INT16_T" >&6; } 16850 16851cat >>confdefs.h <<_ACEOF 16852#define TIFF_INT16_T $INT16_T 16853_ACEOF 16854 16855 16856 16857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 16858$as_echo_n "checking for unsigned 16-bit type... " >&6; } 16859UINT16_T='unsigned short' 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 16861$as_echo "$UINT16_T" >&6; } 16862 16863cat >>confdefs.h <<_ACEOF 16864#define TIFF_UINT16_T $UINT16_T 16865_ACEOF 16866 16867 16868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 16869$as_echo_n "checking for signed 32-bit type... " >&6; } 16870INT32_T='none' 16871INT32_FORMAT='none' 16872if test $ac_cv_sizeof_signed_int -eq 4 16873then 16874 INT32_T='signed int' 16875 INT32_FORMAT='"%d"' 16876elif test $ac_cv_sizeof_signed_long -eq 4 16877then 16878 INT32_T='signed long' 16879 INT32_FORMAT='"%ld"' 16880fi 16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 16882$as_echo "$INT32_T" >&6; } 16883 16884cat >>confdefs.h <<_ACEOF 16885#define TIFF_INT32_T $INT32_T 16886_ACEOF 16887 16888 16889cat >>confdefs.h <<_ACEOF 16890#define TIFF_INT32_FORMAT $INT32_FORMAT 16891_ACEOF 16892 16893 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 16895$as_echo_n "checking for unsigned 32-bit type... " >&6; } 16896UINT32_T='none' 16897UINT32_FORMAT='none' 16898if test $ac_cv_sizeof_unsigned_int -eq 4 16899then 16900 UINT32_T='unsigned int' 16901 UINT32_FORMAT='"%u"' 16902elif test $ac_cv_sizeof_unsigned_long -eq 4 16903then 16904 UINT32_T='unsigned long' 16905 UINT32_FORMAT='"%lu"' 16906fi 16907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 16908$as_echo "$UINT32_T" >&6; } 16909 16910cat >>confdefs.h <<_ACEOF 16911#define TIFF_UINT32_T $UINT32_T 16912_ACEOF 16913 16914 16915cat >>confdefs.h <<_ACEOF 16916#define TIFF_UINT32_FORMAT $UINT32_FORMAT 16917_ACEOF 16918 16919 16920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 16921$as_echo_n "checking for signed 64-bit type... " >&6; } 16922INT64_T='none' 16923INT64_FORMAT='none' 16924if test $ac_cv_sizeof_signed_long -eq 8 16925then 16926 INT64_T='signed long' 16927 INT64_FORMAT='"%ld"' 16928elif test $ac_cv_sizeof_signed_long_long -eq 8 16929then 16930 INT64_T='signed long long' 16931 case "${host_os}" in 16932 mingw32*) 16933 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 16934 INT64_FORMAT='"%I64d"' 16935 ;; 16936 *) 16937 INT64_FORMAT='"%lld"' 16938 ;; 16939 esac 16940fi 16941 16942 16943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 16944$as_echo "$INT64_T" >&6; } 16945 16946cat >>confdefs.h <<_ACEOF 16947#define TIFF_INT64_T $INT64_T 16948_ACEOF 16949 16950 16951cat >>confdefs.h <<_ACEOF 16952#define TIFF_INT64_FORMAT $INT64_FORMAT 16953_ACEOF 16954 16955 16956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 16957$as_echo_n "checking for unsigned 64-bit type... " >&6; } 16958UINT64_T='none' 16959UINT64_FORMAT='none' 16960if test $ac_cv_sizeof_unsigned_long -eq 8 16961then 16962 UINT64_T='unsigned long' 16963 UINT64_FORMAT='"%lu"' 16964elif test $ac_cv_sizeof_unsigned_long_long -eq 8 16965then 16966 UINT64_T='unsigned long long' 16967 case "${host_os}" in 16968 mingw32*) 16969 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 16970 UINT64_FORMAT='"%I64u"' 16971 ;; 16972 *) 16973 UINT64_FORMAT='"%llu"' 16974 ;; 16975 esac 16976fi 16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 16978$as_echo "$UINT64_T" >&6; } 16979 16980cat >>confdefs.h <<_ACEOF 16981#define TIFF_UINT64_T $UINT64_T 16982_ACEOF 16983 16984 16985cat >>confdefs.h <<_ACEOF 16986#define TIFF_UINT64_FORMAT $UINT64_FORMAT 16987_ACEOF 16988 16989 16990# Determine TIFF equivalent of ssize_t 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 16992$as_echo_n "checking for signed size type... " >&6; } 16993SSIZE_T='unknown' 16994SSIZE_FORMAT='unknown' 16995if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 16996then 16997 SSIZE_T='signed long' 16998 SSIZE_FORMAT='"%ld"' 16999elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17000then 17001 SSIZE_T='signed long long' 17002 SSIZE_FORMAT='"%lld"' 17003fi 17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17005$as_echo "$SSIZE_T" >&6; } 17006 17007cat >>confdefs.h <<_ACEOF 17008#define TIFF_SSIZE_T $SSIZE_T 17009_ACEOF 17010 17011 17012cat >>confdefs.h <<_ACEOF 17013#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17014_ACEOF 17015 17016 17017# Determine the type to use for the difference between two pointers. 17018# We will default to the POSIX ptrdiff_t if it is available, but will 17019# be prepared for the case when it is not. 17020PTRDIFF_T='unknown' 17021PTRDIFF_FORMAT='"%ld"' 17022ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17023if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17024 PTRDIFF_T=ptrdiff_t 17025fi 17026 17027if test $PTRDIFF_T = unknown 17028then 17029 PTRDIFF_T=$SSIZE_T 17030 PTRDIFF_FORMAT=$SSIZE_FORMAT 17031fi 17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17033$as_echo_n "checking for pointer difference type... " >&6; } 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17035$as_echo "$PTRDIFF_T" >&6; } 17036 17037cat >>confdefs.h <<_ACEOF 17038#define TIFF_PTRDIFF_T $PTRDIFF_T 17039_ACEOF 17040 17041 17042cat >>confdefs.h <<_ACEOF 17043#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17044_ACEOF 17045 17046 17047ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17048#if HAVE_INTTYPES_H 17049# include <inttypes.h> 17050#endif 17051 17052" 17053if test "x$ac_cv_type_int8" = xyes; then : 17054 17055cat >>confdefs.h <<_ACEOF 17056#define HAVE_INT8 1 17057_ACEOF 17058 17059 17060fi 17061ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17062#if HAVE_INTTYPES_H 17063# include <inttypes.h> 17064#endif 17065 17066" 17067if test "x$ac_cv_type_int16" = xyes; then : 17068 17069cat >>confdefs.h <<_ACEOF 17070#define HAVE_INT16 1 17071_ACEOF 17072 17073 17074fi 17075ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17076#if HAVE_INTTYPES_H 17077# include <inttypes.h> 17078#endif 17079 17080" 17081if test "x$ac_cv_type_int32" = xyes; then : 17082 17083cat >>confdefs.h <<_ACEOF 17084#define HAVE_INT32 1 17085_ACEOF 17086 17087 17088fi 17089 17090 17091for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17092do : 17093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17094ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17095if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17096 cat >>confdefs.h <<_ACEOF 17097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17098_ACEOF 17099 17100fi 17101done 17102 17103 17104ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17105if test "x$ac_cv_func_getopt" = xyes; then : 17106 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17107 17108else 17109 case " $LIBOBJS " in 17110 *" getopt.$ac_objext "* ) ;; 17111 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17112 ;; 17113esac 17114 17115fi 17116 17117 17118ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17119if test "x$ac_cv_func_strcasecmp" = xyes; then : 17120 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17121 17122else 17123 case " $LIBOBJS " in 17124 *" strcasecmp.$ac_objext "* ) ;; 17125 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17126 ;; 17127esac 17128 17129fi 17130 17131 17132ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17133if test "x$ac_cv_func_strtoul" = xyes; then : 17134 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17135 17136else 17137 case " $LIBOBJS " in 17138 *" strtoul.$ac_objext "* ) ;; 17139 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17140 ;; 17141esac 17142 17143fi 17144 17145 17146ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17147if test "x$ac_cv_func_strtoull" = xyes; then : 17148 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17149 17150else 17151 case " $LIBOBJS " in 17152 *" strtoull.$ac_objext "* ) ;; 17153 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17154 ;; 17155esac 17156 17157fi 17158 17159 17160ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17161if test "x$ac_cv_func_lfind" = xyes; then : 17162 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17163 17164else 17165 case " $LIBOBJS " in 17166 *" lfind.$ac_objext "* ) ;; 17167 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17168 ;; 17169esac 17170 17171fi 17172 17173 17174 17175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17176$as_echo_n "checking native cpu bit order... " >&6; } 17177case "$host_cpu" in 17178 i*86*|x86_64*) 17179 HOST_FILLORDER=FILLORDER_LSB2MSB 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17181$as_echo "lsb2msb" >&6; } 17182 ;; 17183 *) 17184 HOST_FILLORDER=FILLORDER_MSB2LSB 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17186$as_echo "msb2lsb" >&6; } 17187 ;; 17188esac 17189 17190cat >>confdefs.h <<_ACEOF 17191#define HOST_FILLORDER $HOST_FILLORDER 17192_ACEOF 17193 17194 17195if test "$ac_cv_c_bigendian" = yes ; then 17196 HOST_BIGENDIAN=1 17197else 17198 HOST_BIGENDIAN=0 17199fi 17200 17201cat >>confdefs.h <<_ACEOF 17202#define HOST_BIGENDIAN $HOST_BIGENDIAN 17203_ACEOF 17204 17205 17206#_POSIX_C_SOURCE=2 17207#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17208 17209HAVE_IEEEFP=1 17210 17211cat >>confdefs.h <<_ACEOF 17212#define HAVE_IEEEFP $HAVE_IEEEFP 17213_ACEOF 17214 17215 17216 17217# Check whether --enable-rpath was given. 17218if test "${enable_rpath+set}" = set; then : 17219 enableval=$enable_rpath; HAVE_RPATH=$enableval 17220else 17221 HAVE_RPATH=no 17222fi 17223 17224 if test "$HAVE_RPATH" = "yes"; then 17225 HAVE_RPATH_TRUE= 17226 HAVE_RPATH_FALSE='#' 17227else 17228 HAVE_RPATH_TRUE='#' 17229 HAVE_RPATH_FALSE= 17230fi 17231 17232 17233 17234# Check whether --enable-largefile was given. 17235if test "${enable_largefile+set}" = set; then : 17236 enableval=$enable_largefile; 17237fi 17238 17239if test "$enable_largefile" != no; then 17240 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17242$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17243if ${ac_cv_sys_largefile_CC+:} false; then : 17244 $as_echo_n "(cached) " >&6 17245else 17246 ac_cv_sys_largefile_CC=no 17247 if test "$GCC" != yes; then 17248 ac_save_CC=$CC 17249 while :; do 17250 # IRIX 6.2 and later do not support large files by default, 17251 # so use the C compiler's -n32 option if that helps. 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254#include <sys/types.h> 17255 /* Check that off_t can represent 2**63 - 1 correctly. 17256 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17257 since some C++ compilers masquerading as C compilers 17258 incorrectly reject 9223372036854775807. */ 17259#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17261 && LARGE_OFF_T % 2147483647 == 1) 17262 ? 1 : -1]; 17263int 17264main () 17265{ 17266 17267 ; 17268 return 0; 17269} 17270_ACEOF 17271 if ac_fn_c_try_compile "$LINENO"; then : 17272 break 17273fi 17274rm -f core conftest.err conftest.$ac_objext 17275 CC="$CC -n32" 17276 if ac_fn_c_try_compile "$LINENO"; then : 17277 ac_cv_sys_largefile_CC=' -n32'; break 17278fi 17279rm -f core conftest.err conftest.$ac_objext 17280 break 17281 done 17282 CC=$ac_save_CC 17283 rm -f conftest.$ac_ext 17284 fi 17285fi 17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17287$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17288 if test "$ac_cv_sys_largefile_CC" != no; then 17289 CC=$CC$ac_cv_sys_largefile_CC 17290 fi 17291 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17293$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17294if ${ac_cv_sys_file_offset_bits+:} false; then : 17295 $as_echo_n "(cached) " >&6 17296else 17297 while :; do 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300#include <sys/types.h> 17301 /* Check that off_t can represent 2**63 - 1 correctly. 17302 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17303 since some C++ compilers masquerading as C compilers 17304 incorrectly reject 9223372036854775807. */ 17305#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17307 && LARGE_OFF_T % 2147483647 == 1) 17308 ? 1 : -1]; 17309int 17310main () 17311{ 17312 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_compile "$LINENO"; then : 17318 ac_cv_sys_file_offset_bits=no; break 17319fi 17320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322/* end confdefs.h. */ 17323#define _FILE_OFFSET_BITS 64 17324#include <sys/types.h> 17325 /* Check that off_t can represent 2**63 - 1 correctly. 17326 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17327 since some C++ compilers masquerading as C compilers 17328 incorrectly reject 9223372036854775807. */ 17329#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17331 && LARGE_OFF_T % 2147483647 == 1) 17332 ? 1 : -1]; 17333int 17334main () 17335{ 17336 17337 ; 17338 return 0; 17339} 17340_ACEOF 17341if ac_fn_c_try_compile "$LINENO"; then : 17342 ac_cv_sys_file_offset_bits=64; break 17343fi 17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17345 ac_cv_sys_file_offset_bits=unknown 17346 break 17347done 17348fi 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17350$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17351case $ac_cv_sys_file_offset_bits in #( 17352 no | unknown) ;; 17353 *) 17354cat >>confdefs.h <<_ACEOF 17355#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17356_ACEOF 17357;; 17358esac 17359rm -rf conftest* 17360 if test $ac_cv_sys_file_offset_bits = unknown; then 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17362$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17363if ${ac_cv_sys_large_files+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 while :; do 17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17368/* end confdefs.h. */ 17369#include <sys/types.h> 17370 /* Check that off_t can represent 2**63 - 1 correctly. 17371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17372 since some C++ compilers masquerading as C compilers 17373 incorrectly reject 9223372036854775807. */ 17374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17376 && LARGE_OFF_T % 2147483647 == 1) 17377 ? 1 : -1]; 17378int 17379main () 17380{ 17381 17382 ; 17383 return 0; 17384} 17385_ACEOF 17386if ac_fn_c_try_compile "$LINENO"; then : 17387 ac_cv_sys_large_files=no; break 17388fi 17389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17391/* end confdefs.h. */ 17392#define _LARGE_FILES 1 17393#include <sys/types.h> 17394 /* Check that off_t can represent 2**63 - 1 correctly. 17395 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17396 since some C++ compilers masquerading as C compilers 17397 incorrectly reject 9223372036854775807. */ 17398#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17400 && LARGE_OFF_T % 2147483647 == 1) 17401 ? 1 : -1]; 17402int 17403main () 17404{ 17405 17406 ; 17407 return 0; 17408} 17409_ACEOF 17410if ac_fn_c_try_compile "$LINENO"; then : 17411 ac_cv_sys_large_files=1; break 17412fi 17413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17414 ac_cv_sys_large_files=unknown 17415 break 17416done 17417fi 17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17419$as_echo "$ac_cv_sys_large_files" >&6; } 17420case $ac_cv_sys_large_files in #( 17421 no | unknown) ;; 17422 *) 17423cat >>confdefs.h <<_ACEOF 17424#define _LARGE_FILES $ac_cv_sys_large_files 17425_ACEOF 17426;; 17427esac 17428rm -rf conftest* 17429 fi 17430fi 17431 17432 17433 17434LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 17435 17436 17437# Check whether --with-docdir was given. 17438if test "${with_docdir+set}" = set; then : 17439 withval=$with_docdir; 17440fi 17441 17442if test "x$with_docdir" != "x" ; then 17443 LIBTIFF_DOCDIR=$with_docdir 17444fi 17445 17446 17447 17448 17449# Check whether --enable-ccitt was given. 17450if test "${enable_ccitt+set}" = set; then : 17451 enableval=$enable_ccitt; HAVE_CCITT=$enableval 17452else 17453 HAVE_CCITT=yes 17454fi 17455 17456 17457if test "$HAVE_CCITT" = "yes" ; then 17458 17459$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 17460 17461fi 17462 17463# Check whether --enable-packbits was given. 17464if test "${enable_packbits+set}" = set; then : 17465 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 17466else 17467 HAVE_PACKBITS=yes 17468fi 17469 17470 17471if test "$HAVE_PACKBITS" = "yes" ; then 17472 17473$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 17474 17475fi 17476 17477# Check whether --enable-lzw was given. 17478if test "${enable_lzw+set}" = set; then : 17479 enableval=$enable_lzw; HAVE_LZW=$enableval 17480else 17481 HAVE_LZW=yes 17482fi 17483 17484 17485if test "$HAVE_LZW" = "yes" ; then 17486 17487$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 17488 17489fi 17490 17491# Check whether --enable-thunder was given. 17492if test "${enable_thunder+set}" = set; then : 17493 enableval=$enable_thunder; HAVE_THUNDER=$enableval 17494else 17495 HAVE_THUNDER=yes 17496fi 17497 17498 17499if test "$HAVE_THUNDER" = "yes" ; then 17500 17501$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 17502 17503fi 17504 17505HAVE_NEXT=yes 17506 17507# Check whether --enable-next was given. 17508if test "${enable_next+set}" = set; then : 17509 enableval=$enable_next; HAVE_NEXT=$enableval 17510else 17511 HAVE_NEXT=yes 17512fi 17513 17514 17515if test "$HAVE_NEXT" = "yes" ; then 17516 17517$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 17518 17519fi 17520 17521# Check whether --enable-logluv was given. 17522if test "${enable_logluv+set}" = set; then : 17523 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 17524else 17525 HAVE_LOGLUV=yes 17526fi 17527 17528 17529if test "$HAVE_LOGLUV" = "yes" ; then 17530 17531$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 17532 17533fi 17534 17535 17536# Check whether --enable-mdi was given. 17537if test "${enable_mdi+set}" = set; then : 17538 enableval=$enable_mdi; HAVE_MDI=$enableval 17539else 17540 HAVE_MDI=yes 17541fi 17542 17543 17544if test "$HAVE_MDI" = "yes" ; then 17545 17546$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 17547 17548fi 17549 17550 17551HAVE_ZLIB=no 17552 17553# Check whether --enable-zlib was given. 17554if test "${enable_zlib+set}" = set; then : 17555 enableval=$enable_zlib; 17556fi 17557 17558 17559# Check whether --with-zlib-include-dir was given. 17560if test "${with_zlib_include_dir+set}" = set; then : 17561 withval=$with_zlib_include_dir; 17562fi 17563 17564 17565# Check whether --with-zlib-lib-dir was given. 17566if test "${with_zlib_lib_dir+set}" = set; then : 17567 withval=$with_zlib_lib_dir; 17568fi 17569 17570 17571if test "x$enable_zlib" != "xno" ; then 17572 17573 if test "x$with_zlib_lib_dir" != "x" ; then 17574 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 17575 fi 17576 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 17578$as_echo_n "checking for inflateEnd in -lz... " >&6; } 17579if ${ac_cv_lib_z_inflateEnd+:} false; then : 17580 $as_echo_n "(cached) " >&6 17581else 17582 ac_check_lib_save_LIBS=$LIBS 17583LIBS="-lz $LIBS" 17584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586 17587/* Override any GCC internal prototype to avoid an error. 17588 Use char because int might match the return type of a GCC 17589 builtin and then its argument prototype would still apply. */ 17590#ifdef __cplusplus 17591extern "C" 17592#endif 17593char inflateEnd (); 17594int 17595main () 17596{ 17597return inflateEnd (); 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO"; then : 17603 ac_cv_lib_z_inflateEnd=yes 17604else 17605 ac_cv_lib_z_inflateEnd=no 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609LIBS=$ac_check_lib_save_LIBS 17610fi 17611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 17612$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 17613if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 17614 zlib_lib=yes 17615else 17616 zlib_lib=no 17617fi 17618 17619 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 17620 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 17621 fi 17622 17623 if test "x$with_zlib_include_dir" != "x" ; then 17624 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 17625 fi 17626 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17627if test "x$ac_cv_header_zlib_h" = xyes; then : 17628 zlib_h=yes 17629else 17630 zlib_h=no 17631fi 17632 17633 17634 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 17635 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 17636 fi 17637 17638 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 17639 HAVE_ZLIB=yes 17640 fi 17641 17642fi 17643 17644if test "$HAVE_ZLIB" = "yes" ; then 17645 17646$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 17647 17648 LIBS="-lz $LIBS" 17649 tiff_libs_private="-lz ${tiff_libs_private}" 17650 17651 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 17652 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 17653 fi 17654 17655fi 17656 17657 17658# Check whether --enable-pixarlog was given. 17659if test "${enable_pixarlog+set}" = set; then : 17660 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 17661else 17662 HAVE_PIXARLOG=yes 17663fi 17664 17665 17666if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17667 17668$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17669 17670else 17671 HAVE_PIXARLOG=no 17672fi 17673 17674 17675HAVE_JPEG=no 17676 17677# Check whether --enable-jpeg was given. 17678if test "${enable_jpeg+set}" = set; then : 17679 enableval=$enable_jpeg; 17680fi 17681 17682 17683# Check whether --with-jpeg-include-dir was given. 17684if test "${with_jpeg_include_dir+set}" = set; then : 17685 withval=$with_jpeg_include_dir; 17686fi 17687 17688 17689# Check whether --with-jpeg-lib-dir was given. 17690if test "${with_jpeg_lib_dir+set}" = set; then : 17691 withval=$with_jpeg_lib_dir; 17692fi 17693 17694 17695if test "x$enable_jpeg" != "xno" ; then 17696 17697 if test "x$with_jpeg_lib_dir" != "x" ; then 17698 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17699 17700 fi 17701 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17703$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17704if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 17705 $as_echo_n "(cached) " >&6 17706else 17707 ac_check_lib_save_LIBS=$LIBS 17708LIBS="-ljpeg $LIBS" 17709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711 17712/* Override any GCC internal prototype to avoid an error. 17713 Use char because int might match the return type of a GCC 17714 builtin and then its argument prototype would still apply. */ 17715#ifdef __cplusplus 17716extern "C" 17717#endif 17718char jpeg_read_scanlines (); 17719int 17720main () 17721{ 17722return jpeg_read_scanlines (); 17723 ; 17724 return 0; 17725} 17726_ACEOF 17727if ac_fn_c_try_link "$LINENO"; then : 17728 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 17729else 17730 ac_cv_lib_jpeg_jpeg_read_scanlines=no 17731fi 17732rm -f core conftest.err conftest.$ac_objext \ 17733 conftest$ac_exeext conftest.$ac_ext 17734LIBS=$ac_check_lib_save_LIBS 17735fi 17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 17737$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 17738if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 17739 jpeg_lib=yes 17740else 17741 jpeg_lib=no 17742fi 17743 17744 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 17745 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 17746 fi 17747 17748 if test "x$with_jpeg_include_dir" != "x" ; then 17749 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 17750 fi 17751 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 17752if test "x$ac_cv_header_jpeglib_h" = xyes; then : 17753 jpeg_h=yes 17754else 17755 jpeg_h=no 17756fi 17757 17758 17759 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 17760 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 17761 fi 17762 17763 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 17764 HAVE_JPEG=yes 17765 fi 17766 17767fi 17768 17769if test "$HAVE_JPEG" = "yes" ; then 17770 17771$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 17772 17773 LIBS="-ljpeg $LIBS" 17774 tiff_libs_private="-ljpeg ${tiff_libs_private}" 17775 17776 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 17777 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 17778 fi 17779 17780fi 17781 17782 17783# Check whether --enable-old-jpeg was given. 17784if test "${enable_old_jpeg+set}" = set; then : 17785 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 17786else 17787 HAVE_OJPEG=yes 17788fi 17789 17790 17791if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 17792 17793$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 17794 17795else 17796 HAVE_OJPEG=no 17797fi 17798 17799 17800HAVE_JBIG=no 17801 17802# Check whether --enable-jbig was given. 17803if test "${enable_jbig+set}" = set; then : 17804 enableval=$enable_jbig; 17805fi 17806 17807 17808# Check whether --with-jbig-include-dir was given. 17809if test "${with_jbig_include_dir+set}" = set; then : 17810 withval=$with_jbig_include_dir; 17811fi 17812 17813 17814# Check whether --with-jbig-lib-dir was given. 17815if test "${with_jbig_lib_dir+set}" = set; then : 17816 withval=$with_jbig_lib_dir; 17817fi 17818 17819 17820if test "x$enable_jbig" != "xno" ; then 17821 17822 if test "x$with_jbig_lib_dir" != "x" ; then 17823 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 17824 17825 fi 17826 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 17828$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 17829if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 17830 $as_echo_n "(cached) " >&6 17831else 17832 ac_check_lib_save_LIBS=$LIBS 17833LIBS="-ljbig $LIBS" 17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836 17837/* Override any GCC internal prototype to avoid an error. 17838 Use char because int might match the return type of a GCC 17839 builtin and then its argument prototype would still apply. */ 17840#ifdef __cplusplus 17841extern "C" 17842#endif 17843char jbg_dec_init (); 17844int 17845main () 17846{ 17847return jbg_dec_init (); 17848 ; 17849 return 0; 17850} 17851_ACEOF 17852if ac_fn_c_try_link "$LINENO"; then : 17853 ac_cv_lib_jbig_jbg_dec_init=yes 17854else 17855 ac_cv_lib_jbig_jbg_dec_init=no 17856fi 17857rm -f core conftest.err conftest.$ac_objext \ 17858 conftest$ac_exeext conftest.$ac_ext 17859LIBS=$ac_check_lib_save_LIBS 17860fi 17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 17862$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 17863if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 17864 jbig_lib=yes 17865else 17866 jbig_lib=no 17867fi 17868 17869 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 17870 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 17871 fi 17872 17873 if test "x$with_jbig_include_dir" != "x" ; then 17874 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 17875 fi 17876 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 17877if test "x$ac_cv_header_jbig_h" = xyes; then : 17878 jbig_h=yes 17879else 17880 jbig_h=no 17881fi 17882 17883 17884 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 17885 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 17886 fi 17887 17888 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 17889 HAVE_JBIG=yes 17890 fi 17891 17892fi 17893 17894if test "$HAVE_JBIG" = "yes" ; then 17895 17896$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 17897 17898 LIBS="-ljbig $LIBS" 17899 tiff_libs_private="-ljbig ${tiff_libs_private}" 17900 17901 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 17902 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 17903 fi 17904 17905 # Older versions of jbigkit lack jbg_newlen 17906 for ac_func in jbg_newlen 17907do : 17908 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 17909if test "x$ac_cv_func_jbg_newlen" = xyes; then : 17910 cat >>confdefs.h <<_ACEOF 17911#define HAVE_JBG_NEWLEN 1 17912_ACEOF 17913 17914fi 17915done 17916 17917 17918fi 17919 17920 17921HAVE_LZMA=no 17922 17923# Check whether --enable-lzma was given. 17924if test "${enable_lzma+set}" = set; then : 17925 enableval=$enable_lzma; 17926fi 17927 17928 17929# Check whether --with-lzma-include-dir was given. 17930if test "${with_lzma_include_dir+set}" = set; then : 17931 withval=$with_lzma_include_dir; 17932fi 17933 17934 17935# Check whether --with-lzma-lib-dir was given. 17936if test "${with_lzma_lib_dir+set}" = set; then : 17937 withval=$with_lzma_lib_dir; 17938fi 17939 17940 17941if test "x$enable_lzma" != "xno" ; then 17942 17943 if test "x$with_lzma_lib_dir" != "x" ; then 17944 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 17945 fi 17946 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 17948$as_echo_n "checking for lzma_code in -llzma... " >&6; } 17949if ${ac_cv_lib_lzma_lzma_code+:} false; then : 17950 $as_echo_n "(cached) " >&6 17951else 17952 ac_check_lib_save_LIBS=$LIBS 17953LIBS="-llzma $LIBS" 17954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17955/* end confdefs.h. */ 17956 17957/* Override any GCC internal prototype to avoid an error. 17958 Use char because int might match the return type of a GCC 17959 builtin and then its argument prototype would still apply. */ 17960#ifdef __cplusplus 17961extern "C" 17962#endif 17963char lzma_code (); 17964int 17965main () 17966{ 17967return lzma_code (); 17968 ; 17969 return 0; 17970} 17971_ACEOF 17972if ac_fn_c_try_link "$LINENO"; then : 17973 ac_cv_lib_lzma_lzma_code=yes 17974else 17975 ac_cv_lib_lzma_lzma_code=no 17976fi 17977rm -f core conftest.err conftest.$ac_objext \ 17978 conftest$ac_exeext conftest.$ac_ext 17979LIBS=$ac_check_lib_save_LIBS 17980fi 17981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 17982$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 17983if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 17984 lzma_lib=yes 17985else 17986 lzma_lib=no 17987fi 17988 17989 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 17990 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 17991 fi 17992 17993 if test "x$with_lzma_include_dir" != "x" ; then 17994 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 17995 fi 17996 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 17997if test "x$ac_cv_header_lzma_h" = xyes; then : 17998 lzma_h=yes 17999else 18000 lzma_h=no 18001fi 18002 18003 18004 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18005 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18006 fi 18007 18008 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18009 HAVE_LZMA=yes 18010 fi 18011 18012fi 18013 18014if test "$HAVE_LZMA" = "yes" ; then 18015 18016$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18017 18018 LIBS="-llzma $LIBS" 18019 18020 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18021 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18022 fi 18023 18024fi 18025 18026 18027HAVE_JPEG12=no 18028 18029# Check whether --enable-jpeg12 was given. 18030if test "${enable_jpeg12+set}" = set; then : 18031 enableval=$enable_jpeg12; 18032fi 18033 18034 18035# Check whether --with-jpeg12-include-dir was given. 18036if test "${with_jpeg12_include_dir+set}" = set; then : 18037 withval=$with_jpeg12_include_dir; 18038fi 18039 18040 18041# Check whether --with-jpeg12-lib was given. 18042if test "${with_jpeg12_lib+set}" = set; then : 18043 withval=$with_jpeg12_lib; 18044fi 18045 18046 18047if test "x$enable_jpeg12" == "xyes" ; then 18048 18049 if test "x$with_jpeg12_lib" != "x" ; then 18050 LIBS="$with_jpeg12_lib $LIBS" 18051 fi 18052 18053 HAVE_JPEG12=yes 18054 18055 18056$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18057 18058 if test "x$with_jpeg12_include_dir" != "x" ; then 18059 18060cat >>confdefs.h <<_ACEOF 18061#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18062_ACEOF 18063 18064 fi 18065fi 18066 18067 18068 18069# Check whether --enable-cxx was given. 18070if test "${enable_cxx+set}" = set; then : 18071 enableval=$enable_cxx; HAVE_CXX=$enableval 18072else 18073 HAVE_CXX=yes 18074fi 18075 18076 18077if test "$HAVE_CXX" = "yes" ; then 18078 18079$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18080 18081else 18082 HAVE_CXX=no 18083fi 18084 18085 if test "$HAVE_CXX" = "yes"; then 18086 HAVE_CXX_TRUE= 18087 HAVE_CXX_FALSE='#' 18088else 18089 HAVE_CXX_TRUE='#' 18090 HAVE_CXX_FALSE= 18091fi 18092 18093 18094 18095HAVE_OPENGL=no 18096 18097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18098$as_echo_n "checking for X... " >&6; } 18099 18100 18101# Check whether --with-x was given. 18102if test "${with_x+set}" = set; then : 18103 withval=$with_x; 18104fi 18105 18106# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18107if test "x$with_x" = xno; then 18108 # The user explicitly disabled X. 18109 have_x=disabled 18110else 18111 case $x_includes,$x_libraries in #( 18112 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18113 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18114 $as_echo_n "(cached) " >&6 18115else 18116 # One or both of the vars are not set, and there is no cached value. 18117ac_x_includes=no ac_x_libraries=no 18118rm -f -r conftest.dir 18119if mkdir conftest.dir; then 18120 cd conftest.dir 18121 cat >Imakefile <<'_ACEOF' 18122incroot: 18123 @echo incroot='${INCROOT}' 18124usrlibdir: 18125 @echo usrlibdir='${USRLIBDIR}' 18126libdir: 18127 @echo libdir='${LIBDIR}' 18128_ACEOF 18129 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18130 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18131 for ac_var in incroot usrlibdir libdir; do 18132 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18133 done 18134 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18135 for ac_extension in a so sl dylib la dll; do 18136 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18137 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18138 ac_im_usrlibdir=$ac_im_libdir; break 18139 fi 18140 done 18141 # Screen out bogus values from the imake configuration. They are 18142 # bogus both because they are the default anyway, and because 18143 # using them would break gcc on systems where it needs fixed includes. 18144 case $ac_im_incroot in 18145 /usr/include) ac_x_includes= ;; 18146 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18147 esac 18148 case $ac_im_usrlibdir in 18149 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18150 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18151 esac 18152 fi 18153 cd .. 18154 rm -f -r conftest.dir 18155fi 18156 18157# Standard set of common directories for X headers. 18158# Check X11 before X11Rn because it is often a symlink to the current release. 18159ac_x_header_dirs=' 18160/usr/X11/include 18161/usr/X11R7/include 18162/usr/X11R6/include 18163/usr/X11R5/include 18164/usr/X11R4/include 18165 18166/usr/include/X11 18167/usr/include/X11R7 18168/usr/include/X11R6 18169/usr/include/X11R5 18170/usr/include/X11R4 18171 18172/usr/local/X11/include 18173/usr/local/X11R7/include 18174/usr/local/X11R6/include 18175/usr/local/X11R5/include 18176/usr/local/X11R4/include 18177 18178/usr/local/include/X11 18179/usr/local/include/X11R7 18180/usr/local/include/X11R6 18181/usr/local/include/X11R5 18182/usr/local/include/X11R4 18183 18184/usr/X386/include 18185/usr/x386/include 18186/usr/XFree86/include/X11 18187 18188/usr/include 18189/usr/local/include 18190/usr/unsupported/include 18191/usr/athena/include 18192/usr/local/x11r5/include 18193/usr/lpp/Xamples/include 18194 18195/usr/openwin/include 18196/usr/openwin/share/include' 18197 18198if test "$ac_x_includes" = no; then 18199 # Guess where to find include files, by looking for Xlib.h. 18200 # First, try using that file with no special directory specified. 18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18202/* end confdefs.h. */ 18203#include <X11/Xlib.h> 18204_ACEOF 18205if ac_fn_c_try_cpp "$LINENO"; then : 18206 # We can compile using X headers with no special include directory. 18207ac_x_includes= 18208else 18209 for ac_dir in $ac_x_header_dirs; do 18210 if test -r "$ac_dir/X11/Xlib.h"; then 18211 ac_x_includes=$ac_dir 18212 break 18213 fi 18214done 18215fi 18216rm -f conftest.err conftest.i conftest.$ac_ext 18217fi # $ac_x_includes = no 18218 18219if test "$ac_x_libraries" = no; then 18220 # Check for the libraries. 18221 # See if we find them without any special options. 18222 # Don't add to $LIBS permanently. 18223 ac_save_LIBS=$LIBS 18224 LIBS="-lX11 $LIBS" 18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18226/* end confdefs.h. */ 18227#include <X11/Xlib.h> 18228int 18229main () 18230{ 18231XrmInitialize () 18232 ; 18233 return 0; 18234} 18235_ACEOF 18236if ac_fn_c_try_link "$LINENO"; then : 18237 LIBS=$ac_save_LIBS 18238# We can link X programs with no special library path. 18239ac_x_libraries= 18240else 18241 LIBS=$ac_save_LIBS 18242for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18243do 18244 # Don't even attempt the hair of trying to link an X program! 18245 for ac_extension in a so sl dylib la dll; do 18246 if test -r "$ac_dir/libX11.$ac_extension"; then 18247 ac_x_libraries=$ac_dir 18248 break 2 18249 fi 18250 done 18251done 18252fi 18253rm -f core conftest.err conftest.$ac_objext \ 18254 conftest$ac_exeext conftest.$ac_ext 18255fi # $ac_x_libraries = no 18256 18257case $ac_x_includes,$ac_x_libraries in #( 18258 no,* | *,no | *\'*) 18259 # Didn't find X, or a directory has "'" in its name. 18260 ac_cv_have_x="have_x=no";; #( 18261 *) 18262 # Record where we found X for the cache. 18263 ac_cv_have_x="have_x=yes\ 18264 ac_x_includes='$ac_x_includes'\ 18265 ac_x_libraries='$ac_x_libraries'" 18266esac 18267fi 18268;; #( 18269 *) have_x=yes;; 18270 esac 18271 eval "$ac_cv_have_x" 18272fi # $with_x != no 18273 18274if test "$have_x" != yes; then 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18276$as_echo "$have_x" >&6; } 18277 no_x=yes 18278else 18279 # If each of the values was on the command line, it overrides each guess. 18280 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18281 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18282 # Update the cache value to reflect the command line values. 18283 ac_cv_have_x="have_x=yes\ 18284 ac_x_includes='$x_includes'\ 18285 ac_x_libraries='$x_libraries'" 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18287$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18288fi 18289 18290if test "$no_x" = yes; then 18291 # Not all programs may use this symbol, but it does not hurt to define it. 18292 18293$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18294 18295 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18296else 18297 if test -n "$x_includes"; then 18298 X_CFLAGS="$X_CFLAGS -I$x_includes" 18299 fi 18300 18301 # It would also be nice to do this for all -L options, not just this one. 18302 if test -n "$x_libraries"; then 18303 X_LIBS="$X_LIBS -L$x_libraries" 18304 # For Solaris; some versions of Sun CC require a space after -R and 18305 # others require no space. Words are not sufficient . . . . 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18307$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18308 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18309 ac_xsave_c_werror_flag=$ac_c_werror_flag 18310 ac_c_werror_flag=yes 18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313 18314int 18315main () 18316{ 18317 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322if ac_fn_c_try_link "$LINENO"; then : 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18324$as_echo "no" >&6; } 18325 X_LIBS="$X_LIBS -R$x_libraries" 18326else 18327 LIBS="$ac_xsave_LIBS -R $x_libraries" 18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18329/* end confdefs.h. */ 18330 18331int 18332main () 18333{ 18334 18335 ; 18336 return 0; 18337} 18338_ACEOF 18339if ac_fn_c_try_link "$LINENO"; then : 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18341$as_echo "yes" >&6; } 18342 X_LIBS="$X_LIBS -R $x_libraries" 18343else 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18345$as_echo "neither works" >&6; } 18346fi 18347rm -f core conftest.err conftest.$ac_objext \ 18348 conftest$ac_exeext conftest.$ac_ext 18349fi 18350rm -f core conftest.err conftest.$ac_objext \ 18351 conftest$ac_exeext conftest.$ac_ext 18352 ac_c_werror_flag=$ac_xsave_c_werror_flag 18353 LIBS=$ac_xsave_LIBS 18354 fi 18355 18356 # Check for system-dependent libraries X programs must link with. 18357 # Do this before checking for the system-independent R6 libraries 18358 # (-lICE), since we may need -lsocket or whatever for X linking. 18359 18360 if test "$ISC" = yes; then 18361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18362 else 18363 # Martyn Johnson says this is needed for Ultrix, if the X 18364 # libraries were built with DECnet support. And Karl Berry says 18365 # the Alpha needs dnet_stub (dnet does not exist). 18366 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18368/* end confdefs.h. */ 18369 18370/* Override any GCC internal prototype to avoid an error. 18371 Use char because int might match the return type of a GCC 18372 builtin and then its argument prototype would still apply. */ 18373#ifdef __cplusplus 18374extern "C" 18375#endif 18376char XOpenDisplay (); 18377int 18378main () 18379{ 18380return XOpenDisplay (); 18381 ; 18382 return 0; 18383} 18384_ACEOF 18385if ac_fn_c_try_link "$LINENO"; then : 18386 18387else 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18389$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18390if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18391 $as_echo_n "(cached) " >&6 18392else 18393 ac_check_lib_save_LIBS=$LIBS 18394LIBS="-ldnet $LIBS" 18395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18396/* end confdefs.h. */ 18397 18398/* Override any GCC internal prototype to avoid an error. 18399 Use char because int might match the return type of a GCC 18400 builtin and then its argument prototype would still apply. */ 18401#ifdef __cplusplus 18402extern "C" 18403#endif 18404char dnet_ntoa (); 18405int 18406main () 18407{ 18408return dnet_ntoa (); 18409 ; 18410 return 0; 18411} 18412_ACEOF 18413if ac_fn_c_try_link "$LINENO"; then : 18414 ac_cv_lib_dnet_dnet_ntoa=yes 18415else 18416 ac_cv_lib_dnet_dnet_ntoa=no 18417fi 18418rm -f core conftest.err conftest.$ac_objext \ 18419 conftest$ac_exeext conftest.$ac_ext 18420LIBS=$ac_check_lib_save_LIBS 18421fi 18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18423$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18424if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18426fi 18427 18428 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18430$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18431if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18432 $as_echo_n "(cached) " >&6 18433else 18434 ac_check_lib_save_LIBS=$LIBS 18435LIBS="-ldnet_stub $LIBS" 18436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18437/* end confdefs.h. */ 18438 18439/* Override any GCC internal prototype to avoid an error. 18440 Use char because int might match the return type of a GCC 18441 builtin and then its argument prototype would still apply. */ 18442#ifdef __cplusplus 18443extern "C" 18444#endif 18445char dnet_ntoa (); 18446int 18447main () 18448{ 18449return dnet_ntoa (); 18450 ; 18451 return 0; 18452} 18453_ACEOF 18454if ac_fn_c_try_link "$LINENO"; then : 18455 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18456else 18457 ac_cv_lib_dnet_stub_dnet_ntoa=no 18458fi 18459rm -f core conftest.err conftest.$ac_objext \ 18460 conftest$ac_exeext conftest.$ac_ext 18461LIBS=$ac_check_lib_save_LIBS 18462fi 18463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18464$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18465if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18466 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18467fi 18468 18469 fi 18470fi 18471rm -f core conftest.err conftest.$ac_objext \ 18472 conftest$ac_exeext conftest.$ac_ext 18473 LIBS="$ac_xsave_LIBS" 18474 18475 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 18476 # to get the SysV transport functions. 18477 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18478 # needs -lnsl. 18479 # The nsl library prevents programs from opening the X display 18480 # on Irix 5.2, according to T.E. Dickey. 18481 # The functions gethostbyname, getservbyname, and inet_addr are 18482 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18483 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18484if test "x$ac_cv_func_gethostbyname" = xyes; then : 18485 18486fi 18487 18488 if test $ac_cv_func_gethostbyname = no; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18490$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18491if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18492 $as_echo_n "(cached) " >&6 18493else 18494 ac_check_lib_save_LIBS=$LIBS 18495LIBS="-lnsl $LIBS" 18496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497/* end confdefs.h. */ 18498 18499/* Override any GCC internal prototype to avoid an error. 18500 Use char because int might match the return type of a GCC 18501 builtin and then its argument prototype would still apply. */ 18502#ifdef __cplusplus 18503extern "C" 18504#endif 18505char gethostbyname (); 18506int 18507main () 18508{ 18509return gethostbyname (); 18510 ; 18511 return 0; 18512} 18513_ACEOF 18514if ac_fn_c_try_link "$LINENO"; then : 18515 ac_cv_lib_nsl_gethostbyname=yes 18516else 18517 ac_cv_lib_nsl_gethostbyname=no 18518fi 18519rm -f core conftest.err conftest.$ac_objext \ 18520 conftest$ac_exeext conftest.$ac_ext 18521LIBS=$ac_check_lib_save_LIBS 18522fi 18523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18524$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18525if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18527fi 18528 18529 if test $ac_cv_lib_nsl_gethostbyname = no; then 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18531$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18532if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18533 $as_echo_n "(cached) " >&6 18534else 18535 ac_check_lib_save_LIBS=$LIBS 18536LIBS="-lbsd $LIBS" 18537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18538/* end confdefs.h. */ 18539 18540/* Override any GCC internal prototype to avoid an error. 18541 Use char because int might match the return type of a GCC 18542 builtin and then its argument prototype would still apply. */ 18543#ifdef __cplusplus 18544extern "C" 18545#endif 18546char gethostbyname (); 18547int 18548main () 18549{ 18550return gethostbyname (); 18551 ; 18552 return 0; 18553} 18554_ACEOF 18555if ac_fn_c_try_link "$LINENO"; then : 18556 ac_cv_lib_bsd_gethostbyname=yes 18557else 18558 ac_cv_lib_bsd_gethostbyname=no 18559fi 18560rm -f core conftest.err conftest.$ac_objext \ 18561 conftest$ac_exeext conftest.$ac_ext 18562LIBS=$ac_check_lib_save_LIBS 18563fi 18564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18565$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18566if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18568fi 18569 18570 fi 18571 fi 18572 18573 # [email protected] says without -lsocket, 18574 # socket/setsockopt and other routines are undefined under SCO ODT 18575 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18576 # on later versions), says Simon Leinen: it contains gethostby* 18577 # variants that don't use the name server (or something). -lsocket 18578 # must be given before -lnsl if both are needed. We assume that 18579 # if connect needs -lnsl, so does gethostbyname. 18580 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18581if test "x$ac_cv_func_connect" = xyes; then : 18582 18583fi 18584 18585 if test $ac_cv_func_connect = no; then 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18587$as_echo_n "checking for connect in -lsocket... " >&6; } 18588if ${ac_cv_lib_socket_connect+:} false; then : 18589 $as_echo_n "(cached) " >&6 18590else 18591 ac_check_lib_save_LIBS=$LIBS 18592LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18594/* end confdefs.h. */ 18595 18596/* Override any GCC internal prototype to avoid an error. 18597 Use char because int might match the return type of a GCC 18598 builtin and then its argument prototype would still apply. */ 18599#ifdef __cplusplus 18600extern "C" 18601#endif 18602char connect (); 18603int 18604main () 18605{ 18606return connect (); 18607 ; 18608 return 0; 18609} 18610_ACEOF 18611if ac_fn_c_try_link "$LINENO"; then : 18612 ac_cv_lib_socket_connect=yes 18613else 18614 ac_cv_lib_socket_connect=no 18615fi 18616rm -f core conftest.err conftest.$ac_objext \ 18617 conftest$ac_exeext conftest.$ac_ext 18618LIBS=$ac_check_lib_save_LIBS 18619fi 18620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18621$as_echo "$ac_cv_lib_socket_connect" >&6; } 18622if test "x$ac_cv_lib_socket_connect" = xyes; then : 18623 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18624fi 18625 18626 fi 18627 18628 # Guillermo Gomez says -lposix is necessary on A/UX. 18629 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18630if test "x$ac_cv_func_remove" = xyes; then : 18631 18632fi 18633 18634 if test $ac_cv_func_remove = no; then 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18636$as_echo_n "checking for remove in -lposix... " >&6; } 18637if ${ac_cv_lib_posix_remove+:} false; then : 18638 $as_echo_n "(cached) " >&6 18639else 18640 ac_check_lib_save_LIBS=$LIBS 18641LIBS="-lposix $LIBS" 18642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18643/* end confdefs.h. */ 18644 18645/* Override any GCC internal prototype to avoid an error. 18646 Use char because int might match the return type of a GCC 18647 builtin and then its argument prototype would still apply. */ 18648#ifdef __cplusplus 18649extern "C" 18650#endif 18651char remove (); 18652int 18653main () 18654{ 18655return remove (); 18656 ; 18657 return 0; 18658} 18659_ACEOF 18660if ac_fn_c_try_link "$LINENO"; then : 18661 ac_cv_lib_posix_remove=yes 18662else 18663 ac_cv_lib_posix_remove=no 18664fi 18665rm -f core conftest.err conftest.$ac_objext \ 18666 conftest$ac_exeext conftest.$ac_ext 18667LIBS=$ac_check_lib_save_LIBS 18668fi 18669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18670$as_echo "$ac_cv_lib_posix_remove" >&6; } 18671if test "x$ac_cv_lib_posix_remove" = xyes; then : 18672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18673fi 18674 18675 fi 18676 18677 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18678 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18679if test "x$ac_cv_func_shmat" = xyes; then : 18680 18681fi 18682 18683 if test $ac_cv_func_shmat = no; then 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18685$as_echo_n "checking for shmat in -lipc... " >&6; } 18686if ${ac_cv_lib_ipc_shmat+:} false; then : 18687 $as_echo_n "(cached) " >&6 18688else 18689 ac_check_lib_save_LIBS=$LIBS 18690LIBS="-lipc $LIBS" 18691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693 18694/* Override any GCC internal prototype to avoid an error. 18695 Use char because int might match the return type of a GCC 18696 builtin and then its argument prototype would still apply. */ 18697#ifdef __cplusplus 18698extern "C" 18699#endif 18700char shmat (); 18701int 18702main () 18703{ 18704return shmat (); 18705 ; 18706 return 0; 18707} 18708_ACEOF 18709if ac_fn_c_try_link "$LINENO"; then : 18710 ac_cv_lib_ipc_shmat=yes 18711else 18712 ac_cv_lib_ipc_shmat=no 18713fi 18714rm -f core conftest.err conftest.$ac_objext \ 18715 conftest$ac_exeext conftest.$ac_ext 18716LIBS=$ac_check_lib_save_LIBS 18717fi 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18719$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18720if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18722fi 18723 18724 fi 18725 fi 18726 18727 # Check for libraries that X11R6 Xt/Xaw programs need. 18728 ac_save_LDFLAGS=$LDFLAGS 18729 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18730 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18731 # check for ICE first), but we must link in the order -lSM -lICE or 18732 # we get undefined symbols. So assume we have SM if we have ICE. 18733 # These have to be linked with before -lX11, unlike the other 18734 # libraries we check for below, so use a different variable. 18735 # John Interrante, Karl Berry 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18737$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18738if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18739 $as_echo_n "(cached) " >&6 18740else 18741 ac_check_lib_save_LIBS=$LIBS 18742LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18744/* end confdefs.h. */ 18745 18746/* Override any GCC internal prototype to avoid an error. 18747 Use char because int might match the return type of a GCC 18748 builtin and then its argument prototype would still apply. */ 18749#ifdef __cplusplus 18750extern "C" 18751#endif 18752char IceConnectionNumber (); 18753int 18754main () 18755{ 18756return IceConnectionNumber (); 18757 ; 18758 return 0; 18759} 18760_ACEOF 18761if ac_fn_c_try_link "$LINENO"; then : 18762 ac_cv_lib_ICE_IceConnectionNumber=yes 18763else 18764 ac_cv_lib_ICE_IceConnectionNumber=no 18765fi 18766rm -f core conftest.err conftest.$ac_objext \ 18767 conftest$ac_exeext conftest.$ac_ext 18768LIBS=$ac_check_lib_save_LIBS 18769fi 18770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18771$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18772if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18773 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18774fi 18775 18776 LDFLAGS=$ac_save_LDFLAGS 18777 18778fi 18779 18780 18781 18782 18783 18784ac_ext=c 18785ac_cpp='$CPP $CPPFLAGS' 18786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18788ac_compiler_gnu=$ac_cv_c_compiler_gnu 18789 18790ax_pthread_ok=no 18791 18792 18793if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18794 save_CFLAGS="$CFLAGS" 18795 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18796 save_LIBS="$LIBS" 18797 LIBS="$PTHREAD_LIBS $LIBS" 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18799$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802 18803/* Override any GCC internal prototype to avoid an error. 18804 Use char because int might match the return type of a GCC 18805 builtin and then its argument prototype would still apply. */ 18806#ifdef __cplusplus 18807extern "C" 18808#endif 18809char pthread_join (); 18810int 18811main () 18812{ 18813return pthread_join (); 18814 ; 18815 return 0; 18816} 18817_ACEOF 18818if ac_fn_c_try_link "$LINENO"; then : 18819 ax_pthread_ok=yes 18820fi 18821rm -f core conftest.err conftest.$ac_objext \ 18822 conftest$ac_exeext conftest.$ac_ext 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18824$as_echo "$ax_pthread_ok" >&6; } 18825 if test x"$ax_pthread_ok" = xno; then 18826 PTHREAD_LIBS="" 18827 PTHREAD_CFLAGS="" 18828 fi 18829 LIBS="$save_LIBS" 18830 CFLAGS="$save_CFLAGS" 18831fi 18832 18833 18834 18835ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18836 18837 18838 18839case "${host_cpu}-${host_os}" in 18840 *solaris*) 18841 18842 18843 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 18844 ;; 18845 18846 *-darwin*) 18847 ax_pthread_flags="-pthread $ax_pthread_flags" 18848 ;; 18849esac 18850 18851if test x"$ax_pthread_ok" = xno; then 18852for flag in $ax_pthread_flags; do 18853 18854 case $flag in 18855 none) 18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18857$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18858 ;; 18859 18860 -*) 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18862$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18863 PTHREAD_CFLAGS="$flag" 18864 ;; 18865 18866 pthread-config) 18867 # Extract the first word of "pthread-config", so it can be a program name with args. 18868set dummy pthread-config; ac_word=$2 18869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18870$as_echo_n "checking for $ac_word... " >&6; } 18871if ${ac_cv_prog_ax_pthread_config+:} false; then : 18872 $as_echo_n "(cached) " >&6 18873else 18874 if test -n "$ax_pthread_config"; then 18875 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18876else 18877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18878for as_dir in $PATH 18879do 18880 IFS=$as_save_IFS 18881 test -z "$as_dir" && as_dir=. 18882 for ac_exec_ext in '' $ac_executable_extensions; do 18883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18884 ac_cv_prog_ax_pthread_config="yes" 18885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18886 break 2 18887 fi 18888done 18889 done 18890IFS=$as_save_IFS 18891 18892 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18893fi 18894fi 18895ax_pthread_config=$ac_cv_prog_ax_pthread_config 18896if test -n "$ax_pthread_config"; then 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18898$as_echo "$ax_pthread_config" >&6; } 18899else 18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18901$as_echo "no" >&6; } 18902fi 18903 18904 18905 if test x"$ax_pthread_config" = xno; then continue; fi 18906 PTHREAD_CFLAGS="`pthread-config --cflags`" 18907 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18908 ;; 18909 18910 *) 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18912$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18913 PTHREAD_LIBS="-l$flag" 18914 ;; 18915 esac 18916 18917 save_LIBS="$LIBS" 18918 save_CFLAGS="$CFLAGS" 18919 LIBS="$PTHREAD_LIBS $LIBS" 18920 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18921 18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18923/* end confdefs.h. */ 18924#include <pthread.h> 18925 static void routine(void* a) {a=0;} 18926 static void* start_routine(void* a) {return a;} 18927int 18928main () 18929{ 18930pthread_t th; pthread_attr_t attr; 18931 pthread_create(&th,0,start_routine,0); 18932 pthread_join(th, 0); 18933 pthread_attr_init(&attr); 18934 pthread_cleanup_push(routine, 0); 18935 pthread_cleanup_pop(0); 18936 ; 18937 return 0; 18938} 18939_ACEOF 18940if ac_fn_c_try_link "$LINENO"; then : 18941 ax_pthread_ok=yes 18942fi 18943rm -f core conftest.err conftest.$ac_objext \ 18944 conftest$ac_exeext conftest.$ac_ext 18945 18946 LIBS="$save_LIBS" 18947 CFLAGS="$save_CFLAGS" 18948 18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18950$as_echo "$ax_pthread_ok" >&6; } 18951 if test "x$ax_pthread_ok" = xyes; then 18952 break; 18953 fi 18954 18955 PTHREAD_LIBS="" 18956 PTHREAD_CFLAGS="" 18957done 18958fi 18959 18960if test "x$ax_pthread_ok" = xyes; then 18961 save_LIBS="$LIBS" 18962 LIBS="$PTHREAD_LIBS $LIBS" 18963 save_CFLAGS="$CFLAGS" 18964 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18965 18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18967$as_echo_n "checking for joinable pthread attribute... " >&6; } 18968 attr_name=unknown 18969 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18971/* end confdefs.h. */ 18972#include <pthread.h> 18973int 18974main () 18975{ 18976int attr=$attr; return attr; 18977 ; 18978 return 0; 18979} 18980_ACEOF 18981if ac_fn_c_try_link "$LINENO"; then : 18982 attr_name=$attr; break 18983fi 18984rm -f core conftest.err conftest.$ac_objext \ 18985 conftest$ac_exeext conftest.$ac_ext 18986 done 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18988$as_echo "$attr_name" >&6; } 18989 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18990 18991cat >>confdefs.h <<_ACEOF 18992#define PTHREAD_CREATE_JOINABLE $attr_name 18993_ACEOF 18994 18995 fi 18996 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18998$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18999 flag=no 19000 case "${host_cpu}-${host_os}" in 19001 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19002 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19003 esac 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19005$as_echo "${flag}" >&6; } 19006 if test "x$flag" != xno; then 19007 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19008 fi 19009 19010 LIBS="$save_LIBS" 19011 CFLAGS="$save_CFLAGS" 19012 19013 if test x"$GCC" != xyes; then 19014 for ac_prog in xlc_r cc_r 19015do 19016 # Extract the first word of "$ac_prog", so it can be a program name with args. 19017set dummy $ac_prog; ac_word=$2 19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19019$as_echo_n "checking for $ac_word... " >&6; } 19020if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19021 $as_echo_n "(cached) " >&6 19022else 19023 if test -n "$PTHREAD_CC"; then 19024 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19025else 19026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19027for as_dir in $PATH 19028do 19029 IFS=$as_save_IFS 19030 test -z "$as_dir" && as_dir=. 19031 for ac_exec_ext in '' $ac_executable_extensions; do 19032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19033 ac_cv_prog_PTHREAD_CC="$ac_prog" 19034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19035 break 2 19036 fi 19037done 19038 done 19039IFS=$as_save_IFS 19040 19041fi 19042fi 19043PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19044if test -n "$PTHREAD_CC"; then 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19046$as_echo "$PTHREAD_CC" >&6; } 19047else 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19049$as_echo "no" >&6; } 19050fi 19051 19052 19053 test -n "$PTHREAD_CC" && break 19054done 19055test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19056 19057 else 19058 PTHREAD_CC=$CC 19059 fi 19060else 19061 PTHREAD_CC="$CC" 19062fi 19063 19064 19065 19066 19067 19068if test x"$ax_pthread_ok" = xyes; then 19069 19070$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19071 19072 : 19073else 19074 ax_pthread_ok=no 19075 19076fi 19077ac_ext=c 19078ac_cpp='$CPP $CPPFLAGS' 19079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19081ac_compiler_gnu=$ac_cv_c_compiler_gnu 19082 19083 19084 19085 19086ac_ext=c 19087ac_cpp='$CPP $CPPFLAGS' 19088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19090ac_compiler_gnu=$ac_cv_c_compiler_gnu 19091 19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19093$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19094if ${ax_cv_c_compiler_ms+:} false; then : 19095 $as_echo_n "(cached) " >&6 19096else 19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19098/* end confdefs.h. */ 19099 19100int 19101main () 19102{ 19103#ifndef _MSC_VER 19104 choke me 19105#endif 19106 19107 ; 19108 return 0; 19109} 19110_ACEOF 19111if ac_fn_c_try_compile "$LINENO"; then : 19112 ax_compiler_ms=yes 19113else 19114 ax_compiler_ms=no 19115fi 19116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19117ax_cv_c_compiler_ms=$ax_compiler_ms 19118 19119fi 19120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19121$as_echo "$ax_cv_c_compiler_ms" >&6; } 19122if test X$ax_compiler_ms = Xno; then : 19123 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19124fi 19125 19126if test "X$no_x" != "Xyes"; then : 19127 if test -n "$x_includes"; then : 19128 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19129fi 19130 if test -n "$x_libraries"; then : 19131 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19132fi 19133fi 19134 19135ax_save_CPPFLAGS="${CPPFLAGS}" 19136CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19137for ac_header in GL/gl.h OpenGL/gl.h 19138do : 19139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19140ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19142 cat >>confdefs.h <<_ACEOF 19143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19144_ACEOF 19145 19146fi 19147 19148done 19149 19150CPPFLAGS="${ax_save_CPPFLAGS}" 19151 19152for ac_header in windows.h 19153do : 19154 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19155if test "x$ac_cv_header_windows_h" = xyes; then : 19156 cat >>confdefs.h <<_ACEOF 19157#define HAVE_WINDOWS_H 1 19158_ACEOF 19159 19160fi 19161 19162done 19163 19164 19165 19166 19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19168$as_echo_n "checking for OpenGL library... " >&6; } 19169if ${ax_cv_check_gl_libgl+:} false; then : 19170 $as_echo_n "(cached) " >&6 19171else 19172 ax_cv_check_gl_libgl="no" 19173case $host_cpu in 19174 x86_64) ax_check_gl_libdir=lib64 ;; 19175 *) ax_check_gl_libdir=lib ;; 19176esac 19177ax_save_CPPFLAGS="${CPPFLAGS}" 19178CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19179ax_save_LIBS="${LIBS}" 19180LIBS="" 19181ax_check_libs="-lopengl32 -lGL" 19182for ax_lib in ${ax_check_libs}; do 19183 if test X$ax_compiler_ms = Xyes; then : 19184 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19185else 19186 ax_try_lib="${ax_lib}" 19187fi 19188 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19190/* end confdefs.h. */ 19191 19192# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19193# include <windows.h> 19194# endif 19195# ifdef HAVE_GL_GL_H 19196# include <GL/gl.h> 19197# elif defined(HAVE_OPENGL_GL_H) 19198# include <OpenGL/gl.h> 19199# else 19200# error no gl.h 19201# endif 19202int 19203main () 19204{ 19205glBegin(0) 19206 ; 19207 return 0; 19208} 19209_ACEOF 19210if ac_fn_c_try_link "$LINENO"; then : 19211 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19212else 19213 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}" 19214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216 19217# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19218# include <windows.h> 19219# endif 19220# ifdef HAVE_GL_GL_H 19221# include <GL/gl.h> 19222# elif defined(HAVE_OPENGL_GL_H) 19223# include <OpenGL/gl.h> 19224# else 19225# error no gl.h 19226# endif 19227int 19228main () 19229{ 19230glBegin(0) 19231 ; 19232 return 0; 19233} 19234_ACEOF 19235if ac_fn_c_try_link "$LINENO"; then : 19236 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19237else 19238 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}" 19239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19240/* end confdefs.h. */ 19241 19242# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19243# include <windows.h> 19244# endif 19245# ifdef HAVE_GL_GL_H 19246# include <GL/gl.h> 19247# elif defined(HAVE_OPENGL_GL_H) 19248# include <OpenGL/gl.h> 19249# else 19250# error no gl.h 19251# endif 19252int 19253main () 19254{ 19255glBegin(0) 19256 ; 19257 return 0; 19258} 19259_ACEOF 19260if ac_fn_c_try_link "$LINENO"; then : 19261 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19262fi 19263rm -f core conftest.err conftest.$ac_objext \ 19264 conftest$ac_exeext conftest.$ac_ext 19265fi 19266rm -f core conftest.err conftest.$ac_objext \ 19267 conftest$ac_exeext conftest.$ac_ext 19268fi 19269rm -f core conftest.err conftest.$ac_objext \ 19270 conftest$ac_exeext conftest.$ac_ext 19271done 19272 19273if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19274 LIBS='-framework OpenGL' 19275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19276/* end confdefs.h. */ 19277 19278# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19279# include <windows.h> 19280# endif 19281# ifdef HAVE_GL_GL_H 19282# include <GL/gl.h> 19283# elif defined(HAVE_OPENGL_GL_H) 19284# include <OpenGL/gl.h> 19285# else 19286# error no gl.h 19287# endif 19288int 19289main () 19290{ 19291glBegin(0) 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296if ac_fn_c_try_link "$LINENO"; then : 19297 ax_cv_check_gl_libgl="$LIBS" 19298fi 19299rm -f core conftest.err conftest.$ac_objext \ 19300 conftest$ac_exeext conftest.$ac_ext 19301fi 19302 19303LIBS=${ax_save_LIBS} 19304CPPFLAGS=${ax_save_CPPFLAGS} 19305fi 19306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 19307$as_echo "$ax_cv_check_gl_libgl" >&6; } 19308 19309if test "X$ax_cv_check_gl_libgl" = Xno; then : 19310 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 19311else 19312 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 19313fi 19314ac_ext=c 19315ac_cpp='$CPP $CPPFLAGS' 19316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19318ac_compiler_gnu=$ac_cv_c_compiler_gnu 19319 19320 19321 19322 19323 19324GLU_CFLAGS="${GL_CFLAGS}" 19325 19326ax_save_CPPFLAGS="${CPPFLAGS}" 19327CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19328for ac_header in GL/glu.h OpenGL/glu.h 19329do : 19330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19331ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19332if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19333 cat >>confdefs.h <<_ACEOF 19334#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19335_ACEOF 19336 19337fi 19338 19339done 19340 19341CPPFLAGS="${ax_save_CPPFLAGS}" 19342 19343 19344 19345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 19346$as_echo_n "checking for OpenGL Utility library... " >&6; } 19347if ${ax_cv_check_glu_libglu+:} false; then : 19348 $as_echo_n "(cached) " >&6 19349else 19350 ax_cv_check_glu_libglu="no" 19351ax_save_CPPFLAGS="${CPPFLAGS}" 19352CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19353ax_save_LIBS="${LIBS}" 19354 19355LIBS="${GL_LIBS} ${ax_save_LIBS}" 19356ac_ext=cpp 19357ac_cpp='$CXXCPP $CPPFLAGS' 19358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19361 19362if test X$ax_compiler_ms = Xyes; then : 19363 ac_ext=c 19364ac_cpp='$CPP $CPPFLAGS' 19365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19367ac_compiler_gnu=$ac_cv_c_compiler_gnu 19368 19369fi 19370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19371/* end confdefs.h. */ 19372 19373# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19374# include <windows.h> 19375# endif 19376# ifdef HAVE_GL_GLU_H 19377# include <GL/glu.h> 19378# elif defined(HAVE_OPENGL_GLU_H) 19379# include <OpenGL/glu.h> 19380# else 19381# error no glu.h 19382# endif 19383int 19384main () 19385{ 19386gluBeginCurve(0) 19387 ; 19388 return 0; 19389} 19390_ACEOF 19391if ac_fn_c_try_link "$LINENO"; then : 19392 ax_cv_check_glu_libglu=yes 19393else 19394 LIBS="" 19395ax_check_libs="-lglu32 -lGLU" 19396for ax_lib in ${ax_check_libs}; do 19397 if test X$ax_compiler_ms = Xyes; then : 19398 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19399else 19400 ax_try_lib="${ax_lib}" 19401fi 19402 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19404/* end confdefs.h. */ 19405 19406# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19407# include <windows.h> 19408# endif 19409# ifdef HAVE_GL_GLU_H 19410# include <GL/glu.h> 19411# elif defined(HAVE_OPENGL_GLU_H) 19412# include <OpenGL/glu.h> 19413# else 19414# error no glu.h 19415# endif 19416int 19417main () 19418{ 19419gluBeginCurve(0) 19420 ; 19421 return 0; 19422} 19423_ACEOF 19424if ac_fn_c_try_link "$LINENO"; then : 19425 ax_cv_check_glu_libglu="${ax_try_lib}"; break 19426fi 19427rm -f core conftest.err conftest.$ac_objext \ 19428 conftest$ac_exeext conftest.$ac_ext 19429done 19430 19431fi 19432rm -f core conftest.err conftest.$ac_objext \ 19433 conftest$ac_exeext conftest.$ac_ext 19434if test X$ax_compiler_ms = Xyes; then : 19435 ac_ext=cpp 19436ac_cpp='$CXXCPP $CPPFLAGS' 19437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19440 19441fi 19442ac_ext=c 19443ac_cpp='$CPP $CPPFLAGS' 19444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19446ac_compiler_gnu=$ac_cv_c_compiler_gnu 19447 19448 19449LIBS=${ax_save_LIBS} 19450CPPFLAGS=${ax_save_CPPFLAGS} 19451fi 19452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 19453$as_echo "$ax_cv_check_glu_libglu" >&6; } 19454if test "X$ax_cv_check_glu_libglu" = Xno; then : 19455 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 19456else 19457 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 19458 GLU_LIBS="$GL_LIBS" 19459else 19460 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 19461fi 19462fi 19463 19464 19465 19466if test "X$ax_cv_check_glu_libglu" != Xno; then : 19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 19468$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 19469if ${ax_cv_varargs_glu_tesscb+:} false; then : 19470 $as_echo_n "(cached) " >&6 19471else 19472 ax_cv_varargs_glu_tesscb=no 19473ax_save_CFLAGS="$CFLAGS" 19474CFLAGS="$GL_CFLAGS $CFLAGS" 19475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19476/* end confdefs.h. */ 19477 19478# ifdef HAVE_GL_GLU_H 19479# include <GL/glu.h> 19480# else 19481# include <OpenGL/glu.h> 19482# endif 19483int 19484main () 19485{ 19486GLvoid (*func)(...); gluTessCallback(0, 0, func) 19487 ; 19488 return 0; 19489} 19490_ACEOF 19491if ac_fn_c_try_compile "$LINENO"; then : 19492 ax_cv_varargs_glu_tesscb=yes 19493fi 19494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19495CFLAGS="$ax_save_CFLAGS" 19496fi 19497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 19498$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 19499if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 19500 19501$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 19502 19503fi 19504fi 19505 19506 19507ax_save_CPPFLAGS="${CPPFLAGS}" 19508CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 19509for ac_header in GL/glut.h GLUT/glut.h 19510do : 19511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19512ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19514 cat >>confdefs.h <<_ACEOF 19515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19516_ACEOF 19517 19518fi 19519 19520done 19521 19522CPPFLAGS="${ax_save_CPPFLAGS}" 19523 19524GLUT_CFLAGS=${GLU_CFLAGS} 19525GLUT_LIBS=${GLU_LIBS} 19526 19527 19528 19529if test X$no_x != Xyes; then : 19530 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 19531fi 19532 19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 19534$as_echo_n "checking for GLUT library... " >&6; } 19535if ${ax_cv_check_glut_libglut+:} false; then : 19536 $as_echo_n "(cached) " >&6 19537else 19538 ax_cv_check_glut_libglut="no" 19539ac_ext=c 19540ac_cpp='$CPP $CPPFLAGS' 19541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19543ac_compiler_gnu=$ac_cv_c_compiler_gnu 19544 19545ax_save_CPPFLAGS="${CPPFLAGS}" 19546CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 19547ax_save_LIBS="${LIBS}" 19548LIBS="" 19549ax_check_libs="-lglut32 -lglut" 19550for ax_lib in ${ax_check_libs}; do 19551 if test X$ax_compiler_ms = Xyes; then : 19552 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19553else 19554 ax_try_lib="${ax_lib}" 19555fi 19556 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19558/* end confdefs.h. */ 19559 19560# if HAVE_WINDOWS_H && defined(_WIN32) 19561# include <windows.h> 19562# endif 19563# ifdef HAVE_GL_GLUT_H 19564# include <GL/glut.h> 19565# elif defined(HAVE_GLUT_GLUT_H) 19566# include <GLUT/glut.h> 19567# else 19568# error no glut.h 19569# endif 19570int 19571main () 19572{ 19573glutMainLoop() 19574 ; 19575 return 0; 19576} 19577_ACEOF 19578if ac_fn_c_try_link "$LINENO"; then : 19579 ax_cv_check_glut_libglut="${ax_try_lib}"; break 19580fi 19581rm -f core conftest.err conftest.$ac_objext \ 19582 conftest$ac_exeext conftest.$ac_ext 19583done 19584 19585if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 19586 LIBS='-framework GLUT' 19587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19588/* end confdefs.h. */ 19589 19590# if HAVE_WINDOWS_H && defined(_WIN32) 19591# include <windows.h> 19592# endif 19593# ifdef HAVE_GL_GLUT_H 19594# include <GL/glut.h> 19595# elif defined(HAVE_GLUT_GLUT_H) 19596# include <GLUT/glut.h> 19597# else 19598# error no glut.h 19599# endif 19600int 19601main () 19602{ 19603glutMainLoop() 19604 ; 19605 return 0; 19606} 19607_ACEOF 19608if ac_fn_c_try_link "$LINENO"; then : 19609 ax_cv_check_glut_libglut="$LIBS" 19610fi 19611rm -f core conftest.err conftest.$ac_objext \ 19612 conftest$ac_exeext conftest.$ac_ext 19613fi 19614 19615CPPFLAGS="${ax_save_CPPFLAGS}" 19616LIBS="${ax_save_LIBS}" 19617ac_ext=c 19618ac_cpp='$CPP $CPPFLAGS' 19619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19621ac_compiler_gnu=$ac_cv_c_compiler_gnu 19622 19623fi 19624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 19625$as_echo "$ax_cv_check_glut_libglut" >&6; } 19626 19627if test "X$ax_cv_check_glut_libglut" = Xno; then : 19628 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 19629else 19630 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 19631fi 19632 19633 19634 19635 19636 19637if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 19638 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 19639 HAVE_OPENGL=yes 19640fi 19641 19642 if test "$HAVE_OPENGL" = "yes"; then 19643 HAVE_OPENGL_TRUE= 19644 HAVE_OPENGL_FALSE='#' 19645else 19646 HAVE_OPENGL_TRUE='#' 19647 HAVE_OPENGL_FALSE= 19648fi 19649 19650 19651 19652win32_io_ok=no 19653case "${host_os}" in 19654 cygwin*) 19655 ;; 19656 *) 19657 if test x"$ac_cv_header_windows_h" = xyes; then 19658 win32_io_ok=yes 19659 19660$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 19661 19662 fi 19663 ;; 19664esac 19665 if test "$win32_io_ok" = yes; then 19666 WIN32_IO_TRUE= 19667 WIN32_IO_FALSE='#' 19668else 19669 WIN32_IO_TRUE='#' 19670 WIN32_IO_FALSE= 19671fi 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681# Check whether --enable-strip-chopping was given. 19682if test "${enable_strip_chopping+set}" = set; then : 19683 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 19684else 19685 HAVE_STRIPCHOP=yes 19686fi 19687 19688 19689# Check whether --with-default-strip-size was given. 19690if test "${with_default_strip_size+set}" = set; then : 19691 withval=$with_default_strip_size; 19692fi 19693 19694 19695if test "$HAVE_STRIPCHOP" = "yes" \ 19696 -a "x$with_default_strip_size" != "xno"; then 19697 19698$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 19699 19700 19701 if test "x$with_default_strip_size" = "x" \ 19702 -o "x$with_default_strip_size" = "xyes"; then 19703 with_default_strip_size="8192" 19704 fi 19705 19706 19707cat >>confdefs.h <<_ACEOF 19708#define STRIP_SIZE_DEFAULT $with_default_strip_size 19709_ACEOF 19710 19711 19712fi 19713 19714 19715# Check whether --enable-defer-strile-load was given. 19716if test "${enable_defer_strile_load+set}" = set; then : 19717 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 19718else 19719 HAVE_DEFER_STRILE_LOAD=no 19720fi 19721 19722 19723if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 19724 19725$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 19726 19727 19728fi 19729 19730 19731# Check whether --enable-chunky-strip-read was given. 19732if test "${enable_chunky_strip_read+set}" = set; then : 19733 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 19734else 19735 HAVE_CHUNKY_STRIP_READ=no 19736fi 19737 19738 19739if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 19740 19741$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 19742 19743 19744fi 19745 19746 19747$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 19748 19749 19750 19751# Check whether --enable-extrasample-as-alpha was given. 19752if test "${enable_extrasample_as_alpha+set}" = set; then : 19753 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 19754else 19755 HAVE_EXTRASAMPLE_AS_ALPHA=yes 19756fi 19757 19758 19759if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 19760 19761$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 19762 19763fi 19764 19765 19766# Check whether --enable-check-ycbcr-subsampling was given. 19767if test "${enable_check_ycbcr_subsampling+set}" = set; then : 19768 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 19769else 19770 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 19771fi 19772 19773 19774if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 19775 19776$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 19777 19778fi 19779 19780 19781 19782 19783ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 19784 19785 19786ac_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" 19787 19788cat >confcache <<\_ACEOF 19789# This file is a shell script that caches the results of configure 19790# tests run on this system so they can be shared between configure 19791# scripts and configure runs, see configure's option --config-cache. 19792# It is not useful on other systems. If it contains results you don't 19793# want to keep, you may remove or edit it. 19794# 19795# config.status only pays attention to the cache file if you give it 19796# the --recheck option to rerun configure. 19797# 19798# `ac_cv_env_foo' variables (set or unset) will be overridden when 19799# loading this file, other *unset* `ac_cv_foo' will be assigned the 19800# following values. 19801 19802_ACEOF 19803 19804# The following way of writing the cache mishandles newlines in values, 19805# but we know of no workaround that is simple, portable, and efficient. 19806# So, we kill variables containing newlines. 19807# Ultrix sh set writes to stderr and can't be redirected directly, 19808# and sets the high bit in the cache file unless we assign to the vars. 19809( 19810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19811 eval ac_val=\$$ac_var 19812 case $ac_val in #( 19813 *${as_nl}*) 19814 case $ac_var in #( 19815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19816$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19817 esac 19818 case $ac_var in #( 19819 _ | IFS | as_nl) ;; #( 19820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19821 *) { eval $ac_var=; unset $ac_var;} ;; 19822 esac ;; 19823 esac 19824 done 19825 19826 (set) 2>&1 | 19827 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19828 *${as_nl}ac_space=\ *) 19829 # `set' does not quote correctly, so add quotes: double-quote 19830 # substitution turns \\\\ into \\, and sed turns \\ into \. 19831 sed -n \ 19832 "s/'/'\\\\''/g; 19833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19834 ;; #( 19835 *) 19836 # `set' quotes correctly as required by POSIX, so do not add quotes. 19837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19838 ;; 19839 esac | 19840 sort 19841) | 19842 sed ' 19843 /^ac_cv_env_/b end 19844 t clear 19845 :clear 19846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19847 t end 19848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19849 :end' >>confcache 19850if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19851 if test -w "$cache_file"; then 19852 if test "x$cache_file" != "x/dev/null"; then 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19854$as_echo "$as_me: updating cache $cache_file" >&6;} 19855 if test ! -f "$cache_file" || test -h "$cache_file"; then 19856 cat confcache >"$cache_file" 19857 else 19858 case $cache_file in #( 19859 */* | ?:*) 19860 mv -f confcache "$cache_file"$$ && 19861 mv -f "$cache_file"$$ "$cache_file" ;; #( 19862 *) 19863 mv -f confcache "$cache_file" ;; 19864 esac 19865 fi 19866 fi 19867 else 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19869$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19870 fi 19871fi 19872rm -f confcache 19873 19874test "x$prefix" = xNONE && prefix=$ac_default_prefix 19875# Let make expand exec_prefix. 19876test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19877 19878DEFS=-DHAVE_CONFIG_H 19879 19880ac_libobjs= 19881ac_ltlibobjs= 19882U= 19883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19884 # 1. Remove the extension, and $U if already installed. 19885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19886 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19888 # will be set to the directory where LIBOBJS objects are built. 19889 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19890 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19891done 19892LIBOBJS=$ac_libobjs 19893 19894LTLIBOBJS=$ac_ltlibobjs 19895 19896 19897 if test -n "$EXEEXT"; then 19898 am__EXEEXT_TRUE= 19899 am__EXEEXT_FALSE='#' 19900else 19901 am__EXEEXT_TRUE='#' 19902 am__EXEEXT_FALSE= 19903fi 19904 19905if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19906 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19907Usually this means the macro was only invoked conditionally." "$LINENO" 5 19908fi 19909if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19910 as_fn_error $? "conditional \"AMDEP\" was never defined. 19911Usually this means the macro was only invoked conditionally." "$LINENO" 5 19912fi 19913if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19914 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19915Usually this means the macro was only invoked conditionally." "$LINENO" 5 19916fi 19917if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19918 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19919Usually this means the macro was only invoked conditionally." "$LINENO" 5 19920fi 19921 19922if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 19923 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 19924Usually this means the macro was only invoked conditionally." "$LINENO" 5 19925fi 19926if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 19927 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 19928Usually this means the macro was only invoked conditionally." "$LINENO" 5 19929fi 19930if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 19931 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 19932Usually this means the macro was only invoked conditionally." "$LINENO" 5 19933fi 19934if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 19935 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 19936Usually this means the macro was only invoked conditionally." "$LINENO" 5 19937fi 19938 19939: "${CONFIG_STATUS=./config.status}" 19940ac_write_fail=0 19941ac_clean_files_save=$ac_clean_files 19942ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19943{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19944$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19945as_write_fail=0 19946cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19947#! $SHELL 19948# Generated by $as_me. 19949# Run this file to recreate the current configuration. 19950# Compiler output produced by configure, useful for debugging 19951# configure, is in config.log if it exists. 19952 19953debug=false 19954ac_cs_recheck=false 19955ac_cs_silent=false 19956 19957SHELL=\${CONFIG_SHELL-$SHELL} 19958export SHELL 19959_ASEOF 19960cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19961## -------------------- ## 19962## M4sh Initialization. ## 19963## -------------------- ## 19964 19965# Be more Bourne compatible 19966DUALCASE=1; export DUALCASE # for MKS sh 19967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19968 emulate sh 19969 NULLCMD=: 19970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19971 # is contrary to our usage. Disable this feature. 19972 alias -g '${1+"$@"}'='"$@"' 19973 setopt NO_GLOB_SUBST 19974else 19975 case `(set -o) 2>/dev/null` in #( 19976 *posix*) : 19977 set -o posix ;; #( 19978 *) : 19979 ;; 19980esac 19981fi 19982 19983 19984as_nl=' 19985' 19986export as_nl 19987# Printing a long string crashes Solaris 7 /usr/bin/printf. 19988as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19989as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19991# Prefer a ksh shell builtin over an external printf program on Solaris, 19992# but without wasting forks for bash or zsh. 19993if test -z "$BASH_VERSION$ZSH_VERSION" \ 19994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19995 as_echo='print -r --' 19996 as_echo_n='print -rn --' 19997elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19998 as_echo='printf %s\n' 19999 as_echo_n='printf %s' 20000else 20001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20003 as_echo_n='/usr/ucb/echo -n' 20004 else 20005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20006 as_echo_n_body='eval 20007 arg=$1; 20008 case $arg in #( 20009 *"$as_nl"*) 20010 expr "X$arg" : "X\\(.*\\)$as_nl"; 20011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20012 esac; 20013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20014 ' 20015 export as_echo_n_body 20016 as_echo_n='sh -c $as_echo_n_body as_echo' 20017 fi 20018 export as_echo_body 20019 as_echo='sh -c $as_echo_body as_echo' 20020fi 20021 20022# The user is always right. 20023if test "${PATH_SEPARATOR+set}" != set; then 20024 PATH_SEPARATOR=: 20025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20027 PATH_SEPARATOR=';' 20028 } 20029fi 20030 20031 20032# IFS 20033# We need space, tab and new line, in precisely that order. Quoting is 20034# there to prevent editors from complaining about space-tab. 20035# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20036# splitting by setting IFS to empty value.) 20037IFS=" "" $as_nl" 20038 20039# Find who we are. Look in the path if we contain no directory separator. 20040as_myself= 20041case $0 in #(( 20042 *[\\/]* ) as_myself=$0 ;; 20043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20044for as_dir in $PATH 20045do 20046 IFS=$as_save_IFS 20047 test -z "$as_dir" && as_dir=. 20048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20049 done 20050IFS=$as_save_IFS 20051 20052 ;; 20053esac 20054# We did not find ourselves, most probably we were run as `sh COMMAND' 20055# in which case we are not to be found in the path. 20056if test "x$as_myself" = x; then 20057 as_myself=$0 20058fi 20059if test ! -f "$as_myself"; then 20060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20061 exit 1 20062fi 20063 20064# Unset variables that we do not need and which cause bugs (e.g. in 20065# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20066# suppresses any "Segmentation fault" message there. '((' could 20067# trigger a bug in pdksh 5.2.14. 20068for as_var in BASH_ENV ENV MAIL MAILPATH 20069do eval test x\${$as_var+set} = xset \ 20070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20071done 20072PS1='$ ' 20073PS2='> ' 20074PS4='+ ' 20075 20076# NLS nuisances. 20077LC_ALL=C 20078export LC_ALL 20079LANGUAGE=C 20080export LANGUAGE 20081 20082# CDPATH. 20083(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20084 20085 20086# as_fn_error STATUS ERROR [LINENO LOG_FD] 20087# ---------------------------------------- 20088# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20089# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20090# script with STATUS, using 1 if that was 0. 20091as_fn_error () 20092{ 20093 as_status=$1; test $as_status -eq 0 && as_status=1 20094 if test "$4"; then 20095 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20097 fi 20098 $as_echo "$as_me: error: $2" >&2 20099 as_fn_exit $as_status 20100} # as_fn_error 20101 20102 20103# as_fn_set_status STATUS 20104# ----------------------- 20105# Set $? to STATUS, without forking. 20106as_fn_set_status () 20107{ 20108 return $1 20109} # as_fn_set_status 20110 20111# as_fn_exit STATUS 20112# ----------------- 20113# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20114as_fn_exit () 20115{ 20116 set +e 20117 as_fn_set_status $1 20118 exit $1 20119} # as_fn_exit 20120 20121# as_fn_unset VAR 20122# --------------- 20123# Portably unset VAR. 20124as_fn_unset () 20125{ 20126 { eval $1=; unset $1;} 20127} 20128as_unset=as_fn_unset 20129# as_fn_append VAR VALUE 20130# ---------------------- 20131# Append the text in VALUE to the end of the definition contained in VAR. Take 20132# advantage of any shell optimizations that allow amortized linear growth over 20133# repeated appends, instead of the typical quadratic growth present in naive 20134# implementations. 20135if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20136 eval 'as_fn_append () 20137 { 20138 eval $1+=\$2 20139 }' 20140else 20141 as_fn_append () 20142 { 20143 eval $1=\$$1\$2 20144 } 20145fi # as_fn_append 20146 20147# as_fn_arith ARG... 20148# ------------------ 20149# Perform arithmetic evaluation on the ARGs, and store the result in the 20150# global $as_val. Take advantage of shells that can avoid forks. The arguments 20151# must be portable across $(()) and expr. 20152if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20153 eval 'as_fn_arith () 20154 { 20155 as_val=$(( $* )) 20156 }' 20157else 20158 as_fn_arith () 20159 { 20160 as_val=`expr "$@" || test $? -eq 1` 20161 } 20162fi # as_fn_arith 20163 20164 20165if expr a : '\(a\)' >/dev/null 2>&1 && 20166 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20167 as_expr=expr 20168else 20169 as_expr=false 20170fi 20171 20172if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20173 as_basename=basename 20174else 20175 as_basename=false 20176fi 20177 20178if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20179 as_dirname=dirname 20180else 20181 as_dirname=false 20182fi 20183 20184as_me=`$as_basename -- "$0" || 20185$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20186 X"$0" : 'X\(//\)$' \| \ 20187 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20188$as_echo X/"$0" | 20189 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20190 s//\1/ 20191 q 20192 } 20193 /^X\/\(\/\/\)$/{ 20194 s//\1/ 20195 q 20196 } 20197 /^X\/\(\/\).*/{ 20198 s//\1/ 20199 q 20200 } 20201 s/.*/./; q'` 20202 20203# Avoid depending upon Character Ranges. 20204as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20205as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20206as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20207as_cr_digits='0123456789' 20208as_cr_alnum=$as_cr_Letters$as_cr_digits 20209 20210ECHO_C= ECHO_N= ECHO_T= 20211case `echo -n x` in #((((( 20212-n*) 20213 case `echo 'xy\c'` in 20214 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20215 xy) ECHO_C='\c';; 20216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20217 ECHO_T=' ';; 20218 esac;; 20219*) 20220 ECHO_N='-n';; 20221esac 20222 20223rm -f conf$$ conf$$.exe conf$$.file 20224if test -d conf$$.dir; then 20225 rm -f conf$$.dir/conf$$.file 20226else 20227 rm -f conf$$.dir 20228 mkdir conf$$.dir 2>/dev/null 20229fi 20230if (echo >conf$$.file) 2>/dev/null; then 20231 if ln -s conf$$.file conf$$ 2>/dev/null; then 20232 as_ln_s='ln -s' 20233 # ... but there are two gotchas: 20234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20236 # In both cases, we have to default to `cp -p'. 20237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20238 as_ln_s='cp -p' 20239 elif ln conf$$.file conf$$ 2>/dev/null; then 20240 as_ln_s=ln 20241 else 20242 as_ln_s='cp -p' 20243 fi 20244else 20245 as_ln_s='cp -p' 20246fi 20247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20248rmdir conf$$.dir 2>/dev/null 20249 20250 20251# as_fn_mkdir_p 20252# ------------- 20253# Create "$as_dir" as a directory, including parents if necessary. 20254as_fn_mkdir_p () 20255{ 20256 20257 case $as_dir in #( 20258 -*) as_dir=./$as_dir;; 20259 esac 20260 test -d "$as_dir" || eval $as_mkdir_p || { 20261 as_dirs= 20262 while :; do 20263 case $as_dir in #( 20264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20265 *) as_qdir=$as_dir;; 20266 esac 20267 as_dirs="'$as_qdir' $as_dirs" 20268 as_dir=`$as_dirname -- "$as_dir" || 20269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20270 X"$as_dir" : 'X\(//\)[^/]' \| \ 20271 X"$as_dir" : 'X\(//\)$' \| \ 20272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20273$as_echo X"$as_dir" | 20274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20275 s//\1/ 20276 q 20277 } 20278 /^X\(\/\/\)[^/].*/{ 20279 s//\1/ 20280 q 20281 } 20282 /^X\(\/\/\)$/{ 20283 s//\1/ 20284 q 20285 } 20286 /^X\(\/\).*/{ 20287 s//\1/ 20288 q 20289 } 20290 s/.*/./; q'` 20291 test -d "$as_dir" && break 20292 done 20293 test -z "$as_dirs" || eval "mkdir $as_dirs" 20294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20295 20296 20297} # as_fn_mkdir_p 20298if mkdir -p . 2>/dev/null; then 20299 as_mkdir_p='mkdir -p "$as_dir"' 20300else 20301 test -d ./-p && rmdir ./-p 20302 as_mkdir_p=false 20303fi 20304 20305if test -x / >/dev/null 2>&1; then 20306 as_test_x='test -x' 20307else 20308 if ls -dL / >/dev/null 2>&1; then 20309 as_ls_L_option=L 20310 else 20311 as_ls_L_option= 20312 fi 20313 as_test_x=' 20314 eval sh -c '\'' 20315 if test -d "$1"; then 20316 test -d "$1/."; 20317 else 20318 case $1 in #( 20319 -*)set "./$1";; 20320 esac; 20321 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20322 ???[sx]*):;;*)false;;esac;fi 20323 '\'' sh 20324 ' 20325fi 20326as_executable_p=$as_test_x 20327 20328# Sed expression to map a string onto a valid CPP name. 20329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20330 20331# Sed expression to map a string onto a valid variable name. 20332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20333 20334 20335exec 6>&1 20336## ----------------------------------- ## 20337## Main body of $CONFIG_STATUS script. ## 20338## ----------------------------------- ## 20339_ASEOF 20340test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20341 20342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20343# Save the log message, to keep $0 and so on meaningful, and to 20344# report actual input values of CONFIG_FILES etc. instead of their 20345# values after options handling. 20346ac_log=" 20347This file was extended by LibTIFF Software $as_me 4.0.0beta7, which was 20348generated by GNU Autoconf 2.68. Invocation command line was 20349 20350 CONFIG_FILES = $CONFIG_FILES 20351 CONFIG_HEADERS = $CONFIG_HEADERS 20352 CONFIG_LINKS = $CONFIG_LINKS 20353 CONFIG_COMMANDS = $CONFIG_COMMANDS 20354 $ $0 $@ 20355 20356on `(hostname || uname -n) 2>/dev/null | sed 1q` 20357" 20358 20359_ACEOF 20360 20361case $ac_config_files in *" 20362"*) set x $ac_config_files; shift; ac_config_files=$*;; 20363esac 20364 20365case $ac_config_headers in *" 20366"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20367esac 20368 20369 20370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20371# Files that config.status was made for. 20372config_files="$ac_config_files" 20373config_headers="$ac_config_headers" 20374config_commands="$ac_config_commands" 20375 20376_ACEOF 20377 20378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20379ac_cs_usage="\ 20380\`$as_me' instantiates files and other configuration actions 20381from templates according to the current configuration. Unless the files 20382and actions are specified as TAGs, all are instantiated by default. 20383 20384Usage: $0 [OPTION]... [TAG]... 20385 20386 -h, --help print this help, then exit 20387 -V, --version print version number and configuration settings, then exit 20388 --config print configuration, then exit 20389 -q, --quiet, --silent 20390 do not print progress messages 20391 -d, --debug don't remove temporary files 20392 --recheck update $as_me by reconfiguring in the same conditions 20393 --file=FILE[:TEMPLATE] 20394 instantiate the configuration file FILE 20395 --header=FILE[:TEMPLATE] 20396 instantiate the configuration header FILE 20397 20398Configuration files: 20399$config_files 20400 20401Configuration headers: 20402$config_headers 20403 20404Configuration commands: 20405$config_commands 20406 20407Report bugs to <[email protected]>." 20408 20409_ACEOF 20410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20412ac_cs_version="\\ 20413LibTIFF Software config.status 4.0.0beta7 20414configured by $0, generated by GNU Autoconf 2.68, 20415 with options \\"\$ac_cs_config\\" 20416 20417Copyright (C) 2010 Free Software Foundation, Inc. 20418This config.status script is free software; the Free Software Foundation 20419gives unlimited permission to copy, distribute and modify it." 20420 20421ac_pwd='$ac_pwd' 20422srcdir='$srcdir' 20423INSTALL='$INSTALL' 20424MKDIR_P='$MKDIR_P' 20425AWK='$AWK' 20426test -n "\$AWK" || AWK=awk 20427_ACEOF 20428 20429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20430# The default lists apply if the user does not specify any file. 20431ac_need_defaults=: 20432while test $# != 0 20433do 20434 case $1 in 20435 --*=?*) 20436 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20438 ac_shift=: 20439 ;; 20440 --*=) 20441 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20442 ac_optarg= 20443 ac_shift=: 20444 ;; 20445 *) 20446 ac_option=$1 20447 ac_optarg=$2 20448 ac_shift=shift 20449 ;; 20450 esac 20451 20452 case $ac_option in 20453 # Handling of the options. 20454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20455 ac_cs_recheck=: ;; 20456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20457 $as_echo "$ac_cs_version"; exit ;; 20458 --config | --confi | --conf | --con | --co | --c ) 20459 $as_echo "$ac_cs_config"; exit ;; 20460 --debug | --debu | --deb | --de | --d | -d ) 20461 debug=: ;; 20462 --file | --fil | --fi | --f ) 20463 $ac_shift 20464 case $ac_optarg in 20465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20466 '') as_fn_error $? "missing file argument" ;; 20467 esac 20468 as_fn_append CONFIG_FILES " '$ac_optarg'" 20469 ac_need_defaults=false;; 20470 --header | --heade | --head | --hea ) 20471 $ac_shift 20472 case $ac_optarg in 20473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20474 esac 20475 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20476 ac_need_defaults=false;; 20477 --he | --h) 20478 # Conflict between --help and --header 20479 as_fn_error $? "ambiguous option: \`$1' 20480Try \`$0 --help' for more information.";; 20481 --help | --hel | -h ) 20482 $as_echo "$ac_cs_usage"; exit ;; 20483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20484 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20485 ac_cs_silent=: ;; 20486 20487 # This is an error. 20488 -*) as_fn_error $? "unrecognized option: \`$1' 20489Try \`$0 --help' for more information." ;; 20490 20491 *) as_fn_append ac_config_targets " $1" 20492 ac_need_defaults=false ;; 20493 20494 esac 20495 shift 20496done 20497 20498ac_configure_extra_args= 20499 20500if $ac_cs_silent; then 20501 exec 6>/dev/null 20502 ac_configure_extra_args="$ac_configure_extra_args --silent" 20503fi 20504 20505_ACEOF 20506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20507if \$ac_cs_recheck; then 20508 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20509 shift 20510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20511 CONFIG_SHELL='$SHELL' 20512 export CONFIG_SHELL 20513 exec "\$@" 20514fi 20515 20516_ACEOF 20517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20518exec 5>>config.log 20519{ 20520 echo 20521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20522## Running $as_me. ## 20523_ASBOX 20524 $as_echo "$ac_log" 20525} >&5 20526 20527_ACEOF 20528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20529# 20530# INIT-COMMANDS 20531# 20532AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20533 20534 20535# The HP-UX ksh and POSIX shell print the target directory to stdout 20536# if CDPATH is set. 20537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20538 20539sed_quote_subst='$sed_quote_subst' 20540double_quote_subst='$double_quote_subst' 20541delay_variable_subst='$delay_variable_subst' 20542macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20543macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20544AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20545DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20546OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20547enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20548enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20549pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20550enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20551SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20552ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20553PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20554host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20555host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20556host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20557build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20558build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20559build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20560SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20561Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20562GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20563EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20564FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20565LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20566NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20567LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20568max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20569ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20570exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20571lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20572lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20573lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20574lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20575lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20576reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20577reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20578deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20579file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20580file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20581want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20582sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20583AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20584AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20585archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20586STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20587RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20588old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20589old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20590old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20591lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20592CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20593CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20594compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20595GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20596lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20598lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20599lt_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"`' 20600nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20601lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20605lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20606lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20610MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20611DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20612NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20613LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20614OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20615OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20616libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20617shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20618extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20619archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20620enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20621export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20622whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20623compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20624old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20625old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20626archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20627archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20628module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20629module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20630with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20631allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20632no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20633hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20634hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20635hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20636hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20637hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20638hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20639hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20640inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20641link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20642always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20643export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20644exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20645include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20646prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20647postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20648file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20649variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20650need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20651need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20652version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20653runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20654shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20655shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20656libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20657library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20658soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20659install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20660postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20661postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20662finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20663finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20664hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20665sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20666sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20667hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20668enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20669enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20670enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20671old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20672striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20673compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20674predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20675postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20676predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20677postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20678compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20679LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20680reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20681reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20682old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20683compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20684GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20685lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20686lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20687lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20688lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20689lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20690archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20691enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20692export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20693whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20694compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20695old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20696old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20697archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20698archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20699module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20700module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20701with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20702allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20703no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20704hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20705hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20706hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20707hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20708hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20709hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20710hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20711inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20712link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20713always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20714export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20715exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20716include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20717prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20718postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20719file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20720hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20721compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20722predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20723postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20724predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20725postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20726compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20727 20728LTCC='$LTCC' 20729LTCFLAGS='$LTCFLAGS' 20730compiler='$compiler_DEFAULT' 20731 20732# A function that is used when there is no print builtin or printf. 20733func_fallback_echo () 20734{ 20735 eval 'cat <<_LTECHO_EOF 20736\$1 20737_LTECHO_EOF' 20738} 20739 20740# Quote evaled strings. 20741for var in AS \ 20742DLLTOOL \ 20743OBJDUMP \ 20744SHELL \ 20745ECHO \ 20746PATH_SEPARATOR \ 20747SED \ 20748GREP \ 20749EGREP \ 20750FGREP \ 20751LD \ 20752NM \ 20753LN_S \ 20754lt_SP2NL \ 20755lt_NL2SP \ 20756reload_flag \ 20757deplibs_check_method \ 20758file_magic_cmd \ 20759file_magic_glob \ 20760want_nocaseglob \ 20761sharedlib_from_linklib_cmd \ 20762AR \ 20763AR_FLAGS \ 20764archiver_list_spec \ 20765STRIP \ 20766RANLIB \ 20767CC \ 20768CFLAGS \ 20769compiler \ 20770lt_cv_sys_global_symbol_pipe \ 20771lt_cv_sys_global_symbol_to_cdecl \ 20772lt_cv_sys_global_symbol_to_c_name_address \ 20773lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20774nm_file_list_spec \ 20775lt_prog_compiler_no_builtin_flag \ 20776lt_prog_compiler_pic \ 20777lt_prog_compiler_wl \ 20778lt_prog_compiler_static \ 20779lt_cv_prog_compiler_c_o \ 20780need_locks \ 20781MANIFEST_TOOL \ 20782DSYMUTIL \ 20783NMEDIT \ 20784LIPO \ 20785OTOOL \ 20786OTOOL64 \ 20787shrext_cmds \ 20788export_dynamic_flag_spec \ 20789whole_archive_flag_spec \ 20790compiler_needs_object \ 20791with_gnu_ld \ 20792allow_undefined_flag \ 20793no_undefined_flag \ 20794hardcode_libdir_flag_spec \ 20795hardcode_libdir_separator \ 20796exclude_expsyms \ 20797include_expsyms \ 20798file_list_spec \ 20799variables_saved_for_relink \ 20800libname_spec \ 20801library_names_spec \ 20802soname_spec \ 20803install_override_mode \ 20804finish_eval \ 20805old_striplib \ 20806striplib \ 20807compiler_lib_search_dirs \ 20808predep_objects \ 20809postdep_objects \ 20810predeps \ 20811postdeps \ 20812compiler_lib_search_path \ 20813LD_CXX \ 20814reload_flag_CXX \ 20815compiler_CXX \ 20816lt_prog_compiler_no_builtin_flag_CXX \ 20817lt_prog_compiler_pic_CXX \ 20818lt_prog_compiler_wl_CXX \ 20819lt_prog_compiler_static_CXX \ 20820lt_cv_prog_compiler_c_o_CXX \ 20821export_dynamic_flag_spec_CXX \ 20822whole_archive_flag_spec_CXX \ 20823compiler_needs_object_CXX \ 20824with_gnu_ld_CXX \ 20825allow_undefined_flag_CXX \ 20826no_undefined_flag_CXX \ 20827hardcode_libdir_flag_spec_CXX \ 20828hardcode_libdir_separator_CXX \ 20829exclude_expsyms_CXX \ 20830include_expsyms_CXX \ 20831file_list_spec_CXX \ 20832compiler_lib_search_dirs_CXX \ 20833predep_objects_CXX \ 20834postdep_objects_CXX \ 20835predeps_CXX \ 20836postdeps_CXX \ 20837compiler_lib_search_path_CXX; do 20838 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20839 *[\\\\\\\`\\"\\\$]*) 20840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20841 ;; 20842 *) 20843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20844 ;; 20845 esac 20846done 20847 20848# Double-quote double-evaled strings. 20849for var in reload_cmds \ 20850old_postinstall_cmds \ 20851old_postuninstall_cmds \ 20852old_archive_cmds \ 20853extract_expsyms_cmds \ 20854old_archive_from_new_cmds \ 20855old_archive_from_expsyms_cmds \ 20856archive_cmds \ 20857archive_expsym_cmds \ 20858module_cmds \ 20859module_expsym_cmds \ 20860export_symbols_cmds \ 20861prelink_cmds \ 20862postlink_cmds \ 20863postinstall_cmds \ 20864postuninstall_cmds \ 20865finish_cmds \ 20866sys_lib_search_path_spec \ 20867sys_lib_dlsearch_path_spec \ 20868reload_cmds_CXX \ 20869old_archive_cmds_CXX \ 20870old_archive_from_new_cmds_CXX \ 20871old_archive_from_expsyms_cmds_CXX \ 20872archive_cmds_CXX \ 20873archive_expsym_cmds_CXX \ 20874module_cmds_CXX \ 20875module_expsym_cmds_CXX \ 20876export_symbols_cmds_CXX \ 20877prelink_cmds_CXX \ 20878postlink_cmds_CXX; do 20879 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20880 *[\\\\\\\`\\"\\\$]*) 20881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20882 ;; 20883 *) 20884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20885 ;; 20886 esac 20887done 20888 20889ac_aux_dir='$ac_aux_dir' 20890xsi_shell='$xsi_shell' 20891lt_shell_append='$lt_shell_append' 20892 20893# See if we are running on zsh, and set the options which allow our 20894# commands through without removal of \ escapes INIT. 20895if test -n "\${ZSH_VERSION+set}" ; then 20896 setopt NO_GLOB_SUBST 20897fi 20898 20899 20900 PACKAGE='$PACKAGE' 20901 VERSION='$VERSION' 20902 TIMESTAMP='$TIMESTAMP' 20903 RM='$RM' 20904 ofile='$ofile' 20905 20906 20907 20908 20909 20910 20911_ACEOF 20912 20913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20914 20915# Handling of arguments. 20916for ac_config_target in $ac_config_targets 20917do 20918 case $ac_config_target in 20919 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20920 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20921 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 20922 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 20923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20924 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 20925 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 20926 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 20927 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 20928 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 20929 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 20930 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 20931 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 20932 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 20933 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 20934 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 20935 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 20936 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 20937 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 20938 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 20939 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 20940 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 20941 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20942 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 20943 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20944 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 20945 20946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20947 esac 20948done 20949 20950 20951# If the user did not use the arguments to specify the items to instantiate, 20952# then the envvar interface is used. Set only those that are not. 20953# We use the long form for the default assignment because of an extremely 20954# bizarre bug on SunOS 4.1.3. 20955if $ac_need_defaults; then 20956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20959fi 20960 20961# Have a temporary directory for convenience. Make it in the build tree 20962# simply because there is no reason against having it here, and in addition, 20963# creating and moving files from /tmp can sometimes cause problems. 20964# Hook for its removal unless debugging. 20965# Note that there is a small window in which the directory will not be cleaned: 20966# after its creation but before its name has been assigned to `$tmp'. 20967$debug || 20968{ 20969 tmp= ac_tmp= 20970 trap 'exit_status=$? 20971 : "${ac_tmp:=$tmp}" 20972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20973' 0 20974 trap 'as_fn_exit 1' 1 2 13 15 20975} 20976# Create a (secure) tmp directory for tmp files. 20977 20978{ 20979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20980 test -d "$tmp" 20981} || 20982{ 20983 tmp=./conf$$-$RANDOM 20984 (umask 077 && mkdir "$tmp") 20985} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20986ac_tmp=$tmp 20987 20988# Set up the scripts for CONFIG_FILES section. 20989# No need to generate them if there are no CONFIG_FILES. 20990# This happens for instance with `./config.status config.h'. 20991if test -n "$CONFIG_FILES"; then 20992 20993 20994ac_cr=`echo X | tr X '\015'` 20995# On cygwin, bash can eat \r inside `` if the user requested igncr. 20996# But we know of no other shell where ac_cr would be empty at this 20997# point, so we can use a bashism as a fallback. 20998if test "x$ac_cr" = x; then 20999 eval ac_cr=\$\'\\r\' 21000fi 21001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21003 ac_cs_awk_cr='\\r' 21004else 21005 ac_cs_awk_cr=$ac_cr 21006fi 21007 21008echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21009_ACEOF 21010 21011 21012{ 21013 echo "cat >conf$$subs.awk <<_ACEOF" && 21014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21015 echo "_ACEOF" 21016} >conf$$subs.sh || 21017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21019ac_delim='%!_!# ' 21020for ac_last_try in false false false false false :; do 21021 . ./conf$$subs.sh || 21022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21023 21024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21025 if test $ac_delim_n = $ac_delim_num; then 21026 break 21027 elif $ac_last_try; then 21028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21029 else 21030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21031 fi 21032done 21033rm -f conf$$subs.sh 21034 21035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21036cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21037_ACEOF 21038sed -n ' 21039h 21040s/^/S["/; s/!.*/"]=/ 21041p 21042g 21043s/^[^!]*!// 21044:repl 21045t repl 21046s/'"$ac_delim"'$// 21047t delim 21048:nl 21049h 21050s/\(.\{148\}\)..*/\1/ 21051t more1 21052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21053p 21054n 21055b repl 21056:more1 21057s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21058p 21059g 21060s/.\{148\}// 21061t nl 21062:delim 21063h 21064s/\(.\{148\}\)..*/\1/ 21065t more2 21066s/["\\]/\\&/g; s/^/"/; s/$/"/ 21067p 21068b 21069:more2 21070s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21071p 21072g 21073s/.\{148\}// 21074t delim 21075' <conf$$subs.awk | sed ' 21076/^[^""]/{ 21077 N 21078 s/\n// 21079} 21080' >>$CONFIG_STATUS || ac_write_fail=1 21081rm -f conf$$subs.awk 21082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21083_ACAWK 21084cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21085 for (key in S) S_is_set[key] = 1 21086 FS = "" 21087 21088} 21089{ 21090 line = $ 0 21091 nfields = split(line, field, "@") 21092 substed = 0 21093 len = length(field[1]) 21094 for (i = 2; i < nfields; i++) { 21095 key = field[i] 21096 keylen = length(key) 21097 if (S_is_set[key]) { 21098 value = S[key] 21099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21100 len += length(value) + length(field[++i]) 21101 substed = 1 21102 } else 21103 len += 1 + keylen 21104 } 21105 21106 print line 21107} 21108 21109_ACAWK 21110_ACEOF 21111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21114else 21115 cat 21116fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21118_ACEOF 21119 21120# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21122# trailing colons and then remove the whole line if VPATH becomes empty 21123# (actually we leave an empty line to preserve line numbers). 21124if test "x$srcdir" = x.; then 21125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21126h 21127s/// 21128s/^/:/ 21129s/[ ]*$/:/ 21130s/:\$(srcdir):/:/g 21131s/:\${srcdir}:/:/g 21132s/:@srcdir@:/:/g 21133s/^:*// 21134s/:*$// 21135x 21136s/\(=[ ]*\).*/\1/ 21137G 21138s/\n// 21139s/^[^=]*=[ ]*$// 21140}' 21141fi 21142 21143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21144fi # test -n "$CONFIG_FILES" 21145 21146# Set up the scripts for CONFIG_HEADERS section. 21147# No need to generate them if there are no CONFIG_HEADERS. 21148# This happens for instance with `./config.status Makefile'. 21149if test -n "$CONFIG_HEADERS"; then 21150cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21151BEGIN { 21152_ACEOF 21153 21154# Transform confdefs.h into an awk script `defines.awk', embedded as 21155# here-document in config.status, that substitutes the proper values into 21156# config.h.in to produce config.h. 21157 21158# Create a delimiter string that does not exist in confdefs.h, to ease 21159# handling of long lines. 21160ac_delim='%!_!# ' 21161for ac_last_try in false false :; do 21162 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21163 if test -z "$ac_tt"; then 21164 break 21165 elif $ac_last_try; then 21166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21167 else 21168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21169 fi 21170done 21171 21172# For the awk script, D is an array of macro values keyed by name, 21173# likewise P contains macro parameters if any. Preserve backslash 21174# newline sequences. 21175 21176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21177sed -n ' 21178s/.\{148\}/&'"$ac_delim"'/g 21179t rset 21180:rset 21181s/^[ ]*#[ ]*define[ ][ ]*/ / 21182t def 21183d 21184:def 21185s/\\$// 21186t bsnl 21187s/["\\]/\\&/g 21188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21189D["\1"]=" \3"/p 21190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21191d 21192:bsnl 21193s/["\\]/\\&/g 21194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21195D["\1"]=" \3\\\\\\n"\\/p 21196t cont 21197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21198t cont 21199d 21200:cont 21201n 21202s/.\{148\}/&'"$ac_delim"'/g 21203t clear 21204:clear 21205s/\\$// 21206t bsnlc 21207s/["\\]/\\&/g; s/^/"/; s/$/"/p 21208d 21209:bsnlc 21210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21211b cont 21212' <confdefs.h | sed ' 21213s/'"$ac_delim"'/"\\\ 21214"/g' >>$CONFIG_STATUS || ac_write_fail=1 21215 21216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21217 for (key in D) D_is_set[key] = 1 21218 FS = "" 21219} 21220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21221 line = \$ 0 21222 split(line, arg, " ") 21223 if (arg[1] == "#") { 21224 defundef = arg[2] 21225 mac1 = arg[3] 21226 } else { 21227 defundef = substr(arg[1], 2) 21228 mac1 = arg[2] 21229 } 21230 split(mac1, mac2, "(") #) 21231 macro = mac2[1] 21232 prefix = substr(line, 1, index(line, defundef) - 1) 21233 if (D_is_set[macro]) { 21234 # Preserve the white space surrounding the "#". 21235 print prefix "define", macro P[macro] D[macro] 21236 next 21237 } else { 21238 # Replace #undef with comments. This is necessary, for example, 21239 # in the case of _POSIX_SOURCE, which is predefined and required 21240 # on some systems where configure will not decide to define it. 21241 if (defundef == "undef") { 21242 print "/*", prefix defundef, macro, "*/" 21243 next 21244 } 21245 } 21246} 21247{ print } 21248_ACAWK 21249_ACEOF 21250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21252fi # test -n "$CONFIG_HEADERS" 21253 21254 21255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21256shift 21257for ac_tag 21258do 21259 case $ac_tag in 21260 :[FHLC]) ac_mode=$ac_tag; continue;; 21261 esac 21262 case $ac_mode$ac_tag in 21263 :[FHL]*:*);; 21264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21265 :[FH]-) ac_tag=-:-;; 21266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21267 esac 21268 ac_save_IFS=$IFS 21269 IFS=: 21270 set x $ac_tag 21271 IFS=$ac_save_IFS 21272 shift 21273 ac_file=$1 21274 shift 21275 21276 case $ac_mode in 21277 :L) ac_source=$1;; 21278 :[FH]) 21279 ac_file_inputs= 21280 for ac_f 21281 do 21282 case $ac_f in 21283 -) ac_f="$ac_tmp/stdin";; 21284 *) # Look for the file first in the build tree, then in the source tree 21285 # (if the path is not absolute). The absolute path cannot be DOS-style, 21286 # because $ac_f cannot contain `:'. 21287 test -f "$ac_f" || 21288 case $ac_f in 21289 [\\/$]*) false;; 21290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21291 esac || 21292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21293 esac 21294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21295 as_fn_append ac_file_inputs " '$ac_f'" 21296 done 21297 21298 # Let's still pretend it is `configure' which instantiates (i.e., don't 21299 # use $as_me), people would be surprised to read: 21300 # /* config.h. Generated by config.status. */ 21301 configure_input='Generated from '` 21302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21303 `' by configure.' 21304 if test x"$ac_file" != x-; then 21305 configure_input="$ac_file. $configure_input" 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21307$as_echo "$as_me: creating $ac_file" >&6;} 21308 fi 21309 # Neutralize special characters interpreted by sed in replacement strings. 21310 case $configure_input in #( 21311 *\&* | *\|* | *\\* ) 21312 ac_sed_conf_input=`$as_echo "$configure_input" | 21313 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21314 *) ac_sed_conf_input=$configure_input;; 21315 esac 21316 21317 case $ac_tag in 21318 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21320 esac 21321 ;; 21322 esac 21323 21324 ac_dir=`$as_dirname -- "$ac_file" || 21325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21326 X"$ac_file" : 'X\(//\)[^/]' \| \ 21327 X"$ac_file" : 'X\(//\)$' \| \ 21328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21329$as_echo X"$ac_file" | 21330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21331 s//\1/ 21332 q 21333 } 21334 /^X\(\/\/\)[^/].*/{ 21335 s//\1/ 21336 q 21337 } 21338 /^X\(\/\/\)$/{ 21339 s//\1/ 21340 q 21341 } 21342 /^X\(\/\).*/{ 21343 s//\1/ 21344 q 21345 } 21346 s/.*/./; q'` 21347 as_dir="$ac_dir"; as_fn_mkdir_p 21348 ac_builddir=. 21349 21350case "$ac_dir" in 21351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21352*) 21353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21354 # A ".." for each directory in $ac_dir_suffix. 21355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21356 case $ac_top_builddir_sub in 21357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21359 esac ;; 21360esac 21361ac_abs_top_builddir=$ac_pwd 21362ac_abs_builddir=$ac_pwd$ac_dir_suffix 21363# for backward compatibility: 21364ac_top_builddir=$ac_top_build_prefix 21365 21366case $srcdir in 21367 .) # We are building in place. 21368 ac_srcdir=. 21369 ac_top_srcdir=$ac_top_builddir_sub 21370 ac_abs_top_srcdir=$ac_pwd ;; 21371 [\\/]* | ?:[\\/]* ) # Absolute name. 21372 ac_srcdir=$srcdir$ac_dir_suffix; 21373 ac_top_srcdir=$srcdir 21374 ac_abs_top_srcdir=$srcdir ;; 21375 *) # Relative name. 21376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21377 ac_top_srcdir=$ac_top_build_prefix$srcdir 21378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21379esac 21380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21381 21382 21383 case $ac_mode in 21384 :F) 21385 # 21386 # CONFIG_FILE 21387 # 21388 21389 case $INSTALL in 21390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21392 esac 21393 ac_MKDIR_P=$MKDIR_P 21394 case $MKDIR_P in 21395 [\\/$]* | ?:[\\/]* ) ;; 21396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21397 esac 21398_ACEOF 21399 21400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21401# If the template does not know about datarootdir, expand it. 21402# FIXME: This hack should be removed a few years after 2.60. 21403ac_datarootdir_hack=; ac_datarootdir_seen= 21404ac_sed_dataroot=' 21405/datarootdir/ { 21406 p 21407 q 21408} 21409/@datadir@/p 21410/@docdir@/p 21411/@infodir@/p 21412/@localedir@/p 21413/@mandir@/p' 21414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21415*datarootdir*) ac_datarootdir_seen=yes;; 21416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21419_ACEOF 21420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21421 ac_datarootdir_hack=' 21422 s&@datadir@&$datadir&g 21423 s&@docdir@&$docdir&g 21424 s&@infodir@&$infodir&g 21425 s&@localedir@&$localedir&g 21426 s&@mandir@&$mandir&g 21427 s&\\\${datarootdir}&$datarootdir&g' ;; 21428esac 21429_ACEOF 21430 21431# Neutralize VPATH when `$srcdir' = `.'. 21432# Shell code in configure.ac might set extrasub. 21433# FIXME: do we really want to maintain this feature? 21434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21435ac_sed_extra="$ac_vpsub 21436$extrasub 21437_ACEOF 21438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21439:t 21440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21441s|@configure_input@|$ac_sed_conf_input|;t t 21442s&@top_builddir@&$ac_top_builddir_sub&;t t 21443s&@top_build_prefix@&$ac_top_build_prefix&;t t 21444s&@srcdir@&$ac_srcdir&;t t 21445s&@abs_srcdir@&$ac_abs_srcdir&;t t 21446s&@top_srcdir@&$ac_top_srcdir&;t t 21447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21448s&@builddir@&$ac_builddir&;t t 21449s&@abs_builddir@&$ac_abs_builddir&;t t 21450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21451s&@INSTALL@&$ac_INSTALL&;t t 21452s&@MKDIR_P@&$ac_MKDIR_P&;t t 21453$ac_datarootdir_hack 21454" 21455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21457 21458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21461 "$ac_tmp/out"`; test -z "$ac_out"; } && 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21463which seems to be undefined. Please make sure it is defined" >&5 21464$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21465which seems to be undefined. Please make sure it is defined" >&2;} 21466 21467 rm -f "$ac_tmp/stdin" 21468 case $ac_file in 21469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21471 esac \ 21472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21473 ;; 21474 :H) 21475 # 21476 # CONFIG_HEADER 21477 # 21478 if test x"$ac_file" != x-; then 21479 { 21480 $as_echo "/* $configure_input */" \ 21481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21482 } >"$ac_tmp/config.h" \ 21483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21486$as_echo "$as_me: $ac_file is unchanged" >&6;} 21487 else 21488 rm -f "$ac_file" 21489 mv "$ac_tmp/config.h" "$ac_file" \ 21490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21491 fi 21492 else 21493 $as_echo "/* $configure_input */" \ 21494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21495 || as_fn_error $? "could not create -" "$LINENO" 5 21496 fi 21497# Compute "$ac_file"'s index in $config_headers. 21498_am_arg="$ac_file" 21499_am_stamp_count=1 21500for _am_header in $config_headers :; do 21501 case $_am_header in 21502 $_am_arg | $_am_arg:* ) 21503 break ;; 21504 * ) 21505 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21506 esac 21507done 21508echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21509$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21510 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21511 X"$_am_arg" : 'X\(//\)$' \| \ 21512 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21513$as_echo X"$_am_arg" | 21514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21515 s//\1/ 21516 q 21517 } 21518 /^X\(\/\/\)[^/].*/{ 21519 s//\1/ 21520 q 21521 } 21522 /^X\(\/\/\)$/{ 21523 s//\1/ 21524 q 21525 } 21526 /^X\(\/\).*/{ 21527 s//\1/ 21528 q 21529 } 21530 s/.*/./; q'`/stamp-h$_am_stamp_count 21531 ;; 21532 21533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21534$as_echo "$as_me: executing $ac_file commands" >&6;} 21535 ;; 21536 esac 21537 21538 21539 case $ac_file$ac_mode in 21540 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21541 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21542 # are listed without --file. Let's play safe and only enable the eval 21543 # if we detect the quoting. 21544 case $CONFIG_FILES in 21545 *\'*) eval set x "$CONFIG_FILES" ;; 21546 *) set x $CONFIG_FILES ;; 21547 esac 21548 shift 21549 for mf 21550 do 21551 # Strip MF so we end up with the name of the file. 21552 mf=`echo "$mf" | sed -e 's/:.*$//'` 21553 # Check whether this is an Automake generated Makefile or not. 21554 # We used to match only the files named `Makefile.in', but 21555 # some people rename them; so instead we look at the file content. 21556 # Grep'ing the first line is not enough: some people post-process 21557 # each Makefile.in and add a new line on top of each file to say so. 21558 # Grep'ing the whole file is not good either: AIX grep has a line 21559 # limit of 2048, but all sed's we know have understand at least 4000. 21560 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21561 dirpart=`$as_dirname -- "$mf" || 21562$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21563 X"$mf" : 'X\(//\)[^/]' \| \ 21564 X"$mf" : 'X\(//\)$' \| \ 21565 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21566$as_echo X"$mf" | 21567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21568 s//\1/ 21569 q 21570 } 21571 /^X\(\/\/\)[^/].*/{ 21572 s//\1/ 21573 q 21574 } 21575 /^X\(\/\/\)$/{ 21576 s//\1/ 21577 q 21578 } 21579 /^X\(\/\).*/{ 21580 s//\1/ 21581 q 21582 } 21583 s/.*/./; q'` 21584 else 21585 continue 21586 fi 21587 # Extract the definition of DEPDIR, am__include, and am__quote 21588 # from the Makefile without running `make'. 21589 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21590 test -z "$DEPDIR" && continue 21591 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21592 test -z "am__include" && continue 21593 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21594 # When using ansi2knr, U may be empty or an underscore; expand it 21595 U=`sed -n 's/^U = //p' < "$mf"` 21596 # Find all dependency output files, they are included files with 21597 # $(DEPDIR) in their names. We invoke sed twice because it is the 21598 # simplest approach to changing $(DEPDIR) to its actual value in the 21599 # expansion. 21600 for file in `sed -n " 21601 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21602 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21603 # Make sure the directory exists. 21604 test -f "$dirpart/$file" && continue 21605 fdir=`$as_dirname -- "$file" || 21606$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21607 X"$file" : 'X\(//\)[^/]' \| \ 21608 X"$file" : 'X\(//\)$' \| \ 21609 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21610$as_echo X"$file" | 21611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21612 s//\1/ 21613 q 21614 } 21615 /^X\(\/\/\)[^/].*/{ 21616 s//\1/ 21617 q 21618 } 21619 /^X\(\/\/\)$/{ 21620 s//\1/ 21621 q 21622 } 21623 /^X\(\/\).*/{ 21624 s//\1/ 21625 q 21626 } 21627 s/.*/./; q'` 21628 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21629 # echo "creating $dirpart/$file" 21630 echo '# dummy' > "$dirpart/$file" 21631 done 21632 done 21633} 21634 ;; 21635 "libtool":C) 21636 21637 # See if we are running on zsh, and set the options which allow our 21638 # commands through without removal of \ escapes. 21639 if test -n "${ZSH_VERSION+set}" ; then 21640 setopt NO_GLOB_SUBST 21641 fi 21642 21643 cfgfile="${ofile}T" 21644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21645 $RM "$cfgfile" 21646 21647 cat <<_LT_EOF >> "$cfgfile" 21648#! $SHELL 21649 21650# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21651# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21653# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21654# 21655# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21656# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21657# Foundation, Inc. 21658# Written by Gordon Matzigkeit, 1996 21659# 21660# This file is part of GNU Libtool. 21661# 21662# GNU Libtool is free software; you can redistribute it and/or 21663# modify it under the terms of the GNU General Public License as 21664# published by the Free Software Foundation; either version 2 of 21665# the License, or (at your option) any later version. 21666# 21667# As a special exception to the GNU General Public License, 21668# if you distribute this file as part of a program or library that 21669# is built using GNU Libtool, you may include this file under the 21670# same distribution terms that you use for the rest of that program. 21671# 21672# GNU Libtool is distributed in the hope that it will be useful, 21673# but WITHOUT ANY WARRANTY; without even the implied warranty of 21674# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21675# GNU General Public License for more details. 21676# 21677# You should have received a copy of the GNU General Public License 21678# along with GNU Libtool; see the file COPYING. If not, a copy 21679# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21680# obtained by writing to the Free Software Foundation, Inc., 21681# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21682 21683 21684# The names of the tagged configurations supported by this script. 21685available_tags="CXX " 21686 21687# ### BEGIN LIBTOOL CONFIG 21688 21689# Which release of libtool.m4 was used? 21690macro_version=$macro_version 21691macro_revision=$macro_revision 21692 21693# Assembler program. 21694AS=$lt_AS 21695 21696# DLL creation program. 21697DLLTOOL=$lt_DLLTOOL 21698 21699# Object dumper program. 21700OBJDUMP=$lt_OBJDUMP 21701 21702# Whether or not to build shared libraries. 21703build_libtool_libs=$enable_shared 21704 21705# Whether or not to build static libraries. 21706build_old_libs=$enable_static 21707 21708# What type of objects to build. 21709pic_mode=$pic_mode 21710 21711# Whether or not to optimize for fast installation. 21712fast_install=$enable_fast_install 21713 21714# Shell to use when invoking shell scripts. 21715SHELL=$lt_SHELL 21716 21717# An echo program that protects backslashes. 21718ECHO=$lt_ECHO 21719 21720# The PATH separator for the build system. 21721PATH_SEPARATOR=$lt_PATH_SEPARATOR 21722 21723# The host system. 21724host_alias=$host_alias 21725host=$host 21726host_os=$host_os 21727 21728# The build system. 21729build_alias=$build_alias 21730build=$build 21731build_os=$build_os 21732 21733# A sed program that does not truncate output. 21734SED=$lt_SED 21735 21736# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21737Xsed="\$SED -e 1s/^X//" 21738 21739# A grep program that handles long lines. 21740GREP=$lt_GREP 21741 21742# An ERE matcher. 21743EGREP=$lt_EGREP 21744 21745# A literal string matcher. 21746FGREP=$lt_FGREP 21747 21748# A BSD- or MS-compatible name lister. 21749NM=$lt_NM 21750 21751# Whether we need soft or hard links. 21752LN_S=$lt_LN_S 21753 21754# What is the maximum length of a command? 21755max_cmd_len=$max_cmd_len 21756 21757# Object file suffix (normally "o"). 21758objext=$ac_objext 21759 21760# Executable file suffix (normally ""). 21761exeext=$exeext 21762 21763# whether the shell understands "unset". 21764lt_unset=$lt_unset 21765 21766# turn spaces into newlines. 21767SP2NL=$lt_lt_SP2NL 21768 21769# turn newlines into spaces. 21770NL2SP=$lt_lt_NL2SP 21771 21772# convert \$build file names to \$host format. 21773to_host_file_cmd=$lt_cv_to_host_file_cmd 21774 21775# convert \$build files to toolchain format. 21776to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21777 21778# Method to check whether dependent libraries are shared objects. 21779deplibs_check_method=$lt_deplibs_check_method 21780 21781# Command to use when deplibs_check_method = "file_magic". 21782file_magic_cmd=$lt_file_magic_cmd 21783 21784# How to find potential files when deplibs_check_method = "file_magic". 21785file_magic_glob=$lt_file_magic_glob 21786 21787# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21788want_nocaseglob=$lt_want_nocaseglob 21789 21790# Command to associate shared and link libraries. 21791sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21792 21793# The archiver. 21794AR=$lt_AR 21795 21796# Flags to create an archive. 21797AR_FLAGS=$lt_AR_FLAGS 21798 21799# How to feed a file listing to the archiver. 21800archiver_list_spec=$lt_archiver_list_spec 21801 21802# A symbol stripping program. 21803STRIP=$lt_STRIP 21804 21805# Commands used to install an old-style archive. 21806RANLIB=$lt_RANLIB 21807old_postinstall_cmds=$lt_old_postinstall_cmds 21808old_postuninstall_cmds=$lt_old_postuninstall_cmds 21809 21810# Whether to use a lock for old archive extraction. 21811lock_old_archive_extraction=$lock_old_archive_extraction 21812 21813# A C compiler. 21814LTCC=$lt_CC 21815 21816# LTCC compiler flags. 21817LTCFLAGS=$lt_CFLAGS 21818 21819# Take the output of nm and produce a listing of raw symbols and C names. 21820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21821 21822# Transform the output of nm in a proper C declaration. 21823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21824 21825# Transform the output of nm in a C name address pair. 21826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21827 21828# Transform the output of nm in a C name address pair when lib prefix is needed. 21829global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21830 21831# Specify filename containing input files for \$NM. 21832nm_file_list_spec=$lt_nm_file_list_spec 21833 21834# The root where to search for dependent libraries,and in which our libraries should be installed. 21835lt_sysroot=$lt_sysroot 21836 21837# The name of the directory that contains temporary libtool files. 21838objdir=$objdir 21839 21840# Used to examine libraries when file_magic_cmd begins with "file". 21841MAGIC_CMD=$MAGIC_CMD 21842 21843# Must we lock files when doing compilation? 21844need_locks=$lt_need_locks 21845 21846# Manifest tool. 21847MANIFEST_TOOL=$lt_MANIFEST_TOOL 21848 21849# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21850DSYMUTIL=$lt_DSYMUTIL 21851 21852# Tool to change global to local symbols on Mac OS X. 21853NMEDIT=$lt_NMEDIT 21854 21855# Tool to manipulate fat objects and archives on Mac OS X. 21856LIPO=$lt_LIPO 21857 21858# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21859OTOOL=$lt_OTOOL 21860 21861# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21862OTOOL64=$lt_OTOOL64 21863 21864# Old archive suffix (normally "a"). 21865libext=$libext 21866 21867# Shared library suffix (normally ".so"). 21868shrext_cmds=$lt_shrext_cmds 21869 21870# The commands to extract the exported symbol list from a shared archive. 21871extract_expsyms_cmds=$lt_extract_expsyms_cmds 21872 21873# Variables whose values should be saved in libtool wrapper scripts and 21874# restored at link time. 21875variables_saved_for_relink=$lt_variables_saved_for_relink 21876 21877# Do we need the "lib" prefix for modules? 21878need_lib_prefix=$need_lib_prefix 21879 21880# Do we need a version for libraries? 21881need_version=$need_version 21882 21883# Library versioning type. 21884version_type=$version_type 21885 21886# Shared library runtime path variable. 21887runpath_var=$runpath_var 21888 21889# Shared library path variable. 21890shlibpath_var=$shlibpath_var 21891 21892# Is shlibpath searched before the hard-coded library search path? 21893shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21894 21895# Format of library name prefix. 21896libname_spec=$lt_libname_spec 21897 21898# List of archive names. First name is the real one, the rest are links. 21899# The last name is the one that the linker finds with -lNAME 21900library_names_spec=$lt_library_names_spec 21901 21902# The coded name of the library, if different from the real name. 21903soname_spec=$lt_soname_spec 21904 21905# Permission mode override for installation of shared libraries. 21906install_override_mode=$lt_install_override_mode 21907 21908# Command to use after installation of a shared archive. 21909postinstall_cmds=$lt_postinstall_cmds 21910 21911# Command to use after uninstallation of a shared archive. 21912postuninstall_cmds=$lt_postuninstall_cmds 21913 21914# Commands used to finish a libtool library installation in a directory. 21915finish_cmds=$lt_finish_cmds 21916 21917# As "finish_cmds", except a single script fragment to be evaled but 21918# not shown. 21919finish_eval=$lt_finish_eval 21920 21921# Whether we should hardcode library paths into libraries. 21922hardcode_into_libs=$hardcode_into_libs 21923 21924# Compile-time system search path for libraries. 21925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21926 21927# Run-time system search path for libraries. 21928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21929 21930# Whether dlopen is supported. 21931dlopen_support=$enable_dlopen 21932 21933# Whether dlopen of programs is supported. 21934dlopen_self=$enable_dlopen_self 21935 21936# Whether dlopen of statically linked programs is supported. 21937dlopen_self_static=$enable_dlopen_self_static 21938 21939# Commands to strip libraries. 21940old_striplib=$lt_old_striplib 21941striplib=$lt_striplib 21942 21943 21944# The linker used to build libraries. 21945LD=$lt_LD 21946 21947# How to create reloadable object files. 21948reload_flag=$lt_reload_flag 21949reload_cmds=$lt_reload_cmds 21950 21951# Commands used to build an old-style archive. 21952old_archive_cmds=$lt_old_archive_cmds 21953 21954# A language specific compiler. 21955CC=$lt_compiler 21956 21957# Is the compiler the GNU compiler? 21958with_gcc=$GCC 21959 21960# Compiler flag to turn off builtin functions. 21961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21962 21963# Additional compiler flags for building library objects. 21964pic_flag=$lt_lt_prog_compiler_pic 21965 21966# How to pass a linker flag through the compiler. 21967wl=$lt_lt_prog_compiler_wl 21968 21969# Compiler flag to prevent dynamic linking. 21970link_static_flag=$lt_lt_prog_compiler_static 21971 21972# Does compiler simultaneously support -c and -o options? 21973compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21974 21975# Whether or not to add -lc for building shared libraries. 21976build_libtool_need_lc=$archive_cmds_need_lc 21977 21978# Whether or not to disallow shared libs when runtime libs are static. 21979allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21980 21981# Compiler flag to allow reflexive dlopens. 21982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21983 21984# Compiler flag to generate shared objects directly from archives. 21985whole_archive_flag_spec=$lt_whole_archive_flag_spec 21986 21987# Whether the compiler copes with passing no objects directly. 21988compiler_needs_object=$lt_compiler_needs_object 21989 21990# Create an old-style archive from a shared archive. 21991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21992 21993# Create a temporary old-style archive to link instead of a shared archive. 21994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21995 21996# Commands used to build a shared archive. 21997archive_cmds=$lt_archive_cmds 21998archive_expsym_cmds=$lt_archive_expsym_cmds 21999 22000# Commands used to build a loadable module if different from building 22001# a shared archive. 22002module_cmds=$lt_module_cmds 22003module_expsym_cmds=$lt_module_expsym_cmds 22004 22005# Whether we are building with GNU ld or not. 22006with_gnu_ld=$lt_with_gnu_ld 22007 22008# Flag that allows shared libraries with undefined symbols to be built. 22009allow_undefined_flag=$lt_allow_undefined_flag 22010 22011# Flag that enforces no undefined symbols. 22012no_undefined_flag=$lt_no_undefined_flag 22013 22014# Flag to hardcode \$libdir into a binary during linking. 22015# This must work even if \$libdir does not exist 22016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22017 22018# Whether we need a single "-rpath" flag with a separated argument. 22019hardcode_libdir_separator=$lt_hardcode_libdir_separator 22020 22021# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22022# DIR into the resulting binary. 22023hardcode_direct=$hardcode_direct 22024 22025# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22026# DIR into the resulting binary and the resulting library dependency is 22027# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22028# library is relocated. 22029hardcode_direct_absolute=$hardcode_direct_absolute 22030 22031# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22032# into the resulting binary. 22033hardcode_minus_L=$hardcode_minus_L 22034 22035# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22036# into the resulting binary. 22037hardcode_shlibpath_var=$hardcode_shlibpath_var 22038 22039# Set to "yes" if building a shared library automatically hardcodes DIR 22040# into the library and all subsequent libraries and executables linked 22041# against it. 22042hardcode_automatic=$hardcode_automatic 22043 22044# Set to yes if linker adds runtime paths of dependent libraries 22045# to runtime path list. 22046inherit_rpath=$inherit_rpath 22047 22048# Whether libtool must link a program against all its dependency libraries. 22049link_all_deplibs=$link_all_deplibs 22050 22051# Set to "yes" if exported symbols are required. 22052always_export_symbols=$always_export_symbols 22053 22054# The commands to list exported symbols. 22055export_symbols_cmds=$lt_export_symbols_cmds 22056 22057# Symbols that should not be listed in the preloaded symbols. 22058exclude_expsyms=$lt_exclude_expsyms 22059 22060# Symbols that must always be exported. 22061include_expsyms=$lt_include_expsyms 22062 22063# Commands necessary for linking programs (against libraries) with templates. 22064prelink_cmds=$lt_prelink_cmds 22065 22066# Commands necessary for finishing linking programs. 22067postlink_cmds=$lt_postlink_cmds 22068 22069# Specify filename containing input files. 22070file_list_spec=$lt_file_list_spec 22071 22072# How to hardcode a shared library path into an executable. 22073hardcode_action=$hardcode_action 22074 22075# The directories searched by this compiler when creating a shared library. 22076compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22077 22078# Dependencies to place before and after the objects being linked to 22079# create a shared library. 22080predep_objects=$lt_predep_objects 22081postdep_objects=$lt_postdep_objects 22082predeps=$lt_predeps 22083postdeps=$lt_postdeps 22084 22085# The library search path used internally by the compiler when linking 22086# a shared library. 22087compiler_lib_search_path=$lt_compiler_lib_search_path 22088 22089# ### END LIBTOOL CONFIG 22090 22091_LT_EOF 22092 22093 case $host_os in 22094 aix3*) 22095 cat <<\_LT_EOF >> "$cfgfile" 22096# AIX sometimes has problems with the GCC collect2 program. For some 22097# reason, if we set the COLLECT_NAMES environment variable, the problems 22098# vanish in a puff of smoke. 22099if test "X${COLLECT_NAMES+set}" != Xset; then 22100 COLLECT_NAMES= 22101 export COLLECT_NAMES 22102fi 22103_LT_EOF 22104 ;; 22105 esac 22106 22107 22108ltmain="$ac_aux_dir/ltmain.sh" 22109 22110 22111 # We use sed instead of cat because bash on DJGPP gets confused if 22112 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22113 # text mode, it properly converts lines to CR/LF. This bash problem 22114 # is reportedly fixed, but why not run on old versions too? 22115 sed '$q' "$ltmain" >> "$cfgfile" \ 22116 || (rm -f "$cfgfile"; exit 1) 22117 22118 if test x"$xsi_shell" = xyes; then 22119 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22120func_dirname ()\ 22121{\ 22122\ case ${1} in\ 22123\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22124\ * ) func_dirname_result="${3}" ;;\ 22125\ esac\ 22126} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22127 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22129test 0 -eq $? || _lt_function_replace_fail=: 22130 22131 22132 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22133func_basename ()\ 22134{\ 22135\ func_basename_result="${1##*/}"\ 22136} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22137 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22138 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22139test 0 -eq $? || _lt_function_replace_fail=: 22140 22141 22142 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22143func_dirname_and_basename ()\ 22144{\ 22145\ case ${1} in\ 22146\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22147\ * ) func_dirname_result="${3}" ;;\ 22148\ esac\ 22149\ func_basename_result="${1##*/}"\ 22150} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22151 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22153test 0 -eq $? || _lt_function_replace_fail=: 22154 22155 22156 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22157func_stripname ()\ 22158{\ 22159\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22160\ # positional parameters, so assign one to ordinary parameter first.\ 22161\ func_stripname_result=${3}\ 22162\ func_stripname_result=${func_stripname_result#"${1}"}\ 22163\ func_stripname_result=${func_stripname_result%"${2}"}\ 22164} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22165 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22167test 0 -eq $? || _lt_function_replace_fail=: 22168 22169 22170 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22171func_split_long_opt ()\ 22172{\ 22173\ func_split_long_opt_name=${1%%=*}\ 22174\ func_split_long_opt_arg=${1#*=}\ 22175} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22176 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22178test 0 -eq $? || _lt_function_replace_fail=: 22179 22180 22181 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22182func_split_short_opt ()\ 22183{\ 22184\ func_split_short_opt_arg=${1#??}\ 22185\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22186} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22187 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22189test 0 -eq $? || _lt_function_replace_fail=: 22190 22191 22192 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22193func_lo2o ()\ 22194{\ 22195\ case ${1} in\ 22196\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22197\ *) func_lo2o_result=${1} ;;\ 22198\ esac\ 22199} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22200 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22202test 0 -eq $? || _lt_function_replace_fail=: 22203 22204 22205 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22206func_xform ()\ 22207{\ 22208 func_xform_result=${1%.*}.lo\ 22209} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22210 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22212test 0 -eq $? || _lt_function_replace_fail=: 22213 22214 22215 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22216func_arith ()\ 22217{\ 22218 func_arith_result=$(( $* ))\ 22219} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22220 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22222test 0 -eq $? || _lt_function_replace_fail=: 22223 22224 22225 sed -e '/^func_len ()$/,/^} # func_len /c\ 22226func_len ()\ 22227{\ 22228 func_len_result=${#1}\ 22229} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22230 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22232test 0 -eq $? || _lt_function_replace_fail=: 22233 22234fi 22235 22236if test x"$lt_shell_append" = xyes; then 22237 sed -e '/^func_append ()$/,/^} # func_append /c\ 22238func_append ()\ 22239{\ 22240 eval "${1}+=\\${2}"\ 22241} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22242 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22244test 0 -eq $? || _lt_function_replace_fail=: 22245 22246 22247 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22248func_append_quoted ()\ 22249{\ 22250\ func_quote_for_eval "${2}"\ 22251\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22252} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22253 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22255test 0 -eq $? || _lt_function_replace_fail=: 22256 22257 22258 # Save a `func_append' function call where possible by direct use of '+=' 22259 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22260 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22262 test 0 -eq $? || _lt_function_replace_fail=: 22263else 22264 # Save a `func_append' function call even when '+=' is not available 22265 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22266 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22268 test 0 -eq $? || _lt_function_replace_fail=: 22269fi 22270 22271if test x"$_lt_function_replace_fail" = x":"; then 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22273$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22274fi 22275 22276 22277 mv -f "$cfgfile" "$ofile" || 22278 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22279 chmod +x "$ofile" 22280 22281 22282 cat <<_LT_EOF >> "$ofile" 22283 22284# ### BEGIN LIBTOOL TAG CONFIG: CXX 22285 22286# The linker used to build libraries. 22287LD=$lt_LD_CXX 22288 22289# How to create reloadable object files. 22290reload_flag=$lt_reload_flag_CXX 22291reload_cmds=$lt_reload_cmds_CXX 22292 22293# Commands used to build an old-style archive. 22294old_archive_cmds=$lt_old_archive_cmds_CXX 22295 22296# A language specific compiler. 22297CC=$lt_compiler_CXX 22298 22299# Is the compiler the GNU compiler? 22300with_gcc=$GCC_CXX 22301 22302# Compiler flag to turn off builtin functions. 22303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22304 22305# Additional compiler flags for building library objects. 22306pic_flag=$lt_lt_prog_compiler_pic_CXX 22307 22308# How to pass a linker flag through the compiler. 22309wl=$lt_lt_prog_compiler_wl_CXX 22310 22311# Compiler flag to prevent dynamic linking. 22312link_static_flag=$lt_lt_prog_compiler_static_CXX 22313 22314# Does compiler simultaneously support -c and -o options? 22315compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22316 22317# Whether or not to add -lc for building shared libraries. 22318build_libtool_need_lc=$archive_cmds_need_lc_CXX 22319 22320# Whether or not to disallow shared libs when runtime libs are static. 22321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22322 22323# Compiler flag to allow reflexive dlopens. 22324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22325 22326# Compiler flag to generate shared objects directly from archives. 22327whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22328 22329# Whether the compiler copes with passing no objects directly. 22330compiler_needs_object=$lt_compiler_needs_object_CXX 22331 22332# Create an old-style archive from a shared archive. 22333old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22334 22335# Create a temporary old-style archive to link instead of a shared archive. 22336old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22337 22338# Commands used to build a shared archive. 22339archive_cmds=$lt_archive_cmds_CXX 22340archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22341 22342# Commands used to build a loadable module if different from building 22343# a shared archive. 22344module_cmds=$lt_module_cmds_CXX 22345module_expsym_cmds=$lt_module_expsym_cmds_CXX 22346 22347# Whether we are building with GNU ld or not. 22348with_gnu_ld=$lt_with_gnu_ld_CXX 22349 22350# Flag that allows shared libraries with undefined symbols to be built. 22351allow_undefined_flag=$lt_allow_undefined_flag_CXX 22352 22353# Flag that enforces no undefined symbols. 22354no_undefined_flag=$lt_no_undefined_flag_CXX 22355 22356# Flag to hardcode \$libdir into a binary during linking. 22357# This must work even if \$libdir does not exist 22358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22359 22360# Whether we need a single "-rpath" flag with a separated argument. 22361hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22362 22363# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22364# DIR into the resulting binary. 22365hardcode_direct=$hardcode_direct_CXX 22366 22367# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22368# DIR into the resulting binary and the resulting library dependency is 22369# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22370# library is relocated. 22371hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22372 22373# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22374# into the resulting binary. 22375hardcode_minus_L=$hardcode_minus_L_CXX 22376 22377# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22378# into the resulting binary. 22379hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22380 22381# Set to "yes" if building a shared library automatically hardcodes DIR 22382# into the library and all subsequent libraries and executables linked 22383# against it. 22384hardcode_automatic=$hardcode_automatic_CXX 22385 22386# Set to yes if linker adds runtime paths of dependent libraries 22387# to runtime path list. 22388inherit_rpath=$inherit_rpath_CXX 22389 22390# Whether libtool must link a program against all its dependency libraries. 22391link_all_deplibs=$link_all_deplibs_CXX 22392 22393# Set to "yes" if exported symbols are required. 22394always_export_symbols=$always_export_symbols_CXX 22395 22396# The commands to list exported symbols. 22397export_symbols_cmds=$lt_export_symbols_cmds_CXX 22398 22399# Symbols that should not be listed in the preloaded symbols. 22400exclude_expsyms=$lt_exclude_expsyms_CXX 22401 22402# Symbols that must always be exported. 22403include_expsyms=$lt_include_expsyms_CXX 22404 22405# Commands necessary for linking programs (against libraries) with templates. 22406prelink_cmds=$lt_prelink_cmds_CXX 22407 22408# Commands necessary for finishing linking programs. 22409postlink_cmds=$lt_postlink_cmds_CXX 22410 22411# Specify filename containing input files. 22412file_list_spec=$lt_file_list_spec_CXX 22413 22414# How to hardcode a shared library path into an executable. 22415hardcode_action=$hardcode_action_CXX 22416 22417# The directories searched by this compiler when creating a shared library. 22418compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22419 22420# Dependencies to place before and after the objects being linked to 22421# create a shared library. 22422predep_objects=$lt_predep_objects_CXX 22423postdep_objects=$lt_postdep_objects_CXX 22424predeps=$lt_predeps_CXX 22425postdeps=$lt_postdeps_CXX 22426 22427# The library search path used internally by the compiler when linking 22428# a shared library. 22429compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22430 22431# ### END LIBTOOL TAG CONFIG: CXX 22432_LT_EOF 22433 22434 ;; 22435 22436 esac 22437done # for ac_tag 22438 22439 22440as_fn_exit 0 22441_ACEOF 22442ac_clean_files=$ac_clean_files_save 22443 22444test $ac_write_fail = 0 || 22445 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22446 22447 22448# configure is writing to config.log, and then calls config.status. 22449# config.status does its own redirection, appending to config.log. 22450# Unfortunately, on DOS this fails, as config.log is still kept open 22451# by configure, so config.status won't be able to write to it; its 22452# output is simply discarded. So we exec the FD to /dev/null, 22453# effectively closing config.log, so it can be properly (re)opened and 22454# appended to by config.status. When coming back to configure, we 22455# need to make the FD available again. 22456if test "$no_create" != yes; then 22457 ac_cs_success=: 22458 ac_config_status_args= 22459 test "$silent" = yes && 22460 ac_config_status_args="$ac_config_status_args --quiet" 22461 exec 5>/dev/null 22462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22463 exec 5>>config.log 22464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22465 # would make configure fail if this is the last instruction. 22466 $ac_cs_success || as_fn_exit 1 22467fi 22468if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22470$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22471fi 22472 22473 22474 22475echo "" 22476echo "Libtiff is now configured for ${host}" 22477echo "" 22478echo " Installation directory: ${prefix}" 22479echo " Documentation directory: ${LIBTIFF_DOCDIR}" 22480echo " C compiler: ${CC} ${CFLAGS}" 22481echo " C++ compiler: ${CXX} ${CXXFLAGS}" 22482echo " Enable runtime linker paths: ${HAVE_RPATH}" 22483echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 22484echo " Use win32 IO: ${win32_io_ok}" 22485echo "" 22486echo " Support for internal codecs:" 22487echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 22488echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 22489echo " LZW algorithm: ${HAVE_LZW}" 22490echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 22491echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 22492echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 22493echo "" 22494echo " Support for external codecs:" 22495echo " ZLIB support: ${HAVE_ZLIB}" 22496echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 22497echo " JPEG support: ${HAVE_JPEG}" 22498echo " Old JPEG support: ${HAVE_OJPEG}" 22499echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 22500echo " ISO JBIG support: ${HAVE_JBIG}" 22501echo " LZMA2 support: ${HAVE_LZMA}" 22502echo "" 22503echo " C++ support: ${HAVE_CXX}" 22504echo "" 22505echo " OpenGL support: ${HAVE_OPENGL}" 22506echo "" 22507 22508