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.0beta6. 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.0beta6' 574PACKAGE_STRING='LibTIFF Software 4.0.0beta6' 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 618HAVE_OPENGL_FALSE 619HAVE_OPENGL_TRUE 620GLUT_LIBS 621GLUT_CFLAGS 622GLU_LIBS 623GLU_CFLAGS 624GL_LIBS 625GL_CFLAGS 626PTHREAD_CFLAGS 627PTHREAD_LIBS 628PTHREAD_CC 629ax_pthread_config 630X_EXTRA_LIBS 631X_LIBS 632X_PRE_LIBS 633X_CFLAGS 634XMKMF 635HAVE_CXX_FALSE 636HAVE_CXX_TRUE 637LIBTIFF_DOCDIR 638HAVE_RPATH_FALSE 639HAVE_RPATH_TRUE 640LIBOBJS 641tiff_libs_private 642AM_BACKSLASH 643AM_DEFAULT_VERBOSITY 644CXXCPP 645am__fastdepCXX_FALSE 646am__fastdepCXX_TRUE 647CXXDEPMODE 648ac_ct_CXX 649CXXFLAGS 650CXX 651CPP 652OTOOL64 653OTOOL 654LIPO 655NMEDIT 656DSYMUTIL 657MANIFEST_TOOL 658RANLIB 659ac_ct_AR 660AR 661NM 662ac_ct_DUMPBIN 663DUMPBIN 664LD 665FGREP 666EGREP 667GREP 668SED 669LIBTOOL 670OBJDUMP 671DLLTOOL 672AS 673LN_S 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690LIBTIFF_RELEASE_DATE 691LIBTIFF_VERSION_INFO 692LIBTIFF_VERSION 693LIBTIFF_ALPHA_VERSION 694LIBTIFF_MICRO_VERSION 695LIBTIFF_MINOR_VERSION 696LIBTIFF_MAJOR_VERSION 697MAINT 698MAINTAINER_MODE_FALSE 699MAINTAINER_MODE_TRUE 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_os 724target_vendor 725target_cpu 726target 727host_os 728host_vendor 729host_cpu 730host 731build_os 732build_vendor 733build_cpu 734build 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_maintainer_mode 777enable_dependency_tracking 778enable_shared 779enable_static 780with_pic 781enable_fast_install 782with_gnu_ld 783with_sysroot 784enable_libtool_lock 785with_gnu_ld 786enable_silent_rules 787enable_rpath 788enable_largefile 789with_docdir 790enable_ccitt 791enable_packbits 792enable_lzw 793enable_thunder 794enable_next 795enable_logluv 796enable_mdi 797enable_zlib 798with_zlib_include_dir 799with_zlib_lib_dir 800enable_pixarlog 801enable_jpeg 802with_jpeg_include_dir 803with_jpeg_lib_dir 804enable_old_jpeg 805enable_jbig 806with_jbig_include_dir 807with_jbig_lib_dir 808enable_jpeg12 809with_jpeg12_include_dir 810with_jpeg12_lib 811enable_cxx 812with_x 813enable_strip_chopping 814with_default_strip_size 815enable_extrasample_as_alpha 816enable_check_ycbcr_subsampling 817' 818 ac_precious_vars='build_alias 819host_alias 820target_alias 821CC 822CFLAGS 823LDFLAGS 824LIBS 825CPPFLAGS 826CPP 827CPPFLAGS 828CXX 829CXXFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CCC 834CXXCPP 835XMKMF' 836 837 838# Initialize some variables set by options. 839ac_init_help= 840ac_init_version=false 841ac_unrecognized_opts= 842ac_unrecognized_sep= 843# The variables have the same names as the options, with 844# dashes changed to underlines. 845cache_file=/dev/null 846exec_prefix=NONE 847no_create= 848no_recursion= 849prefix=NONE 850program_prefix=NONE 851program_suffix=NONE 852program_transform_name=s,x,x, 853silent= 854site= 855srcdir= 856verbose= 857x_includes=NONE 858x_libraries=NONE 859 860# Installation directory options. 861# These are left unexpanded so users can "make install exec_prefix=/foo" 862# and all the variables that are supposed to be based on exec_prefix 863# by default will actually change. 864# Use braces instead of parens because sh, perl, etc. also accept them. 865# (The list follows the same order as the GNU Coding Standards.) 866bindir='${exec_prefix}/bin' 867sbindir='${exec_prefix}/sbin' 868libexecdir='${exec_prefix}/libexec' 869datarootdir='${prefix}/share' 870datadir='${datarootdir}' 871sysconfdir='${prefix}/etc' 872sharedstatedir='${prefix}/com' 873localstatedir='${prefix}/var' 874includedir='${prefix}/include' 875oldincludedir='/usr/include' 876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 877infodir='${datarootdir}/info' 878htmldir='${docdir}' 879dvidir='${docdir}' 880pdfdir='${docdir}' 881psdir='${docdir}' 882libdir='${exec_prefix}/lib' 883localedir='${datarootdir}/locale' 884mandir='${datarootdir}/man' 885 886ac_prev= 887ac_dashdash= 888for ac_option 889do 890 # If the previous option needs an argument, assign it. 891 if test -n "$ac_prev"; then 892 eval $ac_prev=\$ac_option 893 ac_prev= 894 continue 895 fi 896 897 case $ac_option in 898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 899 *=) ac_optarg= ;; 900 *) ac_optarg=yes ;; 901 esac 902 903 # Accept the important Cygnus configure options, so we can diagnose typos. 904 905 case $ac_dashdash$ac_option in 906 --) 907 ac_dashdash=yes ;; 908 909 -bindir | --bindir | --bindi | --bind | --bin | --bi) 910 ac_prev=bindir ;; 911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 912 bindir=$ac_optarg ;; 913 914 -build | --build | --buil | --bui | --bu) 915 ac_prev=build_alias ;; 916 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 917 build_alias=$ac_optarg ;; 918 919 -cache-file | --cache-file | --cache-fil | --cache-fi \ 920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 921 ac_prev=cache_file ;; 922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 924 cache_file=$ac_optarg ;; 925 926 --config-cache | -C) 927 cache_file=config.cache ;; 928 929 -datadir | --datadir | --datadi | --datad) 930 ac_prev=datadir ;; 931 -datadir=* | --datadir=* | --datadi=* | --datad=*) 932 datadir=$ac_optarg ;; 933 934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 935 | --dataroo | --dataro | --datar) 936 ac_prev=datarootdir ;; 937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 939 datarootdir=$ac_optarg ;; 940 941 -disable-* | --disable-*) 942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 943 # Reject names that are not valid shell variable names. 944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 945 as_fn_error $? "invalid feature name: $ac_useropt" 946 ac_useropt_orig=$ac_useropt 947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 948 case $ac_user_opts in 949 *" 950"enable_$ac_useropt" 951"*) ;; 952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 953 ac_unrecognized_sep=', ';; 954 esac 955 eval enable_$ac_useropt=no ;; 956 957 -docdir | --docdir | --docdi | --doc | --do) 958 ac_prev=docdir ;; 959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 960 docdir=$ac_optarg ;; 961 962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 963 ac_prev=dvidir ;; 964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 965 dvidir=$ac_optarg ;; 966 967 -enable-* | --enable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=\$ac_optarg ;; 982 983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 985 | --exec | --exe | --ex) 986 ac_prev=exec_prefix ;; 987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 989 | --exec=* | --exe=* | --ex=*) 990 exec_prefix=$ac_optarg ;; 991 992 -gas | --gas | --ga | --g) 993 # Obsolete; use --with-gas. 994 with_gas=yes ;; 995 996 -help | --help | --hel | --he | -h) 997 ac_init_help=long ;; 998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 999 ac_init_help=recursive ;; 1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1001 ac_init_help=short ;; 1002 1003 -host | --host | --hos | --ho) 1004 ac_prev=host_alias ;; 1005 -host=* | --host=* | --hos=* | --ho=*) 1006 host_alias=$ac_optarg ;; 1007 1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1009 ac_prev=htmldir ;; 1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1011 | --ht=*) 1012 htmldir=$ac_optarg ;; 1013 1014 -includedir | --includedir | --includedi | --included | --include \ 1015 | --includ | --inclu | --incl | --inc) 1016 ac_prev=includedir ;; 1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1018 | --includ=* | --inclu=* | --incl=* | --inc=*) 1019 includedir=$ac_optarg ;; 1020 1021 -infodir | --infodir | --infodi | --infod | --info | --inf) 1022 ac_prev=infodir ;; 1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1024 infodir=$ac_optarg ;; 1025 1026 -libdir | --libdir | --libdi | --libd) 1027 ac_prev=libdir ;; 1028 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1029 libdir=$ac_optarg ;; 1030 1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1032 | --libexe | --libex | --libe) 1033 ac_prev=libexecdir ;; 1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1035 | --libexe=* | --libex=* | --libe=*) 1036 libexecdir=$ac_optarg ;; 1037 1038 -localedir | --localedir | --localedi | --localed | --locale) 1039 ac_prev=localedir ;; 1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1041 localedir=$ac_optarg ;; 1042 1043 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1044 | --localstate | --localstat | --localsta | --localst | --locals) 1045 ac_prev=localstatedir ;; 1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1048 localstatedir=$ac_optarg ;; 1049 1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1051 ac_prev=mandir ;; 1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1053 mandir=$ac_optarg ;; 1054 1055 -nfp | --nfp | --nf) 1056 # Obsolete; use --without-fp. 1057 with_fp=no ;; 1058 1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1060 | --no-cr | --no-c | -n) 1061 no_create=yes ;; 1062 1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1065 no_recursion=yes ;; 1066 1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1069 | --oldin | --oldi | --old | --ol | --o) 1070 ac_prev=oldincludedir ;; 1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1074 oldincludedir=$ac_optarg ;; 1075 1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1077 ac_prev=prefix ;; 1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1079 prefix=$ac_optarg ;; 1080 1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1082 | --program-pre | --program-pr | --program-p) 1083 ac_prev=program_prefix ;; 1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1086 program_prefix=$ac_optarg ;; 1087 1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1089 | --program-suf | --program-su | --program-s) 1090 ac_prev=program_suffix ;; 1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1093 program_suffix=$ac_optarg ;; 1094 1095 -program-transform-name | --program-transform-name \ 1096 | --program-transform-nam | --program-transform-na \ 1097 | --program-transform-n | --program-transform- \ 1098 | --program-transform | --program-transfor \ 1099 | --program-transfo | --program-transf \ 1100 | --program-trans | --program-tran \ 1101 | --progr-tra | --program-tr | --program-t) 1102 ac_prev=program_transform_name ;; 1103 -program-transform-name=* | --program-transform-name=* \ 1104 | --program-transform-nam=* | --program-transform-na=* \ 1105 | --program-transform-n=* | --program-transform-=* \ 1106 | --program-transform=* | --program-transfor=* \ 1107 | --program-transfo=* | --program-transf=* \ 1108 | --program-trans=* | --program-tran=* \ 1109 | --progr-tra=* | --program-tr=* | --program-t=*) 1110 program_transform_name=$ac_optarg ;; 1111 1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1113 ac_prev=pdfdir ;; 1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1115 pdfdir=$ac_optarg ;; 1116 1117 -psdir | --psdir | --psdi | --psd | --ps) 1118 ac_prev=psdir ;; 1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1120 psdir=$ac_optarg ;; 1121 1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1123 | -silent | --silent | --silen | --sile | --sil) 1124 silent=yes ;; 1125 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1127 ac_prev=sbindir ;; 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1129 | --sbi=* | --sb=*) 1130 sbindir=$ac_optarg ;; 1131 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1134 | --sharedst | --shareds | --shared | --share | --shar \ 1135 | --sha | --sh) 1136 ac_prev=sharedstatedir ;; 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1140 | --sha=* | --sh=*) 1141 sharedstatedir=$ac_optarg ;; 1142 1143 -site | --site | --sit) 1144 ac_prev=site ;; 1145 -site=* | --site=* | --sit=*) 1146 site=$ac_optarg ;; 1147 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1149 ac_prev=srcdir ;; 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1151 srcdir=$ac_optarg ;; 1152 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1154 | --syscon | --sysco | --sysc | --sys | --sy) 1155 ac_prev=sysconfdir ;; 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1158 sysconfdir=$ac_optarg ;; 1159 1160 -target | --target | --targe | --targ | --tar | --ta | --t) 1161 ac_prev=target_alias ;; 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1163 target_alias=$ac_optarg ;; 1164 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1166 verbose=yes ;; 1167 1168 -version | --version | --versio | --versi | --vers | -V) 1169 ac_init_version=: ;; 1170 1171 -with-* | --with-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=\$ac_optarg ;; 1186 1187 -without-* | --without-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: $ac_useropt" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"with_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=no ;; 1202 1203 --x) 1204 # Obsolete; use --with-x. 1205 with_x=yes ;; 1206 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1208 | --x-incl | --x-inc | --x-in | --x-i) 1209 ac_prev=x_includes ;; 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1212 x_includes=$ac_optarg ;; 1213 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1216 ac_prev=x_libraries ;; 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1219 x_libraries=$ac_optarg ;; 1220 1221 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1222Try \`$0 --help' for more information" 1223 ;; 1224 1225 *=*) 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1227 # Reject names that are not valid shell variable names. 1228 case $ac_envvar in #( 1229 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1231 esac 1232 eval $ac_envvar=\$ac_optarg 1233 export $ac_envvar ;; 1234 1235 *) 1236 # FIXME: should be removed in autoconf 3.0. 1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1241 ;; 1242 1243 esac 1244done 1245 1246if test -n "$ac_prev"; then 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1248 as_fn_error $? "missing argument to $ac_option" 1249fi 1250 1251if test -n "$ac_unrecognized_opts"; then 1252 case $enable_option_checking in 1253 no) ;; 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1256 esac 1257fi 1258 1259# Check all directory arguments for consistency. 1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1261 datadir sysconfdir sharedstatedir localstatedir includedir \ 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1263 libdir localedir mandir 1264do 1265 eval ac_val=\$$ac_var 1266 # Remove trailing slashes. 1267 case $ac_val in 1268 */ ) 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1270 eval $ac_var=\$ac_val;; 1271 esac 1272 # Be sure to have absolute directory names. 1273 case $ac_val in 1274 [\\/$]* | ?:[\\/]* ) continue;; 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1276 esac 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1278done 1279 1280# There might be people who depend on the old broken behavior: `$host' 1281# used to hold the argument of --host etc. 1282# FIXME: To remove some day. 1283build=$build_alias 1284host=$host_alias 1285target=$target_alias 1286 1287# FIXME: To remove some day. 1288if test "x$host_alias" != x; then 1289 if test "x$build_alias" = x; then 1290 cross_compiling=maybe 1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1292 If a cross compiler is detected then cross compile mode will be used" >&2 1293 elif test "x$build_alias" != "x$host_alias"; then 1294 cross_compiling=yes 1295 fi 1296fi 1297 1298ac_tool_prefix= 1299test -n "$host_alias" && ac_tool_prefix=$host_alias- 1300 1301test "$silent" = yes && exec 6>/dev/null 1302 1303 1304ac_pwd=`pwd` && test -n "$ac_pwd" && 1305ac_ls_di=`ls -di .` && 1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1307 as_fn_error $? "working directory cannot be determined" 1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1309 as_fn_error $? "pwd does not report name of working directory" 1310 1311 1312# Find the source files, if location was not specified. 1313if test -z "$srcdir"; then 1314 ac_srcdir_defaulted=yes 1315 # Try the directory containing this script, then the parent directory. 1316 ac_confdir=`$as_dirname -- "$as_myself" || 1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1318 X"$as_myself" : 'X\(//\)[^/]' \| \ 1319 X"$as_myself" : 'X\(//\)$' \| \ 1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1321$as_echo X"$as_myself" | 1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)[^/].*/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\/\)$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\).*/{ 1335 s//\1/ 1336 q 1337 } 1338 s/.*/./; q'` 1339 srcdir=$ac_confdir 1340 if test ! -r "$srcdir/$ac_unique_file"; then 1341 srcdir=.. 1342 fi 1343else 1344 ac_srcdir_defaulted=no 1345fi 1346if test ! -r "$srcdir/$ac_unique_file"; then 1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1349fi 1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1351ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1353 pwd)` 1354# When building in place, set srcdir=. 1355if test "$ac_abs_confdir" = "$ac_pwd"; then 1356 srcdir=. 1357fi 1358# Remove unnecessary trailing slashes from srcdir. 1359# Double slashes in file names in object file debugging info 1360# mess up M-x gdb in Emacs. 1361case $srcdir in 1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1363esac 1364for ac_var in $ac_precious_vars; do 1365 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_env_${ac_var}_value=\$${ac_var} 1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1369done 1370 1371# 1372# Report the --help message. 1373# 1374if test "$ac_init_help" = "long"; then 1375 # Omit some internal or obsolete options to make the list less imposing. 1376 # This message is too long to be a string in the A/UX 3.1 sh. 1377 cat <<_ACEOF 1378\`configure' configures LibTIFF Software 4.0.0beta6 to adapt to many kinds of systems. 1379 1380Usage: $0 [OPTION]... [VAR=VALUE]... 1381 1382To assign environment variables (e.g., CC, CFLAGS...), specify them as 1383VAR=VALUE. See below for descriptions of some of the useful variables. 1384 1385Defaults for the options are specified in brackets. 1386 1387Configuration: 1388 -h, --help display this help and exit 1389 --help=short display options specific to this package 1390 --help=recursive display the short help of all the included packages 1391 -V, --version display version information and exit 1392 -q, --quiet, --silent do not print \`checking ...' messages 1393 --cache-file=FILE cache test results in FILE [disabled] 1394 -C, --config-cache alias for \`--cache-file=config.cache' 1395 -n, --no-create do not create output files 1396 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1397 1398Installation directories: 1399 --prefix=PREFIX install architecture-independent files in PREFIX 1400 [$ac_default_prefix] 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1402 [PREFIX] 1403 1404By default, \`make install' will install all the files in 1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1406an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1407for instance \`--prefix=\$HOME'. 1408 1409For better control, use the options below. 1410 1411Fine tuning of the installation directories: 1412 --bindir=DIR user executables [EPREFIX/bin] 1413 --sbindir=DIR system admin executables [EPREFIX/sbin] 1414 --libexecdir=DIR program executables [EPREFIX/libexec] 1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1418 --libdir=DIR object code libraries [EPREFIX/lib] 1419 --includedir=DIR C header files [PREFIX/include] 1420 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1423 --infodir=DIR info documentation [DATAROOTDIR/info] 1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1425 --mandir=DIR man documentation [DATAROOTDIR/man] 1426 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1427 --htmldir=DIR html documentation [DOCDIR] 1428 --dvidir=DIR dvi documentation [DOCDIR] 1429 --pdfdir=DIR pdf documentation [DOCDIR] 1430 --psdir=DIR ps documentation [DOCDIR] 1431_ACEOF 1432 1433 cat <<\_ACEOF 1434 1435Program names: 1436 --program-prefix=PREFIX prepend PREFIX to installed program names 1437 --program-suffix=SUFFIX append SUFFIX to installed program names 1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1439 1440X features: 1441 --x-includes=DIR X include files are in DIR 1442 --x-libraries=DIR X library files are in DIR 1443 1444System types: 1445 --build=BUILD configure for building on BUILD [guessed] 1446 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1447 --target=TARGET configure for building compilers for TARGET [HOST] 1448_ACEOF 1449fi 1450 1451if test -n "$ac_init_help"; then 1452 case $ac_init_help in 1453 short | recursive ) echo "Configuration of LibTIFF Software 4.0.0beta6:";; 1454 esac 1455 cat <<\_ACEOF 1456 1457Optional Features: 1458 --disable-option-checking ignore unrecognized --enable/--with options 1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1461 --enable-maintainer-mode enable make rules and dependencies not useful 1462 (and sometimes confusing) to the casual installer 1463 --disable-dependency-tracking speeds up one-time build 1464 --enable-dependency-tracking do not reject slow dependency extractors 1465 --enable-shared[=PKGS] build shared libraries [default=yes] 1466 --enable-static[=PKGS] build static libraries [default=yes] 1467 --enable-fast-install[=PKGS] 1468 optimize for fast installation [default=yes] 1469 --disable-libtool-lock avoid locking (might break parallel builds) 1470 --enable-silent-rules less verbose build output (undo: `make V=1') 1471 --disable-silent-rules verbose build output (undo: `make V=0') 1472 --enable-rpath Enable runtime linker paths (-R libtool option) 1473 --disable-largefile omit support for large files 1474 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1475 --disable-packbits disable support for Macintosh PackBits algorithm 1476 --disable-lzw disable support for LZW algorithm 1477 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1478 --disable-next disable support for NeXT 2-bit RLE algorithm 1479 --disable-logluv disable support for LogLuv high dynamic range 1480 encoding 1481 --disable-mdi disable support for Microsoft Document Imaging 1482 --disable-zlib disable Zlib usage (required for Deflate 1483 compression, enabled by default) 1484 --disable-pixarlog disable support for Pixar log-format algorithm 1485 (requires Zlib) 1486 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1487 compression, enabled by default) 1488 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1489 enabled by default) 1490 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1491 compression, enabled by default) 1492 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1493 --enable-cxx enable C++ stream API building (requires C++ 1494 compiler) 1495 --disable-strip-chopping 1496 disable support for strip chopping (whether or not 1497 to convert single-strip uncompressed images to 1498 mutiple strips of specified size to reduce memory 1499 usage) 1500 --disable-extrasample-as-alpha 1501 the RGBA interface will treat a fourth sample with 1502 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1503 packages produce RGBA files but don't mark the alpha 1504 properly 1505 --disable-check-ycbcr-subsampling 1506 disable picking up YCbCr subsampling info from the 1507 JPEG data stream to support files lacking the tag 1508 1509Optional Packages: 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1512 --with-pic try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1515 --with-sysroot=DIR Search for dependent libraries within DIR 1516 (or the compiler's sysroot if not specified). 1517 --with-docdir=DIR directory where documentation should be installed 1518 --with-zlib-include-dir=DIR 1519 location of Zlib headers 1520 --with-zlib-lib-dir=DIR location of Zlib library binary 1521 --with-jpeg-include-dir=DIR 1522 location of IJG JPEG library headers 1523 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1524 --with-jbig-include-dir=DIR 1525 location of JBIG-KIT headers 1526 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1527 --with-jpeg12-include-dir=DIR 1528 location of libjpeg 12bit headers 1529 --with-jpeg12-lib=LIBRARY 1530 path to libjpeg 12bit library 1531 --with-x use the X Window System 1532 --with-default-strip-size=SIZE 1533 default size of the strip in bytes (when strip 1534 chopping enabled) [[default=8192]] 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 CXX C++ compiler command 1546 CXXFLAGS C++ compiler flags 1547 CXXCPP C++ preprocessor 1548 XMKMF Path to xmkmf, Makefile generator for X Window System 1549 1550Use these variables to override the choices made by `configure' or to help 1551it to find libraries and programs with nonstandard names/locations. 1552 1553Report bugs to <[email protected]>. 1554_ACEOF 1555ac_status=$? 1556fi 1557 1558if test "$ac_init_help" = "recursive"; then 1559 # If there are subdirs, report their specific --help. 1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1561 test -d "$ac_dir" || 1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1563 continue 1564 ac_builddir=. 1565 1566case "$ac_dir" in 1567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568*) 1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1570 # A ".." for each directory in $ac_dir_suffix. 1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1572 case $ac_top_builddir_sub in 1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1575 esac ;; 1576esac 1577ac_abs_top_builddir=$ac_pwd 1578ac_abs_builddir=$ac_pwd$ac_dir_suffix 1579# for backward compatibility: 1580ac_top_builddir=$ac_top_build_prefix 1581 1582case $srcdir in 1583 .) # We are building in place. 1584 ac_srcdir=. 1585 ac_top_srcdir=$ac_top_builddir_sub 1586 ac_abs_top_srcdir=$ac_pwd ;; 1587 [\\/]* | ?:[\\/]* ) # Absolute name. 1588 ac_srcdir=$srcdir$ac_dir_suffix; 1589 ac_top_srcdir=$srcdir 1590 ac_abs_top_srcdir=$srcdir ;; 1591 *) # Relative name. 1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1593 ac_top_srcdir=$ac_top_build_prefix$srcdir 1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1595esac 1596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1597 1598 cd "$ac_dir" || { ac_status=$?; continue; } 1599 # Check for guested configure. 1600 if test -f "$ac_srcdir/configure.gnu"; then 1601 echo && 1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1603 elif test -f "$ac_srcdir/configure"; then 1604 echo && 1605 $SHELL "$ac_srcdir/configure" --help=recursive 1606 else 1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1608 fi || ac_status=$? 1609 cd "$ac_pwd" || { ac_status=$?; break; } 1610 done 1611fi 1612 1613test -n "$ac_init_help" && exit $ac_status 1614if $ac_init_version; then 1615 cat <<\_ACEOF 1616LibTIFF Software configure 4.0.0beta6 1617generated by GNU Autoconf 2.68 1618 1619Copyright (C) 2010 Free Software Foundation, Inc. 1620This configure script is free software; the Free Software Foundation 1621gives unlimited permission to copy, distribute and modify it. 1622_ACEOF 1623 exit 1624fi 1625 1626## ------------------------ ## 1627## Autoconf initialization. ## 1628## ------------------------ ## 1629 1630# ac_fn_c_try_compile LINENO 1631# -------------------------- 1632# Try to compile conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 rm -f conftest.$ac_objext 1637 if { { ac_try="$ac_compile" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_compile") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { 1653 test -z "$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 } && test -s conftest.$ac_objext; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_compile 1667 1668# ac_fn_c_try_link LINENO 1669# ----------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. 1671ac_fn_c_try_link () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 rm -f conftest.$ac_objext conftest$ac_exeext 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } && { 1691 test -z "$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 } && test -s conftest$ac_exeext && { 1694 test "$cross_compiling" = yes || 1695 $as_test_x conftest$ac_exeext 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1706 # interfere with the next link command; also delete a directory that is 1707 # left behind by Apple's compiler. We do this before executing the actions. 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_link 1713 1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists and can be compiled using the include files in 1717# INCLUDES, setting the cache variable VAR accordingly. 1718ac_fn_c_check_header_compile () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725else 1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727/* end confdefs.h. */ 1728$4 1729#include <$2> 1730_ACEOF 1731if ac_fn_c_try_compile "$LINENO"; then : 1732 eval "$3=yes" 1733else 1734 eval "$3=no" 1735fi 1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1737fi 1738eval ac_res=\$$3 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740$as_echo "$ac_res" >&6; } 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 1743} # ac_fn_c_check_header_compile 1744 1745# ac_fn_c_try_cpp LINENO 1746# ---------------------- 1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_cpp () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { { ac_try="$ac_cpp conftest.$ac_ext" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1759 ac_status=$? 1760 if test -s conftest.err; then 1761 grep -v '^ *+' conftest.err >conftest.er1 1762 cat conftest.er1 >&5 1763 mv -f conftest.er1 conftest.err 1764 fi 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; } > conftest.i && { 1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1768 test ! -s conftest.err 1769 }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_cpp 1781 1782# ac_fn_c_try_run LINENO 1783# ---------------------- 1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1785# that executables *can* be run. 1786ac_fn_c_try_run () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1800 { { case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_try") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; }; }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: program exited with status $ac_status" >&5 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=$ac_status 1817fi 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_run 1823 1824# ac_fn_c_check_func LINENO FUNC VAR 1825# ---------------------------------- 1826# Tests whether FUNC exists, setting the cache variable VAR accordingly 1827ac_fn_c_check_func () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839#define $2 innocuous_$2 1840 1841/* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846#ifdef __STDC__ 1847# include <limits.h> 1848#else 1849# include <assert.h> 1850#endif 1851 1852#undef $2 1853 1854/* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857#ifdef __cplusplus 1858extern "C" 1859#endif 1860char $2 (); 1861/* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864#if defined __stub_$2 || defined __stub___$2 1865choke me 1866#endif 1867 1868int 1869main () 1870{ 1871return $2 (); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878else 1879 eval "$3=no" 1880fi 1881rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_func 1890 1891# ac_fn_cxx_try_compile LINENO 1892# ---------------------------- 1893# Try to compile conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_compile () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 rm -f conftest.$ac_objext 1898 if { { ac_try="$ac_compile" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_compile") 2>conftest.err 1906 ac_status=$? 1907 if test -s conftest.err; then 1908 grep -v '^ *+' conftest.err >conftest.er1 1909 cat conftest.er1 >&5 1910 mv -f conftest.er1 conftest.err 1911 fi 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { 1914 test -z "$ac_cxx_werror_flag" || 1915 test ! -s conftest.err 1916 } && test -s conftest.$ac_objext; then : 1917 ac_retval=0 1918else 1919 $as_echo "$as_me: failed program was:" >&5 1920sed 's/^/| /' conftest.$ac_ext >&5 1921 1922 ac_retval=1 1923fi 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 as_fn_set_status $ac_retval 1926 1927} # ac_fn_cxx_try_compile 1928 1929# ac_fn_cxx_try_cpp LINENO 1930# ------------------------ 1931# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1932ac_fn_cxx_try_cpp () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 if { { ac_try="$ac_cpp conftest.$ac_ext" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } > conftest.i && { 1951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1952 test ! -s conftest.err 1953 }; then : 1954 ac_retval=0 1955else 1956 $as_echo "$as_me: failed program was:" >&5 1957sed 's/^/| /' conftest.$ac_ext >&5 1958 1959 ac_retval=1 1960fi 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 as_fn_set_status $ac_retval 1963 1964} # ac_fn_cxx_try_cpp 1965 1966# ac_fn_cxx_try_link LINENO 1967# ------------------------- 1968# Try to link conftest.$ac_ext, and return whether this succeeded. 1969ac_fn_cxx_try_link () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 rm -f conftest.$ac_objext conftest$ac_exeext 1973 if { { ac_try="$ac_link" 1974case "(($ac_try" in 1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1976 *) ac_try_echo=$ac_try;; 1977esac 1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1979$as_echo "$ac_try_echo"; } >&5 1980 (eval "$ac_link") 2>conftest.err 1981 ac_status=$? 1982 if test -s conftest.err; then 1983 grep -v '^ *+' conftest.err >conftest.er1 1984 cat conftest.er1 >&5 1985 mv -f conftest.er1 conftest.err 1986 fi 1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1988 test $ac_status = 0; } && { 1989 test -z "$ac_cxx_werror_flag" || 1990 test ! -s conftest.err 1991 } && test -s conftest$ac_exeext && { 1992 test "$cross_compiling" = yes || 1993 $as_test_x conftest$ac_exeext 1994 }; then : 1995 ac_retval=0 1996else 1997 $as_echo "$as_me: failed program was:" >&5 1998sed 's/^/| /' conftest.$ac_ext >&5 1999 2000 ac_retval=1 2001fi 2002 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2003 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2004 # interfere with the next link command; also delete a directory that is 2005 # left behind by Apple's compiler. We do this before executing the actions. 2006 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2008 as_fn_set_status $ac_retval 2009 2010} # ac_fn_cxx_try_link 2011 2012# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2013# ------------------------------------------------------- 2014# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2015# the include files in INCLUDES and setting the cache variable VAR 2016# accordingly. 2017ac_fn_c_check_header_mongrel () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 if eval \${$3+:} false; then : 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2022$as_echo_n "checking for $2... " >&6; } 2023if eval \${$3+:} false; then : 2024 $as_echo_n "(cached) " >&6 2025fi 2026eval ac_res=\$$3 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028$as_echo "$ac_res" >&6; } 2029else 2030 # Is the header compilable? 2031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2032$as_echo_n "checking $2 usability... " >&6; } 2033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036#include <$2> 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO"; then : 2039 ac_header_compiler=yes 2040else 2041 ac_header_compiler=no 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2045$as_echo "$ac_header_compiler" >&6; } 2046 2047# Is the header present? 2048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2049$as_echo_n "checking $2 presence... " >&6; } 2050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052#include <$2> 2053_ACEOF 2054if ac_fn_c_try_cpp "$LINENO"; then : 2055 ac_header_preproc=yes 2056else 2057 ac_header_preproc=no 2058fi 2059rm -f conftest.err conftest.i conftest.$ac_ext 2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2061$as_echo "$ac_header_preproc" >&6; } 2062 2063# So? What about this header? 2064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2065 yes:no: ) 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2067$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2070 ;; 2071 no:yes:* ) 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2073$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2075$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2077$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2079$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2081$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2082( $as_echo "## -------------------------------------- ## 2083## Report this to [email protected] ## 2084## -------------------------------------- ##" 2085 ) | sed "s/^/$as_me: WARNING: /" >&2 2086 ;; 2087esac 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2089$as_echo_n "checking for $2... " >&6; } 2090if eval \${$3+:} false; then : 2091 $as_echo_n "(cached) " >&6 2092else 2093 eval "$3=\$ac_header_compiler" 2094fi 2095eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097$as_echo "$ac_res" >&6; } 2098fi 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 2101} # ac_fn_c_check_header_mongrel 2102 2103# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2104# ------------------------------------------- 2105# Tests whether TYPE exists after having included INCLUDES, setting cache 2106# variable VAR accordingly. 2107ac_fn_c_check_type () 2108{ 2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2111$as_echo_n "checking for $2... " >&6; } 2112if eval \${$3+:} false; then : 2113 $as_echo_n "(cached) " >&6 2114else 2115 eval "$3=no" 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119int 2120main () 2121{ 2122if (sizeof ($2)) 2123 return 0; 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$4 2132int 2133main () 2134{ 2135if (sizeof (($2))) 2136 return 0; 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 2143else 2144 eval "$3=yes" 2145fi 2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149fi 2150eval ac_res=\$$3 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2152$as_echo "$ac_res" >&6; } 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2154 2155} # ac_fn_c_check_type 2156 2157# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2158# -------------------------------------------- 2159# Tries to find the compile-time value of EXPR in a program that includes 2160# INCLUDES, setting VAR accordingly. Returns whether the value could be 2161# computed 2162ac_fn_c_compute_int () 2163{ 2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2165 if test "$cross_compiling" = yes; then 2166 # Depending upon the size, compute the lo and hi bounds. 2167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173static int test_array [1 - 2 * !(($2) >= 0)]; 2174test_array [0] = 0 2175 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180if ac_fn_c_try_compile "$LINENO"; then : 2181 ac_lo=0 ac_mid=0 2182 while :; do 2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2184/* end confdefs.h. */ 2185$4 2186int 2187main () 2188{ 2189static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2190test_array [0] = 0 2191 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196if ac_fn_c_try_compile "$LINENO"; then : 2197 ac_hi=$ac_mid; break 2198else 2199 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2200 if test $ac_lo -le $ac_mid; then 2201 ac_lo= ac_hi= 2202 break 2203 fi 2204 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207 done 2208else 2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2210/* end confdefs.h. */ 2211$4 2212int 2213main () 2214{ 2215static int test_array [1 - 2 * !(($2) < 0)]; 2216test_array [0] = 0 2217 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_compile "$LINENO"; then : 2223 ac_hi=-1 ac_mid=-1 2224 while :; do 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$4 2228int 2229main () 2230{ 2231static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2232test_array [0] = 0 2233 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_compile "$LINENO"; then : 2239 ac_lo=$ac_mid; break 2240else 2241 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2242 if test $ac_mid -le $ac_hi; then 2243 ac_lo= ac_hi= 2244 break 2245 fi 2246 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2247fi 2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2249 done 2250else 2251 ac_lo= ac_hi= 2252fi 2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2254fi 2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2256# Binary search between lo and hi bounds. 2257while test "x$ac_lo" != "x$ac_hi"; do 2258 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260/* end confdefs.h. */ 2261$4 2262int 2263main () 2264{ 2265static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2266test_array [0] = 0 2267 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_compile "$LINENO"; then : 2273 ac_hi=$ac_mid 2274else 2275 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2276fi 2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2278done 2279case $ac_lo in #(( 2280?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2281'') ac_retval=1 ;; 2282esac 2283 else 2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2285/* end confdefs.h. */ 2286$4 2287static long int longval () { return $2; } 2288static unsigned long int ulongval () { return $2; } 2289#include <stdio.h> 2290#include <stdlib.h> 2291int 2292main () 2293{ 2294 2295 FILE *f = fopen ("conftest.val", "w"); 2296 if (! f) 2297 return 1; 2298 if (($2) < 0) 2299 { 2300 long int i = longval (); 2301 if (i != ($2)) 2302 return 1; 2303 fprintf (f, "%ld", i); 2304 } 2305 else 2306 { 2307 unsigned long int i = ulongval (); 2308 if (i != ($2)) 2309 return 1; 2310 fprintf (f, "%lu", i); 2311 } 2312 /* Do not output a trailing newline, as this causes \r\n confusion 2313 on some platforms. */ 2314 return ferror (f) || fclose (f) != 0; 2315 2316 ; 2317 return 0; 2318} 2319_ACEOF 2320if ac_fn_c_try_run "$LINENO"; then : 2321 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2322else 2323 ac_retval=1 2324fi 2325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2326 conftest.$ac_objext conftest.beam conftest.$ac_ext 2327rm -f conftest.val 2328 2329 fi 2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2331 as_fn_set_status $ac_retval 2332 2333} # ac_fn_c_compute_int 2334cat >config.log <<_ACEOF 2335This file contains any messages produced by compilers while 2336running configure, to aid debugging if configure makes a mistake. 2337 2338It was created by LibTIFF Software $as_me 4.0.0beta6, which was 2339generated by GNU Autoconf 2.68. Invocation command line was 2340 2341 $ $0 $@ 2342 2343_ACEOF 2344exec 5>>config.log 2345{ 2346cat <<_ASUNAME 2347## --------- ## 2348## Platform. ## 2349## --------- ## 2350 2351hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2352uname -m = `(uname -m) 2>/dev/null || echo unknown` 2353uname -r = `(uname -r) 2>/dev/null || echo unknown` 2354uname -s = `(uname -s) 2>/dev/null || echo unknown` 2355uname -v = `(uname -v) 2>/dev/null || echo unknown` 2356 2357/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2358/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2359 2360/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2361/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2362/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2363/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2364/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2365/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2366/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2367 2368_ASUNAME 2369 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 $as_echo "PATH: $as_dir" 2376 done 2377IFS=$as_save_IFS 2378 2379} >&5 2380 2381cat >&5 <<_ACEOF 2382 2383 2384## ----------- ## 2385## Core tests. ## 2386## ----------- ## 2387 2388_ACEOF 2389 2390 2391# Keep a trace of the command line. 2392# Strip out --no-create and --no-recursion so they do not pile up. 2393# Strip out --silent because we don't want to record it for future runs. 2394# Also quote any args containing shell meta-characters. 2395# Make two passes to allow for proper duplicate-argument suppression. 2396ac_configure_args= 2397ac_configure_args0= 2398ac_configure_args1= 2399ac_must_keep_next=false 2400for ac_pass in 1 2 2401do 2402 for ac_arg 2403 do 2404 case $ac_arg in 2405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2407 | -silent | --silent | --silen | --sile | --sil) 2408 continue ;; 2409 *\'*) 2410 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2411 esac 2412 case $ac_pass in 2413 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2414 2) 2415 as_fn_append ac_configure_args1 " '$ac_arg'" 2416 if test $ac_must_keep_next = true; then 2417 ac_must_keep_next=false # Got value, back to normal. 2418 else 2419 case $ac_arg in 2420 *=* | --config-cache | -C | -disable-* | --disable-* \ 2421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2423 | -with-* | --with-* | -without-* | --without-* | --x) 2424 case "$ac_configure_args0 " in 2425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2426 esac 2427 ;; 2428 -* ) ac_must_keep_next=true ;; 2429 esac 2430 fi 2431 as_fn_append ac_configure_args " '$ac_arg'" 2432 ;; 2433 esac 2434 done 2435done 2436{ ac_configure_args0=; unset ac_configure_args0;} 2437{ ac_configure_args1=; unset ac_configure_args1;} 2438 2439# When interrupted or exit'd, cleanup temporary files, and complete 2440# config.log. We remove comments because anyway the quotes in there 2441# would cause problems or look ugly. 2442# WARNING: Use '\'' to represent an apostrophe within the trap. 2443# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2444trap 'exit_status=$? 2445 # Save into config.log some information that might help in debugging. 2446 { 2447 echo 2448 2449 $as_echo "## ---------------- ## 2450## Cache variables. ## 2451## ---------------- ##" 2452 echo 2453 # The following way of writing the cache mishandles newlines in values, 2454( 2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2456 eval ac_val=\$$ac_var 2457 case $ac_val in #( 2458 *${as_nl}*) 2459 case $ac_var in #( 2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2462 esac 2463 case $ac_var in #( 2464 _ | IFS | as_nl) ;; #( 2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2466 *) { eval $ac_var=; unset $ac_var;} ;; 2467 esac ;; 2468 esac 2469 done 2470 (set) 2>&1 | 2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2472 *${as_nl}ac_space=\ *) 2473 sed -n \ 2474 "s/'\''/'\''\\\\'\'''\''/g; 2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2476 ;; #( 2477 *) 2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2479 ;; 2480 esac | 2481 sort 2482) 2483 echo 2484 2485 $as_echo "## ----------------- ## 2486## Output variables. ## 2487## ----------------- ##" 2488 echo 2489 for ac_var in $ac_subst_vars 2490 do 2491 eval ac_val=\$$ac_var 2492 case $ac_val in 2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2494 esac 2495 $as_echo "$ac_var='\''$ac_val'\''" 2496 done | sort 2497 echo 2498 2499 if test -n "$ac_subst_files"; then 2500 $as_echo "## ------------------- ## 2501## File substitutions. ## 2502## ------------------- ##" 2503 echo 2504 for ac_var in $ac_subst_files 2505 do 2506 eval ac_val=\$$ac_var 2507 case $ac_val in 2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2509 esac 2510 $as_echo "$ac_var='\''$ac_val'\''" 2511 done | sort 2512 echo 2513 fi 2514 2515 if test -s confdefs.h; then 2516 $as_echo "## ----------- ## 2517## confdefs.h. ## 2518## ----------- ##" 2519 echo 2520 cat confdefs.h 2521 echo 2522 fi 2523 test "$ac_signal" != 0 && 2524 $as_echo "$as_me: caught signal $ac_signal" 2525 $as_echo "$as_me: exit $exit_status" 2526 } >&5 2527 rm -f core *.core core.conftest.* && 2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2529 exit $exit_status 2530' 0 2531for ac_signal in 1 2 13 15; do 2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2533done 2534ac_signal=0 2535 2536# confdefs.h avoids OS command line length limits that DEFS can exceed. 2537rm -f -r conftest* confdefs.h 2538 2539$as_echo "/* confdefs.h */" > confdefs.h 2540 2541# Predefined preprocessor variables. 2542 2543cat >>confdefs.h <<_ACEOF 2544#define PACKAGE_NAME "$PACKAGE_NAME" 2545_ACEOF 2546 2547cat >>confdefs.h <<_ACEOF 2548#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2549_ACEOF 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_VERSION "$PACKAGE_VERSION" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_STRING "$PACKAGE_STRING" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2561_ACEOF 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE_URL "$PACKAGE_URL" 2565_ACEOF 2566 2567 2568# Let the site file select an alternate cache file if it wants to. 2569# Prefer an explicitly selected file to automatically selected ones. 2570ac_site_file1=NONE 2571ac_site_file2=NONE 2572if test -n "$CONFIG_SITE"; then 2573 # We do not want a PATH search for config.site. 2574 case $CONFIG_SITE in #(( 2575 -*) ac_site_file1=./$CONFIG_SITE;; 2576 */*) ac_site_file1=$CONFIG_SITE;; 2577 *) ac_site_file1=./$CONFIG_SITE;; 2578 esac 2579elif test "x$prefix" != xNONE; then 2580 ac_site_file1=$prefix/share/config.site 2581 ac_site_file2=$prefix/etc/config.site 2582else 2583 ac_site_file1=$ac_default_prefix/share/config.site 2584 ac_site_file2=$ac_default_prefix/etc/config.site 2585fi 2586for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2587do 2588 test "x$ac_site_file" = xNONE && continue 2589 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2591$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2592 sed 's/^/| /' "$ac_site_file" >&5 2593 . "$ac_site_file" \ 2594 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2596as_fn_error $? "failed to load site script $ac_site_file 2597See \`config.log' for more details" "$LINENO" 5; } 2598 fi 2599done 2600 2601if test -r "$cache_file"; then 2602 # Some versions of bash will fail to source /dev/null (special files 2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2606$as_echo "$as_me: loading cache $cache_file" >&6;} 2607 case $cache_file in 2608 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2609 *) . "./$cache_file";; 2610 esac 2611 fi 2612else 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2614$as_echo "$as_me: creating cache $cache_file" >&6;} 2615 >$cache_file 2616fi 2617 2618# Check that the precious variables saved in the cache have kept the same 2619# value. 2620ac_cache_corrupted=false 2621for ac_var in $ac_precious_vars; do 2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2623 eval ac_new_set=\$ac_env_${ac_var}_set 2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2625 eval ac_new_val=\$ac_env_${ac_var}_value 2626 case $ac_old_set,$ac_new_set in 2627 set,) 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2629$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2630 ac_cache_corrupted=: ;; 2631 ,set) 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2633$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2634 ac_cache_corrupted=: ;; 2635 ,);; 2636 *) 2637 if test "x$ac_old_val" != "x$ac_new_val"; then 2638 # differences in whitespace do not lead to failure. 2639 ac_old_val_w=`echo x $ac_old_val` 2640 ac_new_val_w=`echo x $ac_new_val` 2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2643$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2644 ac_cache_corrupted=: 2645 else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2647$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2648 eval $ac_var=\$ac_old_val 2649 fi 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2651$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2653$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2654 fi;; 2655 esac 2656 # Pass precious variables to config.status. 2657 if test "$ac_new_set" = set; then 2658 case $ac_new_val in 2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2660 *) ac_arg=$ac_var=$ac_new_val ;; 2661 esac 2662 case " $ac_configure_args " in 2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2665 esac 2666 fi 2667done 2668if $ac_cache_corrupted; then 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2672$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2673 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2674fi 2675## -------------------- ## 2676## Main body of script. ## 2677## -------------------- ## 2678 2679ac_ext=c 2680ac_cpp='$CPP $CPPFLAGS' 2681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2683ac_compiler_gnu=$ac_cv_c_compiler_gnu 2684 2685 2686ac_aux_dir= 2687for ac_dir in config "$srcdir"/config; do 2688 if test -f "$ac_dir/install-sh"; then 2689 ac_aux_dir=$ac_dir 2690 ac_install_sh="$ac_aux_dir/install-sh -c" 2691 break 2692 elif test -f "$ac_dir/install.sh"; then 2693 ac_aux_dir=$ac_dir 2694 ac_install_sh="$ac_aux_dir/install.sh -c" 2695 break 2696 elif test -f "$ac_dir/shtool"; then 2697 ac_aux_dir=$ac_dir 2698 ac_install_sh="$ac_aux_dir/shtool install -c" 2699 break 2700 fi 2701done 2702if test -z "$ac_aux_dir"; then 2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2704fi 2705 2706# These three variables are undocumented and unsupported, 2707# and are intended to be withdrawn in a future Autoconf release. 2708# They can cause serious problems if a builder's source tree is in a directory 2709# whose full name contains unusual characters. 2710ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2711ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2712ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2713 2714 2715 2716ac_ext=c 2717ac_cpp='$CPP $CPPFLAGS' 2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2720ac_compiler_gnu=$ac_cv_c_compiler_gnu 2721 2722 2723# Make sure we can run config.sub. 2724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2726 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2728$as_echo_n "checking build system type... " >&6; } 2729if ${ac_cv_build+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 ac_build_alias=$build_alias 2733test "x$ac_build_alias" = x && 2734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2735test "x$ac_build_alias" = x && 2736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2737ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2739 2740fi 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2742$as_echo "$ac_cv_build" >&6; } 2743case $ac_cv_build in 2744*-*-*) ;; 2745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2746esac 2747build=$ac_cv_build 2748ac_save_IFS=$IFS; IFS='-' 2749set x $ac_cv_build 2750shift 2751build_cpu=$1 2752build_vendor=$2 2753shift; shift 2754# Remember, the first character of IFS is used to create $*, 2755# except with old shells: 2756build_os=$* 2757IFS=$ac_save_IFS 2758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2759 2760 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2762$as_echo_n "checking host system type... " >&6; } 2763if ${ac_cv_host+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test "x$host_alias" = x; then 2767 ac_cv_host=$ac_cv_build 2768else 2769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2771fi 2772 2773fi 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2775$as_echo "$ac_cv_host" >&6; } 2776case $ac_cv_host in 2777*-*-*) ;; 2778*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2779esac 2780host=$ac_cv_host 2781ac_save_IFS=$IFS; IFS='-' 2782set x $ac_cv_host 2783shift 2784host_cpu=$1 2785host_vendor=$2 2786shift; shift 2787# Remember, the first character of IFS is used to create $*, 2788# except with old shells: 2789host_os=$* 2790IFS=$ac_save_IFS 2791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2792 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2795$as_echo_n "checking target system type... " >&6; } 2796if ${ac_cv_target+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test "x$target_alias" = x; then 2800 ac_cv_target=$ac_cv_host 2801else 2802 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2804fi 2805 2806fi 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2808$as_echo "$ac_cv_target" >&6; } 2809case $ac_cv_target in 2810*-*-*) ;; 2811*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2812esac 2813target=$ac_cv_target 2814ac_save_IFS=$IFS; IFS='-' 2815set x $ac_cv_target 2816shift 2817target_cpu=$1 2818target_vendor=$2 2819shift; shift 2820# Remember, the first character of IFS is used to create $*, 2821# except with old shells: 2822target_os=$* 2823IFS=$ac_save_IFS 2824case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2825 2826 2827# The aliases save the names the user supplied, while $host etc. 2828# will get canonicalized. 2829test -n "$target_alias" && 2830 test "$program_prefix$program_suffix$program_transform_name" = \ 2831 NONENONEs,x,x, && 2832 program_prefix=${target_alias}- 2833 2834am__api_version='1.11' 2835 2836# Find a good install program. We prefer a C program (faster), 2837# so one script is as good as another. But avoid the broken or 2838# incompatible versions: 2839# SysV /etc/install, /usr/sbin/install 2840# SunOS /usr/etc/install 2841# IRIX /sbin/install 2842# AIX /bin/install 2843# AmigaOS /C/install, which installs bootblocks on floppy discs 2844# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2845# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2846# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2847# OS/2's system install, which has a completely different semantic 2848# ./install, which can be erroneously created by make from ./install.sh. 2849# Reject install programs that cannot install multiple files. 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2851$as_echo_n "checking for a BSD-compatible install... " >&6; } 2852if test -z "$INSTALL"; then 2853if ${ac_cv_path_install+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 # Account for people who put trailing slashes in PATH elements. 2862case $as_dir/ in #(( 2863 ./ | .// | /[cC]/* | \ 2864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2865 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2866 /usr/ucb/* ) ;; 2867 *) 2868 # OSF1 and SCO ODT 3.0 have their own names for install. 2869 # Don't use installbsd from OSF since it installs stuff as root 2870 # by default. 2871 for ac_prog in ginstall scoinst install; do 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2874 if test $ac_prog = install && 2875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2876 # AIX install. It has an incompatible calling convention. 2877 : 2878 elif test $ac_prog = install && 2879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2880 # program-specific install script used by HP pwplus--don't use. 2881 : 2882 else 2883 rm -rf conftest.one conftest.two conftest.dir 2884 echo one > conftest.one 2885 echo two > conftest.two 2886 mkdir conftest.dir 2887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2888 test -s conftest.one && test -s conftest.two && 2889 test -s conftest.dir/conftest.one && 2890 test -s conftest.dir/conftest.two 2891 then 2892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2893 break 3 2894 fi 2895 fi 2896 fi 2897 done 2898 done 2899 ;; 2900esac 2901 2902 done 2903IFS=$as_save_IFS 2904 2905rm -rf conftest.one conftest.two conftest.dir 2906 2907fi 2908 if test "${ac_cv_path_install+set}" = set; then 2909 INSTALL=$ac_cv_path_install 2910 else 2911 # As a last resort, use the slow shell script. Don't cache a 2912 # value for INSTALL within a source directory, because that will 2913 # break other packages using the cache if that directory is 2914 # removed, or if the value is a relative name. 2915 INSTALL=$ac_install_sh 2916 fi 2917fi 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2919$as_echo "$INSTALL" >&6; } 2920 2921# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2922# It thinks the first close brace ends the variable substitution. 2923test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2924 2925test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2926 2927test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2928 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2930$as_echo_n "checking whether build environment is sane... " >&6; } 2931# Just in case 2932sleep 1 2933echo timestamp > conftest.file 2934# Reject unsafe characters in $srcdir or the absolute working directory 2935# name. Accept space and tab only in the latter. 2936am_lf=' 2937' 2938case `pwd` in 2939 *[\\\"\#\$\&\'\`$am_lf]*) 2940 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2941esac 2942case $srcdir in 2943 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2944 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2945esac 2946 2947# Do `set' in a subshell so we don't clobber the current shell's 2948# arguments. Must try -L first in case configure is actually a 2949# symlink; some systems play weird games with the mod time of symlinks 2950# (eg FreeBSD returns the mod time of the symlink's containing 2951# directory). 2952if ( 2953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2954 if test "$*" = "X"; then 2955 # -L didn't work. 2956 set X `ls -t "$srcdir/configure" conftest.file` 2957 fi 2958 rm -f conftest.file 2959 if test "$*" != "X $srcdir/configure conftest.file" \ 2960 && test "$*" != "X conftest.file $srcdir/configure"; then 2961 2962 # If neither matched, then we have a broken ls. This can happen 2963 # if, for instance, CONFIG_SHELL is bash and it inherits a 2964 # broken ls alias from the environment. This has actually 2965 # happened. Such a system could not be considered "sane". 2966 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2967alias in your environment" "$LINENO" 5 2968 fi 2969 2970 test "$2" = conftest.file 2971 ) 2972then 2973 # Ok. 2974 : 2975else 2976 as_fn_error $? "newly created file is older than distributed files! 2977Check your system clock" "$LINENO" 5 2978fi 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2980$as_echo "yes" >&6; } 2981test "$program_prefix" != NONE && 2982 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2983# Use a double $ so make ignores it. 2984test "$program_suffix" != NONE && 2985 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2986# Double any \ or $. 2987# By default was `s,x,x', remove it if useless. 2988ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2989program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2990 2991# expand $ac_aux_dir to an absolute path 2992am_aux_dir=`cd $ac_aux_dir && pwd` 2993 2994if test x"${MISSING+set}" != xset; then 2995 case $am_aux_dir in 2996 *\ * | *\ *) 2997 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2998 *) 2999 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3000 esac 3001fi 3002# Use eval to expand $SHELL 3003if eval "$MISSING --run true"; then 3004 am_missing_run="$MISSING --run " 3005else 3006 am_missing_run= 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3008$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3009fi 3010 3011if test x"${install_sh}" != xset; then 3012 case $am_aux_dir in 3013 *\ * | *\ *) 3014 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3015 *) 3016 install_sh="\${SHELL} $am_aux_dir/install-sh" 3017 esac 3018fi 3019 3020# Installed binaries are usually stripped using `strip' when the user 3021# run `make install-strip'. However `strip' might not be the right 3022# tool to use in cross-compilation environments, therefore Automake 3023# will honor the `STRIP' environment variable to overrule this program. 3024if test "$cross_compiling" != no; then 3025 if test -n "$ac_tool_prefix"; then 3026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3027set dummy ${ac_tool_prefix}strip; ac_word=$2 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3029$as_echo_n "checking for $ac_word... " >&6; } 3030if ${ac_cv_prog_STRIP+:} false; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 if test -n "$STRIP"; then 3034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3035else 3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3037for as_dir in $PATH 3038do 3039 IFS=$as_save_IFS 3040 test -z "$as_dir" && as_dir=. 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047done 3048 done 3049IFS=$as_save_IFS 3050 3051fi 3052fi 3053STRIP=$ac_cv_prog_STRIP 3054if test -n "$STRIP"; then 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3056$as_echo "$STRIP" >&6; } 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060fi 3061 3062 3063fi 3064if test -z "$ac_cv_prog_STRIP"; then 3065 ac_ct_STRIP=$STRIP 3066 # Extract the first word of "strip", so it can be a program name with args. 3067set dummy strip; ac_word=$2 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3069$as_echo_n "checking for $ac_word... " >&6; } 3070if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test -n "$ac_ct_STRIP"; then 3074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3075else 3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3083 ac_cv_prog_ac_ct_STRIP="strip" 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3085 break 2 3086 fi 3087done 3088 done 3089IFS=$as_save_IFS 3090 3091fi 3092fi 3093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3094if test -n "$ac_ct_STRIP"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3096$as_echo "$ac_ct_STRIP" >&6; } 3097else 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100fi 3101 3102 if test "x$ac_ct_STRIP" = x; then 3103 STRIP=":" 3104 else 3105 case $cross_compiling:$ac_tool_warned in 3106yes:) 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3109ac_tool_warned=yes ;; 3110esac 3111 STRIP=$ac_ct_STRIP 3112 fi 3113else 3114 STRIP="$ac_cv_prog_STRIP" 3115fi 3116 3117fi 3118INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3119 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3121$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3122if test -z "$MKDIR_P"; then 3123 if ${ac_cv_path_mkdir+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_prog in mkdir gmkdir; do 3132 for ac_exec_ext in '' $ac_executable_extensions; do 3133 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3134 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3135 'mkdir (GNU coreutils) '* | \ 3136 'mkdir (coreutils) '* | \ 3137 'mkdir (fileutils) '4.1*) 3138 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3139 break 3;; 3140 esac 3141 done 3142 done 3143 done 3144IFS=$as_save_IFS 3145 3146fi 3147 3148 test -d ./--version && rmdir ./--version 3149 if test "${ac_cv_path_mkdir+set}" = set; then 3150 MKDIR_P="$ac_cv_path_mkdir -p" 3151 else 3152 # As a last resort, use the slow shell script. Don't cache a 3153 # value for MKDIR_P within a source directory, because that will 3154 # break other packages using the cache if that directory is 3155 # removed, or if the value is a relative name. 3156 MKDIR_P="$ac_install_sh -d" 3157 fi 3158fi 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3160$as_echo "$MKDIR_P" >&6; } 3161 3162mkdir_p="$MKDIR_P" 3163case $mkdir_p in 3164 [\\/$]* | ?:[\\/]*) ;; 3165 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3166esac 3167 3168for ac_prog in gawk mawk nawk awk 3169do 3170 # Extract the first word of "$ac_prog", so it can be a program name with args. 3171set dummy $ac_prog; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_AWK+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$AWK"; then 3178 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3187 ac_cv_prog_AWK="$ac_prog" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197AWK=$ac_cv_prog_AWK 3198if test -n "$AWK"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3200$as_echo "$AWK" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207 test -n "$AWK" && break 3208done 3209 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3211$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3212set x ${MAKE-make} 3213ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3214if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 cat >conftest.make <<\_ACEOF 3218SHELL = /bin/sh 3219all: 3220 @echo '@@@%%%=$(MAKE)=@@@%%%' 3221_ACEOF 3222# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3223case `${MAKE-make} -f conftest.make 2>/dev/null` in 3224 *@@@%%%=?*=@@@%%%*) 3225 eval ac_cv_prog_make_${ac_make}_set=yes;; 3226 *) 3227 eval ac_cv_prog_make_${ac_make}_set=no;; 3228esac 3229rm -f conftest.make 3230fi 3231if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3233$as_echo "yes" >&6; } 3234 SET_MAKE= 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238 SET_MAKE="MAKE=${MAKE-make}" 3239fi 3240 3241rm -rf .tst 2>/dev/null 3242mkdir .tst 2>/dev/null 3243if test -d .tst; then 3244 am__leading_dot=. 3245else 3246 am__leading_dot=_ 3247fi 3248rmdir .tst 2>/dev/null 3249 3250if test "`cd $srcdir && pwd`" != "`pwd`"; then 3251 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3252 # is not polluted with repeated "-I." 3253 am__isrc=' -I$(srcdir)' 3254 # test to see if srcdir already configured 3255 if test -f $srcdir/config.status; then 3256 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3257 fi 3258fi 3259 3260# test whether we have cygpath 3261if test -z "$CYGPATH_W"; then 3262 if (cygpath --version) >/dev/null 2>/dev/null; then 3263 CYGPATH_W='cygpath -w' 3264 else 3265 CYGPATH_W=echo 3266 fi 3267fi 3268 3269 3270# Define the identity of the package. 3271 PACKAGE='tiff' 3272 VERSION='4.0.0beta6' 3273 3274 3275cat >>confdefs.h <<_ACEOF 3276#define PACKAGE "$PACKAGE" 3277_ACEOF 3278 3279 3280cat >>confdefs.h <<_ACEOF 3281#define VERSION "$VERSION" 3282_ACEOF 3283 3284# Some tools Automake needs. 3285 3286ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3287 3288 3289AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3290 3291 3292AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3293 3294 3295AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3296 3297 3298MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3299 3300# We need awk for the "check" target. The system "awk" is bad on 3301# some platforms. 3302# Always define AMTAR for backward compatibility. 3303 3304AMTAR=${AMTAR-"${am_missing_run}tar"} 3305 3306am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3307 3308 3309 3310 3311 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3314$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3315 # Check whether --enable-maintainer-mode was given. 3316if test "${enable_maintainer_mode+set}" = set; then : 3317 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3318else 3319 USE_MAINTAINER_MODE=no 3320fi 3321 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3323$as_echo "$USE_MAINTAINER_MODE" >&6; } 3324 if test $USE_MAINTAINER_MODE = yes; then 3325 MAINTAINER_MODE_TRUE= 3326 MAINTAINER_MODE_FALSE='#' 3327else 3328 MAINTAINER_MODE_TRUE='#' 3329 MAINTAINER_MODE_FALSE= 3330fi 3331 3332 MAINT=$MAINTAINER_MODE_TRUE 3333 3334 3335 3336LIBTIFF_MAJOR_VERSION=4 3337LIBTIFF_MINOR_VERSION=0 3338LIBTIFF_MICRO_VERSION=0 3339LIBTIFF_ALPHA_VERSION=beta6 3340LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3341LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3342 3343LIBTIFF_CURRENT=5 3344LIBTIFF_REVISION=3 3345LIBTIFF_AGE=0 3346LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3347 3348# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3349# in OpenBSD uses some special semantics for shared libraries. Their soname 3350# contains only two numbers, major and minor. 3351# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3352#case "$target_os" in 3353# openbsd* | mirbsd*) 3354# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3355# ;; 3356# *) 3357# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3358# ;; 3359#esac 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369ac_ext=c 3370ac_cpp='$CPP $CPPFLAGS' 3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3373ac_compiler_gnu=$ac_cv_c_compiler_gnu 3374if test -n "$ac_tool_prefix"; then 3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3376set dummy ${ac_tool_prefix}gcc; ac_word=$2 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3378$as_echo_n "checking for $ac_word... " >&6; } 3379if ${ac_cv_prog_CC+:} false; then : 3380 $as_echo_n "(cached) " >&6 3381else 3382 if test -n "$CC"; then 3383 ac_cv_prog_CC="$CC" # Let the user override the test. 3384else 3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386for as_dir in $PATH 3387do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3392 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3394 break 2 3395 fi 3396done 3397 done 3398IFS=$as_save_IFS 3399 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405$as_echo "$CC" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412fi 3413if test -z "$ac_cv_prog_CC"; then 3414 ac_ct_CC=$CC 3415 # Extract the first word of "gcc", so it can be a program name with args. 3416set dummy gcc; ac_word=$2 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418$as_echo_n "checking for $ac_word... " >&6; } 3419if ${ac_cv_prog_ac_ct_CC+:} false; then : 3420 $as_echo_n "(cached) " >&6 3421else 3422 if test -n "$ac_ct_CC"; then 3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3424else 3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3426for as_dir in $PATH 3427do 3428 IFS=$as_save_IFS 3429 test -z "$as_dir" && as_dir=. 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3432 ac_cv_prog_ac_ct_CC="gcc" 3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3434 break 2 3435 fi 3436done 3437 done 3438IFS=$as_save_IFS 3439 3440fi 3441fi 3442ac_ct_CC=$ac_cv_prog_ac_ct_CC 3443if test -n "$ac_ct_CC"; then 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3445$as_echo "$ac_ct_CC" >&6; } 3446else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448$as_echo "no" >&6; } 3449fi 3450 3451 if test "x$ac_ct_CC" = x; then 3452 CC="" 3453 else 3454 case $cross_compiling:$ac_tool_warned in 3455yes:) 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3458ac_tool_warned=yes ;; 3459esac 3460 CC=$ac_ct_CC 3461 fi 3462else 3463 CC="$ac_cv_prog_CC" 3464fi 3465 3466if test -z "$CC"; then 3467 if test -n "$ac_tool_prefix"; then 3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3469set dummy ${ac_tool_prefix}cc; ac_word=$2 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3471$as_echo_n "checking for $ac_word... " >&6; } 3472if ${ac_cv_prog_CC+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 if test -n "$CC"; then 3476 ac_cv_prog_CC="$CC" # Let the user override the test. 3477else 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 test -z "$as_dir" && as_dir=. 3483 for ac_exec_ext in '' $ac_executable_extensions; do 3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3485 ac_cv_prog_CC="${ac_tool_prefix}cc" 3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3487 break 2 3488 fi 3489done 3490 done 3491IFS=$as_save_IFS 3492 3493fi 3494fi 3495CC=$ac_cv_prog_CC 3496if test -n "$CC"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3498$as_echo "$CC" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 3505 fi 3506fi 3507if test -z "$CC"; then 3508 # Extract the first word of "cc", so it can be a program name with args. 3509set dummy cc; ac_word=$2 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3511$as_echo_n "checking for $ac_word... " >&6; } 3512if ${ac_cv_prog_CC+:} false; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 if test -n "$CC"; then 3516 ac_cv_prog_CC="$CC" # Let the user override the test. 3517else 3518 ac_prog_rejected=no 3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3527 ac_prog_rejected=yes 3528 continue 3529 fi 3530 ac_cv_prog_CC="cc" 3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3532 break 2 3533 fi 3534done 3535 done 3536IFS=$as_save_IFS 3537 3538if test $ac_prog_rejected = yes; then 3539 # We found a bogon in the path, so make sure we never use it. 3540 set dummy $ac_cv_prog_CC 3541 shift 3542 if test $# != 0; then 3543 # We chose a different compiler from the bogus one. 3544 # However, it has the same basename, so the bogon will be chosen 3545 # first if we set CC to just the basename; use the full file name. 3546 shift 3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3548 fi 3549fi 3550fi 3551fi 3552CC=$ac_cv_prog_CC 3553if test -n "$CC"; then 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3555$as_echo "$CC" >&6; } 3556else 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558$as_echo "no" >&6; } 3559fi 3560 3561 3562fi 3563if test -z "$CC"; then 3564 if test -n "$ac_tool_prefix"; then 3565 for ac_prog in cl.exe 3566 do 3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3568set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3570$as_echo_n "checking for $ac_word... " >&6; } 3571if ${ac_cv_prog_CC+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 if test -n "$CC"; then 3575 ac_cv_prog_CC="$CC" # Let the user override the test. 3576else 3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3578for as_dir in $PATH 3579do 3580 IFS=$as_save_IFS 3581 test -z "$as_dir" && as_dir=. 3582 for ac_exec_ext in '' $ac_executable_extensions; do 3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3586 break 2 3587 fi 3588done 3589 done 3590IFS=$as_save_IFS 3591 3592fi 3593fi 3594CC=$ac_cv_prog_CC 3595if test -n "$CC"; then 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3597$as_echo "$CC" >&6; } 3598else 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3600$as_echo "no" >&6; } 3601fi 3602 3603 3604 test -n "$CC" && break 3605 done 3606fi 3607if test -z "$CC"; then 3608 ac_ct_CC=$CC 3609 for ac_prog in cl.exe 3610do 3611 # Extract the first word of "$ac_prog", so it can be a program name with args. 3612set dummy $ac_prog; ac_word=$2 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614$as_echo_n "checking for $ac_word... " >&6; } 3615if ${ac_cv_prog_ac_ct_CC+:} false; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test -n "$ac_ct_CC"; then 3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3620else 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3628 ac_cv_prog_ac_ct_CC="$ac_prog" 3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638ac_ct_CC=$ac_cv_prog_ac_ct_CC 3639if test -n "$ac_ct_CC"; then 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3641$as_echo "$ac_ct_CC" >&6; } 3642else 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644$as_echo "no" >&6; } 3645fi 3646 3647 3648 test -n "$ac_ct_CC" && break 3649done 3650 3651 if test "x$ac_ct_CC" = x; then 3652 CC="" 3653 else 3654 case $cross_compiling:$ac_tool_warned in 3655yes:) 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3658ac_tool_warned=yes ;; 3659esac 3660 CC=$ac_ct_CC 3661 fi 3662fi 3663 3664fi 3665 3666 3667test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3669as_fn_error $? "no acceptable C compiler found in \$PATH 3670See \`config.log' for more details" "$LINENO" 5; } 3671 3672# Provide some information about the compiler. 3673$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3674set X $ac_compile 3675ac_compiler=$2 3676for ac_option in --version -v -V -qversion; do 3677 { { ac_try="$ac_compiler $ac_option >&5" 3678case "(($ac_try" in 3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3680 *) ac_try_echo=$ac_try;; 3681esac 3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3683$as_echo "$ac_try_echo"; } >&5 3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3685 ac_status=$? 3686 if test -s conftest.err; then 3687 sed '10a\ 3688... rest of stderr output deleted ... 3689 10q' conftest.err >conftest.er1 3690 cat conftest.er1 >&5 3691 fi 3692 rm -f conftest.er1 conftest.err 3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3694 test $ac_status = 0; } 3695done 3696 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708ac_clean_files_save=$ac_clean_files 3709ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3710# Try to create an executable without -o first, disregard a.out. 3711# It will help us diagnose broken compilers, and finding out an intuition 3712# of exeext. 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3714$as_echo_n "checking whether the C compiler works... " >&6; } 3715ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3716 3717# The possible output files: 3718ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3719 3720ac_rmfiles= 3721for ac_file in $ac_files 3722do 3723 case $ac_file in 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3726 esac 3727done 3728rm -f $ac_rmfiles 3729 3730if { { ac_try="$ac_link_default" 3731case "(($ac_try" in 3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3733 *) ac_try_echo=$ac_try;; 3734esac 3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3736$as_echo "$ac_try_echo"; } >&5 3737 (eval "$ac_link_default") 2>&5 3738 ac_status=$? 3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3740 test $ac_status = 0; }; then : 3741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3742# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3743# in a Makefile. We should not override ac_cv_exeext if it was cached, 3744# so that the user can short-circuit this test for compilers unknown to 3745# Autoconf. 3746for ac_file in $ac_files '' 3747do 3748 test -f "$ac_file" || continue 3749 case $ac_file in 3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3751 ;; 3752 [ab].out ) 3753 # We found the default executable, but exeext='' is most 3754 # certainly right. 3755 break;; 3756 *.* ) 3757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3758 then :; else 3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3760 fi 3761 # We set ac_cv_exeext here because the later test for it is not 3762 # safe: cross compilers may not add the suffix if given an `-o' 3763 # argument, so we may need to know it at that point already. 3764 # Even if this section looks crufty: it has the advantage of 3765 # actually working. 3766 break;; 3767 * ) 3768 break;; 3769 esac 3770done 3771test "$ac_cv_exeext" = no && ac_cv_exeext= 3772 3773else 3774 ac_file='' 3775fi 3776if test -z "$ac_file"; then : 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3778$as_echo "no" >&6; } 3779$as_echo "$as_me: failed program was:" >&5 3780sed 's/^/| /' conftest.$ac_ext >&5 3781 3782{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3784as_fn_error 77 "C compiler cannot create executables 3785See \`config.log' for more details" "$LINENO" 5; } 3786else 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3788$as_echo "yes" >&6; } 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3791$as_echo_n "checking for C compiler default output file name... " >&6; } 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3793$as_echo "$ac_file" >&6; } 3794ac_exeext=$ac_cv_exeext 3795 3796rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3797ac_clean_files=$ac_clean_files_save 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3799$as_echo_n "checking for suffix of executables... " >&6; } 3800if { { ac_try="$ac_link" 3801case "(($ac_try" in 3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3803 *) ac_try_echo=$ac_try;; 3804esac 3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3806$as_echo "$ac_try_echo"; } >&5 3807 (eval "$ac_link") 2>&5 3808 ac_status=$? 3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3810 test $ac_status = 0; }; then : 3811 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3812# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3813# work properly (i.e., refer to `conftest.exe'), while it won't with 3814# `rm'. 3815for ac_file in conftest.exe conftest conftest.*; do 3816 test -f "$ac_file" || continue 3817 case $ac_file in 3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3820 break;; 3821 * ) break;; 3822 esac 3823done 3824else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3828See \`config.log' for more details" "$LINENO" 5; } 3829fi 3830rm -f conftest conftest$ac_cv_exeext 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3832$as_echo "$ac_cv_exeext" >&6; } 3833 3834rm -f conftest.$ac_ext 3835EXEEXT=$ac_cv_exeext 3836ac_exeext=$EXEEXT 3837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839#include <stdio.h> 3840int 3841main () 3842{ 3843FILE *f = fopen ("conftest.out", "w"); 3844 return ferror (f) || fclose (f) != 0; 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850ac_clean_files="$ac_clean_files conftest.out" 3851# Check that the compiler produces executables we can run. If not, either 3852# the compiler is broken, or we cross compile. 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3854$as_echo_n "checking whether we are cross compiling... " >&6; } 3855if test "$cross_compiling" != yes; then 3856 { { ac_try="$ac_link" 3857case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3862$as_echo "$ac_try_echo"; } >&5 3863 (eval "$ac_link") 2>&5 3864 ac_status=$? 3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3866 test $ac_status = 0; } 3867 if { ac_try='./conftest$ac_cv_exeext' 3868 { { case "(($ac_try" in 3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3870 *) ac_try_echo=$ac_try;; 3871esac 3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3873$as_echo "$ac_try_echo"; } >&5 3874 (eval "$ac_try") 2>&5 3875 ac_status=$? 3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3877 test $ac_status = 0; }; }; then 3878 cross_compiling=no 3879 else 3880 if test "$cross_compiling" = maybe; then 3881 cross_compiling=yes 3882 else 3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3885as_fn_error $? "cannot run C compiled programs. 3886If you meant to cross compile, use \`--host'. 3887See \`config.log' for more details" "$LINENO" 5; } 3888 fi 3889 fi 3890fi 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3892$as_echo "$cross_compiling" >&6; } 3893 3894rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3895ac_clean_files=$ac_clean_files_save 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3897$as_echo_n "checking for suffix of object files... " >&6; } 3898if ${ac_cv_objext+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904int 3905main () 3906{ 3907 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912rm -f conftest.o conftest.obj 3913if { { ac_try="$ac_compile" 3914case "(($ac_try" in 3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3916 *) ac_try_echo=$ac_try;; 3917esac 3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3919$as_echo "$ac_try_echo"; } >&5 3920 (eval "$ac_compile") 2>&5 3921 ac_status=$? 3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3923 test $ac_status = 0; }; then : 3924 for ac_file in conftest.o conftest.obj conftest.*; do 3925 test -f "$ac_file" || continue; 3926 case $ac_file in 3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3929 break;; 3930 esac 3931done 3932else 3933 $as_echo "$as_me: failed program was:" >&5 3934sed 's/^/| /' conftest.$ac_ext >&5 3935 3936{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error $? "cannot compute suffix of object files: cannot compile 3939See \`config.log' for more details" "$LINENO" 5; } 3940fi 3941rm -f conftest.$ac_cv_objext conftest.$ac_ext 3942fi 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3944$as_echo "$ac_cv_objext" >&6; } 3945OBJEXT=$ac_cv_objext 3946ac_objext=$OBJEXT 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3948$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3949if ${ac_cv_c_compiler_gnu+:} false; then : 3950 $as_echo_n "(cached) " >&6 3951else 3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3953/* end confdefs.h. */ 3954 3955int 3956main () 3957{ 3958#ifndef __GNUC__ 3959 choke me 3960#endif 3961 3962 ; 3963 return 0; 3964} 3965_ACEOF 3966if ac_fn_c_try_compile "$LINENO"; then : 3967 ac_compiler_gnu=yes 3968else 3969 ac_compiler_gnu=no 3970fi 3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3972ac_cv_c_compiler_gnu=$ac_compiler_gnu 3973 3974fi 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3976$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3977if test $ac_compiler_gnu = yes; then 3978 GCC=yes 3979else 3980 GCC= 3981fi 3982ac_test_CFLAGS=${CFLAGS+set} 3983ac_save_CFLAGS=$CFLAGS 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3985$as_echo_n "checking whether $CC accepts -g... " >&6; } 3986if ${ac_cv_prog_cc_g+:} false; then : 3987 $as_echo_n "(cached) " >&6 3988else 3989 ac_save_c_werror_flag=$ac_c_werror_flag 3990 ac_c_werror_flag=yes 3991 ac_cv_prog_cc_g=no 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 4006else 4007 CFLAGS="" 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010 4011int 4012main () 4013{ 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019if ac_fn_c_try_compile "$LINENO"; then : 4020 4021else 4022 ac_c_werror_flag=$ac_save_c_werror_flag 4023 CFLAGS="-g" 4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4025/* end confdefs.h. */ 4026 4027int 4028main () 4029{ 4030 4031 ; 4032 return 0; 4033} 4034_ACEOF 4035if ac_fn_c_try_compile "$LINENO"; then : 4036 ac_cv_prog_cc_g=yes 4037fi 4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039fi 4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4041fi 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4043 ac_c_werror_flag=$ac_save_c_werror_flag 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4046$as_echo "$ac_cv_prog_cc_g" >&6; } 4047if test "$ac_test_CFLAGS" = set; then 4048 CFLAGS=$ac_save_CFLAGS 4049elif test $ac_cv_prog_cc_g = yes; then 4050 if test "$GCC" = yes; then 4051 CFLAGS="-g -O2" 4052 else 4053 CFLAGS="-g" 4054 fi 4055else 4056 if test "$GCC" = yes; then 4057 CFLAGS="-O2" 4058 else 4059 CFLAGS= 4060 fi 4061fi 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4063$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4064if ${ac_cv_prog_cc_c89+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 ac_cv_prog_cc_c89=no 4068ac_save_CC=$CC 4069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4070/* end confdefs.h. */ 4071#include <stdarg.h> 4072#include <stdio.h> 4073#include <sys/types.h> 4074#include <sys/stat.h> 4075/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4076struct buf { int x; }; 4077FILE * (*rcsopen) (struct buf *, struct stat *, int); 4078static char *e (p, i) 4079 char **p; 4080 int i; 4081{ 4082 return p[i]; 4083} 4084static char *f (char * (*g) (char **, int), char **p, ...) 4085{ 4086 char *s; 4087 va_list v; 4088 va_start (v,p); 4089 s = g (p, va_arg (v,int)); 4090 va_end (v); 4091 return s; 4092} 4093 4094/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4095 function prototypes and stuff, but not '\xHH' hex character constants. 4096 These don't provoke an error unfortunately, instead are silently treated 4097 as 'x'. The following induces an error, until -std is added to get 4098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4099 array size at least. It's necessary to write '\x00'==0 to get something 4100 that's true only with -std. */ 4101int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4102 4103/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4104 inside strings and character constants. */ 4105#define FOO(x) 'x' 4106int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4107 4108int test (int i, double x); 4109struct s1 {int (*f) (int a);}; 4110struct s2 {int (*f) (double a);}; 4111int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4112int argc; 4113char **argv; 4114int 4115main () 4116{ 4117return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4124do 4125 CC="$ac_save_CC $ac_arg" 4126 if ac_fn_c_try_compile "$LINENO"; then : 4127 ac_cv_prog_cc_c89=$ac_arg 4128fi 4129rm -f core conftest.err conftest.$ac_objext 4130 test "x$ac_cv_prog_cc_c89" != "xno" && break 4131done 4132rm -f conftest.$ac_ext 4133CC=$ac_save_CC 4134 4135fi 4136# AC_CACHE_VAL 4137case "x$ac_cv_prog_cc_c89" in 4138 x) 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4140$as_echo "none needed" >&6; } ;; 4141 xno) 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4143$as_echo "unsupported" >&6; } ;; 4144 *) 4145 CC="$CC $ac_cv_prog_cc_c89" 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4147$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4148esac 4149if test "x$ac_cv_prog_cc_c89" != xno; then : 4150 4151fi 4152 4153ac_ext=c 4154ac_cpp='$CPP $CPPFLAGS' 4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4157ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158DEPDIR="${am__leading_dot}deps" 4159 4160ac_config_commands="$ac_config_commands depfiles" 4161 4162 4163am_make=${MAKE-make} 4164cat > confinc << 'END' 4165am__doit: 4166 @echo this is the am__doit target 4167.PHONY: am__doit 4168END 4169# If we don't find an include directive, just comment out the code. 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4171$as_echo_n "checking for style of include used by $am_make... " >&6; } 4172am__include="#" 4173am__quote= 4174_am_result=none 4175# First try GNU make style include. 4176echo "include confinc" > confmf 4177# Ignore all kinds of additional output from `make'. 4178case `$am_make -s -f confmf 2> /dev/null` in #( 4179*the\ am__doit\ target*) 4180 am__include=include 4181 am__quote= 4182 _am_result=GNU 4183 ;; 4184esac 4185# Now try BSD make style include. 4186if test "$am__include" = "#"; then 4187 echo '.include "confinc"' > confmf 4188 case `$am_make -s -f confmf 2> /dev/null` in #( 4189 *the\ am__doit\ target*) 4190 am__include=.include 4191 am__quote="\"" 4192 _am_result=BSD 4193 ;; 4194 esac 4195fi 4196 4197 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4199$as_echo "$_am_result" >&6; } 4200rm -f confinc confmf 4201 4202# Check whether --enable-dependency-tracking was given. 4203if test "${enable_dependency_tracking+set}" = set; then : 4204 enableval=$enable_dependency_tracking; 4205fi 4206 4207if test "x$enable_dependency_tracking" != xno; then 4208 am_depcomp="$ac_aux_dir/depcomp" 4209 AMDEPBACKSLASH='\' 4210fi 4211 if test "x$enable_dependency_tracking" != xno; then 4212 AMDEP_TRUE= 4213 AMDEP_FALSE='#' 4214else 4215 AMDEP_TRUE='#' 4216 AMDEP_FALSE= 4217fi 4218 4219 4220 4221depcc="$CC" am_compiler_list= 4222 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4224$as_echo_n "checking dependency style of $depcc... " >&6; } 4225if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4229 # We make a subdir and do the tests there. Otherwise we can end up 4230 # making bogus files that we don't know about and never remove. For 4231 # instance it was reported that on HP-UX the gcc test will end up 4232 # making a dummy file named `D' -- because `-MD' means `put the output 4233 # in D'. 4234 mkdir conftest.dir 4235 # Copy depcomp to subdir because otherwise we won't find it if we're 4236 # using a relative directory. 4237 cp "$am_depcomp" conftest.dir 4238 cd conftest.dir 4239 # We will build objects and dependencies in a subdirectory because 4240 # it helps to detect inapplicable dependency modes. For instance 4241 # both Tru64's cc and ICC support -MD to output dependencies as a 4242 # side effect of compilation, but ICC will put the dependencies in 4243 # the current directory while Tru64 will put them in the object 4244 # directory. 4245 mkdir sub 4246 4247 am_cv_CC_dependencies_compiler_type=none 4248 if test "$am_compiler_list" = ""; then 4249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4250 fi 4251 am__universal=false 4252 case " $depcc " in #( 4253 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4254 esac 4255 4256 for depmode in $am_compiler_list; do 4257 # Setup a source with many dependencies, because some compilers 4258 # like to wrap large dependency lists on column 80 (with \), and 4259 # we should not choose a depcomp mode which is confused by this. 4260 # 4261 # We need to recreate these files for each test, as the compiler may 4262 # overwrite some of them when testing with obscure command lines. 4263 # This happens at least with the AIX C compiler. 4264 : > sub/conftest.c 4265 for i in 1 2 3 4 5 6; do 4266 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4267 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4268 # Solaris 8's {/usr,}/bin/sh. 4269 touch sub/conftst$i.h 4270 done 4271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4272 4273 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4274 # mode. It turns out that the SunPro C++ compiler does not properly 4275 # handle `-M -o', and we need to detect this. Also, some Intel 4276 # versions had trouble with output in subdirs 4277 am__obj=sub/conftest.${OBJEXT-o} 4278 am__minus_obj="-o $am__obj" 4279 case $depmode in 4280 gcc) 4281 # This depmode causes a compiler race in universal mode. 4282 test "$am__universal" = false || continue 4283 ;; 4284 nosideeffect) 4285 # after this tag, mechanisms are not by side-effect, so they'll 4286 # only be used when explicitly requested 4287 if test "x$enable_dependency_tracking" = xyes; then 4288 continue 4289 else 4290 break 4291 fi 4292 ;; 4293 msvisualcpp | msvcmsys) 4294 # This compiler won't grok `-c -o', but also, the minuso test has 4295 # not run yet. These depmodes are late enough in the game, and 4296 # so weak that their functioning should not be impacted. 4297 am__obj=conftest.${OBJEXT-o} 4298 am__minus_obj= 4299 ;; 4300 none) break ;; 4301 esac 4302 if depmode=$depmode \ 4303 source=sub/conftest.c object=$am__obj \ 4304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4306 >/dev/null 2>conftest.err && 4307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4311 # icc doesn't choke on unknown options, it will just issue warnings 4312 # or remarks (even with -Werror). So we grep stderr for any message 4313 # that says an option was ignored or not supported. 4314 # When given -MP, icc 7.0 and 7.1 complain thusly: 4315 # icc: Command line warning: ignoring option '-M'; no argument required 4316 # The diagnosis changed in icc 8.0: 4317 # icc: Command line remark: option '-MP' not supported 4318 if (grep 'ignoring option' conftest.err || 4319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4320 am_cv_CC_dependencies_compiler_type=$depmode 4321 break 4322 fi 4323 fi 4324 done 4325 4326 cd .. 4327 rm -rf conftest.dir 4328else 4329 am_cv_CC_dependencies_compiler_type=none 4330fi 4331 4332fi 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4336 4337 if 4338 test "x$enable_dependency_tracking" != xno \ 4339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4340 am__fastdepCC_TRUE= 4341 am__fastdepCC_FALSE='#' 4342else 4343 am__fastdepCC_TRUE='#' 4344 am__fastdepCC_FALSE= 4345fi 4346 4347 4348if test "x$CC" != xcc; then 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4350$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4351else 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4353$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4354fi 4355set dummy $CC; ac_cc=`$as_echo "$2" | 4356 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4357if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362 4363int 4364main () 4365{ 4366 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371# Make sure it works both with $CC and with simple cc. 4372# We do the test twice because some compilers refuse to overwrite an 4373# existing .o file with -o, though they will create one. 4374ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4375rm -f conftest2.* 4376if { { case "(($ac_try" in 4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4378 *) ac_try_echo=$ac_try;; 4379esac 4380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4381$as_echo "$ac_try_echo"; } >&5 4382 (eval "$ac_try") 2>&5 4383 ac_status=$? 4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4385 test $ac_status = 0; } && 4386 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4388 *) ac_try_echo=$ac_try;; 4389esac 4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4391$as_echo "$ac_try_echo"; } >&5 4392 (eval "$ac_try") 2>&5 4393 ac_status=$? 4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4395 test $ac_status = 0; }; 4396then 4397 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4398 if test "x$CC" != xcc; then 4399 # Test first that cc exists at all. 4400 if { ac_try='cc -c conftest.$ac_ext >&5' 4401 { { case "(($ac_try" in 4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4403 *) ac_try_echo=$ac_try;; 4404esac 4405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4406$as_echo "$ac_try_echo"; } >&5 4407 (eval "$ac_try") 2>&5 4408 ac_status=$? 4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4410 test $ac_status = 0; }; }; then 4411 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4412 rm -f conftest2.* 4413 if { { case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416esac 4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4418$as_echo "$ac_try_echo"; } >&5 4419 (eval "$ac_try") 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; } && 4423 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4425 *) ac_try_echo=$ac_try;; 4426esac 4427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4428$as_echo "$ac_try_echo"; } >&5 4429 (eval "$ac_try") 2>&5 4430 ac_status=$? 4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4432 test $ac_status = 0; }; 4433 then 4434 # cc works too. 4435 : 4436 else 4437 # cc exists but doesn't like -o. 4438 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4439 fi 4440 fi 4441 fi 4442else 4443 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4444fi 4445rm -f core conftest* 4446 4447fi 4448if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4450$as_echo "yes" >&6; } 4451else 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453$as_echo "no" >&6; } 4454 4455$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4456 4457fi 4458 4459# FIXME: we rely on the cache variable name because 4460# there is no other way. 4461set dummy $CC 4462am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4463eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4464if test "$am_t" != yes; then 4465 # Losing compiler, so override with the script. 4466 # FIXME: It is wrong to rewrite CC. 4467 # But if we don't then we get into trouble of one sort or another. 4468 # A longer-term fix would be to have automake use am__CC in this case, 4469 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4470 CC="$am_aux_dir/compile $CC" 4471fi 4472 4473 4474 4475 4476 ansi= 4477 if test -z "$ansi"; then 4478 msg="for C compiler warning flags" 4479 else 4480 msg="for C compiler warning and ANSI conformance flags" 4481 fi 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4483$as_echo_n "checking $msg... " >&6; } 4484if ${vl_cv_prog_cc_warnings+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 4488 if test -n "$CC"; then 4489 cat > conftest.c <<EOF 4490int main(int argc, char **argv) { return 0; } 4491EOF 4492 4493 if test "$GCC" = "yes"; then 4494 if test -z "$ansi"; then 4495 vl_cv_prog_cc_warnings="-Wall -W" 4496 else 4497 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4498 fi 4499 4500 4501 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4502 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4503 test -f conftest.o; then 4504 if test -z "$ansi"; then 4505 vl_cv_prog_cc_warnings="-v" 4506 else 4507 vl_cv_prog_cc_warnings="-v -Xc" 4508 fi 4509 4510 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4511 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4512 test -f conftest.o; then 4513 if test -z "$ansi"; then 4514 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4515 else 4516 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4517 fi 4518 4519 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4520 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4521 test -f conftest.o; then 4522 if test -z "$ansi"; then 4523 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4524 else 4525 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4526 fi 4527 4528 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4529 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4530 test -f conftest.o; then 4531 if test -z "$ansi"; then 4532 vl_cv_prog_cc_warnings="-fullwarn" 4533 else 4534 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4535 fi 4536 4537 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4538 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4539 test -f conftest.o; then 4540 if test -z "$ansi"; then 4541 vl_cv_prog_cc_warnings="+w1" 4542 else 4543 vl_cv_prog_cc_warnings="+w1 -Aa" 4544 fi 4545 4546 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4547 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4548 test -f conftest.o; then 4549 if test -z "$ansi"; then 4550 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4551 else 4552 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4553 fi 4554 4555 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4556 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4557 test -f conftest.o; then 4558 if test -z "$ansi"; then 4559 vl_cv_prog_cc_warnings="-h msglevel 2" 4560 else 4561 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4562 fi 4563 4564 fi 4565 rm -f conftest.* 4566 fi 4567 if test -n "$vl_cv_prog_cc_warnings"; then 4568 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4569 else 4570 vl_cv_prog_cc_warnings="unknown" 4571 fi 4572 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4575$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4576 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4580$as_echo_n "checking whether ln -s works... " >&6; } 4581LN_S=$as_ln_s 4582if test "$LN_S" = "ln -s"; then 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4584$as_echo "yes" >&6; } 4585else 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4587$as_echo "no, using $LN_S" >&6; } 4588fi 4589 4590 4591 4592 4593 4594case `pwd` in 4595 *\ * | *\ *) 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4597$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4598esac 4599 4600 4601 4602macro_version='2.4' 4603macro_revision='1.3293' 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617ltmain="$ac_aux_dir/ltmain.sh" 4618 4619# Backslashify metacharacters that are still active within 4620# double-quoted strings. 4621sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4622 4623# Same as above, but do not quote variable references. 4624double_quote_subst='s/\(["`\\]\)/\\\1/g' 4625 4626# Sed substitution to delay expansion of an escaped shell variable in a 4627# double_quote_subst'ed string. 4628delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4629 4630# Sed substitution to delay expansion of an escaped single quote. 4631delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4632 4633# Sed substitution to avoid accidental globbing in evaled expressions 4634no_glob_subst='s/\*/\\\*/g' 4635 4636ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4637ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4638ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4641$as_echo_n "checking how to print strings... " >&6; } 4642# Test print first, because it will be a builtin if present. 4643if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4645 ECHO='print -r --' 4646elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4647 ECHO='printf %s\n' 4648else 4649 # Use this function as a fallback that always works. 4650 func_fallback_echo () 4651 { 4652 eval 'cat <<_LTECHO_EOF 4653$1 4654_LTECHO_EOF' 4655 } 4656 ECHO='func_fallback_echo' 4657fi 4658 4659# func_echo_all arg... 4660# Invoke $ECHO with all args, space-separated. 4661func_echo_all () 4662{ 4663 $ECHO "" 4664} 4665 4666case "$ECHO" in 4667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4668$as_echo "printf" >&6; } ;; 4669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4670$as_echo "print -r" >&6; } ;; 4671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4672$as_echo "cat" >&6; } ;; 4673esac 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4689$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4690if ${ac_cv_path_SED+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4694 for ac_i in 1 2 3 4 5 6 7; do 4695 ac_script="$ac_script$as_nl$ac_script" 4696 done 4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4698 { ac_script=; unset ac_script;} 4699 if test -z "$SED"; then 4700 ac_path_SED_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in sed gsed; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4710 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4711# Check for GNU ac_path_SED and select it if it is found. 4712 # Check for GNU $ac_path_SED 4713case `"$ac_path_SED" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo '' >> "conftest.nl" 4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_SED_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_SED="$ac_path_SED" 4731 ac_path_SED_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_SED_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_SED"; then 4745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_SED=$SED 4749fi 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4753$as_echo "$ac_cv_path_SED" >&6; } 4754 SED="$ac_cv_path_SED" 4755 rm -f conftest.sed 4756 4757test -z "$SED" && SED=sed 4758Xsed="$SED -e 1s/^X//" 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4771$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4772if ${ac_cv_path_GREP+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 if test -z "$GREP"; then 4776 ac_path_GREP_found=false 4777 # Loop through the user's path and test for each of PROGNAME-LIST 4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_prog in grep ggrep; do 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4786 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4787# Check for GNU ac_path_GREP and select it if it is found. 4788 # Check for GNU $ac_path_GREP 4789case `"$ac_path_GREP" --version 2>&1` in 4790*GNU*) 4791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4792*) 4793 ac_count=0 4794 $as_echo_n 0123456789 >"conftest.in" 4795 while : 4796 do 4797 cat "conftest.in" "conftest.in" >"conftest.tmp" 4798 mv "conftest.tmp" "conftest.in" 4799 cp "conftest.in" "conftest.nl" 4800 $as_echo 'GREP' >> "conftest.nl" 4801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4803 as_fn_arith $ac_count + 1 && ac_count=$as_val 4804 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4805 # Best one so far, save it but keep looking for a better one 4806 ac_cv_path_GREP="$ac_path_GREP" 4807 ac_path_GREP_max=$ac_count 4808 fi 4809 # 10*(2^10) chars as input seems more than enough 4810 test $ac_count -gt 10 && break 4811 done 4812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4813esac 4814 4815 $ac_path_GREP_found && break 3 4816 done 4817 done 4818 done 4819IFS=$as_save_IFS 4820 if test -z "$ac_cv_path_GREP"; then 4821 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4822 fi 4823else 4824 ac_cv_path_GREP=$GREP 4825fi 4826 4827fi 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4829$as_echo "$ac_cv_path_GREP" >&6; } 4830 GREP="$ac_cv_path_GREP" 4831 4832 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4834$as_echo_n "checking for egrep... " >&6; } 4835if ${ac_cv_path_EGREP+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4839 then ac_cv_path_EGREP="$GREP -E" 4840 else 4841 if test -z "$EGREP"; then 4842 ac_path_EGREP_found=false 4843 # Loop through the user's path and test for each of PROGNAME-LIST 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_prog in egrep; do 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4852 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4853# Check for GNU ac_path_EGREP and select it if it is found. 4854 # Check for GNU $ac_path_EGREP 4855case `"$ac_path_EGREP" --version 2>&1` in 4856*GNU*) 4857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4858*) 4859 ac_count=0 4860 $as_echo_n 0123456789 >"conftest.in" 4861 while : 4862 do 4863 cat "conftest.in" "conftest.in" >"conftest.tmp" 4864 mv "conftest.tmp" "conftest.in" 4865 cp "conftest.in" "conftest.nl" 4866 $as_echo 'EGREP' >> "conftest.nl" 4867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4869 as_fn_arith $ac_count + 1 && ac_count=$as_val 4870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4871 # Best one so far, save it but keep looking for a better one 4872 ac_cv_path_EGREP="$ac_path_EGREP" 4873 ac_path_EGREP_max=$ac_count 4874 fi 4875 # 10*(2^10) chars as input seems more than enough 4876 test $ac_count -gt 10 && break 4877 done 4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4879esac 4880 4881 $ac_path_EGREP_found && break 3 4882 done 4883 done 4884 done 4885IFS=$as_save_IFS 4886 if test -z "$ac_cv_path_EGREP"; then 4887 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4888 fi 4889else 4890 ac_cv_path_EGREP=$EGREP 4891fi 4892 4893 fi 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4896$as_echo "$ac_cv_path_EGREP" >&6; } 4897 EGREP="$ac_cv_path_EGREP" 4898 4899 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4901$as_echo_n "checking for fgrep... " >&6; } 4902if ${ac_cv_path_FGREP+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4906 then ac_cv_path_FGREP="$GREP -F" 4907 else 4908 if test -z "$FGREP"; then 4909 ac_path_FGREP_found=false 4910 # Loop through the user's path and test for each of PROGNAME-LIST 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4913do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_prog in fgrep; do 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4919 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4920# Check for GNU ac_path_FGREP and select it if it is found. 4921 # Check for GNU $ac_path_FGREP 4922case `"$ac_path_FGREP" --version 2>&1` in 4923*GNU*) 4924 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4925*) 4926 ac_count=0 4927 $as_echo_n 0123456789 >"conftest.in" 4928 while : 4929 do 4930 cat "conftest.in" "conftest.in" >"conftest.tmp" 4931 mv "conftest.tmp" "conftest.in" 4932 cp "conftest.in" "conftest.nl" 4933 $as_echo 'FGREP' >> "conftest.nl" 4934 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4936 as_fn_arith $ac_count + 1 && ac_count=$as_val 4937 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4938 # Best one so far, save it but keep looking for a better one 4939 ac_cv_path_FGREP="$ac_path_FGREP" 4940 ac_path_FGREP_max=$ac_count 4941 fi 4942 # 10*(2^10) chars as input seems more than enough 4943 test $ac_count -gt 10 && break 4944 done 4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4946esac 4947 4948 $ac_path_FGREP_found && break 3 4949 done 4950 done 4951 done 4952IFS=$as_save_IFS 4953 if test -z "$ac_cv_path_FGREP"; then 4954 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4955 fi 4956else 4957 ac_cv_path_FGREP=$FGREP 4958fi 4959 4960 fi 4961fi 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4963$as_echo "$ac_cv_path_FGREP" >&6; } 4964 FGREP="$ac_cv_path_FGREP" 4965 4966 4967test -z "$GREP" && GREP=grep 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987# Check whether --with-gnu-ld was given. 4988if test "${with_gnu_ld+set}" = set; then : 4989 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4990else 4991 with_gnu_ld=no 4992fi 4993 4994ac_prog=ld 4995if test "$GCC" = yes; then 4996 # Check if gcc -print-prog-name=ld gives a path. 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4998$as_echo_n "checking for ld used by $CC... " >&6; } 4999 case $host in 5000 *-*-mingw*) 5001 # gcc leaves a trailing carriage return which upsets mingw 5002 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5003 *) 5004 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5005 esac 5006 case $ac_prog in 5007 # Accept absolute paths. 5008 [\\/]* | ?:[\\/]*) 5009 re_direlt='/[^/][^/]*/\.\./' 5010 # Canonicalize the pathname of ld 5011 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5012 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5013 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5014 done 5015 test -z "$LD" && LD="$ac_prog" 5016 ;; 5017 "") 5018 # If it fails, then pretend we aren't using GCC. 5019 ac_prog=ld 5020 ;; 5021 *) 5022 # If it is relative, then search for the first ld in PATH. 5023 with_gnu_ld=unknown 5024 ;; 5025 esac 5026elif test "$with_gnu_ld" = yes; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5028$as_echo_n "checking for GNU ld... " >&6; } 5029else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5031$as_echo_n "checking for non-GNU ld... " >&6; } 5032fi 5033if ${lt_cv_path_LD+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 if test -z "$LD"; then 5037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5038 for ac_dir in $PATH; do 5039 IFS="$lt_save_ifs" 5040 test -z "$ac_dir" && ac_dir=. 5041 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5042 lt_cv_path_LD="$ac_dir/$ac_prog" 5043 # Check to see if the program is GNU ld. I'd rather use --version, 5044 # but apparently some variants of GNU ld only accept -v. 5045 # Break only if it was the GNU/non-GNU ld that we prefer. 5046 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5047 *GNU* | *'with BFD'*) 5048 test "$with_gnu_ld" != no && break 5049 ;; 5050 *) 5051 test "$with_gnu_ld" != yes && break 5052 ;; 5053 esac 5054 fi 5055 done 5056 IFS="$lt_save_ifs" 5057else 5058 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5059fi 5060fi 5061 5062LD="$lt_cv_path_LD" 5063if test -n "$LD"; then 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5065$as_echo "$LD" >&6; } 5066else 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5068$as_echo "no" >&6; } 5069fi 5070test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5072$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5073if ${lt_cv_prog_gnu_ld+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5077case `$LD -v 2>&1 </dev/null` in 5078*GNU* | *'with BFD'*) 5079 lt_cv_prog_gnu_ld=yes 5080 ;; 5081*) 5082 lt_cv_prog_gnu_ld=no 5083 ;; 5084esac 5085fi 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5087$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5088with_gnu_ld=$lt_cv_prog_gnu_ld 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5099$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5100if ${lt_cv_path_NM+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -n "$NM"; then 5104 # Let the user override the test. 5105 lt_cv_path_NM="$NM" 5106else 5107 lt_nm_to_check="${ac_tool_prefix}nm" 5108 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5109 lt_nm_to_check="$lt_nm_to_check nm" 5110 fi 5111 for lt_tmp_nm in $lt_nm_to_check; do 5112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5113 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5114 IFS="$lt_save_ifs" 5115 test -z "$ac_dir" && ac_dir=. 5116 tmp_nm="$ac_dir/$lt_tmp_nm" 5117 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5118 # Check to see if the nm accepts a BSD-compat flag. 5119 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5120 # nm: unknown option "B" ignored 5121 # Tru64's nm complains that /dev/null is an invalid object file 5122 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5123 */dev/null* | *'Invalid file or object type'*) 5124 lt_cv_path_NM="$tmp_nm -B" 5125 break 5126 ;; 5127 *) 5128 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5129 */dev/null*) 5130 lt_cv_path_NM="$tmp_nm -p" 5131 break 5132 ;; 5133 *) 5134 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5135 continue # so that we can try to find one that supports BSD flags 5136 ;; 5137 esac 5138 ;; 5139 esac 5140 fi 5141 done 5142 IFS="$lt_save_ifs" 5143 done 5144 : ${lt_cv_path_NM=no} 5145fi 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5148$as_echo "$lt_cv_path_NM" >&6; } 5149if test "$lt_cv_path_NM" != "no"; then 5150 NM="$lt_cv_path_NM" 5151else 5152 # Didn't find any BSD compatible name lister, look for dumpbin. 5153 if test -n "$DUMPBIN"; then : 5154 # Let the user override the test. 5155 else 5156 if test -n "$ac_tool_prefix"; then 5157 for ac_prog in dumpbin "link -dump" 5158 do 5159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5160set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5162$as_echo_n "checking for $ac_word... " >&6; } 5163if ${ac_cv_prog_DUMPBIN+:} false; then : 5164 $as_echo_n "(cached) " >&6 5165else 5166 if test -n "$DUMPBIN"; then 5167 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5168else 5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170for as_dir in $PATH 5171do 5172 IFS=$as_save_IFS 5173 test -z "$as_dir" && as_dir=. 5174 for ac_exec_ext in '' $ac_executable_extensions; do 5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5176 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5178 break 2 5179 fi 5180done 5181 done 5182IFS=$as_save_IFS 5183 5184fi 5185fi 5186DUMPBIN=$ac_cv_prog_DUMPBIN 5187if test -n "$DUMPBIN"; then 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5189$as_echo "$DUMPBIN" >&6; } 5190else 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5192$as_echo "no" >&6; } 5193fi 5194 5195 5196 test -n "$DUMPBIN" && break 5197 done 5198fi 5199if test -z "$DUMPBIN"; then 5200 ac_ct_DUMPBIN=$DUMPBIN 5201 for ac_prog in dumpbin "link -dump" 5202do 5203 # Extract the first word of "$ac_prog", so it can be a program name with args. 5204set dummy $ac_prog; ac_word=$2 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206$as_echo_n "checking for $ac_word... " >&6; } 5207if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -n "$ac_ct_DUMPBIN"; then 5211 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5220 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225 done 5226IFS=$as_save_IFS 5227 5228fi 5229fi 5230ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5231if test -n "$ac_ct_DUMPBIN"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5233$as_echo "$ac_ct_DUMPBIN" >&6; } 5234else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5236$as_echo "no" >&6; } 5237fi 5238 5239 5240 test -n "$ac_ct_DUMPBIN" && break 5241done 5242 5243 if test "x$ac_ct_DUMPBIN" = x; then 5244 DUMPBIN=":" 5245 else 5246 case $cross_compiling:$ac_tool_warned in 5247yes:) 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5250ac_tool_warned=yes ;; 5251esac 5252 DUMPBIN=$ac_ct_DUMPBIN 5253 fi 5254fi 5255 5256 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5257 *COFF*) 5258 DUMPBIN="$DUMPBIN -symbols" 5259 ;; 5260 *) 5261 DUMPBIN=: 5262 ;; 5263 esac 5264 fi 5265 5266 if test "$DUMPBIN" != ":"; then 5267 NM="$DUMPBIN" 5268 fi 5269fi 5270test -z "$NM" && NM=nm 5271 5272 5273 5274 5275 5276 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5278$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5279if ${lt_cv_nm_interface+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 lt_cv_nm_interface="BSD nm" 5283 echo "int some_variable = 0;" > conftest.$ac_ext 5284 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5285 (eval "$ac_compile" 2>conftest.err) 5286 cat conftest.err >&5 5287 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5288 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5289 cat conftest.err >&5 5290 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5291 cat conftest.out >&5 5292 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5293 lt_cv_nm_interface="MS dumpbin" 5294 fi 5295 rm -f conftest* 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5298$as_echo "$lt_cv_nm_interface" >&6; } 5299 5300# find the maximum length of command line arguments 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5302$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5303if ${lt_cv_sys_max_cmd_len+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 i=0 5307 teststring="ABCD" 5308 5309 case $build_os in 5310 msdosdjgpp*) 5311 # On DJGPP, this test can blow up pretty badly due to problems in libc 5312 # (any single argument exceeding 2000 bytes causes a buffer overrun 5313 # during glob expansion). Even if it were fixed, the result of this 5314 # check would be larger than it should be. 5315 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5316 ;; 5317 5318 gnu*) 5319 # Under GNU Hurd, this test is not required because there is 5320 # no limit to the length of command line arguments. 5321 # Libtool will interpret -1 as no limit whatsoever 5322 lt_cv_sys_max_cmd_len=-1; 5323 ;; 5324 5325 cygwin* | mingw* | cegcc*) 5326 # On Win9x/ME, this test blows up -- it succeeds, but takes 5327 # about 5 minutes as the teststring grows exponentially. 5328 # Worse, since 9x/ME are not pre-emptively multitasking, 5329 # you end up with a "frozen" computer, even though with patience 5330 # the test eventually succeeds (with a max line length of 256k). 5331 # Instead, let's just punt: use the minimum linelength reported by 5332 # all of the supported platforms: 8192 (on NT/2K/XP). 5333 lt_cv_sys_max_cmd_len=8192; 5334 ;; 5335 5336 mint*) 5337 # On MiNT this can take a long time and run out of memory. 5338 lt_cv_sys_max_cmd_len=8192; 5339 ;; 5340 5341 amigaos*) 5342 # On AmigaOS with pdksh, this test takes hours, literally. 5343 # So we just punt and use a minimum line length of 8192. 5344 lt_cv_sys_max_cmd_len=8192; 5345 ;; 5346 5347 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5348 # This has been around since 386BSD, at least. Likely further. 5349 if test -x /sbin/sysctl; then 5350 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5351 elif test -x /usr/sbin/sysctl; then 5352 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5353 else 5354 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5355 fi 5356 # And add a safety zone 5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5359 ;; 5360 5361 interix*) 5362 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5363 lt_cv_sys_max_cmd_len=196608 5364 ;; 5365 5366 osf*) 5367 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5368 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5369 # nice to cause kernel panics so lets avoid the loop below. 5370 # First set a reasonable default. 5371 lt_cv_sys_max_cmd_len=16384 5372 # 5373 if test -x /sbin/sysconfig; then 5374 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5375 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5376 esac 5377 fi 5378 ;; 5379 sco3.2v5*) 5380 lt_cv_sys_max_cmd_len=102400 5381 ;; 5382 sysv5* | sco5v6* | sysv4.2uw2*) 5383 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5384 if test -n "$kargmax"; then 5385 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5386 else 5387 lt_cv_sys_max_cmd_len=32768 5388 fi 5389 ;; 5390 *) 5391 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5392 if test -n "$lt_cv_sys_max_cmd_len"; then 5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5395 else 5396 # Make teststring a little bigger before we do anything with it. 5397 # a 1K string should be a reasonable start. 5398 for i in 1 2 3 4 5 6 7 8 ; do 5399 teststring=$teststring$teststring 5400 done 5401 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5402 # If test is not a shell built-in, we'll probably end up computing a 5403 # maximum length that is only half of the actual maximum length, but 5404 # we can't tell. 5405 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5406 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5407 test $i != 17 # 1/2 MB should be enough 5408 do 5409 i=`expr $i + 1` 5410 teststring=$teststring$teststring 5411 done 5412 # Only check the string length outside the loop. 5413 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5414 teststring= 5415 # Add a significant safety factor because C++ compilers can tack on 5416 # massive amounts of additional arguments before passing them to the 5417 # linker. It appears as though 1/2 is a usable value. 5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5419 fi 5420 ;; 5421 esac 5422 5423fi 5424 5425if test -n $lt_cv_sys_max_cmd_len ; then 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5427$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5428else 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5430$as_echo "none" >&6; } 5431fi 5432max_cmd_len=$lt_cv_sys_max_cmd_len 5433 5434 5435 5436 5437 5438 5439: ${CP="cp -f"} 5440: ${MV="mv -f"} 5441: ${RM="rm -f"} 5442 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5444$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5445# Try some XSI features 5446xsi_shell=no 5447( _lt_dummy="a/b/c" 5448 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5449 = c,a/b,b/c, \ 5450 && eval 'test $(( 1 + 1 )) -eq 2 \ 5451 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5452 && xsi_shell=yes 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5454$as_echo "$xsi_shell" >&6; } 5455 5456 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5458$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5459lt_shell_append=no 5460( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5461 >/dev/null 2>&1 \ 5462 && lt_shell_append=yes 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5464$as_echo "$lt_shell_append" >&6; } 5465 5466 5467if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5468 lt_unset=unset 5469else 5470 lt_unset=false 5471fi 5472 5473 5474 5475 5476 5477# test EBCDIC or ASCII 5478case `echo X|tr X '\101'` in 5479 A) # ASCII based system 5480 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5481 lt_SP2NL='tr \040 \012' 5482 lt_NL2SP='tr \015\012 \040\040' 5483 ;; 5484 *) # EBCDIC based system 5485 lt_SP2NL='tr \100 \n' 5486 lt_NL2SP='tr \r\n \100\100' 5487 ;; 5488esac 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5499$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5500if ${lt_cv_to_host_file_cmd+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 case $host in 5504 *-*-mingw* ) 5505 case $build in 5506 *-*-mingw* ) # actually msys 5507 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5508 ;; 5509 *-*-cygwin* ) 5510 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5511 ;; 5512 * ) # otherwise, assume *nix 5513 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5514 ;; 5515 esac 5516 ;; 5517 *-*-cygwin* ) 5518 case $build in 5519 *-*-mingw* ) # actually msys 5520 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5521 ;; 5522 *-*-cygwin* ) 5523 lt_cv_to_host_file_cmd=func_convert_file_noop 5524 ;; 5525 * ) # otherwise, assume *nix 5526 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5527 ;; 5528 esac 5529 ;; 5530 * ) # unhandled hosts (and "normal" native builds) 5531 lt_cv_to_host_file_cmd=func_convert_file_noop 5532 ;; 5533esac 5534 5535fi 5536 5537to_host_file_cmd=$lt_cv_to_host_file_cmd 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5539$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5540 5541 5542 5543 5544 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5546$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5547if ${lt_cv_to_tool_file_cmd+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 #assume ordinary cross tools, or native build. 5551lt_cv_to_tool_file_cmd=func_convert_file_noop 5552case $host in 5553 *-*-mingw* ) 5554 case $build in 5555 *-*-mingw* ) # actually msys 5556 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5557 ;; 5558 esac 5559 ;; 5560esac 5561 5562fi 5563 5564to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5566$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5567 5568 5569 5570 5571 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5573$as_echo_n "checking for $LD option to reload object files... " >&6; } 5574if ${lt_cv_ld_reload_flag+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 lt_cv_ld_reload_flag='-r' 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5580$as_echo "$lt_cv_ld_reload_flag" >&6; } 5581reload_flag=$lt_cv_ld_reload_flag 5582case $reload_flag in 5583"" | " "*) ;; 5584*) reload_flag=" $reload_flag" ;; 5585esac 5586reload_cmds='$LD$reload_flag -o $output$reload_objs' 5587case $host_os in 5588 cygwin* | mingw* | pw32* | cegcc*) 5589 if test "$GCC" != yes; then 5590 reload_cmds=false 5591 fi 5592 ;; 5593 darwin*) 5594 if test "$GCC" = yes; then 5595 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5596 else 5597 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5598 fi 5599 ;; 5600esac 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610if test -n "$ac_tool_prefix"; then 5611 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5612set dummy ${ac_tool_prefix}objdump; ac_word=$2 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5614$as_echo_n "checking for $ac_word... " >&6; } 5615if ${ac_cv_prog_OBJDUMP+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 if test -n "$OBJDUMP"; then 5619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633 done 5634IFS=$as_save_IFS 5635 5636fi 5637fi 5638OBJDUMP=$ac_cv_prog_OBJDUMP 5639if test -n "$OBJDUMP"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5641$as_echo "$OBJDUMP" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 5648fi 5649if test -z "$ac_cv_prog_OBJDUMP"; then 5650 ac_ct_OBJDUMP=$OBJDUMP 5651 # Extract the first word of "objdump", so it can be a program name with args. 5652set dummy objdump; ac_word=$2 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5654$as_echo_n "checking for $ac_word... " >&6; } 5655if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 if test -n "$ac_ct_OBJDUMP"; then 5659 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5660else 5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5662for as_dir in $PATH 5663do 5664 IFS=$as_save_IFS 5665 test -z "$as_dir" && as_dir=. 5666 for ac_exec_ext in '' $ac_executable_extensions; do 5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5668 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5670 break 2 5671 fi 5672done 5673 done 5674IFS=$as_save_IFS 5675 5676fi 5677fi 5678ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5679if test -n "$ac_ct_OBJDUMP"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5681$as_echo "$ac_ct_OBJDUMP" >&6; } 5682else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685fi 5686 5687 if test "x$ac_ct_OBJDUMP" = x; then 5688 OBJDUMP="false" 5689 else 5690 case $cross_compiling:$ac_tool_warned in 5691yes:) 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5694ac_tool_warned=yes ;; 5695esac 5696 OBJDUMP=$ac_ct_OBJDUMP 5697 fi 5698else 5699 OBJDUMP="$ac_cv_prog_OBJDUMP" 5700fi 5701 5702test -z "$OBJDUMP" && OBJDUMP=objdump 5703 5704 5705 5706 5707 5708 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5710$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5711if ${lt_cv_deplibs_check_method+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 lt_cv_file_magic_cmd='$MAGIC_CMD' 5715lt_cv_file_magic_test_file= 5716lt_cv_deplibs_check_method='unknown' 5717# Need to set the preceding variable on all platforms that support 5718# interlibrary dependencies. 5719# 'none' -- dependencies not supported. 5720# `unknown' -- same as none, but documents that we really don't know. 5721# 'pass_all' -- all dependencies passed with no checks. 5722# 'test_compile' -- check by making test program. 5723# 'file_magic [[regex]]' -- check by looking for files in library path 5724# which responds to the $file_magic_cmd with a given extended regex. 5725# If you have `file' or equivalent on your system and you're not sure 5726# whether `pass_all' will *always* work, you probably want this one. 5727 5728case $host_os in 5729aix[4-9]*) 5730 lt_cv_deplibs_check_method=pass_all 5731 ;; 5732 5733beos*) 5734 lt_cv_deplibs_check_method=pass_all 5735 ;; 5736 5737bsdi[45]*) 5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5739 lt_cv_file_magic_cmd='/usr/bin/file -L' 5740 lt_cv_file_magic_test_file=/shlib/libc.so 5741 ;; 5742 5743cygwin*) 5744 # func_win32_libid is a shell function defined in ltmain.sh 5745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5746 lt_cv_file_magic_cmd='func_win32_libid' 5747 ;; 5748 5749mingw* | pw32*) 5750 # Base MSYS/MinGW do not provide the 'file' command needed by 5751 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5752 # unless we find 'file', for example because we are cross-compiling. 5753 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5754 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5756 lt_cv_file_magic_cmd='func_win32_libid' 5757 else 5758 # Keep this pattern in sync with the one in func_win32_libid. 5759 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5760 lt_cv_file_magic_cmd='$OBJDUMP -f' 5761 fi 5762 ;; 5763 5764cegcc*) 5765 # use the weaker test based on 'objdump'. See mingw*. 5766 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5767 lt_cv_file_magic_cmd='$OBJDUMP -f' 5768 ;; 5769 5770darwin* | rhapsody*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774freebsd* | dragonfly*) 5775 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5776 case $host_cpu in 5777 i*86 ) 5778 # Not sure whether the presence of OpenBSD here was a mistake. 5779 # Let's accept both of them until this is cleared up. 5780 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5781 lt_cv_file_magic_cmd=/usr/bin/file 5782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5783 ;; 5784 esac 5785 else 5786 lt_cv_deplibs_check_method=pass_all 5787 fi 5788 ;; 5789 5790gnu*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794haiku*) 5795 lt_cv_deplibs_check_method=pass_all 5796 ;; 5797 5798hpux10.20* | hpux11*) 5799 lt_cv_file_magic_cmd=/usr/bin/file 5800 case $host_cpu in 5801 ia64*) 5802 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5803 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5804 ;; 5805 hppa*64*) 5806 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]' 5807 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5808 ;; 5809 *) 5810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5811 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5812 ;; 5813 esac 5814 ;; 5815 5816interix[3-9]*) 5817 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5819 ;; 5820 5821irix5* | irix6* | nonstopux*) 5822 case $LD in 5823 *-32|*"-32 ") libmagic=32-bit;; 5824 *-n32|*"-n32 ") libmagic=N32;; 5825 *-64|*"-64 ") libmagic=64-bit;; 5826 *) libmagic=never-match;; 5827 esac 5828 lt_cv_deplibs_check_method=pass_all 5829 ;; 5830 5831# This must be Linux ELF. 5832linux* | k*bsd*-gnu | kopensolaris*-gnu) 5833 lt_cv_deplibs_check_method=pass_all 5834 ;; 5835 5836netbsd*) 5837 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5839 else 5840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5841 fi 5842 ;; 5843 5844newos6*) 5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5846 lt_cv_file_magic_cmd=/usr/bin/file 5847 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5848 ;; 5849 5850*nto* | *qnx*) 5851 lt_cv_deplibs_check_method=pass_all 5852 ;; 5853 5854openbsd*) 5855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5857 else 5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5859 fi 5860 ;; 5861 5862osf3* | osf4* | osf5*) 5863 lt_cv_deplibs_check_method=pass_all 5864 ;; 5865 5866rdos*) 5867 lt_cv_deplibs_check_method=pass_all 5868 ;; 5869 5870solaris*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877 5878sysv4 | sysv4.3*) 5879 case $host_vendor in 5880 motorola) 5881 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]' 5882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5883 ;; 5884 ncr) 5885 lt_cv_deplibs_check_method=pass_all 5886 ;; 5887 sequent) 5888 lt_cv_file_magic_cmd='/bin/file' 5889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5890 ;; 5891 sni) 5892 lt_cv_file_magic_cmd='/bin/file' 5893 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5894 lt_cv_file_magic_test_file=/lib/libc.so 5895 ;; 5896 siemens) 5897 lt_cv_deplibs_check_method=pass_all 5898 ;; 5899 pc) 5900 lt_cv_deplibs_check_method=pass_all 5901 ;; 5902 esac 5903 ;; 5904 5905tpf*) 5906 lt_cv_deplibs_check_method=pass_all 5907 ;; 5908esac 5909 5910fi 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5912$as_echo "$lt_cv_deplibs_check_method" >&6; } 5913 5914file_magic_glob= 5915want_nocaseglob=no 5916if test "$build" = "$host"; then 5917 case $host_os in 5918 mingw* | pw32*) 5919 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5920 want_nocaseglob=yes 5921 else 5922 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5923 fi 5924 ;; 5925 esac 5926fi 5927 5928file_magic_cmd=$lt_cv_file_magic_cmd 5929deplibs_check_method=$lt_cv_deplibs_check_method 5930test -z "$deplibs_check_method" && deplibs_check_method=unknown 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953if test -n "$ac_tool_prefix"; then 5954 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5955set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if ${ac_cv_prog_DLLTOOL+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$DLLTOOL"; then 5962 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5971 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981DLLTOOL=$ac_cv_prog_DLLTOOL 5982if test -n "$DLLTOOL"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5984$as_echo "$DLLTOOL" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 5991fi 5992if test -z "$ac_cv_prog_DLLTOOL"; then 5993 ac_ct_DLLTOOL=$DLLTOOL 5994 # Extract the first word of "dlltool", so it can be a program name with args. 5995set dummy dlltool; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$ac_ct_DLLTOOL"; then 6002 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6022if test -n "$ac_ct_DLLTOOL"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6024$as_echo "$ac_ct_DLLTOOL" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 if test "x$ac_ct_DLLTOOL" = x; then 6031 DLLTOOL="false" 6032 else 6033 case $cross_compiling:$ac_tool_warned in 6034yes:) 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6037ac_tool_warned=yes ;; 6038esac 6039 DLLTOOL=$ac_ct_DLLTOOL 6040 fi 6041else 6042 DLLTOOL="$ac_cv_prog_DLLTOOL" 6043fi 6044 6045test -z "$DLLTOOL" && DLLTOOL=dlltool 6046 6047 6048 6049 6050 6051 6052 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6054$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6055if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 lt_cv_sharedlib_from_linklib_cmd='unknown' 6059 6060case $host_os in 6061cygwin* | mingw* | pw32* | cegcc*) 6062 # two different shell functions defined in ltmain.sh 6063 # decide which to use based on capabilities of $DLLTOOL 6064 case `$DLLTOOL --help 2>&1` in 6065 *--identify-strict*) 6066 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6067 ;; 6068 *) 6069 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6070 ;; 6071 esac 6072 ;; 6073*) 6074 # fallback: assume linklib IS sharedlib 6075 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6076 ;; 6077esac 6078 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6081$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6082sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6083test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6084 6085 6086 6087 6088 6089 6090 6091 6092if test -n "$ac_tool_prefix"; then 6093 for ac_prog in ar 6094 do 6095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6096set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098$as_echo_n "checking for $ac_word... " >&6; } 6099if ${ac_cv_prog_AR+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 if test -n "$AR"; then 6103 ac_cv_prog_AR="$AR" # Let the user override the test. 6104else 6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106for as_dir in $PATH 6107do 6108 IFS=$as_save_IFS 6109 test -z "$as_dir" && as_dir=. 6110 for ac_exec_ext in '' $ac_executable_extensions; do 6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6112 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6114 break 2 6115 fi 6116done 6117 done 6118IFS=$as_save_IFS 6119 6120fi 6121fi 6122AR=$ac_cv_prog_AR 6123if test -n "$AR"; then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6125$as_echo "$AR" >&6; } 6126else 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6128$as_echo "no" >&6; } 6129fi 6130 6131 6132 test -n "$AR" && break 6133 done 6134fi 6135if test -z "$AR"; then 6136 ac_ct_AR=$AR 6137 for ac_prog in ar 6138do 6139 # Extract the first word of "$ac_prog", so it can be a program name with args. 6140set dummy $ac_prog; ac_word=$2 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142$as_echo_n "checking for $ac_word... " >&6; } 6143if ${ac_cv_prog_ac_ct_AR+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 if test -n "$ac_ct_AR"; then 6147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6156 ac_cv_prog_ac_ct_AR="$ac_prog" 6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160done 6161 done 6162IFS=$as_save_IFS 6163 6164fi 6165fi 6166ac_ct_AR=$ac_cv_prog_ac_ct_AR 6167if test -n "$ac_ct_AR"; then 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6169$as_echo "$ac_ct_AR" >&6; } 6170else 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6172$as_echo "no" >&6; } 6173fi 6174 6175 6176 test -n "$ac_ct_AR" && break 6177done 6178 6179 if test "x$ac_ct_AR" = x; then 6180 AR="false" 6181 else 6182 case $cross_compiling:$ac_tool_warned in 6183yes:) 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6186ac_tool_warned=yes ;; 6187esac 6188 AR=$ac_ct_AR 6189 fi 6190fi 6191 6192: ${AR=ar} 6193: ${AR_FLAGS=cru} 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6206$as_echo_n "checking for archiver @FILE support... " >&6; } 6207if ${lt_cv_ar_at_file+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 lt_cv_ar_at_file=no 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213 6214int 6215main () 6216{ 6217 6218 ; 6219 return 0; 6220} 6221_ACEOF 6222if ac_fn_c_try_compile "$LINENO"; then : 6223 echo conftest.$ac_objext > conftest.lst 6224 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6226 (eval $lt_ar_try) 2>&5 6227 ac_status=$? 6228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6229 test $ac_status = 0; } 6230 if test "$ac_status" -eq 0; then 6231 # Ensure the archiver fails upon bogus file names. 6232 rm -f conftest.$ac_objext libconftest.a 6233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6234 (eval $lt_ar_try) 2>&5 6235 ac_status=$? 6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6237 test $ac_status = 0; } 6238 if test "$ac_status" -ne 0; then 6239 lt_cv_ar_at_file=@ 6240 fi 6241 fi 6242 rm -f conftest.* libconftest.a 6243 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6246 6247fi 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6249$as_echo "$lt_cv_ar_at_file" >&6; } 6250 6251if test "x$lt_cv_ar_at_file" = xno; then 6252 archiver_list_spec= 6253else 6254 archiver_list_spec=$lt_cv_ar_at_file 6255fi 6256 6257 6258 6259 6260 6261 6262 6263if test -n "$ac_tool_prefix"; then 6264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6265set dummy ${ac_tool_prefix}strip; ac_word=$2 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6267$as_echo_n "checking for $ac_word... " >&6; } 6268if ${ac_cv_prog_STRIP+:} false; then : 6269 $as_echo_n "(cached) " >&6 6270else 6271 if test -n "$STRIP"; then 6272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6273else 6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6275for as_dir in $PATH 6276do 6277 IFS=$as_save_IFS 6278 test -z "$as_dir" && as_dir=. 6279 for ac_exec_ext in '' $ac_executable_extensions; do 6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6281 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6283 break 2 6284 fi 6285done 6286 done 6287IFS=$as_save_IFS 6288 6289fi 6290fi 6291STRIP=$ac_cv_prog_STRIP 6292if test -n "$STRIP"; then 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6294$as_echo "$STRIP" >&6; } 6295else 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6297$as_echo "no" >&6; } 6298fi 6299 6300 6301fi 6302if test -z "$ac_cv_prog_STRIP"; then 6303 ac_ct_STRIP=$STRIP 6304 # Extract the first word of "strip", so it can be a program name with args. 6305set dummy strip; ac_word=$2 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6307$as_echo_n "checking for $ac_word... " >&6; } 6308if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310else 6311 if test -n "$ac_ct_STRIP"; then 6312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6313else 6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315for as_dir in $PATH 6316do 6317 IFS=$as_save_IFS 6318 test -z "$as_dir" && as_dir=. 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6321 ac_cv_prog_ac_ct_STRIP="strip" 6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325done 6326 done 6327IFS=$as_save_IFS 6328 6329fi 6330fi 6331ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6332if test -n "$ac_ct_STRIP"; then 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6334$as_echo "$ac_ct_STRIP" >&6; } 6335else 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6337$as_echo "no" >&6; } 6338fi 6339 6340 if test "x$ac_ct_STRIP" = x; then 6341 STRIP=":" 6342 else 6343 case $cross_compiling:$ac_tool_warned in 6344yes:) 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6347ac_tool_warned=yes ;; 6348esac 6349 STRIP=$ac_ct_STRIP 6350 fi 6351else 6352 STRIP="$ac_cv_prog_STRIP" 6353fi 6354 6355test -z "$STRIP" && STRIP=: 6356 6357 6358 6359 6360 6361 6362if test -n "$ac_tool_prefix"; then 6363 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6364set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6366$as_echo_n "checking for $ac_word... " >&6; } 6367if ${ac_cv_prog_RANLIB+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369else 6370 if test -n "$RANLIB"; then 6371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6372else 6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6374for as_dir in $PATH 6375do 6376 IFS=$as_save_IFS 6377 test -z "$as_dir" && as_dir=. 6378 for ac_exec_ext in '' $ac_executable_extensions; do 6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6382 break 2 6383 fi 6384done 6385 done 6386IFS=$as_save_IFS 6387 6388fi 6389fi 6390RANLIB=$ac_cv_prog_RANLIB 6391if test -n "$RANLIB"; then 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6393$as_echo "$RANLIB" >&6; } 6394else 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6396$as_echo "no" >&6; } 6397fi 6398 6399 6400fi 6401if test -z "$ac_cv_prog_RANLIB"; then 6402 ac_ct_RANLIB=$RANLIB 6403 # Extract the first word of "ranlib", so it can be a program name with args. 6404set dummy ranlib; ac_word=$2 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6406$as_echo_n "checking for $ac_word... " >&6; } 6407if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 if test -n "$ac_ct_RANLIB"; then 6411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6412else 6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6414for as_dir in $PATH 6415do 6416 IFS=$as_save_IFS 6417 test -z "$as_dir" && as_dir=. 6418 for ac_exec_ext in '' $ac_executable_extensions; do 6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6420 ac_cv_prog_ac_ct_RANLIB="ranlib" 6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6422 break 2 6423 fi 6424done 6425 done 6426IFS=$as_save_IFS 6427 6428fi 6429fi 6430ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6431if test -n "$ac_ct_RANLIB"; then 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6433$as_echo "$ac_ct_RANLIB" >&6; } 6434else 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6436$as_echo "no" >&6; } 6437fi 6438 6439 if test "x$ac_ct_RANLIB" = x; then 6440 RANLIB=":" 6441 else 6442 case $cross_compiling:$ac_tool_warned in 6443yes:) 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6446ac_tool_warned=yes ;; 6447esac 6448 RANLIB=$ac_ct_RANLIB 6449 fi 6450else 6451 RANLIB="$ac_cv_prog_RANLIB" 6452fi 6453 6454test -z "$RANLIB" && RANLIB=: 6455 6456 6457 6458 6459 6460 6461# Determine commands to create old-style static archives. 6462old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6463old_postinstall_cmds='chmod 644 $oldlib' 6464old_postuninstall_cmds= 6465 6466if test -n "$RANLIB"; then 6467 case $host_os in 6468 openbsd*) 6469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6470 ;; 6471 *) 6472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6473 ;; 6474 esac 6475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6476fi 6477 6478case $host_os in 6479 darwin*) 6480 lock_old_archive_extraction=yes ;; 6481 *) 6482 lock_old_archive_extraction=no ;; 6483esac 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523# If no C compiler was specified, use CC. 6524LTCC=${LTCC-"$CC"} 6525 6526# If no C compiler flags were specified, use CFLAGS. 6527LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6528 6529# Allow CC to be a program name with arguments. 6530compiler=$CC 6531 6532 6533# Check for command to grab the raw symbol name followed by C symbol from nm. 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6535$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6536if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 6540# These are sane defaults that work on at least a few old systems. 6541# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6542 6543# Character class describing NM global symbol codes. 6544symcode='[BCDEGRST]' 6545 6546# Regexp to match symbols that can be accessed directly from C. 6547sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6548 6549# Define system-specific variables. 6550case $host_os in 6551aix*) 6552 symcode='[BCDT]' 6553 ;; 6554cygwin* | mingw* | pw32* | cegcc*) 6555 symcode='[ABCDGISTW]' 6556 ;; 6557hpux*) 6558 if test "$host_cpu" = ia64; then 6559 symcode='[ABCDEGRST]' 6560 fi 6561 ;; 6562irix* | nonstopux*) 6563 symcode='[BCDEGRST]' 6564 ;; 6565osf*) 6566 symcode='[BCDEGQRST]' 6567 ;; 6568solaris*) 6569 symcode='[BDRT]' 6570 ;; 6571sco3.2v5*) 6572 symcode='[DT]' 6573 ;; 6574sysv4.2uw2*) 6575 symcode='[DT]' 6576 ;; 6577sysv5* | sco5v6* | unixware* | OpenUNIX*) 6578 symcode='[ABDT]' 6579 ;; 6580sysv4) 6581 symcode='[DFNSTU]' 6582 ;; 6583esac 6584 6585# If we're using GNU nm, then use its standard symbol codes. 6586case `$NM -V 2>&1` in 6587*GNU* | *'with BFD'*) 6588 symcode='[ABCDGIRSTW]' ;; 6589esac 6590 6591# Transform an extracted symbol line into a proper C declaration. 6592# Some systems (esp. on ia64) link data and code symbols differently, 6593# so use this general approach. 6594lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6595 6596# Transform an extracted symbol line into symbol name and symbol address 6597lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6598lt_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'" 6599 6600# Handle CRLF in mingw tool chain 6601opt_cr= 6602case $build_os in 6603mingw*) 6604 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6605 ;; 6606esac 6607 6608# Try without a prefix underscore, then with it. 6609for ac_symprfx in "" "_"; do 6610 6611 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6612 symxfrm="\\1 $ac_symprfx\\2 \\2" 6613 6614 # Write the raw and C identifiers. 6615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6616 # Fake it for dumpbin and say T for any non-static function 6617 # and D for any global variable. 6618 # Also find C++ and __fastcall symbols from MSVC++, 6619 # which start with @ or ?. 6620 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6621" {last_section=section; section=\$ 3};"\ 6622" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6623" \$ 0!~/External *\|/{next};"\ 6624" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6625" {if(hide[section]) next};"\ 6626" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6627" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6628" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6629" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6630" ' prfx=^$ac_symprfx" 6631 else 6632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6633 fi 6634 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6635 6636 # Check to see that the pipe works correctly. 6637 pipe_works=no 6638 6639 rm -f conftest* 6640 cat > conftest.$ac_ext <<_LT_EOF 6641#ifdef __cplusplus 6642extern "C" { 6643#endif 6644char nm_test_var; 6645void nm_test_func(void); 6646void nm_test_func(void){} 6647#ifdef __cplusplus 6648} 6649#endif 6650int main(){nm_test_var='a';nm_test_func();return(0);} 6651_LT_EOF 6652 6653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6654 (eval $ac_compile) 2>&5 6655 ac_status=$? 6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6657 test $ac_status = 0; }; then 6658 # Now try to grab the symbols. 6659 nlist=conftest.nm 6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6661 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6662 ac_status=$? 6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6664 test $ac_status = 0; } && test -s "$nlist"; then 6665 # Try sorting and uniquifying the output. 6666 if sort "$nlist" | uniq > "$nlist"T; then 6667 mv -f "$nlist"T "$nlist" 6668 else 6669 rm -f "$nlist"T 6670 fi 6671 6672 # Make sure that we snagged all the symbols we need. 6673 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6674 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6675 cat <<_LT_EOF > conftest.$ac_ext 6676/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6677#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6678/* DATA imports from DLLs on WIN32 con't be const, because runtime 6679 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6680# define LT_DLSYM_CONST 6681#elif defined(__osf__) 6682/* This system does not cope well with relocations in const data. */ 6683# define LT_DLSYM_CONST 6684#else 6685# define LT_DLSYM_CONST const 6686#endif 6687 6688#ifdef __cplusplus 6689extern "C" { 6690#endif 6691 6692_LT_EOF 6693 # Now generate the symbol file. 6694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6695 6696 cat <<_LT_EOF >> conftest.$ac_ext 6697 6698/* The mapping between symbol names and symbols. */ 6699LT_DLSYM_CONST struct { 6700 const char *name; 6701 void *address; 6702} 6703lt__PROGRAM__LTX_preloaded_symbols[] = 6704{ 6705 { "@PROGRAM@", (void *) 0 }, 6706_LT_EOF 6707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6708 cat <<\_LT_EOF >> conftest.$ac_ext 6709 {0, (void *) 0} 6710}; 6711 6712/* This works around a problem in FreeBSD linker */ 6713#ifdef FREEBSD_WORKAROUND 6714static const void *lt_preloaded_setup() { 6715 return lt__PROGRAM__LTX_preloaded_symbols; 6716} 6717#endif 6718 6719#ifdef __cplusplus 6720} 6721#endif 6722_LT_EOF 6723 # Now try linking the two files. 6724 mv conftest.$ac_objext conftstm.$ac_objext 6725 lt_globsym_save_LIBS=$LIBS 6726 lt_globsym_save_CFLAGS=$CFLAGS 6727 LIBS="conftstm.$ac_objext" 6728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6730 (eval $ac_link) 2>&5 6731 ac_status=$? 6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6734 pipe_works=yes 6735 fi 6736 LIBS=$lt_globsym_save_LIBS 6737 CFLAGS=$lt_globsym_save_CFLAGS 6738 else 6739 echo "cannot find nm_test_func in $nlist" >&5 6740 fi 6741 else 6742 echo "cannot find nm_test_var in $nlist" >&5 6743 fi 6744 else 6745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6746 fi 6747 else 6748 echo "$progname: failed program was:" >&5 6749 cat conftest.$ac_ext >&5 6750 fi 6751 rm -rf conftest* conftst* 6752 6753 # Do not use the global_symbol_pipe unless it works. 6754 if test "$pipe_works" = yes; then 6755 break 6756 else 6757 lt_cv_sys_global_symbol_pipe= 6758 fi 6759done 6760 6761fi 6762 6763if test -z "$lt_cv_sys_global_symbol_pipe"; then 6764 lt_cv_sys_global_symbol_to_cdecl= 6765fi 6766if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6768$as_echo "failed" >&6; } 6769else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6771$as_echo "ok" >&6; } 6772fi 6773 6774# Response file support. 6775if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6776 nm_file_list_spec='@' 6777elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6778 nm_file_list_spec='@' 6779fi 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6808$as_echo_n "checking for sysroot... " >&6; } 6809 6810# Check whether --with-sysroot was given. 6811if test "${with_sysroot+set}" = set; then : 6812 withval=$with_sysroot; 6813else 6814 with_sysroot=no 6815fi 6816 6817 6818lt_sysroot= 6819case ${with_sysroot} in #( 6820 yes) 6821 if test "$GCC" = yes; then 6822 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6823 fi 6824 ;; #( 6825 /*) 6826 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6827 ;; #( 6828 no|'') 6829 ;; #( 6830 *) 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6832$as_echo "${with_sysroot}" >&6; } 6833 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6834 ;; 6835esac 6836 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6838$as_echo "${lt_sysroot:-no}" >&6; } 6839 6840 6841 6842 6843 6844# Check whether --enable-libtool-lock was given. 6845if test "${enable_libtool_lock+set}" = set; then : 6846 enableval=$enable_libtool_lock; 6847fi 6848 6849test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6850 6851# Some flags need to be propagated to the compiler or linker for good 6852# libtool support. 6853case $host in 6854ia64-*-hpux*) 6855 # Find out which ABI we are using. 6856 echo 'int i;' > conftest.$ac_ext 6857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6858 (eval $ac_compile) 2>&5 6859 ac_status=$? 6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6861 test $ac_status = 0; }; then 6862 case `/usr/bin/file conftest.$ac_objext` in 6863 *ELF-32*) 6864 HPUX_IA64_MODE="32" 6865 ;; 6866 *ELF-64*) 6867 HPUX_IA64_MODE="64" 6868 ;; 6869 esac 6870 fi 6871 rm -rf conftest* 6872 ;; 6873*-*-irix6*) 6874 # Find out which ABI we are using. 6875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6877 (eval $ac_compile) 2>&5 6878 ac_status=$? 6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6880 test $ac_status = 0; }; then 6881 if test "$lt_cv_prog_gnu_ld" = yes; then 6882 case `/usr/bin/file conftest.$ac_objext` in 6883 *32-bit*) 6884 LD="${LD-ld} -melf32bsmip" 6885 ;; 6886 *N32*) 6887 LD="${LD-ld} -melf32bmipn32" 6888 ;; 6889 *64-bit*) 6890 LD="${LD-ld} -melf64bmip" 6891 ;; 6892 esac 6893 else 6894 case `/usr/bin/file conftest.$ac_objext` in 6895 *32-bit*) 6896 LD="${LD-ld} -32" 6897 ;; 6898 *N32*) 6899 LD="${LD-ld} -n32" 6900 ;; 6901 *64-bit*) 6902 LD="${LD-ld} -64" 6903 ;; 6904 esac 6905 fi 6906 fi 6907 rm -rf conftest* 6908 ;; 6909 6910x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6911s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6912 # Find out which ABI we are using. 6913 echo 'int i;' > conftest.$ac_ext 6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6915 (eval $ac_compile) 2>&5 6916 ac_status=$? 6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6918 test $ac_status = 0; }; then 6919 case `/usr/bin/file conftest.o` in 6920 *32-bit*) 6921 case $host in 6922 x86_64-*kfreebsd*-gnu) 6923 LD="${LD-ld} -m elf_i386_fbsd" 6924 ;; 6925 x86_64-*linux*) 6926 LD="${LD-ld} -m elf_i386" 6927 ;; 6928 ppc64-*linux*|powerpc64-*linux*) 6929 LD="${LD-ld} -m elf32ppclinux" 6930 ;; 6931 s390x-*linux*) 6932 LD="${LD-ld} -m elf_s390" 6933 ;; 6934 sparc64-*linux*) 6935 LD="${LD-ld} -m elf32_sparc" 6936 ;; 6937 esac 6938 ;; 6939 *64-bit*) 6940 case $host in 6941 x86_64-*kfreebsd*-gnu) 6942 LD="${LD-ld} -m elf_x86_64_fbsd" 6943 ;; 6944 x86_64-*linux*) 6945 LD="${LD-ld} -m elf_x86_64" 6946 ;; 6947 ppc*-*linux*|powerpc*-*linux*) 6948 LD="${LD-ld} -m elf64ppc" 6949 ;; 6950 s390*-*linux*|s390*-*tpf*) 6951 LD="${LD-ld} -m elf64_s390" 6952 ;; 6953 sparc*-*linux*) 6954 LD="${LD-ld} -m elf64_sparc" 6955 ;; 6956 esac 6957 ;; 6958 esac 6959 fi 6960 rm -rf conftest* 6961 ;; 6962 6963*-*-sco3.2v5*) 6964 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6965 SAVE_CFLAGS="$CFLAGS" 6966 CFLAGS="$CFLAGS -belf" 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6968$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6969if ${lt_cv_cc_needs_belf+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 ac_ext=c 6973ac_cpp='$CPP $CPPFLAGS' 6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6976ac_compiler_gnu=$ac_cv_c_compiler_gnu 6977 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980 6981int 6982main () 6983{ 6984 6985 ; 6986 return 0; 6987} 6988_ACEOF 6989if ac_fn_c_try_link "$LINENO"; then : 6990 lt_cv_cc_needs_belf=yes 6991else 6992 lt_cv_cc_needs_belf=no 6993fi 6994rm -f core conftest.err conftest.$ac_objext \ 6995 conftest$ac_exeext conftest.$ac_ext 6996 ac_ext=c 6997ac_cpp='$CPP $CPPFLAGS' 6998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7000ac_compiler_gnu=$ac_cv_c_compiler_gnu 7001 7002fi 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7004$as_echo "$lt_cv_cc_needs_belf" >&6; } 7005 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7006 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7007 CFLAGS="$SAVE_CFLAGS" 7008 fi 7009 ;; 7010sparc*-*solaris*) 7011 # Find out which ABI we are using. 7012 echo 'int i;' > conftest.$ac_ext 7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7014 (eval $ac_compile) 2>&5 7015 ac_status=$? 7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7017 test $ac_status = 0; }; then 7018 case `/usr/bin/file conftest.o` in 7019 *64-bit*) 7020 case $lt_cv_prog_gnu_ld in 7021 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7022 *) 7023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7024 LD="${LD-ld} -64" 7025 fi 7026 ;; 7027 esac 7028 ;; 7029 esac 7030 fi 7031 rm -rf conftest* 7032 ;; 7033esac 7034 7035need_locks="$enable_libtool_lock" 7036 7037if test -n "$ac_tool_prefix"; then 7038 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7039set dummy ${ac_tool_prefix}mt; ac_word=$2 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7041$as_echo_n "checking for $ac_word... " >&6; } 7042if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 if test -n "$MANIFEST_TOOL"; then 7046 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7047else 7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049for as_dir in $PATH 7050do 7051 IFS=$as_save_IFS 7052 test -z "$as_dir" && as_dir=. 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7055 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7057 break 2 7058 fi 7059done 7060 done 7061IFS=$as_save_IFS 7062 7063fi 7064fi 7065MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7066if test -n "$MANIFEST_TOOL"; then 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7068$as_echo "$MANIFEST_TOOL" >&6; } 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; } 7072fi 7073 7074 7075fi 7076if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7077 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7078 # Extract the first word of "mt", so it can be a program name with args. 7079set dummy mt; ac_word=$2 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7081$as_echo_n "checking for $ac_word... " >&6; } 7082if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 if test -n "$ac_ct_MANIFEST_TOOL"; then 7086 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7087else 7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7089for as_dir in $PATH 7090do 7091 IFS=$as_save_IFS 7092 test -z "$as_dir" && as_dir=. 7093 for ac_exec_ext in '' $ac_executable_extensions; do 7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7097 break 2 7098 fi 7099done 7100 done 7101IFS=$as_save_IFS 7102 7103fi 7104fi 7105ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7106if test -n "$ac_ct_MANIFEST_TOOL"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7108$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7109else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111$as_echo "no" >&6; } 7112fi 7113 7114 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7115 MANIFEST_TOOL=":" 7116 else 7117 case $cross_compiling:$ac_tool_warned in 7118yes:) 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7121ac_tool_warned=yes ;; 7122esac 7123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7124 fi 7125else 7126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7127fi 7128 7129test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7131$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7132if ${lt_cv_path_mainfest_tool+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 lt_cv_path_mainfest_tool=no 7136 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7137 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7138 cat conftest.err >&5 7139 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7140 lt_cv_path_mainfest_tool=yes 7141 fi 7142 rm -f conftest* 7143fi 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7145$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7146if test "x$lt_cv_path_mainfest_tool" != xyes; then 7147 MANIFEST_TOOL=: 7148fi 7149 7150 7151 7152 7153 7154 7155 case $host_os in 7156 rhapsody* | darwin*) 7157 if test -n "$ac_tool_prefix"; then 7158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7159set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_DSYMUTIL+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$DSYMUTIL"; then 7166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185DSYMUTIL=$ac_cv_prog_DSYMUTIL 7186if test -n "$DSYMUTIL"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7188$as_echo "$DSYMUTIL" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 7195fi 7196if test -z "$ac_cv_prog_DSYMUTIL"; then 7197 ac_ct_DSYMUTIL=$DSYMUTIL 7198 # Extract the first word of "dsymutil", so it can be a program name with args. 7199set dummy dsymutil; ac_word=$2 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201$as_echo_n "checking for $ac_word... " >&6; } 7202if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 if test -n "$ac_ct_DSYMUTIL"; then 7206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7207else 7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7209for as_dir in $PATH 7210do 7211 IFS=$as_save_IFS 7212 test -z "$as_dir" && as_dir=. 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220 done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7226if test -n "$ac_ct_DSYMUTIL"; then 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7228$as_echo "$ac_ct_DSYMUTIL" >&6; } 7229else 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7231$as_echo "no" >&6; } 7232fi 7233 7234 if test "x$ac_ct_DSYMUTIL" = x; then 7235 DSYMUTIL=":" 7236 else 7237 case $cross_compiling:$ac_tool_warned in 7238yes:) 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7241ac_tool_warned=yes ;; 7242esac 7243 DSYMUTIL=$ac_ct_DSYMUTIL 7244 fi 7245else 7246 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7247fi 7248 7249 if test -n "$ac_tool_prefix"; then 7250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7251set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if ${ac_cv_prog_NMEDIT+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$NMEDIT"; then 7258 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7267 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272 done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277NMEDIT=$ac_cv_prog_NMEDIT 7278if test -n "$NMEDIT"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7280$as_echo "$NMEDIT" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 7287fi 7288if test -z "$ac_cv_prog_NMEDIT"; then 7289 ac_ct_NMEDIT=$NMEDIT 7290 # Extract the first word of "nmedit", so it can be a program name with args. 7291set dummy nmedit; ac_word=$2 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7293$as_echo_n "checking for $ac_word... " >&6; } 7294if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -n "$ac_ct_NMEDIT"; then 7298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7299else 7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7307 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7318if test -n "$ac_ct_NMEDIT"; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7320$as_echo "$ac_ct_NMEDIT" >&6; } 7321else 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323$as_echo "no" >&6; } 7324fi 7325 7326 if test "x$ac_ct_NMEDIT" = x; then 7327 NMEDIT=":" 7328 else 7329 case $cross_compiling:$ac_tool_warned in 7330yes:) 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7333ac_tool_warned=yes ;; 7334esac 7335 NMEDIT=$ac_ct_NMEDIT 7336 fi 7337else 7338 NMEDIT="$ac_cv_prog_NMEDIT" 7339fi 7340 7341 if test -n "$ac_tool_prefix"; then 7342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7343set dummy ${ac_tool_prefix}lipo; ac_word=$2 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7345$as_echo_n "checking for $ac_word... " >&6; } 7346if ${ac_cv_prog_LIPO+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 if test -n "$LIPO"; then 7350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7351else 7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7353for as_dir in $PATH 7354do 7355 IFS=$as_save_IFS 7356 test -z "$as_dir" && as_dir=. 7357 for ac_exec_ext in '' $ac_executable_extensions; do 7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7361 break 2 7362 fi 7363done 7364 done 7365IFS=$as_save_IFS 7366 7367fi 7368fi 7369LIPO=$ac_cv_prog_LIPO 7370if test -n "$LIPO"; then 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7372$as_echo "$LIPO" >&6; } 7373else 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7375$as_echo "no" >&6; } 7376fi 7377 7378 7379fi 7380if test -z "$ac_cv_prog_LIPO"; then 7381 ac_ct_LIPO=$LIPO 7382 # Extract the first word of "lipo", so it can be a program name with args. 7383set dummy lipo; ac_word=$2 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385$as_echo_n "checking for $ac_word... " >&6; } 7386if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 if test -n "$ac_ct_LIPO"; then 7390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7391else 7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7399 ac_cv_prog_ac_ct_LIPO="lipo" 7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403done 7404 done 7405IFS=$as_save_IFS 7406 7407fi 7408fi 7409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7410if test -n "$ac_ct_LIPO"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7412$as_echo "$ac_ct_LIPO" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 if test "x$ac_ct_LIPO" = x; then 7419 LIPO=":" 7420 else 7421 case $cross_compiling:$ac_tool_warned in 7422yes:) 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7425ac_tool_warned=yes ;; 7426esac 7427 LIPO=$ac_ct_LIPO 7428 fi 7429else 7430 LIPO="$ac_cv_prog_LIPO" 7431fi 7432 7433 if test -n "$ac_tool_prefix"; then 7434 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7435set dummy ${ac_tool_prefix}otool; ac_word=$2 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7437$as_echo_n "checking for $ac_word... " >&6; } 7438if ${ac_cv_prog_OTOOL+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 if test -n "$OTOOL"; then 7442 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7443else 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7451 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456 done 7457IFS=$as_save_IFS 7458 7459fi 7460fi 7461OTOOL=$ac_cv_prog_OTOOL 7462if test -n "$OTOOL"; then 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7464$as_echo "$OTOOL" >&6; } 7465else 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7467$as_echo "no" >&6; } 7468fi 7469 7470 7471fi 7472if test -z "$ac_cv_prog_OTOOL"; then 7473 ac_ct_OTOOL=$OTOOL 7474 # Extract the first word of "otool", so it can be a program name with args. 7475set dummy otool; ac_word=$2 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477$as_echo_n "checking for $ac_word... " >&6; } 7478if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 if test -n "$ac_ct_OTOOL"; then 7482 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7483else 7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7485for as_dir in $PATH 7486do 7487 IFS=$as_save_IFS 7488 test -z "$as_dir" && as_dir=. 7489 for ac_exec_ext in '' $ac_executable_extensions; do 7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7491 ac_cv_prog_ac_ct_OTOOL="otool" 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7493 break 2 7494 fi 7495done 7496 done 7497IFS=$as_save_IFS 7498 7499fi 7500fi 7501ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7502if test -n "$ac_ct_OTOOL"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7504$as_echo "$ac_ct_OTOOL" >&6; } 7505else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507$as_echo "no" >&6; } 7508fi 7509 7510 if test "x$ac_ct_OTOOL" = x; then 7511 OTOOL=":" 7512 else 7513 case $cross_compiling:$ac_tool_warned in 7514yes:) 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7517ac_tool_warned=yes ;; 7518esac 7519 OTOOL=$ac_ct_OTOOL 7520 fi 7521else 7522 OTOOL="$ac_cv_prog_OTOOL" 7523fi 7524 7525 if test -n "$ac_tool_prefix"; then 7526 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7527set dummy ${ac_tool_prefix}otool64; ac_word=$2 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7529$as_echo_n "checking for $ac_word... " >&6; } 7530if ${ac_cv_prog_OTOOL64+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 if test -n "$OTOOL64"; then 7534 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7535else 7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7537for as_dir in $PATH 7538do 7539 IFS=$as_save_IFS 7540 test -z "$as_dir" && as_dir=. 7541 for ac_exec_ext in '' $ac_executable_extensions; do 7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7545 break 2 7546 fi 7547done 7548 done 7549IFS=$as_save_IFS 7550 7551fi 7552fi 7553OTOOL64=$ac_cv_prog_OTOOL64 7554if test -n "$OTOOL64"; then 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7556$as_echo "$OTOOL64" >&6; } 7557else 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7559$as_echo "no" >&6; } 7560fi 7561 7562 7563fi 7564if test -z "$ac_cv_prog_OTOOL64"; then 7565 ac_ct_OTOOL64=$OTOOL64 7566 # Extract the first word of "otool64", so it can be a program name with args. 7567set dummy otool64; ac_word=$2 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7569$as_echo_n "checking for $ac_word... " >&6; } 7570if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 if test -n "$ac_ct_OTOOL64"; then 7574 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7575else 7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7577for as_dir in $PATH 7578do 7579 IFS=$as_save_IFS 7580 test -z "$as_dir" && as_dir=. 7581 for ac_exec_ext in '' $ac_executable_extensions; do 7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7583 ac_cv_prog_ac_ct_OTOOL64="otool64" 7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7585 break 2 7586 fi 7587done 7588 done 7589IFS=$as_save_IFS 7590 7591fi 7592fi 7593ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7594if test -n "$ac_ct_OTOOL64"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7596$as_echo "$ac_ct_OTOOL64" >&6; } 7597else 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7599$as_echo "no" >&6; } 7600fi 7601 7602 if test "x$ac_ct_OTOOL64" = x; then 7603 OTOOL64=":" 7604 else 7605 case $cross_compiling:$ac_tool_warned in 7606yes:) 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7609ac_tool_warned=yes ;; 7610esac 7611 OTOOL64=$ac_ct_OTOOL64 7612 fi 7613else 7614 OTOOL64="$ac_cv_prog_OTOOL64" 7615fi 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7644$as_echo_n "checking for -single_module linker flag... " >&6; } 7645if ${lt_cv_apple_cc_single_mod+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 lt_cv_apple_cc_single_mod=no 7649 if test -z "${LT_MULTI_MODULE}"; then 7650 # By default we will add the -single_module flag. You can override 7651 # by either setting the environment variable LT_MULTI_MODULE 7652 # non-empty at configure time, or by adding -multi_module to the 7653 # link flags. 7654 rm -rf libconftest.dylib* 7655 echo "int foo(void){return 1;}" > conftest.c 7656 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7657-dynamiclib -Wl,-single_module conftest.c" >&5 7658 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7659 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7660 _lt_result=$? 7661 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7662 lt_cv_apple_cc_single_mod=yes 7663 else 7664 cat conftest.err >&5 7665 fi 7666 rm -rf libconftest.dylib* 7667 rm -f conftest.* 7668 fi 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7671$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7673$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7674if ${lt_cv_ld_exported_symbols_list+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 lt_cv_ld_exported_symbols_list=no 7678 save_LDFLAGS=$LDFLAGS 7679 echo "_main" > conftest.sym 7680 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683 7684int 7685main () 7686{ 7687 7688 ; 7689 return 0; 7690} 7691_ACEOF 7692if ac_fn_c_try_link "$LINENO"; then : 7693 lt_cv_ld_exported_symbols_list=yes 7694else 7695 lt_cv_ld_exported_symbols_list=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext \ 7698 conftest$ac_exeext conftest.$ac_ext 7699 LDFLAGS="$save_LDFLAGS" 7700 7701fi 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7703$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7705$as_echo_n "checking for -force_load linker flag... " >&6; } 7706if ${lt_cv_ld_force_load+:} false; then : 7707 $as_echo_n "(cached) " >&6 7708else 7709 lt_cv_ld_force_load=no 7710 cat > conftest.c << _LT_EOF 7711int forced_loaded() { return 2;} 7712_LT_EOF 7713 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7714 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7715 echo "$AR cru libconftest.a conftest.o" >&5 7716 $AR cru libconftest.a conftest.o 2>&5 7717 echo "$RANLIB libconftest.a" >&5 7718 $RANLIB libconftest.a 2>&5 7719 cat > conftest.c << _LT_EOF 7720int main() { return 0;} 7721_LT_EOF 7722 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7723 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7724 _lt_result=$? 7725 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7726 lt_cv_ld_force_load=yes 7727 else 7728 cat conftest.err >&5 7729 fi 7730 rm -f conftest.err libconftest.a conftest conftest.c 7731 rm -rf conftest.dSYM 7732 7733fi 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7735$as_echo "$lt_cv_ld_force_load" >&6; } 7736 case $host_os in 7737 rhapsody* | darwin1.[012]) 7738 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7739 darwin1.*) 7740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7741 darwin*) # darwin 5.x on 7742 # if running on 10.5 or later, the deployment target defaults 7743 # to the OS version, if on x86, and 10.4, the deployment 7744 # target defaults to 10.4. Don't you love it? 7745 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7746 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7748 10.[012]*) 7749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7750 10.*) 7751 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7752 esac 7753 ;; 7754 esac 7755 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7756 _lt_dar_single_mod='$single_module' 7757 fi 7758 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7759 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7760 else 7761 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7762 fi 7763 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7764 _lt_dsymutil='~$DSYMUTIL $lib || :' 7765 else 7766 _lt_dsymutil= 7767 fi 7768 ;; 7769 esac 7770 7771ac_ext=c 7772ac_cpp='$CPP $CPPFLAGS' 7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7775ac_compiler_gnu=$ac_cv_c_compiler_gnu 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7777$as_echo_n "checking how to run the C preprocessor... " >&6; } 7778# On Suns, sometimes $CPP names a directory. 7779if test -n "$CPP" && test -d "$CPP"; then 7780 CPP= 7781fi 7782if test -z "$CPP"; then 7783 if ${ac_cv_prog_CPP+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 # Double quotes because CPP needs to be expanded 7787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7788 do 7789 ac_preproc_ok=false 7790for ac_c_preproc_warn_flag in '' yes 7791do 7792 # Use a header file that comes with gcc, so configuring glibc 7793 # with a fresh cross-compiler works. 7794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7795 # <limits.h> exists even on freestanding compilers. 7796 # On the NeXT, cc -E runs the code through the compiler's parser, 7797 # not just through cpp. "Syntax error" is here to catch this case. 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800#ifdef __STDC__ 7801# include <limits.h> 7802#else 7803# include <assert.h> 7804#endif 7805 Syntax error 7806_ACEOF 7807if ac_fn_c_try_cpp "$LINENO"; then : 7808 7809else 7810 # Broken: fails on valid input. 7811continue 7812fi 7813rm -f conftest.err conftest.i conftest.$ac_ext 7814 7815 # OK, works on sane cases. Now check whether nonexistent headers 7816 # can be detected and how. 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819#include <ac_nonexistent.h> 7820_ACEOF 7821if ac_fn_c_try_cpp "$LINENO"; then : 7822 # Broken: success on invalid input. 7823continue 7824else 7825 # Passes both tests. 7826ac_preproc_ok=: 7827break 7828fi 7829rm -f conftest.err conftest.i conftest.$ac_ext 7830 7831done 7832# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7833rm -f conftest.i conftest.err conftest.$ac_ext 7834if $ac_preproc_ok; then : 7835 break 7836fi 7837 7838 done 7839 ac_cv_prog_CPP=$CPP 7840 7841fi 7842 CPP=$ac_cv_prog_CPP 7843else 7844 ac_cv_prog_CPP=$CPP 7845fi 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7847$as_echo "$CPP" >&6; } 7848ac_preproc_ok=false 7849for ac_c_preproc_warn_flag in '' yes 7850do 7851 # Use a header file that comes with gcc, so configuring glibc 7852 # with a fresh cross-compiler works. 7853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7854 # <limits.h> exists even on freestanding compilers. 7855 # On the NeXT, cc -E runs the code through the compiler's parser, 7856 # not just through cpp. "Syntax error" is here to catch this case. 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859#ifdef __STDC__ 7860# include <limits.h> 7861#else 7862# include <assert.h> 7863#endif 7864 Syntax error 7865_ACEOF 7866if ac_fn_c_try_cpp "$LINENO"; then : 7867 7868else 7869 # Broken: fails on valid input. 7870continue 7871fi 7872rm -f conftest.err conftest.i conftest.$ac_ext 7873 7874 # OK, works on sane cases. Now check whether nonexistent headers 7875 # can be detected and how. 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878#include <ac_nonexistent.h> 7879_ACEOF 7880if ac_fn_c_try_cpp "$LINENO"; then : 7881 # Broken: success on invalid input. 7882continue 7883else 7884 # Passes both tests. 7885ac_preproc_ok=: 7886break 7887fi 7888rm -f conftest.err conftest.i conftest.$ac_ext 7889 7890done 7891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7892rm -f conftest.i conftest.err conftest.$ac_ext 7893if $ac_preproc_ok; then : 7894 7895else 7896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7898as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7899See \`config.log' for more details" "$LINENO" 5; } 7900fi 7901 7902ac_ext=c 7903ac_cpp='$CPP $CPPFLAGS' 7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7906ac_compiler_gnu=$ac_cv_c_compiler_gnu 7907 7908 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7910$as_echo_n "checking for ANSI C header files... " >&6; } 7911if ${ac_cv_header_stdc+:} false; then : 7912 $as_echo_n "(cached) " >&6 7913else 7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7915/* end confdefs.h. */ 7916#include <stdlib.h> 7917#include <stdarg.h> 7918#include <string.h> 7919#include <float.h> 7920 7921int 7922main () 7923{ 7924 7925 ; 7926 return 0; 7927} 7928_ACEOF 7929if ac_fn_c_try_compile "$LINENO"; then : 7930 ac_cv_header_stdc=yes 7931else 7932 ac_cv_header_stdc=no 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7935 7936if test $ac_cv_header_stdc = yes; then 7937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940#include <string.h> 7941 7942_ACEOF 7943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7944 $EGREP "memchr" >/dev/null 2>&1; then : 7945 7946else 7947 ac_cv_header_stdc=no 7948fi 7949rm -f conftest* 7950 7951fi 7952 7953if test $ac_cv_header_stdc = yes; then 7954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957#include <stdlib.h> 7958 7959_ACEOF 7960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7961 $EGREP "free" >/dev/null 2>&1; then : 7962 7963else 7964 ac_cv_header_stdc=no 7965fi 7966rm -f conftest* 7967 7968fi 7969 7970if test $ac_cv_header_stdc = yes; then 7971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7972 if test "$cross_compiling" = yes; then : 7973 : 7974else 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7976/* end confdefs.h. */ 7977#include <ctype.h> 7978#include <stdlib.h> 7979#if ((' ' & 0x0FF) == 0x020) 7980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7982#else 7983# define ISLOWER(c) \ 7984 (('a' <= (c) && (c) <= 'i') \ 7985 || ('j' <= (c) && (c) <= 'r') \ 7986 || ('s' <= (c) && (c) <= 'z')) 7987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7988#endif 7989 7990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7991int 7992main () 7993{ 7994 int i; 7995 for (i = 0; i < 256; i++) 7996 if (XOR (islower (i), ISLOWER (i)) 7997 || toupper (i) != TOUPPER (i)) 7998 return 2; 7999 return 0; 8000} 8001_ACEOF 8002if ac_fn_c_try_run "$LINENO"; then : 8003 8004else 8005 ac_cv_header_stdc=no 8006fi 8007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8008 conftest.$ac_objext conftest.beam conftest.$ac_ext 8009fi 8010 8011fi 8012fi 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8014$as_echo "$ac_cv_header_stdc" >&6; } 8015if test $ac_cv_header_stdc = yes; then 8016 8017$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8018 8019fi 8020 8021# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8023 inttypes.h stdint.h unistd.h 8024do : 8025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8026ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8027" 8028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8029 cat >>confdefs.h <<_ACEOF 8030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8031_ACEOF 8032 8033fi 8034 8035done 8036 8037 8038for ac_header in dlfcn.h 8039do : 8040 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8041" 8042if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8043 cat >>confdefs.h <<_ACEOF 8044#define HAVE_DLFCN_H 1 8045_ACEOF 8046 8047fi 8048 8049done 8050 8051 8052 8053 8054 8055# Set options 8056enable_win32_dll=yes 8057 8058case $host in 8059*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8060 if test -n "$ac_tool_prefix"; then 8061 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8062set dummy ${ac_tool_prefix}as; ac_word=$2 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8064$as_echo_n "checking for $ac_word... " >&6; } 8065if ${ac_cv_prog_AS+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 if test -n "$AS"; then 8069 ac_cv_prog_AS="$AS" # Let the user override the test. 8070else 8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8072for as_dir in $PATH 8073do 8074 IFS=$as_save_IFS 8075 test -z "$as_dir" && as_dir=. 8076 for ac_exec_ext in '' $ac_executable_extensions; do 8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8078 ac_cv_prog_AS="${ac_tool_prefix}as" 8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8080 break 2 8081 fi 8082done 8083 done 8084IFS=$as_save_IFS 8085 8086fi 8087fi 8088AS=$ac_cv_prog_AS 8089if test -n "$AS"; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8091$as_echo "$AS" >&6; } 8092else 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8094$as_echo "no" >&6; } 8095fi 8096 8097 8098fi 8099if test -z "$ac_cv_prog_AS"; then 8100 ac_ct_AS=$AS 8101 # Extract the first word of "as", so it can be a program name with args. 8102set dummy as; ac_word=$2 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8104$as_echo_n "checking for $ac_word... " >&6; } 8105if ${ac_cv_prog_ac_ct_AS+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 if test -n "$ac_ct_AS"; then 8109 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8110else 8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8112for as_dir in $PATH 8113do 8114 IFS=$as_save_IFS 8115 test -z "$as_dir" && as_dir=. 8116 for ac_exec_ext in '' $ac_executable_extensions; do 8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8118 ac_cv_prog_ac_ct_AS="as" 8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8120 break 2 8121 fi 8122done 8123 done 8124IFS=$as_save_IFS 8125 8126fi 8127fi 8128ac_ct_AS=$ac_cv_prog_ac_ct_AS 8129if test -n "$ac_ct_AS"; then 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8131$as_echo "$ac_ct_AS" >&6; } 8132else 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8134$as_echo "no" >&6; } 8135fi 8136 8137 if test "x$ac_ct_AS" = x; then 8138 AS="false" 8139 else 8140 case $cross_compiling:$ac_tool_warned in 8141yes:) 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8144ac_tool_warned=yes ;; 8145esac 8146 AS=$ac_ct_AS 8147 fi 8148else 8149 AS="$ac_cv_prog_AS" 8150fi 8151 8152 if test -n "$ac_tool_prefix"; then 8153 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8154set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8156$as_echo_n "checking for $ac_word... " >&6; } 8157if ${ac_cv_prog_DLLTOOL+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 if test -n "$DLLTOOL"; then 8161 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8162else 8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8164for as_dir in $PATH 8165do 8166 IFS=$as_save_IFS 8167 test -z "$as_dir" && as_dir=. 8168 for ac_exec_ext in '' $ac_executable_extensions; do 8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8170 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8172 break 2 8173 fi 8174done 8175 done 8176IFS=$as_save_IFS 8177 8178fi 8179fi 8180DLLTOOL=$ac_cv_prog_DLLTOOL 8181if test -n "$DLLTOOL"; then 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8183$as_echo "$DLLTOOL" >&6; } 8184else 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8186$as_echo "no" >&6; } 8187fi 8188 8189 8190fi 8191if test -z "$ac_cv_prog_DLLTOOL"; then 8192 ac_ct_DLLTOOL=$DLLTOOL 8193 # Extract the first word of "dlltool", so it can be a program name with args. 8194set dummy dlltool; ac_word=$2 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8196$as_echo_n "checking for $ac_word... " >&6; } 8197if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 if test -n "$ac_ct_DLLTOOL"; then 8201 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8202else 8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8204for as_dir in $PATH 8205do 8206 IFS=$as_save_IFS 8207 test -z "$as_dir" && as_dir=. 8208 for ac_exec_ext in '' $ac_executable_extensions; do 8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8210 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8212 break 2 8213 fi 8214done 8215 done 8216IFS=$as_save_IFS 8217 8218fi 8219fi 8220ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8221if test -n "$ac_ct_DLLTOOL"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8223$as_echo "$ac_ct_DLLTOOL" >&6; } 8224else 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226$as_echo "no" >&6; } 8227fi 8228 8229 if test "x$ac_ct_DLLTOOL" = x; then 8230 DLLTOOL="false" 8231 else 8232 case $cross_compiling:$ac_tool_warned in 8233yes:) 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8236ac_tool_warned=yes ;; 8237esac 8238 DLLTOOL=$ac_ct_DLLTOOL 8239 fi 8240else 8241 DLLTOOL="$ac_cv_prog_DLLTOOL" 8242fi 8243 8244 if test -n "$ac_tool_prefix"; then 8245 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8246set dummy ${ac_tool_prefix}objdump; ac_word=$2 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8248$as_echo_n "checking for $ac_word... " >&6; } 8249if ${ac_cv_prog_OBJDUMP+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 if test -n "$OBJDUMP"; then 8253 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8254else 8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256for as_dir in $PATH 8257do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8262 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266done 8267 done 8268IFS=$as_save_IFS 8269 8270fi 8271fi 8272OBJDUMP=$ac_cv_prog_OBJDUMP 8273if test -n "$OBJDUMP"; then 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8275$as_echo "$OBJDUMP" >&6; } 8276else 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8278$as_echo "no" >&6; } 8279fi 8280 8281 8282fi 8283if test -z "$ac_cv_prog_OBJDUMP"; then 8284 ac_ct_OBJDUMP=$OBJDUMP 8285 # Extract the first word of "objdump", so it can be a program name with args. 8286set dummy objdump; ac_word=$2 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8288$as_echo_n "checking for $ac_word... " >&6; } 8289if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 if test -n "$ac_ct_OBJDUMP"; then 8293 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8294else 8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8296for as_dir in $PATH 8297do 8298 IFS=$as_save_IFS 8299 test -z "$as_dir" && as_dir=. 8300 for ac_exec_ext in '' $ac_executable_extensions; do 8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8302 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8304 break 2 8305 fi 8306done 8307 done 8308IFS=$as_save_IFS 8309 8310fi 8311fi 8312ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8313if test -n "$ac_ct_OBJDUMP"; then 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8315$as_echo "$ac_ct_OBJDUMP" >&6; } 8316else 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8318$as_echo "no" >&6; } 8319fi 8320 8321 if test "x$ac_ct_OBJDUMP" = x; then 8322 OBJDUMP="false" 8323 else 8324 case $cross_compiling:$ac_tool_warned in 8325yes:) 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8328ac_tool_warned=yes ;; 8329esac 8330 OBJDUMP=$ac_ct_OBJDUMP 8331 fi 8332else 8333 OBJDUMP="$ac_cv_prog_OBJDUMP" 8334fi 8335 8336 ;; 8337esac 8338 8339test -z "$AS" && AS=as 8340 8341 8342 8343 8344 8345test -z "$DLLTOOL" && DLLTOOL=dlltool 8346 8347 8348 8349 8350 8351test -z "$OBJDUMP" && OBJDUMP=objdump 8352 8353 8354 8355 8356 8357 8358 8359 enable_dlopen=no 8360 8361 8362 8363 # Check whether --enable-shared was given. 8364if test "${enable_shared+set}" = set; then : 8365 enableval=$enable_shared; p=${PACKAGE-default} 8366 case $enableval in 8367 yes) enable_shared=yes ;; 8368 no) enable_shared=no ;; 8369 *) 8370 enable_shared=no 8371 # Look at the argument we got. We use all the common list separators. 8372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8373 for pkg in $enableval; do 8374 IFS="$lt_save_ifs" 8375 if test "X$pkg" = "X$p"; then 8376 enable_shared=yes 8377 fi 8378 done 8379 IFS="$lt_save_ifs" 8380 ;; 8381 esac 8382else 8383 enable_shared=yes 8384fi 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 # Check whether --enable-static was given. 8395if test "${enable_static+set}" = set; then : 8396 enableval=$enable_static; p=${PACKAGE-default} 8397 case $enableval in 8398 yes) enable_static=yes ;; 8399 no) enable_static=no ;; 8400 *) 8401 enable_static=no 8402 # Look at the argument we got. We use all the common list separators. 8403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8404 for pkg in $enableval; do 8405 IFS="$lt_save_ifs" 8406 if test "X$pkg" = "X$p"; then 8407 enable_static=yes 8408 fi 8409 done 8410 IFS="$lt_save_ifs" 8411 ;; 8412 esac 8413else 8414 enable_static=yes 8415fi 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426# Check whether --with-pic was given. 8427if test "${with_pic+set}" = set; then : 8428 withval=$with_pic; pic_mode="$withval" 8429else 8430 pic_mode=default 8431fi 8432 8433 8434test -z "$pic_mode" && pic_mode=default 8435 8436 8437 8438 8439 8440 8441 8442 # Check whether --enable-fast-install was given. 8443if test "${enable_fast_install+set}" = set; then : 8444 enableval=$enable_fast_install; p=${PACKAGE-default} 8445 case $enableval in 8446 yes) enable_fast_install=yes ;; 8447 no) enable_fast_install=no ;; 8448 *) 8449 enable_fast_install=no 8450 # Look at the argument we got. We use all the common list separators. 8451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8452 for pkg in $enableval; do 8453 IFS="$lt_save_ifs" 8454 if test "X$pkg" = "X$p"; then 8455 enable_fast_install=yes 8456 fi 8457 done 8458 IFS="$lt_save_ifs" 8459 ;; 8460 esac 8461else 8462 enable_fast_install=yes 8463fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475# This can be used to rebuild libtool when needed 8476LIBTOOL_DEPS="$ltmain" 8477 8478# Always use our own libtool. 8479LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506test -z "$LN_S" && LN_S="ln -s" 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521if test -n "${ZSH_VERSION+set}" ; then 8522 setopt NO_GLOB_SUBST 8523fi 8524 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8526$as_echo_n "checking for objdir... " >&6; } 8527if ${lt_cv_objdir+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 rm -f .libs 2>/dev/null 8531mkdir .libs 2>/dev/null 8532if test -d .libs; then 8533 lt_cv_objdir=.libs 8534else 8535 # MS-DOS does not allow filenames that begin with a dot. 8536 lt_cv_objdir=_libs 8537fi 8538rmdir .libs 2>/dev/null 8539fi 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8541$as_echo "$lt_cv_objdir" >&6; } 8542objdir=$lt_cv_objdir 8543 8544 8545 8546 8547 8548cat >>confdefs.h <<_ACEOF 8549#define LT_OBJDIR "$lt_cv_objdir/" 8550_ACEOF 8551 8552 8553 8554 8555case $host_os in 8556aix3*) 8557 # AIX sometimes has problems with the GCC collect2 program. For some 8558 # reason, if we set the COLLECT_NAMES environment variable, the problems 8559 # vanish in a puff of smoke. 8560 if test "X${COLLECT_NAMES+set}" != Xset; then 8561 COLLECT_NAMES= 8562 export COLLECT_NAMES 8563 fi 8564 ;; 8565esac 8566 8567# Global variables: 8568ofile=libtool 8569can_build_shared=yes 8570 8571# All known linkers require a `.a' archive for static linking (except MSVC, 8572# which needs '.lib'). 8573libext=a 8574 8575with_gnu_ld="$lt_cv_prog_gnu_ld" 8576 8577old_CC="$CC" 8578old_CFLAGS="$CFLAGS" 8579 8580# Set sane defaults for various variables 8581test -z "$CC" && CC=cc 8582test -z "$LTCC" && LTCC=$CC 8583test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8584test -z "$LD" && LD=ld 8585test -z "$ac_objext" && ac_objext=o 8586 8587for cc_temp in $compiler""; do 8588 case $cc_temp in 8589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8591 \-*) ;; 8592 *) break;; 8593 esac 8594done 8595cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8596 8597 8598# Only perform the check for file, if the check method requires it 8599test -z "$MAGIC_CMD" && MAGIC_CMD=file 8600case $deplibs_check_method in 8601file_magic*) 8602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8604$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8605if ${lt_cv_path_MAGIC_CMD+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 case $MAGIC_CMD in 8609[\\/*] | ?:[\\/]*) 8610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8611 ;; 8612*) 8613 lt_save_MAGIC_CMD="$MAGIC_CMD" 8614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8616 for ac_dir in $ac_dummy; do 8617 IFS="$lt_save_ifs" 8618 test -z "$ac_dir" && ac_dir=. 8619 if test -f $ac_dir/${ac_tool_prefix}file; then 8620 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8621 if test -n "$file_magic_test_file"; then 8622 case $deplibs_check_method in 8623 "file_magic "*) 8624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8627 $EGREP "$file_magic_regex" > /dev/null; then 8628 : 8629 else 8630 cat <<_LT_EOF 1>&2 8631 8632*** Warning: the command libtool uses to detect shared libraries, 8633*** $file_magic_cmd, produces output that libtool cannot recognize. 8634*** The result is that libtool may fail to recognize shared libraries 8635*** as such. This will affect the creation of libtool libraries that 8636*** depend on shared libraries, but programs linked with such libtool 8637*** libraries will work regardless of this problem. Nevertheless, you 8638*** may want to report the problem to your system manager and/or to 8639*** [email protected] 8640 8641_LT_EOF 8642 fi ;; 8643 esac 8644 fi 8645 break 8646 fi 8647 done 8648 IFS="$lt_save_ifs" 8649 MAGIC_CMD="$lt_save_MAGIC_CMD" 8650 ;; 8651esac 8652fi 8653 8654MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8655if test -n "$MAGIC_CMD"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8657$as_echo "$MAGIC_CMD" >&6; } 8658else 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660$as_echo "no" >&6; } 8661fi 8662 8663 8664 8665 8666 8667if test -z "$lt_cv_path_MAGIC_CMD"; then 8668 if test -n "$ac_tool_prefix"; then 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8670$as_echo_n "checking for file... " >&6; } 8671if ${lt_cv_path_MAGIC_CMD+:} false; then : 8672 $as_echo_n "(cached) " >&6 8673else 8674 case $MAGIC_CMD in 8675[\\/*] | ?:[\\/]*) 8676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8677 ;; 8678*) 8679 lt_save_MAGIC_CMD="$MAGIC_CMD" 8680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8682 for ac_dir in $ac_dummy; do 8683 IFS="$lt_save_ifs" 8684 test -z "$ac_dir" && ac_dir=. 8685 if test -f $ac_dir/file; then 8686 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8687 if test -n "$file_magic_test_file"; then 8688 case $deplibs_check_method in 8689 "file_magic "*) 8690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8693 $EGREP "$file_magic_regex" > /dev/null; then 8694 : 8695 else 8696 cat <<_LT_EOF 1>&2 8697 8698*** Warning: the command libtool uses to detect shared libraries, 8699*** $file_magic_cmd, produces output that libtool cannot recognize. 8700*** The result is that libtool may fail to recognize shared libraries 8701*** as such. This will affect the creation of libtool libraries that 8702*** depend on shared libraries, but programs linked with such libtool 8703*** libraries will work regardless of this problem. Nevertheless, you 8704*** may want to report the problem to your system manager and/or to 8705*** [email protected] 8706 8707_LT_EOF 8708 fi ;; 8709 esac 8710 fi 8711 break 8712 fi 8713 done 8714 IFS="$lt_save_ifs" 8715 MAGIC_CMD="$lt_save_MAGIC_CMD" 8716 ;; 8717esac 8718fi 8719 8720MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8721if test -n "$MAGIC_CMD"; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8723$as_echo "$MAGIC_CMD" >&6; } 8724else 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726$as_echo "no" >&6; } 8727fi 8728 8729 8730 else 8731 MAGIC_CMD=: 8732 fi 8733fi 8734 8735 fi 8736 ;; 8737esac 8738 8739# Use C for the default configuration in the libtool script 8740 8741lt_save_CC="$CC" 8742ac_ext=c 8743ac_cpp='$CPP $CPPFLAGS' 8744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8746ac_compiler_gnu=$ac_cv_c_compiler_gnu 8747 8748 8749# Source file extension for C test sources. 8750ac_ext=c 8751 8752# Object file extension for compiled C test sources. 8753objext=o 8754objext=$objext 8755 8756# Code to be used in simple compile tests 8757lt_simple_compile_test_code="int some_variable = 0;" 8758 8759# Code to be used in simple link tests 8760lt_simple_link_test_code='int main(){return(0);}' 8761 8762 8763 8764 8765 8766 8767 8768# If no C compiler was specified, use CC. 8769LTCC=${LTCC-"$CC"} 8770 8771# If no C compiler flags were specified, use CFLAGS. 8772LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8773 8774# Allow CC to be a program name with arguments. 8775compiler=$CC 8776 8777# Save the default compiler, since it gets overwritten when the other 8778# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8779compiler_DEFAULT=$CC 8780 8781# save warnings/boilerplate of simple test code 8782ac_outfile=conftest.$ac_objext 8783echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8785_lt_compiler_boilerplate=`cat conftest.err` 8786$RM conftest* 8787 8788ac_outfile=conftest.$ac_objext 8789echo "$lt_simple_link_test_code" >conftest.$ac_ext 8790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8791_lt_linker_boilerplate=`cat conftest.err` 8792$RM -r conftest* 8793 8794 8795## CAVEAT EMPTOR: 8796## There is no encapsulation within the following macros, do not change 8797## the running order or otherwise move them around unless you know exactly 8798## what you are doing... 8799if test -n "$compiler"; then 8800 8801lt_prog_compiler_no_builtin_flag= 8802 8803if test "$GCC" = yes; then 8804 case $cc_basename in 8805 nvcc*) 8806 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8807 *) 8808 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8809 esac 8810 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8812$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8813if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 lt_cv_prog_compiler_rtti_exceptions=no 8817 ac_outfile=conftest.$ac_objext 8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8819 lt_compiler_flag="-fno-rtti -fno-exceptions" 8820 # Insert the option either (1) after the last *FLAGS variable, or 8821 # (2) before a word containing "conftest.", or (3) at the end. 8822 # Note that $ac_compile itself does not contain backslashes and begins 8823 # with a dollar sign (not a hyphen), so the echo should work correctly. 8824 # The option is referenced via a variable to avoid confusing sed. 8825 lt_compile=`echo "$ac_compile" | $SED \ 8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8828 -e 's:$: $lt_compiler_flag:'` 8829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8830 (eval "$lt_compile" 2>conftest.err) 8831 ac_status=$? 8832 cat conftest.err >&5 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 if (exit $ac_status) && test -s "$ac_outfile"; then 8835 # The compiler can only warn and ignore the option if not recognized 8836 # So say no if there are warnings other than the usual output. 8837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8840 lt_cv_prog_compiler_rtti_exceptions=yes 8841 fi 8842 fi 8843 $RM conftest* 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8847$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8848 8849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8851else 8852 : 8853fi 8854 8855fi 8856 8857 8858 8859 8860 8861 8862 lt_prog_compiler_wl= 8863lt_prog_compiler_pic= 8864lt_prog_compiler_static= 8865 8866 8867 if test "$GCC" = yes; then 8868 lt_prog_compiler_wl='-Wl,' 8869 lt_prog_compiler_static='-static' 8870 8871 case $host_os in 8872 aix*) 8873 # All AIX code is PIC. 8874 if test "$host_cpu" = ia64; then 8875 # AIX 5 now supports IA64 processor 8876 lt_prog_compiler_static='-Bstatic' 8877 fi 8878 ;; 8879 8880 amigaos*) 8881 case $host_cpu in 8882 powerpc) 8883 # see comment about AmigaOS4 .so support 8884 lt_prog_compiler_pic='-fPIC' 8885 ;; 8886 m68k) 8887 # FIXME: we need at least 68020 code to build shared libraries, but 8888 # adding the `-m68020' flag to GCC prevents building anything better, 8889 # like `-m68040'. 8890 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8891 ;; 8892 esac 8893 ;; 8894 8895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8896 # PIC is the default for these OSes. 8897 ;; 8898 8899 mingw* | cygwin* | pw32* | os2* | cegcc*) 8900 # This hack is so that the source file can tell whether it is being 8901 # built for inclusion in a dll (and should export symbols for example). 8902 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8903 # (--disable-auto-import) libraries 8904 lt_prog_compiler_pic='-DDLL_EXPORT' 8905 ;; 8906 8907 darwin* | rhapsody*) 8908 # PIC is the default on this platform 8909 # Common symbols not allowed in MH_DYLIB files 8910 lt_prog_compiler_pic='-fno-common' 8911 ;; 8912 8913 haiku*) 8914 # PIC is the default for Haiku. 8915 # The "-static" flag exists, but is broken. 8916 lt_prog_compiler_static= 8917 ;; 8918 8919 hpux*) 8920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8922 # sets the default TLS model and affects inlining. 8923 case $host_cpu in 8924 hppa*64*) 8925 # +Z the default 8926 ;; 8927 *) 8928 lt_prog_compiler_pic='-fPIC' 8929 ;; 8930 esac 8931 ;; 8932 8933 interix[3-9]*) 8934 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8935 # Instead, we relocate shared libraries at runtime. 8936 ;; 8937 8938 msdosdjgpp*) 8939 # Just because we use GCC doesn't mean we suddenly get shared libraries 8940 # on systems that don't support them. 8941 lt_prog_compiler_can_build_shared=no 8942 enable_shared=no 8943 ;; 8944 8945 *nto* | *qnx*) 8946 # QNX uses GNU C++, but need to define -shared option too, otherwise 8947 # it will coredump. 8948 lt_prog_compiler_pic='-fPIC -shared' 8949 ;; 8950 8951 sysv4*MP*) 8952 if test -d /usr/nec; then 8953 lt_prog_compiler_pic=-Kconform_pic 8954 fi 8955 ;; 8956 8957 *) 8958 lt_prog_compiler_pic='-fPIC' 8959 ;; 8960 esac 8961 8962 case $cc_basename in 8963 nvcc*) # Cuda Compiler Driver 2.2 8964 lt_prog_compiler_wl='-Xlinker ' 8965 lt_prog_compiler_pic='-Xcompiler -fPIC' 8966 ;; 8967 esac 8968 else 8969 # PORTME Check for flag to pass linker flags through the system compiler. 8970 case $host_os in 8971 aix*) 8972 lt_prog_compiler_wl='-Wl,' 8973 if test "$host_cpu" = ia64; then 8974 # AIX 5 now supports IA64 processor 8975 lt_prog_compiler_static='-Bstatic' 8976 else 8977 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8978 fi 8979 ;; 8980 8981 mingw* | cygwin* | pw32* | os2* | cegcc*) 8982 # This hack is so that the source file can tell whether it is being 8983 # built for inclusion in a dll (and should export symbols for example). 8984 lt_prog_compiler_pic='-DDLL_EXPORT' 8985 ;; 8986 8987 hpux9* | hpux10* | hpux11*) 8988 lt_prog_compiler_wl='-Wl,' 8989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8990 # not for PA HP-UX. 8991 case $host_cpu in 8992 hppa*64*|ia64*) 8993 # +Z the default 8994 ;; 8995 *) 8996 lt_prog_compiler_pic='+Z' 8997 ;; 8998 esac 8999 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9000 lt_prog_compiler_static='${wl}-a ${wl}archive' 9001 ;; 9002 9003 irix5* | irix6* | nonstopux*) 9004 lt_prog_compiler_wl='-Wl,' 9005 # PIC (with -KPIC) is the default. 9006 lt_prog_compiler_static='-non_shared' 9007 ;; 9008 9009 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9010 case $cc_basename in 9011 # old Intel for x86_64 which still supported -KPIC. 9012 ecc*) 9013 lt_prog_compiler_wl='-Wl,' 9014 lt_prog_compiler_pic='-KPIC' 9015 lt_prog_compiler_static='-static' 9016 ;; 9017 # icc used to be incompatible with GCC. 9018 # ICC 10 doesn't accept -KPIC any more. 9019 icc* | ifort*) 9020 lt_prog_compiler_wl='-Wl,' 9021 lt_prog_compiler_pic='-fPIC' 9022 lt_prog_compiler_static='-static' 9023 ;; 9024 # Lahey Fortran 8.1. 9025 lf95*) 9026 lt_prog_compiler_wl='-Wl,' 9027 lt_prog_compiler_pic='--shared' 9028 lt_prog_compiler_static='--static' 9029 ;; 9030 nagfor*) 9031 # NAG Fortran compiler 9032 lt_prog_compiler_wl='-Wl,-Wl,,' 9033 lt_prog_compiler_pic='-PIC' 9034 lt_prog_compiler_static='-Bstatic' 9035 ;; 9036 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9037 # Portland Group compilers (*not* the Pentium gcc compiler, 9038 # which looks to be a dead project) 9039 lt_prog_compiler_wl='-Wl,' 9040 lt_prog_compiler_pic='-fpic' 9041 lt_prog_compiler_static='-Bstatic' 9042 ;; 9043 ccc*) 9044 lt_prog_compiler_wl='-Wl,' 9045 # All Alpha code is PIC. 9046 lt_prog_compiler_static='-non_shared' 9047 ;; 9048 xl* | bgxl* | bgf* | mpixl*) 9049 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9050 lt_prog_compiler_wl='-Wl,' 9051 lt_prog_compiler_pic='-qpic' 9052 lt_prog_compiler_static='-qstaticlink' 9053 ;; 9054 *) 9055 case `$CC -V 2>&1 | sed 5q` in 9056 *Sun\ F* | *Sun*Fortran*) 9057 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9058 lt_prog_compiler_pic='-KPIC' 9059 lt_prog_compiler_static='-Bstatic' 9060 lt_prog_compiler_wl='' 9061 ;; 9062 *Sun\ C*) 9063 # Sun C 5.9 9064 lt_prog_compiler_pic='-KPIC' 9065 lt_prog_compiler_static='-Bstatic' 9066 lt_prog_compiler_wl='-Wl,' 9067 ;; 9068 esac 9069 ;; 9070 esac 9071 ;; 9072 9073 newsos6) 9074 lt_prog_compiler_pic='-KPIC' 9075 lt_prog_compiler_static='-Bstatic' 9076 ;; 9077 9078 *nto* | *qnx*) 9079 # QNX uses GNU C++, but need to define -shared option too, otherwise 9080 # it will coredump. 9081 lt_prog_compiler_pic='-fPIC -shared' 9082 ;; 9083 9084 osf3* | osf4* | osf5*) 9085 lt_prog_compiler_wl='-Wl,' 9086 # All OSF/1 code is PIC. 9087 lt_prog_compiler_static='-non_shared' 9088 ;; 9089 9090 rdos*) 9091 lt_prog_compiler_static='-non_shared' 9092 ;; 9093 9094 solaris*) 9095 lt_prog_compiler_pic='-KPIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 case $cc_basename in 9098 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9099 lt_prog_compiler_wl='-Qoption ld ';; 9100 *) 9101 lt_prog_compiler_wl='-Wl,';; 9102 esac 9103 ;; 9104 9105 sunos4*) 9106 lt_prog_compiler_wl='-Qoption ld ' 9107 lt_prog_compiler_pic='-PIC' 9108 lt_prog_compiler_static='-Bstatic' 9109 ;; 9110 9111 sysv4 | sysv4.2uw2* | sysv4.3*) 9112 lt_prog_compiler_wl='-Wl,' 9113 lt_prog_compiler_pic='-KPIC' 9114 lt_prog_compiler_static='-Bstatic' 9115 ;; 9116 9117 sysv4*MP*) 9118 if test -d /usr/nec ;then 9119 lt_prog_compiler_pic='-Kconform_pic' 9120 lt_prog_compiler_static='-Bstatic' 9121 fi 9122 ;; 9123 9124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9125 lt_prog_compiler_wl='-Wl,' 9126 lt_prog_compiler_pic='-KPIC' 9127 lt_prog_compiler_static='-Bstatic' 9128 ;; 9129 9130 unicos*) 9131 lt_prog_compiler_wl='-Wl,' 9132 lt_prog_compiler_can_build_shared=no 9133 ;; 9134 9135 uts4*) 9136 lt_prog_compiler_pic='-pic' 9137 lt_prog_compiler_static='-Bstatic' 9138 ;; 9139 9140 *) 9141 lt_prog_compiler_can_build_shared=no 9142 ;; 9143 esac 9144 fi 9145 9146case $host_os in 9147 # For platforms which do not support PIC, -DPIC is meaningless: 9148 *djgpp*) 9149 lt_prog_compiler_pic= 9150 ;; 9151 *) 9152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9153 ;; 9154esac 9155 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9157$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9158if ${lt_cv_prog_compiler_pic+:} false; then : 9159 $as_echo_n "(cached) " >&6 9160else 9161 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9162fi 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9164$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9165lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9166 9167# 9168# Check to make sure the PIC flag actually works. 9169# 9170if test -n "$lt_prog_compiler_pic"; then 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9172$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9173if ${lt_cv_prog_compiler_pic_works+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 lt_cv_prog_compiler_pic_works=no 9177 ac_outfile=conftest.$ac_objext 9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9180 # Insert the option either (1) after the last *FLAGS variable, or 9181 # (2) before a word containing "conftest.", or (3) at the end. 9182 # Note that $ac_compile itself does not contain backslashes and begins 9183 # with a dollar sign (not a hyphen), so the echo should work correctly. 9184 # The option is referenced via a variable to avoid confusing sed. 9185 lt_compile=`echo "$ac_compile" | $SED \ 9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9188 -e 's:$: $lt_compiler_flag:'` 9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9190 (eval "$lt_compile" 2>conftest.err) 9191 ac_status=$? 9192 cat conftest.err >&5 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 if (exit $ac_status) && test -s "$ac_outfile"; then 9195 # The compiler can only warn and ignore the option if not recognized 9196 # So say no if there are warnings other than the usual output. 9197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9200 lt_cv_prog_compiler_pic_works=yes 9201 fi 9202 fi 9203 $RM conftest* 9204 9205fi 9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9207$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9208 9209if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9210 case $lt_prog_compiler_pic in 9211 "" | " "*) ;; 9212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9213 esac 9214else 9215 lt_prog_compiler_pic= 9216 lt_prog_compiler_can_build_shared=no 9217fi 9218 9219fi 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231# 9232# Check to make sure the static flag actually works. 9233# 9234wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9236$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9237if ${lt_cv_prog_compiler_static_works+:} false; then : 9238 $as_echo_n "(cached) " >&6 9239else 9240 lt_cv_prog_compiler_static_works=no 9241 save_LDFLAGS="$LDFLAGS" 9242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9243 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9245 # The linker can only warn and ignore the option if not recognized 9246 # So say no if there are warnings 9247 if test -s conftest.err; then 9248 # Append any errors to the config.log. 9249 cat conftest.err 1>&5 9250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9252 if diff conftest.exp conftest.er2 >/dev/null; then 9253 lt_cv_prog_compiler_static_works=yes 9254 fi 9255 else 9256 lt_cv_prog_compiler_static_works=yes 9257 fi 9258 fi 9259 $RM -r conftest* 9260 LDFLAGS="$save_LDFLAGS" 9261 9262fi 9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9264$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9265 9266if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9267 : 9268else 9269 lt_prog_compiler_static= 9270fi 9271 9272 9273 9274 9275 9276 9277 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9279$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9280if ${lt_cv_prog_compiler_c_o+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 lt_cv_prog_compiler_c_o=no 9284 $RM -r conftest 2>/dev/null 9285 mkdir conftest 9286 cd conftest 9287 mkdir out 9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9289 9290 lt_compiler_flag="-o out/conftest2.$ac_objext" 9291 # Insert the option either (1) after the last *FLAGS variable, or 9292 # (2) before a word containing "conftest.", or (3) at the end. 9293 # Note that $ac_compile itself does not contain backslashes and begins 9294 # with a dollar sign (not a hyphen), so the echo should work correctly. 9295 lt_compile=`echo "$ac_compile" | $SED \ 9296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9298 -e 's:$: $lt_compiler_flag:'` 9299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9300 (eval "$lt_compile" 2>out/conftest.err) 9301 ac_status=$? 9302 cat out/conftest.err >&5 9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9304 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9305 then 9306 # The compiler can only warn and ignore the option if not recognized 9307 # So say no if there are warnings 9308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9311 lt_cv_prog_compiler_c_o=yes 9312 fi 9313 fi 9314 chmod u+w . 2>&5 9315 $RM conftest* 9316 # SGI C++ compiler will create directory out/ii_files/ for 9317 # template instantiation 9318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9319 $RM out/* && rmdir out 9320 cd .. 9321 $RM -r conftest 9322 $RM conftest* 9323 9324fi 9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9326$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9327 9328 9329 9330 9331 9332 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9334$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9335if ${lt_cv_prog_compiler_c_o+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 lt_cv_prog_compiler_c_o=no 9339 $RM -r conftest 2>/dev/null 9340 mkdir conftest 9341 cd conftest 9342 mkdir out 9343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9344 9345 lt_compiler_flag="-o out/conftest2.$ac_objext" 9346 # Insert the option either (1) after the last *FLAGS variable, or 9347 # (2) before a word containing "conftest.", or (3) at the end. 9348 # Note that $ac_compile itself does not contain backslashes and begins 9349 # with a dollar sign (not a hyphen), so the echo should work correctly. 9350 lt_compile=`echo "$ac_compile" | $SED \ 9351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9353 -e 's:$: $lt_compiler_flag:'` 9354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9355 (eval "$lt_compile" 2>out/conftest.err) 9356 ac_status=$? 9357 cat out/conftest.err >&5 9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9359 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9360 then 9361 # The compiler can only warn and ignore the option if not recognized 9362 # So say no if there are warnings 9363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9366 lt_cv_prog_compiler_c_o=yes 9367 fi 9368 fi 9369 chmod u+w . 2>&5 9370 $RM conftest* 9371 # SGI C++ compiler will create directory out/ii_files/ for 9372 # template instantiation 9373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9374 $RM out/* && rmdir out 9375 cd .. 9376 $RM -r conftest 9377 $RM conftest* 9378 9379fi 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9381$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9382 9383 9384 9385 9386hard_links="nottested" 9387if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9388 # do not overwrite the value of need_locks provided by the user 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9390$as_echo_n "checking if we can lock with hard links... " >&6; } 9391 hard_links=yes 9392 $RM conftest* 9393 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9394 touch conftest.a 9395 ln conftest.a conftest.b 2>&5 || hard_links=no 9396 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9398$as_echo "$hard_links" >&6; } 9399 if test "$hard_links" = no; then 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9401$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9402 need_locks=warn 9403 fi 9404else 9405 need_locks=no 9406fi 9407 9408 9409 9410 9411 9412 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9414$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9415 9416 runpath_var= 9417 allow_undefined_flag= 9418 always_export_symbols=no 9419 archive_cmds= 9420 archive_expsym_cmds= 9421 compiler_needs_object=no 9422 enable_shared_with_static_runtimes=no 9423 export_dynamic_flag_spec= 9424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9425 hardcode_automatic=no 9426 hardcode_direct=no 9427 hardcode_direct_absolute=no 9428 hardcode_libdir_flag_spec= 9429 hardcode_libdir_flag_spec_ld= 9430 hardcode_libdir_separator= 9431 hardcode_minus_L=no 9432 hardcode_shlibpath_var=unsupported 9433 inherit_rpath=no 9434 link_all_deplibs=unknown 9435 module_cmds= 9436 module_expsym_cmds= 9437 old_archive_from_new_cmds= 9438 old_archive_from_expsyms_cmds= 9439 thread_safe_flag_spec= 9440 whole_archive_flag_spec= 9441 # include_expsyms should be a list of space-separated symbols to be *always* 9442 # included in the symbol list 9443 include_expsyms= 9444 # exclude_expsyms can be an extended regexp of symbols to exclude 9445 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9447 # as well as any symbol that contains `d'. 9448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9450 # platforms (ab)use it in PIC code, but their linkers get confused if 9451 # the symbol is explicitly referenced. Since portable code cannot 9452 # rely on this symbol name, it's probably fine to never include it in 9453 # preloaded symbol tables. 9454 # Exclude shared library initialization/finalization symbols. 9455 extract_expsyms_cmds= 9456 9457 case $host_os in 9458 cygwin* | mingw* | pw32* | cegcc*) 9459 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9460 # When not using gcc, we currently assume that we are using 9461 # Microsoft Visual C++. 9462 if test "$GCC" != yes; then 9463 with_gnu_ld=no 9464 fi 9465 ;; 9466 interix*) 9467 # we just hope/assume this is gcc and not c89 (= MSVC++) 9468 with_gnu_ld=yes 9469 ;; 9470 openbsd*) 9471 with_gnu_ld=no 9472 ;; 9473 esac 9474 9475 ld_shlibs=yes 9476 9477 # On some targets, GNU ld is compatible enough with the native linker 9478 # that we're better off using the native interface for both. 9479 lt_use_gnu_ld_interface=no 9480 if test "$with_gnu_ld" = yes; then 9481 case $host_os in 9482 aix*) 9483 # The AIX port of GNU ld has always aspired to compatibility 9484 # with the native linker. However, as the warning in the GNU ld 9485 # block says, versions before 2.19.5* couldn't really create working 9486 # shared libraries, regardless of the interface used. 9487 case `$LD -v 2>&1` in 9488 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9489 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9490 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9491 *) 9492 lt_use_gnu_ld_interface=yes 9493 ;; 9494 esac 9495 ;; 9496 *) 9497 lt_use_gnu_ld_interface=yes 9498 ;; 9499 esac 9500 fi 9501 9502 if test "$lt_use_gnu_ld_interface" = yes; then 9503 # If archive_cmds runs LD, not CC, wlarc should be empty 9504 wlarc='${wl}' 9505 9506 # Set some defaults for GNU ld with shared library support. These 9507 # are reset later if shared libraries are not supported. Putting them 9508 # here allows them to be overridden if necessary. 9509 runpath_var=LD_RUN_PATH 9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9511 export_dynamic_flag_spec='${wl}--export-dynamic' 9512 # ancient GNU ld didn't support --whole-archive et. al. 9513 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9514 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9515 else 9516 whole_archive_flag_spec= 9517 fi 9518 supports_anon_versioning=no 9519 case `$LD -v 2>&1` in 9520 *GNU\ gold*) supports_anon_versioning=yes ;; 9521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9524 *\ 2.11.*) ;; # other 2.11 versions 9525 *) supports_anon_versioning=yes ;; 9526 esac 9527 9528 # See if GNU ld supports shared libraries. 9529 case $host_os in 9530 aix[3-9]*) 9531 # On AIX/PPC, the GNU linker is very broken 9532 if test "$host_cpu" != ia64; then 9533 ld_shlibs=no 9534 cat <<_LT_EOF 1>&2 9535 9536*** Warning: the GNU linker, at least up to release 2.19, is reported 9537*** to be unable to reliably create shared libraries on AIX. 9538*** Therefore, libtool is disabling shared libraries support. If you 9539*** really care for shared libraries, you may want to install binutils 9540*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9541*** You will then need to restart the configuration process. 9542 9543_LT_EOF 9544 fi 9545 ;; 9546 9547 amigaos*) 9548 case $host_cpu in 9549 powerpc) 9550 # see comment about AmigaOS4 .so support 9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9552 archive_expsym_cmds='' 9553 ;; 9554 m68k) 9555 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)' 9556 hardcode_libdir_flag_spec='-L$libdir' 9557 hardcode_minus_L=yes 9558 ;; 9559 esac 9560 ;; 9561 9562 beos*) 9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9564 allow_undefined_flag=unsupported 9565 # Joseph Beckenbach <[email protected]> says some releases of gcc 9566 # support --undefined. This deserves some investigation. FIXME 9567 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9568 else 9569 ld_shlibs=no 9570 fi 9571 ;; 9572 9573 cygwin* | mingw* | pw32* | cegcc*) 9574 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9575 # as there is no search path for DLLs. 9576 hardcode_libdir_flag_spec='-L$libdir' 9577 export_dynamic_flag_spec='${wl}--export-all-symbols' 9578 allow_undefined_flag=unsupported 9579 always_export_symbols=no 9580 enable_shared_with_static_runtimes=yes 9581 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' 9582 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9583 9584 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9586 # If the export-symbols file already is a .def file (1st line 9587 # is EXPORTS), use it as is; otherwise, prepend... 9588 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9589 cp $export_symbols $output_objdir/$soname.def; 9590 else 9591 echo EXPORTS > $output_objdir/$soname.def; 9592 cat $export_symbols >> $output_objdir/$soname.def; 9593 fi~ 9594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9595 else 9596 ld_shlibs=no 9597 fi 9598 ;; 9599 9600 haiku*) 9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9602 link_all_deplibs=yes 9603 ;; 9604 9605 interix[3-9]*) 9606 hardcode_direct=no 9607 hardcode_shlibpath_var=no 9608 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9609 export_dynamic_flag_spec='${wl}-E' 9610 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9611 # Instead, shared libraries are loaded at an image base (0x10000000 by 9612 # default) and relocated if they conflict, which is a slow very memory 9613 # consuming and fragmenting process. To avoid this, we pick a random, 9614 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9615 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9617 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' 9618 ;; 9619 9620 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9621 tmp_diet=no 9622 if test "$host_os" = linux-dietlibc; then 9623 case $cc_basename in 9624 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9625 esac 9626 fi 9627 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9628 && test "$tmp_diet" = no 9629 then 9630 tmp_addflag=' $pic_flag' 9631 tmp_sharedflag='-shared' 9632 case $cc_basename,$host_cpu in 9633 pgcc*) # Portland Group C compiler 9634 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' 9635 tmp_addflag=' $pic_flag' 9636 ;; 9637 pgf77* | pgf90* | pgf95* | pgfortran*) 9638 # Portland Group f77 and f90 compilers 9639 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' 9640 tmp_addflag=' $pic_flag -Mnomain' ;; 9641 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9642 tmp_addflag=' -i_dynamic' ;; 9643 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9644 tmp_addflag=' -i_dynamic -nofor_main' ;; 9645 ifc* | ifort*) # Intel Fortran compiler 9646 tmp_addflag=' -nofor_main' ;; 9647 lf95*) # Lahey Fortran 8.1 9648 whole_archive_flag_spec= 9649 tmp_sharedflag='--shared' ;; 9650 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9651 tmp_sharedflag='-qmkshrobj' 9652 tmp_addflag= ;; 9653 nvcc*) # Cuda Compiler Driver 2.2 9654 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' 9655 compiler_needs_object=yes 9656 ;; 9657 esac 9658 case `$CC -V 2>&1 | sed 5q` in 9659 *Sun\ C*) # Sun C 5.9 9660 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' 9661 compiler_needs_object=yes 9662 tmp_sharedflag='-G' ;; 9663 *Sun\ F*) # Sun Fortran 8.3 9664 tmp_sharedflag='-G' ;; 9665 esac 9666 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9667 9668 if test "x$supports_anon_versioning" = xyes; then 9669 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9671 echo "local: *; };" >> $output_objdir/$libname.ver~ 9672 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9673 fi 9674 9675 case $cc_basename in 9676 xlf* | bgf* | bgxlf* | mpixlf*) 9677 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9678 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9679 hardcode_libdir_flag_spec= 9680 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9681 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9682 if test "x$supports_anon_versioning" = xyes; then 9683 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9685 echo "local: *; };" >> $output_objdir/$libname.ver~ 9686 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9687 fi 9688 ;; 9689 esac 9690 else 9691 ld_shlibs=no 9692 fi 9693 ;; 9694 9695 netbsd*) 9696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9697 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9698 wlarc= 9699 else 9700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9702 fi 9703 ;; 9704 9705 solaris*) 9706 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9707 ld_shlibs=no 9708 cat <<_LT_EOF 1>&2 9709 9710*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9711*** create shared libraries on Solaris systems. Therefore, libtool 9712*** is disabling shared libraries support. We urge you to upgrade GNU 9713*** binutils to release 2.9.1 or newer. Another option is to modify 9714*** your PATH or compiler configuration so that the native linker is 9715*** used, and then restart. 9716 9717_LT_EOF 9718 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9721 else 9722 ld_shlibs=no 9723 fi 9724 ;; 9725 9726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9727 case `$LD -v 2>&1` in 9728 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9729 ld_shlibs=no 9730 cat <<_LT_EOF 1>&2 9731 9732*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9733*** reliably create shared libraries on SCO systems. Therefore, libtool 9734*** is disabling shared libraries support. We urge you to upgrade GNU 9735*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9736*** your PATH or compiler configuration so that the native linker is 9737*** used, and then restart. 9738 9739_LT_EOF 9740 ;; 9741 *) 9742 # For security reasons, it is highly recommended that you always 9743 # use absolute paths for naming shared libraries, and exclude the 9744 # DT_RUNPATH tag from executables and libraries. But doing so 9745 # requires that you compile everything twice, which is a pain. 9746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9750 else 9751 ld_shlibs=no 9752 fi 9753 ;; 9754 esac 9755 ;; 9756 9757 sunos4*) 9758 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9759 wlarc= 9760 hardcode_direct=yes 9761 hardcode_shlibpath_var=no 9762 ;; 9763 9764 *) 9765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9768 else 9769 ld_shlibs=no 9770 fi 9771 ;; 9772 esac 9773 9774 if test "$ld_shlibs" = no; then 9775 runpath_var= 9776 hardcode_libdir_flag_spec= 9777 export_dynamic_flag_spec= 9778 whole_archive_flag_spec= 9779 fi 9780 else 9781 # PORTME fill in a description of your system's linker (not GNU ld) 9782 case $host_os in 9783 aix3*) 9784 allow_undefined_flag=unsupported 9785 always_export_symbols=yes 9786 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' 9787 # Note: this linker hardcodes the directories in LIBPATH if there 9788 # are no directories specified by -L. 9789 hardcode_minus_L=yes 9790 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9791 # Neither direct hardcoding nor static linking is supported with a 9792 # broken collect2. 9793 hardcode_direct=unsupported 9794 fi 9795 ;; 9796 9797 aix[4-9]*) 9798 if test "$host_cpu" = ia64; then 9799 # On IA64, the linker does run time linking by default, so we don't 9800 # have to do anything special. 9801 aix_use_runtimelinking=no 9802 exp_sym_flag='-Bexport' 9803 no_entry_flag="" 9804 else 9805 # If we're using GNU nm, then we don't want the "-C" option. 9806 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9807 # Also, AIX nm treats weak defined symbols like other global 9808 # defined symbols, whereas GNU nm marks them as "W". 9809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9810 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' 9811 else 9812 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' 9813 fi 9814 aix_use_runtimelinking=no 9815 9816 # Test if we are trying to use run time linking or normal 9817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9818 # need to do runtime linking. 9819 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9820 for ld_flag in $LDFLAGS; do 9821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9822 aix_use_runtimelinking=yes 9823 break 9824 fi 9825 done 9826 ;; 9827 esac 9828 9829 exp_sym_flag='-bexport' 9830 no_entry_flag='-bnoentry' 9831 fi 9832 9833 # When large executables or shared objects are built, AIX ld can 9834 # have problems creating the table of contents. If linking a library 9835 # or program results in "error TOC overflow" add -mminimal-toc to 9836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9838 9839 archive_cmds='' 9840 hardcode_direct=yes 9841 hardcode_direct_absolute=yes 9842 hardcode_libdir_separator=':' 9843 link_all_deplibs=yes 9844 file_list_spec='${wl}-f,' 9845 9846 if test "$GCC" = yes; then 9847 case $host_os in aix4.[012]|aix4.[012].*) 9848 # We only want to do this on AIX 4.2 and lower, the check 9849 # below for broken collect2 doesn't work under 4.3+ 9850 collect2name=`${CC} -print-prog-name=collect2` 9851 if test -f "$collect2name" && 9852 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9853 then 9854 # We have reworked collect2 9855 : 9856 else 9857 # We have old collect2 9858 hardcode_direct=unsupported 9859 # It fails to find uninstalled libraries when the uninstalled 9860 # path is not listed in the libpath. Setting hardcode_minus_L 9861 # to unsupported forces relinking 9862 hardcode_minus_L=yes 9863 hardcode_libdir_flag_spec='-L$libdir' 9864 hardcode_libdir_separator= 9865 fi 9866 ;; 9867 esac 9868 shared_flag='-shared' 9869 if test "$aix_use_runtimelinking" = yes; then 9870 shared_flag="$shared_flag "'${wl}-G' 9871 fi 9872 else 9873 # not using gcc 9874 if test "$host_cpu" = ia64; then 9875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9876 # chokes on -Wl,-G. The following line is correct: 9877 shared_flag='-G' 9878 else 9879 if test "$aix_use_runtimelinking" = yes; then 9880 shared_flag='${wl}-G' 9881 else 9882 shared_flag='${wl}-bM:SRE' 9883 fi 9884 fi 9885 fi 9886 9887 export_dynamic_flag_spec='${wl}-bexpall' 9888 # It seems that -bexpall does not export symbols beginning with 9889 # underscore (_), so it is better to generate a list of symbols to export. 9890 always_export_symbols=yes 9891 if test "$aix_use_runtimelinking" = yes; then 9892 # Warning - without using the other runtime loading flags (-brtl), 9893 # -berok will link without error, but may produce a broken library. 9894 allow_undefined_flag='-berok' 9895 # Determine the default libpath from the value encoded in an 9896 # empty executable. 9897 if test "${lt_cv_aix_libpath+set}" = set; then 9898 aix_libpath=$lt_cv_aix_libpath 9899else 9900 if ${lt_cv_aix_libpath_+:} false; then : 9901 $as_echo_n "(cached) " >&6 9902else 9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9904/* end confdefs.h. */ 9905 9906int 9907main () 9908{ 9909 9910 ; 9911 return 0; 9912} 9913_ACEOF 9914if ac_fn_c_try_link "$LINENO"; then : 9915 9916 lt_aix_libpath_sed=' 9917 /Import File Strings/,/^$/ { 9918 /^0/ { 9919 s/^0 *\([^ ]*\) *$/\1/ 9920 p 9921 } 9922 }' 9923 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9924 # Check for a 64-bit object if we didn't find anything. 9925 if test -z "$lt_cv_aix_libpath_"; then 9926 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9927 fi 9928fi 9929rm -f core conftest.err conftest.$ac_objext \ 9930 conftest$ac_exeext conftest.$ac_ext 9931 if test -z "$lt_cv_aix_libpath_"; then 9932 lt_cv_aix_libpath_="/usr/lib:/lib" 9933 fi 9934 9935fi 9936 9937 aix_libpath=$lt_cv_aix_libpath_ 9938fi 9939 9940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9941 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" 9942 else 9943 if test "$host_cpu" = ia64; then 9944 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9945 allow_undefined_flag="-z nodefs" 9946 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" 9947 else 9948 # Determine the default libpath from the value encoded in an 9949 # empty executable. 9950 if test "${lt_cv_aix_libpath+set}" = set; then 9951 aix_libpath=$lt_cv_aix_libpath 9952else 9953 if ${lt_cv_aix_libpath_+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958 9959int 9960main () 9961{ 9962 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967if ac_fn_c_try_link "$LINENO"; then : 9968 9969 lt_aix_libpath_sed=' 9970 /Import File Strings/,/^$/ { 9971 /^0/ { 9972 s/^0 *\([^ ]*\) *$/\1/ 9973 p 9974 } 9975 }' 9976 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9977 # Check for a 64-bit object if we didn't find anything. 9978 if test -z "$lt_cv_aix_libpath_"; then 9979 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9980 fi 9981fi 9982rm -f core conftest.err conftest.$ac_objext \ 9983 conftest$ac_exeext conftest.$ac_ext 9984 if test -z "$lt_cv_aix_libpath_"; then 9985 lt_cv_aix_libpath_="/usr/lib:/lib" 9986 fi 9987 9988fi 9989 9990 aix_libpath=$lt_cv_aix_libpath_ 9991fi 9992 9993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9994 # Warning - without using the other run time loading flags, 9995 # -berok will link without error, but may produce a broken library. 9996 no_undefined_flag=' ${wl}-bernotok' 9997 allow_undefined_flag=' ${wl}-berok' 9998 if test "$with_gnu_ld" = yes; then 9999 # We only use this code for GNU lds that support --whole-archive. 10000 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10001 else 10002 # Exported symbols can be pulled into shared objects from archives 10003 whole_archive_flag_spec='$convenience' 10004 fi 10005 archive_cmds_need_lc=yes 10006 # This is similar to how AIX traditionally builds its shared libraries. 10007 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' 10008 fi 10009 fi 10010 ;; 10011 10012 amigaos*) 10013 case $host_cpu in 10014 powerpc) 10015 # see comment about AmigaOS4 .so support 10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10017 archive_expsym_cmds='' 10018 ;; 10019 m68k) 10020 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)' 10021 hardcode_libdir_flag_spec='-L$libdir' 10022 hardcode_minus_L=yes 10023 ;; 10024 esac 10025 ;; 10026 10027 bsdi[45]*) 10028 export_dynamic_flag_spec=-rdynamic 10029 ;; 10030 10031 cygwin* | mingw* | pw32* | cegcc*) 10032 # When not using gcc, we currently assume that we are using 10033 # Microsoft Visual C++. 10034 # hardcode_libdir_flag_spec is actually meaningless, as there is 10035 # no search path for DLLs. 10036 case $cc_basename in 10037 cl*) 10038 # Native MSVC 10039 hardcode_libdir_flag_spec=' ' 10040 allow_undefined_flag=unsupported 10041 always_export_symbols=yes 10042 file_list_spec='@' 10043 # Tell ltmain to make .lib files, not .a files. 10044 libext=lib 10045 # Tell ltmain to make .dll files, not .so files. 10046 shrext_cmds=".dll" 10047 # FIXME: Setting linknames here is a bad hack. 10048 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10049 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10050 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10051 else 10052 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10053 fi~ 10054 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10055 linknames=' 10056 # The linker will not automatically build a static lib if we build a DLL. 10057 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10058 enable_shared_with_static_runtimes=yes 10059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10060 # Don't use ranlib 10061 old_postinstall_cmds='chmod 644 $oldlib' 10062 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10063 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10064 case $lt_outputfile in 10065 *.exe|*.EXE) ;; 10066 *) 10067 lt_outputfile="$lt_outputfile.exe" 10068 lt_tool_outputfile="$lt_tool_outputfile.exe" 10069 ;; 10070 esac~ 10071 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10072 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10073 $RM "$lt_outputfile.manifest"; 10074 fi' 10075 ;; 10076 *) 10077 # Assume MSVC wrapper 10078 hardcode_libdir_flag_spec=' ' 10079 allow_undefined_flag=unsupported 10080 # Tell ltmain to make .lib files, not .a files. 10081 libext=lib 10082 # Tell ltmain to make .dll files, not .so files. 10083 shrext_cmds=".dll" 10084 # FIXME: Setting linknames here is a bad hack. 10085 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10086 # The linker will automatically build a .lib file if we build a DLL. 10087 old_archive_from_new_cmds='true' 10088 # FIXME: Should let the user specify the lib program. 10089 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10090 enable_shared_with_static_runtimes=yes 10091 ;; 10092 esac 10093 ;; 10094 10095 darwin* | rhapsody*) 10096 10097 10098 archive_cmds_need_lc=no 10099 hardcode_direct=no 10100 hardcode_automatic=yes 10101 hardcode_shlibpath_var=unsupported 10102 if test "$lt_cv_ld_force_load" = "yes"; then 10103 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\"`' 10104 else 10105 whole_archive_flag_spec='' 10106 fi 10107 link_all_deplibs=yes 10108 allow_undefined_flag="$_lt_dar_allow_undefined" 10109 case $cc_basename in 10110 ifort*) _lt_dar_can_shared=yes ;; 10111 *) _lt_dar_can_shared=$GCC ;; 10112 esac 10113 if test "$_lt_dar_can_shared" = "yes"; then 10114 output_verbose_link_cmd=func_echo_all 10115 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10116 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10117 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}" 10118 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}" 10119 10120 else 10121 ld_shlibs=no 10122 fi 10123 10124 ;; 10125 10126 dgux*) 10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10128 hardcode_libdir_flag_spec='-L$libdir' 10129 hardcode_shlibpath_var=no 10130 ;; 10131 10132 freebsd1*) 10133 ld_shlibs=no 10134 ;; 10135 10136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10137 # support. Future versions do this automatically, but an explicit c++rt0.o 10138 # does not break anything, and helps significantly (at the cost of a little 10139 # extra space). 10140 freebsd2.2*) 10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10142 hardcode_libdir_flag_spec='-R$libdir' 10143 hardcode_direct=yes 10144 hardcode_shlibpath_var=no 10145 ;; 10146 10147 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10148 freebsd2*) 10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10150 hardcode_direct=yes 10151 hardcode_minus_L=yes 10152 hardcode_shlibpath_var=no 10153 ;; 10154 10155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10156 freebsd* | dragonfly*) 10157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10158 hardcode_libdir_flag_spec='-R$libdir' 10159 hardcode_direct=yes 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 hpux9*) 10164 if test "$GCC" = yes; then 10165 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' 10166 else 10167 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' 10168 fi 10169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10170 hardcode_libdir_separator=: 10171 hardcode_direct=yes 10172 10173 # hardcode_minus_L: Not really in the search PATH, 10174 # but as the default location of the library. 10175 hardcode_minus_L=yes 10176 export_dynamic_flag_spec='${wl}-E' 10177 ;; 10178 10179 hpux10*) 10180 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10181 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10182 else 10183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10184 fi 10185 if test "$with_gnu_ld" = no; then 10186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10187 hardcode_libdir_flag_spec_ld='+b $libdir' 10188 hardcode_libdir_separator=: 10189 hardcode_direct=yes 10190 hardcode_direct_absolute=yes 10191 export_dynamic_flag_spec='${wl}-E' 10192 # hardcode_minus_L: Not really in the search PATH, 10193 # but as the default location of the library. 10194 hardcode_minus_L=yes 10195 fi 10196 ;; 10197 10198 hpux11*) 10199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10200 case $host_cpu in 10201 hppa*64*) 10202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10203 ;; 10204 ia64*) 10205 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10206 ;; 10207 *) 10208 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10209 ;; 10210 esac 10211 else 10212 case $host_cpu in 10213 hppa*64*) 10214 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10215 ;; 10216 ia64*) 10217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10218 ;; 10219 *) 10220 10221 # Older versions of the 11.00 compiler do not understand -b yet 10222 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10224$as_echo_n "checking if $CC understands -b... " >&6; } 10225if ${lt_cv_prog_compiler__b+:} false; then : 10226 $as_echo_n "(cached) " >&6 10227else 10228 lt_cv_prog_compiler__b=no 10229 save_LDFLAGS="$LDFLAGS" 10230 LDFLAGS="$LDFLAGS -b" 10231 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10233 # The linker can only warn and ignore the option if not recognized 10234 # So say no if there are warnings 10235 if test -s conftest.err; then 10236 # Append any errors to the config.log. 10237 cat conftest.err 1>&5 10238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10240 if diff conftest.exp conftest.er2 >/dev/null; then 10241 lt_cv_prog_compiler__b=yes 10242 fi 10243 else 10244 lt_cv_prog_compiler__b=yes 10245 fi 10246 fi 10247 $RM -r conftest* 10248 LDFLAGS="$save_LDFLAGS" 10249 10250fi 10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10252$as_echo "$lt_cv_prog_compiler__b" >&6; } 10253 10254if test x"$lt_cv_prog_compiler__b" = xyes; then 10255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10256else 10257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10258fi 10259 10260 ;; 10261 esac 10262 fi 10263 if test "$with_gnu_ld" = no; then 10264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10265 hardcode_libdir_separator=: 10266 10267 case $host_cpu in 10268 hppa*64*|ia64*) 10269 hardcode_direct=no 10270 hardcode_shlibpath_var=no 10271 ;; 10272 *) 10273 hardcode_direct=yes 10274 hardcode_direct_absolute=yes 10275 export_dynamic_flag_spec='${wl}-E' 10276 10277 # hardcode_minus_L: Not really in the search PATH, 10278 # but as the default location of the library. 10279 hardcode_minus_L=yes 10280 ;; 10281 esac 10282 fi 10283 ;; 10284 10285 irix5* | irix6* | nonstopux*) 10286 if test "$GCC" = yes; then 10287 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' 10288 # Try to use the -exported_symbol ld option, if it does not 10289 # work, assume that -exports_file does not work either and 10290 # implicitly export all symbols. 10291 # This should be the same for all languages, so no per-tag cache variable. 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10293$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10294if ${lt_cv_irix_exported_symbol+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 save_LDFLAGS="$LDFLAGS" 10298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301int foo (void) { return 0; } 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO"; then : 10304 lt_cv_irix_exported_symbol=yes 10305else 10306 lt_cv_irix_exported_symbol=no 10307fi 10308rm -f core conftest.err conftest.$ac_objext \ 10309 conftest$ac_exeext conftest.$ac_ext 10310 LDFLAGS="$save_LDFLAGS" 10311fi 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10313$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10314 if test "$lt_cv_irix_exported_symbol" = yes; then 10315 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' 10316 fi 10317 else 10318 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' 10319 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' 10320 fi 10321 archive_cmds_need_lc='no' 10322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10323 hardcode_libdir_separator=: 10324 inherit_rpath=yes 10325 link_all_deplibs=yes 10326 ;; 10327 10328 netbsd*) 10329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10331 else 10332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10333 fi 10334 hardcode_libdir_flag_spec='-R$libdir' 10335 hardcode_direct=yes 10336 hardcode_shlibpath_var=no 10337 ;; 10338 10339 newsos6) 10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10341 hardcode_direct=yes 10342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10343 hardcode_libdir_separator=: 10344 hardcode_shlibpath_var=no 10345 ;; 10346 10347 *nto* | *qnx*) 10348 ;; 10349 10350 openbsd*) 10351 if test -f /usr/libexec/ld.so; then 10352 hardcode_direct=yes 10353 hardcode_shlibpath_var=no 10354 hardcode_direct_absolute=yes 10355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10357 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10359 export_dynamic_flag_spec='${wl}-E' 10360 else 10361 case $host_os in 10362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10364 hardcode_libdir_flag_spec='-R$libdir' 10365 ;; 10366 *) 10367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10369 ;; 10370 esac 10371 fi 10372 else 10373 ld_shlibs=no 10374 fi 10375 ;; 10376 10377 os2*) 10378 hardcode_libdir_flag_spec='-L$libdir' 10379 hardcode_minus_L=yes 10380 allow_undefined_flag=unsupported 10381 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' 10382 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10383 ;; 10384 10385 osf3*) 10386 if test "$GCC" = yes; then 10387 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10388 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' 10389 else 10390 allow_undefined_flag=' -expect_unresolved \*' 10391 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' 10392 fi 10393 archive_cmds_need_lc='no' 10394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10395 hardcode_libdir_separator=: 10396 ;; 10397 10398 osf4* | osf5*) # as osf3* with the addition of -msym flag 10399 if test "$GCC" = yes; then 10400 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10401 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' 10402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10403 else 10404 allow_undefined_flag=' -expect_unresolved \*' 10405 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' 10406 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~ 10407 $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' 10408 10409 # Both c and cxx compiler support -rpath directly 10410 hardcode_libdir_flag_spec='-rpath $libdir' 10411 fi 10412 archive_cmds_need_lc='no' 10413 hardcode_libdir_separator=: 10414 ;; 10415 10416 solaris*) 10417 no_undefined_flag=' -z defs' 10418 if test "$GCC" = yes; then 10419 wlarc='${wl}' 10420 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10422 $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' 10423 else 10424 case `$CC -V 2>&1` in 10425 *"Compilers 5.0"*) 10426 wlarc='' 10427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10430 ;; 10431 *) 10432 wlarc='${wl}' 10433 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10434 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10435 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10436 ;; 10437 esac 10438 fi 10439 hardcode_libdir_flag_spec='-R$libdir' 10440 hardcode_shlibpath_var=no 10441 case $host_os in 10442 solaris2.[0-5] | solaris2.[0-5].*) ;; 10443 *) 10444 # The compiler driver will combine and reorder linker options, 10445 # but understands `-z linker_flag'. GCC discards it without `$wl', 10446 # but is careful enough not to reorder. 10447 # Supported since Solaris 2.6 (maybe 2.5.1?) 10448 if test "$GCC" = yes; then 10449 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10450 else 10451 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10452 fi 10453 ;; 10454 esac 10455 link_all_deplibs=yes 10456 ;; 10457 10458 sunos4*) 10459 if test "x$host_vendor" = xsequent; then 10460 # Use $CC to link under sequent, because it throws in some extra .o 10461 # files that make .init and .fini sections work. 10462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10463 else 10464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10465 fi 10466 hardcode_libdir_flag_spec='-L$libdir' 10467 hardcode_direct=yes 10468 hardcode_minus_L=yes 10469 hardcode_shlibpath_var=no 10470 ;; 10471 10472 sysv4) 10473 case $host_vendor in 10474 sni) 10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10476 hardcode_direct=yes # is this really true??? 10477 ;; 10478 siemens) 10479 ## LD is ld it makes a PLAMLIB 10480 ## CC just makes a GrossModule. 10481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10482 reload_cmds='$CC -r -o $output$reload_objs' 10483 hardcode_direct=no 10484 ;; 10485 motorola) 10486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10487 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10488 ;; 10489 esac 10490 runpath_var='LD_RUN_PATH' 10491 hardcode_shlibpath_var=no 10492 ;; 10493 10494 sysv4.3*) 10495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10496 hardcode_shlibpath_var=no 10497 export_dynamic_flag_spec='-Bexport' 10498 ;; 10499 10500 sysv4*MP*) 10501 if test -d /usr/nec; then 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_shlibpath_var=no 10504 runpath_var=LD_RUN_PATH 10505 hardcode_runpath_var=yes 10506 ld_shlibs=yes 10507 fi 10508 ;; 10509 10510 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10511 no_undefined_flag='${wl}-z,text' 10512 archive_cmds_need_lc=no 10513 hardcode_shlibpath_var=no 10514 runpath_var='LD_RUN_PATH' 10515 10516 if test "$GCC" = yes; then 10517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10519 else 10520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10522 fi 10523 ;; 10524 10525 sysv5* | sco3.2v5* | sco5v6*) 10526 # Note: We can NOT use -z defs as we might desire, because we do not 10527 # link with -lc, and that would cause any symbols used from libc to 10528 # always be unresolved, which means just about no library would 10529 # ever link correctly. If we're not using GNU ld we use -z text 10530 # though, which does catch some bad symbols but isn't as heavy-handed 10531 # as -z defs. 10532 no_undefined_flag='${wl}-z,text' 10533 allow_undefined_flag='${wl}-z,nodefs' 10534 archive_cmds_need_lc=no 10535 hardcode_shlibpath_var=no 10536 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10537 hardcode_libdir_separator=':' 10538 link_all_deplibs=yes 10539 export_dynamic_flag_spec='${wl}-Bexport' 10540 runpath_var='LD_RUN_PATH' 10541 10542 if test "$GCC" = yes; then 10543 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10544 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10545 else 10546 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 fi 10549 ;; 10550 10551 uts4*) 10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10553 hardcode_libdir_flag_spec='-L$libdir' 10554 hardcode_shlibpath_var=no 10555 ;; 10556 10557 *) 10558 ld_shlibs=no 10559 ;; 10560 esac 10561 10562 if test x$host_vendor = xsni; then 10563 case $host in 10564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10565 export_dynamic_flag_spec='${wl}-Blargedynsym' 10566 ;; 10567 esac 10568 fi 10569 fi 10570 10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10572$as_echo "$ld_shlibs" >&6; } 10573test "$ld_shlibs" = no && can_build_shared=no 10574 10575with_gnu_ld=$with_gnu_ld 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591# 10592# Do we need to explicitly link libc? 10593# 10594case "x$archive_cmds_need_lc" in 10595x|xyes) 10596 # Assume -lc should be added 10597 archive_cmds_need_lc=yes 10598 10599 if test "$enable_shared" = yes && test "$GCC" = yes; then 10600 case $archive_cmds in 10601 *'~'*) 10602 # FIXME: we may have to deal with multi-command sequences. 10603 ;; 10604 '$CC '*) 10605 # Test whether the compiler implicitly links with -lc since on some 10606 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10607 # to ld, don't add -lc before -lgcc. 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10609$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10610if ${lt_cv_archive_cmds_need_lc+:} false; then : 10611 $as_echo_n "(cached) " >&6 10612else 10613 $RM conftest* 10614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10615 10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10617 (eval $ac_compile) 2>&5 10618 ac_status=$? 10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10620 test $ac_status = 0; } 2>conftest.err; then 10621 soname=conftest 10622 lib=conftest 10623 libobjs=conftest.$ac_objext 10624 deplibs= 10625 wl=$lt_prog_compiler_wl 10626 pic_flag=$lt_prog_compiler_pic 10627 compiler_flags=-v 10628 linker_flags=-v 10629 verstring= 10630 output_objdir=. 10631 libname=conftest 10632 lt_save_allow_undefined_flag=$allow_undefined_flag 10633 allow_undefined_flag= 10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10635 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10636 ac_status=$? 10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10638 test $ac_status = 0; } 10639 then 10640 lt_cv_archive_cmds_need_lc=no 10641 else 10642 lt_cv_archive_cmds_need_lc=yes 10643 fi 10644 allow_undefined_flag=$lt_save_allow_undefined_flag 10645 else 10646 cat conftest.err 1>&5 10647 fi 10648 $RM conftest* 10649 10650fi 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10652$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10653 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10654 ;; 10655 esac 10656 fi 10657 ;; 10658esac 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10817$as_echo_n "checking dynamic linker characteristics... " >&6; } 10818 10819if test "$GCC" = yes; then 10820 case $host_os in 10821 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10822 *) lt_awk_arg="/^libraries:/" ;; 10823 esac 10824 case $host_os in 10825 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10826 *) lt_sed_strip_eq="s,=/,/,g" ;; 10827 esac 10828 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10829 case $lt_search_path_spec in 10830 *\;*) 10831 # if the path contains ";" then we assume it to be the separator 10832 # otherwise default to the standard path separator (i.e. ":") - it is 10833 # assumed that no part of a normal pathname contains ";" but that should 10834 # okay in the real world where ";" in dirpaths is itself problematic. 10835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10836 ;; 10837 *) 10838 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10839 ;; 10840 esac 10841 # Ok, now we have the path, separated by spaces, we can step through it 10842 # and add multilib dir if necessary. 10843 lt_tmp_lt_search_path_spec= 10844 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10845 for lt_sys_path in $lt_search_path_spec; do 10846 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10847 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10848 else 10849 test -d "$lt_sys_path" && \ 10850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10851 fi 10852 done 10853 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10854BEGIN {RS=" "; FS="/|\n";} { 10855 lt_foo=""; 10856 lt_count=0; 10857 for (lt_i = NF; lt_i > 0; lt_i--) { 10858 if ($lt_i != "" && $lt_i != ".") { 10859 if ($lt_i == "..") { 10860 lt_count++; 10861 } else { 10862 if (lt_count == 0) { 10863 lt_foo="/" $lt_i lt_foo; 10864 } else { 10865 lt_count--; 10866 } 10867 } 10868 } 10869 } 10870 if (lt_foo != "") { lt_freq[lt_foo]++; } 10871 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10872}'` 10873 # AWK program above erroneously prepends '/' to C:/dos/paths 10874 # for these hosts. 10875 case $host_os in 10876 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10877 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10878 esac 10879 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10880else 10881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10882fi 10883library_names_spec= 10884libname_spec='lib$name' 10885soname_spec= 10886shrext_cmds=".so" 10887postinstall_cmds= 10888postuninstall_cmds= 10889finish_cmds= 10890finish_eval= 10891shlibpath_var= 10892shlibpath_overrides_runpath=unknown 10893version_type=none 10894dynamic_linker="$host_os ld.so" 10895sys_lib_dlsearch_path_spec="/lib /usr/lib" 10896need_lib_prefix=unknown 10897hardcode_into_libs=no 10898 10899# when you set need_version to no, make sure it does not cause -set_version 10900# flags to be left without arguments 10901need_version=unknown 10902 10903case $host_os in 10904aix3*) 10905 version_type=linux 10906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10907 shlibpath_var=LIBPATH 10908 10909 # AIX 3 has no versioning support, so we append a major version to the name. 10910 soname_spec='${libname}${release}${shared_ext}$major' 10911 ;; 10912 10913aix[4-9]*) 10914 version_type=linux 10915 need_lib_prefix=no 10916 need_version=no 10917 hardcode_into_libs=yes 10918 if test "$host_cpu" = ia64; then 10919 # AIX 5 supports IA64 10920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10921 shlibpath_var=LD_LIBRARY_PATH 10922 else 10923 # With GCC up to 2.95.x, collect2 would create an import file 10924 # for dependence libraries. The import file would start with 10925 # the line `#! .'. This would cause the generated library to 10926 # depend on `.', always an invalid library. This was fixed in 10927 # development snapshots of GCC prior to 3.0. 10928 case $host_os in 10929 aix4 | aix4.[01] | aix4.[01].*) 10930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10931 echo ' yes ' 10932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10933 : 10934 else 10935 can_build_shared=no 10936 fi 10937 ;; 10938 esac 10939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10940 # soname into executable. Probably we can add versioning support to 10941 # collect2, so additional links can be useful in future. 10942 if test "$aix_use_runtimelinking" = yes; then 10943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10944 # instead of lib<name>.a to let people know that these are not 10945 # typical AIX shared libraries. 10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10947 else 10948 # We preserve .a as extension for shared libraries through AIX4.2 10949 # and later when we are not doing run time linking. 10950 library_names_spec='${libname}${release}.a $libname.a' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 fi 10953 shlibpath_var=LIBPATH 10954 fi 10955 ;; 10956 10957amigaos*) 10958 case $host_cpu in 10959 powerpc) 10960 # Since July 2007 AmigaOS4 officially supports .so libraries. 10961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10963 ;; 10964 m68k) 10965 library_names_spec='$libname.ixlibrary $libname.a' 10966 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10967 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' 10968 ;; 10969 esac 10970 ;; 10971 10972beos*) 10973 library_names_spec='${libname}${shared_ext}' 10974 dynamic_linker="$host_os ld.so" 10975 shlibpath_var=LIBRARY_PATH 10976 ;; 10977 10978bsdi[45]*) 10979 version_type=linux 10980 need_version=no 10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10982 soname_spec='${libname}${release}${shared_ext}$major' 10983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10987 # the default ld.so.conf also contains /usr/contrib/lib and 10988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10989 # libtool to hard-code these into programs 10990 ;; 10991 10992cygwin* | mingw* | pw32* | cegcc*) 10993 version_type=windows 10994 shrext_cmds=".dll" 10995 need_version=no 10996 need_lib_prefix=no 10997 10998 case $GCC,$cc_basename in 10999 yes,*) 11000 # gcc 11001 library_names_spec='$libname.dll.a' 11002 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11003 postinstall_cmds='base_file=`basename \${file}`~ 11004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11005 dldir=$destdir/`dirname \$dlpath`~ 11006 test -d \$dldir || mkdir -p \$dldir~ 11007 $install_prog $dir/$dlname \$dldir/$dlname~ 11008 chmod a+x \$dldir/$dlname~ 11009 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11010 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11011 fi' 11012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11013 dlpath=$dir/\$dldll~ 11014 $RM \$dlpath' 11015 shlibpath_overrides_runpath=yes 11016 11017 case $host_os in 11018 cygwin*) 11019 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11021 11022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11023 ;; 11024 mingw* | cegcc*) 11025 # MinGW DLLs use traditional 'lib' prefix 11026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11027 ;; 11028 pw32*) 11029 # pw32 DLLs use 'pw' prefix rather than 'lib' 11030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11031 ;; 11032 esac 11033 dynamic_linker='Win32 ld.exe' 11034 ;; 11035 11036 *,cl*) 11037 # Native MSVC 11038 libname_spec='$name' 11039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11040 library_names_spec='${libname}.dll.lib' 11041 11042 case $build_os in 11043 mingw*) 11044 sys_lib_search_path_spec= 11045 lt_save_ifs=$IFS 11046 IFS=';' 11047 for lt_path in $LIB 11048 do 11049 IFS=$lt_save_ifs 11050 # Let DOS variable expansion print the short 8.3 style file name. 11051 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11052 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11053 done 11054 IFS=$lt_save_ifs 11055 # Convert to MSYS style. 11056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11057 ;; 11058 cygwin*) 11059 # Convert to unix form, then to dos form, then back to unix form 11060 # but this time dos style (no spaces!) so that the unix form looks 11061 # like /cygdrive/c/PROGRA~1:/cygdr... 11062 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11063 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11064 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11065 ;; 11066 *) 11067 sys_lib_search_path_spec="$LIB" 11068 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11069 # It is most probably a Windows format PATH. 11070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11071 else 11072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11073 fi 11074 # FIXME: find the short name or the path components, as spaces are 11075 # common. (e.g. "Program Files" -> "PROGRA~1") 11076 ;; 11077 esac 11078 11079 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11080 postinstall_cmds='base_file=`basename \${file}`~ 11081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11082 dldir=$destdir/`dirname \$dlpath`~ 11083 test -d \$dldir || mkdir -p \$dldir~ 11084 $install_prog $dir/$dlname \$dldir/$dlname' 11085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11086 dlpath=$dir/\$dldll~ 11087 $RM \$dlpath' 11088 shlibpath_overrides_runpath=yes 11089 dynamic_linker='Win32 link.exe' 11090 ;; 11091 11092 *) 11093 # Assume MSVC wrapper 11094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11095 dynamic_linker='Win32 ld.exe' 11096 ;; 11097 esac 11098 # FIXME: first we should search . and the directory the executable is in 11099 shlibpath_var=PATH 11100 ;; 11101 11102darwin* | rhapsody*) 11103 dynamic_linker="$host_os dyld" 11104 version_type=darwin 11105 need_lib_prefix=no 11106 need_version=no 11107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11108 soname_spec='${libname}${release}${major}$shared_ext' 11109 shlibpath_overrides_runpath=yes 11110 shlibpath_var=DYLD_LIBRARY_PATH 11111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11112 11113 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11115 ;; 11116 11117dgux*) 11118 version_type=linux 11119 need_lib_prefix=no 11120 need_version=no 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 ;; 11125 11126freebsd1*) 11127 dynamic_linker=no 11128 ;; 11129 11130freebsd* | dragonfly*) 11131 # DragonFly does not have aout. When/if they implement a new 11132 # versioning mechanism, adjust this. 11133 if test -x /usr/bin/objformat; then 11134 objformat=`/usr/bin/objformat` 11135 else 11136 case $host_os in 11137 freebsd[123]*) objformat=aout ;; 11138 *) objformat=elf ;; 11139 esac 11140 fi 11141 version_type=freebsd-$objformat 11142 case $version_type in 11143 freebsd-elf*) 11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11145 need_version=no 11146 need_lib_prefix=no 11147 ;; 11148 freebsd-*) 11149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11150 need_version=yes 11151 ;; 11152 esac 11153 shlibpath_var=LD_LIBRARY_PATH 11154 case $host_os in 11155 freebsd2*) 11156 shlibpath_overrides_runpath=yes 11157 ;; 11158 freebsd3.[01]* | freebsdelf3.[01]*) 11159 shlibpath_overrides_runpath=yes 11160 hardcode_into_libs=yes 11161 ;; 11162 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11163 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11164 shlibpath_overrides_runpath=no 11165 hardcode_into_libs=yes 11166 ;; 11167 *) # from 4.6 on, and DragonFly 11168 shlibpath_overrides_runpath=yes 11169 hardcode_into_libs=yes 11170 ;; 11171 esac 11172 ;; 11173 11174gnu*) 11175 version_type=linux 11176 need_lib_prefix=no 11177 need_version=no 11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11179 soname_spec='${libname}${release}${shared_ext}$major' 11180 shlibpath_var=LD_LIBRARY_PATH 11181 hardcode_into_libs=yes 11182 ;; 11183 11184haiku*) 11185 version_type=linux 11186 need_lib_prefix=no 11187 need_version=no 11188 dynamic_linker="$host_os runtime_loader" 11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11190 soname_spec='${libname}${release}${shared_ext}$major' 11191 shlibpath_var=LIBRARY_PATH 11192 shlibpath_overrides_runpath=yes 11193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11194 hardcode_into_libs=yes 11195 ;; 11196 11197hpux9* | hpux10* | hpux11*) 11198 # Give a soname corresponding to the major version so that dld.sl refuses to 11199 # link against other versions. 11200 version_type=sunos 11201 need_lib_prefix=no 11202 need_version=no 11203 case $host_cpu in 11204 ia64*) 11205 shrext_cmds='.so' 11206 hardcode_into_libs=yes 11207 dynamic_linker="$host_os dld.so" 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 11213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11214 else 11215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11216 fi 11217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11218 ;; 11219 hppa*64*) 11220 shrext_cmds='.sl' 11221 hardcode_into_libs=yes 11222 dynamic_linker="$host_os dld.sl" 11223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11226 soname_spec='${libname}${release}${shared_ext}$major' 11227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11229 ;; 11230 *) 11231 shrext_cmds='.sl' 11232 dynamic_linker="$host_os dld.sl" 11233 shlibpath_var=SHLIB_PATH 11234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11236 soname_spec='${libname}${release}${shared_ext}$major' 11237 ;; 11238 esac 11239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11240 postinstall_cmds='chmod 555 $lib' 11241 # or fails outright, so override atomically: 11242 install_override_mode=555 11243 ;; 11244 11245interix[3-9]*) 11246 version_type=linux 11247 need_lib_prefix=no 11248 need_version=no 11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11250 soname_spec='${libname}${release}${shared_ext}$major' 11251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11252 shlibpath_var=LD_LIBRARY_PATH 11253 shlibpath_overrides_runpath=no 11254 hardcode_into_libs=yes 11255 ;; 11256 11257irix5* | irix6* | nonstopux*) 11258 case $host_os in 11259 nonstopux*) version_type=nonstopux ;; 11260 *) 11261 if test "$lt_cv_prog_gnu_ld" = yes; then 11262 version_type=linux 11263 else 11264 version_type=irix 11265 fi ;; 11266 esac 11267 need_lib_prefix=no 11268 need_version=no 11269 soname_spec='${libname}${release}${shared_ext}$major' 11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11271 case $host_os in 11272 irix5* | nonstopux*) 11273 libsuff= shlibsuff= 11274 ;; 11275 *) 11276 case $LD in # libtool.m4 will add one of these switches to LD 11277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11278 libsuff= shlibsuff= libmagic=32-bit;; 11279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11280 libsuff=32 shlibsuff=N32 libmagic=N32;; 11281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11282 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11283 *) libsuff= shlibsuff= libmagic=never-match;; 11284 esac 11285 ;; 11286 esac 11287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11288 shlibpath_overrides_runpath=no 11289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11291 hardcode_into_libs=yes 11292 ;; 11293 11294# No shared lib support for Linux oldld, aout, or coff. 11295linux*oldld* | linux*aout* | linux*coff*) 11296 dynamic_linker=no 11297 ;; 11298 11299# This must be Linux ELF. 11300linux* | k*bsd*-gnu | kopensolaris*-gnu) 11301 version_type=linux 11302 need_lib_prefix=no 11303 need_version=no 11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11305 soname_spec='${libname}${release}${shared_ext}$major' 11306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11307 shlibpath_var=LD_LIBRARY_PATH 11308 shlibpath_overrides_runpath=no 11309 11310 # Some binutils ld are patched to set DT_RUNPATH 11311 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11312 $as_echo_n "(cached) " >&6 11313else 11314 lt_cv_shlibpath_overrides_runpath=no 11315 save_LDFLAGS=$LDFLAGS 11316 save_libdir=$libdir 11317 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11318 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320/* end confdefs.h. */ 11321 11322int 11323main () 11324{ 11325 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_c_try_link "$LINENO"; then : 11331 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11332 lt_cv_shlibpath_overrides_runpath=yes 11333fi 11334fi 11335rm -f core conftest.err conftest.$ac_objext \ 11336 conftest$ac_exeext conftest.$ac_ext 11337 LDFLAGS=$save_LDFLAGS 11338 libdir=$save_libdir 11339 11340fi 11341 11342 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11343 11344 # This implies no fast_install, which is unacceptable. 11345 # Some rework will be needed to allow for fast_install 11346 # before this can be enabled. 11347 hardcode_into_libs=yes 11348 11349 # Append ld.so.conf contents to the search path 11350 if test -f /etc/ld.so.conf; then 11351 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' ' '` 11352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11353 fi 11354 11355 # We used to test for /lib/ld.so.1 and disable shared libraries on 11356 # powerpc, because MkLinux only supported shared libraries with the 11357 # GNU dynamic linker. Since this was broken with cross compilers, 11358 # most powerpc-linux boxes support dynamic linking these days and 11359 # people can always --disable-shared, the test was removed, and we 11360 # assume the GNU/Linux dynamic linker is in use. 11361 dynamic_linker='GNU/Linux ld.so' 11362 ;; 11363 11364netbsd*) 11365 version_type=sunos 11366 need_lib_prefix=no 11367 need_version=no 11368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11371 dynamic_linker='NetBSD (a.out) ld.so' 11372 else 11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11374 soname_spec='${libname}${release}${shared_ext}$major' 11375 dynamic_linker='NetBSD ld.elf_so' 11376 fi 11377 shlibpath_var=LD_LIBRARY_PATH 11378 shlibpath_overrides_runpath=yes 11379 hardcode_into_libs=yes 11380 ;; 11381 11382newsos6) 11383 version_type=linux 11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11385 shlibpath_var=LD_LIBRARY_PATH 11386 shlibpath_overrides_runpath=yes 11387 ;; 11388 11389*nto* | *qnx*) 11390 version_type=qnx 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11394 soname_spec='${libname}${release}${shared_ext}$major' 11395 shlibpath_var=LD_LIBRARY_PATH 11396 shlibpath_overrides_runpath=no 11397 hardcode_into_libs=yes 11398 dynamic_linker='ldqnx.so' 11399 ;; 11400 11401openbsd*) 11402 version_type=sunos 11403 sys_lib_dlsearch_path_spec="/usr/lib" 11404 need_lib_prefix=no 11405 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11406 case $host_os in 11407 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11408 *) need_version=no ;; 11409 esac 11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11412 shlibpath_var=LD_LIBRARY_PATH 11413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11414 case $host_os in 11415 openbsd2.[89] | openbsd2.[89].*) 11416 shlibpath_overrides_runpath=no 11417 ;; 11418 *) 11419 shlibpath_overrides_runpath=yes 11420 ;; 11421 esac 11422 else 11423 shlibpath_overrides_runpath=yes 11424 fi 11425 ;; 11426 11427os2*) 11428 libname_spec='$name' 11429 shrext_cmds=".dll" 11430 need_lib_prefix=no 11431 library_names_spec='$libname${shared_ext} $libname.a' 11432 dynamic_linker='OS/2 ld.exe' 11433 shlibpath_var=LIBPATH 11434 ;; 11435 11436osf3* | osf4* | osf5*) 11437 version_type=osf 11438 need_lib_prefix=no 11439 need_version=no 11440 soname_spec='${libname}${release}${shared_ext}$major' 11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11442 shlibpath_var=LD_LIBRARY_PATH 11443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11445 ;; 11446 11447rdos*) 11448 dynamic_linker=no 11449 ;; 11450 11451solaris*) 11452 version_type=linux 11453 need_lib_prefix=no 11454 need_version=no 11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11456 soname_spec='${libname}${release}${shared_ext}$major' 11457 shlibpath_var=LD_LIBRARY_PATH 11458 shlibpath_overrides_runpath=yes 11459 hardcode_into_libs=yes 11460 # ldd complains unless libraries are executable 11461 postinstall_cmds='chmod +x $lib' 11462 ;; 11463 11464sunos4*) 11465 version_type=sunos 11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 shlibpath_overrides_runpath=yes 11470 if test "$with_gnu_ld" = yes; then 11471 need_lib_prefix=no 11472 fi 11473 need_version=yes 11474 ;; 11475 11476sysv4 | sysv4.3*) 11477 version_type=linux 11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11479 soname_spec='${libname}${release}${shared_ext}$major' 11480 shlibpath_var=LD_LIBRARY_PATH 11481 case $host_vendor in 11482 sni) 11483 shlibpath_overrides_runpath=no 11484 need_lib_prefix=no 11485 runpath_var=LD_RUN_PATH 11486 ;; 11487 siemens) 11488 need_lib_prefix=no 11489 ;; 11490 motorola) 11491 need_lib_prefix=no 11492 need_version=no 11493 shlibpath_overrides_runpath=no 11494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11495 ;; 11496 esac 11497 ;; 11498 11499sysv4*MP*) 11500 if test -d /usr/nec ;then 11501 version_type=linux 11502 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11503 soname_spec='$libname${shared_ext}.$major' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 fi 11506 ;; 11507 11508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11509 version_type=freebsd-elf 11510 need_lib_prefix=no 11511 need_version=no 11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11513 soname_spec='${libname}${release}${shared_ext}$major' 11514 shlibpath_var=LD_LIBRARY_PATH 11515 shlibpath_overrides_runpath=yes 11516 hardcode_into_libs=yes 11517 if test "$with_gnu_ld" = yes; then 11518 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11519 else 11520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11521 case $host_os in 11522 sco3.2v5*) 11523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11524 ;; 11525 esac 11526 fi 11527 sys_lib_dlsearch_path_spec='/usr/lib' 11528 ;; 11529 11530tpf*) 11531 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11532 version_type=linux 11533 need_lib_prefix=no 11534 need_version=no 11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11536 shlibpath_var=LD_LIBRARY_PATH 11537 shlibpath_overrides_runpath=no 11538 hardcode_into_libs=yes 11539 ;; 11540 11541uts4*) 11542 version_type=linux 11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11544 soname_spec='${libname}${release}${shared_ext}$major' 11545 shlibpath_var=LD_LIBRARY_PATH 11546 ;; 11547 11548*) 11549 dynamic_linker=no 11550 ;; 11551esac 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11553$as_echo "$dynamic_linker" >&6; } 11554test "$dynamic_linker" = no && can_build_shared=no 11555 11556variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11557if test "$GCC" = yes; then 11558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11559fi 11560 11561if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11562 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11563fi 11564if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11566fi 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11660$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11661hardcode_action= 11662if test -n "$hardcode_libdir_flag_spec" || 11663 test -n "$runpath_var" || 11664 test "X$hardcode_automatic" = "Xyes" ; then 11665 11666 # We can hardcode non-existent directories. 11667 if test "$hardcode_direct" != no && 11668 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11669 # have to relink, otherwise we might link with an installed library 11670 # when we should be linking with a yet-to-be-installed one 11671 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11672 test "$hardcode_minus_L" != no; then 11673 # Linking always hardcodes the temporary library directory. 11674 hardcode_action=relink 11675 else 11676 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11677 hardcode_action=immediate 11678 fi 11679else 11680 # We cannot hardcode anything, or else we can only hardcode existing 11681 # directories. 11682 hardcode_action=unsupported 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11685$as_echo "$hardcode_action" >&6; } 11686 11687if test "$hardcode_action" = relink || 11688 test "$inherit_rpath" = yes; then 11689 # Fast installation is not supported 11690 enable_fast_install=no 11691elif test "$shlibpath_overrides_runpath" = yes || 11692 test "$enable_shared" = no; then 11693 # Fast installation is not necessary 11694 enable_fast_install=needless 11695fi 11696 11697 11698 11699 11700 11701 11702 if test "x$enable_dlopen" != xyes; then 11703 enable_dlopen=unknown 11704 enable_dlopen_self=unknown 11705 enable_dlopen_self_static=unknown 11706else 11707 lt_cv_dlopen=no 11708 lt_cv_dlopen_libs= 11709 11710 case $host_os in 11711 beos*) 11712 lt_cv_dlopen="load_add_on" 11713 lt_cv_dlopen_libs= 11714 lt_cv_dlopen_self=yes 11715 ;; 11716 11717 mingw* | pw32* | cegcc*) 11718 lt_cv_dlopen="LoadLibrary" 11719 lt_cv_dlopen_libs= 11720 ;; 11721 11722 cygwin*) 11723 lt_cv_dlopen="dlopen" 11724 lt_cv_dlopen_libs= 11725 ;; 11726 11727 darwin*) 11728 # if libdl is installed we need to link against it 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11730$as_echo_n "checking for dlopen in -ldl... " >&6; } 11731if ${ac_cv_lib_dl_dlopen+:} false; then : 11732 $as_echo_n "(cached) " >&6 11733else 11734 ac_check_lib_save_LIBS=$LIBS 11735LIBS="-ldl $LIBS" 11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738 11739/* Override any GCC internal prototype to avoid an error. 11740 Use char because int might match the return type of a GCC 11741 builtin and then its argument prototype would still apply. */ 11742#ifdef __cplusplus 11743extern "C" 11744#endif 11745char dlopen (); 11746int 11747main () 11748{ 11749return dlopen (); 11750 ; 11751 return 0; 11752} 11753_ACEOF 11754if ac_fn_c_try_link "$LINENO"; then : 11755 ac_cv_lib_dl_dlopen=yes 11756else 11757 ac_cv_lib_dl_dlopen=no 11758fi 11759rm -f core conftest.err conftest.$ac_objext \ 11760 conftest$ac_exeext conftest.$ac_ext 11761LIBS=$ac_check_lib_save_LIBS 11762fi 11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11764$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11765if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11767else 11768 11769 lt_cv_dlopen="dyld" 11770 lt_cv_dlopen_libs= 11771 lt_cv_dlopen_self=yes 11772 11773fi 11774 11775 ;; 11776 11777 *) 11778 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11779if test "x$ac_cv_func_shl_load" = xyes; then : 11780 lt_cv_dlopen="shl_load" 11781else 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11783$as_echo_n "checking for shl_load in -ldld... " >&6; } 11784if ${ac_cv_lib_dld_shl_load+:} false; then : 11785 $as_echo_n "(cached) " >&6 11786else 11787 ac_check_lib_save_LIBS=$LIBS 11788LIBS="-ldld $LIBS" 11789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11790/* end confdefs.h. */ 11791 11792/* Override any GCC internal prototype to avoid an error. 11793 Use char because int might match the return type of a GCC 11794 builtin and then its argument prototype would still apply. */ 11795#ifdef __cplusplus 11796extern "C" 11797#endif 11798char shl_load (); 11799int 11800main () 11801{ 11802return shl_load (); 11803 ; 11804 return 0; 11805} 11806_ACEOF 11807if ac_fn_c_try_link "$LINENO"; then : 11808 ac_cv_lib_dld_shl_load=yes 11809else 11810 ac_cv_lib_dld_shl_load=no 11811fi 11812rm -f core conftest.err conftest.$ac_objext \ 11813 conftest$ac_exeext conftest.$ac_ext 11814LIBS=$ac_check_lib_save_LIBS 11815fi 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11817$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11818if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11819 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11820else 11821 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11822if test "x$ac_cv_func_dlopen" = xyes; then : 11823 lt_cv_dlopen="dlopen" 11824else 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11826$as_echo_n "checking for dlopen in -ldl... " >&6; } 11827if ${ac_cv_lib_dl_dlopen+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 ac_check_lib_save_LIBS=$LIBS 11831LIBS="-ldl $LIBS" 11832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11833/* end confdefs.h. */ 11834 11835/* Override any GCC internal prototype to avoid an error. 11836 Use char because int might match the return type of a GCC 11837 builtin and then its argument prototype would still apply. */ 11838#ifdef __cplusplus 11839extern "C" 11840#endif 11841char dlopen (); 11842int 11843main () 11844{ 11845return dlopen (); 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850if ac_fn_c_try_link "$LINENO"; then : 11851 ac_cv_lib_dl_dlopen=yes 11852else 11853 ac_cv_lib_dl_dlopen=no 11854fi 11855rm -f core conftest.err conftest.$ac_objext \ 11856 conftest$ac_exeext conftest.$ac_ext 11857LIBS=$ac_check_lib_save_LIBS 11858fi 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11860$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11861if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11863else 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11865$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11866if ${ac_cv_lib_svld_dlopen+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 ac_check_lib_save_LIBS=$LIBS 11870LIBS="-lsvld $LIBS" 11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11872/* end confdefs.h. */ 11873 11874/* Override any GCC internal prototype to avoid an error. 11875 Use char because int might match the return type of a GCC 11876 builtin and then its argument prototype would still apply. */ 11877#ifdef __cplusplus 11878extern "C" 11879#endif 11880char dlopen (); 11881int 11882main () 11883{ 11884return dlopen (); 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889if ac_fn_c_try_link "$LINENO"; then : 11890 ac_cv_lib_svld_dlopen=yes 11891else 11892 ac_cv_lib_svld_dlopen=no 11893fi 11894rm -f core conftest.err conftest.$ac_objext \ 11895 conftest$ac_exeext conftest.$ac_ext 11896LIBS=$ac_check_lib_save_LIBS 11897fi 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11899$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11900if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11904$as_echo_n "checking for dld_link in -ldld... " >&6; } 11905if ${ac_cv_lib_dld_dld_link+:} false; then : 11906 $as_echo_n "(cached) " >&6 11907else 11908 ac_check_lib_save_LIBS=$LIBS 11909LIBS="-ldld $LIBS" 11910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912 11913/* Override any GCC internal prototype to avoid an error. 11914 Use char because int might match the return type of a GCC 11915 builtin and then its argument prototype would still apply. */ 11916#ifdef __cplusplus 11917extern "C" 11918#endif 11919char dld_link (); 11920int 11921main () 11922{ 11923return dld_link (); 11924 ; 11925 return 0; 11926} 11927_ACEOF 11928if ac_fn_c_try_link "$LINENO"; then : 11929 ac_cv_lib_dld_dld_link=yes 11930else 11931 ac_cv_lib_dld_dld_link=no 11932fi 11933rm -f core conftest.err conftest.$ac_objext \ 11934 conftest$ac_exeext conftest.$ac_ext 11935LIBS=$ac_check_lib_save_LIBS 11936fi 11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11938$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11939if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11940 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11941fi 11942 11943 11944fi 11945 11946 11947fi 11948 11949 11950fi 11951 11952 11953fi 11954 11955 11956fi 11957 11958 ;; 11959 esac 11960 11961 if test "x$lt_cv_dlopen" != xno; then 11962 enable_dlopen=yes 11963 else 11964 enable_dlopen=no 11965 fi 11966 11967 case $lt_cv_dlopen in 11968 dlopen) 11969 save_CPPFLAGS="$CPPFLAGS" 11970 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11971 11972 save_LDFLAGS="$LDFLAGS" 11973 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11974 11975 save_LIBS="$LIBS" 11976 LIBS="$lt_cv_dlopen_libs $LIBS" 11977 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11979$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11980if ${lt_cv_dlopen_self+:} false; then : 11981 $as_echo_n "(cached) " >&6 11982else 11983 if test "$cross_compiling" = yes; then : 11984 lt_cv_dlopen_self=cross 11985else 11986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11987 lt_status=$lt_dlunknown 11988 cat > conftest.$ac_ext <<_LT_EOF 11989#line $LINENO "configure" 11990#include "confdefs.h" 11991 11992#if HAVE_DLFCN_H 11993#include <dlfcn.h> 11994#endif 11995 11996#include <stdio.h> 11997 11998#ifdef RTLD_GLOBAL 11999# define LT_DLGLOBAL RTLD_GLOBAL 12000#else 12001# ifdef DL_GLOBAL 12002# define LT_DLGLOBAL DL_GLOBAL 12003# else 12004# define LT_DLGLOBAL 0 12005# endif 12006#endif 12007 12008/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12009 find out it does not work in some platform. */ 12010#ifndef LT_DLLAZY_OR_NOW 12011# ifdef RTLD_LAZY 12012# define LT_DLLAZY_OR_NOW RTLD_LAZY 12013# else 12014# ifdef DL_LAZY 12015# define LT_DLLAZY_OR_NOW DL_LAZY 12016# else 12017# ifdef RTLD_NOW 12018# define LT_DLLAZY_OR_NOW RTLD_NOW 12019# else 12020# ifdef DL_NOW 12021# define LT_DLLAZY_OR_NOW DL_NOW 12022# else 12023# define LT_DLLAZY_OR_NOW 0 12024# endif 12025# endif 12026# endif 12027# endif 12028#endif 12029 12030/* When -fvisbility=hidden is used, assume the code has been annotated 12031 correspondingly for the symbols needed. */ 12032#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12033int fnord () __attribute__((visibility("default"))); 12034#endif 12035 12036int fnord () { return 42; } 12037int main () 12038{ 12039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12040 int status = $lt_dlunknown; 12041 12042 if (self) 12043 { 12044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12045 else 12046 { 12047 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12048 else puts (dlerror ()); 12049 } 12050 /* dlclose (self); */ 12051 } 12052 else 12053 puts (dlerror ()); 12054 12055 return status; 12056} 12057_LT_EOF 12058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12059 (eval $ac_link) 2>&5 12060 ac_status=$? 12061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12062 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12063 (./conftest; exit; ) >&5 2>/dev/null 12064 lt_status=$? 12065 case x$lt_status in 12066 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12067 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12068 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12069 esac 12070 else : 12071 # compilation failed 12072 lt_cv_dlopen_self=no 12073 fi 12074fi 12075rm -fr conftest* 12076 12077 12078fi 12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12080$as_echo "$lt_cv_dlopen_self" >&6; } 12081 12082 if test "x$lt_cv_dlopen_self" = xyes; then 12083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12085$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12086if ${lt_cv_dlopen_self_static+:} false; then : 12087 $as_echo_n "(cached) " >&6 12088else 12089 if test "$cross_compiling" = yes; then : 12090 lt_cv_dlopen_self_static=cross 12091else 12092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12093 lt_status=$lt_dlunknown 12094 cat > conftest.$ac_ext <<_LT_EOF 12095#line $LINENO "configure" 12096#include "confdefs.h" 12097 12098#if HAVE_DLFCN_H 12099#include <dlfcn.h> 12100#endif 12101 12102#include <stdio.h> 12103 12104#ifdef RTLD_GLOBAL 12105# define LT_DLGLOBAL RTLD_GLOBAL 12106#else 12107# ifdef DL_GLOBAL 12108# define LT_DLGLOBAL DL_GLOBAL 12109# else 12110# define LT_DLGLOBAL 0 12111# endif 12112#endif 12113 12114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12115 find out it does not work in some platform. */ 12116#ifndef LT_DLLAZY_OR_NOW 12117# ifdef RTLD_LAZY 12118# define LT_DLLAZY_OR_NOW RTLD_LAZY 12119# else 12120# ifdef DL_LAZY 12121# define LT_DLLAZY_OR_NOW DL_LAZY 12122# else 12123# ifdef RTLD_NOW 12124# define LT_DLLAZY_OR_NOW RTLD_NOW 12125# else 12126# ifdef DL_NOW 12127# define LT_DLLAZY_OR_NOW DL_NOW 12128# else 12129# define LT_DLLAZY_OR_NOW 0 12130# endif 12131# endif 12132# endif 12133# endif 12134#endif 12135 12136/* When -fvisbility=hidden is used, assume the code has been annotated 12137 correspondingly for the symbols needed. */ 12138#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12139int fnord () __attribute__((visibility("default"))); 12140#endif 12141 12142int fnord () { return 42; } 12143int main () 12144{ 12145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12146 int status = $lt_dlunknown; 12147 12148 if (self) 12149 { 12150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12151 else 12152 { 12153 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12154 else puts (dlerror ()); 12155 } 12156 /* dlclose (self); */ 12157 } 12158 else 12159 puts (dlerror ()); 12160 12161 return status; 12162} 12163_LT_EOF 12164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12165 (eval $ac_link) 2>&5 12166 ac_status=$? 12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12168 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12169 (./conftest; exit; ) >&5 2>/dev/null 12170 lt_status=$? 12171 case x$lt_status in 12172 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12173 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12174 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12175 esac 12176 else : 12177 # compilation failed 12178 lt_cv_dlopen_self_static=no 12179 fi 12180fi 12181rm -fr conftest* 12182 12183 12184fi 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12186$as_echo "$lt_cv_dlopen_self_static" >&6; } 12187 fi 12188 12189 CPPFLAGS="$save_CPPFLAGS" 12190 LDFLAGS="$save_LDFLAGS" 12191 LIBS="$save_LIBS" 12192 ;; 12193 esac 12194 12195 case $lt_cv_dlopen_self in 12196 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12197 *) enable_dlopen_self=unknown ;; 12198 esac 12199 12200 case $lt_cv_dlopen_self_static in 12201 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12202 *) enable_dlopen_self_static=unknown ;; 12203 esac 12204fi 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222striplib= 12223old_striplib= 12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12225$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12226if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12227 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12228 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12230$as_echo "yes" >&6; } 12231else 12232# FIXME - insert some real tests, host_os isn't really good enough 12233 case $host_os in 12234 darwin*) 12235 if test -n "$STRIP" ; then 12236 striplib="$STRIP -x" 12237 old_striplib="$STRIP -S" 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12239$as_echo "yes" >&6; } 12240 else 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12242$as_echo "no" >&6; } 12243 fi 12244 ;; 12245 *) 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12247$as_echo "no" >&6; } 12248 ;; 12249 esac 12250fi 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 # Report which library types will actually be built 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12265$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12267$as_echo "$can_build_shared" >&6; } 12268 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12270$as_echo_n "checking whether to build shared libraries... " >&6; } 12271 test "$can_build_shared" = "no" && enable_shared=no 12272 12273 # On AIX, shared libraries and static libraries use the same namespace, and 12274 # are all built from PIC. 12275 case $host_os in 12276 aix3*) 12277 test "$enable_shared" = yes && enable_static=no 12278 if test -n "$RANLIB"; then 12279 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12280 postinstall_cmds='$RANLIB $lib' 12281 fi 12282 ;; 12283 12284 aix[4-9]*) 12285 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12286 test "$enable_shared" = yes && enable_static=no 12287 fi 12288 ;; 12289 esac 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12291$as_echo "$enable_shared" >&6; } 12292 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12294$as_echo_n "checking whether to build static libraries... " >&6; } 12295 # Make sure either enable_shared or enable_static is yes. 12296 test "$enable_shared" = yes || enable_static=yes 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12298$as_echo "$enable_static" >&6; } 12299 12300 12301 12302 12303fi 12304ac_ext=c 12305ac_cpp='$CPP $CPPFLAGS' 12306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12308ac_compiler_gnu=$ac_cv_c_compiler_gnu 12309 12310CC="$lt_save_CC" 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 ac_config_commands="$ac_config_commands libtool" 12325 12326 12327 12328 12329# Only expand once: 12330 12331 12332ac_ext=cpp 12333ac_cpp='$CXXCPP $CPPFLAGS' 12334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12337if test -z "$CXX"; then 12338 if test -n "$CCC"; then 12339 CXX=$CCC 12340 else 12341 if test -n "$ac_tool_prefix"; then 12342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12343 do 12344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12345set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12347$as_echo_n "checking for $ac_word... " >&6; } 12348if ${ac_cv_prog_CXX+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 if test -n "$CXX"; then 12352 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12353else 12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355for as_dir in $PATH 12356do 12357 IFS=$as_save_IFS 12358 test -z "$as_dir" && as_dir=. 12359 for ac_exec_ext in '' $ac_executable_extensions; do 12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12363 break 2 12364 fi 12365done 12366 done 12367IFS=$as_save_IFS 12368 12369fi 12370fi 12371CXX=$ac_cv_prog_CXX 12372if test -n "$CXX"; then 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12374$as_echo "$CXX" >&6; } 12375else 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12377$as_echo "no" >&6; } 12378fi 12379 12380 12381 test -n "$CXX" && break 12382 done 12383fi 12384if test -z "$CXX"; then 12385 ac_ct_CXX=$CXX 12386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12387do 12388 # Extract the first word of "$ac_prog", so it can be a program name with args. 12389set dummy $ac_prog; ac_word=$2 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12391$as_echo_n "checking for $ac_word... " >&6; } 12392if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 if test -n "$ac_ct_CXX"; then 12396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12397else 12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12399for as_dir in $PATH 12400do 12401 IFS=$as_save_IFS 12402 test -z "$as_dir" && as_dir=. 12403 for ac_exec_ext in '' $ac_executable_extensions; do 12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12405 ac_cv_prog_ac_ct_CXX="$ac_prog" 12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12407 break 2 12408 fi 12409done 12410 done 12411IFS=$as_save_IFS 12412 12413fi 12414fi 12415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12416if test -n "$ac_ct_CXX"; then 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12418$as_echo "$ac_ct_CXX" >&6; } 12419else 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12421$as_echo "no" >&6; } 12422fi 12423 12424 12425 test -n "$ac_ct_CXX" && break 12426done 12427 12428 if test "x$ac_ct_CXX" = x; then 12429 CXX="g++" 12430 else 12431 case $cross_compiling:$ac_tool_warned in 12432yes:) 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12435ac_tool_warned=yes ;; 12436esac 12437 CXX=$ac_ct_CXX 12438 fi 12439fi 12440 12441 fi 12442fi 12443# Provide some information about the compiler. 12444$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12445set X $ac_compile 12446ac_compiler=$2 12447for ac_option in --version -v -V -qversion; do 12448 { { ac_try="$ac_compiler $ac_option >&5" 12449case "(($ac_try" in 12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12451 *) ac_try_echo=$ac_try;; 12452esac 12453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12454$as_echo "$ac_try_echo"; } >&5 12455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12456 ac_status=$? 12457 if test -s conftest.err; then 12458 sed '10a\ 12459... rest of stderr output deleted ... 12460 10q' conftest.err >conftest.er1 12461 cat conftest.er1 >&5 12462 fi 12463 rm -f conftest.er1 conftest.err 12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12465 test $ac_status = 0; } 12466done 12467 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12469$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12470if ${ac_cv_cxx_compiler_gnu+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472else 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12474/* end confdefs.h. */ 12475 12476int 12477main () 12478{ 12479#ifndef __GNUC__ 12480 choke me 12481#endif 12482 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_cxx_try_compile "$LINENO"; then : 12488 ac_compiler_gnu=yes 12489else 12490 ac_compiler_gnu=no 12491fi 12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12493ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12494 12495fi 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12497$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12498if test $ac_compiler_gnu = yes; then 12499 GXX=yes 12500else 12501 GXX= 12502fi 12503ac_test_CXXFLAGS=${CXXFLAGS+set} 12504ac_save_CXXFLAGS=$CXXFLAGS 12505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12506$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12507if ${ac_cv_prog_cxx_g+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12511 ac_cxx_werror_flag=yes 12512 ac_cv_prog_cxx_g=no 12513 CXXFLAGS="-g" 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517int 12518main () 12519{ 12520 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525if ac_fn_cxx_try_compile "$LINENO"; then : 12526 ac_cv_prog_cxx_g=yes 12527else 12528 CXXFLAGS="" 12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531 12532int 12533main () 12534{ 12535 12536 ; 12537 return 0; 12538} 12539_ACEOF 12540if ac_fn_cxx_try_compile "$LINENO"; then : 12541 12542else 12543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12544 CXXFLAGS="-g" 12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12546/* end confdefs.h. */ 12547 12548int 12549main () 12550{ 12551 12552 ; 12553 return 0; 12554} 12555_ACEOF 12556if ac_fn_cxx_try_compile "$LINENO"; then : 12557 ac_cv_prog_cxx_g=yes 12558fi 12559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12560fi 12561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12562fi 12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12565fi 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12567$as_echo "$ac_cv_prog_cxx_g" >&6; } 12568if test "$ac_test_CXXFLAGS" = set; then 12569 CXXFLAGS=$ac_save_CXXFLAGS 12570elif test $ac_cv_prog_cxx_g = yes; then 12571 if test "$GXX" = yes; then 12572 CXXFLAGS="-g -O2" 12573 else 12574 CXXFLAGS="-g" 12575 fi 12576else 12577 if test "$GXX" = yes; then 12578 CXXFLAGS="-O2" 12579 else 12580 CXXFLAGS= 12581 fi 12582fi 12583ac_ext=c 12584ac_cpp='$CPP $CPPFLAGS' 12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12587ac_compiler_gnu=$ac_cv_c_compiler_gnu 12588 12589depcc="$CXX" am_compiler_list= 12590 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12592$as_echo_n "checking dependency style of $depcc... " >&6; } 12593if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12597 # We make a subdir and do the tests there. Otherwise we can end up 12598 # making bogus files that we don't know about and never remove. For 12599 # instance it was reported that on HP-UX the gcc test will end up 12600 # making a dummy file named `D' -- because `-MD' means `put the output 12601 # in D'. 12602 mkdir conftest.dir 12603 # Copy depcomp to subdir because otherwise we won't find it if we're 12604 # using a relative directory. 12605 cp "$am_depcomp" conftest.dir 12606 cd conftest.dir 12607 # We will build objects and dependencies in a subdirectory because 12608 # it helps to detect inapplicable dependency modes. For instance 12609 # both Tru64's cc and ICC support -MD to output dependencies as a 12610 # side effect of compilation, but ICC will put the dependencies in 12611 # the current directory while Tru64 will put them in the object 12612 # directory. 12613 mkdir sub 12614 12615 am_cv_CXX_dependencies_compiler_type=none 12616 if test "$am_compiler_list" = ""; then 12617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12618 fi 12619 am__universal=false 12620 case " $depcc " in #( 12621 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12622 esac 12623 12624 for depmode in $am_compiler_list; do 12625 # Setup a source with many dependencies, because some compilers 12626 # like to wrap large dependency lists on column 80 (with \), and 12627 # we should not choose a depcomp mode which is confused by this. 12628 # 12629 # We need to recreate these files for each test, as the compiler may 12630 # overwrite some of them when testing with obscure command lines. 12631 # This happens at least with the AIX C compiler. 12632 : > sub/conftest.c 12633 for i in 1 2 3 4 5 6; do 12634 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12636 # Solaris 8's {/usr,}/bin/sh. 12637 touch sub/conftst$i.h 12638 done 12639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12640 12641 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12642 # mode. It turns out that the SunPro C++ compiler does not properly 12643 # handle `-M -o', and we need to detect this. Also, some Intel 12644 # versions had trouble with output in subdirs 12645 am__obj=sub/conftest.${OBJEXT-o} 12646 am__minus_obj="-o $am__obj" 12647 case $depmode in 12648 gcc) 12649 # This depmode causes a compiler race in universal mode. 12650 test "$am__universal" = false || continue 12651 ;; 12652 nosideeffect) 12653 # after this tag, mechanisms are not by side-effect, so they'll 12654 # only be used when explicitly requested 12655 if test "x$enable_dependency_tracking" = xyes; then 12656 continue 12657 else 12658 break 12659 fi 12660 ;; 12661 msvisualcpp | msvcmsys) 12662 # This compiler won't grok `-c -o', but also, the minuso test has 12663 # not run yet. These depmodes are late enough in the game, and 12664 # so weak that their functioning should not be impacted. 12665 am__obj=conftest.${OBJEXT-o} 12666 am__minus_obj= 12667 ;; 12668 none) break ;; 12669 esac 12670 if depmode=$depmode \ 12671 source=sub/conftest.c object=$am__obj \ 12672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12674 >/dev/null 2>conftest.err && 12675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12679 # icc doesn't choke on unknown options, it will just issue warnings 12680 # or remarks (even with -Werror). So we grep stderr for any message 12681 # that says an option was ignored or not supported. 12682 # When given -MP, icc 7.0 and 7.1 complain thusly: 12683 # icc: Command line warning: ignoring option '-M'; no argument required 12684 # The diagnosis changed in icc 8.0: 12685 # icc: Command line remark: option '-MP' not supported 12686 if (grep 'ignoring option' conftest.err || 12687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12688 am_cv_CXX_dependencies_compiler_type=$depmode 12689 break 12690 fi 12691 fi 12692 done 12693 12694 cd .. 12695 rm -rf conftest.dir 12696else 12697 am_cv_CXX_dependencies_compiler_type=none 12698fi 12699 12700fi 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12702$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12703CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12704 12705 if 12706 test "x$enable_dependency_tracking" != xno \ 12707 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12708 am__fastdepCXX_TRUE= 12709 am__fastdepCXX_FALSE='#' 12710else 12711 am__fastdepCXX_TRUE='#' 12712 am__fastdepCXX_FALSE= 12713fi 12714 12715 12716 12717 12718 12719func_stripname_cnf () 12720{ 12721 case ${2} in 12722 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12723 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12724 esac 12725} # func_stripname_cnf 12726 12727 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12728 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12729 (test "X$CXX" != "Xg++"))) ; then 12730 ac_ext=cpp 12731ac_cpp='$CXXCPP $CPPFLAGS' 12732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12736$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12737if test -z "$CXXCPP"; then 12738 if ${ac_cv_prog_CXXCPP+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 # Double quotes because CXXCPP needs to be expanded 12742 for CXXCPP in "$CXX -E" "/lib/cpp" 12743 do 12744 ac_preproc_ok=false 12745for ac_cxx_preproc_warn_flag in '' yes 12746do 12747 # Use a header file that comes with gcc, so configuring glibc 12748 # with a fresh cross-compiler works. 12749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12750 # <limits.h> exists even on freestanding compilers. 12751 # On the NeXT, cc -E runs the code through the compiler's parser, 12752 # not just through cpp. "Syntax error" is here to catch this case. 12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12754/* end confdefs.h. */ 12755#ifdef __STDC__ 12756# include <limits.h> 12757#else 12758# include <assert.h> 12759#endif 12760 Syntax error 12761_ACEOF 12762if ac_fn_cxx_try_cpp "$LINENO"; then : 12763 12764else 12765 # Broken: fails on valid input. 12766continue 12767fi 12768rm -f conftest.err conftest.i conftest.$ac_ext 12769 12770 # OK, works on sane cases. Now check whether nonexistent headers 12771 # can be detected and how. 12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12773/* end confdefs.h. */ 12774#include <ac_nonexistent.h> 12775_ACEOF 12776if ac_fn_cxx_try_cpp "$LINENO"; then : 12777 # Broken: success on invalid input. 12778continue 12779else 12780 # Passes both tests. 12781ac_preproc_ok=: 12782break 12783fi 12784rm -f conftest.err conftest.i conftest.$ac_ext 12785 12786done 12787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12788rm -f conftest.i conftest.err conftest.$ac_ext 12789if $ac_preproc_ok; then : 12790 break 12791fi 12792 12793 done 12794 ac_cv_prog_CXXCPP=$CXXCPP 12795 12796fi 12797 CXXCPP=$ac_cv_prog_CXXCPP 12798else 12799 ac_cv_prog_CXXCPP=$CXXCPP 12800fi 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12802$as_echo "$CXXCPP" >&6; } 12803ac_preproc_ok=false 12804for ac_cxx_preproc_warn_flag in '' yes 12805do 12806 # Use a header file that comes with gcc, so configuring glibc 12807 # with a fresh cross-compiler works. 12808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12809 # <limits.h> exists even on freestanding compilers. 12810 # On the NeXT, cc -E runs the code through the compiler's parser, 12811 # not just through cpp. "Syntax error" is here to catch this case. 12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12813/* end confdefs.h. */ 12814#ifdef __STDC__ 12815# include <limits.h> 12816#else 12817# include <assert.h> 12818#endif 12819 Syntax error 12820_ACEOF 12821if ac_fn_cxx_try_cpp "$LINENO"; then : 12822 12823else 12824 # Broken: fails on valid input. 12825continue 12826fi 12827rm -f conftest.err conftest.i conftest.$ac_ext 12828 12829 # OK, works on sane cases. Now check whether nonexistent headers 12830 # can be detected and how. 12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12832/* end confdefs.h. */ 12833#include <ac_nonexistent.h> 12834_ACEOF 12835if ac_fn_cxx_try_cpp "$LINENO"; then : 12836 # Broken: success on invalid input. 12837continue 12838else 12839 # Passes both tests. 12840ac_preproc_ok=: 12841break 12842fi 12843rm -f conftest.err conftest.i conftest.$ac_ext 12844 12845done 12846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12847rm -f conftest.i conftest.err conftest.$ac_ext 12848if $ac_preproc_ok; then : 12849 12850else 12851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12853as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12854See \`config.log' for more details" "$LINENO" 5; } 12855fi 12856 12857ac_ext=c 12858ac_cpp='$CPP $CPPFLAGS' 12859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12861ac_compiler_gnu=$ac_cv_c_compiler_gnu 12862 12863else 12864 _lt_caught_CXX_error=yes 12865fi 12866 12867ac_ext=cpp 12868ac_cpp='$CXXCPP $CPPFLAGS' 12869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12872 12873archive_cmds_need_lc_CXX=no 12874allow_undefined_flag_CXX= 12875always_export_symbols_CXX=no 12876archive_expsym_cmds_CXX= 12877compiler_needs_object_CXX=no 12878export_dynamic_flag_spec_CXX= 12879hardcode_direct_CXX=no 12880hardcode_direct_absolute_CXX=no 12881hardcode_libdir_flag_spec_CXX= 12882hardcode_libdir_flag_spec_ld_CXX= 12883hardcode_libdir_separator_CXX= 12884hardcode_minus_L_CXX=no 12885hardcode_shlibpath_var_CXX=unsupported 12886hardcode_automatic_CXX=no 12887inherit_rpath_CXX=no 12888module_cmds_CXX= 12889module_expsym_cmds_CXX= 12890link_all_deplibs_CXX=unknown 12891old_archive_cmds_CXX=$old_archive_cmds 12892reload_flag_CXX=$reload_flag 12893reload_cmds_CXX=$reload_cmds 12894no_undefined_flag_CXX= 12895whole_archive_flag_spec_CXX= 12896enable_shared_with_static_runtimes_CXX=no 12897 12898# Source file extension for C++ test sources. 12899ac_ext=cpp 12900 12901# Object file extension for compiled C++ test sources. 12902objext=o 12903objext_CXX=$objext 12904 12905# No sense in running all these tests if we already determined that 12906# the CXX compiler isn't working. Some variables (like enable_shared) 12907# are currently assumed to apply to all compilers on this platform, 12908# and will be corrupted by setting them based on a non-working compiler. 12909if test "$_lt_caught_CXX_error" != yes; then 12910 # Code to be used in simple compile tests 12911 lt_simple_compile_test_code="int some_variable = 0;" 12912 12913 # Code to be used in simple link tests 12914 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12915 12916 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12917 12918 12919 12920 12921 12922 12923# If no C compiler was specified, use CC. 12924LTCC=${LTCC-"$CC"} 12925 12926# If no C compiler flags were specified, use CFLAGS. 12927LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12928 12929# Allow CC to be a program name with arguments. 12930compiler=$CC 12931 12932 12933 # save warnings/boilerplate of simple test code 12934 ac_outfile=conftest.$ac_objext 12935echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12937_lt_compiler_boilerplate=`cat conftest.err` 12938$RM conftest* 12939 12940 ac_outfile=conftest.$ac_objext 12941echo "$lt_simple_link_test_code" >conftest.$ac_ext 12942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12943_lt_linker_boilerplate=`cat conftest.err` 12944$RM -r conftest* 12945 12946 12947 # Allow CC to be a program name with arguments. 12948 lt_save_CC=$CC 12949 lt_save_CFLAGS=$CFLAGS 12950 lt_save_LD=$LD 12951 lt_save_GCC=$GCC 12952 GCC=$GXX 12953 lt_save_with_gnu_ld=$with_gnu_ld 12954 lt_save_path_LD=$lt_cv_path_LD 12955 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12956 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12957 else 12958 $as_unset lt_cv_prog_gnu_ld 12959 fi 12960 if test -n "${lt_cv_path_LDCXX+set}"; then 12961 lt_cv_path_LD=$lt_cv_path_LDCXX 12962 else 12963 $as_unset lt_cv_path_LD 12964 fi 12965 test -z "${LDCXX+set}" || LD=$LDCXX 12966 CC=${CXX-"c++"} 12967 CFLAGS=$CXXFLAGS 12968 compiler=$CC 12969 compiler_CXX=$CC 12970 for cc_temp in $compiler""; do 12971 case $cc_temp in 12972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12974 \-*) ;; 12975 *) break;; 12976 esac 12977done 12978cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12979 12980 12981 if test -n "$compiler"; then 12982 # We don't want -fno-exception when compiling C++ code, so set the 12983 # no_builtin_flag separately 12984 if test "$GXX" = yes; then 12985 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12986 else 12987 lt_prog_compiler_no_builtin_flag_CXX= 12988 fi 12989 12990 if test "$GXX" = yes; then 12991 # Set up default GNU C++ configuration 12992 12993 12994 12995# Check whether --with-gnu-ld was given. 12996if test "${with_gnu_ld+set}" = set; then : 12997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12998else 12999 with_gnu_ld=no 13000fi 13001 13002ac_prog=ld 13003if test "$GCC" = yes; then 13004 # Check if gcc -print-prog-name=ld gives a path. 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13006$as_echo_n "checking for ld used by $CC... " >&6; } 13007 case $host in 13008 *-*-mingw*) 13009 # gcc leaves a trailing carriage return which upsets mingw 13010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13011 *) 13012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13013 esac 13014 case $ac_prog in 13015 # Accept absolute paths. 13016 [\\/]* | ?:[\\/]*) 13017 re_direlt='/[^/][^/]*/\.\./' 13018 # Canonicalize the pathname of ld 13019 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13020 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13021 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13022 done 13023 test -z "$LD" && LD="$ac_prog" 13024 ;; 13025 "") 13026 # If it fails, then pretend we aren't using GCC. 13027 ac_prog=ld 13028 ;; 13029 *) 13030 # If it is relative, then search for the first ld in PATH. 13031 with_gnu_ld=unknown 13032 ;; 13033 esac 13034elif test "$with_gnu_ld" = yes; then 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13036$as_echo_n "checking for GNU ld... " >&6; } 13037else 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13039$as_echo_n "checking for non-GNU ld... " >&6; } 13040fi 13041if ${lt_cv_path_LD+:} false; then : 13042 $as_echo_n "(cached) " >&6 13043else 13044 if test -z "$LD"; then 13045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13046 for ac_dir in $PATH; do 13047 IFS="$lt_save_ifs" 13048 test -z "$ac_dir" && ac_dir=. 13049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13050 lt_cv_path_LD="$ac_dir/$ac_prog" 13051 # Check to see if the program is GNU ld. I'd rather use --version, 13052 # but apparently some variants of GNU ld only accept -v. 13053 # Break only if it was the GNU/non-GNU ld that we prefer. 13054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13055 *GNU* | *'with BFD'*) 13056 test "$with_gnu_ld" != no && break 13057 ;; 13058 *) 13059 test "$with_gnu_ld" != yes && break 13060 ;; 13061 esac 13062 fi 13063 done 13064 IFS="$lt_save_ifs" 13065else 13066 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13067fi 13068fi 13069 13070LD="$lt_cv_path_LD" 13071if test -n "$LD"; then 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13073$as_echo "$LD" >&6; } 13074else 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13076$as_echo "no" >&6; } 13077fi 13078test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13080$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13081if ${lt_cv_prog_gnu_ld+:} false; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13085case `$LD -v 2>&1 </dev/null` in 13086*GNU* | *'with BFD'*) 13087 lt_cv_prog_gnu_ld=yes 13088 ;; 13089*) 13090 lt_cv_prog_gnu_ld=no 13091 ;; 13092esac 13093fi 13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13095$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13096with_gnu_ld=$lt_cv_prog_gnu_ld 13097 13098 13099 13100 13101 13102 13103 13104 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13105 # archiving commands below assume that GNU ld is being used. 13106 if test "$with_gnu_ld" = yes; then 13107 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13108 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' 13109 13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13112 13113 # If archive_cmds runs LD, not CC, wlarc should be empty 13114 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13115 # investigate it a little bit more. (MM) 13116 wlarc='${wl}' 13117 13118 # ancient GNU ld didn't support --whole-archive et. al. 13119 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13120 $GREP 'no-whole-archive' > /dev/null; then 13121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13122 else 13123 whole_archive_flag_spec_CXX= 13124 fi 13125 else 13126 with_gnu_ld=no 13127 wlarc= 13128 13129 # A generic and very simple default shared library creation 13130 # command for GNU C++ for the case where it uses the native 13131 # linker, instead of GNU ld. If possible, this setting should 13132 # overridden to take advantage of the native linker features on 13133 # the platform it is being used on. 13134 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13135 fi 13136 13137 # Commands to make compiler produce verbose output that lists 13138 # what "hidden" libraries, object files and flags are used when 13139 # linking a shared library. 13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13141 13142 else 13143 GXX=no 13144 with_gnu_ld=no 13145 wlarc= 13146 fi 13147 13148 # PORTME: fill in a description of your system's C++ link characteristics 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13150$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13151 ld_shlibs_CXX=yes 13152 case $host_os in 13153 aix3*) 13154 # FIXME: insert proper C++ library support 13155 ld_shlibs_CXX=no 13156 ;; 13157 aix[4-9]*) 13158 if test "$host_cpu" = ia64; then 13159 # On IA64, the linker does run time linking by default, so we don't 13160 # have to do anything special. 13161 aix_use_runtimelinking=no 13162 exp_sym_flag='-Bexport' 13163 no_entry_flag="" 13164 else 13165 aix_use_runtimelinking=no 13166 13167 # Test if we are trying to use run time linking or normal 13168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13169 # need to do runtime linking. 13170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13171 for ld_flag in $LDFLAGS; do 13172 case $ld_flag in 13173 *-brtl*) 13174 aix_use_runtimelinking=yes 13175 break 13176 ;; 13177 esac 13178 done 13179 ;; 13180 esac 13181 13182 exp_sym_flag='-bexport' 13183 no_entry_flag='-bnoentry' 13184 fi 13185 13186 # When large executables or shared objects are built, AIX ld can 13187 # have problems creating the table of contents. If linking a library 13188 # or program results in "error TOC overflow" add -mminimal-toc to 13189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13191 13192 archive_cmds_CXX='' 13193 hardcode_direct_CXX=yes 13194 hardcode_direct_absolute_CXX=yes 13195 hardcode_libdir_separator_CXX=':' 13196 link_all_deplibs_CXX=yes 13197 file_list_spec_CXX='${wl}-f,' 13198 13199 if test "$GXX" = yes; then 13200 case $host_os in aix4.[012]|aix4.[012].*) 13201 # We only want to do this on AIX 4.2 and lower, the check 13202 # below for broken collect2 doesn't work under 4.3+ 13203 collect2name=`${CC} -print-prog-name=collect2` 13204 if test -f "$collect2name" && 13205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13206 then 13207 # We have reworked collect2 13208 : 13209 else 13210 # We have old collect2 13211 hardcode_direct_CXX=unsupported 13212 # It fails to find uninstalled libraries when the uninstalled 13213 # path is not listed in the libpath. Setting hardcode_minus_L 13214 # to unsupported forces relinking 13215 hardcode_minus_L_CXX=yes 13216 hardcode_libdir_flag_spec_CXX='-L$libdir' 13217 hardcode_libdir_separator_CXX= 13218 fi 13219 esac 13220 shared_flag='-shared' 13221 if test "$aix_use_runtimelinking" = yes; then 13222 shared_flag="$shared_flag "'${wl}-G' 13223 fi 13224 else 13225 # not using gcc 13226 if test "$host_cpu" = ia64; then 13227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13228 # chokes on -Wl,-G. The following line is correct: 13229 shared_flag='-G' 13230 else 13231 if test "$aix_use_runtimelinking" = yes; then 13232 shared_flag='${wl}-G' 13233 else 13234 shared_flag='${wl}-bM:SRE' 13235 fi 13236 fi 13237 fi 13238 13239 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13240 # It seems that -bexpall does not export symbols beginning with 13241 # underscore (_), so it is better to generate a list of symbols to 13242 # export. 13243 always_export_symbols_CXX=yes 13244 if test "$aix_use_runtimelinking" = yes; then 13245 # Warning - without using the other runtime loading flags (-brtl), 13246 # -berok will link without error, but may produce a broken library. 13247 allow_undefined_flag_CXX='-berok' 13248 # Determine the default libpath from the value encoded in an empty 13249 # executable. 13250 if test "${lt_cv_aix_libpath+set}" = set; then 13251 aix_libpath=$lt_cv_aix_libpath 13252else 13253 if ${lt_cv_aix_libpath__CXX+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255else 13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258 13259int 13260main () 13261{ 13262 13263 ; 13264 return 0; 13265} 13266_ACEOF 13267if ac_fn_cxx_try_link "$LINENO"; then : 13268 13269 lt_aix_libpath_sed=' 13270 /Import File Strings/,/^$/ { 13271 /^0/ { 13272 s/^0 *\([^ ]*\) *$/\1/ 13273 p 13274 } 13275 }' 13276 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13277 # Check for a 64-bit object if we didn't find anything. 13278 if test -z "$lt_cv_aix_libpath__CXX"; then 13279 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13280 fi 13281fi 13282rm -f core conftest.err conftest.$ac_objext \ 13283 conftest$ac_exeext conftest.$ac_ext 13284 if test -z "$lt_cv_aix_libpath__CXX"; then 13285 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13286 fi 13287 13288fi 13289 13290 aix_libpath=$lt_cv_aix_libpath__CXX 13291fi 13292 13293 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13294 13295 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" 13296 else 13297 if test "$host_cpu" = ia64; then 13298 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13299 allow_undefined_flag_CXX="-z nodefs" 13300 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" 13301 else 13302 # Determine the default libpath from the value encoded in an 13303 # empty executable. 13304 if test "${lt_cv_aix_libpath+set}" = set; then 13305 aix_libpath=$lt_cv_aix_libpath 13306else 13307 if ${lt_cv_aix_libpath__CXX+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312 13313int 13314main () 13315{ 13316 13317 ; 13318 return 0; 13319} 13320_ACEOF 13321if ac_fn_cxx_try_link "$LINENO"; then : 13322 13323 lt_aix_libpath_sed=' 13324 /Import File Strings/,/^$/ { 13325 /^0/ { 13326 s/^0 *\([^ ]*\) *$/\1/ 13327 p 13328 } 13329 }' 13330 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13331 # Check for a 64-bit object if we didn't find anything. 13332 if test -z "$lt_cv_aix_libpath__CXX"; then 13333 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13334 fi 13335fi 13336rm -f core conftest.err conftest.$ac_objext \ 13337 conftest$ac_exeext conftest.$ac_ext 13338 if test -z "$lt_cv_aix_libpath__CXX"; then 13339 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13340 fi 13341 13342fi 13343 13344 aix_libpath=$lt_cv_aix_libpath__CXX 13345fi 13346 13347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13348 # Warning - without using the other run time loading flags, 13349 # -berok will link without error, but may produce a broken library. 13350 no_undefined_flag_CXX=' ${wl}-bernotok' 13351 allow_undefined_flag_CXX=' ${wl}-berok' 13352 if test "$with_gnu_ld" = yes; then 13353 # We only use this code for GNU lds that support --whole-archive. 13354 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13355 else 13356 # Exported symbols can be pulled into shared objects from archives 13357 whole_archive_flag_spec_CXX='$convenience' 13358 fi 13359 archive_cmds_need_lc_CXX=yes 13360 # This is similar to how AIX traditionally builds its shared 13361 # libraries. 13362 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' 13363 fi 13364 fi 13365 ;; 13366 13367 beos*) 13368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13369 allow_undefined_flag_CXX=unsupported 13370 # Joseph Beckenbach <[email protected]> says some releases of gcc 13371 # support --undefined. This deserves some investigation. FIXME 13372 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13373 else 13374 ld_shlibs_CXX=no 13375 fi 13376 ;; 13377 13378 chorus*) 13379 case $cc_basename in 13380 *) 13381 # FIXME: insert proper C++ library support 13382 ld_shlibs_CXX=no 13383 ;; 13384 esac 13385 ;; 13386 13387 cygwin* | mingw* | pw32* | cegcc*) 13388 case $GXX,$cc_basename in 13389 ,cl* | no,cl*) 13390 # Native MSVC 13391 # hardcode_libdir_flag_spec is actually meaningless, as there is 13392 # no search path for DLLs. 13393 hardcode_libdir_flag_spec_CXX=' ' 13394 allow_undefined_flag_CXX=unsupported 13395 always_export_symbols_CXX=yes 13396 file_list_spec_CXX='@' 13397 # Tell ltmain to make .lib files, not .a files. 13398 libext=lib 13399 # Tell ltmain to make .dll files, not .so files. 13400 shrext_cmds=".dll" 13401 # FIXME: Setting linknames here is a bad hack. 13402 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13403 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13404 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13405 else 13406 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13407 fi~ 13408 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13409 linknames=' 13410 # The linker will not automatically build a static lib if we build a DLL. 13411 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13412 enable_shared_with_static_runtimes_CXX=yes 13413 # Don't use ranlib 13414 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13415 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13416 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13417 case $lt_outputfile in 13418 *.exe|*.EXE) ;; 13419 *) 13420 lt_outputfile="$lt_outputfile.exe" 13421 lt_tool_outputfile="$lt_tool_outputfile.exe" 13422 ;; 13423 esac~ 13424 func_to_tool_file "$lt_outputfile"~ 13425 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13426 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13427 $RM "$lt_outputfile.manifest"; 13428 fi' 13429 ;; 13430 *) 13431 # g++ 13432 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13433 # as there is no search path for DLLs. 13434 hardcode_libdir_flag_spec_CXX='-L$libdir' 13435 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13436 allow_undefined_flag_CXX=unsupported 13437 always_export_symbols_CXX=no 13438 enable_shared_with_static_runtimes_CXX=yes 13439 13440 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13441 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' 13442 # If the export-symbols file already is a .def file (1st line 13443 # is EXPORTS), use it as is; otherwise, prepend... 13444 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13445 cp $export_symbols $output_objdir/$soname.def; 13446 else 13447 echo EXPORTS > $output_objdir/$soname.def; 13448 cat $export_symbols >> $output_objdir/$soname.def; 13449 fi~ 13450 $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' 13451 else 13452 ld_shlibs_CXX=no 13453 fi 13454 ;; 13455 esac 13456 ;; 13457 darwin* | rhapsody*) 13458 13459 13460 archive_cmds_need_lc_CXX=no 13461 hardcode_direct_CXX=no 13462 hardcode_automatic_CXX=yes 13463 hardcode_shlibpath_var_CXX=unsupported 13464 if test "$lt_cv_ld_force_load" = "yes"; then 13465 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\"`' 13466 else 13467 whole_archive_flag_spec_CXX='' 13468 fi 13469 link_all_deplibs_CXX=yes 13470 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13471 case $cc_basename in 13472 ifort*) _lt_dar_can_shared=yes ;; 13473 *) _lt_dar_can_shared=$GCC ;; 13474 esac 13475 if test "$_lt_dar_can_shared" = "yes"; then 13476 output_verbose_link_cmd=func_echo_all 13477 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}" 13478 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13479 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}" 13480 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}" 13481 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13482 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}" 13483 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}" 13484 fi 13485 13486 else 13487 ld_shlibs_CXX=no 13488 fi 13489 13490 ;; 13491 13492 dgux*) 13493 case $cc_basename in 13494 ec++*) 13495 # FIXME: insert proper C++ library support 13496 ld_shlibs_CXX=no 13497 ;; 13498 ghcx*) 13499 # Green Hills C++ Compiler 13500 # FIXME: insert proper C++ library support 13501 ld_shlibs_CXX=no 13502 ;; 13503 *) 13504 # FIXME: insert proper C++ library support 13505 ld_shlibs_CXX=no 13506 ;; 13507 esac 13508 ;; 13509 13510 freebsd[12]*) 13511 # C++ shared libraries reported to be fairly broken before 13512 # switch to ELF 13513 ld_shlibs_CXX=no 13514 ;; 13515 13516 freebsd-elf*) 13517 archive_cmds_need_lc_CXX=no 13518 ;; 13519 13520 freebsd* | dragonfly*) 13521 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13522 # conventions 13523 ld_shlibs_CXX=yes 13524 ;; 13525 13526 gnu*) 13527 ;; 13528 13529 haiku*) 13530 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13531 link_all_deplibs_CXX=yes 13532 ;; 13533 13534 hpux9*) 13535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13536 hardcode_libdir_separator_CXX=: 13537 export_dynamic_flag_spec_CXX='${wl}-E' 13538 hardcode_direct_CXX=yes 13539 hardcode_minus_L_CXX=yes # Not in the search PATH, 13540 # but as the default 13541 # location of the library. 13542 13543 case $cc_basename in 13544 CC*) 13545 # FIXME: insert proper C++ library support 13546 ld_shlibs_CXX=no 13547 ;; 13548 aCC*) 13549 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' 13550 # Commands to make compiler produce verbose output that lists 13551 # what "hidden" libraries, object files and flags are used when 13552 # linking a shared library. 13553 # 13554 # There doesn't appear to be a way to prevent this compiler from 13555 # explicitly linking system object files so we need to strip them 13556 # from the output so that they don't get included in the library 13557 # dependencies. 13558 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"' 13559 ;; 13560 *) 13561 if test "$GXX" = yes; then 13562 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' 13563 else 13564 # FIXME: insert proper C++ library support 13565 ld_shlibs_CXX=no 13566 fi 13567 ;; 13568 esac 13569 ;; 13570 13571 hpux10*|hpux11*) 13572 if test $with_gnu_ld = no; then 13573 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13574 hardcode_libdir_separator_CXX=: 13575 13576 case $host_cpu in 13577 hppa*64*|ia64*) 13578 ;; 13579 *) 13580 export_dynamic_flag_spec_CXX='${wl}-E' 13581 ;; 13582 esac 13583 fi 13584 case $host_cpu in 13585 hppa*64*|ia64*) 13586 hardcode_direct_CXX=no 13587 hardcode_shlibpath_var_CXX=no 13588 ;; 13589 *) 13590 hardcode_direct_CXX=yes 13591 hardcode_direct_absolute_CXX=yes 13592 hardcode_minus_L_CXX=yes # Not in the search PATH, 13593 # but as the default 13594 # location of the library. 13595 ;; 13596 esac 13597 13598 case $cc_basename in 13599 CC*) 13600 # FIXME: insert proper C++ library support 13601 ld_shlibs_CXX=no 13602 ;; 13603 aCC*) 13604 case $host_cpu in 13605 hppa*64*) 13606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13607 ;; 13608 ia64*) 13609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13610 ;; 13611 *) 13612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13613 ;; 13614 esac 13615 # Commands to make compiler produce verbose output that lists 13616 # what "hidden" libraries, object files and flags are used when 13617 # linking a shared library. 13618 # 13619 # There doesn't appear to be a way to prevent this compiler from 13620 # explicitly linking system object files so we need to strip them 13621 # from the output so that they don't get included in the library 13622 # dependencies. 13623 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"' 13624 ;; 13625 *) 13626 if test "$GXX" = yes; then 13627 if test $with_gnu_ld = no; then 13628 case $host_cpu in 13629 hppa*64*) 13630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13631 ;; 13632 ia64*) 13633 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13634 ;; 13635 *) 13636 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' 13637 ;; 13638 esac 13639 fi 13640 else 13641 # FIXME: insert proper C++ library support 13642 ld_shlibs_CXX=no 13643 fi 13644 ;; 13645 esac 13646 ;; 13647 13648 interix[3-9]*) 13649 hardcode_direct_CXX=no 13650 hardcode_shlibpath_var_CXX=no 13651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13652 export_dynamic_flag_spec_CXX='${wl}-E' 13653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13654 # Instead, shared libraries are loaded at an image base (0x10000000 by 13655 # default) and relocated if they conflict, which is a slow very memory 13656 # consuming and fragmenting process. To avoid this, we pick a random, 13657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13658 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13659 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' 13660 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' 13661 ;; 13662 irix5* | irix6*) 13663 case $cc_basename in 13664 CC*) 13665 # SGI C++ 13666 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' 13667 13668 # Archives containing C++ object files must be created using 13669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13670 # necessary to make sure instantiated templates are included 13671 # in the archive. 13672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13673 ;; 13674 *) 13675 if test "$GXX" = yes; then 13676 if test "$with_gnu_ld" = no; then 13677 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' 13678 else 13679 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' 13680 fi 13681 fi 13682 link_all_deplibs_CXX=yes 13683 ;; 13684 esac 13685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13686 hardcode_libdir_separator_CXX=: 13687 inherit_rpath_CXX=yes 13688 ;; 13689 13690 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13691 case $cc_basename in 13692 KCC*) 13693 # Kuck and Associates, Inc. (KAI) C++ Compiler 13694 13695 # KCC will only create a shared library if the output file 13696 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13697 # to its proper name (with version) after linking. 13698 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' 13699 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' 13700 # Commands to make compiler produce verbose output that lists 13701 # what "hidden" libraries, object files and flags are used when 13702 # linking a shared library. 13703 # 13704 # There doesn't appear to be a way to prevent this compiler from 13705 # explicitly linking system object files so we need to strip them 13706 # from the output so that they don't get included in the library 13707 # dependencies. 13708 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"' 13709 13710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13712 13713 # Archives containing C++ object files must be created using 13714 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13716 ;; 13717 icpc* | ecpc* ) 13718 # Intel C++ 13719 with_gnu_ld=yes 13720 # version 8.0 and above of icpc choke on multiply defined symbols 13721 # if we add $predep_objects and $postdep_objects, however 7.1 and 13722 # earlier do not add the objects themselves. 13723 case `$CC -V 2>&1` in 13724 *"Version 7."*) 13725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13726 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' 13727 ;; 13728 *) # Version 8.0 or newer 13729 tmp_idyn= 13730 case $host_cpu in 13731 ia64*) tmp_idyn=' -i_dynamic';; 13732 esac 13733 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13734 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' 13735 ;; 13736 esac 13737 archive_cmds_need_lc_CXX=no 13738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13740 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13741 ;; 13742 pgCC* | pgcpp*) 13743 # Portland Group C++ compiler 13744 case `$CC -V` in 13745 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13746 prelink_cmds_CXX='tpldir=Template.dir~ 13747 rm -rf $tpldir~ 13748 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13749 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13750 old_archive_cmds_CXX='tpldir=Template.dir~ 13751 rm -rf $tpldir~ 13752 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13753 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13754 $RANLIB $oldlib' 13755 archive_cmds_CXX='tpldir=Template.dir~ 13756 rm -rf $tpldir~ 13757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13758 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13759 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13760 rm -rf $tpldir~ 13761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13762 $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' 13763 ;; 13764 *) # Version 6 and above use weak symbols 13765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13766 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' 13767 ;; 13768 esac 13769 13770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13772 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' 13773 ;; 13774 cxx*) 13775 # Compaq C++ 13776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13777 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' 13778 13779 runpath_var=LD_RUN_PATH 13780 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13781 hardcode_libdir_separator_CXX=: 13782 13783 # Commands to make compiler produce verbose output that lists 13784 # what "hidden" libraries, object files and flags are used when 13785 # linking a shared library. 13786 # 13787 # There doesn't appear to be a way to prevent this compiler from 13788 # explicitly linking system object files so we need to strip them 13789 # from the output so that they don't get included in the library 13790 # dependencies. 13791 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' 13792 ;; 13793 xl* | mpixl* | bgxl*) 13794 # IBM XL 8.0 on PPC, with GNU ld 13795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13797 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13798 if test "x$supports_anon_versioning" = xyes; then 13799 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13801 echo "local: *; };" >> $output_objdir/$libname.ver~ 13802 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13803 fi 13804 ;; 13805 *) 13806 case `$CC -V 2>&1 | sed 5q` in 13807 *Sun\ C*) 13808 # Sun C++ 5.9 13809 no_undefined_flag_CXX=' -zdefs' 13810 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13811 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' 13812 hardcode_libdir_flag_spec_CXX='-R$libdir' 13813 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' 13814 compiler_needs_object_CXX=yes 13815 13816 # Not sure whether something based on 13817 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13818 # would be better. 13819 output_verbose_link_cmd='func_echo_all' 13820 13821 # Archives containing C++ object files must be created using 13822 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13823 # necessary to make sure instantiated templates are included 13824 # in the archive. 13825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13826 ;; 13827 esac 13828 ;; 13829 esac 13830 ;; 13831 13832 lynxos*) 13833 # FIXME: insert proper C++ library support 13834 ld_shlibs_CXX=no 13835 ;; 13836 13837 m88k*) 13838 # FIXME: insert proper C++ library support 13839 ld_shlibs_CXX=no 13840 ;; 13841 13842 mvs*) 13843 case $cc_basename in 13844 cxx*) 13845 # FIXME: insert proper C++ library support 13846 ld_shlibs_CXX=no 13847 ;; 13848 *) 13849 # FIXME: insert proper C++ library support 13850 ld_shlibs_CXX=no 13851 ;; 13852 esac 13853 ;; 13854 13855 netbsd*) 13856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13858 wlarc= 13859 hardcode_libdir_flag_spec_CXX='-R$libdir' 13860 hardcode_direct_CXX=yes 13861 hardcode_shlibpath_var_CXX=no 13862 fi 13863 # Workaround some broken pre-1.5 toolchains 13864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13865 ;; 13866 13867 *nto* | *qnx*) 13868 ld_shlibs_CXX=yes 13869 ;; 13870 13871 openbsd2*) 13872 # C++ shared libraries are fairly broken 13873 ld_shlibs_CXX=no 13874 ;; 13875 13876 openbsd*) 13877 if test -f /usr/libexec/ld.so; then 13878 hardcode_direct_CXX=yes 13879 hardcode_shlibpath_var_CXX=no 13880 hardcode_direct_absolute_CXX=yes 13881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13884 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13885 export_dynamic_flag_spec_CXX='${wl}-E' 13886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13887 fi 13888 output_verbose_link_cmd=func_echo_all 13889 else 13890 ld_shlibs_CXX=no 13891 fi 13892 ;; 13893 13894 osf3* | osf4* | osf5*) 13895 case $cc_basename in 13896 KCC*) 13897 # Kuck and Associates, Inc. (KAI) C++ Compiler 13898 13899 # KCC will only create a shared library if the output file 13900 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13901 # to its proper name (with version) after linking. 13902 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' 13903 13904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13905 hardcode_libdir_separator_CXX=: 13906 13907 # Archives containing C++ object files must be created using 13908 # the KAI C++ compiler. 13909 case $host in 13910 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13911 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13912 esac 13913 ;; 13914 RCC*) 13915 # Rational C++ 2.4.1 13916 # FIXME: insert proper C++ library support 13917 ld_shlibs_CXX=no 13918 ;; 13919 cxx*) 13920 case $host in 13921 osf3*) 13922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13923 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' 13924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13925 ;; 13926 *) 13927 allow_undefined_flag_CXX=' -expect_unresolved \*' 13928 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' 13929 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13930 echo "-hidden">> $lib.exp~ 13931 $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~ 13932 $RM $lib.exp' 13933 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13934 ;; 13935 esac 13936 13937 hardcode_libdir_separator_CXX=: 13938 13939 # Commands to make compiler produce verbose output that lists 13940 # what "hidden" libraries, object files and flags are used when 13941 # linking a shared library. 13942 # 13943 # There doesn't appear to be a way to prevent this compiler from 13944 # explicitly linking system object files so we need to strip them 13945 # from the output so that they don't get included in the library 13946 # dependencies. 13947 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"' 13948 ;; 13949 *) 13950 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13951 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13952 case $host in 13953 osf3*) 13954 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' 13955 ;; 13956 *) 13957 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' 13958 ;; 13959 esac 13960 13961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13962 hardcode_libdir_separator_CXX=: 13963 13964 # Commands to make compiler produce verbose output that lists 13965 # what "hidden" libraries, object files and flags are used when 13966 # linking a shared library. 13967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13968 13969 else 13970 # FIXME: insert proper C++ library support 13971 ld_shlibs_CXX=no 13972 fi 13973 ;; 13974 esac 13975 ;; 13976 13977 psos*) 13978 # FIXME: insert proper C++ library support 13979 ld_shlibs_CXX=no 13980 ;; 13981 13982 sunos4*) 13983 case $cc_basename in 13984 CC*) 13985 # Sun C++ 4.x 13986 # FIXME: insert proper C++ library support 13987 ld_shlibs_CXX=no 13988 ;; 13989 lcc*) 13990 # Lucid 13991 # FIXME: insert proper C++ library support 13992 ld_shlibs_CXX=no 13993 ;; 13994 *) 13995 # FIXME: insert proper C++ library support 13996 ld_shlibs_CXX=no 13997 ;; 13998 esac 13999 ;; 14000 14001 solaris*) 14002 case $cc_basename in 14003 CC* | sunCC*) 14004 # Sun C++ 4.2, 5.x and Centerline C++ 14005 archive_cmds_need_lc_CXX=yes 14006 no_undefined_flag_CXX=' -zdefs' 14007 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14008 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14009 $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' 14010 14011 hardcode_libdir_flag_spec_CXX='-R$libdir' 14012 hardcode_shlibpath_var_CXX=no 14013 case $host_os in 14014 solaris2.[0-5] | solaris2.[0-5].*) ;; 14015 *) 14016 # The compiler driver will combine and reorder linker options, 14017 # but understands `-z linker_flag'. 14018 # Supported since Solaris 2.6 (maybe 2.5.1?) 14019 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14020 ;; 14021 esac 14022 link_all_deplibs_CXX=yes 14023 14024 output_verbose_link_cmd='func_echo_all' 14025 14026 # Archives containing C++ object files must be created using 14027 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14028 # necessary to make sure instantiated templates are included 14029 # in the archive. 14030 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14031 ;; 14032 gcx*) 14033 # Green Hills C++ Compiler 14034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14035 14036 # The C++ compiler must be used to create the archive. 14037 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14038 ;; 14039 *) 14040 # GNU C++ compiler with Solaris linker 14041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14042 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14043 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14044 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14046 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14047 14048 # Commands to make compiler produce verbose output that lists 14049 # what "hidden" libraries, object files and flags are used when 14050 # linking a shared library. 14051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14052 else 14053 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14054 # platform. 14055 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14056 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14057 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14058 14059 # Commands to make compiler produce verbose output that lists 14060 # what "hidden" libraries, object files and flags are used when 14061 # linking a shared library. 14062 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14063 fi 14064 14065 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14066 case $host_os in 14067 solaris2.[0-5] | solaris2.[0-5].*) ;; 14068 *) 14069 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14070 ;; 14071 esac 14072 fi 14073 ;; 14074 esac 14075 ;; 14076 14077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14078 no_undefined_flag_CXX='${wl}-z,text' 14079 archive_cmds_need_lc_CXX=no 14080 hardcode_shlibpath_var_CXX=no 14081 runpath_var='LD_RUN_PATH' 14082 14083 case $cc_basename in 14084 CC*) 14085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14086 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14087 ;; 14088 *) 14089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14091 ;; 14092 esac 14093 ;; 14094 14095 sysv5* | sco3.2v5* | sco5v6*) 14096 # Note: We can NOT use -z defs as we might desire, because we do not 14097 # link with -lc, and that would cause any symbols used from libc to 14098 # always be unresolved, which means just about no library would 14099 # ever link correctly. If we're not using GNU ld we use -z text 14100 # though, which does catch some bad symbols but isn't as heavy-handed 14101 # as -z defs. 14102 no_undefined_flag_CXX='${wl}-z,text' 14103 allow_undefined_flag_CXX='${wl}-z,nodefs' 14104 archive_cmds_need_lc_CXX=no 14105 hardcode_shlibpath_var_CXX=no 14106 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14107 hardcode_libdir_separator_CXX=':' 14108 link_all_deplibs_CXX=yes 14109 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14110 runpath_var='LD_RUN_PATH' 14111 14112 case $cc_basename in 14113 CC*) 14114 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14115 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14116 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14117 '"$old_archive_cmds_CXX" 14118 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14119 '"$reload_cmds_CXX" 14120 ;; 14121 *) 14122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14124 ;; 14125 esac 14126 ;; 14127 14128 tandem*) 14129 case $cc_basename in 14130 NCC*) 14131 # NonStop-UX NCC 3.20 14132 # FIXME: insert proper C++ library support 14133 ld_shlibs_CXX=no 14134 ;; 14135 *) 14136 # FIXME: insert proper C++ library support 14137 ld_shlibs_CXX=no 14138 ;; 14139 esac 14140 ;; 14141 14142 vxworks*) 14143 # FIXME: insert proper C++ library support 14144 ld_shlibs_CXX=no 14145 ;; 14146 14147 *) 14148 # FIXME: insert proper C++ library support 14149 ld_shlibs_CXX=no 14150 ;; 14151 esac 14152 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14154$as_echo "$ld_shlibs_CXX" >&6; } 14155 test "$ld_shlibs_CXX" = no && can_build_shared=no 14156 14157 GCC_CXX="$GXX" 14158 LD_CXX="$LD" 14159 14160 ## CAVEAT EMPTOR: 14161 ## There is no encapsulation within the following macros, do not change 14162 ## the running order or otherwise move them around unless you know exactly 14163 ## what you are doing... 14164 # Dependencies to place before and after the object being linked: 14165predep_objects_CXX= 14166postdep_objects_CXX= 14167predeps_CXX= 14168postdeps_CXX= 14169compiler_lib_search_path_CXX= 14170 14171cat > conftest.$ac_ext <<_LT_EOF 14172class Foo 14173{ 14174public: 14175 Foo (void) { a = 0; } 14176private: 14177 int a; 14178}; 14179_LT_EOF 14180 14181 14182_lt_libdeps_save_CFLAGS=$CFLAGS 14183case "$CC $CFLAGS " in #( 14184*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14185*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14186esac 14187 14188if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14189 (eval $ac_compile) 2>&5 14190 ac_status=$? 14191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14192 test $ac_status = 0; }; then 14193 # Parse the compiler output and extract the necessary 14194 # objects, libraries and library flags. 14195 14196 # Sentinel used to keep track of whether or not we are before 14197 # the conftest object file. 14198 pre_test_object_deps_done=no 14199 14200 for p in `eval "$output_verbose_link_cmd"`; do 14201 case ${prev}${p} in 14202 14203 -L* | -R* | -l*) 14204 # Some compilers place space between "-{L,R}" and the path. 14205 # Remove the space. 14206 if test $p = "-L" || 14207 test $p = "-R"; then 14208 prev=$p 14209 continue 14210 fi 14211 14212 # Expand the sysroot to ease extracting the directories later. 14213 if test -z "$prev"; then 14214 case $p in 14215 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14216 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14217 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14218 esac 14219 fi 14220 case $p in 14221 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14222 esac 14223 if test "$pre_test_object_deps_done" = no; then 14224 case ${prev} in 14225 -L | -R) 14226 # Internal compiler library paths should come after those 14227 # provided the user. The postdeps already come after the 14228 # user supplied libs so there is no need to process them. 14229 if test -z "$compiler_lib_search_path_CXX"; then 14230 compiler_lib_search_path_CXX="${prev}${p}" 14231 else 14232 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14233 fi 14234 ;; 14235 # The "-l" case would never come before the object being 14236 # linked, so don't bother handling this case. 14237 esac 14238 else 14239 if test -z "$postdeps_CXX"; then 14240 postdeps_CXX="${prev}${p}" 14241 else 14242 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14243 fi 14244 fi 14245 prev= 14246 ;; 14247 14248 *.lto.$objext) ;; # Ignore GCC LTO objects 14249 *.$objext) 14250 # This assumes that the test object file only shows up 14251 # once in the compiler output. 14252 if test "$p" = "conftest.$objext"; then 14253 pre_test_object_deps_done=yes 14254 continue 14255 fi 14256 14257 if test "$pre_test_object_deps_done" = no; then 14258 if test -z "$predep_objects_CXX"; then 14259 predep_objects_CXX="$p" 14260 else 14261 predep_objects_CXX="$predep_objects_CXX $p" 14262 fi 14263 else 14264 if test -z "$postdep_objects_CXX"; then 14265 postdep_objects_CXX="$p" 14266 else 14267 postdep_objects_CXX="$postdep_objects_CXX $p" 14268 fi 14269 fi 14270 ;; 14271 14272 *) ;; # Ignore the rest. 14273 14274 esac 14275 done 14276 14277 # Clean up. 14278 rm -f a.out a.exe 14279else 14280 echo "libtool.m4: error: problem compiling CXX test program" 14281fi 14282 14283$RM -f confest.$objext 14284CFLAGS=$_lt_libdeps_save_CFLAGS 14285 14286# PORTME: override above test on systems where it is broken 14287case $host_os in 14288interix[3-9]*) 14289 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14290 # hack all around it, let's just trust "g++" to DTRT. 14291 predep_objects_CXX= 14292 postdep_objects_CXX= 14293 postdeps_CXX= 14294 ;; 14295 14296linux*) 14297 case `$CC -V 2>&1 | sed 5q` in 14298 *Sun\ C*) 14299 # Sun C++ 5.9 14300 14301 # The more standards-conforming stlport4 library is 14302 # incompatible with the Cstd library. Avoid specifying 14303 # it if it's in CXXFLAGS. Ignore libCrun as 14304 # -library=stlport4 depends on it. 14305 case " $CXX $CXXFLAGS " in 14306 *" -library=stlport4 "*) 14307 solaris_use_stlport4=yes 14308 ;; 14309 esac 14310 14311 if test "$solaris_use_stlport4" != yes; then 14312 postdeps_CXX='-library=Cstd -library=Crun' 14313 fi 14314 ;; 14315 esac 14316 ;; 14317 14318solaris*) 14319 case $cc_basename in 14320 CC* | sunCC*) 14321 # The more standards-conforming stlport4 library is 14322 # incompatible with the Cstd library. Avoid specifying 14323 # it if it's in CXXFLAGS. Ignore libCrun as 14324 # -library=stlport4 depends on it. 14325 case " $CXX $CXXFLAGS " in 14326 *" -library=stlport4 "*) 14327 solaris_use_stlport4=yes 14328 ;; 14329 esac 14330 14331 # Adding this requires a known-good setup of shared libraries for 14332 # Sun compiler versions before 5.6, else PIC objects from an old 14333 # archive will be linked into the output, leading to subtle bugs. 14334 if test "$solaris_use_stlport4" != yes; then 14335 postdeps_CXX='-library=Cstd -library=Crun' 14336 fi 14337 ;; 14338 esac 14339 ;; 14340esac 14341 14342 14343case " $postdeps_CXX " in 14344*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14345esac 14346 compiler_lib_search_dirs_CXX= 14347if test -n "${compiler_lib_search_path_CXX}"; then 14348 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14349fi 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 lt_prog_compiler_wl_CXX= 14382lt_prog_compiler_pic_CXX= 14383lt_prog_compiler_static_CXX= 14384 14385 14386 # C++ specific cases for pic, static, wl, etc. 14387 if test "$GXX" = yes; then 14388 lt_prog_compiler_wl_CXX='-Wl,' 14389 lt_prog_compiler_static_CXX='-static' 14390 14391 case $host_os in 14392 aix*) 14393 # All AIX code is PIC. 14394 if test "$host_cpu" = ia64; then 14395 # AIX 5 now supports IA64 processor 14396 lt_prog_compiler_static_CXX='-Bstatic' 14397 fi 14398 ;; 14399 14400 amigaos*) 14401 case $host_cpu in 14402 powerpc) 14403 # see comment about AmigaOS4 .so support 14404 lt_prog_compiler_pic_CXX='-fPIC' 14405 ;; 14406 m68k) 14407 # FIXME: we need at least 68020 code to build shared libraries, but 14408 # adding the `-m68020' flag to GCC prevents building anything better, 14409 # like `-m68040'. 14410 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14411 ;; 14412 esac 14413 ;; 14414 14415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14416 # PIC is the default for these OSes. 14417 ;; 14418 mingw* | cygwin* | os2* | pw32* | cegcc*) 14419 # This hack is so that the source file can tell whether it is being 14420 # built for inclusion in a dll (and should export symbols for example). 14421 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14422 # (--disable-auto-import) libraries 14423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14424 ;; 14425 darwin* | rhapsody*) 14426 # PIC is the default on this platform 14427 # Common symbols not allowed in MH_DYLIB files 14428 lt_prog_compiler_pic_CXX='-fno-common' 14429 ;; 14430 *djgpp*) 14431 # DJGPP does not support shared libraries at all 14432 lt_prog_compiler_pic_CXX= 14433 ;; 14434 haiku*) 14435 # PIC is the default for Haiku. 14436 # The "-static" flag exists, but is broken. 14437 lt_prog_compiler_static_CXX= 14438 ;; 14439 interix[3-9]*) 14440 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14441 # Instead, we relocate shared libraries at runtime. 14442 ;; 14443 sysv4*MP*) 14444 if test -d /usr/nec; then 14445 lt_prog_compiler_pic_CXX=-Kconform_pic 14446 fi 14447 ;; 14448 hpux*) 14449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14451 # sets the default TLS model and affects inlining. 14452 case $host_cpu in 14453 hppa*64*) 14454 ;; 14455 *) 14456 lt_prog_compiler_pic_CXX='-fPIC' 14457 ;; 14458 esac 14459 ;; 14460 *qnx* | *nto*) 14461 # QNX uses GNU C++, but need to define -shared option too, otherwise 14462 # it will coredump. 14463 lt_prog_compiler_pic_CXX='-fPIC -shared' 14464 ;; 14465 *) 14466 lt_prog_compiler_pic_CXX='-fPIC' 14467 ;; 14468 esac 14469 else 14470 case $host_os in 14471 aix[4-9]*) 14472 # All AIX code is PIC. 14473 if test "$host_cpu" = ia64; then 14474 # AIX 5 now supports IA64 processor 14475 lt_prog_compiler_static_CXX='-Bstatic' 14476 else 14477 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14478 fi 14479 ;; 14480 chorus*) 14481 case $cc_basename in 14482 cxch68*) 14483 # Green Hills C++ Compiler 14484 # _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" 14485 ;; 14486 esac 14487 ;; 14488 mingw* | cygwin* | os2* | pw32* | cegcc*) 14489 # This hack is so that the source file can tell whether it is being 14490 # built for inclusion in a dll (and should export symbols for example). 14491 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14492 ;; 14493 dgux*) 14494 case $cc_basename in 14495 ec++*) 14496 lt_prog_compiler_pic_CXX='-KPIC' 14497 ;; 14498 ghcx*) 14499 # Green Hills C++ Compiler 14500 lt_prog_compiler_pic_CXX='-pic' 14501 ;; 14502 *) 14503 ;; 14504 esac 14505 ;; 14506 freebsd* | dragonfly*) 14507 # FreeBSD uses GNU C++ 14508 ;; 14509 hpux9* | hpux10* | hpux11*) 14510 case $cc_basename in 14511 CC*) 14512 lt_prog_compiler_wl_CXX='-Wl,' 14513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14514 if test "$host_cpu" != ia64; then 14515 lt_prog_compiler_pic_CXX='+Z' 14516 fi 14517 ;; 14518 aCC*) 14519 lt_prog_compiler_wl_CXX='-Wl,' 14520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14521 case $host_cpu in 14522 hppa*64*|ia64*) 14523 # +Z the default 14524 ;; 14525 *) 14526 lt_prog_compiler_pic_CXX='+Z' 14527 ;; 14528 esac 14529 ;; 14530 *) 14531 ;; 14532 esac 14533 ;; 14534 interix*) 14535 # This is c89, which is MS Visual C++ (no shared libs) 14536 # Anyone wants to do a port? 14537 ;; 14538 irix5* | irix6* | nonstopux*) 14539 case $cc_basename in 14540 CC*) 14541 lt_prog_compiler_wl_CXX='-Wl,' 14542 lt_prog_compiler_static_CXX='-non_shared' 14543 # CC pic flag -KPIC is the default. 14544 ;; 14545 *) 14546 ;; 14547 esac 14548 ;; 14549 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14550 case $cc_basename in 14551 KCC*) 14552 # KAI C++ Compiler 14553 lt_prog_compiler_wl_CXX='--backend -Wl,' 14554 lt_prog_compiler_pic_CXX='-fPIC' 14555 ;; 14556 ecpc* ) 14557 # old Intel C++ for x86_64 which still supported -KPIC. 14558 lt_prog_compiler_wl_CXX='-Wl,' 14559 lt_prog_compiler_pic_CXX='-KPIC' 14560 lt_prog_compiler_static_CXX='-static' 14561 ;; 14562 icpc* ) 14563 # Intel C++, used to be incompatible with GCC. 14564 # ICC 10 doesn't accept -KPIC any more. 14565 lt_prog_compiler_wl_CXX='-Wl,' 14566 lt_prog_compiler_pic_CXX='-fPIC' 14567 lt_prog_compiler_static_CXX='-static' 14568 ;; 14569 pgCC* | pgcpp*) 14570 # Portland Group C++ compiler 14571 lt_prog_compiler_wl_CXX='-Wl,' 14572 lt_prog_compiler_pic_CXX='-fpic' 14573 lt_prog_compiler_static_CXX='-Bstatic' 14574 ;; 14575 cxx*) 14576 # Compaq C++ 14577 # Make sure the PIC flag is empty. It appears that all Alpha 14578 # Linux and Compaq Tru64 Unix objects are PIC. 14579 lt_prog_compiler_pic_CXX= 14580 lt_prog_compiler_static_CXX='-non_shared' 14581 ;; 14582 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14583 # IBM XL 8.0, 9.0 on PPC and BlueGene 14584 lt_prog_compiler_wl_CXX='-Wl,' 14585 lt_prog_compiler_pic_CXX='-qpic' 14586 lt_prog_compiler_static_CXX='-qstaticlink' 14587 ;; 14588 *) 14589 case `$CC -V 2>&1 | sed 5q` in 14590 *Sun\ C*) 14591 # Sun C++ 5.9 14592 lt_prog_compiler_pic_CXX='-KPIC' 14593 lt_prog_compiler_static_CXX='-Bstatic' 14594 lt_prog_compiler_wl_CXX='-Qoption ld ' 14595 ;; 14596 esac 14597 ;; 14598 esac 14599 ;; 14600 lynxos*) 14601 ;; 14602 m88k*) 14603 ;; 14604 mvs*) 14605 case $cc_basename in 14606 cxx*) 14607 lt_prog_compiler_pic_CXX='-W c,exportall' 14608 ;; 14609 *) 14610 ;; 14611 esac 14612 ;; 14613 netbsd*) 14614 ;; 14615 *qnx* | *nto*) 14616 # QNX uses GNU C++, but need to define -shared option too, otherwise 14617 # it will coredump. 14618 lt_prog_compiler_pic_CXX='-fPIC -shared' 14619 ;; 14620 osf3* | osf4* | osf5*) 14621 case $cc_basename in 14622 KCC*) 14623 lt_prog_compiler_wl_CXX='--backend -Wl,' 14624 ;; 14625 RCC*) 14626 # Rational C++ 2.4.1 14627 lt_prog_compiler_pic_CXX='-pic' 14628 ;; 14629 cxx*) 14630 # Digital/Compaq C++ 14631 lt_prog_compiler_wl_CXX='-Wl,' 14632 # Make sure the PIC flag is empty. It appears that all Alpha 14633 # Linux and Compaq Tru64 Unix objects are PIC. 14634 lt_prog_compiler_pic_CXX= 14635 lt_prog_compiler_static_CXX='-non_shared' 14636 ;; 14637 *) 14638 ;; 14639 esac 14640 ;; 14641 psos*) 14642 ;; 14643 solaris*) 14644 case $cc_basename in 14645 CC* | sunCC*) 14646 # Sun C++ 4.2, 5.x and Centerline C++ 14647 lt_prog_compiler_pic_CXX='-KPIC' 14648 lt_prog_compiler_static_CXX='-Bstatic' 14649 lt_prog_compiler_wl_CXX='-Qoption ld ' 14650 ;; 14651 gcx*) 14652 # Green Hills C++ Compiler 14653 lt_prog_compiler_pic_CXX='-PIC' 14654 ;; 14655 *) 14656 ;; 14657 esac 14658 ;; 14659 sunos4*) 14660 case $cc_basename in 14661 CC*) 14662 # Sun C++ 4.x 14663 lt_prog_compiler_pic_CXX='-pic' 14664 lt_prog_compiler_static_CXX='-Bstatic' 14665 ;; 14666 lcc*) 14667 # Lucid 14668 lt_prog_compiler_pic_CXX='-pic' 14669 ;; 14670 *) 14671 ;; 14672 esac 14673 ;; 14674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14675 case $cc_basename in 14676 CC*) 14677 lt_prog_compiler_wl_CXX='-Wl,' 14678 lt_prog_compiler_pic_CXX='-KPIC' 14679 lt_prog_compiler_static_CXX='-Bstatic' 14680 ;; 14681 esac 14682 ;; 14683 tandem*) 14684 case $cc_basename in 14685 NCC*) 14686 # NonStop-UX NCC 3.20 14687 lt_prog_compiler_pic_CXX='-KPIC' 14688 ;; 14689 *) 14690 ;; 14691 esac 14692 ;; 14693 vxworks*) 14694 ;; 14695 *) 14696 lt_prog_compiler_can_build_shared_CXX=no 14697 ;; 14698 esac 14699 fi 14700 14701case $host_os in 14702 # For platforms which do not support PIC, -DPIC is meaningless: 14703 *djgpp*) 14704 lt_prog_compiler_pic_CXX= 14705 ;; 14706 *) 14707 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14708 ;; 14709esac 14710 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14712$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14713if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715else 14716 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14717fi 14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14719$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14720lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14721 14722# 14723# Check to make sure the PIC flag actually works. 14724# 14725if test -n "$lt_prog_compiler_pic_CXX"; then 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14727$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14728if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14729 $as_echo_n "(cached) " >&6 14730else 14731 lt_cv_prog_compiler_pic_works_CXX=no 14732 ac_outfile=conftest.$ac_objext 14733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14734 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14735 # Insert the option either (1) after the last *FLAGS variable, or 14736 # (2) before a word containing "conftest.", or (3) at the end. 14737 # Note that $ac_compile itself does not contain backslashes and begins 14738 # with a dollar sign (not a hyphen), so the echo should work correctly. 14739 # The option is referenced via a variable to avoid confusing sed. 14740 lt_compile=`echo "$ac_compile" | $SED \ 14741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14743 -e 's:$: $lt_compiler_flag:'` 14744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14745 (eval "$lt_compile" 2>conftest.err) 14746 ac_status=$? 14747 cat conftest.err >&5 14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14749 if (exit $ac_status) && test -s "$ac_outfile"; then 14750 # The compiler can only warn and ignore the option if not recognized 14751 # So say no if there are warnings other than the usual output. 14752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14755 lt_cv_prog_compiler_pic_works_CXX=yes 14756 fi 14757 fi 14758 $RM conftest* 14759 14760fi 14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14762$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14763 14764if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14765 case $lt_prog_compiler_pic_CXX in 14766 "" | " "*) ;; 14767 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14768 esac 14769else 14770 lt_prog_compiler_pic_CXX= 14771 lt_prog_compiler_can_build_shared_CXX=no 14772fi 14773 14774fi 14775 14776 14777 14778 14779 14780# 14781# Check to make sure the static flag actually works. 14782# 14783wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14785$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14786if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788else 14789 lt_cv_prog_compiler_static_works_CXX=no 14790 save_LDFLAGS="$LDFLAGS" 14791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14792 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14794 # The linker can only warn and ignore the option if not recognized 14795 # So say no if there are warnings 14796 if test -s conftest.err; then 14797 # Append any errors to the config.log. 14798 cat conftest.err 1>&5 14799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14801 if diff conftest.exp conftest.er2 >/dev/null; then 14802 lt_cv_prog_compiler_static_works_CXX=yes 14803 fi 14804 else 14805 lt_cv_prog_compiler_static_works_CXX=yes 14806 fi 14807 fi 14808 $RM -r conftest* 14809 LDFLAGS="$save_LDFLAGS" 14810 14811fi 14812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14813$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14814 14815if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14816 : 14817else 14818 lt_prog_compiler_static_CXX= 14819fi 14820 14821 14822 14823 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14825$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14826if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14827 $as_echo_n "(cached) " >&6 14828else 14829 lt_cv_prog_compiler_c_o_CXX=no 14830 $RM -r conftest 2>/dev/null 14831 mkdir conftest 14832 cd conftest 14833 mkdir out 14834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14835 14836 lt_compiler_flag="-o out/conftest2.$ac_objext" 14837 # Insert the option either (1) after the last *FLAGS variable, or 14838 # (2) before a word containing "conftest.", or (3) at the end. 14839 # Note that $ac_compile itself does not contain backslashes and begins 14840 # with a dollar sign (not a hyphen), so the echo should work correctly. 14841 lt_compile=`echo "$ac_compile" | $SED \ 14842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14844 -e 's:$: $lt_compiler_flag:'` 14845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14846 (eval "$lt_compile" 2>out/conftest.err) 14847 ac_status=$? 14848 cat out/conftest.err >&5 14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14850 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14851 then 14852 # The compiler can only warn and ignore the option if not recognized 14853 # So say no if there are warnings 14854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14857 lt_cv_prog_compiler_c_o_CXX=yes 14858 fi 14859 fi 14860 chmod u+w . 2>&5 14861 $RM conftest* 14862 # SGI C++ compiler will create directory out/ii_files/ for 14863 # template instantiation 14864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14865 $RM out/* && rmdir out 14866 cd .. 14867 $RM -r conftest 14868 $RM conftest* 14869 14870fi 14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14872$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14873 14874 14875 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14877$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14878if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14879 $as_echo_n "(cached) " >&6 14880else 14881 lt_cv_prog_compiler_c_o_CXX=no 14882 $RM -r conftest 2>/dev/null 14883 mkdir conftest 14884 cd conftest 14885 mkdir out 14886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14887 14888 lt_compiler_flag="-o out/conftest2.$ac_objext" 14889 # Insert the option either (1) after the last *FLAGS variable, or 14890 # (2) before a word containing "conftest.", or (3) at the end. 14891 # Note that $ac_compile itself does not contain backslashes and begins 14892 # with a dollar sign (not a hyphen), so the echo should work correctly. 14893 lt_compile=`echo "$ac_compile" | $SED \ 14894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14896 -e 's:$: $lt_compiler_flag:'` 14897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14898 (eval "$lt_compile" 2>out/conftest.err) 14899 ac_status=$? 14900 cat out/conftest.err >&5 14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14902 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14903 then 14904 # The compiler can only warn and ignore the option if not recognized 14905 # So say no if there are warnings 14906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14909 lt_cv_prog_compiler_c_o_CXX=yes 14910 fi 14911 fi 14912 chmod u+w . 2>&5 14913 $RM conftest* 14914 # SGI C++ compiler will create directory out/ii_files/ for 14915 # template instantiation 14916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14917 $RM out/* && rmdir out 14918 cd .. 14919 $RM -r conftest 14920 $RM conftest* 14921 14922fi 14923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14924$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14925 14926 14927 14928 14929hard_links="nottested" 14930if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14931 # do not overwrite the value of need_locks provided by the user 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14933$as_echo_n "checking if we can lock with hard links... " >&6; } 14934 hard_links=yes 14935 $RM conftest* 14936 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14937 touch conftest.a 14938 ln conftest.a conftest.b 2>&5 || hard_links=no 14939 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14941$as_echo "$hard_links" >&6; } 14942 if test "$hard_links" = no; then 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14944$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14945 need_locks=warn 14946 fi 14947else 14948 need_locks=no 14949fi 14950 14951 14952 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14955 14956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14957 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14958 case $host_os in 14959 aix[4-9]*) 14960 # If we're using GNU nm, then we don't want the "-C" option. 14961 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14962 # Also, AIX nm treats weak defined symbols like other global defined 14963 # symbols, whereas GNU nm marks them as "W". 14964 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14965 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' 14966 else 14967 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' 14968 fi 14969 ;; 14970 pw32*) 14971 export_symbols_cmds_CXX="$ltdll_cmds" 14972 ;; 14973 cygwin* | mingw* | cegcc*) 14974 case $cc_basename in 14975 cl*) ;; 14976 *) 14977 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' 14978 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14979 ;; 14980 esac 14981 ;; 14982 *) 14983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14984 ;; 14985 esac 14986 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14988$as_echo "$ld_shlibs_CXX" >&6; } 14989test "$ld_shlibs_CXX" = no && can_build_shared=no 14990 14991with_gnu_ld_CXX=$with_gnu_ld 14992 14993 14994 14995 14996 14997 14998# 14999# Do we need to explicitly link libc? 15000# 15001case "x$archive_cmds_need_lc_CXX" in 15002x|xyes) 15003 # Assume -lc should be added 15004 archive_cmds_need_lc_CXX=yes 15005 15006 if test "$enable_shared" = yes && test "$GCC" = yes; then 15007 case $archive_cmds_CXX in 15008 *'~'*) 15009 # FIXME: we may have to deal with multi-command sequences. 15010 ;; 15011 '$CC '*) 15012 # Test whether the compiler implicitly links with -lc since on some 15013 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15014 # to ld, don't add -lc before -lgcc. 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15016$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15017if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019else 15020 $RM conftest* 15021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15022 15023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15024 (eval $ac_compile) 2>&5 15025 ac_status=$? 15026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15027 test $ac_status = 0; } 2>conftest.err; then 15028 soname=conftest 15029 lib=conftest 15030 libobjs=conftest.$ac_objext 15031 deplibs= 15032 wl=$lt_prog_compiler_wl_CXX 15033 pic_flag=$lt_prog_compiler_pic_CXX 15034 compiler_flags=-v 15035 linker_flags=-v 15036 verstring= 15037 output_objdir=. 15038 libname=conftest 15039 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15040 allow_undefined_flag_CXX= 15041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15042 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15043 ac_status=$? 15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15045 test $ac_status = 0; } 15046 then 15047 lt_cv_archive_cmds_need_lc_CXX=no 15048 else 15049 lt_cv_archive_cmds_need_lc_CXX=yes 15050 fi 15051 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15052 else 15053 cat conftest.err 1>&5 15054 fi 15055 $RM conftest* 15056 15057fi 15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15059$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15060 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15061 ;; 15062 esac 15063 fi 15064 ;; 15065esac 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15131$as_echo_n "checking dynamic linker characteristics... " >&6; } 15132 15133library_names_spec= 15134libname_spec='lib$name' 15135soname_spec= 15136shrext_cmds=".so" 15137postinstall_cmds= 15138postuninstall_cmds= 15139finish_cmds= 15140finish_eval= 15141shlibpath_var= 15142shlibpath_overrides_runpath=unknown 15143version_type=none 15144dynamic_linker="$host_os ld.so" 15145sys_lib_dlsearch_path_spec="/lib /usr/lib" 15146need_lib_prefix=unknown 15147hardcode_into_libs=no 15148 15149# when you set need_version to no, make sure it does not cause -set_version 15150# flags to be left without arguments 15151need_version=unknown 15152 15153case $host_os in 15154aix3*) 15155 version_type=linux 15156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15157 shlibpath_var=LIBPATH 15158 15159 # AIX 3 has no versioning support, so we append a major version to the name. 15160 soname_spec='${libname}${release}${shared_ext}$major' 15161 ;; 15162 15163aix[4-9]*) 15164 version_type=linux 15165 need_lib_prefix=no 15166 need_version=no 15167 hardcode_into_libs=yes 15168 if test "$host_cpu" = ia64; then 15169 # AIX 5 supports IA64 15170 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15171 shlibpath_var=LD_LIBRARY_PATH 15172 else 15173 # With GCC up to 2.95.x, collect2 would create an import file 15174 # for dependence libraries. The import file would start with 15175 # the line `#! .'. This would cause the generated library to 15176 # depend on `.', always an invalid library. This was fixed in 15177 # development snapshots of GCC prior to 3.0. 15178 case $host_os in 15179 aix4 | aix4.[01] | aix4.[01].*) 15180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15181 echo ' yes ' 15182 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15183 : 15184 else 15185 can_build_shared=no 15186 fi 15187 ;; 15188 esac 15189 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15190 # soname into executable. Probably we can add versioning support to 15191 # collect2, so additional links can be useful in future. 15192 if test "$aix_use_runtimelinking" = yes; then 15193 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15194 # instead of lib<name>.a to let people know that these are not 15195 # typical AIX shared libraries. 15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15197 else 15198 # We preserve .a as extension for shared libraries through AIX4.2 15199 # and later when we are not doing run time linking. 15200 library_names_spec='${libname}${release}.a $libname.a' 15201 soname_spec='${libname}${release}${shared_ext}$major' 15202 fi 15203 shlibpath_var=LIBPATH 15204 fi 15205 ;; 15206 15207amigaos*) 15208 case $host_cpu in 15209 powerpc) 15210 # Since July 2007 AmigaOS4 officially supports .so libraries. 15211 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15213 ;; 15214 m68k) 15215 library_names_spec='$libname.ixlibrary $libname.a' 15216 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15217 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' 15218 ;; 15219 esac 15220 ;; 15221 15222beos*) 15223 library_names_spec='${libname}${shared_ext}' 15224 dynamic_linker="$host_os ld.so" 15225 shlibpath_var=LIBRARY_PATH 15226 ;; 15227 15228bsdi[45]*) 15229 version_type=linux 15230 need_version=no 15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15232 soname_spec='${libname}${release}${shared_ext}$major' 15233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15234 shlibpath_var=LD_LIBRARY_PATH 15235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15237 # the default ld.so.conf also contains /usr/contrib/lib and 15238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15239 # libtool to hard-code these into programs 15240 ;; 15241 15242cygwin* | mingw* | pw32* | cegcc*) 15243 version_type=windows 15244 shrext_cmds=".dll" 15245 need_version=no 15246 need_lib_prefix=no 15247 15248 case $GCC,$cc_basename in 15249 yes,*) 15250 # gcc 15251 library_names_spec='$libname.dll.a' 15252 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15253 postinstall_cmds='base_file=`basename \${file}`~ 15254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15255 dldir=$destdir/`dirname \$dlpath`~ 15256 test -d \$dldir || mkdir -p \$dldir~ 15257 $install_prog $dir/$dlname \$dldir/$dlname~ 15258 chmod a+x \$dldir/$dlname~ 15259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15261 fi' 15262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15263 dlpath=$dir/\$dldll~ 15264 $RM \$dlpath' 15265 shlibpath_overrides_runpath=yes 15266 15267 case $host_os in 15268 cygwin*) 15269 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15270 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15271 15272 ;; 15273 mingw* | cegcc*) 15274 # MinGW DLLs use traditional 'lib' prefix 15275 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15276 ;; 15277 pw32*) 15278 # pw32 DLLs use 'pw' prefix rather than 'lib' 15279 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15280 ;; 15281 esac 15282 dynamic_linker='Win32 ld.exe' 15283 ;; 15284 15285 *,cl*) 15286 # Native MSVC 15287 libname_spec='$name' 15288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15289 library_names_spec='${libname}.dll.lib' 15290 15291 case $build_os in 15292 mingw*) 15293 sys_lib_search_path_spec= 15294 lt_save_ifs=$IFS 15295 IFS=';' 15296 for lt_path in $LIB 15297 do 15298 IFS=$lt_save_ifs 15299 # Let DOS variable expansion print the short 8.3 style file name. 15300 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15301 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15302 done 15303 IFS=$lt_save_ifs 15304 # Convert to MSYS style. 15305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15306 ;; 15307 cygwin*) 15308 # Convert to unix form, then to dos form, then back to unix form 15309 # but this time dos style (no spaces!) so that the unix form looks 15310 # like /cygdrive/c/PROGRA~1:/cygdr... 15311 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15312 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15313 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15314 ;; 15315 *) 15316 sys_lib_search_path_spec="$LIB" 15317 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15318 # It is most probably a Windows format PATH. 15319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15320 else 15321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15322 fi 15323 # FIXME: find the short name or the path components, as spaces are 15324 # common. (e.g. "Program Files" -> "PROGRA~1") 15325 ;; 15326 esac 15327 15328 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15329 postinstall_cmds='base_file=`basename \${file}`~ 15330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15331 dldir=$destdir/`dirname \$dlpath`~ 15332 test -d \$dldir || mkdir -p \$dldir~ 15333 $install_prog $dir/$dlname \$dldir/$dlname' 15334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15335 dlpath=$dir/\$dldll~ 15336 $RM \$dlpath' 15337 shlibpath_overrides_runpath=yes 15338 dynamic_linker='Win32 link.exe' 15339 ;; 15340 15341 *) 15342 # Assume MSVC wrapper 15343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15344 dynamic_linker='Win32 ld.exe' 15345 ;; 15346 esac 15347 # FIXME: first we should search . and the directory the executable is in 15348 shlibpath_var=PATH 15349 ;; 15350 15351darwin* | rhapsody*) 15352 dynamic_linker="$host_os dyld" 15353 version_type=darwin 15354 need_lib_prefix=no 15355 need_version=no 15356 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15357 soname_spec='${libname}${release}${major}$shared_ext' 15358 shlibpath_overrides_runpath=yes 15359 shlibpath_var=DYLD_LIBRARY_PATH 15360 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15361 15362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15363 ;; 15364 15365dgux*) 15366 version_type=linux 15367 need_lib_prefix=no 15368 need_version=no 15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15370 soname_spec='${libname}${release}${shared_ext}$major' 15371 shlibpath_var=LD_LIBRARY_PATH 15372 ;; 15373 15374freebsd1*) 15375 dynamic_linker=no 15376 ;; 15377 15378freebsd* | dragonfly*) 15379 # DragonFly does not have aout. When/if they implement a new 15380 # versioning mechanism, adjust this. 15381 if test -x /usr/bin/objformat; then 15382 objformat=`/usr/bin/objformat` 15383 else 15384 case $host_os in 15385 freebsd[123]*) objformat=aout ;; 15386 *) objformat=elf ;; 15387 esac 15388 fi 15389 version_type=freebsd-$objformat 15390 case $version_type in 15391 freebsd-elf*) 15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15393 need_version=no 15394 need_lib_prefix=no 15395 ;; 15396 freebsd-*) 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15398 need_version=yes 15399 ;; 15400 esac 15401 shlibpath_var=LD_LIBRARY_PATH 15402 case $host_os in 15403 freebsd2*) 15404 shlibpath_overrides_runpath=yes 15405 ;; 15406 freebsd3.[01]* | freebsdelf3.[01]*) 15407 shlibpath_overrides_runpath=yes 15408 hardcode_into_libs=yes 15409 ;; 15410 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15411 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15412 shlibpath_overrides_runpath=no 15413 hardcode_into_libs=yes 15414 ;; 15415 *) # from 4.6 on, and DragonFly 15416 shlibpath_overrides_runpath=yes 15417 hardcode_into_libs=yes 15418 ;; 15419 esac 15420 ;; 15421 15422gnu*) 15423 version_type=linux 15424 need_lib_prefix=no 15425 need_version=no 15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15427 soname_spec='${libname}${release}${shared_ext}$major' 15428 shlibpath_var=LD_LIBRARY_PATH 15429 hardcode_into_libs=yes 15430 ;; 15431 15432haiku*) 15433 version_type=linux 15434 need_lib_prefix=no 15435 need_version=no 15436 dynamic_linker="$host_os runtime_loader" 15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15438 soname_spec='${libname}${release}${shared_ext}$major' 15439 shlibpath_var=LIBRARY_PATH 15440 shlibpath_overrides_runpath=yes 15441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15442 hardcode_into_libs=yes 15443 ;; 15444 15445hpux9* | hpux10* | hpux11*) 15446 # Give a soname corresponding to the major version so that dld.sl refuses to 15447 # link against other versions. 15448 version_type=sunos 15449 need_lib_prefix=no 15450 need_version=no 15451 case $host_cpu in 15452 ia64*) 15453 shrext_cmds='.so' 15454 hardcode_into_libs=yes 15455 dynamic_linker="$host_os dld.so" 15456 shlibpath_var=LD_LIBRARY_PATH 15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 15461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15462 else 15463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15464 fi 15465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15466 ;; 15467 hppa*64*) 15468 shrext_cmds='.sl' 15469 hardcode_into_libs=yes 15470 dynamic_linker="$host_os dld.sl" 15471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15474 soname_spec='${libname}${release}${shared_ext}$major' 15475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15477 ;; 15478 *) 15479 shrext_cmds='.sl' 15480 dynamic_linker="$host_os dld.sl" 15481 shlibpath_var=SHLIB_PATH 15482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15484 soname_spec='${libname}${release}${shared_ext}$major' 15485 ;; 15486 esac 15487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15488 postinstall_cmds='chmod 555 $lib' 15489 # or fails outright, so override atomically: 15490 install_override_mode=555 15491 ;; 15492 15493interix[3-9]*) 15494 version_type=linux 15495 need_lib_prefix=no 15496 need_version=no 15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15498 soname_spec='${libname}${release}${shared_ext}$major' 15499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15500 shlibpath_var=LD_LIBRARY_PATH 15501 shlibpath_overrides_runpath=no 15502 hardcode_into_libs=yes 15503 ;; 15504 15505irix5* | irix6* | nonstopux*) 15506 case $host_os in 15507 nonstopux*) version_type=nonstopux ;; 15508 *) 15509 if test "$lt_cv_prog_gnu_ld" = yes; then 15510 version_type=linux 15511 else 15512 version_type=irix 15513 fi ;; 15514 esac 15515 need_lib_prefix=no 15516 need_version=no 15517 soname_spec='${libname}${release}${shared_ext}$major' 15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15519 case $host_os in 15520 irix5* | nonstopux*) 15521 libsuff= shlibsuff= 15522 ;; 15523 *) 15524 case $LD in # libtool.m4 will add one of these switches to LD 15525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15526 libsuff= shlibsuff= libmagic=32-bit;; 15527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15528 libsuff=32 shlibsuff=N32 libmagic=N32;; 15529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15530 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15531 *) libsuff= shlibsuff= libmagic=never-match;; 15532 esac 15533 ;; 15534 esac 15535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15536 shlibpath_overrides_runpath=no 15537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15539 hardcode_into_libs=yes 15540 ;; 15541 15542# No shared lib support for Linux oldld, aout, or coff. 15543linux*oldld* | linux*aout* | linux*coff*) 15544 dynamic_linker=no 15545 ;; 15546 15547# This must be Linux ELF. 15548linux* | k*bsd*-gnu | kopensolaris*-gnu) 15549 version_type=linux 15550 need_lib_prefix=no 15551 need_version=no 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15553 soname_spec='${libname}${release}${shared_ext}$major' 15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15555 shlibpath_var=LD_LIBRARY_PATH 15556 shlibpath_overrides_runpath=no 15557 15558 # Some binutils ld are patched to set DT_RUNPATH 15559 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15560 $as_echo_n "(cached) " >&6 15561else 15562 lt_cv_shlibpath_overrides_runpath=no 15563 save_LDFLAGS=$LDFLAGS 15564 save_libdir=$libdir 15565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569 15570int 15571main () 15572{ 15573 15574 ; 15575 return 0; 15576} 15577_ACEOF 15578if ac_fn_cxx_try_link "$LINENO"; then : 15579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15580 lt_cv_shlibpath_overrides_runpath=yes 15581fi 15582fi 15583rm -f core conftest.err conftest.$ac_objext \ 15584 conftest$ac_exeext conftest.$ac_ext 15585 LDFLAGS=$save_LDFLAGS 15586 libdir=$save_libdir 15587 15588fi 15589 15590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15591 15592 # This implies no fast_install, which is unacceptable. 15593 # Some rework will be needed to allow for fast_install 15594 # before this can be enabled. 15595 hardcode_into_libs=yes 15596 15597 # Append ld.so.conf contents to the search path 15598 if test -f /etc/ld.so.conf; then 15599 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' ' '` 15600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15601 fi 15602 15603 # We used to test for /lib/ld.so.1 and disable shared libraries on 15604 # powerpc, because MkLinux only supported shared libraries with the 15605 # GNU dynamic linker. Since this was broken with cross compilers, 15606 # most powerpc-linux boxes support dynamic linking these days and 15607 # people can always --disable-shared, the test was removed, and we 15608 # assume the GNU/Linux dynamic linker is in use. 15609 dynamic_linker='GNU/Linux ld.so' 15610 ;; 15611 15612netbsd*) 15613 version_type=sunos 15614 need_lib_prefix=no 15615 need_version=no 15616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15619 dynamic_linker='NetBSD (a.out) ld.so' 15620 else 15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15622 soname_spec='${libname}${release}${shared_ext}$major' 15623 dynamic_linker='NetBSD ld.elf_so' 15624 fi 15625 shlibpath_var=LD_LIBRARY_PATH 15626 shlibpath_overrides_runpath=yes 15627 hardcode_into_libs=yes 15628 ;; 15629 15630newsos6) 15631 version_type=linux 15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15633 shlibpath_var=LD_LIBRARY_PATH 15634 shlibpath_overrides_runpath=yes 15635 ;; 15636 15637*nto* | *qnx*) 15638 version_type=qnx 15639 need_lib_prefix=no 15640 need_version=no 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15642 soname_spec='${libname}${release}${shared_ext}$major' 15643 shlibpath_var=LD_LIBRARY_PATH 15644 shlibpath_overrides_runpath=no 15645 hardcode_into_libs=yes 15646 dynamic_linker='ldqnx.so' 15647 ;; 15648 15649openbsd*) 15650 version_type=sunos 15651 sys_lib_dlsearch_path_spec="/usr/lib" 15652 need_lib_prefix=no 15653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15654 case $host_os in 15655 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15656 *) need_version=no ;; 15657 esac 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15660 shlibpath_var=LD_LIBRARY_PATH 15661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15662 case $host_os in 15663 openbsd2.[89] | openbsd2.[89].*) 15664 shlibpath_overrides_runpath=no 15665 ;; 15666 *) 15667 shlibpath_overrides_runpath=yes 15668 ;; 15669 esac 15670 else 15671 shlibpath_overrides_runpath=yes 15672 fi 15673 ;; 15674 15675os2*) 15676 libname_spec='$name' 15677 shrext_cmds=".dll" 15678 need_lib_prefix=no 15679 library_names_spec='$libname${shared_ext} $libname.a' 15680 dynamic_linker='OS/2 ld.exe' 15681 shlibpath_var=LIBPATH 15682 ;; 15683 15684osf3* | osf4* | osf5*) 15685 version_type=osf 15686 need_lib_prefix=no 15687 need_version=no 15688 soname_spec='${libname}${release}${shared_ext}$major' 15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15690 shlibpath_var=LD_LIBRARY_PATH 15691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15693 ;; 15694 15695rdos*) 15696 dynamic_linker=no 15697 ;; 15698 15699solaris*) 15700 version_type=linux 15701 need_lib_prefix=no 15702 need_version=no 15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15704 soname_spec='${libname}${release}${shared_ext}$major' 15705 shlibpath_var=LD_LIBRARY_PATH 15706 shlibpath_overrides_runpath=yes 15707 hardcode_into_libs=yes 15708 # ldd complains unless libraries are executable 15709 postinstall_cmds='chmod +x $lib' 15710 ;; 15711 15712sunos4*) 15713 version_type=sunos 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15716 shlibpath_var=LD_LIBRARY_PATH 15717 shlibpath_overrides_runpath=yes 15718 if test "$with_gnu_ld" = yes; then 15719 need_lib_prefix=no 15720 fi 15721 need_version=yes 15722 ;; 15723 15724sysv4 | sysv4.3*) 15725 version_type=linux 15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15727 soname_spec='${libname}${release}${shared_ext}$major' 15728 shlibpath_var=LD_LIBRARY_PATH 15729 case $host_vendor in 15730 sni) 15731 shlibpath_overrides_runpath=no 15732 need_lib_prefix=no 15733 runpath_var=LD_RUN_PATH 15734 ;; 15735 siemens) 15736 need_lib_prefix=no 15737 ;; 15738 motorola) 15739 need_lib_prefix=no 15740 need_version=no 15741 shlibpath_overrides_runpath=no 15742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15743 ;; 15744 esac 15745 ;; 15746 15747sysv4*MP*) 15748 if test -d /usr/nec ;then 15749 version_type=linux 15750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15751 soname_spec='$libname${shared_ext}.$major' 15752 shlibpath_var=LD_LIBRARY_PATH 15753 fi 15754 ;; 15755 15756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15757 version_type=freebsd-elf 15758 need_lib_prefix=no 15759 need_version=no 15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15761 soname_spec='${libname}${release}${shared_ext}$major' 15762 shlibpath_var=LD_LIBRARY_PATH 15763 shlibpath_overrides_runpath=yes 15764 hardcode_into_libs=yes 15765 if test "$with_gnu_ld" = yes; then 15766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15767 else 15768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15769 case $host_os in 15770 sco3.2v5*) 15771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15772 ;; 15773 esac 15774 fi 15775 sys_lib_dlsearch_path_spec='/usr/lib' 15776 ;; 15777 15778tpf*) 15779 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15780 version_type=linux 15781 need_lib_prefix=no 15782 need_version=no 15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15784 shlibpath_var=LD_LIBRARY_PATH 15785 shlibpath_overrides_runpath=no 15786 hardcode_into_libs=yes 15787 ;; 15788 15789uts4*) 15790 version_type=linux 15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15792 soname_spec='${libname}${release}${shared_ext}$major' 15793 shlibpath_var=LD_LIBRARY_PATH 15794 ;; 15795 15796*) 15797 dynamic_linker=no 15798 ;; 15799esac 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15801$as_echo "$dynamic_linker" >&6; } 15802test "$dynamic_linker" = no && can_build_shared=no 15803 15804variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15805if test "$GCC" = yes; then 15806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15807fi 15808 15809if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15811fi 15812if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15814fi 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15854$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15855hardcode_action_CXX= 15856if test -n "$hardcode_libdir_flag_spec_CXX" || 15857 test -n "$runpath_var_CXX" || 15858 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15859 15860 # We can hardcode non-existent directories. 15861 if test "$hardcode_direct_CXX" != no && 15862 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15863 # have to relink, otherwise we might link with an installed library 15864 # when we should be linking with a yet-to-be-installed one 15865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15866 test "$hardcode_minus_L_CXX" != no; then 15867 # Linking always hardcodes the temporary library directory. 15868 hardcode_action_CXX=relink 15869 else 15870 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15871 hardcode_action_CXX=immediate 15872 fi 15873else 15874 # We cannot hardcode anything, or else we can only hardcode existing 15875 # directories. 15876 hardcode_action_CXX=unsupported 15877fi 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15879$as_echo "$hardcode_action_CXX" >&6; } 15880 15881if test "$hardcode_action_CXX" = relink || 15882 test "$inherit_rpath_CXX" = yes; then 15883 # Fast installation is not supported 15884 enable_fast_install=no 15885elif test "$shlibpath_overrides_runpath" = yes || 15886 test "$enable_shared" = no; then 15887 # Fast installation is not necessary 15888 enable_fast_install=needless 15889fi 15890 15891 15892 15893 15894 15895 15896 15897 fi # test -n "$compiler" 15898 15899 CC=$lt_save_CC 15900 CFLAGS=$lt_save_CFLAGS 15901 LDCXX=$LD 15902 LD=$lt_save_LD 15903 GCC=$lt_save_GCC 15904 with_gnu_ld=$lt_save_with_gnu_ld 15905 lt_cv_path_LDCXX=$lt_cv_path_LD 15906 lt_cv_path_LD=$lt_save_path_LD 15907 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15908 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15909fi # test "$_lt_caught_CXX_error" != yes 15910 15911ac_ext=c 15912ac_cpp='$CPP $CPPFLAGS' 15913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15915ac_compiler_gnu=$ac_cv_c_compiler_gnu 15916 15917 15918 15919# Enable support for silent build rules 15920# Check whether --enable-silent-rules was given. 15921if test "${enable_silent_rules+set}" = set; then : 15922 enableval=$enable_silent_rules; 15923fi 15924 15925case $enable_silent_rules in 15926yes) AM_DEFAULT_VERBOSITY=0;; 15927no) AM_DEFAULT_VERBOSITY=1;; 15928*) AM_DEFAULT_VERBOSITY=1;; 15929esac 15930AM_BACKSLASH='\' 15931 15932 15933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 15934$as_echo_n "checking for main in -lc... " >&6; } 15935if ${ac_cv_lib_c_main+:} false; then : 15936 $as_echo_n "(cached) " >&6 15937else 15938 ac_check_lib_save_LIBS=$LIBS 15939LIBS="-lc $LIBS" 15940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15941/* end confdefs.h. */ 15942 15943 15944int 15945main () 15946{ 15947return main (); 15948 ; 15949 return 0; 15950} 15951_ACEOF 15952if ac_fn_c_try_link "$LINENO"; then : 15953 ac_cv_lib_c_main=yes 15954else 15955 ac_cv_lib_c_main=no 15956fi 15957rm -f core conftest.err conftest.$ac_objext \ 15958 conftest$ac_exeext conftest.$ac_ext 15959LIBS=$ac_check_lib_save_LIBS 15960fi 15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5 15962$as_echo "$ac_cv_lib_c_main" >&6; } 15963if test "x$ac_cv_lib_c_main" = xyes; then : 15964 cat >>confdefs.h <<_ACEOF 15965#define HAVE_LIBC 1 15966_ACEOF 15967 15968 LIBS="-lc $LIBS" 15969 15970fi 15971 15972 15973case "${host_os}" in 15974 cygwin* | mingw32* | beos* | darwin*) 15975 ;; 15976 *) 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 15978$as_echo_n "checking for sin in -lm... " >&6; } 15979if ${ac_cv_lib_m_sin+:} false; then : 15980 $as_echo_n "(cached) " >&6 15981else 15982 ac_check_lib_save_LIBS=$LIBS 15983LIBS="-lm $LIBS" 15984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15985/* end confdefs.h. */ 15986 15987/* Override any GCC internal prototype to avoid an error. 15988 Use char because int might match the return type of a GCC 15989 builtin and then its argument prototype would still apply. */ 15990#ifdef __cplusplus 15991extern "C" 15992#endif 15993char sin (); 15994int 15995main () 15996{ 15997return sin (); 15998 ; 15999 return 0; 16000} 16001_ACEOF 16002if ac_fn_c_try_link "$LINENO"; then : 16003 ac_cv_lib_m_sin=yes 16004else 16005 ac_cv_lib_m_sin=no 16006fi 16007rm -f core conftest.err conftest.$ac_objext \ 16008 conftest$ac_exeext conftest.$ac_ext 16009LIBS=$ac_check_lib_save_LIBS 16010fi 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16012$as_echo "$ac_cv_lib_m_sin" >&6; } 16013if test "x$ac_cv_lib_m_sin" = xyes; then : 16014 cat >>confdefs.h <<_ACEOF 16015#define HAVE_LIBM 1 16016_ACEOF 16017 16018 LIBS="-lm $LIBS" 16019 16020fi 16021 16022 ;; 16023esac 16024 16025tiff_libs_private= 16026 16027 16028for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16029do : 16030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16031ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16033 cat >>confdefs.h <<_ACEOF 16034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16035_ACEOF 16036 16037fi 16038 16039done 16040 16041 16042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16043$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16044if ${ac_cv_c_const+:} false; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048/* end confdefs.h. */ 16049 16050int 16051main () 16052{ 16053/* FIXME: Include the comments suggested by Paul. */ 16054#ifndef __cplusplus 16055 /* Ultrix mips cc rejects this. */ 16056 typedef int charset[2]; 16057 const charset cs; 16058 /* SunOS 4.1.1 cc rejects this. */ 16059 char const *const *pcpcc; 16060 char **ppc; 16061 /* NEC SVR4.0.2 mips cc rejects this. */ 16062 struct point {int x, y;}; 16063 static struct point const zero = {0,0}; 16064 /* AIX XL C 1.02.0.0 rejects this. 16065 It does not let you subtract one const X* pointer from another in 16066 an arm of an if-expression whose if-part is not a constant 16067 expression */ 16068 const char *g = "string"; 16069 pcpcc = &g + (g ? g-g : 0); 16070 /* HPUX 7.0 cc rejects these. */ 16071 ++pcpcc; 16072 ppc = (char**) pcpcc; 16073 pcpcc = (char const *const *) ppc; 16074 { /* SCO 3.2v4 cc rejects this. */ 16075 char *t; 16076 char const *s = 0 ? (char *) 0 : (char const *) 0; 16077 16078 *t++ = 0; 16079 if (s) return 0; 16080 } 16081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16082 int x[] = {25, 17}; 16083 const int *foo = &x[0]; 16084 ++foo; 16085 } 16086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16087 typedef const int *iptr; 16088 iptr p = 0; 16089 ++p; 16090 } 16091 { /* AIX XL C 1.02.0.0 rejects this saying 16092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16093 struct s { int j; const int *ap[3]; }; 16094 struct s *b; b->j = 5; 16095 } 16096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16097 const int foo = 10; 16098 if (!foo) return 0; 16099 } 16100 return !cs[0] && !zero.x; 16101#endif 16102 16103 ; 16104 return 0; 16105} 16106_ACEOF 16107if ac_fn_c_try_compile "$LINENO"; then : 16108 ac_cv_c_const=yes 16109else 16110 ac_cv_c_const=no 16111fi 16112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16113fi 16114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16115$as_echo "$ac_cv_c_const" >&6; } 16116if test $ac_cv_c_const = no; then 16117 16118$as_echo "#define const /**/" >>confdefs.h 16119 16120fi 16121 16122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16123$as_echo_n "checking for inline... " >&6; } 16124if ${ac_cv_c_inline+:} false; then : 16125 $as_echo_n "(cached) " >&6 16126else 16127 ac_cv_c_inline=no 16128for ac_kw in inline __inline__ __inline; do 16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16130/* end confdefs.h. */ 16131#ifndef __cplusplus 16132typedef int foo_t; 16133static $ac_kw foo_t static_foo () {return 0; } 16134$ac_kw foo_t foo () {return 0; } 16135#endif 16136 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO"; then : 16139 ac_cv_c_inline=$ac_kw 16140fi 16141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16142 test "$ac_cv_c_inline" != no && break 16143done 16144 16145fi 16146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16147$as_echo "$ac_cv_c_inline" >&6; } 16148 16149case $ac_cv_c_inline in 16150 inline | yes) ;; 16151 *) 16152 case $ac_cv_c_inline in 16153 no) ac_val=;; 16154 *) ac_val=$ac_cv_c_inline;; 16155 esac 16156 cat >>confdefs.h <<_ACEOF 16157#ifndef __cplusplus 16158#define inline $ac_val 16159#endif 16160_ACEOF 16161 ;; 16162esac 16163 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16165$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16166if ${ac_cv_c_bigendian+:} false; then : 16167 $as_echo_n "(cached) " >&6 16168else 16169 ac_cv_c_bigendian=unknown 16170 # See if we're dealing with a universal compiler. 16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172/* end confdefs.h. */ 16173#ifndef __APPLE_CC__ 16174 not a universal capable compiler 16175 #endif 16176 typedef int dummy; 16177 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 16181 # Check for potential -arch flags. It is not universal unless 16182 # there are at least two -arch flags with different values. 16183 ac_arch= 16184 ac_prev= 16185 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16186 if test -n "$ac_prev"; then 16187 case $ac_word in 16188 i?86 | x86_64 | ppc | ppc64) 16189 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16190 ac_arch=$ac_word 16191 else 16192 ac_cv_c_bigendian=universal 16193 break 16194 fi 16195 ;; 16196 esac 16197 ac_prev= 16198 elif test "x$ac_word" = "x-arch"; then 16199 ac_prev=arch 16200 fi 16201 done 16202fi 16203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16204 if test $ac_cv_c_bigendian = unknown; then 16205 # See if sys/param.h defines the BYTE_ORDER macro. 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208#include <sys/types.h> 16209 #include <sys/param.h> 16210 16211int 16212main () 16213{ 16214#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16215 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16216 && LITTLE_ENDIAN) 16217 bogus endian macros 16218 #endif 16219 16220 ; 16221 return 0; 16222} 16223_ACEOF 16224if ac_fn_c_try_compile "$LINENO"; then : 16225 # It does; now see whether it defined to BIG_ENDIAN or not. 16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228#include <sys/types.h> 16229 #include <sys/param.h> 16230 16231int 16232main () 16233{ 16234#if BYTE_ORDER != BIG_ENDIAN 16235 not big endian 16236 #endif 16237 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242if ac_fn_c_try_compile "$LINENO"; then : 16243 ac_cv_c_bigendian=yes 16244else 16245 ac_cv_c_bigendian=no 16246fi 16247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16248fi 16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16250 fi 16251 if test $ac_cv_c_bigendian = unknown; then 16252 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254/* end confdefs.h. */ 16255#include <limits.h> 16256 16257int 16258main () 16259{ 16260#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16261 bogus endian macros 16262 #endif 16263 16264 ; 16265 return 0; 16266} 16267_ACEOF 16268if ac_fn_c_try_compile "$LINENO"; then : 16269 # It does; now see whether it defined to _BIG_ENDIAN or not. 16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16271/* end confdefs.h. */ 16272#include <limits.h> 16273 16274int 16275main () 16276{ 16277#ifndef _BIG_ENDIAN 16278 not big endian 16279 #endif 16280 16281 ; 16282 return 0; 16283} 16284_ACEOF 16285if ac_fn_c_try_compile "$LINENO"; then : 16286 ac_cv_c_bigendian=yes 16287else 16288 ac_cv_c_bigendian=no 16289fi 16290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16291fi 16292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16293 fi 16294 if test $ac_cv_c_bigendian = unknown; then 16295 # Compile a test program. 16296 if test "$cross_compiling" = yes; then : 16297 # Try to guess by grepping values from an object file. 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300short int ascii_mm[] = 16301 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16302 short int ascii_ii[] = 16303 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16304 int use_ascii (int i) { 16305 return ascii_mm[i] + ascii_ii[i]; 16306 } 16307 short int ebcdic_ii[] = 16308 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16309 short int ebcdic_mm[] = 16310 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16311 int use_ebcdic (int i) { 16312 return ebcdic_mm[i] + ebcdic_ii[i]; 16313 } 16314 extern int foo; 16315 16316int 16317main () 16318{ 16319return use_ascii (foo) == use_ebcdic (foo); 16320 ; 16321 return 0; 16322} 16323_ACEOF 16324if ac_fn_c_try_compile "$LINENO"; then : 16325 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16326 ac_cv_c_bigendian=yes 16327 fi 16328 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16329 if test "$ac_cv_c_bigendian" = unknown; then 16330 ac_cv_c_bigendian=no 16331 else 16332 # finding both strings is unlikely to happen, but who knows? 16333 ac_cv_c_bigendian=unknown 16334 fi 16335 fi 16336fi 16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341$ac_includes_default 16342int 16343main () 16344{ 16345 16346 /* Are we little or big endian? From Harbison&Steele. */ 16347 union 16348 { 16349 long int l; 16350 char c[sizeof (long int)]; 16351 } u; 16352 u.l = 1; 16353 return u.c[sizeof (long int) - 1] == 1; 16354 16355 ; 16356 return 0; 16357} 16358_ACEOF 16359if ac_fn_c_try_run "$LINENO"; then : 16360 ac_cv_c_bigendian=no 16361else 16362 ac_cv_c_bigendian=yes 16363fi 16364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16365 conftest.$ac_objext conftest.beam conftest.$ac_ext 16366fi 16367 16368 fi 16369fi 16370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16371$as_echo "$ac_cv_c_bigendian" >&6; } 16372 case $ac_cv_c_bigendian in #( 16373 yes) 16374 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16375;; #( 16376 no) 16377 ;; #( 16378 universal) 16379 16380$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16381 16382 ;; #( 16383 *) 16384 as_fn_error $? "unknown endianness 16385 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16386 esac 16387 16388ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16389if test "x$ac_cv_type_off_t" = xyes; then : 16390 16391else 16392 16393cat >>confdefs.h <<_ACEOF 16394#define off_t long int 16395_ACEOF 16396 16397fi 16398 16399ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16400if test "x$ac_cv_type_size_t" = xyes; then : 16401 16402else 16403 16404cat >>confdefs.h <<_ACEOF 16405#define size_t unsigned int 16406_ACEOF 16407 16408fi 16409 16410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16411$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16412if ${ac_cv_header_time+:} false; then : 16413 $as_echo_n "(cached) " >&6 16414else 16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16416/* end confdefs.h. */ 16417#include <sys/types.h> 16418#include <sys/time.h> 16419#include <time.h> 16420 16421int 16422main () 16423{ 16424if ((struct tm *) 0) 16425return 0; 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_compile "$LINENO"; then : 16431 ac_cv_header_time=yes 16432else 16433 ac_cv_header_time=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16438$as_echo "$ac_cv_header_time" >&6; } 16439if test $ac_cv_header_time = yes; then 16440 16441$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16442 16443fi 16444 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16446$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16447if ${ac_cv_struct_tm+:} false; then : 16448 $as_echo_n "(cached) " >&6 16449else 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451/* end confdefs.h. */ 16452#include <sys/types.h> 16453#include <time.h> 16454 16455int 16456main () 16457{ 16458struct tm tm; 16459 int *p = &tm.tm_sec; 16460 return !p; 16461 ; 16462 return 0; 16463} 16464_ACEOF 16465if ac_fn_c_try_compile "$LINENO"; then : 16466 ac_cv_struct_tm=time.h 16467else 16468 ac_cv_struct_tm=sys/time.h 16469fi 16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16471fi 16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16473$as_echo "$ac_cv_struct_tm" >&6; } 16474if test $ac_cv_struct_tm = sys/time.h; then 16475 16476$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16477 16478fi 16479 16480 16481 16482# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 16483# The cast to long int works around a bug in the HP C Compiler 16484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16486# This bug is HP SR number 8606223364. 16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 16488$as_echo_n "checking size of signed short... " >&6; } 16489if ${ac_cv_sizeof_signed_short+:} false; then : 16490 $as_echo_n "(cached) " >&6 16491else 16492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 16493 16494else 16495 if test "$ac_cv_type_signed_short" = yes; then 16496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16498as_fn_error 77 "cannot compute sizeof (signed short) 16499See \`config.log' for more details" "$LINENO" 5; } 16500 else 16501 ac_cv_sizeof_signed_short=0 16502 fi 16503fi 16504 16505fi 16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 16507$as_echo "$ac_cv_sizeof_signed_short" >&6; } 16508 16509 16510 16511cat >>confdefs.h <<_ACEOF 16512#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 16513_ACEOF 16514 16515 16516 16517# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 16518# The cast to long int works around a bug in the HP C Compiler 16519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16521# This bug is HP SR number 8606223364. 16522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 16523$as_echo_n "checking size of unsigned short... " >&6; } 16524if ${ac_cv_sizeof_unsigned_short+:} false; then : 16525 $as_echo_n "(cached) " >&6 16526else 16527 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 16528 16529else 16530 if test "$ac_cv_type_unsigned_short" = yes; then 16531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16533as_fn_error 77 "cannot compute sizeof (unsigned short) 16534See \`config.log' for more details" "$LINENO" 5; } 16535 else 16536 ac_cv_sizeof_unsigned_short=0 16537 fi 16538fi 16539 16540fi 16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 16542$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 16543 16544 16545 16546cat >>confdefs.h <<_ACEOF 16547#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 16548_ACEOF 16549 16550 16551 16552# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 16553# The cast to long int works around a bug in the HP C Compiler 16554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16556# This bug is HP SR number 8606223364. 16557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 16558$as_echo_n "checking size of signed int... " >&6; } 16559if ${ac_cv_sizeof_signed_int+:} false; then : 16560 $as_echo_n "(cached) " >&6 16561else 16562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 16563 16564else 16565 if test "$ac_cv_type_signed_int" = yes; then 16566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16568as_fn_error 77 "cannot compute sizeof (signed int) 16569See \`config.log' for more details" "$LINENO" 5; } 16570 else 16571 ac_cv_sizeof_signed_int=0 16572 fi 16573fi 16574 16575fi 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 16577$as_echo "$ac_cv_sizeof_signed_int" >&6; } 16578 16579 16580 16581cat >>confdefs.h <<_ACEOF 16582#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 16583_ACEOF 16584 16585 16586 16587# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 16588# The cast to long int works around a bug in the HP C Compiler 16589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16591# This bug is HP SR number 8606223364. 16592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 16593$as_echo_n "checking size of unsigned int... " >&6; } 16594if ${ac_cv_sizeof_unsigned_int+:} false; then : 16595 $as_echo_n "(cached) " >&6 16596else 16597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 16598 16599else 16600 if test "$ac_cv_type_unsigned_int" = yes; then 16601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16603as_fn_error 77 "cannot compute sizeof (unsigned int) 16604See \`config.log' for more details" "$LINENO" 5; } 16605 else 16606 ac_cv_sizeof_unsigned_int=0 16607 fi 16608fi 16609 16610fi 16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 16612$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 16613 16614 16615 16616cat >>confdefs.h <<_ACEOF 16617#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 16618_ACEOF 16619 16620 16621 16622# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16623# The cast to long int works around a bug in the HP C Compiler 16624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16626# This bug is HP SR number 8606223364. 16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16628$as_echo_n "checking size of signed long... " >&6; } 16629if ${ac_cv_sizeof_signed_long+:} false; then : 16630 $as_echo_n "(cached) " >&6 16631else 16632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16633 16634else 16635 if test "$ac_cv_type_signed_long" = yes; then 16636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16638as_fn_error 77 "cannot compute sizeof (signed long) 16639See \`config.log' for more details" "$LINENO" 5; } 16640 else 16641 ac_cv_sizeof_signed_long=0 16642 fi 16643fi 16644 16645fi 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16647$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16648 16649 16650 16651cat >>confdefs.h <<_ACEOF 16652#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16653_ACEOF 16654 16655 16656 16657# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16658# The cast to long int works around a bug in the HP C Compiler 16659# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16660# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16661# This bug is HP SR number 8606223364. 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16663$as_echo_n "checking size of unsigned long... " >&6; } 16664if ${ac_cv_sizeof_unsigned_long+:} false; then : 16665 $as_echo_n "(cached) " >&6 16666else 16667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16668 16669else 16670 if test "$ac_cv_type_unsigned_long" = yes; then 16671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16673as_fn_error 77 "cannot compute sizeof (unsigned long) 16674See \`config.log' for more details" "$LINENO" 5; } 16675 else 16676 ac_cv_sizeof_unsigned_long=0 16677 fi 16678fi 16679 16680fi 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16682$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16683 16684 16685 16686cat >>confdefs.h <<_ACEOF 16687#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16688_ACEOF 16689 16690 16691 16692# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16693# If 'long long' is not supported then the value defined is zero. 16694# The cast to long int works around a bug in the HP C Compiler 16695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16697# This bug is HP SR number 8606223364. 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16699$as_echo_n "checking size of signed long long... " >&6; } 16700if ${ac_cv_sizeof_signed_long_long+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 16704 16705else 16706 if test "$ac_cv_type_signed_long_long" = yes; then 16707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16709as_fn_error 77 "cannot compute sizeof (signed long long) 16710See \`config.log' for more details" "$LINENO" 5; } 16711 else 16712 ac_cv_sizeof_signed_long_long=0 16713 fi 16714fi 16715 16716fi 16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 16718$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 16719 16720 16721 16722cat >>confdefs.h <<_ACEOF 16723#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 16724_ACEOF 16725 16726 16727 16728# Obtain size of a 'unsigned long long' and define as 16729# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 16730# supported then the value defined is zero. 16731# The cast to long int works around a bug in the HP C Compiler 16732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16734# This bug is HP SR number 8606223364. 16735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 16736$as_echo_n "checking size of unsigned long long... " >&6; } 16737if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 16738 $as_echo_n "(cached) " >&6 16739else 16740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 16741 16742else 16743 if test "$ac_cv_type_unsigned_long_long" = yes; then 16744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16746as_fn_error 77 "cannot compute sizeof (unsigned long long) 16747See \`config.log' for more details" "$LINENO" 5; } 16748 else 16749 ac_cv_sizeof_unsigned_long_long=0 16750 fi 16751fi 16752 16753fi 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 16755$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 16756 16757 16758 16759cat >>confdefs.h <<_ACEOF 16760#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 16761_ACEOF 16762 16763 16764 16765# Obtain the size of an 'unsigned char *' and define as 16766# SIZEOF_UNSIGNED_CHAR_P. Result is available in 16767# ac_cv_sizeof_unsigned_char_p. 16768# The cast to long int works around a bug in the HP C Compiler 16769# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16770# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16771# This bug is HP SR number 8606223364. 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 16773$as_echo_n "checking size of unsigned char *... " >&6; } 16774if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 16778 16779else 16780 if test "$ac_cv_type_unsigned_char_p" = yes; then 16781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16783as_fn_error 77 "cannot compute sizeof (unsigned char *) 16784See \`config.log' for more details" "$LINENO" 5; } 16785 else 16786 ac_cv_sizeof_unsigned_char_p=0 16787 fi 16788fi 16789 16790fi 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 16792$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 16793 16794 16795 16796cat >>confdefs.h <<_ACEOF 16797#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 16798_ACEOF 16799 16800 16801 16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 16803$as_echo_n "checking for signed 8-bit type... " >&6; } 16804INT8_T='signed char' 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 16806$as_echo "$INT8_T" >&6; } 16807 16808cat >>confdefs.h <<_ACEOF 16809#define TIFF_INT8_T $INT8_T 16810_ACEOF 16811 16812 16813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 16814$as_echo_n "checking for unsigned 8-bit type... " >&6; } 16815UINT8_T='unsigned char' 16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 16817$as_echo "$UINT8_T" >&6; } 16818 16819cat >>confdefs.h <<_ACEOF 16820#define TIFF_UINT8_T $UINT8_T 16821_ACEOF 16822 16823 16824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 16825$as_echo_n "checking for signed 16-bit type... " >&6; } 16826INT16_T='signed short' 16827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 16828$as_echo "$INT16_T" >&6; } 16829 16830cat >>confdefs.h <<_ACEOF 16831#define TIFF_INT16_T $INT16_T 16832_ACEOF 16833 16834 16835 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 16837$as_echo_n "checking for unsigned 16-bit type... " >&6; } 16838UINT16_T='unsigned short' 16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 16840$as_echo "$UINT16_T" >&6; } 16841 16842cat >>confdefs.h <<_ACEOF 16843#define TIFF_UINT16_T $UINT16_T 16844_ACEOF 16845 16846 16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 16848$as_echo_n "checking for signed 32-bit type... " >&6; } 16849INT32_T='none' 16850INT32_FORMAT='none' 16851if test $ac_cv_sizeof_signed_int -eq 4 16852then 16853 INT32_T='signed int' 16854 INT32_FORMAT='"%d"' 16855elif test $ac_cv_sizeof_signed_long -eq 4 16856then 16857 INT32_T='signed long' 16858 INT32_FORMAT='"%ld"' 16859fi 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 16861$as_echo "$INT32_T" >&6; } 16862 16863cat >>confdefs.h <<_ACEOF 16864#define TIFF_INT32_T $INT32_T 16865_ACEOF 16866 16867 16868cat >>confdefs.h <<_ACEOF 16869#define TIFF_INT32_FORMAT $INT32_FORMAT 16870_ACEOF 16871 16872 16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 16874$as_echo_n "checking for unsigned 32-bit type... " >&6; } 16875UINT32_T='none' 16876UINT32_FORMAT='none' 16877if test $ac_cv_sizeof_unsigned_int -eq 4 16878then 16879 UINT32_T='unsigned int' 16880 UINT32_FORMAT='"%u"' 16881elif test $ac_cv_sizeof_unsigned_long -eq 4 16882then 16883 UINT32_T='unsigned long' 16884 UINT32_FORMAT='"%lu"' 16885fi 16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 16887$as_echo "$UINT32_T" >&6; } 16888 16889cat >>confdefs.h <<_ACEOF 16890#define TIFF_UINT32_T $UINT32_T 16891_ACEOF 16892 16893 16894cat >>confdefs.h <<_ACEOF 16895#define TIFF_UINT32_FORMAT $UINT32_FORMAT 16896_ACEOF 16897 16898 16899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 16900$as_echo_n "checking for signed 64-bit type... " >&6; } 16901INT64_T='none' 16902INT64_FORMAT='none' 16903if test $ac_cv_sizeof_signed_long -eq 8 16904then 16905 INT64_T='signed long' 16906 INT64_FORMAT='"%ld"' 16907elif test $ac_cv_sizeof_signed_long_long -eq 8 16908then 16909 INT64_FORMAT='"%lld"' 16910 INT64_T='signed long long' 16911fi 16912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 16913$as_echo "$INT64_T" >&6; } 16914 16915cat >>confdefs.h <<_ACEOF 16916#define TIFF_INT64_T $INT64_T 16917_ACEOF 16918 16919 16920cat >>confdefs.h <<_ACEOF 16921#define TIFF_INT64_FORMAT $INT64_FORMAT 16922_ACEOF 16923 16924 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 16926$as_echo_n "checking for unsigned 64-bit type... " >&6; } 16927UINT64_T='none' 16928UINT64_FORMAT='none' 16929if test $ac_cv_sizeof_unsigned_long -eq 8 16930then 16931 UINT64_T='unsigned long' 16932 UINT64_FORMAT='"%lu"' 16933elif test $ac_cv_sizeof_unsigned_long_long -eq 8 16934then 16935 UINT64_T='unsigned long long' 16936 UINT64_FORMAT='"%llu"' 16937fi 16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 16939$as_echo "$UINT64_T" >&6; } 16940 16941cat >>confdefs.h <<_ACEOF 16942#define TIFF_UINT64_T $UINT64_T 16943_ACEOF 16944 16945 16946cat >>confdefs.h <<_ACEOF 16947#define TIFF_UINT64_FORMAT $UINT64_FORMAT 16948_ACEOF 16949 16950 16951# Determine TIFF equivalent of ssize_t 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 16953$as_echo_n "checking for signed size type... " >&6; } 16954SSIZE_T='unknown' 16955SSIZE_FORMAT='unknown' 16956if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 16957then 16958 SSIZE_T='signed long' 16959 SSIZE_FORMAT='"%ld"' 16960elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 16961then 16962 SSIZE_T='signed long long' 16963 SSIZE_FORMAT='"%lld"' 16964fi 16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 16966$as_echo "$SSIZE_T" >&6; } 16967 16968cat >>confdefs.h <<_ACEOF 16969#define TIFF_SSIZE_T $SSIZE_T 16970_ACEOF 16971 16972 16973cat >>confdefs.h <<_ACEOF 16974#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 16975_ACEOF 16976 16977 16978# Determine the type to use for the difference between two pointers. 16979# We will default to the POSIX ptrdiff_t if it is available, but will 16980# be prepared for the case when it is not. 16981PTRDIFF_T='unknown' 16982PTRDIFF_FORMAT='"%ld"' 16983ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16984if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16985 PTRDIFF_T=ptrdiff_t 16986fi 16987 16988if test $PTRDIFF_T = unknown 16989then 16990 PTRDIFF_T=$SSIZE_T 16991 PTRDIFF_FORMAT=$SSIZE_FORMAT 16992fi 16993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 16994$as_echo_n "checking for pointer difference type... " >&6; } 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 16996$as_echo "$PTRDIFF_T" >&6; } 16997 16998cat >>confdefs.h <<_ACEOF 16999#define TIFF_PTRDIFF_T $PTRDIFF_T 17000_ACEOF 17001 17002 17003cat >>confdefs.h <<_ACEOF 17004#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17005_ACEOF 17006 17007 17008ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17009#if HAVE_INTTYPES_H 17010# include <inttypes.h> 17011#endif 17012 17013" 17014if test "x$ac_cv_type_int8" = xyes; then : 17015 17016cat >>confdefs.h <<_ACEOF 17017#define HAVE_INT8 1 17018_ACEOF 17019 17020 17021fi 17022ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17023#if HAVE_INTTYPES_H 17024# include <inttypes.h> 17025#endif 17026 17027" 17028if test "x$ac_cv_type_int16" = xyes; then : 17029 17030cat >>confdefs.h <<_ACEOF 17031#define HAVE_INT16 1 17032_ACEOF 17033 17034 17035fi 17036ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17037#if HAVE_INTTYPES_H 17038# include <inttypes.h> 17039#endif 17040 17041" 17042if test "x$ac_cv_type_int32" = xyes; then : 17043 17044cat >>confdefs.h <<_ACEOF 17045#define HAVE_INT32 1 17046_ACEOF 17047 17048 17049fi 17050 17051 17052for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17053do : 17054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17055ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17056if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17057 cat >>confdefs.h <<_ACEOF 17058#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17059_ACEOF 17060 17061fi 17062done 17063 17064 17065ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17066if test "x$ac_cv_func_getopt" = xyes; then : 17067 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17068 17069else 17070 case " $LIBOBJS " in 17071 *" getopt.$ac_objext "* ) ;; 17072 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17073 ;; 17074esac 17075 17076fi 17077 17078 17079ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17080if test "x$ac_cv_func_strcasecmp" = xyes; then : 17081 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17082 17083else 17084 case " $LIBOBJS " in 17085 *" strcasecmp.$ac_objext "* ) ;; 17086 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17087 ;; 17088esac 17089 17090fi 17091 17092 17093ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17094if test "x$ac_cv_func_strtoul" = xyes; then : 17095 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17096 17097else 17098 case " $LIBOBJS " in 17099 *" strtoul.$ac_objext "* ) ;; 17100 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17101 ;; 17102esac 17103 17104fi 17105 17106 17107ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17108if test "x$ac_cv_func_strtoull" = xyes; then : 17109 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17110 17111else 17112 case " $LIBOBJS " in 17113 *" strtoull.$ac_objext "* ) ;; 17114 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17115 ;; 17116esac 17117 17118fi 17119 17120 17121ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17122if test "x$ac_cv_func_lfind" = xyes; then : 17123 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17124 17125else 17126 case " $LIBOBJS " in 17127 *" lfind.$ac_objext "* ) ;; 17128 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17129 ;; 17130esac 17131 17132fi 17133 17134 17135 17136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17137$as_echo_n "checking native cpu bit order... " >&6; } 17138case "$target_cpu" in 17139 i*86*|x86_64*) 17140 HOST_FILLORDER=FILLORDER_LSB2MSB 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17142$as_echo "lsb2msb" >&6; } 17143 ;; 17144 *) 17145 HOST_FILLORDER=FILLORDER_MSB2LSB 17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17147$as_echo "msb2lsb" >&6; } 17148 ;; 17149esac 17150 17151cat >>confdefs.h <<_ACEOF 17152#define HOST_FILLORDER $HOST_FILLORDER 17153_ACEOF 17154 17155 17156if test "$ac_cv_c_bigendian" = yes ; then 17157 HOST_BIGENDIAN=1 17158else 17159 HOST_BIGENDIAN=0 17160fi 17161 17162cat >>confdefs.h <<_ACEOF 17163#define HOST_BIGENDIAN $HOST_BIGENDIAN 17164_ACEOF 17165 17166 17167#_POSIX_C_SOURCE=2 17168#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17169 17170HAVE_IEEEFP=1 17171 17172cat >>confdefs.h <<_ACEOF 17173#define HAVE_IEEEFP $HAVE_IEEEFP 17174_ACEOF 17175 17176 17177 17178# Check whether --enable-rpath was given. 17179if test "${enable_rpath+set}" = set; then : 17180 enableval=$enable_rpath; HAVE_RPATH=$enableval 17181else 17182 HAVE_RPATH=no 17183fi 17184 17185 if test "$HAVE_RPATH" = "yes"; then 17186 HAVE_RPATH_TRUE= 17187 HAVE_RPATH_FALSE='#' 17188else 17189 HAVE_RPATH_TRUE='#' 17190 HAVE_RPATH_FALSE= 17191fi 17192 17193 17194 17195# Check whether --enable-largefile was given. 17196if test "${enable_largefile+set}" = set; then : 17197 enableval=$enable_largefile; 17198fi 17199 17200if test "$enable_largefile" != no; then 17201 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17203$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17204if ${ac_cv_sys_largefile_CC+:} false; then : 17205 $as_echo_n "(cached) " >&6 17206else 17207 ac_cv_sys_largefile_CC=no 17208 if test "$GCC" != yes; then 17209 ac_save_CC=$CC 17210 while :; do 17211 # IRIX 6.2 and later do not support large files by default, 17212 # so use the C compiler's -n32 option if that helps. 17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17214/* end confdefs.h. */ 17215#include <sys/types.h> 17216 /* Check that off_t can represent 2**63 - 1 correctly. 17217 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17218 since some C++ compilers masquerading as C compilers 17219 incorrectly reject 9223372036854775807. */ 17220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17222 && LARGE_OFF_T % 2147483647 == 1) 17223 ? 1 : -1]; 17224int 17225main () 17226{ 17227 17228 ; 17229 return 0; 17230} 17231_ACEOF 17232 if ac_fn_c_try_compile "$LINENO"; then : 17233 break 17234fi 17235rm -f core conftest.err conftest.$ac_objext 17236 CC="$CC -n32" 17237 if ac_fn_c_try_compile "$LINENO"; then : 17238 ac_cv_sys_largefile_CC=' -n32'; break 17239fi 17240rm -f core conftest.err conftest.$ac_objext 17241 break 17242 done 17243 CC=$ac_save_CC 17244 rm -f conftest.$ac_ext 17245 fi 17246fi 17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17248$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17249 if test "$ac_cv_sys_largefile_CC" != no; then 17250 CC=$CC$ac_cv_sys_largefile_CC 17251 fi 17252 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17254$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17255if ${ac_cv_sys_file_offset_bits+:} false; then : 17256 $as_echo_n "(cached) " >&6 17257else 17258 while :; do 17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17260/* end confdefs.h. */ 17261#include <sys/types.h> 17262 /* Check that off_t can represent 2**63 - 1 correctly. 17263 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17264 since some C++ compilers masquerading as C compilers 17265 incorrectly reject 9223372036854775807. */ 17266#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17268 && LARGE_OFF_T % 2147483647 == 1) 17269 ? 1 : -1]; 17270int 17271main () 17272{ 17273 17274 ; 17275 return 0; 17276} 17277_ACEOF 17278if ac_fn_c_try_compile "$LINENO"; then : 17279 ac_cv_sys_file_offset_bits=no; break 17280fi 17281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17283/* end confdefs.h. */ 17284#define _FILE_OFFSET_BITS 64 17285#include <sys/types.h> 17286 /* Check that off_t can represent 2**63 - 1 correctly. 17287 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17288 since some C++ compilers masquerading as C compilers 17289 incorrectly reject 9223372036854775807. */ 17290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17292 && LARGE_OFF_T % 2147483647 == 1) 17293 ? 1 : -1]; 17294int 17295main () 17296{ 17297 17298 ; 17299 return 0; 17300} 17301_ACEOF 17302if ac_fn_c_try_compile "$LINENO"; then : 17303 ac_cv_sys_file_offset_bits=64; break 17304fi 17305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17306 ac_cv_sys_file_offset_bits=unknown 17307 break 17308done 17309fi 17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17311$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17312case $ac_cv_sys_file_offset_bits in #( 17313 no | unknown) ;; 17314 *) 17315cat >>confdefs.h <<_ACEOF 17316#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17317_ACEOF 17318;; 17319esac 17320rm -rf conftest* 17321 if test $ac_cv_sys_file_offset_bits = unknown; then 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17323$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17324if ${ac_cv_sys_large_files+:} false; then : 17325 $as_echo_n "(cached) " >&6 17326else 17327 while :; do 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330#include <sys/types.h> 17331 /* Check that off_t can represent 2**63 - 1 correctly. 17332 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17333 since some C++ compilers masquerading as C compilers 17334 incorrectly reject 9223372036854775807. */ 17335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17337 && LARGE_OFF_T % 2147483647 == 1) 17338 ? 1 : -1]; 17339int 17340main () 17341{ 17342 17343 ; 17344 return 0; 17345} 17346_ACEOF 17347if ac_fn_c_try_compile "$LINENO"; then : 17348 ac_cv_sys_large_files=no; break 17349fi 17350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17352/* end confdefs.h. */ 17353#define _LARGE_FILES 1 17354#include <sys/types.h> 17355 /* Check that off_t can represent 2**63 - 1 correctly. 17356 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17357 since some C++ compilers masquerading as C compilers 17358 incorrectly reject 9223372036854775807. */ 17359#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17361 && LARGE_OFF_T % 2147483647 == 1) 17362 ? 1 : -1]; 17363int 17364main () 17365{ 17366 17367 ; 17368 return 0; 17369} 17370_ACEOF 17371if ac_fn_c_try_compile "$LINENO"; then : 17372 ac_cv_sys_large_files=1; break 17373fi 17374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17375 ac_cv_sys_large_files=unknown 17376 break 17377done 17378fi 17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17380$as_echo "$ac_cv_sys_large_files" >&6; } 17381case $ac_cv_sys_large_files in #( 17382 no | unknown) ;; 17383 *) 17384cat >>confdefs.h <<_ACEOF 17385#define _LARGE_FILES $ac_cv_sys_large_files 17386_ACEOF 17387;; 17388esac 17389rm -rf conftest* 17390 fi 17391fi 17392 17393 17394 17395LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 17396 17397 17398# Check whether --with-docdir was given. 17399if test "${with_docdir+set}" = set; then : 17400 withval=$with_docdir; 17401fi 17402 17403if test "x$with_docdir" != "x" ; then 17404 LIBTIFF_DOCDIR=$with_docdir 17405fi 17406 17407 17408 17409 17410# Check whether --enable-ccitt was given. 17411if test "${enable_ccitt+set}" = set; then : 17412 enableval=$enable_ccitt; HAVE_CCITT=$enableval 17413else 17414 HAVE_CCITT=yes 17415fi 17416 17417 17418if test "$HAVE_CCITT" = "yes" ; then 17419 17420$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 17421 17422fi 17423 17424# Check whether --enable-packbits was given. 17425if test "${enable_packbits+set}" = set; then : 17426 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 17427else 17428 HAVE_PACKBITS=yes 17429fi 17430 17431 17432if test "$HAVE_PACKBITS" = "yes" ; then 17433 17434$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 17435 17436fi 17437 17438# Check whether --enable-lzw was given. 17439if test "${enable_lzw+set}" = set; then : 17440 enableval=$enable_lzw; HAVE_LZW=$enableval 17441else 17442 HAVE_LZW=yes 17443fi 17444 17445 17446if test "$HAVE_LZW" = "yes" ; then 17447 17448$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 17449 17450fi 17451 17452# Check whether --enable-thunder was given. 17453if test "${enable_thunder+set}" = set; then : 17454 enableval=$enable_thunder; HAVE_THUNDER=$enableval 17455else 17456 HAVE_THUNDER=yes 17457fi 17458 17459 17460if test "$HAVE_THUNDER" = "yes" ; then 17461 17462$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 17463 17464fi 17465 17466HAVE_NEXT=yes 17467 17468# Check whether --enable-next was given. 17469if test "${enable_next+set}" = set; then : 17470 enableval=$enable_next; HAVE_NEXT=$enableval 17471else 17472 HAVE_NEXT=yes 17473fi 17474 17475 17476if test "$HAVE_NEXT" = "yes" ; then 17477 17478$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 17479 17480fi 17481 17482# Check whether --enable-logluv was given. 17483if test "${enable_logluv+set}" = set; then : 17484 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 17485else 17486 HAVE_LOGLUV=yes 17487fi 17488 17489 17490if test "$HAVE_LOGLUV" = "yes" ; then 17491 17492$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 17493 17494fi 17495 17496 17497# Check whether --enable-mdi was given. 17498if test "${enable_mdi+set}" = set; then : 17499 enableval=$enable_mdi; HAVE_MDI=$enableval 17500else 17501 HAVE_MDI=yes 17502fi 17503 17504 17505if test "$HAVE_MDI" = "yes" ; then 17506 17507$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 17508 17509fi 17510 17511 17512HAVE_ZLIB=no 17513 17514# Check whether --enable-zlib was given. 17515if test "${enable_zlib+set}" = set; then : 17516 enableval=$enable_zlib; 17517fi 17518 17519 17520# Check whether --with-zlib-include-dir was given. 17521if test "${with_zlib_include_dir+set}" = set; then : 17522 withval=$with_zlib_include_dir; 17523fi 17524 17525 17526# Check whether --with-zlib-lib-dir was given. 17527if test "${with_zlib_lib_dir+set}" = set; then : 17528 withval=$with_zlib_lib_dir; 17529fi 17530 17531 17532if test "x$enable_zlib" != "xno" ; then 17533 17534 if test "x$with_zlib_lib_dir" != "x" ; then 17535 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 17536 fi 17537 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 17539$as_echo_n "checking for inflateEnd in -lz... " >&6; } 17540if ${ac_cv_lib_z_inflateEnd+:} false; then : 17541 $as_echo_n "(cached) " >&6 17542else 17543 ac_check_lib_save_LIBS=$LIBS 17544LIBS="-lz $LIBS" 17545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17546/* end confdefs.h. */ 17547 17548/* Override any GCC internal prototype to avoid an error. 17549 Use char because int might match the return type of a GCC 17550 builtin and then its argument prototype would still apply. */ 17551#ifdef __cplusplus 17552extern "C" 17553#endif 17554char inflateEnd (); 17555int 17556main () 17557{ 17558return inflateEnd (); 17559 ; 17560 return 0; 17561} 17562_ACEOF 17563if ac_fn_c_try_link "$LINENO"; then : 17564 ac_cv_lib_z_inflateEnd=yes 17565else 17566 ac_cv_lib_z_inflateEnd=no 17567fi 17568rm -f core conftest.err conftest.$ac_objext \ 17569 conftest$ac_exeext conftest.$ac_ext 17570LIBS=$ac_check_lib_save_LIBS 17571fi 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 17573$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 17574if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 17575 zlib_lib=yes 17576else 17577 zlib_lib=no 17578fi 17579 17580 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 17581 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 17582 fi 17583 17584 if test "x$with_zlib_include_dir" != "x" ; then 17585 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 17586 fi 17587 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17588if test "x$ac_cv_header_zlib_h" = xyes; then : 17589 zlib_h=yes 17590else 17591 zlib_h=no 17592fi 17593 17594 17595 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 17596 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 17597 fi 17598 17599 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 17600 HAVE_ZLIB=yes 17601 fi 17602 17603fi 17604 17605if test "$HAVE_ZLIB" = "yes" ; then 17606 17607$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 17608 17609 LIBS="-lz $LIBS" 17610 tiff_libs_private="-lz ${tiff_libs_private}" 17611 17612 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 17613 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 17614 fi 17615 17616fi 17617 17618 17619# Check whether --enable-pixarlog was given. 17620if test "${enable_pixarlog+set}" = set; then : 17621 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 17622else 17623 HAVE_PIXARLOG=yes 17624fi 17625 17626 17627if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17628 17629$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17630 17631else 17632 HAVE_PIXARLOG=no 17633fi 17634 17635 17636HAVE_JPEG=no 17637 17638# Check whether --enable-jpeg was given. 17639if test "${enable_jpeg+set}" = set; then : 17640 enableval=$enable_jpeg; 17641fi 17642 17643 17644# Check whether --with-jpeg-include-dir was given. 17645if test "${with_jpeg_include_dir+set}" = set; then : 17646 withval=$with_jpeg_include_dir; 17647fi 17648 17649 17650# Check whether --with-jpeg-lib-dir was given. 17651if test "${with_jpeg_lib_dir+set}" = set; then : 17652 withval=$with_jpeg_lib_dir; 17653fi 17654 17655 17656if test "x$enable_jpeg" != "xno" ; then 17657 17658 if test "x$with_jpeg_lib_dir" != "x" ; then 17659 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17660 17661 fi 17662 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17664$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17665if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 17666 $as_echo_n "(cached) " >&6 17667else 17668 ac_check_lib_save_LIBS=$LIBS 17669LIBS="-ljpeg $LIBS" 17670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672 17673/* Override any GCC internal prototype to avoid an error. 17674 Use char because int might match the return type of a GCC 17675 builtin and then its argument prototype would still apply. */ 17676#ifdef __cplusplus 17677extern "C" 17678#endif 17679char jpeg_read_scanlines (); 17680int 17681main () 17682{ 17683return jpeg_read_scanlines (); 17684 ; 17685 return 0; 17686} 17687_ACEOF 17688if ac_fn_c_try_link "$LINENO"; then : 17689 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 17690else 17691 ac_cv_lib_jpeg_jpeg_read_scanlines=no 17692fi 17693rm -f core conftest.err conftest.$ac_objext \ 17694 conftest$ac_exeext conftest.$ac_ext 17695LIBS=$ac_check_lib_save_LIBS 17696fi 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 17698$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 17699if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 17700 jpeg_lib=yes 17701else 17702 jpeg_lib=no 17703fi 17704 17705 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 17706 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 17707 fi 17708 17709 if test "x$with_jpeg_include_dir" != "x" ; then 17710 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 17711 fi 17712 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 17713if test "x$ac_cv_header_jpeglib_h" = xyes; then : 17714 jpeg_h=yes 17715else 17716 jpeg_h=no 17717fi 17718 17719 17720 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 17721 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 17722 fi 17723 17724 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 17725 HAVE_JPEG=yes 17726 fi 17727 17728fi 17729 17730if test "$HAVE_JPEG" = "yes" ; then 17731 17732$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 17733 17734 LIBS="-ljpeg $LIBS" 17735 tiff_libs_private="-ljpeg ${tiff_libs_private}" 17736 17737 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 17738 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 17739 fi 17740 17741fi 17742 17743 17744# Check whether --enable-old-jpeg was given. 17745if test "${enable_old_jpeg+set}" = set; then : 17746 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 17747else 17748 HAVE_OJPEG=yes 17749fi 17750 17751 17752if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 17753 17754$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 17755 17756else 17757 HAVE_OJPEG=no 17758fi 17759 17760 17761HAVE_JBIG=no 17762 17763# Check whether --enable-jbig was given. 17764if test "${enable_jbig+set}" = set; then : 17765 enableval=$enable_jbig; 17766fi 17767 17768 17769# Check whether --with-jbig-include-dir was given. 17770if test "${with_jbig_include_dir+set}" = set; then : 17771 withval=$with_jbig_include_dir; 17772fi 17773 17774 17775# Check whether --with-jbig-lib-dir was given. 17776if test "${with_jbig_lib_dir+set}" = set; then : 17777 withval=$with_jbig_lib_dir; 17778fi 17779 17780 17781if test "x$enable_jbig" != "xno" ; then 17782 17783 if test "x$with_jbig_lib_dir" != "x" ; then 17784 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 17785 17786 fi 17787 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 17789$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 17790if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 17791 $as_echo_n "(cached) " >&6 17792else 17793 ac_check_lib_save_LIBS=$LIBS 17794LIBS="-ljbig $LIBS" 17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17796/* end confdefs.h. */ 17797 17798/* Override any GCC internal prototype to avoid an error. 17799 Use char because int might match the return type of a GCC 17800 builtin and then its argument prototype would still apply. */ 17801#ifdef __cplusplus 17802extern "C" 17803#endif 17804char jbg_dec_init (); 17805int 17806main () 17807{ 17808return jbg_dec_init (); 17809 ; 17810 return 0; 17811} 17812_ACEOF 17813if ac_fn_c_try_link "$LINENO"; then : 17814 ac_cv_lib_jbig_jbg_dec_init=yes 17815else 17816 ac_cv_lib_jbig_jbg_dec_init=no 17817fi 17818rm -f core conftest.err conftest.$ac_objext \ 17819 conftest$ac_exeext conftest.$ac_ext 17820LIBS=$ac_check_lib_save_LIBS 17821fi 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 17823$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 17824if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 17825 jbig_lib=yes 17826else 17827 jbig_lib=no 17828fi 17829 17830 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 17831 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 17832 fi 17833 17834 if test "x$with_jbig_include_dir" != "x" ; then 17835 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 17836 fi 17837 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 17838if test "x$ac_cv_header_jbig_h" = xyes; then : 17839 jbig_h=yes 17840else 17841 jbig_h=no 17842fi 17843 17844 17845 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 17846 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 17847 fi 17848 17849 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 17850 HAVE_JBIG=yes 17851 fi 17852 17853fi 17854 17855if test "$HAVE_JBIG" = "yes" ; then 17856 17857$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 17858 17859 LIBS="-ljbig $LIBS" 17860 tiff_libs_private="-ljbig ${tiff_libs_private}" 17861 17862 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 17863 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 17864 fi 17865 17866 # Older versions of jbigkit lack jbg_newlen 17867 for ac_func in jbg_newlen 17868do : 17869 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 17870if test "x$ac_cv_func_jbg_newlen" = xyes; then : 17871 cat >>confdefs.h <<_ACEOF 17872#define HAVE_JBG_NEWLEN 1 17873_ACEOF 17874 17875fi 17876done 17877 17878 17879fi 17880 17881 17882HAVE_JPEG12=no 17883 17884# Check whether --enable-jpeg12 was given. 17885if test "${enable_jpeg12+set}" = set; then : 17886 enableval=$enable_jpeg12; 17887fi 17888 17889 17890# Check whether --with-jpeg12-include-dir was given. 17891if test "${with_jpeg12_include_dir+set}" = set; then : 17892 withval=$with_jpeg12_include_dir; 17893fi 17894 17895 17896# Check whether --with-jpeg12-lib was given. 17897if test "${with_jpeg12_lib+set}" = set; then : 17898 withval=$with_jpeg12_lib; 17899fi 17900 17901 17902if test "x$enable_jpeg12" == "xyes" ; then 17903 17904 if test "x$with_jpeg12_lib" != "x" ; then 17905 LIBS="$with_jpeg12_lib $LIBS" 17906 fi 17907 17908 HAVE_JPEG12=yes 17909 17910 17911$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 17912 17913 if test "x$with_jpeg12_include_dir" != "x" ; then 17914 17915cat >>confdefs.h <<_ACEOF 17916#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 17917_ACEOF 17918 17919 fi 17920fi 17921 17922 17923 17924# Check whether --enable-cxx was given. 17925if test "${enable_cxx+set}" = set; then : 17926 enableval=$enable_cxx; HAVE_CXX=$enableval 17927else 17928 HAVE_CXX=yes 17929fi 17930 17931 17932if test "$HAVE_CXX" = "yes" ; then 17933 17934$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 17935 17936else 17937 HAVE_CXX=no 17938fi 17939 17940 if test "$HAVE_CXX" = "yes"; then 17941 HAVE_CXX_TRUE= 17942 HAVE_CXX_FALSE='#' 17943else 17944 HAVE_CXX_TRUE='#' 17945 HAVE_CXX_FALSE= 17946fi 17947 17948 17949 17950HAVE_OPENGL=no 17951 17952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17953$as_echo_n "checking for X... " >&6; } 17954 17955 17956# Check whether --with-x was given. 17957if test "${with_x+set}" = set; then : 17958 withval=$with_x; 17959fi 17960 17961# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17962if test "x$with_x" = xno; then 17963 # The user explicitly disabled X. 17964 have_x=disabled 17965else 17966 case $x_includes,$x_libraries in #( 17967 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17968 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970else 17971 # One or both of the vars are not set, and there is no cached value. 17972ac_x_includes=no ac_x_libraries=no 17973rm -f -r conftest.dir 17974if mkdir conftest.dir; then 17975 cd conftest.dir 17976 cat >Imakefile <<'_ACEOF' 17977incroot: 17978 @echo incroot='${INCROOT}' 17979usrlibdir: 17980 @echo usrlibdir='${USRLIBDIR}' 17981libdir: 17982 @echo libdir='${LIBDIR}' 17983_ACEOF 17984 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17986 for ac_var in incroot usrlibdir libdir; do 17987 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17988 done 17989 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17990 for ac_extension in a so sl dylib la dll; do 17991 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17992 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17993 ac_im_usrlibdir=$ac_im_libdir; break 17994 fi 17995 done 17996 # Screen out bogus values from the imake configuration. They are 17997 # bogus both because they are the default anyway, and because 17998 # using them would break gcc on systems where it needs fixed includes. 17999 case $ac_im_incroot in 18000 /usr/include) ac_x_includes= ;; 18001 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18002 esac 18003 case $ac_im_usrlibdir in 18004 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18005 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18006 esac 18007 fi 18008 cd .. 18009 rm -f -r conftest.dir 18010fi 18011 18012# Standard set of common directories for X headers. 18013# Check X11 before X11Rn because it is often a symlink to the current release. 18014ac_x_header_dirs=' 18015/usr/X11/include 18016/usr/X11R7/include 18017/usr/X11R6/include 18018/usr/X11R5/include 18019/usr/X11R4/include 18020 18021/usr/include/X11 18022/usr/include/X11R7 18023/usr/include/X11R6 18024/usr/include/X11R5 18025/usr/include/X11R4 18026 18027/usr/local/X11/include 18028/usr/local/X11R7/include 18029/usr/local/X11R6/include 18030/usr/local/X11R5/include 18031/usr/local/X11R4/include 18032 18033/usr/local/include/X11 18034/usr/local/include/X11R7 18035/usr/local/include/X11R6 18036/usr/local/include/X11R5 18037/usr/local/include/X11R4 18038 18039/usr/X386/include 18040/usr/x386/include 18041/usr/XFree86/include/X11 18042 18043/usr/include 18044/usr/local/include 18045/usr/unsupported/include 18046/usr/athena/include 18047/usr/local/x11r5/include 18048/usr/lpp/Xamples/include 18049 18050/usr/openwin/include 18051/usr/openwin/share/include' 18052 18053if test "$ac_x_includes" = no; then 18054 # Guess where to find include files, by looking for Xlib.h. 18055 # First, try using that file with no special directory specified. 18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18057/* end confdefs.h. */ 18058#include <X11/Xlib.h> 18059_ACEOF 18060if ac_fn_c_try_cpp "$LINENO"; then : 18061 # We can compile using X headers with no special include directory. 18062ac_x_includes= 18063else 18064 for ac_dir in $ac_x_header_dirs; do 18065 if test -r "$ac_dir/X11/Xlib.h"; then 18066 ac_x_includes=$ac_dir 18067 break 18068 fi 18069done 18070fi 18071rm -f conftest.err conftest.i conftest.$ac_ext 18072fi # $ac_x_includes = no 18073 18074if test "$ac_x_libraries" = no; then 18075 # Check for the libraries. 18076 # See if we find them without any special options. 18077 # Don't add to $LIBS permanently. 18078 ac_save_LIBS=$LIBS 18079 LIBS="-lX11 $LIBS" 18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18081/* end confdefs.h. */ 18082#include <X11/Xlib.h> 18083int 18084main () 18085{ 18086XrmInitialize () 18087 ; 18088 return 0; 18089} 18090_ACEOF 18091if ac_fn_c_try_link "$LINENO"; then : 18092 LIBS=$ac_save_LIBS 18093# We can link X programs with no special library path. 18094ac_x_libraries= 18095else 18096 LIBS=$ac_save_LIBS 18097for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18098do 18099 # Don't even attempt the hair of trying to link an X program! 18100 for ac_extension in a so sl dylib la dll; do 18101 if test -r "$ac_dir/libX11.$ac_extension"; then 18102 ac_x_libraries=$ac_dir 18103 break 2 18104 fi 18105 done 18106done 18107fi 18108rm -f core conftest.err conftest.$ac_objext \ 18109 conftest$ac_exeext conftest.$ac_ext 18110fi # $ac_x_libraries = no 18111 18112case $ac_x_includes,$ac_x_libraries in #( 18113 no,* | *,no | *\'*) 18114 # Didn't find X, or a directory has "'" in its name. 18115 ac_cv_have_x="have_x=no";; #( 18116 *) 18117 # Record where we found X for the cache. 18118 ac_cv_have_x="have_x=yes\ 18119 ac_x_includes='$ac_x_includes'\ 18120 ac_x_libraries='$ac_x_libraries'" 18121esac 18122fi 18123;; #( 18124 *) have_x=yes;; 18125 esac 18126 eval "$ac_cv_have_x" 18127fi # $with_x != no 18128 18129if test "$have_x" != yes; then 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18131$as_echo "$have_x" >&6; } 18132 no_x=yes 18133else 18134 # If each of the values was on the command line, it overrides each guess. 18135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18137 # Update the cache value to reflect the command line values. 18138 ac_cv_have_x="have_x=yes\ 18139 ac_x_includes='$x_includes'\ 18140 ac_x_libraries='$x_libraries'" 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18142$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18143fi 18144 18145if test "$no_x" = yes; then 18146 # Not all programs may use this symbol, but it does not hurt to define it. 18147 18148$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18149 18150 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18151else 18152 if test -n "$x_includes"; then 18153 X_CFLAGS="$X_CFLAGS -I$x_includes" 18154 fi 18155 18156 # It would also be nice to do this for all -L options, not just this one. 18157 if test -n "$x_libraries"; then 18158 X_LIBS="$X_LIBS -L$x_libraries" 18159 # For Solaris; some versions of Sun CC require a space after -R and 18160 # others require no space. Words are not sufficient . . . . 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18162$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18163 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18164 ac_xsave_c_werror_flag=$ac_c_werror_flag 18165 ac_c_werror_flag=yes 18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168 18169int 18170main () 18171{ 18172 18173 ; 18174 return 0; 18175} 18176_ACEOF 18177if ac_fn_c_try_link "$LINENO"; then : 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18179$as_echo "no" >&6; } 18180 X_LIBS="$X_LIBS -R$x_libraries" 18181else 18182 LIBS="$ac_xsave_LIBS -R $x_libraries" 18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18184/* end confdefs.h. */ 18185 18186int 18187main () 18188{ 18189 18190 ; 18191 return 0; 18192} 18193_ACEOF 18194if ac_fn_c_try_link "$LINENO"; then : 18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18196$as_echo "yes" >&6; } 18197 X_LIBS="$X_LIBS -R $x_libraries" 18198else 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18200$as_echo "neither works" >&6; } 18201fi 18202rm -f core conftest.err conftest.$ac_objext \ 18203 conftest$ac_exeext conftest.$ac_ext 18204fi 18205rm -f core conftest.err conftest.$ac_objext \ 18206 conftest$ac_exeext conftest.$ac_ext 18207 ac_c_werror_flag=$ac_xsave_c_werror_flag 18208 LIBS=$ac_xsave_LIBS 18209 fi 18210 18211 # Check for system-dependent libraries X programs must link with. 18212 # Do this before checking for the system-independent R6 libraries 18213 # (-lICE), since we may need -lsocket or whatever for X linking. 18214 18215 if test "$ISC" = yes; then 18216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18217 else 18218 # Martyn Johnson says this is needed for Ultrix, if the X 18219 # libraries were built with DECnet support. And Karl Berry says 18220 # the Alpha needs dnet_stub (dnet does not exist). 18221 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224 18225/* Override any GCC internal prototype to avoid an error. 18226 Use char because int might match the return type of a GCC 18227 builtin and then its argument prototype would still apply. */ 18228#ifdef __cplusplus 18229extern "C" 18230#endif 18231char XOpenDisplay (); 18232int 18233main () 18234{ 18235return XOpenDisplay (); 18236 ; 18237 return 0; 18238} 18239_ACEOF 18240if ac_fn_c_try_link "$LINENO"; then : 18241 18242else 18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18244$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18245if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247else 18248 ac_check_lib_save_LIBS=$LIBS 18249LIBS="-ldnet $LIBS" 18250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18251/* end confdefs.h. */ 18252 18253/* Override any GCC internal prototype to avoid an error. 18254 Use char because int might match the return type of a GCC 18255 builtin and then its argument prototype would still apply. */ 18256#ifdef __cplusplus 18257extern "C" 18258#endif 18259char dnet_ntoa (); 18260int 18261main () 18262{ 18263return dnet_ntoa (); 18264 ; 18265 return 0; 18266} 18267_ACEOF 18268if ac_fn_c_try_link "$LINENO"; then : 18269 ac_cv_lib_dnet_dnet_ntoa=yes 18270else 18271 ac_cv_lib_dnet_dnet_ntoa=no 18272fi 18273rm -f core conftest.err conftest.$ac_objext \ 18274 conftest$ac_exeext conftest.$ac_ext 18275LIBS=$ac_check_lib_save_LIBS 18276fi 18277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18278$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18279if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18281fi 18282 18283 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18285$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18286if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 ac_check_lib_save_LIBS=$LIBS 18290LIBS="-ldnet_stub $LIBS" 18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294/* Override any GCC internal prototype to avoid an error. 18295 Use char because int might match the return type of a GCC 18296 builtin and then its argument prototype would still apply. */ 18297#ifdef __cplusplus 18298extern "C" 18299#endif 18300char dnet_ntoa (); 18301int 18302main () 18303{ 18304return dnet_ntoa (); 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309if ac_fn_c_try_link "$LINENO"; then : 18310 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18311else 18312 ac_cv_lib_dnet_stub_dnet_ntoa=no 18313fi 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18319$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18320if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18322fi 18323 18324 fi 18325fi 18326rm -f core conftest.err conftest.$ac_objext \ 18327 conftest$ac_exeext conftest.$ac_ext 18328 LIBS="$ac_xsave_LIBS" 18329 18330 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 18331 # to get the SysV transport functions. 18332 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18333 # needs -lnsl. 18334 # The nsl library prevents programs from opening the X display 18335 # on Irix 5.2, according to T.E. Dickey. 18336 # The functions gethostbyname, getservbyname, and inet_addr are 18337 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18338 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18339if test "x$ac_cv_func_gethostbyname" = xyes; then : 18340 18341fi 18342 18343 if test $ac_cv_func_gethostbyname = no; then 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18345$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18346if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18347 $as_echo_n "(cached) " >&6 18348else 18349 ac_check_lib_save_LIBS=$LIBS 18350LIBS="-lnsl $LIBS" 18351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18352/* end confdefs.h. */ 18353 18354/* Override any GCC internal prototype to avoid an error. 18355 Use char because int might match the return type of a GCC 18356 builtin and then its argument prototype would still apply. */ 18357#ifdef __cplusplus 18358extern "C" 18359#endif 18360char gethostbyname (); 18361int 18362main () 18363{ 18364return gethostbyname (); 18365 ; 18366 return 0; 18367} 18368_ACEOF 18369if ac_fn_c_try_link "$LINENO"; then : 18370 ac_cv_lib_nsl_gethostbyname=yes 18371else 18372 ac_cv_lib_nsl_gethostbyname=no 18373fi 18374rm -f core conftest.err conftest.$ac_objext \ 18375 conftest$ac_exeext conftest.$ac_ext 18376LIBS=$ac_check_lib_save_LIBS 18377fi 18378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18379$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18380if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18382fi 18383 18384 if test $ac_cv_lib_nsl_gethostbyname = no; then 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18386$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18387if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18388 $as_echo_n "(cached) " >&6 18389else 18390 ac_check_lib_save_LIBS=$LIBS 18391LIBS="-lbsd $LIBS" 18392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393/* end confdefs.h. */ 18394 18395/* Override any GCC internal prototype to avoid an error. 18396 Use char because int might match the return type of a GCC 18397 builtin and then its argument prototype would still apply. */ 18398#ifdef __cplusplus 18399extern "C" 18400#endif 18401char gethostbyname (); 18402int 18403main () 18404{ 18405return gethostbyname (); 18406 ; 18407 return 0; 18408} 18409_ACEOF 18410if ac_fn_c_try_link "$LINENO"; then : 18411 ac_cv_lib_bsd_gethostbyname=yes 18412else 18413 ac_cv_lib_bsd_gethostbyname=no 18414fi 18415rm -f core conftest.err conftest.$ac_objext \ 18416 conftest$ac_exeext conftest.$ac_ext 18417LIBS=$ac_check_lib_save_LIBS 18418fi 18419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18420$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18421if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18423fi 18424 18425 fi 18426 fi 18427 18428 # [email protected] says without -lsocket, 18429 # socket/setsockopt and other routines are undefined under SCO ODT 18430 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18431 # on later versions), says Simon Leinen: it contains gethostby* 18432 # variants that don't use the name server (or something). -lsocket 18433 # must be given before -lnsl if both are needed. We assume that 18434 # if connect needs -lnsl, so does gethostbyname. 18435 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18436if test "x$ac_cv_func_connect" = xyes; then : 18437 18438fi 18439 18440 if test $ac_cv_func_connect = no; then 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18442$as_echo_n "checking for connect in -lsocket... " >&6; } 18443if ${ac_cv_lib_socket_connect+:} false; then : 18444 $as_echo_n "(cached) " >&6 18445else 18446 ac_check_lib_save_LIBS=$LIBS 18447LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18449/* end confdefs.h. */ 18450 18451/* Override any GCC internal prototype to avoid an error. 18452 Use char because int might match the return type of a GCC 18453 builtin and then its argument prototype would still apply. */ 18454#ifdef __cplusplus 18455extern "C" 18456#endif 18457char connect (); 18458int 18459main () 18460{ 18461return connect (); 18462 ; 18463 return 0; 18464} 18465_ACEOF 18466if ac_fn_c_try_link "$LINENO"; then : 18467 ac_cv_lib_socket_connect=yes 18468else 18469 ac_cv_lib_socket_connect=no 18470fi 18471rm -f core conftest.err conftest.$ac_objext \ 18472 conftest$ac_exeext conftest.$ac_ext 18473LIBS=$ac_check_lib_save_LIBS 18474fi 18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18476$as_echo "$ac_cv_lib_socket_connect" >&6; } 18477if test "x$ac_cv_lib_socket_connect" = xyes; then : 18478 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18479fi 18480 18481 fi 18482 18483 # Guillermo Gomez says -lposix is necessary on A/UX. 18484 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18485if test "x$ac_cv_func_remove" = xyes; then : 18486 18487fi 18488 18489 if test $ac_cv_func_remove = no; then 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18491$as_echo_n "checking for remove in -lposix... " >&6; } 18492if ${ac_cv_lib_posix_remove+:} false; then : 18493 $as_echo_n "(cached) " >&6 18494else 18495 ac_check_lib_save_LIBS=$LIBS 18496LIBS="-lposix $LIBS" 18497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18498/* end confdefs.h. */ 18499 18500/* Override any GCC internal prototype to avoid an error. 18501 Use char because int might match the return type of a GCC 18502 builtin and then its argument prototype would still apply. */ 18503#ifdef __cplusplus 18504extern "C" 18505#endif 18506char remove (); 18507int 18508main () 18509{ 18510return remove (); 18511 ; 18512 return 0; 18513} 18514_ACEOF 18515if ac_fn_c_try_link "$LINENO"; then : 18516 ac_cv_lib_posix_remove=yes 18517else 18518 ac_cv_lib_posix_remove=no 18519fi 18520rm -f core conftest.err conftest.$ac_objext \ 18521 conftest$ac_exeext conftest.$ac_ext 18522LIBS=$ac_check_lib_save_LIBS 18523fi 18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18525$as_echo "$ac_cv_lib_posix_remove" >&6; } 18526if test "x$ac_cv_lib_posix_remove" = xyes; then : 18527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18528fi 18529 18530 fi 18531 18532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18533 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18534if test "x$ac_cv_func_shmat" = xyes; then : 18535 18536fi 18537 18538 if test $ac_cv_func_shmat = no; then 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18540$as_echo_n "checking for shmat in -lipc... " >&6; } 18541if ${ac_cv_lib_ipc_shmat+:} false; then : 18542 $as_echo_n "(cached) " >&6 18543else 18544 ac_check_lib_save_LIBS=$LIBS 18545LIBS="-lipc $LIBS" 18546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18547/* end confdefs.h. */ 18548 18549/* Override any GCC internal prototype to avoid an error. 18550 Use char because int might match the return type of a GCC 18551 builtin and then its argument prototype would still apply. */ 18552#ifdef __cplusplus 18553extern "C" 18554#endif 18555char shmat (); 18556int 18557main () 18558{ 18559return shmat (); 18560 ; 18561 return 0; 18562} 18563_ACEOF 18564if ac_fn_c_try_link "$LINENO"; then : 18565 ac_cv_lib_ipc_shmat=yes 18566else 18567 ac_cv_lib_ipc_shmat=no 18568fi 18569rm -f core conftest.err conftest.$ac_objext \ 18570 conftest$ac_exeext conftest.$ac_ext 18571LIBS=$ac_check_lib_save_LIBS 18572fi 18573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18574$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18575if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18577fi 18578 18579 fi 18580 fi 18581 18582 # Check for libraries that X11R6 Xt/Xaw programs need. 18583 ac_save_LDFLAGS=$LDFLAGS 18584 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18585 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18586 # check for ICE first), but we must link in the order -lSM -lICE or 18587 # we get undefined symbols. So assume we have SM if we have ICE. 18588 # These have to be linked with before -lX11, unlike the other 18589 # libraries we check for below, so use a different variable. 18590 # John Interrante, Karl Berry 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18592$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18593if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18594 $as_echo_n "(cached) " >&6 18595else 18596 ac_check_lib_save_LIBS=$LIBS 18597LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18599/* end confdefs.h. */ 18600 18601/* Override any GCC internal prototype to avoid an error. 18602 Use char because int might match the return type of a GCC 18603 builtin and then its argument prototype would still apply. */ 18604#ifdef __cplusplus 18605extern "C" 18606#endif 18607char IceConnectionNumber (); 18608int 18609main () 18610{ 18611return IceConnectionNumber (); 18612 ; 18613 return 0; 18614} 18615_ACEOF 18616if ac_fn_c_try_link "$LINENO"; then : 18617 ac_cv_lib_ICE_IceConnectionNumber=yes 18618else 18619 ac_cv_lib_ICE_IceConnectionNumber=no 18620fi 18621rm -f core conftest.err conftest.$ac_objext \ 18622 conftest$ac_exeext conftest.$ac_ext 18623LIBS=$ac_check_lib_save_LIBS 18624fi 18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18626$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18627if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18628 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18629fi 18630 18631 LDFLAGS=$ac_save_LDFLAGS 18632 18633fi 18634 18635 18636 18637 18638 18639ac_ext=c 18640ac_cpp='$CPP $CPPFLAGS' 18641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18643ac_compiler_gnu=$ac_cv_c_compiler_gnu 18644 18645ax_pthread_ok=no 18646 18647 18648if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18649 save_CFLAGS="$CFLAGS" 18650 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18651 save_LIBS="$LIBS" 18652 LIBS="$PTHREAD_LIBS $LIBS" 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18654$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18656/* end confdefs.h. */ 18657 18658/* Override any GCC internal prototype to avoid an error. 18659 Use char because int might match the return type of a GCC 18660 builtin and then its argument prototype would still apply. */ 18661#ifdef __cplusplus 18662extern "C" 18663#endif 18664char pthread_join (); 18665int 18666main () 18667{ 18668return pthread_join (); 18669 ; 18670 return 0; 18671} 18672_ACEOF 18673if ac_fn_c_try_link "$LINENO"; then : 18674 ax_pthread_ok=yes 18675fi 18676rm -f core conftest.err conftest.$ac_objext \ 18677 conftest$ac_exeext conftest.$ac_ext 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18679$as_echo "$ax_pthread_ok" >&6; } 18680 if test x"$ax_pthread_ok" = xno; then 18681 PTHREAD_LIBS="" 18682 PTHREAD_CFLAGS="" 18683 fi 18684 LIBS="$save_LIBS" 18685 CFLAGS="$save_CFLAGS" 18686fi 18687 18688 18689 18690ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18691 18692 18693 18694case "${host_cpu}-${host_os}" in 18695 *solaris*) 18696 18697 18698 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 18699 ;; 18700 18701 *-darwin*) 18702 ax_pthread_flags="-pthread $ax_pthread_flags" 18703 ;; 18704esac 18705 18706if test x"$ax_pthread_ok" = xno; then 18707for flag in $ax_pthread_flags; do 18708 18709 case $flag in 18710 none) 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18712$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18713 ;; 18714 18715 -*) 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18717$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18718 PTHREAD_CFLAGS="$flag" 18719 ;; 18720 18721 pthread-config) 18722 # Extract the first word of "pthread-config", so it can be a program name with args. 18723set dummy pthread-config; ac_word=$2 18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18725$as_echo_n "checking for $ac_word... " >&6; } 18726if ${ac_cv_prog_ax_pthread_config+:} false; then : 18727 $as_echo_n "(cached) " >&6 18728else 18729 if test -n "$ax_pthread_config"; then 18730 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18731else 18732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18733for as_dir in $PATH 18734do 18735 IFS=$as_save_IFS 18736 test -z "$as_dir" && as_dir=. 18737 for ac_exec_ext in '' $ac_executable_extensions; do 18738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18739 ac_cv_prog_ax_pthread_config="yes" 18740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18741 break 2 18742 fi 18743done 18744 done 18745IFS=$as_save_IFS 18746 18747 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18748fi 18749fi 18750ax_pthread_config=$ac_cv_prog_ax_pthread_config 18751if test -n "$ax_pthread_config"; then 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18753$as_echo "$ax_pthread_config" >&6; } 18754else 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18756$as_echo "no" >&6; } 18757fi 18758 18759 18760 if test x"$ax_pthread_config" = xno; then continue; fi 18761 PTHREAD_CFLAGS="`pthread-config --cflags`" 18762 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18763 ;; 18764 18765 *) 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18767$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18768 PTHREAD_LIBS="-l$flag" 18769 ;; 18770 esac 18771 18772 save_LIBS="$LIBS" 18773 save_CFLAGS="$CFLAGS" 18774 LIBS="$PTHREAD_LIBS $LIBS" 18775 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18776 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778/* end confdefs.h. */ 18779#include <pthread.h> 18780 static void routine(void* a) {a=0;} 18781 static void* start_routine(void* a) {return a;} 18782int 18783main () 18784{ 18785pthread_t th; pthread_attr_t attr; 18786 pthread_create(&th,0,start_routine,0); 18787 pthread_join(th, 0); 18788 pthread_attr_init(&attr); 18789 pthread_cleanup_push(routine, 0); 18790 pthread_cleanup_pop(0); 18791 ; 18792 return 0; 18793} 18794_ACEOF 18795if ac_fn_c_try_link "$LINENO"; then : 18796 ax_pthread_ok=yes 18797fi 18798rm -f core conftest.err conftest.$ac_objext \ 18799 conftest$ac_exeext conftest.$ac_ext 18800 18801 LIBS="$save_LIBS" 18802 CFLAGS="$save_CFLAGS" 18803 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18805$as_echo "$ax_pthread_ok" >&6; } 18806 if test "x$ax_pthread_ok" = xyes; then 18807 break; 18808 fi 18809 18810 PTHREAD_LIBS="" 18811 PTHREAD_CFLAGS="" 18812done 18813fi 18814 18815if test "x$ax_pthread_ok" = xyes; then 18816 save_LIBS="$LIBS" 18817 LIBS="$PTHREAD_LIBS $LIBS" 18818 save_CFLAGS="$CFLAGS" 18819 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18820 18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18822$as_echo_n "checking for joinable pthread attribute... " >&6; } 18823 attr_name=unknown 18824 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18826/* end confdefs.h. */ 18827#include <pthread.h> 18828int 18829main () 18830{ 18831int attr=$attr; return attr; 18832 ; 18833 return 0; 18834} 18835_ACEOF 18836if ac_fn_c_try_link "$LINENO"; then : 18837 attr_name=$attr; break 18838fi 18839rm -f core conftest.err conftest.$ac_objext \ 18840 conftest$ac_exeext conftest.$ac_ext 18841 done 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18843$as_echo "$attr_name" >&6; } 18844 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18845 18846cat >>confdefs.h <<_ACEOF 18847#define PTHREAD_CREATE_JOINABLE $attr_name 18848_ACEOF 18849 18850 fi 18851 18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18853$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18854 flag=no 18855 case "${host_cpu}-${host_os}" in 18856 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 18857 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 18858 esac 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 18860$as_echo "${flag}" >&6; } 18861 if test "x$flag" != xno; then 18862 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18863 fi 18864 18865 LIBS="$save_LIBS" 18866 CFLAGS="$save_CFLAGS" 18867 18868 if test x"$GCC" != xyes; then 18869 for ac_prog in xlc_r cc_r 18870do 18871 # Extract the first word of "$ac_prog", so it can be a program name with args. 18872set dummy $ac_prog; ac_word=$2 18873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18874$as_echo_n "checking for $ac_word... " >&6; } 18875if ${ac_cv_prog_PTHREAD_CC+:} false; then : 18876 $as_echo_n "(cached) " >&6 18877else 18878 if test -n "$PTHREAD_CC"; then 18879 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18880else 18881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18882for as_dir in $PATH 18883do 18884 IFS=$as_save_IFS 18885 test -z "$as_dir" && as_dir=. 18886 for ac_exec_ext in '' $ac_executable_extensions; do 18887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18888 ac_cv_prog_PTHREAD_CC="$ac_prog" 18889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18890 break 2 18891 fi 18892done 18893 done 18894IFS=$as_save_IFS 18895 18896fi 18897fi 18898PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18899if test -n "$PTHREAD_CC"; then 18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18901$as_echo "$PTHREAD_CC" >&6; } 18902else 18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18904$as_echo "no" >&6; } 18905fi 18906 18907 18908 test -n "$PTHREAD_CC" && break 18909done 18910test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 18911 18912 else 18913 PTHREAD_CC=$CC 18914 fi 18915else 18916 PTHREAD_CC="$CC" 18917fi 18918 18919 18920 18921 18922 18923if test x"$ax_pthread_ok" = xyes; then 18924 18925$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18926 18927 : 18928else 18929 ax_pthread_ok=no 18930 18931fi 18932ac_ext=c 18933ac_cpp='$CPP $CPPFLAGS' 18934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18936ac_compiler_gnu=$ac_cv_c_compiler_gnu 18937 18938 18939 18940 18941ac_ext=c 18942ac_cpp='$CPP $CPPFLAGS' 18943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18945ac_compiler_gnu=$ac_cv_c_compiler_gnu 18946 18947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 18948$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 18949if ${ax_cv_c_compiler_ms+:} false; then : 18950 $as_echo_n "(cached) " >&6 18951else 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954 18955int 18956main () 18957{ 18958#ifndef _MSC_VER 18959 choke me 18960#endif 18961 18962 ; 18963 return 0; 18964} 18965_ACEOF 18966if ac_fn_c_try_compile "$LINENO"; then : 18967 ax_compiler_ms=yes 18968else 18969 ax_compiler_ms=no 18970fi 18971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18972ax_cv_c_compiler_ms=$ax_compiler_ms 18973 18974fi 18975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 18976$as_echo "$ax_cv_c_compiler_ms" >&6; } 18977if test X$ax_compiler_ms = Xno; then : 18978 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 18979fi 18980 18981if test "X$no_x" != "Xyes"; then : 18982 if test -n "$x_includes"; then : 18983 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 18984fi 18985 if test -n "$x_libraries"; then : 18986 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 18987fi 18988fi 18989 18990ax_save_CPPFLAGS="${CPPFLAGS}" 18991CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 18992for ac_header in GL/gl.h OpenGL/gl.h 18993do : 18994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18995ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18997 cat >>confdefs.h <<_ACEOF 18998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18999_ACEOF 19000 19001fi 19002 19003done 19004 19005CPPFLAGS="${ax_save_CPPFLAGS}" 19006 19007for ac_header in windows.h 19008do : 19009 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19010if test "x$ac_cv_header_windows_h" = xyes; then : 19011 cat >>confdefs.h <<_ACEOF 19012#define HAVE_WINDOWS_H 1 19013_ACEOF 19014 19015fi 19016 19017done 19018 19019 19020 19021 19022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19023$as_echo_n "checking for OpenGL library... " >&6; } 19024if ${ax_cv_check_gl_libgl+:} false; then : 19025 $as_echo_n "(cached) " >&6 19026else 19027 ax_cv_check_gl_libgl="no" 19028case $host_cpu in 19029 x86_64) ax_check_gl_libdir=lib64 ;; 19030 *) ax_check_gl_libdir=lib ;; 19031esac 19032ax_save_CPPFLAGS="${CPPFLAGS}" 19033CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19034ax_save_LIBS="${LIBS}" 19035LIBS="" 19036ax_check_libs="-lopengl32 -lGL" 19037for ax_lib in ${ax_check_libs}; do 19038 if test X$ax_compiler_ms = Xyes; then : 19039 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19040else 19041 ax_try_lib="${ax_lib}" 19042fi 19043 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19045/* end confdefs.h. */ 19046 19047# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19048# include <windows.h> 19049# endif 19050# ifdef HAVE_GL_GL_H 19051# include <GL/gl.h> 19052# elif defined(HAVE_OPENGL_GL_H) 19053# include <OpenGL/gl.h> 19054# else 19055# error no gl.h 19056# endif 19057int 19058main () 19059{ 19060glBegin(0) 19061 ; 19062 return 0; 19063} 19064_ACEOF 19065if ac_fn_c_try_link "$LINENO"; then : 19066 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19067else 19068 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}" 19069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19070/* end confdefs.h. */ 19071 19072# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19073# include <windows.h> 19074# endif 19075# ifdef HAVE_GL_GL_H 19076# include <GL/gl.h> 19077# elif defined(HAVE_OPENGL_GL_H) 19078# include <OpenGL/gl.h> 19079# else 19080# error no gl.h 19081# endif 19082int 19083main () 19084{ 19085glBegin(0) 19086 ; 19087 return 0; 19088} 19089_ACEOF 19090if ac_fn_c_try_link "$LINENO"; then : 19091 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19092else 19093 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}" 19094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19095/* end confdefs.h. */ 19096 19097# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19098# include <windows.h> 19099# endif 19100# ifdef HAVE_GL_GL_H 19101# include <GL/gl.h> 19102# elif defined(HAVE_OPENGL_GL_H) 19103# include <OpenGL/gl.h> 19104# else 19105# error no gl.h 19106# endif 19107int 19108main () 19109{ 19110glBegin(0) 19111 ; 19112 return 0; 19113} 19114_ACEOF 19115if ac_fn_c_try_link "$LINENO"; then : 19116 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19117fi 19118rm -f core conftest.err conftest.$ac_objext \ 19119 conftest$ac_exeext conftest.$ac_ext 19120fi 19121rm -f core conftest.err conftest.$ac_objext \ 19122 conftest$ac_exeext conftest.$ac_ext 19123fi 19124rm -f core conftest.err conftest.$ac_objext \ 19125 conftest$ac_exeext conftest.$ac_ext 19126done 19127 19128if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19129 LIBS='-framework OpenGL' 19130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19131/* end confdefs.h. */ 19132 19133# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19134# include <windows.h> 19135# endif 19136# ifdef HAVE_GL_GL_H 19137# include <GL/gl.h> 19138# elif defined(HAVE_OPENGL_GL_H) 19139# include <OpenGL/gl.h> 19140# else 19141# error no gl.h 19142# endif 19143int 19144main () 19145{ 19146glBegin(0) 19147 ; 19148 return 0; 19149} 19150_ACEOF 19151if ac_fn_c_try_link "$LINENO"; then : 19152 ax_cv_check_gl_libgl="$LIBS" 19153fi 19154rm -f core conftest.err conftest.$ac_objext \ 19155 conftest$ac_exeext conftest.$ac_ext 19156fi 19157 19158LIBS=${ax_save_LIBS} 19159CPPFLAGS=${ax_save_CPPFLAGS} 19160fi 19161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 19162$as_echo "$ax_cv_check_gl_libgl" >&6; } 19163 19164if test "X$ax_cv_check_gl_libgl" = Xno; then : 19165 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 19166else 19167 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 19168fi 19169ac_ext=c 19170ac_cpp='$CPP $CPPFLAGS' 19171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19173ac_compiler_gnu=$ac_cv_c_compiler_gnu 19174 19175 19176 19177 19178 19179GLU_CFLAGS="${GL_CFLAGS}" 19180 19181ax_save_CPPFLAGS="${CPPFLAGS}" 19182CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19183for ac_header in GL/glu.h OpenGL/glu.h 19184do : 19185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19186ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19187if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19188 cat >>confdefs.h <<_ACEOF 19189#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19190_ACEOF 19191 19192fi 19193 19194done 19195 19196CPPFLAGS="${ax_save_CPPFLAGS}" 19197 19198 19199 19200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 19201$as_echo_n "checking for OpenGL Utility library... " >&6; } 19202if ${ax_cv_check_glu_libglu+:} false; then : 19203 $as_echo_n "(cached) " >&6 19204else 19205 ax_cv_check_glu_libglu="no" 19206ax_save_CPPFLAGS="${CPPFLAGS}" 19207CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19208ax_save_LIBS="${LIBS}" 19209 19210LIBS="${GL_LIBS} ${ax_save_LIBS}" 19211ac_ext=cpp 19212ac_cpp='$CXXCPP $CPPFLAGS' 19213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19216 19217if test X$ax_compiler_ms = Xyes; then : 19218 ac_ext=c 19219ac_cpp='$CPP $CPPFLAGS' 19220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19222ac_compiler_gnu=$ac_cv_c_compiler_gnu 19223 19224fi 19225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19226/* end confdefs.h. */ 19227 19228# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19229# include <windows.h> 19230# endif 19231# ifdef HAVE_GL_GLU_H 19232# include <GL/glu.h> 19233# elif defined(HAVE_OPENGL_GLU_H) 19234# include <OpenGL/glu.h> 19235# else 19236# error no glu.h 19237# endif 19238int 19239main () 19240{ 19241gluBeginCurve(0) 19242 ; 19243 return 0; 19244} 19245_ACEOF 19246if ac_fn_c_try_link "$LINENO"; then : 19247 ax_cv_check_glu_libglu=yes 19248else 19249 LIBS="" 19250ax_check_libs="-lglu32 -lGLU" 19251for ax_lib in ${ax_check_libs}; do 19252 if test X$ax_compiler_ms = Xyes; then : 19253 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19254else 19255 ax_try_lib="${ax_lib}" 19256fi 19257 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19259/* end confdefs.h. */ 19260 19261# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19262# include <windows.h> 19263# endif 19264# ifdef HAVE_GL_GLU_H 19265# include <GL/glu.h> 19266# elif defined(HAVE_OPENGL_GLU_H) 19267# include <OpenGL/glu.h> 19268# else 19269# error no glu.h 19270# endif 19271int 19272main () 19273{ 19274gluBeginCurve(0) 19275 ; 19276 return 0; 19277} 19278_ACEOF 19279if ac_fn_c_try_link "$LINENO"; then : 19280 ax_cv_check_glu_libglu="${ax_try_lib}"; break 19281fi 19282rm -f core conftest.err conftest.$ac_objext \ 19283 conftest$ac_exeext conftest.$ac_ext 19284done 19285 19286fi 19287rm -f core conftest.err conftest.$ac_objext \ 19288 conftest$ac_exeext conftest.$ac_ext 19289if test X$ax_compiler_ms = Xyes; then : 19290 ac_ext=cpp 19291ac_cpp='$CXXCPP $CPPFLAGS' 19292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19295 19296fi 19297ac_ext=c 19298ac_cpp='$CPP $CPPFLAGS' 19299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19301ac_compiler_gnu=$ac_cv_c_compiler_gnu 19302 19303 19304LIBS=${ax_save_LIBS} 19305CPPFLAGS=${ax_save_CPPFLAGS} 19306fi 19307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 19308$as_echo "$ax_cv_check_glu_libglu" >&6; } 19309if test "X$ax_cv_check_glu_libglu" = Xno; then : 19310 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 19311else 19312 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 19313 GLU_LIBS="$GL_LIBS" 19314else 19315 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 19316fi 19317fi 19318 19319 19320 19321if test "X$ax_cv_check_glu_libglu" != Xno; then : 19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 19323$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 19324if ${ax_cv_varargs_glu_tesscb+:} false; then : 19325 $as_echo_n "(cached) " >&6 19326else 19327 ax_cv_varargs_glu_tesscb=no 19328ax_save_CFLAGS="$CFLAGS" 19329CFLAGS="$GL_CFLAGS $CFLAGS" 19330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19331/* end confdefs.h. */ 19332 19333# ifdef HAVE_GL_GLU_H 19334# include <GL/glu.h> 19335# else 19336# include <OpenGL/glu.h> 19337# endif 19338int 19339main () 19340{ 19341GLvoid (*func)(...); gluTessCallback(0, 0, func) 19342 ; 19343 return 0; 19344} 19345_ACEOF 19346if ac_fn_c_try_compile "$LINENO"; then : 19347 ax_cv_varargs_glu_tesscb=yes 19348fi 19349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19350CFLAGS="$ax_save_CFLAGS" 19351fi 19352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 19353$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 19354if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 19355 19356$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 19357 19358fi 19359fi 19360 19361 19362ax_save_CPPFLAGS="${CPPFLAGS}" 19363CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 19364for ac_header in GL/glut.h GLUT/glut.h 19365do : 19366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19369 cat >>confdefs.h <<_ACEOF 19370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19371_ACEOF 19372 19373fi 19374 19375done 19376 19377CPPFLAGS="${ax_save_CPPFLAGS}" 19378 19379GLUT_CFLAGS=${GLU_CFLAGS} 19380GLUT_LIBS=${GLU_LIBS} 19381 19382 19383 19384if test X$no_x != Xyes; then : 19385 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 19386fi 19387 19388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 19389$as_echo_n "checking for GLUT library... " >&6; } 19390if ${ax_cv_check_glut_libglut+:} false; then : 19391 $as_echo_n "(cached) " >&6 19392else 19393 ax_cv_check_glut_libglut="no" 19394ac_ext=c 19395ac_cpp='$CPP $CPPFLAGS' 19396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19398ac_compiler_gnu=$ac_cv_c_compiler_gnu 19399 19400ax_save_CPPFLAGS="${CPPFLAGS}" 19401CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 19402ax_save_LIBS="${LIBS}" 19403LIBS="" 19404ax_check_libs="-lglut32 -lglut" 19405for ax_lib in ${ax_check_libs}; do 19406 if test X$ax_compiler_ms = Xyes; then : 19407 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19408else 19409 ax_try_lib="${ax_lib}" 19410fi 19411 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 19412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19413/* end confdefs.h. */ 19414 19415# if HAVE_WINDOWS_H && defined(_WIN32) 19416# include <windows.h> 19417# endif 19418# ifdef HAVE_GL_GLUT_H 19419# include <GL/glut.h> 19420# elif defined(HAVE_GLUT_GLUT_H) 19421# include <GLUT/glut.h> 19422# else 19423# error no glut.h 19424# endif 19425int 19426main () 19427{ 19428glutMainLoop() 19429 ; 19430 return 0; 19431} 19432_ACEOF 19433if ac_fn_c_try_link "$LINENO"; then : 19434 ax_cv_check_glut_libglut="${ax_try_lib}"; break 19435fi 19436rm -f core conftest.err conftest.$ac_objext \ 19437 conftest$ac_exeext conftest.$ac_ext 19438done 19439 19440if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 19441 LIBS='-framework GLUT' 19442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19443/* end confdefs.h. */ 19444 19445# if HAVE_WINDOWS_H && defined(_WIN32) 19446# include <windows.h> 19447# endif 19448# ifdef HAVE_GL_GLUT_H 19449# include <GL/glut.h> 19450# elif defined(HAVE_GLUT_GLUT_H) 19451# include <GLUT/glut.h> 19452# else 19453# error no glut.h 19454# endif 19455int 19456main () 19457{ 19458glutMainLoop() 19459 ; 19460 return 0; 19461} 19462_ACEOF 19463if ac_fn_c_try_link "$LINENO"; then : 19464 ax_cv_check_glut_libglut="$LIBS" 19465fi 19466rm -f core conftest.err conftest.$ac_objext \ 19467 conftest$ac_exeext conftest.$ac_ext 19468fi 19469 19470CPPFLAGS="${ax_save_CPPFLAGS}" 19471LIBS="${ax_save_LIBS}" 19472ac_ext=c 19473ac_cpp='$CPP $CPPFLAGS' 19474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19476ac_compiler_gnu=$ac_cv_c_compiler_gnu 19477 19478fi 19479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 19480$as_echo "$ax_cv_check_glut_libglut" >&6; } 19481 19482if test "X$ax_cv_check_glut_libglut" = Xno; then : 19483 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 19484else 19485 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 19486fi 19487 19488 19489 19490 19491 19492if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 19493 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 19494 HAVE_OPENGL=yes 19495fi 19496 19497 if test "$HAVE_OPENGL" = "yes"; then 19498 HAVE_OPENGL_TRUE= 19499 HAVE_OPENGL_FALSE='#' 19500else 19501 HAVE_OPENGL_TRUE='#' 19502 HAVE_OPENGL_FALSE= 19503fi 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513# Check whether --enable-strip-chopping was given. 19514if test "${enable_strip_chopping+set}" = set; then : 19515 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 19516else 19517 HAVE_STRIPCHOP=yes 19518fi 19519 19520 19521# Check whether --with-default-strip-size was given. 19522if test "${with_default_strip_size+set}" = set; then : 19523 withval=$with_default_strip_size; 19524fi 19525 19526 19527if test "$HAVE_STRIPCHOP" = "yes" \ 19528 -a "x$with_default_strip_size" != "xno"; then 19529 19530$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 19531 19532 19533 if test "x$with_default_strip_size" = "x" \ 19534 -o "x$with_default_strip_size" = "xyes"; then 19535 with_default_strip_size="8192" 19536 fi 19537 19538 19539cat >>confdefs.h <<_ACEOF 19540#define STRIP_SIZE_DEFAULT $with_default_strip_size 19541_ACEOF 19542 19543 19544fi 19545 19546 19547$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 19548 19549 19550 19551# Check whether --enable-extrasample-as-alpha was given. 19552if test "${enable_extrasample_as_alpha+set}" = set; then : 19553 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 19554else 19555 HAVE_EXTRASAMPLE_AS_ALPHA=yes 19556fi 19557 19558 19559if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 19560 19561$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 19562 19563fi 19564 19565 19566# Check whether --enable-check-ycbcr-subsampling was given. 19567if test "${enable_check_ycbcr_subsampling+set}" = set; then : 19568 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 19569else 19570 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 19571fi 19572 19573 19574if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 19575 19576$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 19577 19578fi 19579 19580 19581 19582 19583ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 19584 19585 19586ac_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" 19587 19588cat >confcache <<\_ACEOF 19589# This file is a shell script that caches the results of configure 19590# tests run on this system so they can be shared between configure 19591# scripts and configure runs, see configure's option --config-cache. 19592# It is not useful on other systems. If it contains results you don't 19593# want to keep, you may remove or edit it. 19594# 19595# config.status only pays attention to the cache file if you give it 19596# the --recheck option to rerun configure. 19597# 19598# `ac_cv_env_foo' variables (set or unset) will be overridden when 19599# loading this file, other *unset* `ac_cv_foo' will be assigned the 19600# following values. 19601 19602_ACEOF 19603 19604# The following way of writing the cache mishandles newlines in values, 19605# but we know of no workaround that is simple, portable, and efficient. 19606# So, we kill variables containing newlines. 19607# Ultrix sh set writes to stderr and can't be redirected directly, 19608# and sets the high bit in the cache file unless we assign to the vars. 19609( 19610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19611 eval ac_val=\$$ac_var 19612 case $ac_val in #( 19613 *${as_nl}*) 19614 case $ac_var in #( 19615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19616$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19617 esac 19618 case $ac_var in #( 19619 _ | IFS | as_nl) ;; #( 19620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19621 *) { eval $ac_var=; unset $ac_var;} ;; 19622 esac ;; 19623 esac 19624 done 19625 19626 (set) 2>&1 | 19627 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19628 *${as_nl}ac_space=\ *) 19629 # `set' does not quote correctly, so add quotes: double-quote 19630 # substitution turns \\\\ into \\, and sed turns \\ into \. 19631 sed -n \ 19632 "s/'/'\\\\''/g; 19633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19634 ;; #( 19635 *) 19636 # `set' quotes correctly as required by POSIX, so do not add quotes. 19637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19638 ;; 19639 esac | 19640 sort 19641) | 19642 sed ' 19643 /^ac_cv_env_/b end 19644 t clear 19645 :clear 19646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19647 t end 19648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19649 :end' >>confcache 19650if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19651 if test -w "$cache_file"; then 19652 if test "x$cache_file" != "x/dev/null"; then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19654$as_echo "$as_me: updating cache $cache_file" >&6;} 19655 if test ! -f "$cache_file" || test -h "$cache_file"; then 19656 cat confcache >"$cache_file" 19657 else 19658 case $cache_file in #( 19659 */* | ?:*) 19660 mv -f confcache "$cache_file"$$ && 19661 mv -f "$cache_file"$$ "$cache_file" ;; #( 19662 *) 19663 mv -f confcache "$cache_file" ;; 19664 esac 19665 fi 19666 fi 19667 else 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19669$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19670 fi 19671fi 19672rm -f confcache 19673 19674test "x$prefix" = xNONE && prefix=$ac_default_prefix 19675# Let make expand exec_prefix. 19676test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19677 19678DEFS=-DHAVE_CONFIG_H 19679 19680ac_libobjs= 19681ac_ltlibobjs= 19682U= 19683for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19684 # 1. Remove the extension, and $U if already installed. 19685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19688 # will be set to the directory where LIBOBJS objects are built. 19689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19691done 19692LIBOBJS=$ac_libobjs 19693 19694LTLIBOBJS=$ac_ltlibobjs 19695 19696 19697 if test -n "$EXEEXT"; then 19698 am__EXEEXT_TRUE= 19699 am__EXEEXT_FALSE='#' 19700else 19701 am__EXEEXT_TRUE='#' 19702 am__EXEEXT_FALSE= 19703fi 19704 19705if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19706 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19707Usually this means the macro was only invoked conditionally." "$LINENO" 5 19708fi 19709if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19710 as_fn_error $? "conditional \"AMDEP\" was never defined. 19711Usually this means the macro was only invoked conditionally." "$LINENO" 5 19712fi 19713if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19714 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19715Usually this means the macro was only invoked conditionally." "$LINENO" 5 19716fi 19717if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19718 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19719Usually this means the macro was only invoked conditionally." "$LINENO" 5 19720fi 19721 19722if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 19723 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 19724Usually this means the macro was only invoked conditionally." "$LINENO" 5 19725fi 19726if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 19727 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 19728Usually this means the macro was only invoked conditionally." "$LINENO" 5 19729fi 19730if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 19731 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 19732Usually this means the macro was only invoked conditionally." "$LINENO" 5 19733fi 19734 19735: "${CONFIG_STATUS=./config.status}" 19736ac_write_fail=0 19737ac_clean_files_save=$ac_clean_files 19738ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19739{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19740$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19741as_write_fail=0 19742cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19743#! $SHELL 19744# Generated by $as_me. 19745# Run this file to recreate the current configuration. 19746# Compiler output produced by configure, useful for debugging 19747# configure, is in config.log if it exists. 19748 19749debug=false 19750ac_cs_recheck=false 19751ac_cs_silent=false 19752 19753SHELL=\${CONFIG_SHELL-$SHELL} 19754export SHELL 19755_ASEOF 19756cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19757## -------------------- ## 19758## M4sh Initialization. ## 19759## -------------------- ## 19760 19761# Be more Bourne compatible 19762DUALCASE=1; export DUALCASE # for MKS sh 19763if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19764 emulate sh 19765 NULLCMD=: 19766 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19767 # is contrary to our usage. Disable this feature. 19768 alias -g '${1+"$@"}'='"$@"' 19769 setopt NO_GLOB_SUBST 19770else 19771 case `(set -o) 2>/dev/null` in #( 19772 *posix*) : 19773 set -o posix ;; #( 19774 *) : 19775 ;; 19776esac 19777fi 19778 19779 19780as_nl=' 19781' 19782export as_nl 19783# Printing a long string crashes Solaris 7 /usr/bin/printf. 19784as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19785as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19786as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19787# Prefer a ksh shell builtin over an external printf program on Solaris, 19788# but without wasting forks for bash or zsh. 19789if test -z "$BASH_VERSION$ZSH_VERSION" \ 19790 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19791 as_echo='print -r --' 19792 as_echo_n='print -rn --' 19793elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19794 as_echo='printf %s\n' 19795 as_echo_n='printf %s' 19796else 19797 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19798 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19799 as_echo_n='/usr/ucb/echo -n' 19800 else 19801 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19802 as_echo_n_body='eval 19803 arg=$1; 19804 case $arg in #( 19805 *"$as_nl"*) 19806 expr "X$arg" : "X\\(.*\\)$as_nl"; 19807 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19808 esac; 19809 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19810 ' 19811 export as_echo_n_body 19812 as_echo_n='sh -c $as_echo_n_body as_echo' 19813 fi 19814 export as_echo_body 19815 as_echo='sh -c $as_echo_body as_echo' 19816fi 19817 19818# The user is always right. 19819if test "${PATH_SEPARATOR+set}" != set; then 19820 PATH_SEPARATOR=: 19821 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19822 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19823 PATH_SEPARATOR=';' 19824 } 19825fi 19826 19827 19828# IFS 19829# We need space, tab and new line, in precisely that order. Quoting is 19830# there to prevent editors from complaining about space-tab. 19831# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19832# splitting by setting IFS to empty value.) 19833IFS=" "" $as_nl" 19834 19835# Find who we are. Look in the path if we contain no directory separator. 19836as_myself= 19837case $0 in #(( 19838 *[\\/]* ) as_myself=$0 ;; 19839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19840for as_dir in $PATH 19841do 19842 IFS=$as_save_IFS 19843 test -z "$as_dir" && as_dir=. 19844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19845 done 19846IFS=$as_save_IFS 19847 19848 ;; 19849esac 19850# We did not find ourselves, most probably we were run as `sh COMMAND' 19851# in which case we are not to be found in the path. 19852if test "x$as_myself" = x; then 19853 as_myself=$0 19854fi 19855if test ! -f "$as_myself"; then 19856 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19857 exit 1 19858fi 19859 19860# Unset variables that we do not need and which cause bugs (e.g. in 19861# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19862# suppresses any "Segmentation fault" message there. '((' could 19863# trigger a bug in pdksh 5.2.14. 19864for as_var in BASH_ENV ENV MAIL MAILPATH 19865do eval test x\${$as_var+set} = xset \ 19866 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19867done 19868PS1='$ ' 19869PS2='> ' 19870PS4='+ ' 19871 19872# NLS nuisances. 19873LC_ALL=C 19874export LC_ALL 19875LANGUAGE=C 19876export LANGUAGE 19877 19878# CDPATH. 19879(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19880 19881 19882# as_fn_error STATUS ERROR [LINENO LOG_FD] 19883# ---------------------------------------- 19884# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19885# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19886# script with STATUS, using 1 if that was 0. 19887as_fn_error () 19888{ 19889 as_status=$1; test $as_status -eq 0 && as_status=1 19890 if test "$4"; then 19891 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19892 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19893 fi 19894 $as_echo "$as_me: error: $2" >&2 19895 as_fn_exit $as_status 19896} # as_fn_error 19897 19898 19899# as_fn_set_status STATUS 19900# ----------------------- 19901# Set $? to STATUS, without forking. 19902as_fn_set_status () 19903{ 19904 return $1 19905} # as_fn_set_status 19906 19907# as_fn_exit STATUS 19908# ----------------- 19909# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19910as_fn_exit () 19911{ 19912 set +e 19913 as_fn_set_status $1 19914 exit $1 19915} # as_fn_exit 19916 19917# as_fn_unset VAR 19918# --------------- 19919# Portably unset VAR. 19920as_fn_unset () 19921{ 19922 { eval $1=; unset $1;} 19923} 19924as_unset=as_fn_unset 19925# as_fn_append VAR VALUE 19926# ---------------------- 19927# Append the text in VALUE to the end of the definition contained in VAR. Take 19928# advantage of any shell optimizations that allow amortized linear growth over 19929# repeated appends, instead of the typical quadratic growth present in naive 19930# implementations. 19931if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19932 eval 'as_fn_append () 19933 { 19934 eval $1+=\$2 19935 }' 19936else 19937 as_fn_append () 19938 { 19939 eval $1=\$$1\$2 19940 } 19941fi # as_fn_append 19942 19943# as_fn_arith ARG... 19944# ------------------ 19945# Perform arithmetic evaluation on the ARGs, and store the result in the 19946# global $as_val. Take advantage of shells that can avoid forks. The arguments 19947# must be portable across $(()) and expr. 19948if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19949 eval 'as_fn_arith () 19950 { 19951 as_val=$(( $* )) 19952 }' 19953else 19954 as_fn_arith () 19955 { 19956 as_val=`expr "$@" || test $? -eq 1` 19957 } 19958fi # as_fn_arith 19959 19960 19961if expr a : '\(a\)' >/dev/null 2>&1 && 19962 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19963 as_expr=expr 19964else 19965 as_expr=false 19966fi 19967 19968if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19969 as_basename=basename 19970else 19971 as_basename=false 19972fi 19973 19974if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19975 as_dirname=dirname 19976else 19977 as_dirname=false 19978fi 19979 19980as_me=`$as_basename -- "$0" || 19981$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19982 X"$0" : 'X\(//\)$' \| \ 19983 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19984$as_echo X/"$0" | 19985 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19986 s//\1/ 19987 q 19988 } 19989 /^X\/\(\/\/\)$/{ 19990 s//\1/ 19991 q 19992 } 19993 /^X\/\(\/\).*/{ 19994 s//\1/ 19995 q 19996 } 19997 s/.*/./; q'` 19998 19999# Avoid depending upon Character Ranges. 20000as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20001as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20002as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20003as_cr_digits='0123456789' 20004as_cr_alnum=$as_cr_Letters$as_cr_digits 20005 20006ECHO_C= ECHO_N= ECHO_T= 20007case `echo -n x` in #((((( 20008-n*) 20009 case `echo 'xy\c'` in 20010 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20011 xy) ECHO_C='\c';; 20012 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20013 ECHO_T=' ';; 20014 esac;; 20015*) 20016 ECHO_N='-n';; 20017esac 20018 20019rm -f conf$$ conf$$.exe conf$$.file 20020if test -d conf$$.dir; then 20021 rm -f conf$$.dir/conf$$.file 20022else 20023 rm -f conf$$.dir 20024 mkdir conf$$.dir 2>/dev/null 20025fi 20026if (echo >conf$$.file) 2>/dev/null; then 20027 if ln -s conf$$.file conf$$ 2>/dev/null; then 20028 as_ln_s='ln -s' 20029 # ... but there are two gotchas: 20030 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20031 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20032 # In both cases, we have to default to `cp -p'. 20033 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20034 as_ln_s='cp -p' 20035 elif ln conf$$.file conf$$ 2>/dev/null; then 20036 as_ln_s=ln 20037 else 20038 as_ln_s='cp -p' 20039 fi 20040else 20041 as_ln_s='cp -p' 20042fi 20043rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20044rmdir conf$$.dir 2>/dev/null 20045 20046 20047# as_fn_mkdir_p 20048# ------------- 20049# Create "$as_dir" as a directory, including parents if necessary. 20050as_fn_mkdir_p () 20051{ 20052 20053 case $as_dir in #( 20054 -*) as_dir=./$as_dir;; 20055 esac 20056 test -d "$as_dir" || eval $as_mkdir_p || { 20057 as_dirs= 20058 while :; do 20059 case $as_dir in #( 20060 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20061 *) as_qdir=$as_dir;; 20062 esac 20063 as_dirs="'$as_qdir' $as_dirs" 20064 as_dir=`$as_dirname -- "$as_dir" || 20065$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20066 X"$as_dir" : 'X\(//\)[^/]' \| \ 20067 X"$as_dir" : 'X\(//\)$' \| \ 20068 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20069$as_echo X"$as_dir" | 20070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20071 s//\1/ 20072 q 20073 } 20074 /^X\(\/\/\)[^/].*/{ 20075 s//\1/ 20076 q 20077 } 20078 /^X\(\/\/\)$/{ 20079 s//\1/ 20080 q 20081 } 20082 /^X\(\/\).*/{ 20083 s//\1/ 20084 q 20085 } 20086 s/.*/./; q'` 20087 test -d "$as_dir" && break 20088 done 20089 test -z "$as_dirs" || eval "mkdir $as_dirs" 20090 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20091 20092 20093} # as_fn_mkdir_p 20094if mkdir -p . 2>/dev/null; then 20095 as_mkdir_p='mkdir -p "$as_dir"' 20096else 20097 test -d ./-p && rmdir ./-p 20098 as_mkdir_p=false 20099fi 20100 20101if test -x / >/dev/null 2>&1; then 20102 as_test_x='test -x' 20103else 20104 if ls -dL / >/dev/null 2>&1; then 20105 as_ls_L_option=L 20106 else 20107 as_ls_L_option= 20108 fi 20109 as_test_x=' 20110 eval sh -c '\'' 20111 if test -d "$1"; then 20112 test -d "$1/."; 20113 else 20114 case $1 in #( 20115 -*)set "./$1";; 20116 esac; 20117 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20118 ???[sx]*):;;*)false;;esac;fi 20119 '\'' sh 20120 ' 20121fi 20122as_executable_p=$as_test_x 20123 20124# Sed expression to map a string onto a valid CPP name. 20125as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20126 20127# Sed expression to map a string onto a valid variable name. 20128as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20129 20130 20131exec 6>&1 20132## ----------------------------------- ## 20133## Main body of $CONFIG_STATUS script. ## 20134## ----------------------------------- ## 20135_ASEOF 20136test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20137 20138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20139# Save the log message, to keep $0 and so on meaningful, and to 20140# report actual input values of CONFIG_FILES etc. instead of their 20141# values after options handling. 20142ac_log=" 20143This file was extended by LibTIFF Software $as_me 4.0.0beta6, which was 20144generated by GNU Autoconf 2.68. Invocation command line was 20145 20146 CONFIG_FILES = $CONFIG_FILES 20147 CONFIG_HEADERS = $CONFIG_HEADERS 20148 CONFIG_LINKS = $CONFIG_LINKS 20149 CONFIG_COMMANDS = $CONFIG_COMMANDS 20150 $ $0 $@ 20151 20152on `(hostname || uname -n) 2>/dev/null | sed 1q` 20153" 20154 20155_ACEOF 20156 20157case $ac_config_files in *" 20158"*) set x $ac_config_files; shift; ac_config_files=$*;; 20159esac 20160 20161case $ac_config_headers in *" 20162"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20163esac 20164 20165 20166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20167# Files that config.status was made for. 20168config_files="$ac_config_files" 20169config_headers="$ac_config_headers" 20170config_commands="$ac_config_commands" 20171 20172_ACEOF 20173 20174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20175ac_cs_usage="\ 20176\`$as_me' instantiates files and other configuration actions 20177from templates according to the current configuration. Unless the files 20178and actions are specified as TAGs, all are instantiated by default. 20179 20180Usage: $0 [OPTION]... [TAG]... 20181 20182 -h, --help print this help, then exit 20183 -V, --version print version number and configuration settings, then exit 20184 --config print configuration, then exit 20185 -q, --quiet, --silent 20186 do not print progress messages 20187 -d, --debug don't remove temporary files 20188 --recheck update $as_me by reconfiguring in the same conditions 20189 --file=FILE[:TEMPLATE] 20190 instantiate the configuration file FILE 20191 --header=FILE[:TEMPLATE] 20192 instantiate the configuration header FILE 20193 20194Configuration files: 20195$config_files 20196 20197Configuration headers: 20198$config_headers 20199 20200Configuration commands: 20201$config_commands 20202 20203Report bugs to <[email protected]>." 20204 20205_ACEOF 20206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20207ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20208ac_cs_version="\\ 20209LibTIFF Software config.status 4.0.0beta6 20210configured by $0, generated by GNU Autoconf 2.68, 20211 with options \\"\$ac_cs_config\\" 20212 20213Copyright (C) 2010 Free Software Foundation, Inc. 20214This config.status script is free software; the Free Software Foundation 20215gives unlimited permission to copy, distribute and modify it." 20216 20217ac_pwd='$ac_pwd' 20218srcdir='$srcdir' 20219INSTALL='$INSTALL' 20220MKDIR_P='$MKDIR_P' 20221AWK='$AWK' 20222test -n "\$AWK" || AWK=awk 20223_ACEOF 20224 20225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20226# The default lists apply if the user does not specify any file. 20227ac_need_defaults=: 20228while test $# != 0 20229do 20230 case $1 in 20231 --*=?*) 20232 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20234 ac_shift=: 20235 ;; 20236 --*=) 20237 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20238 ac_optarg= 20239 ac_shift=: 20240 ;; 20241 *) 20242 ac_option=$1 20243 ac_optarg=$2 20244 ac_shift=shift 20245 ;; 20246 esac 20247 20248 case $ac_option in 20249 # Handling of the options. 20250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20251 ac_cs_recheck=: ;; 20252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20253 $as_echo "$ac_cs_version"; exit ;; 20254 --config | --confi | --conf | --con | --co | --c ) 20255 $as_echo "$ac_cs_config"; exit ;; 20256 --debug | --debu | --deb | --de | --d | -d ) 20257 debug=: ;; 20258 --file | --fil | --fi | --f ) 20259 $ac_shift 20260 case $ac_optarg in 20261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20262 '') as_fn_error $? "missing file argument" ;; 20263 esac 20264 as_fn_append CONFIG_FILES " '$ac_optarg'" 20265 ac_need_defaults=false;; 20266 --header | --heade | --head | --hea ) 20267 $ac_shift 20268 case $ac_optarg in 20269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20270 esac 20271 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20272 ac_need_defaults=false;; 20273 --he | --h) 20274 # Conflict between --help and --header 20275 as_fn_error $? "ambiguous option: \`$1' 20276Try \`$0 --help' for more information.";; 20277 --help | --hel | -h ) 20278 $as_echo "$ac_cs_usage"; exit ;; 20279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20280 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20281 ac_cs_silent=: ;; 20282 20283 # This is an error. 20284 -*) as_fn_error $? "unrecognized option: \`$1' 20285Try \`$0 --help' for more information." ;; 20286 20287 *) as_fn_append ac_config_targets " $1" 20288 ac_need_defaults=false ;; 20289 20290 esac 20291 shift 20292done 20293 20294ac_configure_extra_args= 20295 20296if $ac_cs_silent; then 20297 exec 6>/dev/null 20298 ac_configure_extra_args="$ac_configure_extra_args --silent" 20299fi 20300 20301_ACEOF 20302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20303if \$ac_cs_recheck; then 20304 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20305 shift 20306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20307 CONFIG_SHELL='$SHELL' 20308 export CONFIG_SHELL 20309 exec "\$@" 20310fi 20311 20312_ACEOF 20313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20314exec 5>>config.log 20315{ 20316 echo 20317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20318## Running $as_me. ## 20319_ASBOX 20320 $as_echo "$ac_log" 20321} >&5 20322 20323_ACEOF 20324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20325# 20326# INIT-COMMANDS 20327# 20328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20329 20330 20331# The HP-UX ksh and POSIX shell print the target directory to stdout 20332# if CDPATH is set. 20333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20334 20335sed_quote_subst='$sed_quote_subst' 20336double_quote_subst='$double_quote_subst' 20337delay_variable_subst='$delay_variable_subst' 20338macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20339macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20340AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20341DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20342OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20343enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20344enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20345pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20346enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20347SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20348ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20349host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20350host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20351host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20352build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20353build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20354build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20355SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20356Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20357GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20358EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20359FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20360LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20361NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20362LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20363max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20364ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20365exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20366lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20367lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20368lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20369lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20370lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20371reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20372reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20373deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20374file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20375file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20376want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20377sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20378AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20379AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20380archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20381STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20382RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20383old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20384old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20385old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20386lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20387CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20388CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20389compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20390GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20391lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20392lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20393lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20394lt_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"`' 20395nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20396lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20397objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20398MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20399lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20400lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20401lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20402lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20403lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20404need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20405MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20406DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20407NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20408LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20409OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20410OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20411libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20412shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20413extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20414archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20415enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20416export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20417whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20418compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20419old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20420old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20421archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20422archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20423module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20424module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20425with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20426allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20427no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20428hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20429hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 20430hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20431hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20432hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20433hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20434hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20435hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20436inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20437link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20438always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20439export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20440exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20441include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20442prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20443postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20444file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20445variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20446need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20447need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20448version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20449runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20450shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20451shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20452libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20453library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20454soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20455install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20456postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20457postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20458finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20459finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20460hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20461sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20462sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20463hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20464enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20465enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20466enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20467old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20468striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20469compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20470predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20471postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20472predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20473postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20474compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20475LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20476reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20477reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20478old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20479compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20480GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20481lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20482lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20483lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20484lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20485lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20486archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20487enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20488export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20489whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20490compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20491old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20492old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20493archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20494archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20495module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20496module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20497with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20498allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20499no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20500hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20501hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 20502hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20503hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20504hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20505hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20506hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20507hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20508inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20509link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20510always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20511export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20512exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20513include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20514prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20515postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20516file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20517hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20518compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20519predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20520postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20521predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20522postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20523compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20524 20525LTCC='$LTCC' 20526LTCFLAGS='$LTCFLAGS' 20527compiler='$compiler_DEFAULT' 20528 20529# A function that is used when there is no print builtin or printf. 20530func_fallback_echo () 20531{ 20532 eval 'cat <<_LTECHO_EOF 20533\$1 20534_LTECHO_EOF' 20535} 20536 20537# Quote evaled strings. 20538for var in AS \ 20539DLLTOOL \ 20540OBJDUMP \ 20541SHELL \ 20542ECHO \ 20543SED \ 20544GREP \ 20545EGREP \ 20546FGREP \ 20547LD \ 20548NM \ 20549LN_S \ 20550lt_SP2NL \ 20551lt_NL2SP \ 20552reload_flag \ 20553deplibs_check_method \ 20554file_magic_cmd \ 20555file_magic_glob \ 20556want_nocaseglob \ 20557sharedlib_from_linklib_cmd \ 20558AR \ 20559AR_FLAGS \ 20560archiver_list_spec \ 20561STRIP \ 20562RANLIB \ 20563CC \ 20564CFLAGS \ 20565compiler \ 20566lt_cv_sys_global_symbol_pipe \ 20567lt_cv_sys_global_symbol_to_cdecl \ 20568lt_cv_sys_global_symbol_to_c_name_address \ 20569lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20570nm_file_list_spec \ 20571lt_prog_compiler_no_builtin_flag \ 20572lt_prog_compiler_pic \ 20573lt_prog_compiler_wl \ 20574lt_prog_compiler_static \ 20575lt_cv_prog_compiler_c_o \ 20576need_locks \ 20577MANIFEST_TOOL \ 20578DSYMUTIL \ 20579NMEDIT \ 20580LIPO \ 20581OTOOL \ 20582OTOOL64 \ 20583shrext_cmds \ 20584export_dynamic_flag_spec \ 20585whole_archive_flag_spec \ 20586compiler_needs_object \ 20587with_gnu_ld \ 20588allow_undefined_flag \ 20589no_undefined_flag \ 20590hardcode_libdir_flag_spec \ 20591hardcode_libdir_flag_spec_ld \ 20592hardcode_libdir_separator \ 20593exclude_expsyms \ 20594include_expsyms \ 20595file_list_spec \ 20596variables_saved_for_relink \ 20597libname_spec \ 20598library_names_spec \ 20599soname_spec \ 20600install_override_mode \ 20601finish_eval \ 20602old_striplib \ 20603striplib \ 20604compiler_lib_search_dirs \ 20605predep_objects \ 20606postdep_objects \ 20607predeps \ 20608postdeps \ 20609compiler_lib_search_path \ 20610LD_CXX \ 20611reload_flag_CXX \ 20612compiler_CXX \ 20613lt_prog_compiler_no_builtin_flag_CXX \ 20614lt_prog_compiler_pic_CXX \ 20615lt_prog_compiler_wl_CXX \ 20616lt_prog_compiler_static_CXX \ 20617lt_cv_prog_compiler_c_o_CXX \ 20618export_dynamic_flag_spec_CXX \ 20619whole_archive_flag_spec_CXX \ 20620compiler_needs_object_CXX \ 20621with_gnu_ld_CXX \ 20622allow_undefined_flag_CXX \ 20623no_undefined_flag_CXX \ 20624hardcode_libdir_flag_spec_CXX \ 20625hardcode_libdir_flag_spec_ld_CXX \ 20626hardcode_libdir_separator_CXX \ 20627exclude_expsyms_CXX \ 20628include_expsyms_CXX \ 20629file_list_spec_CXX \ 20630compiler_lib_search_dirs_CXX \ 20631predep_objects_CXX \ 20632postdep_objects_CXX \ 20633predeps_CXX \ 20634postdeps_CXX \ 20635compiler_lib_search_path_CXX; do 20636 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20637 *[\\\\\\\`\\"\\\$]*) 20638 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20639 ;; 20640 *) 20641 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20642 ;; 20643 esac 20644done 20645 20646# Double-quote double-evaled strings. 20647for var in reload_cmds \ 20648old_postinstall_cmds \ 20649old_postuninstall_cmds \ 20650old_archive_cmds \ 20651extract_expsyms_cmds \ 20652old_archive_from_new_cmds \ 20653old_archive_from_expsyms_cmds \ 20654archive_cmds \ 20655archive_expsym_cmds \ 20656module_cmds \ 20657module_expsym_cmds \ 20658export_symbols_cmds \ 20659prelink_cmds \ 20660postlink_cmds \ 20661postinstall_cmds \ 20662postuninstall_cmds \ 20663finish_cmds \ 20664sys_lib_search_path_spec \ 20665sys_lib_dlsearch_path_spec \ 20666reload_cmds_CXX \ 20667old_archive_cmds_CXX \ 20668old_archive_from_new_cmds_CXX \ 20669old_archive_from_expsyms_cmds_CXX \ 20670archive_cmds_CXX \ 20671archive_expsym_cmds_CXX \ 20672module_cmds_CXX \ 20673module_expsym_cmds_CXX \ 20674export_symbols_cmds_CXX \ 20675prelink_cmds_CXX \ 20676postlink_cmds_CXX; do 20677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20678 *[\\\\\\\`\\"\\\$]*) 20679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20680 ;; 20681 *) 20682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20683 ;; 20684 esac 20685done 20686 20687ac_aux_dir='$ac_aux_dir' 20688xsi_shell='$xsi_shell' 20689lt_shell_append='$lt_shell_append' 20690 20691# See if we are running on zsh, and set the options which allow our 20692# commands through without removal of \ escapes INIT. 20693if test -n "\${ZSH_VERSION+set}" ; then 20694 setopt NO_GLOB_SUBST 20695fi 20696 20697 20698 PACKAGE='$PACKAGE' 20699 VERSION='$VERSION' 20700 TIMESTAMP='$TIMESTAMP' 20701 RM='$RM' 20702 ofile='$ofile' 20703 20704 20705 20706 20707 20708 20709_ACEOF 20710 20711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20712 20713# Handling of arguments. 20714for ac_config_target in $ac_config_targets 20715do 20716 case $ac_config_target in 20717 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20718 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20719 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 20720 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 20721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20722 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 20723 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 20724 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 20725 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 20726 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 20727 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 20728 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 20729 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 20730 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 20731 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 20732 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 20733 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 20734 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 20735 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 20736 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 20737 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 20738 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 20739 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20740 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 20741 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20742 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 20743 20744 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20745 esac 20746done 20747 20748 20749# If the user did not use the arguments to specify the items to instantiate, 20750# then the envvar interface is used. Set only those that are not. 20751# We use the long form for the default assignment because of an extremely 20752# bizarre bug on SunOS 4.1.3. 20753if $ac_need_defaults; then 20754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20757fi 20758 20759# Have a temporary directory for convenience. Make it in the build tree 20760# simply because there is no reason against having it here, and in addition, 20761# creating and moving files from /tmp can sometimes cause problems. 20762# Hook for its removal unless debugging. 20763# Note that there is a small window in which the directory will not be cleaned: 20764# after its creation but before its name has been assigned to `$tmp'. 20765$debug || 20766{ 20767 tmp= ac_tmp= 20768 trap 'exit_status=$? 20769 : "${ac_tmp:=$tmp}" 20770 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20771' 0 20772 trap 'as_fn_exit 1' 1 2 13 15 20773} 20774# Create a (secure) tmp directory for tmp files. 20775 20776{ 20777 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20778 test -d "$tmp" 20779} || 20780{ 20781 tmp=./conf$$-$RANDOM 20782 (umask 077 && mkdir "$tmp") 20783} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20784ac_tmp=$tmp 20785 20786# Set up the scripts for CONFIG_FILES section. 20787# No need to generate them if there are no CONFIG_FILES. 20788# This happens for instance with `./config.status config.h'. 20789if test -n "$CONFIG_FILES"; then 20790 20791 20792ac_cr=`echo X | tr X '\015'` 20793# On cygwin, bash can eat \r inside `` if the user requested igncr. 20794# But we know of no other shell where ac_cr would be empty at this 20795# point, so we can use a bashism as a fallback. 20796if test "x$ac_cr" = x; then 20797 eval ac_cr=\$\'\\r\' 20798fi 20799ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20800if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20801 ac_cs_awk_cr='\\r' 20802else 20803 ac_cs_awk_cr=$ac_cr 20804fi 20805 20806echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20807_ACEOF 20808 20809 20810{ 20811 echo "cat >conf$$subs.awk <<_ACEOF" && 20812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20813 echo "_ACEOF" 20814} >conf$$subs.sh || 20815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20816ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20817ac_delim='%!_!# ' 20818for ac_last_try in false false false false false :; do 20819 . ./conf$$subs.sh || 20820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20821 20822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20823 if test $ac_delim_n = $ac_delim_num; then 20824 break 20825 elif $ac_last_try; then 20826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20827 else 20828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20829 fi 20830done 20831rm -f conf$$subs.sh 20832 20833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20834cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20835_ACEOF 20836sed -n ' 20837h 20838s/^/S["/; s/!.*/"]=/ 20839p 20840g 20841s/^[^!]*!// 20842:repl 20843t repl 20844s/'"$ac_delim"'$// 20845t delim 20846:nl 20847h 20848s/\(.\{148\}\)..*/\1/ 20849t more1 20850s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20851p 20852n 20853b repl 20854:more1 20855s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20856p 20857g 20858s/.\{148\}// 20859t nl 20860:delim 20861h 20862s/\(.\{148\}\)..*/\1/ 20863t more2 20864s/["\\]/\\&/g; s/^/"/; s/$/"/ 20865p 20866b 20867:more2 20868s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20869p 20870g 20871s/.\{148\}// 20872t delim 20873' <conf$$subs.awk | sed ' 20874/^[^""]/{ 20875 N 20876 s/\n// 20877} 20878' >>$CONFIG_STATUS || ac_write_fail=1 20879rm -f conf$$subs.awk 20880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20881_ACAWK 20882cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20883 for (key in S) S_is_set[key] = 1 20884 FS = "" 20885 20886} 20887{ 20888 line = $ 0 20889 nfields = split(line, field, "@") 20890 substed = 0 20891 len = length(field[1]) 20892 for (i = 2; i < nfields; i++) { 20893 key = field[i] 20894 keylen = length(key) 20895 if (S_is_set[key]) { 20896 value = S[key] 20897 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20898 len += length(value) + length(field[++i]) 20899 substed = 1 20900 } else 20901 len += 1 + keylen 20902 } 20903 20904 print line 20905} 20906 20907_ACAWK 20908_ACEOF 20909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20910if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20912else 20913 cat 20914fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20915 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20916_ACEOF 20917 20918# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20919# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20920# trailing colons and then remove the whole line if VPATH becomes empty 20921# (actually we leave an empty line to preserve line numbers). 20922if test "x$srcdir" = x.; then 20923 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20924h 20925s/// 20926s/^/:/ 20927s/[ ]*$/:/ 20928s/:\$(srcdir):/:/g 20929s/:\${srcdir}:/:/g 20930s/:@srcdir@:/:/g 20931s/^:*// 20932s/:*$// 20933x 20934s/\(=[ ]*\).*/\1/ 20935G 20936s/\n// 20937s/^[^=]*=[ ]*$// 20938}' 20939fi 20940 20941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20942fi # test -n "$CONFIG_FILES" 20943 20944# Set up the scripts for CONFIG_HEADERS section. 20945# No need to generate them if there are no CONFIG_HEADERS. 20946# This happens for instance with `./config.status Makefile'. 20947if test -n "$CONFIG_HEADERS"; then 20948cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20949BEGIN { 20950_ACEOF 20951 20952# Transform confdefs.h into an awk script `defines.awk', embedded as 20953# here-document in config.status, that substitutes the proper values into 20954# config.h.in to produce config.h. 20955 20956# Create a delimiter string that does not exist in confdefs.h, to ease 20957# handling of long lines. 20958ac_delim='%!_!# ' 20959for ac_last_try in false false :; do 20960 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20961 if test -z "$ac_tt"; then 20962 break 20963 elif $ac_last_try; then 20964 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20965 else 20966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20967 fi 20968done 20969 20970# For the awk script, D is an array of macro values keyed by name, 20971# likewise P contains macro parameters if any. Preserve backslash 20972# newline sequences. 20973 20974ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20975sed -n ' 20976s/.\{148\}/&'"$ac_delim"'/g 20977t rset 20978:rset 20979s/^[ ]*#[ ]*define[ ][ ]*/ / 20980t def 20981d 20982:def 20983s/\\$// 20984t bsnl 20985s/["\\]/\\&/g 20986s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20987D["\1"]=" \3"/p 20988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20989d 20990:bsnl 20991s/["\\]/\\&/g 20992s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20993D["\1"]=" \3\\\\\\n"\\/p 20994t cont 20995s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20996t cont 20997d 20998:cont 20999n 21000s/.\{148\}/&'"$ac_delim"'/g 21001t clear 21002:clear 21003s/\\$// 21004t bsnlc 21005s/["\\]/\\&/g; s/^/"/; s/$/"/p 21006d 21007:bsnlc 21008s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21009b cont 21010' <confdefs.h | sed ' 21011s/'"$ac_delim"'/"\\\ 21012"/g' >>$CONFIG_STATUS || ac_write_fail=1 21013 21014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21015 for (key in D) D_is_set[key] = 1 21016 FS = "" 21017} 21018/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21019 line = \$ 0 21020 split(line, arg, " ") 21021 if (arg[1] == "#") { 21022 defundef = arg[2] 21023 mac1 = arg[3] 21024 } else { 21025 defundef = substr(arg[1], 2) 21026 mac1 = arg[2] 21027 } 21028 split(mac1, mac2, "(") #) 21029 macro = mac2[1] 21030 prefix = substr(line, 1, index(line, defundef) - 1) 21031 if (D_is_set[macro]) { 21032 # Preserve the white space surrounding the "#". 21033 print prefix "define", macro P[macro] D[macro] 21034 next 21035 } else { 21036 # Replace #undef with comments. This is necessary, for example, 21037 # in the case of _POSIX_SOURCE, which is predefined and required 21038 # on some systems where configure will not decide to define it. 21039 if (defundef == "undef") { 21040 print "/*", prefix defundef, macro, "*/" 21041 next 21042 } 21043 } 21044} 21045{ print } 21046_ACAWK 21047_ACEOF 21048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21049 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21050fi # test -n "$CONFIG_HEADERS" 21051 21052 21053eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21054shift 21055for ac_tag 21056do 21057 case $ac_tag in 21058 :[FHLC]) ac_mode=$ac_tag; continue;; 21059 esac 21060 case $ac_mode$ac_tag in 21061 :[FHL]*:*);; 21062 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21063 :[FH]-) ac_tag=-:-;; 21064 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21065 esac 21066 ac_save_IFS=$IFS 21067 IFS=: 21068 set x $ac_tag 21069 IFS=$ac_save_IFS 21070 shift 21071 ac_file=$1 21072 shift 21073 21074 case $ac_mode in 21075 :L) ac_source=$1;; 21076 :[FH]) 21077 ac_file_inputs= 21078 for ac_f 21079 do 21080 case $ac_f in 21081 -) ac_f="$ac_tmp/stdin";; 21082 *) # Look for the file first in the build tree, then in the source tree 21083 # (if the path is not absolute). The absolute path cannot be DOS-style, 21084 # because $ac_f cannot contain `:'. 21085 test -f "$ac_f" || 21086 case $ac_f in 21087 [\\/$]*) false;; 21088 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21089 esac || 21090 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21091 esac 21092 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21093 as_fn_append ac_file_inputs " '$ac_f'" 21094 done 21095 21096 # Let's still pretend it is `configure' which instantiates (i.e., don't 21097 # use $as_me), people would be surprised to read: 21098 # /* config.h. Generated by config.status. */ 21099 configure_input='Generated from '` 21100 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21101 `' by configure.' 21102 if test x"$ac_file" != x-; then 21103 configure_input="$ac_file. $configure_input" 21104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21105$as_echo "$as_me: creating $ac_file" >&6;} 21106 fi 21107 # Neutralize special characters interpreted by sed in replacement strings. 21108 case $configure_input in #( 21109 *\&* | *\|* | *\\* ) 21110 ac_sed_conf_input=`$as_echo "$configure_input" | 21111 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21112 *) ac_sed_conf_input=$configure_input;; 21113 esac 21114 21115 case $ac_tag in 21116 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21118 esac 21119 ;; 21120 esac 21121 21122 ac_dir=`$as_dirname -- "$ac_file" || 21123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21124 X"$ac_file" : 'X\(//\)[^/]' \| \ 21125 X"$ac_file" : 'X\(//\)$' \| \ 21126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21127$as_echo X"$ac_file" | 21128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21129 s//\1/ 21130 q 21131 } 21132 /^X\(\/\/\)[^/].*/{ 21133 s//\1/ 21134 q 21135 } 21136 /^X\(\/\/\)$/{ 21137 s//\1/ 21138 q 21139 } 21140 /^X\(\/\).*/{ 21141 s//\1/ 21142 q 21143 } 21144 s/.*/./; q'` 21145 as_dir="$ac_dir"; as_fn_mkdir_p 21146 ac_builddir=. 21147 21148case "$ac_dir" in 21149.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21150*) 21151 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21152 # A ".." for each directory in $ac_dir_suffix. 21153 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21154 case $ac_top_builddir_sub in 21155 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21156 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21157 esac ;; 21158esac 21159ac_abs_top_builddir=$ac_pwd 21160ac_abs_builddir=$ac_pwd$ac_dir_suffix 21161# for backward compatibility: 21162ac_top_builddir=$ac_top_build_prefix 21163 21164case $srcdir in 21165 .) # We are building in place. 21166 ac_srcdir=. 21167 ac_top_srcdir=$ac_top_builddir_sub 21168 ac_abs_top_srcdir=$ac_pwd ;; 21169 [\\/]* | ?:[\\/]* ) # Absolute name. 21170 ac_srcdir=$srcdir$ac_dir_suffix; 21171 ac_top_srcdir=$srcdir 21172 ac_abs_top_srcdir=$srcdir ;; 21173 *) # Relative name. 21174 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21175 ac_top_srcdir=$ac_top_build_prefix$srcdir 21176 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21177esac 21178ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21179 21180 21181 case $ac_mode in 21182 :F) 21183 # 21184 # CONFIG_FILE 21185 # 21186 21187 case $INSTALL in 21188 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21189 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21190 esac 21191 ac_MKDIR_P=$MKDIR_P 21192 case $MKDIR_P in 21193 [\\/$]* | ?:[\\/]* ) ;; 21194 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21195 esac 21196_ACEOF 21197 21198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21199# If the template does not know about datarootdir, expand it. 21200# FIXME: This hack should be removed a few years after 2.60. 21201ac_datarootdir_hack=; ac_datarootdir_seen= 21202ac_sed_dataroot=' 21203/datarootdir/ { 21204 p 21205 q 21206} 21207/@datadir@/p 21208/@docdir@/p 21209/@infodir@/p 21210/@localedir@/p 21211/@mandir@/p' 21212case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21213*datarootdir*) ac_datarootdir_seen=yes;; 21214*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21216$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21217_ACEOF 21218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21219 ac_datarootdir_hack=' 21220 s&@datadir@&$datadir&g 21221 s&@docdir@&$docdir&g 21222 s&@infodir@&$infodir&g 21223 s&@localedir@&$localedir&g 21224 s&@mandir@&$mandir&g 21225 s&\\\${datarootdir}&$datarootdir&g' ;; 21226esac 21227_ACEOF 21228 21229# Neutralize VPATH when `$srcdir' = `.'. 21230# Shell code in configure.ac might set extrasub. 21231# FIXME: do we really want to maintain this feature? 21232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21233ac_sed_extra="$ac_vpsub 21234$extrasub 21235_ACEOF 21236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21237:t 21238/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21239s|@configure_input@|$ac_sed_conf_input|;t t 21240s&@top_builddir@&$ac_top_builddir_sub&;t t 21241s&@top_build_prefix@&$ac_top_build_prefix&;t t 21242s&@srcdir@&$ac_srcdir&;t t 21243s&@abs_srcdir@&$ac_abs_srcdir&;t t 21244s&@top_srcdir@&$ac_top_srcdir&;t t 21245s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21246s&@builddir@&$ac_builddir&;t t 21247s&@abs_builddir@&$ac_abs_builddir&;t t 21248s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21249s&@INSTALL@&$ac_INSTALL&;t t 21250s&@MKDIR_P@&$ac_MKDIR_P&;t t 21251$ac_datarootdir_hack 21252" 21253eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21254 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21255 21256test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21257 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21259 "$ac_tmp/out"`; test -z "$ac_out"; } && 21260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21261which seems to be undefined. Please make sure it is defined" >&5 21262$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21263which seems to be undefined. Please make sure it is defined" >&2;} 21264 21265 rm -f "$ac_tmp/stdin" 21266 case $ac_file in 21267 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21268 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21269 esac \ 21270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21271 ;; 21272 :H) 21273 # 21274 # CONFIG_HEADER 21275 # 21276 if test x"$ac_file" != x-; then 21277 { 21278 $as_echo "/* $configure_input */" \ 21279 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21280 } >"$ac_tmp/config.h" \ 21281 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21282 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21283 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21284$as_echo "$as_me: $ac_file is unchanged" >&6;} 21285 else 21286 rm -f "$ac_file" 21287 mv "$ac_tmp/config.h" "$ac_file" \ 21288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21289 fi 21290 else 21291 $as_echo "/* $configure_input */" \ 21292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21293 || as_fn_error $? "could not create -" "$LINENO" 5 21294 fi 21295# Compute "$ac_file"'s index in $config_headers. 21296_am_arg="$ac_file" 21297_am_stamp_count=1 21298for _am_header in $config_headers :; do 21299 case $_am_header in 21300 $_am_arg | $_am_arg:* ) 21301 break ;; 21302 * ) 21303 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21304 esac 21305done 21306echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21307$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21308 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21309 X"$_am_arg" : 'X\(//\)$' \| \ 21310 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21311$as_echo X"$_am_arg" | 21312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21313 s//\1/ 21314 q 21315 } 21316 /^X\(\/\/\)[^/].*/{ 21317 s//\1/ 21318 q 21319 } 21320 /^X\(\/\/\)$/{ 21321 s//\1/ 21322 q 21323 } 21324 /^X\(\/\).*/{ 21325 s//\1/ 21326 q 21327 } 21328 s/.*/./; q'`/stamp-h$_am_stamp_count 21329 ;; 21330 21331 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21332$as_echo "$as_me: executing $ac_file commands" >&6;} 21333 ;; 21334 esac 21335 21336 21337 case $ac_file$ac_mode in 21338 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21339 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21340 # are listed without --file. Let's play safe and only enable the eval 21341 # if we detect the quoting. 21342 case $CONFIG_FILES in 21343 *\'*) eval set x "$CONFIG_FILES" ;; 21344 *) set x $CONFIG_FILES ;; 21345 esac 21346 shift 21347 for mf 21348 do 21349 # Strip MF so we end up with the name of the file. 21350 mf=`echo "$mf" | sed -e 's/:.*$//'` 21351 # Check whether this is an Automake generated Makefile or not. 21352 # We used to match only the files named `Makefile.in', but 21353 # some people rename them; so instead we look at the file content. 21354 # Grep'ing the first line is not enough: some people post-process 21355 # each Makefile.in and add a new line on top of each file to say so. 21356 # Grep'ing the whole file is not good either: AIX grep has a line 21357 # limit of 2048, but all sed's we know have understand at least 4000. 21358 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21359 dirpart=`$as_dirname -- "$mf" || 21360$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21361 X"$mf" : 'X\(//\)[^/]' \| \ 21362 X"$mf" : 'X\(//\)$' \| \ 21363 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21364$as_echo X"$mf" | 21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21366 s//\1/ 21367 q 21368 } 21369 /^X\(\/\/\)[^/].*/{ 21370 s//\1/ 21371 q 21372 } 21373 /^X\(\/\/\)$/{ 21374 s//\1/ 21375 q 21376 } 21377 /^X\(\/\).*/{ 21378 s//\1/ 21379 q 21380 } 21381 s/.*/./; q'` 21382 else 21383 continue 21384 fi 21385 # Extract the definition of DEPDIR, am__include, and am__quote 21386 # from the Makefile without running `make'. 21387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21388 test -z "$DEPDIR" && continue 21389 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21390 test -z "am__include" && continue 21391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21392 # When using ansi2knr, U may be empty or an underscore; expand it 21393 U=`sed -n 's/^U = //p' < "$mf"` 21394 # Find all dependency output files, they are included files with 21395 # $(DEPDIR) in their names. We invoke sed twice because it is the 21396 # simplest approach to changing $(DEPDIR) to its actual value in the 21397 # expansion. 21398 for file in `sed -n " 21399 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21400 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21401 # Make sure the directory exists. 21402 test -f "$dirpart/$file" && continue 21403 fdir=`$as_dirname -- "$file" || 21404$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21405 X"$file" : 'X\(//\)[^/]' \| \ 21406 X"$file" : 'X\(//\)$' \| \ 21407 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21408$as_echo X"$file" | 21409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21410 s//\1/ 21411 q 21412 } 21413 /^X\(\/\/\)[^/].*/{ 21414 s//\1/ 21415 q 21416 } 21417 /^X\(\/\/\)$/{ 21418 s//\1/ 21419 q 21420 } 21421 /^X\(\/\).*/{ 21422 s//\1/ 21423 q 21424 } 21425 s/.*/./; q'` 21426 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21427 # echo "creating $dirpart/$file" 21428 echo '# dummy' > "$dirpart/$file" 21429 done 21430 done 21431} 21432 ;; 21433 "libtool":C) 21434 21435 # See if we are running on zsh, and set the options which allow our 21436 # commands through without removal of \ escapes. 21437 if test -n "${ZSH_VERSION+set}" ; then 21438 setopt NO_GLOB_SUBST 21439 fi 21440 21441 cfgfile="${ofile}T" 21442 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21443 $RM "$cfgfile" 21444 21445 cat <<_LT_EOF >> "$cfgfile" 21446#! $SHELL 21447 21448# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21449# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21450# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21451# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21452# 21453# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21454# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 21455# Inc. 21456# Written by Gordon Matzigkeit, 1996 21457# 21458# This file is part of GNU Libtool. 21459# 21460# GNU Libtool is free software; you can redistribute it and/or 21461# modify it under the terms of the GNU General Public License as 21462# published by the Free Software Foundation; either version 2 of 21463# the License, or (at your option) any later version. 21464# 21465# As a special exception to the GNU General Public License, 21466# if you distribute this file as part of a program or library that 21467# is built using GNU Libtool, you may include this file under the 21468# same distribution terms that you use for the rest of that program. 21469# 21470# GNU Libtool is distributed in the hope that it will be useful, 21471# but WITHOUT ANY WARRANTY; without even the implied warranty of 21472# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21473# GNU General Public License for more details. 21474# 21475# You should have received a copy of the GNU General Public License 21476# along with GNU Libtool; see the file COPYING. If not, a copy 21477# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21478# obtained by writing to the Free Software Foundation, Inc., 21479# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21480 21481 21482# The names of the tagged configurations supported by this script. 21483available_tags="CXX " 21484 21485# ### BEGIN LIBTOOL CONFIG 21486 21487# Which release of libtool.m4 was used? 21488macro_version=$macro_version 21489macro_revision=$macro_revision 21490 21491# Assembler program. 21492AS=$lt_AS 21493 21494# DLL creation program. 21495DLLTOOL=$lt_DLLTOOL 21496 21497# Object dumper program. 21498OBJDUMP=$lt_OBJDUMP 21499 21500# Whether or not to build shared libraries. 21501build_libtool_libs=$enable_shared 21502 21503# Whether or not to build static libraries. 21504build_old_libs=$enable_static 21505 21506# What type of objects to build. 21507pic_mode=$pic_mode 21508 21509# Whether or not to optimize for fast installation. 21510fast_install=$enable_fast_install 21511 21512# Shell to use when invoking shell scripts. 21513SHELL=$lt_SHELL 21514 21515# An echo program that protects backslashes. 21516ECHO=$lt_ECHO 21517 21518# The host system. 21519host_alias=$host_alias 21520host=$host 21521host_os=$host_os 21522 21523# The build system. 21524build_alias=$build_alias 21525build=$build 21526build_os=$build_os 21527 21528# A sed program that does not truncate output. 21529SED=$lt_SED 21530 21531# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21532Xsed="\$SED -e 1s/^X//" 21533 21534# A grep program that handles long lines. 21535GREP=$lt_GREP 21536 21537# An ERE matcher. 21538EGREP=$lt_EGREP 21539 21540# A literal string matcher. 21541FGREP=$lt_FGREP 21542 21543# A BSD- or MS-compatible name lister. 21544NM=$lt_NM 21545 21546# Whether we need soft or hard links. 21547LN_S=$lt_LN_S 21548 21549# What is the maximum length of a command? 21550max_cmd_len=$max_cmd_len 21551 21552# Object file suffix (normally "o"). 21553objext=$ac_objext 21554 21555# Executable file suffix (normally ""). 21556exeext=$exeext 21557 21558# whether the shell understands "unset". 21559lt_unset=$lt_unset 21560 21561# turn spaces into newlines. 21562SP2NL=$lt_lt_SP2NL 21563 21564# turn newlines into spaces. 21565NL2SP=$lt_lt_NL2SP 21566 21567# convert \$build file names to \$host format. 21568to_host_file_cmd=$lt_cv_to_host_file_cmd 21569 21570# convert \$build files to toolchain format. 21571to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21572 21573# Method to check whether dependent libraries are shared objects. 21574deplibs_check_method=$lt_deplibs_check_method 21575 21576# Command to use when deplibs_check_method = "file_magic". 21577file_magic_cmd=$lt_file_magic_cmd 21578 21579# How to find potential files when deplibs_check_method = "file_magic". 21580file_magic_glob=$lt_file_magic_glob 21581 21582# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21583want_nocaseglob=$lt_want_nocaseglob 21584 21585# Command to associate shared and link libraries. 21586sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21587 21588# The archiver. 21589AR=$lt_AR 21590 21591# Flags to create an archive. 21592AR_FLAGS=$lt_AR_FLAGS 21593 21594# How to feed a file listing to the archiver. 21595archiver_list_spec=$lt_archiver_list_spec 21596 21597# A symbol stripping program. 21598STRIP=$lt_STRIP 21599 21600# Commands used to install an old-style archive. 21601RANLIB=$lt_RANLIB 21602old_postinstall_cmds=$lt_old_postinstall_cmds 21603old_postuninstall_cmds=$lt_old_postuninstall_cmds 21604 21605# Whether to use a lock for old archive extraction. 21606lock_old_archive_extraction=$lock_old_archive_extraction 21607 21608# A C compiler. 21609LTCC=$lt_CC 21610 21611# LTCC compiler flags. 21612LTCFLAGS=$lt_CFLAGS 21613 21614# Take the output of nm and produce a listing of raw symbols and C names. 21615global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21616 21617# Transform the output of nm in a proper C declaration. 21618global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21619 21620# Transform the output of nm in a C name address pair. 21621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21622 21623# Transform the output of nm in a C name address pair when lib prefix is needed. 21624global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21625 21626# Specify filename containing input files for \$NM. 21627nm_file_list_spec=$lt_nm_file_list_spec 21628 21629# The root where to search for dependent libraries,and in which our libraries should be installed. 21630lt_sysroot=$lt_sysroot 21631 21632# The name of the directory that contains temporary libtool files. 21633objdir=$objdir 21634 21635# Used to examine libraries when file_magic_cmd begins with "file". 21636MAGIC_CMD=$MAGIC_CMD 21637 21638# Must we lock files when doing compilation? 21639need_locks=$lt_need_locks 21640 21641# Manifest tool. 21642MANIFEST_TOOL=$lt_MANIFEST_TOOL 21643 21644# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21645DSYMUTIL=$lt_DSYMUTIL 21646 21647# Tool to change global to local symbols on Mac OS X. 21648NMEDIT=$lt_NMEDIT 21649 21650# Tool to manipulate fat objects and archives on Mac OS X. 21651LIPO=$lt_LIPO 21652 21653# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21654OTOOL=$lt_OTOOL 21655 21656# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21657OTOOL64=$lt_OTOOL64 21658 21659# Old archive suffix (normally "a"). 21660libext=$libext 21661 21662# Shared library suffix (normally ".so"). 21663shrext_cmds=$lt_shrext_cmds 21664 21665# The commands to extract the exported symbol list from a shared archive. 21666extract_expsyms_cmds=$lt_extract_expsyms_cmds 21667 21668# Variables whose values should be saved in libtool wrapper scripts and 21669# restored at link time. 21670variables_saved_for_relink=$lt_variables_saved_for_relink 21671 21672# Do we need the "lib" prefix for modules? 21673need_lib_prefix=$need_lib_prefix 21674 21675# Do we need a version for libraries? 21676need_version=$need_version 21677 21678# Library versioning type. 21679version_type=$version_type 21680 21681# Shared library runtime path variable. 21682runpath_var=$runpath_var 21683 21684# Shared library path variable. 21685shlibpath_var=$shlibpath_var 21686 21687# Is shlibpath searched before the hard-coded library search path? 21688shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21689 21690# Format of library name prefix. 21691libname_spec=$lt_libname_spec 21692 21693# List of archive names. First name is the real one, the rest are links. 21694# The last name is the one that the linker finds with -lNAME 21695library_names_spec=$lt_library_names_spec 21696 21697# The coded name of the library, if different from the real name. 21698soname_spec=$lt_soname_spec 21699 21700# Permission mode override for installation of shared libraries. 21701install_override_mode=$lt_install_override_mode 21702 21703# Command to use after installation of a shared archive. 21704postinstall_cmds=$lt_postinstall_cmds 21705 21706# Command to use after uninstallation of a shared archive. 21707postuninstall_cmds=$lt_postuninstall_cmds 21708 21709# Commands used to finish a libtool library installation in a directory. 21710finish_cmds=$lt_finish_cmds 21711 21712# As "finish_cmds", except a single script fragment to be evaled but 21713# not shown. 21714finish_eval=$lt_finish_eval 21715 21716# Whether we should hardcode library paths into libraries. 21717hardcode_into_libs=$hardcode_into_libs 21718 21719# Compile-time system search path for libraries. 21720sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21721 21722# Run-time system search path for libraries. 21723sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21724 21725# Whether dlopen is supported. 21726dlopen_support=$enable_dlopen 21727 21728# Whether dlopen of programs is supported. 21729dlopen_self=$enable_dlopen_self 21730 21731# Whether dlopen of statically linked programs is supported. 21732dlopen_self_static=$enable_dlopen_self_static 21733 21734# Commands to strip libraries. 21735old_striplib=$lt_old_striplib 21736striplib=$lt_striplib 21737 21738 21739# The linker used to build libraries. 21740LD=$lt_LD 21741 21742# How to create reloadable object files. 21743reload_flag=$lt_reload_flag 21744reload_cmds=$lt_reload_cmds 21745 21746# Commands used to build an old-style archive. 21747old_archive_cmds=$lt_old_archive_cmds 21748 21749# A language specific compiler. 21750CC=$lt_compiler 21751 21752# Is the compiler the GNU compiler? 21753with_gcc=$GCC 21754 21755# Compiler flag to turn off builtin functions. 21756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21757 21758# Additional compiler flags for building library objects. 21759pic_flag=$lt_lt_prog_compiler_pic 21760 21761# How to pass a linker flag through the compiler. 21762wl=$lt_lt_prog_compiler_wl 21763 21764# Compiler flag to prevent dynamic linking. 21765link_static_flag=$lt_lt_prog_compiler_static 21766 21767# Does compiler simultaneously support -c and -o options? 21768compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21769 21770# Whether or not to add -lc for building shared libraries. 21771build_libtool_need_lc=$archive_cmds_need_lc 21772 21773# Whether or not to disallow shared libs when runtime libs are static. 21774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21775 21776# Compiler flag to allow reflexive dlopens. 21777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21778 21779# Compiler flag to generate shared objects directly from archives. 21780whole_archive_flag_spec=$lt_whole_archive_flag_spec 21781 21782# Whether the compiler copes with passing no objects directly. 21783compiler_needs_object=$lt_compiler_needs_object 21784 21785# Create an old-style archive from a shared archive. 21786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21787 21788# Create a temporary old-style archive to link instead of a shared archive. 21789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21790 21791# Commands used to build a shared archive. 21792archive_cmds=$lt_archive_cmds 21793archive_expsym_cmds=$lt_archive_expsym_cmds 21794 21795# Commands used to build a loadable module if different from building 21796# a shared archive. 21797module_cmds=$lt_module_cmds 21798module_expsym_cmds=$lt_module_expsym_cmds 21799 21800# Whether we are building with GNU ld or not. 21801with_gnu_ld=$lt_with_gnu_ld 21802 21803# Flag that allows shared libraries with undefined symbols to be built. 21804allow_undefined_flag=$lt_allow_undefined_flag 21805 21806# Flag that enforces no undefined symbols. 21807no_undefined_flag=$lt_no_undefined_flag 21808 21809# Flag to hardcode \$libdir into a binary during linking. 21810# This must work even if \$libdir does not exist 21811hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21812 21813# If ld is used when linking, flag to hardcode \$libdir into a binary 21814# during linking. This must work even if \$libdir does not exist. 21815hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 21816 21817# Whether we need a single "-rpath" flag with a separated argument. 21818hardcode_libdir_separator=$lt_hardcode_libdir_separator 21819 21820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21821# DIR into the resulting binary. 21822hardcode_direct=$hardcode_direct 21823 21824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21825# DIR into the resulting binary and the resulting library dependency is 21826# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21827# library is relocated. 21828hardcode_direct_absolute=$hardcode_direct_absolute 21829 21830# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21831# into the resulting binary. 21832hardcode_minus_L=$hardcode_minus_L 21833 21834# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21835# into the resulting binary. 21836hardcode_shlibpath_var=$hardcode_shlibpath_var 21837 21838# Set to "yes" if building a shared library automatically hardcodes DIR 21839# into the library and all subsequent libraries and executables linked 21840# against it. 21841hardcode_automatic=$hardcode_automatic 21842 21843# Set to yes if linker adds runtime paths of dependent libraries 21844# to runtime path list. 21845inherit_rpath=$inherit_rpath 21846 21847# Whether libtool must link a program against all its dependency libraries. 21848link_all_deplibs=$link_all_deplibs 21849 21850# Set to "yes" if exported symbols are required. 21851always_export_symbols=$always_export_symbols 21852 21853# The commands to list exported symbols. 21854export_symbols_cmds=$lt_export_symbols_cmds 21855 21856# Symbols that should not be listed in the preloaded symbols. 21857exclude_expsyms=$lt_exclude_expsyms 21858 21859# Symbols that must always be exported. 21860include_expsyms=$lt_include_expsyms 21861 21862# Commands necessary for linking programs (against libraries) with templates. 21863prelink_cmds=$lt_prelink_cmds 21864 21865# Commands necessary for finishing linking programs. 21866postlink_cmds=$lt_postlink_cmds 21867 21868# Specify filename containing input files. 21869file_list_spec=$lt_file_list_spec 21870 21871# How to hardcode a shared library path into an executable. 21872hardcode_action=$hardcode_action 21873 21874# The directories searched by this compiler when creating a shared library. 21875compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21876 21877# Dependencies to place before and after the objects being linked to 21878# create a shared library. 21879predep_objects=$lt_predep_objects 21880postdep_objects=$lt_postdep_objects 21881predeps=$lt_predeps 21882postdeps=$lt_postdeps 21883 21884# The library search path used internally by the compiler when linking 21885# a shared library. 21886compiler_lib_search_path=$lt_compiler_lib_search_path 21887 21888# ### END LIBTOOL CONFIG 21889 21890_LT_EOF 21891 21892 case $host_os in 21893 aix3*) 21894 cat <<\_LT_EOF >> "$cfgfile" 21895# AIX sometimes has problems with the GCC collect2 program. For some 21896# reason, if we set the COLLECT_NAMES environment variable, the problems 21897# vanish in a puff of smoke. 21898if test "X${COLLECT_NAMES+set}" != Xset; then 21899 COLLECT_NAMES= 21900 export COLLECT_NAMES 21901fi 21902_LT_EOF 21903 ;; 21904 esac 21905 21906 21907ltmain="$ac_aux_dir/ltmain.sh" 21908 21909 21910 # We use sed instead of cat because bash on DJGPP gets confused if 21911 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21912 # text mode, it properly converts lines to CR/LF. This bash problem 21913 # is reportedly fixed, but why not run on old versions too? 21914 sed '$q' "$ltmain" >> "$cfgfile" \ 21915 || (rm -f "$cfgfile"; exit 1) 21916 21917 if test x"$xsi_shell" = xyes; then 21918 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21919func_dirname ()\ 21920{\ 21921\ case ${1} in\ 21922\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21923\ * ) func_dirname_result="${3}" ;;\ 21924\ esac\ 21925} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21928test 0 -eq $? || _lt_function_replace_fail=: 21929 21930 21931 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21932func_basename ()\ 21933{\ 21934\ func_basename_result="${1##*/}"\ 21935} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21938test 0 -eq $? || _lt_function_replace_fail=: 21939 21940 21941 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21942func_dirname_and_basename ()\ 21943{\ 21944\ case ${1} in\ 21945\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21946\ * ) func_dirname_result="${3}" ;;\ 21947\ esac\ 21948\ func_basename_result="${1##*/}"\ 21949} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21952test 0 -eq $? || _lt_function_replace_fail=: 21953 21954 21955 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21956func_stripname ()\ 21957{\ 21958\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21959\ # positional parameters, so assign one to ordinary parameter first.\ 21960\ func_stripname_result=${3}\ 21961\ func_stripname_result=${func_stripname_result#"${1}"}\ 21962\ func_stripname_result=${func_stripname_result%"${2}"}\ 21963} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21964 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21966test 0 -eq $? || _lt_function_replace_fail=: 21967 21968 21969 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21970func_split_long_opt ()\ 21971{\ 21972\ func_split_long_opt_name=${1%%=*}\ 21973\ func_split_long_opt_arg=${1#*=}\ 21974} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21975 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21977test 0 -eq $? || _lt_function_replace_fail=: 21978 21979 21980 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21981func_split_short_opt ()\ 21982{\ 21983\ func_split_short_opt_arg=${1#??}\ 21984\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21985} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21986 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21988test 0 -eq $? || _lt_function_replace_fail=: 21989 21990 21991 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21992func_lo2o ()\ 21993{\ 21994\ case ${1} in\ 21995\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21996\ *) func_lo2o_result=${1} ;;\ 21997\ esac\ 21998} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21999 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22001test 0 -eq $? || _lt_function_replace_fail=: 22002 22003 22004 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22005func_xform ()\ 22006{\ 22007 func_xform_result=${1%.*}.lo\ 22008} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22009 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22011test 0 -eq $? || _lt_function_replace_fail=: 22012 22013 22014 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22015func_arith ()\ 22016{\ 22017 func_arith_result=$(( $* ))\ 22018} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22019 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22021test 0 -eq $? || _lt_function_replace_fail=: 22022 22023 22024 sed -e '/^func_len ()$/,/^} # func_len /c\ 22025func_len ()\ 22026{\ 22027 func_len_result=${#1}\ 22028} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22029 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22031test 0 -eq $? || _lt_function_replace_fail=: 22032 22033fi 22034 22035if test x"$lt_shell_append" = xyes; then 22036 sed -e '/^func_append ()$/,/^} # func_append /c\ 22037func_append ()\ 22038{\ 22039 eval "${1}+=\\${2}"\ 22040} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22041 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22043test 0 -eq $? || _lt_function_replace_fail=: 22044 22045 22046 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22047func_append_quoted ()\ 22048{\ 22049\ func_quote_for_eval "${2}"\ 22050\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22051} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22052 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22054test 0 -eq $? || _lt_function_replace_fail=: 22055 22056 22057 # Save a `func_append' function call where possible by direct use of '+=' 22058 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22059 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22061 test 0 -eq $? || _lt_function_replace_fail=: 22062else 22063 # Save a `func_append' function call even when '+=' is not available 22064 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22065 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22067 test 0 -eq $? || _lt_function_replace_fail=: 22068fi 22069 22070if test x"$_lt_function_replace_fail" = x":"; then 22071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22072$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22073fi 22074 22075 22076 mv -f "$cfgfile" "$ofile" || 22077 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22078 chmod +x "$ofile" 22079 22080 22081 cat <<_LT_EOF >> "$ofile" 22082 22083# ### BEGIN LIBTOOL TAG CONFIG: CXX 22084 22085# The linker used to build libraries. 22086LD=$lt_LD_CXX 22087 22088# How to create reloadable object files. 22089reload_flag=$lt_reload_flag_CXX 22090reload_cmds=$lt_reload_cmds_CXX 22091 22092# Commands used to build an old-style archive. 22093old_archive_cmds=$lt_old_archive_cmds_CXX 22094 22095# A language specific compiler. 22096CC=$lt_compiler_CXX 22097 22098# Is the compiler the GNU compiler? 22099with_gcc=$GCC_CXX 22100 22101# Compiler flag to turn off builtin functions. 22102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22103 22104# Additional compiler flags for building library objects. 22105pic_flag=$lt_lt_prog_compiler_pic_CXX 22106 22107# How to pass a linker flag through the compiler. 22108wl=$lt_lt_prog_compiler_wl_CXX 22109 22110# Compiler flag to prevent dynamic linking. 22111link_static_flag=$lt_lt_prog_compiler_static_CXX 22112 22113# Does compiler simultaneously support -c and -o options? 22114compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22115 22116# Whether or not to add -lc for building shared libraries. 22117build_libtool_need_lc=$archive_cmds_need_lc_CXX 22118 22119# Whether or not to disallow shared libs when runtime libs are static. 22120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22121 22122# Compiler flag to allow reflexive dlopens. 22123export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22124 22125# Compiler flag to generate shared objects directly from archives. 22126whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22127 22128# Whether the compiler copes with passing no objects directly. 22129compiler_needs_object=$lt_compiler_needs_object_CXX 22130 22131# Create an old-style archive from a shared archive. 22132old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22133 22134# Create a temporary old-style archive to link instead of a shared archive. 22135old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22136 22137# Commands used to build a shared archive. 22138archive_cmds=$lt_archive_cmds_CXX 22139archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22140 22141# Commands used to build a loadable module if different from building 22142# a shared archive. 22143module_cmds=$lt_module_cmds_CXX 22144module_expsym_cmds=$lt_module_expsym_cmds_CXX 22145 22146# Whether we are building with GNU ld or not. 22147with_gnu_ld=$lt_with_gnu_ld_CXX 22148 22149# Flag that allows shared libraries with undefined symbols to be built. 22150allow_undefined_flag=$lt_allow_undefined_flag_CXX 22151 22152# Flag that enforces no undefined symbols. 22153no_undefined_flag=$lt_no_undefined_flag_CXX 22154 22155# Flag to hardcode \$libdir into a binary during linking. 22156# This must work even if \$libdir does not exist 22157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22158 22159# If ld is used when linking, flag to hardcode \$libdir into a binary 22160# during linking. This must work even if \$libdir does not exist. 22161hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 22162 22163# Whether we need a single "-rpath" flag with a separated argument. 22164hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22165 22166# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22167# DIR into the resulting binary. 22168hardcode_direct=$hardcode_direct_CXX 22169 22170# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22171# DIR into the resulting binary and the resulting library dependency is 22172# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22173# library is relocated. 22174hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22175 22176# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22177# into the resulting binary. 22178hardcode_minus_L=$hardcode_minus_L_CXX 22179 22180# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22181# into the resulting binary. 22182hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22183 22184# Set to "yes" if building a shared library automatically hardcodes DIR 22185# into the library and all subsequent libraries and executables linked 22186# against it. 22187hardcode_automatic=$hardcode_automatic_CXX 22188 22189# Set to yes if linker adds runtime paths of dependent libraries 22190# to runtime path list. 22191inherit_rpath=$inherit_rpath_CXX 22192 22193# Whether libtool must link a program against all its dependency libraries. 22194link_all_deplibs=$link_all_deplibs_CXX 22195 22196# Set to "yes" if exported symbols are required. 22197always_export_symbols=$always_export_symbols_CXX 22198 22199# The commands to list exported symbols. 22200export_symbols_cmds=$lt_export_symbols_cmds_CXX 22201 22202# Symbols that should not be listed in the preloaded symbols. 22203exclude_expsyms=$lt_exclude_expsyms_CXX 22204 22205# Symbols that must always be exported. 22206include_expsyms=$lt_include_expsyms_CXX 22207 22208# Commands necessary for linking programs (against libraries) with templates. 22209prelink_cmds=$lt_prelink_cmds_CXX 22210 22211# Commands necessary for finishing linking programs. 22212postlink_cmds=$lt_postlink_cmds_CXX 22213 22214# Specify filename containing input files. 22215file_list_spec=$lt_file_list_spec_CXX 22216 22217# How to hardcode a shared library path into an executable. 22218hardcode_action=$hardcode_action_CXX 22219 22220# The directories searched by this compiler when creating a shared library. 22221compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22222 22223# Dependencies to place before and after the objects being linked to 22224# create a shared library. 22225predep_objects=$lt_predep_objects_CXX 22226postdep_objects=$lt_postdep_objects_CXX 22227predeps=$lt_predeps_CXX 22228postdeps=$lt_postdeps_CXX 22229 22230# The library search path used internally by the compiler when linking 22231# a shared library. 22232compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22233 22234# ### END LIBTOOL TAG CONFIG: CXX 22235_LT_EOF 22236 22237 ;; 22238 22239 esac 22240done # for ac_tag 22241 22242 22243as_fn_exit 0 22244_ACEOF 22245ac_clean_files=$ac_clean_files_save 22246 22247test $ac_write_fail = 0 || 22248 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22249 22250 22251# configure is writing to config.log, and then calls config.status. 22252# config.status does its own redirection, appending to config.log. 22253# Unfortunately, on DOS this fails, as config.log is still kept open 22254# by configure, so config.status won't be able to write to it; its 22255# output is simply discarded. So we exec the FD to /dev/null, 22256# effectively closing config.log, so it can be properly (re)opened and 22257# appended to by config.status. When coming back to configure, we 22258# need to make the FD available again. 22259if test "$no_create" != yes; then 22260 ac_cs_success=: 22261 ac_config_status_args= 22262 test "$silent" = yes && 22263 ac_config_status_args="$ac_config_status_args --quiet" 22264 exec 5>/dev/null 22265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22266 exec 5>>config.log 22267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22268 # would make configure fail if this is the last instruction. 22269 $ac_cs_success || as_fn_exit 1 22270fi 22271if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22273$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22274fi 22275 22276 22277 22278echo "" 22279echo "Libtiff is now configured for ${host}" 22280echo "" 22281echo " Installation directory: ${prefix}" 22282echo " Documentation directory: ${LIBTIFF_DOCDIR}" 22283echo " C compiler: ${CC} ${CFLAGS}" 22284echo " C++ compiler: ${CXX} ${CXXFLAGS}" 22285echo " Enable runtime linker paths: ${HAVE_RPATH}" 22286echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 22287echo "" 22288echo " Support for internal codecs:" 22289echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 22290echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 22291echo " LZW algorithm: ${HAVE_LZW}" 22292echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 22293echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 22294echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 22295echo "" 22296echo " Support for external codecs:" 22297echo " ZLIB support: ${HAVE_ZLIB}" 22298echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 22299echo " JPEG support: ${HAVE_JPEG}" 22300echo " Old JPEG support: ${HAVE_OJPEG}" 22301echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 22302echo " ISO JBIG support: ${HAVE_JBIG}" 22303echo "" 22304echo " C++ support: ${HAVE_CXX}" 22305echo "" 22306echo " OpenGL support: ${HAVE_OPENGL}" 22307echo "" 22308 22309