1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for LibTIFF Software 3.9.4. 4# 5# Report bugs to <tiff@lists.maptools.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# 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. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || 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" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187else 188 as_have_required=no 189fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194as_found=false 195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210fi 211fi 212 done;; 213 esac 214 as_found=false 215done 216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219fi; } 220IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: tiff@lists.maptools.org about your system, including 243$0: any error possibly output before this message. Then 244$0: install a modern shell, or manually run the script 245$0: under such a shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error ERROR [LINENO LOG_FD] 371# --------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with status $?, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$?; test $as_status -eq 0 && as_status=1 378 if test "$3"; then 379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 381 fi 382 $as_echo "$as_me: error: $1" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541 542test -n "$DJDIR" || exec 7<&0 </dev/null 543exec 6>&1 544 545# Name of the host. 546# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 547# so uname gets run too. 548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 549 550# 551# Initializations. 552# 553ac_default_prefix=/usr/local 554ac_clean_files= 555ac_config_libobj_dir=. 556LIBOBJS= 557cross_compiling=no 558subdirs= 559MFLAGS= 560MAKEFLAGS= 561 562# Identity of this package. 563PACKAGE_NAME='LibTIFF Software' 564PACKAGE_TARNAME='tiff' 565PACKAGE_VERSION='3.9.4' 566PACKAGE_STRING='LibTIFF Software 3.9.4' 567PACKAGE_BUGREPORT='tiff@lists.maptools.org' 568PACKAGE_URL='' 569 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBDIR 610HAVE_OPENGL_FALSE 611HAVE_OPENGL_TRUE 612GLUT_LIBS 613GLUT_CFLAGS 614GLU_LIBS 615GLU_CFLAGS 616GL_LIBS 617GL_CFLAGS 618PTHREAD_CFLAGS 619PTHREAD_LIBS 620PTHREAD_CC 621acx_pthread_config 622X_EXTRA_LIBS 623X_LIBS 624X_PRE_LIBS 625X_CFLAGS 626XMKMF 627HAVE_CXX_FALSE 628HAVE_CXX_TRUE 629LIBTIFF_DOCDIR 630HAVE_RPATH_FALSE 631HAVE_RPATH_TRUE 632LIBOBJS 633AM_BACKSLASH 634AM_DEFAULT_VERBOSITY 635CXXCPP 636am__fastdepCXX_FALSE 637am__fastdepCXX_TRUE 638CXXDEPMODE 639ac_ct_CXX 640CXXFLAGS 641CXX 642OTOOL64 643OTOOL 644LIPO 645NMEDIT 646DSYMUTIL 647RANLIB 648AR 649NM 650ac_ct_DUMPBIN 651DUMPBIN 652LIBTOOL 653OBJDUMP 654DLLTOOL 655AS 656LN_S 657LD 658FGREP 659EGREP 660GREP 661SED 662CPP 663am__fastdepCC_FALSE 664am__fastdepCC_TRUE 665CCDEPMODE 666AMDEPBACKSLASH 667AMDEP_FALSE 668AMDEP_TRUE 669am__quote 670am__include 671DEPDIR 672OBJEXT 673EXEEXT 674ac_ct_CC 675CPPFLAGS 676LDFLAGS 677CFLAGS 678CC 679LIBTIFF_RELEASE_DATE 680LIBTIFF_VERSION_INFO 681LIBTIFF_VERSION 682LIBTIFF_ALPHA_VERSION 683LIBTIFF_MICRO_VERSION 684LIBTIFF_MINOR_VERSION 685LIBTIFF_MAJOR_VERSION 686MAINT 687MAINTAINER_MODE_FALSE 688MAINTAINER_MODE_TRUE 689am__untar 690am__tar 691AMTAR 692am__leading_dot 693SET_MAKE 694AWK 695mkdir_p 696MKDIR_P 697INSTALL_STRIP_PROGRAM 698STRIP 699install_sh 700MAKEINFO 701AUTOHEADER 702AUTOMAKE 703AUTOCONF 704ACLOCAL 705VERSION 706PACKAGE 707CYGPATH_W 708am__isrc 709INSTALL_DATA 710INSTALL_SCRIPT 711INSTALL_PROGRAM 712target_os 713target_vendor 714target_cpu 715target 716host_os 717host_vendor 718host_cpu 719host 720build_os 721build_vendor 722build_cpu 723build 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_maintainer_mode 766enable_dependency_tracking 767with_gnu_ld 768enable_shared 769enable_static 770with_pic 771enable_fast_install 772enable_libtool_lock 773enable_silent_rules 774enable_rpath 775enable_largefile 776with_docdir 777enable_ccitt 778enable_packbits 779enable_lzw 780enable_thunder 781enable_next 782enable_logluv 783enable_mdi 784enable_zlib 785with_zlib_include_dir 786with_zlib_lib_dir 787enable_pixarlog 788enable_jpeg 789with_jpeg_include_dir 790with_jpeg_lib_dir 791enable_old_jpeg 792enable_jbig 793with_jbig_include_dir 794with_jbig_lib_dir 795enable_cxx 796with_x 797with_apple_opengl_framework 798enable_strip_chopping 799with_default_strip_size 800enable_extrasample_as_alpha 801enable_check_ycbcr_subsampling 802' 803 ac_precious_vars='build_alias 804host_alias 805target_alias 806CC 807CFLAGS 808LDFLAGS 809LIBS 810CPPFLAGS 811CPP 812CXX 813CXXFLAGS 814CCC 815CXXCPP 816XMKMF' 817 818 819# Initialize some variables set by options. 820ac_init_help= 821ac_init_version=false 822ac_unrecognized_opts= 823ac_unrecognized_sep= 824# The variables have the same names as the options, with 825# dashes changed to underlines. 826cache_file=/dev/null 827exec_prefix=NONE 828no_create= 829no_recursion= 830prefix=NONE 831program_prefix=NONE 832program_suffix=NONE 833program_transform_name=s,x,x, 834silent= 835site= 836srcdir= 837verbose= 838x_includes=NONE 839x_libraries=NONE 840 841# Installation directory options. 842# These are left unexpanded so users can "make install exec_prefix=/foo" 843# and all the variables that are supposed to be based on exec_prefix 844# by default will actually change. 845# Use braces instead of parens because sh, perl, etc. also accept them. 846# (The list follows the same order as the GNU Coding Standards.) 847bindir='${exec_prefix}/bin' 848sbindir='${exec_prefix}/sbin' 849libexecdir='${exec_prefix}/libexec' 850datarootdir='${prefix}/share' 851datadir='${datarootdir}' 852sysconfdir='${prefix}/etc' 853sharedstatedir='${prefix}/com' 854localstatedir='${prefix}/var' 855includedir='${prefix}/include' 856oldincludedir='/usr/include' 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 858infodir='${datarootdir}/info' 859htmldir='${docdir}' 860dvidir='${docdir}' 861pdfdir='${docdir}' 862psdir='${docdir}' 863libdir='${exec_prefix}/lib' 864localedir='${datarootdir}/locale' 865mandir='${datarootdir}/man' 866 867ac_prev= 868ac_dashdash= 869for ac_option 870do 871 # If the previous option needs an argument, assign it. 872 if test -n "$ac_prev"; then 873 eval $ac_prev=\$ac_option 874 ac_prev= 875 continue 876 fi 877 878 case $ac_option in 879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information." 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1272 If a cross compiler is detected then cross compile mode will be used." >&2 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures LibTIFF Software 3.9.4 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420X features: 1421 --x-includes=DIR X include files are in DIR 1422 --x-libraries=DIR X library files are in DIR 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427 --target=TARGET configure for building compilers for TARGET [HOST] 1428_ACEOF 1429fi 1430 1431if test -n "$ac_init_help"; then 1432 case $ac_init_help in 1433 short | recursive ) echo "Configuration of LibTIFF Software 3.9.4:";; 1434 esac 1435 cat <<\_ACEOF 1436 1437Optional Features: 1438 --disable-option-checking ignore unrecognized --enable/--with options 1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1441 --enable-maintainer-mode enable make rules and dependencies not useful 1442 (and sometimes confusing) to the casual installer 1443 --disable-dependency-tracking speeds up one-time build 1444 --enable-dependency-tracking do not reject slow dependency extractors 1445 --enable-shared[=PKGS] build shared libraries [default=yes] 1446 --enable-static[=PKGS] build static libraries [default=yes] 1447 --enable-fast-install[=PKGS] 1448 optimize for fast installation [default=yes] 1449 --disable-libtool-lock avoid locking (might break parallel builds) 1450 --enable-silent-rules less verbose build output (undo: `make V=1') 1451 --disable-silent-rules verbose build output (undo: `make V=0') 1452 --enable-rpath Enable runtime linker paths (-R libtool option) 1453 --disable-largefile omit support for large files 1454 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1455 --disable-packbits disable support for Macintosh PackBits algorithm 1456 --disable-lzw disable support for LZW algorithm 1457 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1458 --disable-next disable support for NeXT 2-bit RLE algorithm 1459 --disable-logluv disable support for LogLuv high dynamic range 1460 encoding 1461 --disable-mdi disable support for Microsoft Document Imaging 1462 --disable-zlib disable Zlib usage (required for Deflate 1463 compression, enabled by default) 1464 --disable-pixarlog disable support for Pixar log-format algorithm 1465 (requires Zlib) 1466 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1467 compression, enabled by default) 1468 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1469 enabled by default) 1470 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1471 compression, enabled by default) 1472 --enable-cxx enable C++ stream API building (requires C++ 1473 compiler) 1474 --disable-strip-chopping 1475 disable support for strip chopping (whether or not 1476 to convert single-strip uncompressed images to 1477 mutiple strips of specified size to reduce memory 1478 usage) 1479 --disable-extrasample-as-alpha 1480 the RGBA interface will treat a fourth sample with 1481 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1482 packages produce RGBA files but don't mark the alpha 1483 properly 1484 --disable-check-ycbcr-subsampling 1485 disable picking up YCbCr subsampling info from the 1486 JPEG data stream to support files lacking the tag 1487 1488Optional Packages: 1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1492 --with-pic try to use only PIC/non-PIC objects [default=use 1493 both] 1494 --with-docdir=DIR directory where documentation should be installed 1495 --with-zlib-include-dir=DIR 1496 location of Zlib headers 1497 --with-zlib-lib-dir=DIR location of Zlib library binary 1498 --with-jpeg-include-dir=DIR 1499 location of IJG JPEG library headers 1500 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1501 --with-jbig-include-dir=DIR 1502 location of JBIG-KIT headers 1503 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1504 --with-x use the X Window System 1505 --with-apple-opengl-framework 1506 use Apple OpenGL framework (Mac OS X only) 1507 --with-default-strip-size=SIZE 1508 default size of the strip in bytes (when strip 1509 chopping enabled) [[default=8192]] 1510 1511Some influential environment variables: 1512 CC C compiler command 1513 CFLAGS C compiler flags 1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1515 nonstandard directory <lib dir> 1516 LIBS libraries to pass to the linker, e.g. -l<library> 1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1518 you have headers in a nonstandard directory <include dir> 1519 CPP C preprocessor 1520 CXX C++ compiler command 1521 CXXFLAGS C++ compiler flags 1522 CXXCPP C++ preprocessor 1523 XMKMF Path to xmkmf, Makefile generator for X Window System 1524 1525Use these variables to override the choices made by `configure' or to help 1526it to find libraries and programs with nonstandard names/locations. 1527 1528Report bugs to <tiff@lists.maptools.org>. 1529_ACEOF 1530ac_status=$? 1531fi 1532 1533if test "$ac_init_help" = "recursive"; then 1534 # If there are subdirs, report their specific --help. 1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1536 test -d "$ac_dir" || 1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1538 continue 1539 ac_builddir=. 1540 1541case "$ac_dir" in 1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543*) 1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1545 # A ".." for each directory in $ac_dir_suffix. 1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1547 case $ac_top_builddir_sub in 1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1550 esac ;; 1551esac 1552ac_abs_top_builddir=$ac_pwd 1553ac_abs_builddir=$ac_pwd$ac_dir_suffix 1554# for backward compatibility: 1555ac_top_builddir=$ac_top_build_prefix 1556 1557case $srcdir in 1558 .) # We are building in place. 1559 ac_srcdir=. 1560 ac_top_srcdir=$ac_top_builddir_sub 1561 ac_abs_top_srcdir=$ac_pwd ;; 1562 [\\/]* | ?:[\\/]* ) # Absolute name. 1563 ac_srcdir=$srcdir$ac_dir_suffix; 1564 ac_top_srcdir=$srcdir 1565 ac_abs_top_srcdir=$srcdir ;; 1566 *) # Relative name. 1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1568 ac_top_srcdir=$ac_top_build_prefix$srcdir 1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1570esac 1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1572 1573 cd "$ac_dir" || { ac_status=$?; continue; } 1574 # Check for guested configure. 1575 if test -f "$ac_srcdir/configure.gnu"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578 elif test -f "$ac_srcdir/configure"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure" --help=recursive 1581 else 1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583 fi || ac_status=$? 1584 cd "$ac_pwd" || { ac_status=$?; break; } 1585 done 1586fi 1587 1588test -n "$ac_init_help" && exit $ac_status 1589if $ac_init_version; then 1590 cat <<\_ACEOF 1591LibTIFF Software configure 3.9.4 1592generated by GNU Autoconf 2.65 1593 1594Copyright (C) 2009 Free Software Foundation, Inc. 1595This configure script is free software; the Free Software Foundation 1596gives unlimited permission to copy, distribute and modify it. 1597_ACEOF 1598 exit 1599fi 1600 1601## ------------------------ ## 1602## Autoconf initialization. ## 1603## ------------------------ ## 1604 1605# ac_fn_c_try_compile LINENO 1606# -------------------------- 1607# Try to compile conftest.$ac_ext, and return whether this succeeded. 1608ac_fn_c_try_compile () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 rm -f conftest.$ac_objext 1612 if { { ac_try="$ac_compile" 1613case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616esac 1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618$as_echo "$ac_try_echo"; } >&5 1619 (eval "$ac_compile") 2>conftest.err 1620 ac_status=$? 1621 if test -s conftest.err; then 1622 grep -v '^ *+' conftest.err >conftest.er1 1623 cat conftest.er1 >&5 1624 mv -f conftest.er1 conftest.err 1625 fi 1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { 1628 test -z "$ac_c_werror_flag" || 1629 test ! -s conftest.err 1630 } && test -s conftest.$ac_objext; then : 1631 ac_retval=0 1632else 1633 $as_echo "$as_me: failed program was:" >&5 1634sed 's/^/| /' conftest.$ac_ext >&5 1635 1636 ac_retval=1 1637fi 1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1639 as_fn_set_status $ac_retval 1640 1641} # ac_fn_c_try_compile 1642 1643# ac_fn_c_try_cpp LINENO 1644# ---------------------- 1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_c_try_cpp () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_cpp conftest.$ac_ext" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } >/dev/null && { 1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 }; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1676 as_fn_set_status $ac_retval 1677 1678} # ac_fn_c_try_cpp 1679 1680# ac_fn_c_try_link LINENO 1681# ----------------------- 1682# Try to link conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_c_try_link () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext conftest$ac_exeext 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest$ac_exeext && { 1706 test "$cross_compiling" = yes || 1707 $as_test_x conftest$ac_exeext 1708 }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1718 # interfere with the next link command; also delete a directory that is 1719 # left behind by Apple's compiler. We do this before executing the actions. 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_link 1725 1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1727# ------------------------------------------------------- 1728# Tests whether HEADER exists and can be compiled using the include files in 1729# INCLUDES, setting the cache variable VAR accordingly. 1730ac_fn_c_check_header_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740$4 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_compile "$LINENO"; then : 1744 eval "$3=yes" 1745else 1746 eval "$3=no" 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749fi 1750eval ac_res=\$$3 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752$as_echo "$ac_res" >&6; } 1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1754 1755} # ac_fn_c_check_header_compile 1756 1757# ac_fn_c_try_run LINENO 1758# ---------------------- 1759# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1760# that executables *can* be run. 1761ac_fn_c_try_run () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 if { { ac_try="$ac_link" 1765case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_link") 2>&5 1772 ac_status=$? 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1775 { { case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_try") 2>&5 1782 ac_status=$? 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; }; }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: program exited with status $ac_status" >&5 1788 $as_echo "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=$ac_status 1792fi 1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_run 1798 1799# ac_fn_c_check_func LINENO FUNC VAR 1800# ---------------------------------- 1801# Tests whether FUNC exists, setting the cache variable VAR accordingly 1802ac_fn_c_check_func () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1806$as_echo_n "checking for $2... " >&6; } 1807if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1808 $as_echo_n "(cached) " >&6 1809else 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811/* end confdefs.h. */ 1812/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1814#define $2 innocuous_$2 1815 1816/* System header to define __stub macros and hopefully few prototypes, 1817 which can conflict with char $2 (); below. 1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1819 <limits.h> exists even on freestanding compilers. */ 1820 1821#ifdef __STDC__ 1822# include <limits.h> 1823#else 1824# include <assert.h> 1825#endif 1826 1827#undef $2 1828 1829/* Override any GCC internal prototype to avoid an error. 1830 Use char because int might match the return type of a GCC 1831 builtin and then its argument prototype would still apply. */ 1832#ifdef __cplusplus 1833extern "C" 1834#endif 1835char $2 (); 1836/* The GNU C library defines this for functions which it implements 1837 to always fail with ENOSYS. Some functions are actually named 1838 something starting with __ and the normal name is an alias. */ 1839#if defined __stub_$2 || defined __stub___$2 1840choke me 1841#endif 1842 1843int 1844main () 1845{ 1846return $2 (); 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851if ac_fn_c_try_link "$LINENO"; then : 1852 eval "$3=yes" 1853else 1854 eval "$3=no" 1855fi 1856rm -f core conftest.err conftest.$ac_objext \ 1857 conftest$ac_exeext conftest.$ac_ext 1858fi 1859eval ac_res=\$$3 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861$as_echo "$ac_res" >&6; } 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 1864} # ac_fn_c_check_func 1865 1866# ac_fn_cxx_try_compile LINENO 1867# ---------------------------- 1868# Try to compile conftest.$ac_ext, and return whether this succeeded. 1869ac_fn_cxx_try_compile () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 rm -f conftest.$ac_objext 1873 if { { ac_try="$ac_compile" 1874case "(($ac_try" in 1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1876 *) ac_try_echo=$ac_try;; 1877esac 1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1879$as_echo "$ac_try_echo"; } >&5 1880 (eval "$ac_compile") 2>conftest.err 1881 ac_status=$? 1882 if test -s conftest.err; then 1883 grep -v '^ *+' conftest.err >conftest.er1 1884 cat conftest.er1 >&5 1885 mv -f conftest.er1 conftest.err 1886 fi 1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; } && { 1889 test -z "$ac_cxx_werror_flag" || 1890 test ! -s conftest.err 1891 } && test -s conftest.$ac_objext; then : 1892 ac_retval=0 1893else 1894 $as_echo "$as_me: failed program was:" >&5 1895sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=1 1898fi 1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1900 as_fn_set_status $ac_retval 1901 1902} # ac_fn_cxx_try_compile 1903 1904# ac_fn_cxx_try_cpp LINENO 1905# ------------------------ 1906# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1907ac_fn_cxx_try_cpp () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 if { { ac_try="$ac_cpp conftest.$ac_ext" 1911case "(($ac_try" in 1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1913 *) ac_try_echo=$ac_try;; 1914esac 1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1916$as_echo "$ac_try_echo"; } >&5 1917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1918 ac_status=$? 1919 if test -s conftest.err; then 1920 grep -v '^ *+' conftest.err >conftest.er1 1921 cat conftest.er1 >&5 1922 mv -f conftest.er1 conftest.err 1923 fi 1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1925 test $ac_status = 0; } >/dev/null && { 1926 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1927 test ! -s conftest.err 1928 }; then : 1929 ac_retval=0 1930else 1931 $as_echo "$as_me: failed program was:" >&5 1932sed 's/^/| /' conftest.$ac_ext >&5 1933 1934 ac_retval=1 1935fi 1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1937 as_fn_set_status $ac_retval 1938 1939} # ac_fn_cxx_try_cpp 1940 1941# ac_fn_cxx_try_link LINENO 1942# ------------------------- 1943# Try to link conftest.$ac_ext, and return whether this succeeded. 1944ac_fn_cxx_try_link () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 rm -f conftest.$ac_objext conftest$ac_exeext 1948 if { { ac_try="$ac_link" 1949case "(($ac_try" in 1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1951 *) ac_try_echo=$ac_try;; 1952esac 1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1954$as_echo "$ac_try_echo"; } >&5 1955 (eval "$ac_link") 2>conftest.err 1956 ac_status=$? 1957 if test -s conftest.err; then 1958 grep -v '^ *+' conftest.err >conftest.er1 1959 cat conftest.er1 >&5 1960 mv -f conftest.er1 conftest.err 1961 fi 1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1963 test $ac_status = 0; } && { 1964 test -z "$ac_cxx_werror_flag" || 1965 test ! -s conftest.err 1966 } && test -s conftest$ac_exeext && { 1967 test "$cross_compiling" = yes || 1968 $as_test_x conftest$ac_exeext 1969 }; then : 1970 ac_retval=0 1971else 1972 $as_echo "$as_me: failed program was:" >&5 1973sed 's/^/| /' conftest.$ac_ext >&5 1974 1975 ac_retval=1 1976fi 1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1979 # interfere with the next link command; also delete a directory that is 1980 # left behind by Apple's compiler. We do this before executing the actions. 1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1983 as_fn_set_status $ac_retval 1984 1985} # ac_fn_cxx_try_link 1986 1987# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1988# ------------------------------------------------------- 1989# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1990# the include files in INCLUDES and setting the cache variable VAR 1991# accordingly. 1992ac_fn_c_check_header_mongrel () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1999 $as_echo_n "(cached) " >&6 2000fi 2001eval ac_res=\$$3 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2003$as_echo "$ac_res" >&6; } 2004else 2005 # Is the header compilable? 2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2007$as_echo_n "checking $2 usability... " >&6; } 2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011#include <$2> 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 ac_header_compiler=yes 2015else 2016 ac_header_compiler=no 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2020$as_echo "$ac_header_compiler" >&6; } 2021 2022# Is the header present? 2023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2024$as_echo_n "checking $2 presence... " >&6; } 2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027#include <$2> 2028_ACEOF 2029if ac_fn_c_try_cpp "$LINENO"; then : 2030 ac_header_preproc=yes 2031else 2032 ac_header_preproc=no 2033fi 2034rm -f conftest.err conftest.$ac_ext 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2036$as_echo "$ac_header_preproc" >&6; } 2037 2038# So? What about this header? 2039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2040 yes:no: ) 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2042$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2045 ;; 2046 no:yes:* ) 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2048$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2050$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2052$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2054$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2056$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2057( cat <<\_ASBOX 2058## -------------------------------------- ## 2059## Report this to tiff@lists.maptools.org ## 2060## -------------------------------------- ## 2061_ASBOX 2062 ) | sed "s/^/$as_me: WARNING: /" >&2 2063 ;; 2064esac 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2066$as_echo_n "checking for $2... " >&6; } 2067if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2068 $as_echo_n "(cached) " >&6 2069else 2070 eval "$3=\$ac_header_compiler" 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075fi 2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2077 2078} # ac_fn_c_check_header_mongrel 2079 2080# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2081# ------------------------------------------- 2082# Tests whether TYPE exists after having included INCLUDES, setting cache 2083# variable VAR accordingly. 2084ac_fn_c_check_type () 2085{ 2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2090 $as_echo_n "(cached) " >&6 2091else 2092 eval "$3=no" 2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099if (sizeof ($2)) 2100 return 0; 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112if (sizeof (($2))) 2113 return 0; 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO"; then : 2119 2120else 2121 eval "$3=yes" 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126fi 2127eval ac_res=\$$3 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2129$as_echo "$ac_res" >&6; } 2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2131 2132} # ac_fn_c_check_type 2133 2134# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2135# -------------------------------------------- 2136# Tries to find the compile-time value of EXPR in a program that includes 2137# INCLUDES, setting VAR accordingly. Returns whether the value could be 2138# computed 2139ac_fn_c_compute_int () 2140{ 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 if test "$cross_compiling" = yes; then 2143 # Depending upon the size, compute the lo and hi bounds. 2144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147int 2148main () 2149{ 2150static int test_array [1 - 2 * !(($2) >= 0)]; 2151test_array [0] = 0 2152 2153 ; 2154 return 0; 2155} 2156_ACEOF 2157if ac_fn_c_try_compile "$LINENO"; then : 2158 ac_lo=0 ac_mid=0 2159 while :; do 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$4 2163int 2164main () 2165{ 2166static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2167test_array [0] = 0 2168 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO"; then : 2174 ac_hi=$ac_mid; break 2175else 2176 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2177 if test $ac_lo -le $ac_mid; then 2178 ac_lo= ac_hi= 2179 break 2180 fi 2181 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184 done 2185else 2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2187/* end confdefs.h. */ 2188$4 2189int 2190main () 2191{ 2192static int test_array [1 - 2 * !(($2) < 0)]; 2193test_array [0] = 0 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO"; then : 2200 ac_hi=-1 ac_mid=-1 2201 while :; do 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2209test_array [0] = 0 2210 2211 ; 2212 return 0; 2213} 2214_ACEOF 2215if ac_fn_c_try_compile "$LINENO"; then : 2216 ac_lo=$ac_mid; break 2217else 2218 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2219 if test $ac_mid -le $ac_hi; then 2220 ac_lo= ac_hi= 2221 break 2222 fi 2223 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2224fi 2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226 done 2227else 2228 ac_lo= ac_hi= 2229fi 2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2233# Binary search between lo and hi bounds. 2234while test "x$ac_lo" != "x$ac_hi"; do 2235 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237/* end confdefs.h. */ 2238$4 2239int 2240main () 2241{ 2242static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2243test_array [0] = 0 2244 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249if ac_fn_c_try_compile "$LINENO"; then : 2250 ac_hi=$ac_mid 2251else 2252 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2253fi 2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2255done 2256case $ac_lo in #(( 2257?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2258'') ac_retval=1 ;; 2259esac 2260 else 2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262/* end confdefs.h. */ 2263$4 2264static long int longval () { return $2; } 2265static unsigned long int ulongval () { return $2; } 2266#include <stdio.h> 2267#include <stdlib.h> 2268int 2269main () 2270{ 2271 2272 FILE *f = fopen ("conftest.val", "w"); 2273 if (! f) 2274 return 1; 2275 if (($2) < 0) 2276 { 2277 long int i = longval (); 2278 if (i != ($2)) 2279 return 1; 2280 fprintf (f, "%ld", i); 2281 } 2282 else 2283 { 2284 unsigned long int i = ulongval (); 2285 if (i != ($2)) 2286 return 1; 2287 fprintf (f, "%lu", i); 2288 } 2289 /* Do not output a trailing newline, as this causes \r\n confusion 2290 on some platforms. */ 2291 return ferror (f) || fclose (f) != 0; 2292 2293 ; 2294 return 0; 2295} 2296_ACEOF 2297if ac_fn_c_try_run "$LINENO"; then : 2298 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2299else 2300 ac_retval=1 2301fi 2302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2303 conftest.$ac_objext conftest.beam conftest.$ac_ext 2304rm -f conftest.val 2305 2306 fi 2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2308 as_fn_set_status $ac_retval 2309 2310} # ac_fn_c_compute_int 2311cat >config.log <<_ACEOF 2312This file contains any messages produced by compilers while 2313running configure, to aid debugging if configure makes a mistake. 2314 2315It was created by LibTIFF Software $as_me 3.9.4, which was 2316generated by GNU Autoconf 2.65. Invocation command line was 2317 2318 $ $0 $@ 2319 2320_ACEOF 2321exec 5>>config.log 2322{ 2323cat <<_ASUNAME 2324## --------- ## 2325## Platform. ## 2326## --------- ## 2327 2328hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2329uname -m = `(uname -m) 2>/dev/null || echo unknown` 2330uname -r = `(uname -r) 2>/dev/null || echo unknown` 2331uname -s = `(uname -s) 2>/dev/null || echo unknown` 2332uname -v = `(uname -v) 2>/dev/null || echo unknown` 2333 2334/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2335/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2336 2337/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2338/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2339/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2340/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2341/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2342/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2343/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2344 2345_ASUNAME 2346 2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2348for as_dir in $PATH 2349do 2350 IFS=$as_save_IFS 2351 test -z "$as_dir" && as_dir=. 2352 $as_echo "PATH: $as_dir" 2353 done 2354IFS=$as_save_IFS 2355 2356} >&5 2357 2358cat >&5 <<_ACEOF 2359 2360 2361## ----------- ## 2362## Core tests. ## 2363## ----------- ## 2364 2365_ACEOF 2366 2367 2368# Keep a trace of the command line. 2369# Strip out --no-create and --no-recursion so they do not pile up. 2370# Strip out --silent because we don't want to record it for future runs. 2371# Also quote any args containing shell meta-characters. 2372# Make two passes to allow for proper duplicate-argument suppression. 2373ac_configure_args= 2374ac_configure_args0= 2375ac_configure_args1= 2376ac_must_keep_next=false 2377for ac_pass in 1 2 2378do 2379 for ac_arg 2380 do 2381 case $ac_arg in 2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2384 | -silent | --silent | --silen | --sile | --sil) 2385 continue ;; 2386 *\'*) 2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2388 esac 2389 case $ac_pass in 2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2391 2) 2392 as_fn_append ac_configure_args1 " '$ac_arg'" 2393 if test $ac_must_keep_next = true; then 2394 ac_must_keep_next=false # Got value, back to normal. 2395 else 2396 case $ac_arg in 2397 *=* | --config-cache | -C | -disable-* | --disable-* \ 2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2400 | -with-* | --with-* | -without-* | --without-* | --x) 2401 case "$ac_configure_args0 " in 2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2403 esac 2404 ;; 2405 -* ) ac_must_keep_next=true ;; 2406 esac 2407 fi 2408 as_fn_append ac_configure_args " '$ac_arg'" 2409 ;; 2410 esac 2411 done 2412done 2413{ ac_configure_args0=; unset ac_configure_args0;} 2414{ ac_configure_args1=; unset ac_configure_args1;} 2415 2416# When interrupted or exit'd, cleanup temporary files, and complete 2417# config.log. We remove comments because anyway the quotes in there 2418# would cause problems or look ugly. 2419# WARNING: Use '\'' to represent an apostrophe within the trap. 2420# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2421trap 'exit_status=$? 2422 # Save into config.log some information that might help in debugging. 2423 { 2424 echo 2425 2426 cat <<\_ASBOX 2427## ---------------- ## 2428## Cache variables. ## 2429## ---------------- ## 2430_ASBOX 2431 echo 2432 # The following way of writing the cache mishandles newlines in values, 2433( 2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2435 eval ac_val=\$$ac_var 2436 case $ac_val in #( 2437 *${as_nl}*) 2438 case $ac_var in #( 2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2441 esac 2442 case $ac_var in #( 2443 _ | IFS | as_nl) ;; #( 2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2445 *) { eval $ac_var=; unset $ac_var;} ;; 2446 esac ;; 2447 esac 2448 done 2449 (set) 2>&1 | 2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2451 *${as_nl}ac_space=\ *) 2452 sed -n \ 2453 "s/'\''/'\''\\\\'\'''\''/g; 2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2455 ;; #( 2456 *) 2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2458 ;; 2459 esac | 2460 sort 2461) 2462 echo 2463 2464 cat <<\_ASBOX 2465## ----------------- ## 2466## Output variables. ## 2467## ----------------- ## 2468_ASBOX 2469 echo 2470 for ac_var in $ac_subst_vars 2471 do 2472 eval ac_val=\$$ac_var 2473 case $ac_val in 2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2475 esac 2476 $as_echo "$ac_var='\''$ac_val'\''" 2477 done | sort 2478 echo 2479 2480 if test -n "$ac_subst_files"; then 2481 cat <<\_ASBOX 2482## ------------------- ## 2483## File substitutions. ## 2484## ------------------- ## 2485_ASBOX 2486 echo 2487 for ac_var in $ac_subst_files 2488 do 2489 eval ac_val=\$$ac_var 2490 case $ac_val in 2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2492 esac 2493 $as_echo "$ac_var='\''$ac_val'\''" 2494 done | sort 2495 echo 2496 fi 2497 2498 if test -s confdefs.h; then 2499 cat <<\_ASBOX 2500## ----------- ## 2501## confdefs.h. ## 2502## ----------- ## 2503_ASBOX 2504 echo 2505 cat confdefs.h 2506 echo 2507 fi 2508 test "$ac_signal" != 0 && 2509 $as_echo "$as_me: caught signal $ac_signal" 2510 $as_echo "$as_me: exit $exit_status" 2511 } >&5 2512 rm -f core *.core core.conftest.* && 2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2514 exit $exit_status 2515' 0 2516for ac_signal in 1 2 13 15; do 2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2518done 2519ac_signal=0 2520 2521# confdefs.h avoids OS command line length limits that DEFS can exceed. 2522rm -f -r conftest* confdefs.h 2523 2524$as_echo "/* confdefs.h */" > confdefs.h 2525 2526# Predefined preprocessor variables. 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_NAME "$PACKAGE_NAME" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_VERSION "$PACKAGE_VERSION" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_STRING "$PACKAGE_STRING" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2546_ACEOF 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_URL "$PACKAGE_URL" 2550_ACEOF 2551 2552 2553# Let the site file select an alternate cache file if it wants to. 2554# Prefer an explicitly selected file to automatically selected ones. 2555ac_site_file1=NONE 2556ac_site_file2=NONE 2557if test -n "$CONFIG_SITE"; then 2558 ac_site_file1=$CONFIG_SITE 2559elif test "x$prefix" != xNONE; then 2560 ac_site_file1=$prefix/share/config.site 2561 ac_site_file2=$prefix/etc/config.site 2562else 2563 ac_site_file1=$ac_default_prefix/share/config.site 2564 ac_site_file2=$ac_default_prefix/etc/config.site 2565fi 2566for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2567do 2568 test "x$ac_site_file" = xNONE && continue 2569 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2571$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2572 sed 's/^/| /' "$ac_site_file" >&5 2573 . "$ac_site_file" 2574 fi 2575done 2576 2577if test -r "$cache_file"; then 2578 # Some versions of bash will fail to source /dev/null (special files 2579 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2580 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2582$as_echo "$as_me: loading cache $cache_file" >&6;} 2583 case $cache_file in 2584 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2585 *) . "./$cache_file";; 2586 esac 2587 fi 2588else 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2590$as_echo "$as_me: creating cache $cache_file" >&6;} 2591 >$cache_file 2592fi 2593 2594# Check that the precious variables saved in the cache have kept the same 2595# value. 2596ac_cache_corrupted=false 2597for ac_var in $ac_precious_vars; do 2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2599 eval ac_new_set=\$ac_env_${ac_var}_set 2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2601 eval ac_new_val=\$ac_env_${ac_var}_value 2602 case $ac_old_set,$ac_new_set in 2603 set,) 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2605$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2606 ac_cache_corrupted=: ;; 2607 ,set) 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2609$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2610 ac_cache_corrupted=: ;; 2611 ,);; 2612 *) 2613 if test "x$ac_old_val" != "x$ac_new_val"; then 2614 # differences in whitespace do not lead to failure. 2615 ac_old_val_w=`echo x $ac_old_val` 2616 ac_new_val_w=`echo x $ac_new_val` 2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2619$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2620 ac_cache_corrupted=: 2621 else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2623$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2624 eval $ac_var=\$ac_old_val 2625 fi 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2627$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2629$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2630 fi;; 2631 esac 2632 # Pass precious variables to config.status. 2633 if test "$ac_new_set" = set; then 2634 case $ac_new_val in 2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2636 *) ac_arg=$ac_var=$ac_new_val ;; 2637 esac 2638 case " $ac_configure_args " in 2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2641 esac 2642 fi 2643done 2644if $ac_cache_corrupted; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2648$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2649 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2650fi 2651## -------------------- ## 2652## Main body of script. ## 2653## -------------------- ## 2654 2655ac_ext=c 2656ac_cpp='$CPP $CPPFLAGS' 2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2659ac_compiler_gnu=$ac_cv_c_compiler_gnu 2660 2661 2662ac_aux_dir= 2663for ac_dir in config "$srcdir"/config; do 2664 for ac_t in install-sh install.sh shtool; do 2665 if test -f "$ac_dir/$ac_t"; then 2666 ac_aux_dir=$ac_dir 2667 ac_install_sh="$ac_aux_dir/$ac_t -c" 2668 break 2 2669 fi 2670 done 2671done 2672if test -z "$ac_aux_dir"; then 2673 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2674fi 2675 2676# These three variables are undocumented and unsupported, 2677# and are intended to be withdrawn in a future Autoconf release. 2678# They can cause serious problems if a builder's source tree is in a directory 2679# whose full name contains unusual characters. 2680ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2681ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2682ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2683 2684 2685 2686ac_ext=c 2687ac_cpp='$CPP $CPPFLAGS' 2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2690ac_compiler_gnu=$ac_cv_c_compiler_gnu 2691 2692 2693# Make sure we can run config.sub. 2694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2695 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2696 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2698$as_echo_n "checking build system type... " >&6; } 2699if test "${ac_cv_build+set}" = set; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 ac_build_alias=$build_alias 2703test "x$ac_build_alias" = x && 2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2705test "x$ac_build_alias" = x && 2706 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2708 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2709 2710fi 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2712$as_echo "$ac_cv_build" >&6; } 2713case $ac_cv_build in 2714*-*-*) ;; 2715*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2716esac 2717build=$ac_cv_build 2718ac_save_IFS=$IFS; IFS='-' 2719set x $ac_cv_build 2720shift 2721build_cpu=$1 2722build_vendor=$2 2723shift; shift 2724# Remember, the first character of IFS is used to create $*, 2725# except with old shells: 2726build_os=$* 2727IFS=$ac_save_IFS 2728case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2729 2730 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2732$as_echo_n "checking host system type... " >&6; } 2733if test "${ac_cv_host+set}" = set; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test "x$host_alias" = x; then 2737 ac_cv_host=$ac_cv_build 2738else 2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2740 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2741fi 2742 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2745$as_echo "$ac_cv_host" >&6; } 2746case $ac_cv_host in 2747*-*-*) ;; 2748*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2749esac 2750host=$ac_cv_host 2751ac_save_IFS=$IFS; IFS='-' 2752set x $ac_cv_host 2753shift 2754host_cpu=$1 2755host_vendor=$2 2756shift; shift 2757# Remember, the first character of IFS is used to create $*, 2758# except with old shells: 2759host_os=$* 2760IFS=$ac_save_IFS 2761case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2762 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2765$as_echo_n "checking target system type... " >&6; } 2766if test "${ac_cv_target+set}" = set; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 if test "x$target_alias" = x; then 2770 ac_cv_target=$ac_cv_host 2771else 2772 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2773 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2774fi 2775 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2778$as_echo "$ac_cv_target" >&6; } 2779case $ac_cv_target in 2780*-*-*) ;; 2781*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2782esac 2783target=$ac_cv_target 2784ac_save_IFS=$IFS; IFS='-' 2785set x $ac_cv_target 2786shift 2787target_cpu=$1 2788target_vendor=$2 2789shift; shift 2790# Remember, the first character of IFS is used to create $*, 2791# except with old shells: 2792target_os=$* 2793IFS=$ac_save_IFS 2794case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2795 2796 2797# The aliases save the names the user supplied, while $host etc. 2798# will get canonicalized. 2799test -n "$target_alias" && 2800 test "$program_prefix$program_suffix$program_transform_name" = \ 2801 NONENONEs,x,x, && 2802 program_prefix=${target_alias}- 2803 2804am__api_version='1.11' 2805 2806# Find a good install program. We prefer a C program (faster), 2807# so one script is as good as another. But avoid the broken or 2808# incompatible versions: 2809# SysV /etc/install, /usr/sbin/install 2810# SunOS /usr/etc/install 2811# IRIX /sbin/install 2812# AIX /bin/install 2813# AmigaOS /C/install, which installs bootblocks on floppy discs 2814# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2815# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2816# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2817# OS/2's system install, which has a completely different semantic 2818# ./install, which can be erroneously created by make from ./install.sh. 2819# Reject install programs that cannot install multiple files. 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2821$as_echo_n "checking for a BSD-compatible install... " >&6; } 2822if test -z "$INSTALL"; then 2823if test "${ac_cv_path_install+set}" = set; then : 2824 $as_echo_n "(cached) " >&6 2825else 2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 test -z "$as_dir" && as_dir=. 2831 # Account for people who put trailing slashes in PATH elements. 2832case $as_dir/ in #(( 2833 ./ | .// | /[cC]/* | \ 2834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2835 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2836 /usr/ucb/* ) ;; 2837 *) 2838 # OSF1 and SCO ODT 3.0 have their own names for install. 2839 # Don't use installbsd from OSF since it installs stuff as root 2840 # by default. 2841 for ac_prog in ginstall scoinst install; do 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2844 if test $ac_prog = install && 2845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2846 # AIX install. It has an incompatible calling convention. 2847 : 2848 elif test $ac_prog = install && 2849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2850 # program-specific install script used by HP pwplus--don't use. 2851 : 2852 else 2853 rm -rf conftest.one conftest.two conftest.dir 2854 echo one > conftest.one 2855 echo two > conftest.two 2856 mkdir conftest.dir 2857 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2858 test -s conftest.one && test -s conftest.two && 2859 test -s conftest.dir/conftest.one && 2860 test -s conftest.dir/conftest.two 2861 then 2862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2863 break 3 2864 fi 2865 fi 2866 fi 2867 done 2868 done 2869 ;; 2870esac 2871 2872 done 2873IFS=$as_save_IFS 2874 2875rm -rf conftest.one conftest.two conftest.dir 2876 2877fi 2878 if test "${ac_cv_path_install+set}" = set; then 2879 INSTALL=$ac_cv_path_install 2880 else 2881 # As a last resort, use the slow shell script. Don't cache a 2882 # value for INSTALL within a source directory, because that will 2883 # break other packages using the cache if that directory is 2884 # removed, or if the value is a relative name. 2885 INSTALL=$ac_install_sh 2886 fi 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2889$as_echo "$INSTALL" >&6; } 2890 2891# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2892# It thinks the first close brace ends the variable substitution. 2893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2894 2895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2896 2897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2900$as_echo_n "checking whether build environment is sane... " >&6; } 2901# Just in case 2902sleep 1 2903echo timestamp > conftest.file 2904# Reject unsafe characters in $srcdir or the absolute working directory 2905# name. Accept space and tab only in the latter. 2906am_lf=' 2907' 2908case `pwd` in 2909 *[\\\"\#\$\&\'\`$am_lf]*) 2910 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2911esac 2912case $srcdir in 2913 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2914 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2915esac 2916 2917# Do `set' in a subshell so we don't clobber the current shell's 2918# arguments. Must try -L first in case configure is actually a 2919# symlink; some systems play weird games with the mod time of symlinks 2920# (eg FreeBSD returns the mod time of the symlink's containing 2921# directory). 2922if ( 2923 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2924 if test "$*" = "X"; then 2925 # -L didn't work. 2926 set X `ls -t "$srcdir/configure" conftest.file` 2927 fi 2928 rm -f conftest.file 2929 if test "$*" != "X $srcdir/configure conftest.file" \ 2930 && test "$*" != "X conftest.file $srcdir/configure"; then 2931 2932 # If neither matched, then we have a broken ls. This can happen 2933 # if, for instance, CONFIG_SHELL is bash and it inherits a 2934 # broken ls alias from the environment. This has actually 2935 # happened. Such a system could not be considered "sane". 2936 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2937alias in your environment" "$LINENO" 5 2938 fi 2939 2940 test "$2" = conftest.file 2941 ) 2942then 2943 # Ok. 2944 : 2945else 2946 as_fn_error "newly created file is older than distributed files! 2947Check your system clock" "$LINENO" 5 2948fi 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2950$as_echo "yes" >&6; } 2951test "$program_prefix" != NONE && 2952 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2953# Use a double $ so make ignores it. 2954test "$program_suffix" != NONE && 2955 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2956# Double any \ or $. 2957# By default was `s,x,x', remove it if useless. 2958ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2959program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2960 2961# expand $ac_aux_dir to an absolute path 2962am_aux_dir=`cd $ac_aux_dir && pwd` 2963 2964if test x"${MISSING+set}" != xset; then 2965 case $am_aux_dir in 2966 *\ * | *\ *) 2967 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2968 *) 2969 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2970 esac 2971fi 2972# Use eval to expand $SHELL 2973if eval "$MISSING --run true"; then 2974 am_missing_run="$MISSING --run " 2975else 2976 am_missing_run= 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2978$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2979fi 2980 2981if test x"${install_sh}" != xset; then 2982 case $am_aux_dir in 2983 *\ * | *\ *) 2984 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2985 *) 2986 install_sh="\${SHELL} $am_aux_dir/install-sh" 2987 esac 2988fi 2989 2990# Installed binaries are usually stripped using `strip' when the user 2991# run `make install-strip'. However `strip' might not be the right 2992# tool to use in cross-compilation environments, therefore Automake 2993# will honor the `STRIP' environment variable to overrule this program. 2994if test "$cross_compiling" != no; then 2995 if test -n "$ac_tool_prefix"; then 2996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2997set dummy ${ac_tool_prefix}strip; ac_word=$2 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2999$as_echo_n "checking for $ac_word... " >&6; } 3000if test "${ac_cv_prog_STRIP+set}" = set; then : 3001 $as_echo_n "(cached) " >&6 3002else 3003 if test -n "$STRIP"; then 3004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3005else 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3013 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018 done 3019IFS=$as_save_IFS 3020 3021fi 3022fi 3023STRIP=$ac_cv_prog_STRIP 3024if test -n "$STRIP"; then 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3026$as_echo "$STRIP" >&6; } 3027else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029$as_echo "no" >&6; } 3030fi 3031 3032 3033fi 3034if test -z "$ac_cv_prog_STRIP"; then 3035 ac_ct_STRIP=$STRIP 3036 # Extract the first word of "strip", so it can be a program name with args. 3037set dummy strip; ac_word=$2 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3039$as_echo_n "checking for $ac_word... " >&6; } 3040if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3041 $as_echo_n "(cached) " >&6 3042else 3043 if test -n "$ac_ct_STRIP"; then 3044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3045else 3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3047for as_dir in $PATH 3048do 3049 IFS=$as_save_IFS 3050 test -z "$as_dir" && as_dir=. 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3053 ac_cv_prog_ac_ct_STRIP="strip" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061fi 3062fi 3063ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3064if test -n "$ac_ct_STRIP"; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3066$as_echo "$ac_ct_STRIP" >&6; } 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070fi 3071 3072 if test "x$ac_ct_STRIP" = x; then 3073 STRIP=":" 3074 else 3075 case $cross_compiling:$ac_tool_warned in 3076yes:) 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3079ac_tool_warned=yes ;; 3080esac 3081 STRIP=$ac_ct_STRIP 3082 fi 3083else 3084 STRIP="$ac_cv_prog_STRIP" 3085fi 3086 3087fi 3088INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3089 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3091$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3092if test -z "$MKDIR_P"; then 3093 if test "${ac_cv_path_mkdir+set}" = set; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_prog in mkdir gmkdir; do 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3104 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3105 'mkdir (GNU coreutils) '* | \ 3106 'mkdir (coreutils) '* | \ 3107 'mkdir (fileutils) '4.1*) 3108 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3109 break 3;; 3110 esac 3111 done 3112 done 3113 done 3114IFS=$as_save_IFS 3115 3116fi 3117 3118 test -d ./--version && rmdir ./--version 3119 if test "${ac_cv_path_mkdir+set}" = set; then 3120 MKDIR_P="$ac_cv_path_mkdir -p" 3121 else 3122 # As a last resort, use the slow shell script. Don't cache a 3123 # value for MKDIR_P within a source directory, because that will 3124 # break other packages using the cache if that directory is 3125 # removed, or if the value is a relative name. 3126 MKDIR_P="$ac_install_sh -d" 3127 fi 3128fi 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3130$as_echo "$MKDIR_P" >&6; } 3131 3132mkdir_p="$MKDIR_P" 3133case $mkdir_p in 3134 [\\/$]* | ?:[\\/]*) ;; 3135 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3136esac 3137 3138for ac_prog in gawk mawk nawk awk 3139do 3140 # Extract the first word of "$ac_prog", so it can be a program name with args. 3141set dummy $ac_prog; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if test "${ac_cv_prog_AWK+set}" = set; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$AWK"; then 3148 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3149else 3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151for as_dir in $PATH 3152do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3157 ac_cv_prog_AWK="$ac_prog" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167AWK=$ac_cv_prog_AWK 3168if test -n "$AWK"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3170$as_echo "$AWK" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174fi 3175 3176 3177 test -n "$AWK" && break 3178done 3179 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3182set x ${MAKE-make} 3183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3184if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 cat >conftest.make <<\_ACEOF 3188SHELL = /bin/sh 3189all: 3190 @echo '@@@%%%=$(MAKE)=@@@%%%' 3191_ACEOF 3192# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3193case `${MAKE-make} -f conftest.make 2>/dev/null` in 3194 *@@@%%%=?*=@@@%%%*) 3195 eval ac_cv_prog_make_${ac_make}_set=yes;; 3196 *) 3197 eval ac_cv_prog_make_${ac_make}_set=no;; 3198esac 3199rm -f conftest.make 3200fi 3201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3203$as_echo "yes" >&6; } 3204 SET_MAKE= 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; } 3208 SET_MAKE="MAKE=${MAKE-make}" 3209fi 3210 3211rm -rf .tst 2>/dev/null 3212mkdir .tst 2>/dev/null 3213if test -d .tst; then 3214 am__leading_dot=. 3215else 3216 am__leading_dot=_ 3217fi 3218rmdir .tst 2>/dev/null 3219 3220if test "`cd $srcdir && pwd`" != "`pwd`"; then 3221 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3222 # is not polluted with repeated "-I." 3223 am__isrc=' -I$(srcdir)' 3224 # test to see if srcdir already configured 3225 if test -f $srcdir/config.status; then 3226 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3227 fi 3228fi 3229 3230# test whether we have cygpath 3231if test -z "$CYGPATH_W"; then 3232 if (cygpath --version) >/dev/null 2>/dev/null; then 3233 CYGPATH_W='cygpath -w' 3234 else 3235 CYGPATH_W=echo 3236 fi 3237fi 3238 3239 3240# Define the identity of the package. 3241 PACKAGE='tiff' 3242 VERSION='3.9.4' 3243 3244 3245cat >>confdefs.h <<_ACEOF 3246#define PACKAGE "$PACKAGE" 3247_ACEOF 3248 3249 3250cat >>confdefs.h <<_ACEOF 3251#define VERSION "$VERSION" 3252_ACEOF 3253 3254# Some tools Automake needs. 3255 3256ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3257 3258 3259AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3260 3261 3262AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3263 3264 3265AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3266 3267 3268MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3269 3270# We need awk for the "check" target. The system "awk" is bad on 3271# some platforms. 3272# Always define AMTAR for backward compatibility. 3273 3274AMTAR=${AMTAR-"${am_missing_run}tar"} 3275 3276am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3277 3278 3279 3280 3281 3282 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3284$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3285 # Check whether --enable-maintainer-mode was given. 3286if test "${enable_maintainer_mode+set}" = set; then : 3287 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3288else 3289 USE_MAINTAINER_MODE=no 3290fi 3291 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3293$as_echo "$USE_MAINTAINER_MODE" >&6; } 3294 if test $USE_MAINTAINER_MODE = yes; then 3295 MAINTAINER_MODE_TRUE= 3296 MAINTAINER_MODE_FALSE='#' 3297else 3298 MAINTAINER_MODE_TRUE='#' 3299 MAINTAINER_MODE_FALSE= 3300fi 3301 3302 MAINT=$MAINTAINER_MODE_TRUE 3303 3304 3305 3306LIBTIFF_MAJOR_VERSION=3 3307LIBTIFF_MINOR_VERSION=9 3308LIBTIFF_MICRO_VERSION=4 3309LIBTIFF_ALPHA_VERSION= 3310LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3311LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3312 3313# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3314# in OpenBSD uses some special semantics for shared libraries. Their soname 3315# contains only two numbers, major and minor. 3316# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3317case "$target_os" in 3318 openbsd* | mirbsd*) 3319 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3320 ;; 3321 *) 3322 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3323 ;; 3324esac 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334# Ensure that make can run correctly 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3336$as_echo_n "checking whether build environment is sane... " >&6; } 3337# Just in case 3338sleep 1 3339echo timestamp > conftest.file 3340# Reject unsafe characters in $srcdir or the absolute working directory 3341# name. Accept space and tab only in the latter. 3342am_lf=' 3343' 3344case `pwd` in 3345 *[\\\"\#\$\&\'\`$am_lf]*) 3346 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3347esac 3348case $srcdir in 3349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3350 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3351esac 3352 3353# Do `set' in a subshell so we don't clobber the current shell's 3354# arguments. Must try -L first in case configure is actually a 3355# symlink; some systems play weird games with the mod time of symlinks 3356# (eg FreeBSD returns the mod time of the symlink's containing 3357# directory). 3358if ( 3359 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3360 if test "$*" = "X"; then 3361 # -L didn't work. 3362 set X `ls -t "$srcdir/configure" conftest.file` 3363 fi 3364 rm -f conftest.file 3365 if test "$*" != "X $srcdir/configure conftest.file" \ 3366 && test "$*" != "X conftest.file $srcdir/configure"; then 3367 3368 # If neither matched, then we have a broken ls. This can happen 3369 # if, for instance, CONFIG_SHELL is bash and it inherits a 3370 # broken ls alias from the environment. This has actually 3371 # happened. Such a system could not be considered "sane". 3372 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3373alias in your environment" "$LINENO" 5 3374 fi 3375 3376 test "$2" = conftest.file 3377 ) 3378then 3379 # Ok. 3380 : 3381else 3382 as_fn_error "newly created file is older than distributed files! 3383Check your system clock" "$LINENO" 5 3384fi 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3386$as_echo "yes" >&6; } 3387 3388ac_ext=c 3389ac_cpp='$CPP $CPPFLAGS' 3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3392ac_compiler_gnu=$ac_cv_c_compiler_gnu 3393if test -n "$ac_tool_prefix"; then 3394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3395set dummy ${ac_tool_prefix}gcc; ac_word=$2 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397$as_echo_n "checking for $ac_word... " >&6; } 3398if test "${ac_cv_prog_CC+set}" = set; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if test -n "$CC"; then 3402 ac_cv_prog_CC="$CC" # Let the user override the test. 3403else 3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405for as_dir in $PATH 3406do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3411 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 3414 fi 3415done 3416 done 3417IFS=$as_save_IFS 3418 3419fi 3420fi 3421CC=$ac_cv_prog_CC 3422if test -n "$CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3424$as_echo "$CC" >&6; } 3425else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427$as_echo "no" >&6; } 3428fi 3429 3430 3431fi 3432if test -z "$ac_cv_prog_CC"; then 3433 ac_ct_CC=$CC 3434 # Extract the first word of "gcc", so it can be a program name with args. 3435set dummy gcc; ac_word=$2 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3437$as_echo_n "checking for $ac_word... " >&6; } 3438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3439 $as_echo_n "(cached) " >&6 3440else 3441 if test -n "$ac_ct_CC"; then 3442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3443else 3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3445for as_dir in $PATH 3446do 3447 IFS=$as_save_IFS 3448 test -z "$as_dir" && as_dir=. 3449 for ac_exec_ext in '' $ac_executable_extensions; do 3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3451 ac_cv_prog_ac_ct_CC="gcc" 3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3453 break 2 3454 fi 3455done 3456 done 3457IFS=$as_save_IFS 3458 3459fi 3460fi 3461ac_ct_CC=$ac_cv_prog_ac_ct_CC 3462if test -n "$ac_ct_CC"; then 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3464$as_echo "$ac_ct_CC" >&6; } 3465else 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3467$as_echo "no" >&6; } 3468fi 3469 3470 if test "x$ac_ct_CC" = x; then 3471 CC="" 3472 else 3473 case $cross_compiling:$ac_tool_warned in 3474yes:) 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3477ac_tool_warned=yes ;; 3478esac 3479 CC=$ac_ct_CC 3480 fi 3481else 3482 CC="$ac_cv_prog_CC" 3483fi 3484 3485if test -z "$CC"; then 3486 if test -n "$ac_tool_prefix"; then 3487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3488set dummy ${ac_tool_prefix}cc; ac_word=$2 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490$as_echo_n "checking for $ac_word... " >&6; } 3491if test "${ac_cv_prog_CC+set}" = set; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 test -z "$as_dir" && as_dir=. 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3504 ac_cv_prog_CC="${ac_tool_prefix}cc" 3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508done 3509 done 3510IFS=$as_save_IFS 3511 3512fi 3513fi 3514CC=$ac_cv_prog_CC 3515if test -n "$CC"; then 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3517$as_echo "$CC" >&6; } 3518else 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520$as_echo "no" >&6; } 3521fi 3522 3523 3524 fi 3525fi 3526if test -z "$CC"; then 3527 # Extract the first word of "cc", so it can be a program name with args. 3528set dummy cc; ac_word=$2 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3530$as_echo_n "checking for $ac_word... " >&6; } 3531if test "${ac_cv_prog_CC+set}" = set; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 if test -n "$CC"; then 3535 ac_cv_prog_CC="$CC" # Let the user override the test. 3536else 3537 ac_prog_rejected=no 3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 for ac_exec_ext in '' $ac_executable_extensions; do 3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3546 ac_prog_rejected=yes 3547 continue 3548 fi 3549 ac_cv_prog_CC="cc" 3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3551 break 2 3552 fi 3553done 3554 done 3555IFS=$as_save_IFS 3556 3557if test $ac_prog_rejected = yes; then 3558 # We found a bogon in the path, so make sure we never use it. 3559 set dummy $ac_cv_prog_CC 3560 shift 3561 if test $# != 0; then 3562 # We chose a different compiler from the bogus one. 3563 # However, it has the same basename, so the bogon will be chosen 3564 # first if we set CC to just the basename; use the full file name. 3565 shift 3566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3567 fi 3568fi 3569fi 3570fi 3571CC=$ac_cv_prog_CC 3572if test -n "$CC"; then 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3574$as_echo "$CC" >&6; } 3575else 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577$as_echo "no" >&6; } 3578fi 3579 3580 3581fi 3582if test -z "$CC"; then 3583 if test -n "$ac_tool_prefix"; then 3584 for ac_prog in cl.exe 3585 do 3586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3587set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3589$as_echo_n "checking for $ac_word... " >&6; } 3590if test "${ac_cv_prog_CC+set}" = set; then : 3591 $as_echo_n "(cached) " >&6 3592else 3593 if test -n "$CC"; then 3594 ac_cv_prog_CC="$CC" # Let the user override the test. 3595else 3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3597for as_dir in $PATH 3598do 3599 IFS=$as_save_IFS 3600 test -z "$as_dir" && as_dir=. 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3605 break 2 3606 fi 3607done 3608 done 3609IFS=$as_save_IFS 3610 3611fi 3612fi 3613CC=$ac_cv_prog_CC 3614if test -n "$CC"; then 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3616$as_echo "$CC" >&6; } 3617else 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619$as_echo "no" >&6; } 3620fi 3621 3622 3623 test -n "$CC" && break 3624 done 3625fi 3626if test -z "$CC"; then 3627 ac_ct_CC=$CC 3628 for ac_prog in cl.exe 3629do 3630 # Extract the first word of "$ac_prog", so it can be a program name with args. 3631set dummy $ac_prog; ac_word=$2 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633$as_echo_n "checking for $ac_word... " >&6; } 3634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 if test -n "$ac_ct_CC"; then 3638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3639else 3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3647 ac_cv_prog_ac_ct_CC="$ac_prog" 3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3649 break 2 3650 fi 3651done 3652 done 3653IFS=$as_save_IFS 3654 3655fi 3656fi 3657ac_ct_CC=$ac_cv_prog_ac_ct_CC 3658if test -n "$ac_ct_CC"; then 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3660$as_echo "$ac_ct_CC" >&6; } 3661else 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3663$as_echo "no" >&6; } 3664fi 3665 3666 3667 test -n "$ac_ct_CC" && break 3668done 3669 3670 if test "x$ac_ct_CC" = x; then 3671 CC="" 3672 else 3673 case $cross_compiling:$ac_tool_warned in 3674yes:) 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3677ac_tool_warned=yes ;; 3678esac 3679 CC=$ac_ct_CC 3680 fi 3681fi 3682 3683fi 3684 3685 3686test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3688as_fn_error "no acceptable C compiler found in \$PATH 3689See \`config.log' for more details." "$LINENO" 5; } 3690 3691# Provide some information about the compiler. 3692$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3693set X $ac_compile 3694ac_compiler=$2 3695for ac_option in --version -v -V -qversion; do 3696 { { ac_try="$ac_compiler $ac_option >&5" 3697case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702$as_echo "$ac_try_echo"; } >&5 3703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3704 ac_status=$? 3705 if test -s conftest.err; then 3706 sed '10a\ 3707... rest of stderr output deleted ... 3708 10q' conftest.err >conftest.er1 3709 cat conftest.er1 >&5 3710 fi 3711 rm -f conftest.er1 conftest.err 3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3713 test $ac_status = 0; } 3714done 3715 3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718 3719int 3720main () 3721{ 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727ac_clean_files_save=$ac_clean_files 3728ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3729# Try to create an executable without -o first, disregard a.out. 3730# It will help us diagnose broken compilers, and finding out an intuition 3731# of exeext. 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3733$as_echo_n "checking whether the C compiler works... " >&6; } 3734ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3735 3736# The possible output files: 3737ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3738 3739ac_rmfiles= 3740for ac_file in $ac_files 3741do 3742 case $ac_file in 3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3744 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3745 esac 3746done 3747rm -f $ac_rmfiles 3748 3749if { { ac_try="$ac_link_default" 3750case "(($ac_try" in 3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3752 *) ac_try_echo=$ac_try;; 3753esac 3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3755$as_echo "$ac_try_echo"; } >&5 3756 (eval "$ac_link_default") 2>&5 3757 ac_status=$? 3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3759 test $ac_status = 0; }; then : 3760 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3761# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3762# in a Makefile. We should not override ac_cv_exeext if it was cached, 3763# so that the user can short-circuit this test for compilers unknown to 3764# Autoconf. 3765for ac_file in $ac_files '' 3766do 3767 test -f "$ac_file" || continue 3768 case $ac_file in 3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3770 ;; 3771 [ab].out ) 3772 # We found the default executable, but exeext='' is most 3773 # certainly right. 3774 break;; 3775 *.* ) 3776 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3777 then :; else 3778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3779 fi 3780 # We set ac_cv_exeext here because the later test for it is not 3781 # safe: cross compilers may not add the suffix if given an `-o' 3782 # argument, so we may need to know it at that point already. 3783 # Even if this section looks crufty: it has the advantage of 3784 # actually working. 3785 break;; 3786 * ) 3787 break;; 3788 esac 3789done 3790test "$ac_cv_exeext" = no && ac_cv_exeext= 3791 3792else 3793 ac_file='' 3794fi 3795if test -z "$ac_file"; then : 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797$as_echo "no" >&6; } 3798$as_echo "$as_me: failed program was:" >&5 3799sed 's/^/| /' conftest.$ac_ext >&5 3800 3801{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3803{ as_fn_set_status 77 3804as_fn_error "C compiler cannot create executables 3805See \`config.log' for more details." "$LINENO" 5; }; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3808$as_echo "yes" >&6; } 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3811$as_echo_n "checking for C compiler default output file name... " >&6; } 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3813$as_echo "$ac_file" >&6; } 3814ac_exeext=$ac_cv_exeext 3815 3816rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3817ac_clean_files=$ac_clean_files_save 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3819$as_echo_n "checking for suffix of executables... " >&6; } 3820if { { ac_try="$ac_link" 3821case "(($ac_try" in 3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3823 *) ac_try_echo=$ac_try;; 3824esac 3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3826$as_echo "$ac_try_echo"; } >&5 3827 (eval "$ac_link") 2>&5 3828 ac_status=$? 3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3830 test $ac_status = 0; }; then : 3831 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3832# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3833# work properly (i.e., refer to `conftest.exe'), while it won't with 3834# `rm'. 3835for ac_file in conftest.exe conftest conftest.*; do 3836 test -f "$ac_file" || continue 3837 case $ac_file in 3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3839 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3840 break;; 3841 * ) break;; 3842 esac 3843done 3844else 3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error "cannot compute suffix of executables: cannot compile and link 3848See \`config.log' for more details." "$LINENO" 5; } 3849fi 3850rm -f conftest conftest$ac_cv_exeext 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3852$as_echo "$ac_cv_exeext" >&6; } 3853 3854rm -f conftest.$ac_ext 3855EXEEXT=$ac_cv_exeext 3856ac_exeext=$EXEEXT 3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859#include <stdio.h> 3860int 3861main () 3862{ 3863FILE *f = fopen ("conftest.out", "w"); 3864 return ferror (f) || fclose (f) != 0; 3865 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870ac_clean_files="$ac_clean_files conftest.out" 3871# Check that the compiler produces executables we can run. If not, either 3872# the compiler is broken, or we cross compile. 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3874$as_echo_n "checking whether we are cross compiling... " >&6; } 3875if test "$cross_compiling" != yes; then 3876 { { ac_try="$ac_link" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3882$as_echo "$ac_try_echo"; } >&5 3883 (eval "$ac_link") 2>&5 3884 ac_status=$? 3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3886 test $ac_status = 0; } 3887 if { ac_try='./conftest$ac_cv_exeext' 3888 { { case "(($ac_try" in 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3890 *) ac_try_echo=$ac_try;; 3891esac 3892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3893$as_echo "$ac_try_echo"; } >&5 3894 (eval "$ac_try") 2>&5 3895 ac_status=$? 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; }; }; then 3898 cross_compiling=no 3899 else 3900 if test "$cross_compiling" = maybe; then 3901 cross_compiling=yes 3902 else 3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error "cannot run C compiled programs. 3906If you meant to cross compile, use \`--host'. 3907See \`config.log' for more details." "$LINENO" 5; } 3908 fi 3909 fi 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3912$as_echo "$cross_compiling" >&6; } 3913 3914rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3915ac_clean_files=$ac_clean_files_save 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3917$as_echo_n "checking for suffix of object files... " >&6; } 3918if test "${ac_cv_objext+set}" = set; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.o conftest.obj 3933if { { ac_try="$ac_compile" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939$as_echo "$ac_try_echo"; } >&5 3940 (eval "$ac_compile") 2>&5 3941 ac_status=$? 3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; }; then : 3944 for ac_file in conftest.o conftest.obj conftest.*; do 3945 test -f "$ac_file" || continue; 3946 case $ac_file in 3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3949 break;; 3950 esac 3951done 3952else 3953 $as_echo "$as_me: failed program was:" >&5 3954sed 's/^/| /' conftest.$ac_ext >&5 3955 3956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3958as_fn_error "cannot compute suffix of object files: cannot compile 3959See \`config.log' for more details." "$LINENO" 5; } 3960fi 3961rm -f conftest.$ac_cv_objext conftest.$ac_ext 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3964$as_echo "$ac_cv_objext" >&6; } 3965OBJEXT=$ac_cv_objext 3966ac_objext=$OBJEXT 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3969if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974 3975int 3976main () 3977{ 3978#ifndef __GNUC__ 3979 choke me 3980#endif 3981 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_compile "$LINENO"; then : 3987 ac_compiler_gnu=yes 3988else 3989 ac_compiler_gnu=no 3990fi 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3992ac_cv_c_compiler_gnu=$ac_compiler_gnu 3993 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3996$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3997if test $ac_compiler_gnu = yes; then 3998 GCC=yes 3999else 4000 GCC= 4001fi 4002ac_test_CFLAGS=${CFLAGS+set} 4003ac_save_CFLAGS=$CFLAGS 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4005$as_echo_n "checking whether $CC accepts -g... " >&6; } 4006if test "${ac_cv_prog_cc_g+set}" = set; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_save_c_werror_flag=$ac_c_werror_flag 4010 ac_c_werror_flag=yes 4011 ac_cv_prog_cc_g=no 4012 CFLAGS="-g" 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016int 4017main () 4018{ 4019 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024if ac_fn_c_try_compile "$LINENO"; then : 4025 ac_cv_prog_cc_g=yes 4026else 4027 CFLAGS="" 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039if ac_fn_c_try_compile "$LINENO"; then : 4040 4041else 4042 ac_c_werror_flag=$ac_save_c_werror_flag 4043 CFLAGS="-g" 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main () 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055if ac_fn_c_try_compile "$LINENO"; then : 4056 ac_cv_prog_cc_g=yes 4057fi 4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4061fi 4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4063 ac_c_werror_flag=$ac_save_c_werror_flag 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4066$as_echo "$ac_cv_prog_cc_g" >&6; } 4067if test "$ac_test_CFLAGS" = set; then 4068 CFLAGS=$ac_save_CFLAGS 4069elif test $ac_cv_prog_cc_g = yes; then 4070 if test "$GCC" = yes; then 4071 CFLAGS="-g -O2" 4072 else 4073 CFLAGS="-g" 4074 fi 4075else 4076 if test "$GCC" = yes; then 4077 CFLAGS="-O2" 4078 else 4079 CFLAGS= 4080 fi 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4084if test "${ac_cv_prog_cc_c89+set}" = set; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 ac_cv_prog_cc_c89=no 4088ac_save_CC=$CC 4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091#include <stdarg.h> 4092#include <stdio.h> 4093#include <sys/types.h> 4094#include <sys/stat.h> 4095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4096struct buf { int x; }; 4097FILE * (*rcsopen) (struct buf *, struct stat *, int); 4098static char *e (p, i) 4099 char **p; 4100 int i; 4101{ 4102 return p[i]; 4103} 4104static char *f (char * (*g) (char **, int), char **p, ...) 4105{ 4106 char *s; 4107 va_list v; 4108 va_start (v,p); 4109 s = g (p, va_arg (v,int)); 4110 va_end (v); 4111 return s; 4112} 4113 4114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4115 function prototypes and stuff, but not '\xHH' hex character constants. 4116 These don't provoke an error unfortunately, instead are silently treated 4117 as 'x'. The following induces an error, until -std is added to get 4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4119 array size at least. It's necessary to write '\x00'==0 to get something 4120 that's true only with -std. */ 4121int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4122 4123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4124 inside strings and character constants. */ 4125#define FOO(x) 'x' 4126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4127 4128int test (int i, double x); 4129struct s1 {int (*f) (int a);}; 4130struct s2 {int (*f) (double a);}; 4131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4132int argc; 4133char **argv; 4134int 4135main () 4136{ 4137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4144do 4145 CC="$ac_save_CC $ac_arg" 4146 if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_prog_cc_c89=$ac_arg 4148fi 4149rm -f core conftest.err conftest.$ac_objext 4150 test "x$ac_cv_prog_cc_c89" != "xno" && break 4151done 4152rm -f conftest.$ac_ext 4153CC=$ac_save_CC 4154 4155fi 4156# AC_CACHE_VAL 4157case "x$ac_cv_prog_cc_c89" in 4158 x) 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4160$as_echo "none needed" >&6; } ;; 4161 xno) 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4163$as_echo "unsupported" >&6; } ;; 4164 *) 4165 CC="$CC $ac_cv_prog_cc_c89" 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4168esac 4169if test "x$ac_cv_prog_cc_c89" != xno; then : 4170 4171fi 4172 4173ac_ext=c 4174ac_cpp='$CPP $CPPFLAGS' 4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4177ac_compiler_gnu=$ac_cv_c_compiler_gnu 4178DEPDIR="${am__leading_dot}deps" 4179 4180ac_config_commands="$ac_config_commands depfiles" 4181 4182 4183am_make=${MAKE-make} 4184cat > confinc << 'END' 4185am__doit: 4186 @echo this is the am__doit target 4187.PHONY: am__doit 4188END 4189# If we don't find an include directive, just comment out the code. 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4191$as_echo_n "checking for style of include used by $am_make... " >&6; } 4192am__include="#" 4193am__quote= 4194_am_result=none 4195# First try GNU make style include. 4196echo "include confinc" > confmf 4197# Ignore all kinds of additional output from `make'. 4198case `$am_make -s -f confmf 2> /dev/null` in #( 4199*the\ am__doit\ target*) 4200 am__include=include 4201 am__quote= 4202 _am_result=GNU 4203 ;; 4204esac 4205# Now try BSD make style include. 4206if test "$am__include" = "#"; then 4207 echo '.include "confinc"' > confmf 4208 case `$am_make -s -f confmf 2> /dev/null` in #( 4209 *the\ am__doit\ target*) 4210 am__include=.include 4211 am__quote="\"" 4212 _am_result=BSD 4213 ;; 4214 esac 4215fi 4216 4217 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4219$as_echo "$_am_result" >&6; } 4220rm -f confinc confmf 4221 4222# Check whether --enable-dependency-tracking was given. 4223if test "${enable_dependency_tracking+set}" = set; then : 4224 enableval=$enable_dependency_tracking; 4225fi 4226 4227if test "x$enable_dependency_tracking" != xno; then 4228 am_depcomp="$ac_aux_dir/depcomp" 4229 AMDEPBACKSLASH='\' 4230fi 4231 if test "x$enable_dependency_tracking" != xno; then 4232 AMDEP_TRUE= 4233 AMDEP_FALSE='#' 4234else 4235 AMDEP_TRUE='#' 4236 AMDEP_FALSE= 4237fi 4238 4239 4240 4241depcc="$CC" am_compiler_list= 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4244$as_echo_n "checking dependency style of $depcc... " >&6; } 4245if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4249 # We make a subdir and do the tests there. Otherwise we can end up 4250 # making bogus files that we don't know about and never remove. For 4251 # instance it was reported that on HP-UX the gcc test will end up 4252 # making a dummy file named `D' -- because `-MD' means `put the output 4253 # in D'. 4254 mkdir conftest.dir 4255 # Copy depcomp to subdir because otherwise we won't find it if we're 4256 # using a relative directory. 4257 cp "$am_depcomp" conftest.dir 4258 cd conftest.dir 4259 # We will build objects and dependencies in a subdirectory because 4260 # it helps to detect inapplicable dependency modes. For instance 4261 # both Tru64's cc and ICC support -MD to output dependencies as a 4262 # side effect of compilation, but ICC will put the dependencies in 4263 # the current directory while Tru64 will put them in the object 4264 # directory. 4265 mkdir sub 4266 4267 am_cv_CC_dependencies_compiler_type=none 4268 if test "$am_compiler_list" = ""; then 4269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4270 fi 4271 am__universal=false 4272 case " $depcc " in #( 4273 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4274 esac 4275 4276 for depmode in $am_compiler_list; do 4277 # Setup a source with many dependencies, because some compilers 4278 # like to wrap large dependency lists on column 80 (with \), and 4279 # we should not choose a depcomp mode which is confused by this. 4280 # 4281 # We need to recreate these files for each test, as the compiler may 4282 # overwrite some of them when testing with obscure command lines. 4283 # This happens at least with the AIX C compiler. 4284 : > sub/conftest.c 4285 for i in 1 2 3 4 5 6; do 4286 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4288 # Solaris 8's {/usr,}/bin/sh. 4289 touch sub/conftst$i.h 4290 done 4291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4292 4293 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4294 # mode. It turns out that the SunPro C++ compiler does not properly 4295 # handle `-M -o', and we need to detect this. Also, some Intel 4296 # versions had trouble with output in subdirs 4297 am__obj=sub/conftest.${OBJEXT-o} 4298 am__minus_obj="-o $am__obj" 4299 case $depmode in 4300 gcc) 4301 # This depmode causes a compiler race in universal mode. 4302 test "$am__universal" = false || continue 4303 ;; 4304 nosideeffect) 4305 # after this tag, mechanisms are not by side-effect, so they'll 4306 # only be used when explicitly requested 4307 if test "x$enable_dependency_tracking" = xyes; then 4308 continue 4309 else 4310 break 4311 fi 4312 ;; 4313 msvisualcpp | msvcmsys) 4314 # This compiler won't grok `-c -o', but also, the minuso test has 4315 # not run yet. These depmodes are late enough in the game, and 4316 # so weak that their functioning should not be impacted. 4317 am__obj=conftest.${OBJEXT-o} 4318 am__minus_obj= 4319 ;; 4320 none) break ;; 4321 esac 4322 if depmode=$depmode \ 4323 source=sub/conftest.c object=$am__obj \ 4324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4326 >/dev/null 2>conftest.err && 4327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4331 # icc doesn't choke on unknown options, it will just issue warnings 4332 # or remarks (even with -Werror). So we grep stderr for any message 4333 # that says an option was ignored or not supported. 4334 # When given -MP, icc 7.0 and 7.1 complain thusly: 4335 # icc: Command line warning: ignoring option '-M'; no argument required 4336 # The diagnosis changed in icc 8.0: 4337 # icc: Command line remark: option '-MP' not supported 4338 if (grep 'ignoring option' conftest.err || 4339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4340 am_cv_CC_dependencies_compiler_type=$depmode 4341 break 4342 fi 4343 fi 4344 done 4345 4346 cd .. 4347 rm -rf conftest.dir 4348else 4349 am_cv_CC_dependencies_compiler_type=none 4350fi 4351 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4354$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4355CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4356 4357 if 4358 test "x$enable_dependency_tracking" != xno \ 4359 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4360 am__fastdepCC_TRUE= 4361 am__fastdepCC_FALSE='#' 4362else 4363 am__fastdepCC_TRUE='#' 4364 am__fastdepCC_FALSE= 4365fi 4366 4367 4368 case $ac_cv_prog_cc_stdc in #( 4369 no) : 4370 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4371 *) : 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4373$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4374if test "${ac_cv_prog_cc_c99+set}" = set; then : 4375 $as_echo_n "(cached) " >&6 4376else 4377 ac_cv_prog_cc_c99=no 4378ac_save_CC=$CC 4379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381#include <stdarg.h> 4382#include <stdbool.h> 4383#include <stdlib.h> 4384#include <wchar.h> 4385#include <stdio.h> 4386 4387// Check varargs macros. These examples are taken from C99 6.10.3.5. 4388#define debug(...) fprintf (stderr, __VA_ARGS__) 4389#define showlist(...) puts (#__VA_ARGS__) 4390#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4391static void 4392test_varargs_macros (void) 4393{ 4394 int x = 1234; 4395 int y = 5678; 4396 debug ("Flag"); 4397 debug ("X = %d\n", x); 4398 showlist (The first, second, and third items.); 4399 report (x>y, "x is %d but y is %d", x, y); 4400} 4401 4402// Check long long types. 4403#define BIG64 18446744073709551615ull 4404#define BIG32 4294967295ul 4405#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4406#if !BIG_OK 4407 your preprocessor is broken; 4408#endif 4409#if BIG_OK 4410#else 4411 your preprocessor is broken; 4412#endif 4413static long long int bignum = -9223372036854775807LL; 4414static unsigned long long int ubignum = BIG64; 4415 4416struct incomplete_array 4417{ 4418 int datasize; 4419 double data[]; 4420}; 4421 4422struct named_init { 4423 int number; 4424 const wchar_t *name; 4425 double average; 4426}; 4427 4428typedef const char *ccp; 4429 4430static inline int 4431test_restrict (ccp restrict text) 4432{ 4433 // See if C++-style comments work. 4434 // Iterate through items via the restricted pointer. 4435 // Also check for declarations in for loops. 4436 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4437 continue; 4438 return 0; 4439} 4440 4441// Check varargs and va_copy. 4442static void 4443test_varargs (const char *format, ...) 4444{ 4445 va_list args; 4446 va_start (args, format); 4447 va_list args_copy; 4448 va_copy (args_copy, args); 4449 4450 const char *str; 4451 int number; 4452 float fnumber; 4453 4454 while (*format) 4455 { 4456 switch (*format++) 4457 { 4458 case 's': // string 4459 str = va_arg (args_copy, const char *); 4460 break; 4461 case 'd': // int 4462 number = va_arg (args_copy, int); 4463 break; 4464 case 'f': // float 4465 fnumber = va_arg (args_copy, double); 4466 break; 4467 default: 4468 break; 4469 } 4470 } 4471 va_end (args_copy); 4472 va_end (args); 4473} 4474 4475int 4476main () 4477{ 4478 4479 // Check bool. 4480 _Bool success = false; 4481 4482 // Check restrict. 4483 if (test_restrict ("String literal") == 0) 4484 success = true; 4485 char *restrict newvar = "Another string"; 4486 4487 // Check varargs. 4488 test_varargs ("s, d' f .", "string", 65, 34.234); 4489 test_varargs_macros (); 4490 4491 // Check flexible array members. 4492 struct incomplete_array *ia = 4493 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4494 ia->datasize = 10; 4495 for (int i = 0; i < ia->datasize; ++i) 4496 ia->data[i] = i * 1.234; 4497 4498 // Check named initializers. 4499 struct named_init ni = { 4500 .number = 34, 4501 .name = L"Test wide string", 4502 .average = 543.34343, 4503 }; 4504 4505 ni.number = 58; 4506 4507 int dynamic_array[ni.number]; 4508 dynamic_array[ni.number - 1] = 543; 4509 4510 // work around unused variable warnings 4511 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4512 || dynamic_array[ni.number - 1] != 543); 4513 4514 ; 4515 return 0; 4516} 4517_ACEOF 4518for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4519do 4520 CC="$ac_save_CC $ac_arg" 4521 if ac_fn_c_try_compile "$LINENO"; then : 4522 ac_cv_prog_cc_c99=$ac_arg 4523fi 4524rm -f core conftest.err conftest.$ac_objext 4525 test "x$ac_cv_prog_cc_c99" != "xno" && break 4526done 4527rm -f conftest.$ac_ext 4528CC=$ac_save_CC 4529 4530fi 4531# AC_CACHE_VAL 4532case "x$ac_cv_prog_cc_c99" in 4533 x) 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4535$as_echo "none needed" >&6; } ;; 4536 xno) 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4538$as_echo "unsupported" >&6; } ;; 4539 *) 4540 CC="$CC $ac_cv_prog_cc_c99" 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4542$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4543esac 4544if test "x$ac_cv_prog_cc_c99" != xno; then : 4545 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4546else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4548$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4549if test "${ac_cv_prog_cc_c89+set}" = set; then : 4550 $as_echo_n "(cached) " >&6 4551else 4552 ac_cv_prog_cc_c89=no 4553ac_save_CC=$CC 4554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556#include <stdarg.h> 4557#include <stdio.h> 4558#include <sys/types.h> 4559#include <sys/stat.h> 4560/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4561struct buf { int x; }; 4562FILE * (*rcsopen) (struct buf *, struct stat *, int); 4563static char *e (p, i) 4564 char **p; 4565 int i; 4566{ 4567 return p[i]; 4568} 4569static char *f (char * (*g) (char **, int), char **p, ...) 4570{ 4571 char *s; 4572 va_list v; 4573 va_start (v,p); 4574 s = g (p, va_arg (v,int)); 4575 va_end (v); 4576 return s; 4577} 4578 4579/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4580 function prototypes and stuff, but not '\xHH' hex character constants. 4581 These don't provoke an error unfortunately, instead are silently treated 4582 as 'x'. The following induces an error, until -std is added to get 4583 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4584 array size at least. It's necessary to write '\x00'==0 to get something 4585 that's true only with -std. */ 4586int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4587 4588/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4589 inside strings and character constants. */ 4590#define FOO(x) 'x' 4591int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4592 4593int test (int i, double x); 4594struct s1 {int (*f) (int a);}; 4595struct s2 {int (*f) (double a);}; 4596int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4597int argc; 4598char **argv; 4599int 4600main () 4601{ 4602return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4603 ; 4604 return 0; 4605} 4606_ACEOF 4607for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4608 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4609do 4610 CC="$ac_save_CC $ac_arg" 4611 if ac_fn_c_try_compile "$LINENO"; then : 4612 ac_cv_prog_cc_c89=$ac_arg 4613fi 4614rm -f core conftest.err conftest.$ac_objext 4615 test "x$ac_cv_prog_cc_c89" != "xno" && break 4616done 4617rm -f conftest.$ac_ext 4618CC=$ac_save_CC 4619 4620fi 4621# AC_CACHE_VAL 4622case "x$ac_cv_prog_cc_c89" in 4623 x) 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4625$as_echo "none needed" >&6; } ;; 4626 xno) 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4628$as_echo "unsupported" >&6; } ;; 4629 *) 4630 CC="$CC $ac_cv_prog_cc_c89" 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4632$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4633esac 4634if test "x$ac_cv_prog_cc_c89" != xno; then : 4635 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4636else 4637 ac_cv_prog_cc_stdc=no 4638fi 4639 4640fi 4641 ;; 4642esac 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4644$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4645 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 4646 $as_echo_n "(cached) " >&6 4647fi 4648 4649 case $ac_cv_prog_cc_stdc in #( 4650 no) : 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4652$as_echo "unsupported" >&6; } ;; #( 4653 '') : 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4655$as_echo "none needed" >&6; } ;; #( 4656 *) : 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4658$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4659esac 4660 4661ac_ext=c 4662ac_cpp='$CPP $CPPFLAGS' 4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4665ac_compiler_gnu=$ac_cv_c_compiler_gnu 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4667$as_echo_n "checking how to run the C preprocessor... " >&6; } 4668# On Suns, sometimes $CPP names a directory. 4669if test -n "$CPP" && test -d "$CPP"; then 4670 CPP= 4671fi 4672if test -z "$CPP"; then 4673 if test "${ac_cv_prog_CPP+set}" = set; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 # Double quotes because CPP needs to be expanded 4677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4678 do 4679 ac_preproc_ok=false 4680for ac_c_preproc_warn_flag in '' yes 4681do 4682 # Use a header file that comes with gcc, so configuring glibc 4683 # with a fresh cross-compiler works. 4684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4685 # <limits.h> exists even on freestanding compilers. 4686 # On the NeXT, cc -E runs the code through the compiler's parser, 4687 # not just through cpp. "Syntax error" is here to catch this case. 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690#ifdef __STDC__ 4691# include <limits.h> 4692#else 4693# include <assert.h> 4694#endif 4695 Syntax error 4696_ACEOF 4697if ac_fn_c_try_cpp "$LINENO"; then : 4698 4699else 4700 # Broken: fails on valid input. 4701continue 4702fi 4703rm -f conftest.err conftest.$ac_ext 4704 4705 # OK, works on sane cases. Now check whether nonexistent headers 4706 # can be detected and how. 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708/* end confdefs.h. */ 4709#include <ac_nonexistent.h> 4710_ACEOF 4711if ac_fn_c_try_cpp "$LINENO"; then : 4712 # Broken: success on invalid input. 4713continue 4714else 4715 # Passes both tests. 4716ac_preproc_ok=: 4717break 4718fi 4719rm -f conftest.err conftest.$ac_ext 4720 4721done 4722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4723rm -f conftest.err conftest.$ac_ext 4724if $ac_preproc_ok; then : 4725 break 4726fi 4727 4728 done 4729 ac_cv_prog_CPP=$CPP 4730 4731fi 4732 CPP=$ac_cv_prog_CPP 4733else 4734 ac_cv_prog_CPP=$CPP 4735fi 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4737$as_echo "$CPP" >&6; } 4738ac_preproc_ok=false 4739for ac_c_preproc_warn_flag in '' yes 4740do 4741 # Use a header file that comes with gcc, so configuring glibc 4742 # with a fresh cross-compiler works. 4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4744 # <limits.h> exists even on freestanding compilers. 4745 # On the NeXT, cc -E runs the code through the compiler's parser, 4746 # not just through cpp. "Syntax error" is here to catch this case. 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749#ifdef __STDC__ 4750# include <limits.h> 4751#else 4752# include <assert.h> 4753#endif 4754 Syntax error 4755_ACEOF 4756if ac_fn_c_try_cpp "$LINENO"; then : 4757 4758else 4759 # Broken: fails on valid input. 4760continue 4761fi 4762rm -f conftest.err conftest.$ac_ext 4763 4764 # OK, works on sane cases. Now check whether nonexistent headers 4765 # can be detected and how. 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767/* end confdefs.h. */ 4768#include <ac_nonexistent.h> 4769_ACEOF 4770if ac_fn_c_try_cpp "$LINENO"; then : 4771 # Broken: success on invalid input. 4772continue 4773else 4774 # Passes both tests. 4775ac_preproc_ok=: 4776break 4777fi 4778rm -f conftest.err conftest.$ac_ext 4779 4780done 4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4782rm -f conftest.err conftest.$ac_ext 4783if $ac_preproc_ok; then : 4784 4785else 4786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4788as_fn_error "C preprocessor \"$CPP\" fails sanity check 4789See \`config.log' for more details." "$LINENO" 5; } 4790fi 4791 4792ac_ext=c 4793ac_cpp='$CPP $CPPFLAGS' 4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4796ac_compiler_gnu=$ac_cv_c_compiler_gnu 4797 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4799$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4800if test "${ac_cv_path_SED+set}" = set; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4804 for ac_i in 1 2 3 4 5 6 7; do 4805 ac_script="$ac_script$as_nl$ac_script" 4806 done 4807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4808 { ac_script=; unset ac_script;} 4809 if test -z "$SED"; then 4810 ac_path_SED_found=false 4811 # Loop through the user's path and test for each of PROGNAME-LIST 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813for as_dir in $PATH 4814do 4815 IFS=$as_save_IFS 4816 test -z "$as_dir" && as_dir=. 4817 for ac_prog in sed gsed; do 4818 for ac_exec_ext in '' $ac_executable_extensions; do 4819 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4820 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4821# Check for GNU ac_path_SED and select it if it is found. 4822 # Check for GNU $ac_path_SED 4823case `"$ac_path_SED" --version 2>&1` in 4824*GNU*) 4825 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4826*) 4827 ac_count=0 4828 $as_echo_n 0123456789 >"conftest.in" 4829 while : 4830 do 4831 cat "conftest.in" "conftest.in" >"conftest.tmp" 4832 mv "conftest.tmp" "conftest.in" 4833 cp "conftest.in" "conftest.nl" 4834 $as_echo '' >> "conftest.nl" 4835 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4837 as_fn_arith $ac_count + 1 && ac_count=$as_val 4838 if test $ac_count -gt ${ac_path_SED_max-0}; then 4839 # Best one so far, save it but keep looking for a better one 4840 ac_cv_path_SED="$ac_path_SED" 4841 ac_path_SED_max=$ac_count 4842 fi 4843 # 10*(2^10) chars as input seems more than enough 4844 test $ac_count -gt 10 && break 4845 done 4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4847esac 4848 4849 $ac_path_SED_found && break 3 4850 done 4851 done 4852 done 4853IFS=$as_save_IFS 4854 if test -z "$ac_cv_path_SED"; then 4855 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4856 fi 4857else 4858 ac_cv_path_SED=$SED 4859fi 4860 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4863$as_echo "$ac_cv_path_SED" >&6; } 4864 SED="$ac_cv_path_SED" 4865 rm -f conftest.sed 4866 4867test -z "$SED" && SED=sed 4868Xsed="$SED -e 1s/^X//" 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4881$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4882if test "${ac_cv_path_GREP+set}" = set; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if test -z "$GREP"; then 4886 ac_path_GREP_found=false 4887 # Loop through the user's path and test for each of PROGNAME-LIST 4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4890do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_prog in grep ggrep; do 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4897# Check for GNU ac_path_GREP and select it if it is found. 4898 # Check for GNU $ac_path_GREP 4899case `"$ac_path_GREP" --version 2>&1` in 4900*GNU*) 4901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4902*) 4903 ac_count=0 4904 $as_echo_n 0123456789 >"conftest.in" 4905 while : 4906 do 4907 cat "conftest.in" "conftest.in" >"conftest.tmp" 4908 mv "conftest.tmp" "conftest.in" 4909 cp "conftest.in" "conftest.nl" 4910 $as_echo 'GREP' >> "conftest.nl" 4911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4913 as_fn_arith $ac_count + 1 && ac_count=$as_val 4914 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4915 # Best one so far, save it but keep looking for a better one 4916 ac_cv_path_GREP="$ac_path_GREP" 4917 ac_path_GREP_max=$ac_count 4918 fi 4919 # 10*(2^10) chars as input seems more than enough 4920 test $ac_count -gt 10 && break 4921 done 4922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4923esac 4924 4925 $ac_path_GREP_found && break 3 4926 done 4927 done 4928 done 4929IFS=$as_save_IFS 4930 if test -z "$ac_cv_path_GREP"; then 4931 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4932 fi 4933else 4934 ac_cv_path_GREP=$GREP 4935fi 4936 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4939$as_echo "$ac_cv_path_GREP" >&6; } 4940 GREP="$ac_cv_path_GREP" 4941 4942 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4944$as_echo_n "checking for egrep... " >&6; } 4945if test "${ac_cv_path_EGREP+set}" = set; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4949 then ac_cv_path_EGREP="$GREP -E" 4950 else 4951 if test -z "$EGREP"; then 4952 ac_path_EGREP_found=false 4953 # Loop through the user's path and test for each of PROGNAME-LIST 4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_prog in egrep; do 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4963# Check for GNU ac_path_EGREP and select it if it is found. 4964 # Check for GNU $ac_path_EGREP 4965case `"$ac_path_EGREP" --version 2>&1` in 4966*GNU*) 4967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4968*) 4969 ac_count=0 4970 $as_echo_n 0123456789 >"conftest.in" 4971 while : 4972 do 4973 cat "conftest.in" "conftest.in" >"conftest.tmp" 4974 mv "conftest.tmp" "conftest.in" 4975 cp "conftest.in" "conftest.nl" 4976 $as_echo 'EGREP' >> "conftest.nl" 4977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4979 as_fn_arith $ac_count + 1 && ac_count=$as_val 4980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4981 # Best one so far, save it but keep looking for a better one 4982 ac_cv_path_EGREP="$ac_path_EGREP" 4983 ac_path_EGREP_max=$ac_count 4984 fi 4985 # 10*(2^10) chars as input seems more than enough 4986 test $ac_count -gt 10 && break 4987 done 4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4989esac 4990 4991 $ac_path_EGREP_found && break 3 4992 done 4993 done 4994 done 4995IFS=$as_save_IFS 4996 if test -z "$ac_cv_path_EGREP"; then 4997 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4998 fi 4999else 5000 ac_cv_path_EGREP=$EGREP 5001fi 5002 5003 fi 5004fi 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5006$as_echo "$ac_cv_path_EGREP" >&6; } 5007 EGREP="$ac_cv_path_EGREP" 5008 5009 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5011$as_echo_n "checking for fgrep... " >&6; } 5012if test "${ac_cv_path_FGREP+set}" = set; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5016 then ac_cv_path_FGREP="$GREP -F" 5017 else 5018 if test -z "$FGREP"; then 5019 ac_path_FGREP_found=false 5020 # Loop through the user's path and test for each of PROGNAME-LIST 5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_prog in fgrep; do 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5029 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5030# Check for GNU ac_path_FGREP and select it if it is found. 5031 # Check for GNU $ac_path_FGREP 5032case `"$ac_path_FGREP" --version 2>&1` in 5033*GNU*) 5034 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5035*) 5036 ac_count=0 5037 $as_echo_n 0123456789 >"conftest.in" 5038 while : 5039 do 5040 cat "conftest.in" "conftest.in" >"conftest.tmp" 5041 mv "conftest.tmp" "conftest.in" 5042 cp "conftest.in" "conftest.nl" 5043 $as_echo 'FGREP' >> "conftest.nl" 5044 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5046 as_fn_arith $ac_count + 1 && ac_count=$as_val 5047 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5048 # Best one so far, save it but keep looking for a better one 5049 ac_cv_path_FGREP="$ac_path_FGREP" 5050 ac_path_FGREP_max=$ac_count 5051 fi 5052 # 10*(2^10) chars as input seems more than enough 5053 test $ac_count -gt 10 && break 5054 done 5055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5056esac 5057 5058 $ac_path_FGREP_found && break 3 5059 done 5060 done 5061 done 5062IFS=$as_save_IFS 5063 if test -z "$ac_cv_path_FGREP"; then 5064 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5065 fi 5066else 5067 ac_cv_path_FGREP=$FGREP 5068fi 5069 5070 fi 5071fi 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5073$as_echo "$ac_cv_path_FGREP" >&6; } 5074 FGREP="$ac_cv_path_FGREP" 5075 5076 5077test -z "$GREP" && GREP=grep 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5096ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5097ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5098 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5100$as_echo_n "checking how to print strings... " >&6; } 5101# Test print first, because it will be a builtin if present. 5102if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5103 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5104 ECHO='print -r --' 5105elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5106 ECHO='printf %s\n' 5107else 5108 # Use this function as a fallback that always works. 5109 func_fallback_echo () 5110 { 5111 eval 'cat <<_LTECHO_EOF 5112$1 5113_LTECHO_EOF' 5114 } 5115 ECHO='func_fallback_echo' 5116fi 5117 5118# func_echo_all arg... 5119# Invoke $ECHO with all args, space-separated. 5120func_echo_all () 5121{ 5122 $ECHO "" 5123} 5124 5125case "$ECHO" in 5126 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5127$as_echo "printf" >&6; } ;; 5128 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5129$as_echo "print -r" >&6; } ;; 5130 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5131$as_echo "cat" >&6; } ;; 5132esac 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149# Check whether --with-gnu-ld was given. 5150if test "${with_gnu_ld+set}" = set; then : 5151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5152else 5153 with_gnu_ld=no 5154fi 5155 5156ac_prog=ld 5157if test "$GCC" = yes; then 5158 # Check if gcc -print-prog-name=ld gives a path. 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5160$as_echo_n "checking for ld used by $CC... " >&6; } 5161 case $host in 5162 *-*-mingw*) 5163 # gcc leaves a trailing carriage return which upsets mingw 5164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5165 *) 5166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5167 esac 5168 case $ac_prog in 5169 # Accept absolute paths. 5170 [\\/]* | ?:[\\/]*) 5171 re_direlt='/[^/][^/]*/\.\./' 5172 # Canonicalize the pathname of ld 5173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5176 done 5177 test -z "$LD" && LD="$ac_prog" 5178 ;; 5179 "") 5180 # If it fails, then pretend we aren't using GCC. 5181 ac_prog=ld 5182 ;; 5183 *) 5184 # If it is relative, then search for the first ld in PATH. 5185 with_gnu_ld=unknown 5186 ;; 5187 esac 5188elif test "$with_gnu_ld" = yes; then 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5190$as_echo_n "checking for GNU ld... " >&6; } 5191else 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5193$as_echo_n "checking for non-GNU ld... " >&6; } 5194fi 5195if test "${lt_cv_path_LD+set}" = set; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 if test -z "$LD"; then 5199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5200 for ac_dir in $PATH; do 5201 IFS="$lt_save_ifs" 5202 test -z "$ac_dir" && ac_dir=. 5203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5204 lt_cv_path_LD="$ac_dir/$ac_prog" 5205 # Check to see if the program is GNU ld. I'd rather use --version, 5206 # but apparently some variants of GNU ld only accept -v. 5207 # Break only if it was the GNU/non-GNU ld that we prefer. 5208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5209 *GNU* | *'with BFD'*) 5210 test "$with_gnu_ld" != no && break 5211 ;; 5212 *) 5213 test "$with_gnu_ld" != yes && break 5214 ;; 5215 esac 5216 fi 5217 done 5218 IFS="$lt_save_ifs" 5219else 5220 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5221fi 5222fi 5223 5224LD="$lt_cv_path_LD" 5225if test -n "$LD"; then 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5227$as_echo "$LD" >&6; } 5228else 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5230$as_echo "no" >&6; } 5231fi 5232test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5234$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5235if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5236 $as_echo_n "(cached) " >&6 5237else 5238 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5239case `$LD -v 2>&1 </dev/null` in 5240*GNU* | *'with BFD'*) 5241 lt_cv_prog_gnu_ld=yes 5242 ;; 5243*) 5244 lt_cv_prog_gnu_ld=no 5245 ;; 5246esac 5247fi 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5249$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5250with_gnu_ld=$lt_cv_prog_gnu_ld 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261if test "x$CC" != xcc; then 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5263$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5264else 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5266$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5267fi 5268set dummy $CC; ac_cc=`$as_echo "$2" | 5269 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5270if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275 5276int 5277main () 5278{ 5279 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284# Make sure it works both with $CC and with simple cc. 5285# We do the test twice because some compilers refuse to overwrite an 5286# existing .o file with -o, though they will create one. 5287ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5288rm -f conftest2.* 5289if { { case "(($ac_try" in 5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5291 *) ac_try_echo=$ac_try;; 5292esac 5293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5294$as_echo "$ac_try_echo"; } >&5 5295 (eval "$ac_try") 2>&5 5296 ac_status=$? 5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5298 test $ac_status = 0; } && 5299 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5301 *) ac_try_echo=$ac_try;; 5302esac 5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5304$as_echo "$ac_try_echo"; } >&5 5305 (eval "$ac_try") 2>&5 5306 ac_status=$? 5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5308 test $ac_status = 0; }; 5309then 5310 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5311 if test "x$CC" != xcc; then 5312 # Test first that cc exists at all. 5313 if { ac_try='cc -c conftest.$ac_ext >&5' 5314 { { case "(($ac_try" in 5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5316 *) ac_try_echo=$ac_try;; 5317esac 5318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5319$as_echo "$ac_try_echo"; } >&5 5320 (eval "$ac_try") 2>&5 5321 ac_status=$? 5322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5323 test $ac_status = 0; }; }; then 5324 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5325 rm -f conftest2.* 5326 if { { case "(($ac_try" in 5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5328 *) ac_try_echo=$ac_try;; 5329esac 5330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5331$as_echo "$ac_try_echo"; } >&5 5332 (eval "$ac_try") 2>&5 5333 ac_status=$? 5334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5335 test $ac_status = 0; } && 5336 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5341$as_echo "$ac_try_echo"; } >&5 5342 (eval "$ac_try") 2>&5 5343 ac_status=$? 5344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5345 test $ac_status = 0; }; 5346 then 5347 # cc works too. 5348 : 5349 else 5350 # cc exists but doesn't like -o. 5351 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5352 fi 5353 fi 5354 fi 5355else 5356 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5357fi 5358rm -f core conftest* 5359 5360fi 5361if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5363$as_echo "yes" >&6; } 5364else 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5366$as_echo "no" >&6; } 5367 5368$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5369 5370fi 5371 5372# FIXME: we rely on the cache variable name because 5373# there is no other way. 5374set dummy $CC 5375am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5376eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5377if test "$am_t" != yes; then 5378 # Losing compiler, so override with the script. 5379 # FIXME: It is wrong to rewrite CC. 5380 # But if we don't then we get into trouble of one sort or another. 5381 # A longer-term fix would be to have automake use am__CC in this case, 5382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5383 CC="$am_aux_dir/compile $CC" 5384fi 5385 5386 5387 5388 5389# Check whether --with-gnu-ld was given. 5390if test "${with_gnu_ld+set}" = set; then : 5391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5392else 5393 with_gnu_ld=no 5394fi 5395 5396ac_prog=ld 5397if test "$GCC" = yes; then 5398 # Check if gcc -print-prog-name=ld gives a path. 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5400$as_echo_n "checking for ld used by $CC... " >&6; } 5401 case $host in 5402 *-*-mingw*) 5403 # gcc leaves a trailing carriage return which upsets mingw 5404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5405 *) 5406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5407 esac 5408 case $ac_prog in 5409 # Accept absolute paths. 5410 [\\/]* | ?:[\\/]*) 5411 re_direlt='/[^/][^/]*/\.\./' 5412 # Canonicalize the pathname of ld 5413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5416 done 5417 test -z "$LD" && LD="$ac_prog" 5418 ;; 5419 "") 5420 # If it fails, then pretend we aren't using GCC. 5421 ac_prog=ld 5422 ;; 5423 *) 5424 # If it is relative, then search for the first ld in PATH. 5425 with_gnu_ld=unknown 5426 ;; 5427 esac 5428elif test "$with_gnu_ld" = yes; then 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5430$as_echo_n "checking for GNU ld... " >&6; } 5431else 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5433$as_echo_n "checking for non-GNU ld... " >&6; } 5434fi 5435if test "${lt_cv_path_LD+set}" = set; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 if test -z "$LD"; then 5439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5440 for ac_dir in $PATH; do 5441 IFS="$lt_save_ifs" 5442 test -z "$ac_dir" && ac_dir=. 5443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5444 lt_cv_path_LD="$ac_dir/$ac_prog" 5445 # Check to see if the program is GNU ld. I'd rather use --version, 5446 # but apparently some variants of GNU ld only accept -v. 5447 # Break only if it was the GNU/non-GNU ld that we prefer. 5448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5449 *GNU* | *'with BFD'*) 5450 test "$with_gnu_ld" != no && break 5451 ;; 5452 *) 5453 test "$with_gnu_ld" != yes && break 5454 ;; 5455 esac 5456 fi 5457 done 5458 IFS="$lt_save_ifs" 5459else 5460 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5461fi 5462fi 5463 5464LD="$lt_cv_path_LD" 5465if test -n "$LD"; then 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5467$as_echo "$LD" >&6; } 5468else 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470$as_echo "no" >&6; } 5471fi 5472test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5474$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5475if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5479case `$LD -v 2>&1 </dev/null` in 5480*GNU* | *'with BFD'*) 5481 lt_cv_prog_gnu_ld=yes 5482 ;; 5483*) 5484 lt_cv_prog_gnu_ld=no 5485 ;; 5486esac 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5489$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5490with_gnu_ld=$lt_cv_prog_gnu_ld 5491 5492 5493 5494 5495 5496 5497 5498 5499 ansi= 5500 if test -z "$ansi"; then 5501 msg="for C compiler warning flags" 5502 else 5503 msg="for C compiler warning and ANSI conformance flags" 5504 fi 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 5506$as_echo_n "checking $msg... " >&6; } 5507if test "${vl_cv_prog_cc_warnings+set}" = set; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 5511 if test -n "$CC"; then 5512 cat > conftest.c <<EOF 5513int main(int argc, char **argv) { return 0; } 5514EOF 5515 5516 if test "$GCC" = "yes"; then 5517 if test -z "$ansi"; then 5518 vl_cv_prog_cc_warnings="-Wall -W" 5519 else 5520 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 5521 fi 5522 5523 5524 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 5525 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 5526 test -f conftest.o; then 5527 if test -z "$ansi"; then 5528 vl_cv_prog_cc_warnings="-v" 5529 else 5530 vl_cv_prog_cc_warnings="-v -Xc" 5531 fi 5532 5533 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 5534 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 5535 test -f conftest.o; then 5536 if test -z "$ansi"; then 5537 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 5538 else 5539 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 5540 fi 5541 5542 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 5543 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 5544 test -f conftest.o; then 5545 if test -z "$ansi"; then 5546 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 5547 else 5548 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 5549 fi 5550 5551 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 5552 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 5553 test -f conftest.o; then 5554 if test -z "$ansi"; then 5555 vl_cv_prog_cc_warnings="-fullwarn" 5556 else 5557 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 5558 fi 5559 5560 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 5561 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 5562 test -f conftest.o; then 5563 if test -z "$ansi"; then 5564 vl_cv_prog_cc_warnings="+w1" 5565 else 5566 vl_cv_prog_cc_warnings="+w1 -Aa" 5567 fi 5568 5569 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 5570 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 5571 test -f conftest.o; then 5572 if test -z "$ansi"; then 5573 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 5574 else 5575 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 5576 fi 5577 5578 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 5579 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 5580 test -f conftest.o; then 5581 if test -z "$ansi"; then 5582 vl_cv_prog_cc_warnings="-h msglevel 2" 5583 else 5584 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 5585 fi 5586 5587 fi 5588 rm -f conftest.* 5589 fi 5590 if test -n "$vl_cv_prog_cc_warnings"; then 5591 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 5592 else 5593 vl_cv_prog_cc_warnings="unknown" 5594 fi 5595 5596fi 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 5598$as_echo "$vl_cv_prog_cc_warnings" >&6; } 5599 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5602$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5603set x ${MAKE-make} 5604ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5605if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 cat >conftest.make <<\_ACEOF 5609SHELL = /bin/sh 5610all: 5611 @echo '@@@%%%=$(MAKE)=@@@%%%' 5612_ACEOF 5613# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5614case `${MAKE-make} -f conftest.make 2>/dev/null` in 5615 *@@@%%%=?*=@@@%%%*) 5616 eval ac_cv_prog_make_${ac_make}_set=yes;; 5617 *) 5618 eval ac_cv_prog_make_${ac_make}_set=no;; 5619esac 5620rm -f conftest.make 5621fi 5622if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5624$as_echo "yes" >&6; } 5625 SET_MAKE= 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629 SET_MAKE="MAKE=${MAKE-make}" 5630fi 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5633$as_echo_n "checking whether ln -s works... " >&6; } 5634LN_S=$as_ln_s 5635if test "$LN_S" = "ln -s"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5637$as_echo "yes" >&6; } 5638else 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5640$as_echo "no, using $LN_S" >&6; } 5641fi 5642 5643 5644 5645 5646 5647case `pwd` in 5648 *\ * | *\ *) 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5650$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5651esac 5652 5653 5654 5655macro_version='2.2.10' 5656macro_revision='1.3175' 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670ltmain="$ac_aux_dir/ltmain.sh" 5671 5672# Backslashify metacharacters that are still active within 5673# double-quoted strings. 5674sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5675 5676# Same as above, but do not quote variable references. 5677double_quote_subst='s/\(["`\\]\)/\\\1/g' 5678 5679# Sed substitution to delay expansion of an escaped shell variable in a 5680# double_quote_subst'ed string. 5681delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5682 5683# Sed substitution to delay expansion of an escaped single quote. 5684delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5685 5686# Sed substitution to avoid accidental globbing in evaled expressions 5687no_glob_subst='s/\*/\\\*/g' 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5690$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5691if test "${lt_cv_path_NM+set}" = set; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 if test -n "$NM"; then 5695 # Let the user override the test. 5696 lt_cv_path_NM="$NM" 5697else 5698 lt_nm_to_check="${ac_tool_prefix}nm" 5699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5700 lt_nm_to_check="$lt_nm_to_check nm" 5701 fi 5702 for lt_tmp_nm in $lt_nm_to_check; do 5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5705 IFS="$lt_save_ifs" 5706 test -z "$ac_dir" && ac_dir=. 5707 tmp_nm="$ac_dir/$lt_tmp_nm" 5708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5709 # Check to see if the nm accepts a BSD-compat flag. 5710 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5711 # nm: unknown option "B" ignored 5712 # Tru64's nm complains that /dev/null is an invalid object file 5713 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5714 */dev/null* | *'Invalid file or object type'*) 5715 lt_cv_path_NM="$tmp_nm -B" 5716 break 5717 ;; 5718 *) 5719 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5720 */dev/null*) 5721 lt_cv_path_NM="$tmp_nm -p" 5722 break 5723 ;; 5724 *) 5725 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5726 continue # so that we can try to find one that supports BSD flags 5727 ;; 5728 esac 5729 ;; 5730 esac 5731 fi 5732 done 5733 IFS="$lt_save_ifs" 5734 done 5735 : ${lt_cv_path_NM=no} 5736fi 5737fi 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5739$as_echo "$lt_cv_path_NM" >&6; } 5740if test "$lt_cv_path_NM" != "no"; then 5741 NM="$lt_cv_path_NM" 5742else 5743 # Didn't find any BSD compatible name lister, look for dumpbin. 5744 if test -n "$DUMPBIN"; then : 5745 # Let the user override the test. 5746 else 5747 if test -n "$ac_tool_prefix"; then 5748 for ac_prog in dumpbin "link -dump" 5749 do 5750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5751set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -n "$DUMPBIN"; then 5758 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5767 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777DUMPBIN=$ac_cv_prog_DUMPBIN 5778if test -n "$DUMPBIN"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5780$as_echo "$DUMPBIN" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783$as_echo "no" >&6; } 5784fi 5785 5786 5787 test -n "$DUMPBIN" && break 5788 done 5789fi 5790if test -z "$DUMPBIN"; then 5791 ac_ct_DUMPBIN=$DUMPBIN 5792 for ac_prog in dumpbin "link -dump" 5793do 5794 # Extract the first word of "$ac_prog", so it can be a program name with args. 5795set dummy $ac_prog; ac_word=$2 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5797$as_echo_n "checking for $ac_word... " >&6; } 5798if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 if test -n "$ac_ct_DUMPBIN"; then 5802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5803else 5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805for as_dir in $PATH 5806do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815done 5816 done 5817IFS=$as_save_IFS 5818 5819fi 5820fi 5821ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5822if test -n "$ac_ct_DUMPBIN"; then 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5824$as_echo "$ac_ct_DUMPBIN" >&6; } 5825else 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828fi 5829 5830 5831 test -n "$ac_ct_DUMPBIN" && break 5832done 5833 5834 if test "x$ac_ct_DUMPBIN" = x; then 5835 DUMPBIN=":" 5836 else 5837 case $cross_compiling:$ac_tool_warned in 5838yes:) 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5841ac_tool_warned=yes ;; 5842esac 5843 DUMPBIN=$ac_ct_DUMPBIN 5844 fi 5845fi 5846 5847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5848 *COFF*) 5849 DUMPBIN="$DUMPBIN -symbols" 5850 ;; 5851 *) 5852 DUMPBIN=: 5853 ;; 5854 esac 5855 fi 5856 5857 if test "$DUMPBIN" != ":"; then 5858 NM="$DUMPBIN" 5859 fi 5860fi 5861test -z "$NM" && NM=nm 5862 5863 5864 5865 5866 5867 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5869$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5870if test "${lt_cv_nm_interface+set}" = set; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 lt_cv_nm_interface="BSD nm" 5874 echo "int some_variable = 0;" > conftest.$ac_ext 5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5876 (eval "$ac_compile" 2>conftest.err) 5877 cat conftest.err >&5 5878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5880 cat conftest.err >&5 5881 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5882 cat conftest.out >&5 5883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5884 lt_cv_nm_interface="MS dumpbin" 5885 fi 5886 rm -f conftest* 5887fi 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5889$as_echo "$lt_cv_nm_interface" >&6; } 5890 5891# find the maximum length of command line arguments 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5893$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5894if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 i=0 5898 teststring="ABCD" 5899 5900 case $build_os in 5901 msdosdjgpp*) 5902 # On DJGPP, this test can blow up pretty badly due to problems in libc 5903 # (any single argument exceeding 2000 bytes causes a buffer overrun 5904 # during glob expansion). Even if it were fixed, the result of this 5905 # check would be larger than it should be. 5906 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5907 ;; 5908 5909 gnu*) 5910 # Under GNU Hurd, this test is not required because there is 5911 # no limit to the length of command line arguments. 5912 # Libtool will interpret -1 as no limit whatsoever 5913 lt_cv_sys_max_cmd_len=-1; 5914 ;; 5915 5916 cygwin* | mingw* | cegcc*) 5917 # On Win9x/ME, this test blows up -- it succeeds, but takes 5918 # about 5 minutes as the teststring grows exponentially. 5919 # Worse, since 9x/ME are not pre-emptively multitasking, 5920 # you end up with a "frozen" computer, even though with patience 5921 # the test eventually succeeds (with a max line length of 256k). 5922 # Instead, let's just punt: use the minimum linelength reported by 5923 # all of the supported platforms: 8192 (on NT/2K/XP). 5924 lt_cv_sys_max_cmd_len=8192; 5925 ;; 5926 5927 mint*) 5928 # On MiNT this can take a long time and run out of memory. 5929 lt_cv_sys_max_cmd_len=8192; 5930 ;; 5931 5932 amigaos*) 5933 # On AmigaOS with pdksh, this test takes hours, literally. 5934 # So we just punt and use a minimum line length of 8192. 5935 lt_cv_sys_max_cmd_len=8192; 5936 ;; 5937 5938 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5939 # This has been around since 386BSD, at least. Likely further. 5940 if test -x /sbin/sysctl; then 5941 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5942 elif test -x /usr/sbin/sysctl; then 5943 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5944 else 5945 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5946 fi 5947 # And add a safety zone 5948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5950 ;; 5951 5952 interix*) 5953 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5954 lt_cv_sys_max_cmd_len=196608 5955 ;; 5956 5957 osf*) 5958 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5959 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5960 # nice to cause kernel panics so lets avoid the loop below. 5961 # First set a reasonable default. 5962 lt_cv_sys_max_cmd_len=16384 5963 # 5964 if test -x /sbin/sysconfig; then 5965 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5966 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5967 esac 5968 fi 5969 ;; 5970 sco3.2v5*) 5971 lt_cv_sys_max_cmd_len=102400 5972 ;; 5973 sysv5* | sco5v6* | sysv4.2uw2*) 5974 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5975 if test -n "$kargmax"; then 5976 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5977 else 5978 lt_cv_sys_max_cmd_len=32768 5979 fi 5980 ;; 5981 *) 5982 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5983 if test -n "$lt_cv_sys_max_cmd_len"; then 5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5986 else 5987 # Make teststring a little bigger before we do anything with it. 5988 # a 1K string should be a reasonable start. 5989 for i in 1 2 3 4 5 6 7 8 ; do 5990 teststring=$teststring$teststring 5991 done 5992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5993 # If test is not a shell built-in, we'll probably end up computing a 5994 # maximum length that is only half of the actual maximum length, but 5995 # we can't tell. 5996 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5997 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5998 test $i != 17 # 1/2 MB should be enough 5999 do 6000 i=`expr $i + 1` 6001 teststring=$teststring$teststring 6002 done 6003 # Only check the string length outside the loop. 6004 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6005 teststring= 6006 # Add a significant safety factor because C++ compilers can tack on 6007 # massive amounts of additional arguments before passing them to the 6008 # linker. It appears as though 1/2 is a usable value. 6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6010 fi 6011 ;; 6012 esac 6013 6014fi 6015 6016if test -n $lt_cv_sys_max_cmd_len ; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6018$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6021$as_echo "none" >&6; } 6022fi 6023max_cmd_len=$lt_cv_sys_max_cmd_len 6024 6025 6026 6027 6028 6029 6030: ${CP="cp -f"} 6031: ${MV="mv -f"} 6032: ${RM="rm -f"} 6033 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6035$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6036# Try some XSI features 6037xsi_shell=no 6038( _lt_dummy="a/b/c" 6039 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6040 = c,a/b,, \ 6041 && eval 'test $(( 1 + 1 )) -eq 2 \ 6042 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6043 && xsi_shell=yes 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6045$as_echo "$xsi_shell" >&6; } 6046 6047 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6049$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6050lt_shell_append=no 6051( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6052 >/dev/null 2>&1 \ 6053 && lt_shell_append=yes 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6055$as_echo "$lt_shell_append" >&6; } 6056 6057 6058if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6059 lt_unset=unset 6060else 6061 lt_unset=false 6062fi 6063 6064 6065 6066 6067 6068# test EBCDIC or ASCII 6069case `echo X|tr X '\101'` in 6070 A) # ASCII based system 6071 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6072 lt_SP2NL='tr \040 \012' 6073 lt_NL2SP='tr \015\012 \040\040' 6074 ;; 6075 *) # EBCDIC based system 6076 lt_SP2NL='tr \100 \n' 6077 lt_NL2SP='tr \r\n \100\100' 6078 ;; 6079esac 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6090$as_echo_n "checking for $LD option to reload object files... " >&6; } 6091if test "${lt_cv_ld_reload_flag+set}" = set; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 lt_cv_ld_reload_flag='-r' 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6097$as_echo "$lt_cv_ld_reload_flag" >&6; } 6098reload_flag=$lt_cv_ld_reload_flag 6099case $reload_flag in 6100"" | " "*) ;; 6101*) reload_flag=" $reload_flag" ;; 6102esac 6103reload_cmds='$LD$reload_flag -o $output$reload_objs' 6104case $host_os in 6105 darwin*) 6106 if test "$GCC" = yes; then 6107 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6108 else 6109 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6110 fi 6111 ;; 6112esac 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122if test -n "$ac_tool_prefix"; then 6123 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6124set dummy ${ac_tool_prefix}objdump; ac_word=$2 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6126$as_echo_n "checking for $ac_word... " >&6; } 6127if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 if test -n "$OBJDUMP"; then 6131 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6140 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145 done 6146IFS=$as_save_IFS 6147 6148fi 6149fi 6150OBJDUMP=$ac_cv_prog_OBJDUMP 6151if test -n "$OBJDUMP"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6153$as_echo "$OBJDUMP" >&6; } 6154else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156$as_echo "no" >&6; } 6157fi 6158 6159 6160fi 6161if test -z "$ac_cv_prog_OBJDUMP"; then 6162 ac_ct_OBJDUMP=$OBJDUMP 6163 # Extract the first word of "objdump", so it can be a program name with args. 6164set dummy objdump; ac_word=$2 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6166$as_echo_n "checking for $ac_word... " >&6; } 6167if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 if test -n "$ac_ct_OBJDUMP"; then 6171 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6172else 6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6174for as_dir in $PATH 6175do 6176 IFS=$as_save_IFS 6177 test -z "$as_dir" && as_dir=. 6178 for ac_exec_ext in '' $ac_executable_extensions; do 6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6180 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6182 break 2 6183 fi 6184done 6185 done 6186IFS=$as_save_IFS 6187 6188fi 6189fi 6190ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6191if test -n "$ac_ct_OBJDUMP"; then 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6193$as_echo "$ac_ct_OBJDUMP" >&6; } 6194else 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196$as_echo "no" >&6; } 6197fi 6198 6199 if test "x$ac_ct_OBJDUMP" = x; then 6200 OBJDUMP="false" 6201 else 6202 case $cross_compiling:$ac_tool_warned in 6203yes:) 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6206ac_tool_warned=yes ;; 6207esac 6208 OBJDUMP=$ac_ct_OBJDUMP 6209 fi 6210else 6211 OBJDUMP="$ac_cv_prog_OBJDUMP" 6212fi 6213 6214test -z "$OBJDUMP" && OBJDUMP=objdump 6215 6216 6217 6218 6219 6220 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6222$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6223if test "${lt_cv_deplibs_check_method+set}" = set; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 lt_cv_file_magic_cmd='$MAGIC_CMD' 6227lt_cv_file_magic_test_file= 6228lt_cv_deplibs_check_method='unknown' 6229# Need to set the preceding variable on all platforms that support 6230# interlibrary dependencies. 6231# 'none' -- dependencies not supported. 6232# `unknown' -- same as none, but documents that we really don't know. 6233# 'pass_all' -- all dependencies passed with no checks. 6234# 'test_compile' -- check by making test program. 6235# 'file_magic [[regex]]' -- check by looking for files in library path 6236# which responds to the $file_magic_cmd with a given extended regex. 6237# If you have `file' or equivalent on your system and you're not sure 6238# whether `pass_all' will *always* work, you probably want this one. 6239 6240case $host_os in 6241aix[4-9]*) 6242 lt_cv_deplibs_check_method=pass_all 6243 ;; 6244 6245beos*) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 6249bsdi[45]*) 6250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6251 lt_cv_file_magic_cmd='/usr/bin/file -L' 6252 lt_cv_file_magic_test_file=/shlib/libc.so 6253 ;; 6254 6255cygwin*) 6256 # func_win32_libid is a shell function defined in ltmain.sh 6257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6258 lt_cv_file_magic_cmd='func_win32_libid' 6259 ;; 6260 6261mingw* | pw32*) 6262 # Base MSYS/MinGW do not provide the 'file' command needed by 6263 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6264 # unless we find 'file', for example because we are cross-compiling. 6265 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6266 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6268 lt_cv_file_magic_cmd='func_win32_libid' 6269 else 6270 # Keep this pattern in sync with the one in func_win32_libid. 6271 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6272 lt_cv_file_magic_cmd='$OBJDUMP -f' 6273 fi 6274 ;; 6275 6276cegcc*) 6277 # use the weaker test based on 'objdump'. See mingw*. 6278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6279 lt_cv_file_magic_cmd='$OBJDUMP -f' 6280 ;; 6281 6282darwin* | rhapsody*) 6283 lt_cv_deplibs_check_method=pass_all 6284 ;; 6285 6286freebsd* | dragonfly*) 6287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6288 case $host_cpu in 6289 i*86 ) 6290 # Not sure whether the presence of OpenBSD here was a mistake. 6291 # Let's accept both of them until this is cleared up. 6292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6293 lt_cv_file_magic_cmd=/usr/bin/file 6294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6295 ;; 6296 esac 6297 else 6298 lt_cv_deplibs_check_method=pass_all 6299 fi 6300 ;; 6301 6302gnu*) 6303 lt_cv_deplibs_check_method=pass_all 6304 ;; 6305 6306haiku*) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 6310hpux10.20* | hpux11*) 6311 lt_cv_file_magic_cmd=/usr/bin/file 6312 case $host_cpu in 6313 ia64*) 6314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6316 ;; 6317 hppa*64*) 6318 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]' 6319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6320 ;; 6321 *) 6322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6323 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6324 ;; 6325 esac 6326 ;; 6327 6328interix[3-9]*) 6329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6331 ;; 6332 6333irix5* | irix6* | nonstopux*) 6334 case $LD in 6335 *-32|*"-32 ") libmagic=32-bit;; 6336 *-n32|*"-n32 ") libmagic=N32;; 6337 *-64|*"-64 ") libmagic=64-bit;; 6338 *) libmagic=never-match;; 6339 esac 6340 lt_cv_deplibs_check_method=pass_all 6341 ;; 6342 6343# This must be Linux ELF. 6344linux* | k*bsd*-gnu | kopensolaris*-gnu) 6345 lt_cv_deplibs_check_method=pass_all 6346 ;; 6347 6348netbsd*) 6349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6351 else 6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6353 fi 6354 ;; 6355 6356newos6*) 6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6358 lt_cv_file_magic_cmd=/usr/bin/file 6359 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6360 ;; 6361 6362*nto* | *qnx*) 6363 lt_cv_deplibs_check_method=pass_all 6364 ;; 6365 6366openbsd*) 6367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6369 else 6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6371 fi 6372 ;; 6373 6374osf3* | osf4* | osf5*) 6375 lt_cv_deplibs_check_method=pass_all 6376 ;; 6377 6378rdos*) 6379 lt_cv_deplibs_check_method=pass_all 6380 ;; 6381 6382solaris*) 6383 lt_cv_deplibs_check_method=pass_all 6384 ;; 6385 6386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6387 lt_cv_deplibs_check_method=pass_all 6388 ;; 6389 6390sysv4 | sysv4.3*) 6391 case $host_vendor in 6392 motorola) 6393 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]' 6394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6395 ;; 6396 ncr) 6397 lt_cv_deplibs_check_method=pass_all 6398 ;; 6399 sequent) 6400 lt_cv_file_magic_cmd='/bin/file' 6401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6402 ;; 6403 sni) 6404 lt_cv_file_magic_cmd='/bin/file' 6405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6406 lt_cv_file_magic_test_file=/lib/libc.so 6407 ;; 6408 siemens) 6409 lt_cv_deplibs_check_method=pass_all 6410 ;; 6411 pc) 6412 lt_cv_deplibs_check_method=pass_all 6413 ;; 6414 esac 6415 ;; 6416 6417tpf*) 6418 lt_cv_deplibs_check_method=pass_all 6419 ;; 6420esac 6421 6422fi 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6424$as_echo "$lt_cv_deplibs_check_method" >&6; } 6425file_magic_cmd=$lt_cv_file_magic_cmd 6426deplibs_check_method=$lt_cv_deplibs_check_method 6427test -z "$deplibs_check_method" && deplibs_check_method=unknown 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440if test -n "$ac_tool_prefix"; then 6441 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6442set dummy ${ac_tool_prefix}ar; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if test "${ac_cv_prog_AR+set}" = set; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$AR"; then 6449 ac_cv_prog_AR="$AR" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6458 ac_cv_prog_AR="${ac_tool_prefix}ar" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468AR=$ac_cv_prog_AR 6469if test -n "$AR"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6471$as_echo "$AR" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 6478fi 6479if test -z "$ac_cv_prog_AR"; then 6480 ac_ct_AR=$AR 6481 # Extract the first word of "ar", so it can be a program name with args. 6482set dummy ar; ac_word=$2 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$ac_ct_AR"; then 6489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6498 ac_cv_prog_ac_ct_AR="ar" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503 done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508ac_ct_AR=$ac_cv_prog_ac_ct_AR 6509if test -n "$ac_ct_AR"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6511$as_echo "$ac_ct_AR" >&6; } 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 if test "x$ac_ct_AR" = x; then 6518 AR="false" 6519 else 6520 case $cross_compiling:$ac_tool_warned in 6521yes:) 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6524ac_tool_warned=yes ;; 6525esac 6526 AR=$ac_ct_AR 6527 fi 6528else 6529 AR="$ac_cv_prog_AR" 6530fi 6531 6532test -z "$AR" && AR=ar 6533test -z "$AR_FLAGS" && AR_FLAGS=cru 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545if test -n "$ac_tool_prefix"; then 6546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6547set dummy ${ac_tool_prefix}strip; ac_word=$2 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6549$as_echo_n "checking for $ac_word... " >&6; } 6550if test "${ac_cv_prog_STRIP+set}" = set; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 if test -n "$STRIP"; then 6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6563 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568 done 6569IFS=$as_save_IFS 6570 6571fi 6572fi 6573STRIP=$ac_cv_prog_STRIP 6574if test -n "$STRIP"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6576$as_echo "$STRIP" >&6; } 6577else 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579$as_echo "no" >&6; } 6580fi 6581 6582 6583fi 6584if test -z "$ac_cv_prog_STRIP"; then 6585 ac_ct_STRIP=$STRIP 6586 # Extract the first word of "strip", so it can be a program name with args. 6587set dummy strip; ac_word=$2 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589$as_echo_n "checking for $ac_word... " >&6; } 6590if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 if test -n "$ac_ct_STRIP"; then 6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6595else 6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597for as_dir in $PATH 6598do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6603 ac_cv_prog_ac_ct_STRIP="strip" 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607done 6608 done 6609IFS=$as_save_IFS 6610 6611fi 6612fi 6613ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6614if test -n "$ac_ct_STRIP"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6616$as_echo "$ac_ct_STRIP" >&6; } 6617else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619$as_echo "no" >&6; } 6620fi 6621 6622 if test "x$ac_ct_STRIP" = x; then 6623 STRIP=":" 6624 else 6625 case $cross_compiling:$ac_tool_warned in 6626yes:) 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6629ac_tool_warned=yes ;; 6630esac 6631 STRIP=$ac_ct_STRIP 6632 fi 6633else 6634 STRIP="$ac_cv_prog_STRIP" 6635fi 6636 6637test -z "$STRIP" && STRIP=: 6638 6639 6640 6641 6642 6643 6644if test -n "$ac_tool_prefix"; then 6645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6646set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648$as_echo_n "checking for $ac_word... " >&6; } 6649if test "${ac_cv_prog_RANLIB+set}" = set; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 if test -n "$RANLIB"; then 6653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 test -z "$as_dir" && as_dir=. 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672RANLIB=$ac_cv_prog_RANLIB 6673if test -n "$RANLIB"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6675$as_echo "$RANLIB" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678$as_echo "no" >&6; } 6679fi 6680 6681 6682fi 6683if test -z "$ac_cv_prog_RANLIB"; then 6684 ac_ct_RANLIB=$RANLIB 6685 # Extract the first word of "ranlib", so it can be a program name with args. 6686set dummy ranlib; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$ac_ct_RANLIB"; then 6693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6702 ac_cv_prog_ac_ct_RANLIB="ranlib" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6713if test -n "$ac_ct_RANLIB"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6715$as_echo "$ac_ct_RANLIB" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 if test "x$ac_ct_RANLIB" = x; then 6722 RANLIB=":" 6723 else 6724 case $cross_compiling:$ac_tool_warned in 6725yes:) 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6728ac_tool_warned=yes ;; 6729esac 6730 RANLIB=$ac_ct_RANLIB 6731 fi 6732else 6733 RANLIB="$ac_cv_prog_RANLIB" 6734fi 6735 6736test -z "$RANLIB" && RANLIB=: 6737 6738 6739 6740 6741 6742 6743# Determine commands to create old-style static archives. 6744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6745old_postinstall_cmds='chmod 644 $oldlib' 6746old_postuninstall_cmds= 6747 6748if test -n "$RANLIB"; then 6749 case $host_os in 6750 openbsd*) 6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6752 ;; 6753 *) 6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6755 ;; 6756 esac 6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6758fi 6759 6760case $host_os in 6761 darwin*) 6762 lock_old_archive_extraction=yes ;; 6763 *) 6764 lock_old_archive_extraction=no ;; 6765esac 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805# If no C compiler was specified, use CC. 6806LTCC=${LTCC-"$CC"} 6807 6808# If no C compiler flags were specified, use CFLAGS. 6809LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6810 6811# Allow CC to be a program name with arguments. 6812compiler=$CC 6813 6814 6815# Check for command to grab the raw symbol name followed by C symbol from nm. 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6817$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6818if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 6822# These are sane defaults that work on at least a few old systems. 6823# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6824 6825# Character class describing NM global symbol codes. 6826symcode='[BCDEGRST]' 6827 6828# Regexp to match symbols that can be accessed directly from C. 6829sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6830 6831# Define system-specific variables. 6832case $host_os in 6833aix*) 6834 symcode='[BCDT]' 6835 ;; 6836cygwin* | mingw* | pw32* | cegcc*) 6837 symcode='[ABCDGISTW]' 6838 ;; 6839hpux*) 6840 if test "$host_cpu" = ia64; then 6841 symcode='[ABCDEGRST]' 6842 fi 6843 ;; 6844irix* | nonstopux*) 6845 symcode='[BCDEGRST]' 6846 ;; 6847osf*) 6848 symcode='[BCDEGQRST]' 6849 ;; 6850solaris*) 6851 symcode='[BDRT]' 6852 ;; 6853sco3.2v5*) 6854 symcode='[DT]' 6855 ;; 6856sysv4.2uw2*) 6857 symcode='[DT]' 6858 ;; 6859sysv5* | sco5v6* | unixware* | OpenUNIX*) 6860 symcode='[ABDT]' 6861 ;; 6862sysv4) 6863 symcode='[DFNSTU]' 6864 ;; 6865esac 6866 6867# If we're using GNU nm, then use its standard symbol codes. 6868case `$NM -V 2>&1` in 6869*GNU* | *'with BFD'*) 6870 symcode='[ABCDGIRSTW]' ;; 6871esac 6872 6873# Transform an extracted symbol line into a proper C declaration. 6874# Some systems (esp. on ia64) link data and code symbols differently, 6875# so use this general approach. 6876lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6877 6878# Transform an extracted symbol line into symbol name and symbol address 6879lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6880lt_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'" 6881 6882# Handle CRLF in mingw tool chain 6883opt_cr= 6884case $build_os in 6885mingw*) 6886 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6887 ;; 6888esac 6889 6890# Try without a prefix underscore, then with it. 6891for ac_symprfx in "" "_"; do 6892 6893 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6894 symxfrm="\\1 $ac_symprfx\\2 \\2" 6895 6896 # Write the raw and C identifiers. 6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6898 # Fake it for dumpbin and say T for any non-static function 6899 # and D for any global variable. 6900 # Also find C++ and __fastcall symbols from MSVC++, 6901 # which start with @ or ?. 6902 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6903" {last_section=section; section=\$ 3};"\ 6904" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6905" \$ 0!~/External *\|/{next};"\ 6906" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6907" {if(hide[section]) next};"\ 6908" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6909" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6910" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6911" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6912" ' prfx=^$ac_symprfx" 6913 else 6914 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6915 fi 6916 6917 # Check to see that the pipe works correctly. 6918 pipe_works=no 6919 6920 rm -f conftest* 6921 cat > conftest.$ac_ext <<_LT_EOF 6922#ifdef __cplusplus 6923extern "C" { 6924#endif 6925char nm_test_var; 6926void nm_test_func(void); 6927void nm_test_func(void){} 6928#ifdef __cplusplus 6929} 6930#endif 6931int main(){nm_test_var='a';nm_test_func();return(0);} 6932_LT_EOF 6933 6934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6935 (eval $ac_compile) 2>&5 6936 ac_status=$? 6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6938 test $ac_status = 0; }; then 6939 # Now try to grab the symbols. 6940 nlist=conftest.nm 6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6942 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6943 ac_status=$? 6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6945 test $ac_status = 0; } && test -s "$nlist"; then 6946 # Try sorting and uniquifying the output. 6947 if sort "$nlist" | uniq > "$nlist"T; then 6948 mv -f "$nlist"T "$nlist" 6949 else 6950 rm -f "$nlist"T 6951 fi 6952 6953 # Make sure that we snagged all the symbols we need. 6954 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6955 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6956 cat <<_LT_EOF > conftest.$ac_ext 6957#ifdef __cplusplus 6958extern "C" { 6959#endif 6960 6961_LT_EOF 6962 # Now generate the symbol file. 6963 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6964 6965 cat <<_LT_EOF >> conftest.$ac_ext 6966 6967/* The mapping between symbol names and symbols. */ 6968const struct { 6969 const char *name; 6970 void *address; 6971} 6972lt__PROGRAM__LTX_preloaded_symbols[] = 6973{ 6974 { "@PROGRAM@", (void *) 0 }, 6975_LT_EOF 6976 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6977 cat <<\_LT_EOF >> conftest.$ac_ext 6978 {0, (void *) 0} 6979}; 6980 6981/* This works around a problem in FreeBSD linker */ 6982#ifdef FREEBSD_WORKAROUND 6983static const void *lt_preloaded_setup() { 6984 return lt__PROGRAM__LTX_preloaded_symbols; 6985} 6986#endif 6987 6988#ifdef __cplusplus 6989} 6990#endif 6991_LT_EOF 6992 # Now try linking the two files. 6993 mv conftest.$ac_objext conftstm.$ac_objext 6994 lt_save_LIBS="$LIBS" 6995 lt_save_CFLAGS="$CFLAGS" 6996 LIBS="conftstm.$ac_objext" 6997 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6999 (eval $ac_link) 2>&5 7000 ac_status=$? 7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7002 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7003 pipe_works=yes 7004 fi 7005 LIBS="$lt_save_LIBS" 7006 CFLAGS="$lt_save_CFLAGS" 7007 else 7008 echo "cannot find nm_test_func in $nlist" >&5 7009 fi 7010 else 7011 echo "cannot find nm_test_var in $nlist" >&5 7012 fi 7013 else 7014 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7015 fi 7016 else 7017 echo "$progname: failed program was:" >&5 7018 cat conftest.$ac_ext >&5 7019 fi 7020 rm -rf conftest* conftst* 7021 7022 # Do not use the global_symbol_pipe unless it works. 7023 if test "$pipe_works" = yes; then 7024 break 7025 else 7026 lt_cv_sys_global_symbol_pipe= 7027 fi 7028done 7029 7030fi 7031 7032if test -z "$lt_cv_sys_global_symbol_pipe"; then 7033 lt_cv_sys_global_symbol_to_cdecl= 7034fi 7035if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7037$as_echo "failed" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7040$as_echo "ok" >&6; } 7041fi 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065# Check whether --enable-libtool-lock was given. 7066if test "${enable_libtool_lock+set}" = set; then : 7067 enableval=$enable_libtool_lock; 7068fi 7069 7070test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7071 7072# Some flags need to be propagated to the compiler or linker for good 7073# libtool support. 7074case $host in 7075ia64-*-hpux*) 7076 # Find out which ABI we are using. 7077 echo 'int i;' > conftest.$ac_ext 7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7079 (eval $ac_compile) 2>&5 7080 ac_status=$? 7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7082 test $ac_status = 0; }; then 7083 case `/usr/bin/file conftest.$ac_objext` in 7084 *ELF-32*) 7085 HPUX_IA64_MODE="32" 7086 ;; 7087 *ELF-64*) 7088 HPUX_IA64_MODE="64" 7089 ;; 7090 esac 7091 fi 7092 rm -rf conftest* 7093 ;; 7094*-*-irix6*) 7095 # Find out which ABI we are using. 7096 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7098 (eval $ac_compile) 2>&5 7099 ac_status=$? 7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7101 test $ac_status = 0; }; then 7102 if test "$lt_cv_prog_gnu_ld" = yes; then 7103 case `/usr/bin/file conftest.$ac_objext` in 7104 *32-bit*) 7105 LD="${LD-ld} -melf32bsmip" 7106 ;; 7107 *N32*) 7108 LD="${LD-ld} -melf32bmipn32" 7109 ;; 7110 *64-bit*) 7111 LD="${LD-ld} -melf64bmip" 7112 ;; 7113 esac 7114 else 7115 case `/usr/bin/file conftest.$ac_objext` in 7116 *32-bit*) 7117 LD="${LD-ld} -32" 7118 ;; 7119 *N32*) 7120 LD="${LD-ld} -n32" 7121 ;; 7122 *64-bit*) 7123 LD="${LD-ld} -64" 7124 ;; 7125 esac 7126 fi 7127 fi 7128 rm -rf conftest* 7129 ;; 7130 7131x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7132s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7133 # Find out which ABI we are using. 7134 echo 'int i;' > conftest.$ac_ext 7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7136 (eval $ac_compile) 2>&5 7137 ac_status=$? 7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7139 test $ac_status = 0; }; then 7140 case `/usr/bin/file conftest.o` in 7141 *32-bit*) 7142 case $host in 7143 x86_64-*kfreebsd*-gnu) 7144 LD="${LD-ld} -m elf_i386_fbsd" 7145 ;; 7146 x86_64-*linux*) 7147 LD="${LD-ld} -m elf_i386" 7148 ;; 7149 ppc64-*linux*|powerpc64-*linux*) 7150 LD="${LD-ld} -m elf32ppclinux" 7151 ;; 7152 s390x-*linux*) 7153 LD="${LD-ld} -m elf_s390" 7154 ;; 7155 sparc64-*linux*) 7156 LD="${LD-ld} -m elf32_sparc" 7157 ;; 7158 esac 7159 ;; 7160 *64-bit*) 7161 case $host in 7162 x86_64-*kfreebsd*-gnu) 7163 LD="${LD-ld} -m elf_x86_64_fbsd" 7164 ;; 7165 x86_64-*linux*) 7166 LD="${LD-ld} -m elf_x86_64" 7167 ;; 7168 ppc*-*linux*|powerpc*-*linux*) 7169 LD="${LD-ld} -m elf64ppc" 7170 ;; 7171 s390*-*linux*|s390*-*tpf*) 7172 LD="${LD-ld} -m elf64_s390" 7173 ;; 7174 sparc*-*linux*) 7175 LD="${LD-ld} -m elf64_sparc" 7176 ;; 7177 esac 7178 ;; 7179 esac 7180 fi 7181 rm -rf conftest* 7182 ;; 7183 7184*-*-sco3.2v5*) 7185 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7186 SAVE_CFLAGS="$CFLAGS" 7187 CFLAGS="$CFLAGS -belf" 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7189$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7190if test "${lt_cv_cc_needs_belf+set}" = set; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 ac_ext=c 7194ac_cpp='$CPP $CPPFLAGS' 7195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7197ac_compiler_gnu=$ac_cv_c_compiler_gnu 7198 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200/* end confdefs.h. */ 7201 7202int 7203main () 7204{ 7205 7206 ; 7207 return 0; 7208} 7209_ACEOF 7210if ac_fn_c_try_link "$LINENO"; then : 7211 lt_cv_cc_needs_belf=yes 7212else 7213 lt_cv_cc_needs_belf=no 7214fi 7215rm -f core conftest.err conftest.$ac_objext \ 7216 conftest$ac_exeext conftest.$ac_ext 7217 ac_ext=c 7218ac_cpp='$CPP $CPPFLAGS' 7219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7221ac_compiler_gnu=$ac_cv_c_compiler_gnu 7222 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7225$as_echo "$lt_cv_cc_needs_belf" >&6; } 7226 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7227 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7228 CFLAGS="$SAVE_CFLAGS" 7229 fi 7230 ;; 7231sparc*-*solaris*) 7232 # Find out which ABI we are using. 7233 echo 'int i;' > conftest.$ac_ext 7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7235 (eval $ac_compile) 2>&5 7236 ac_status=$? 7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7238 test $ac_status = 0; }; then 7239 case `/usr/bin/file conftest.o` in 7240 *64-bit*) 7241 case $lt_cv_prog_gnu_ld in 7242 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7243 *) 7244 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7245 LD="${LD-ld} -64" 7246 fi 7247 ;; 7248 esac 7249 ;; 7250 esac 7251 fi 7252 rm -rf conftest* 7253 ;; 7254esac 7255 7256need_locks="$enable_libtool_lock" 7257 7258 7259 case $host_os in 7260 rhapsody* | darwin*) 7261 if test -n "$ac_tool_prefix"; then 7262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7263set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265$as_echo_n "checking for $ac_word... " >&6; } 7266if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 if test -n "$DSYMUTIL"; then 7270 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_exec_ext in '' $ac_executable_extensions; do 7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7279 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7281 break 2 7282 fi 7283done 7284 done 7285IFS=$as_save_IFS 7286 7287fi 7288fi 7289DSYMUTIL=$ac_cv_prog_DSYMUTIL 7290if test -n "$DSYMUTIL"; then 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7292$as_echo "$DSYMUTIL" >&6; } 7293else 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7295$as_echo "no" >&6; } 7296fi 7297 7298 7299fi 7300if test -z "$ac_cv_prog_DSYMUTIL"; then 7301 ac_ct_DSYMUTIL=$DSYMUTIL 7302 # Extract the first word of "dsymutil", so it can be a program name with args. 7303set dummy dsymutil; ac_word=$2 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7305$as_echo_n "checking for $ac_word... " >&6; } 7306if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 if test -n "$ac_ct_DSYMUTIL"; then 7310 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7311else 7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 test -z "$as_dir" && as_dir=. 7317 for ac_exec_ext in '' $ac_executable_extensions; do 7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7319 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7321 break 2 7322 fi 7323done 7324 done 7325IFS=$as_save_IFS 7326 7327fi 7328fi 7329ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7330if test -n "$ac_ct_DSYMUTIL"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7332$as_echo "$ac_ct_DSYMUTIL" >&6; } 7333else 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7335$as_echo "no" >&6; } 7336fi 7337 7338 if test "x$ac_ct_DSYMUTIL" = x; then 7339 DSYMUTIL=":" 7340 else 7341 case $cross_compiling:$ac_tool_warned in 7342yes:) 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7345ac_tool_warned=yes ;; 7346esac 7347 DSYMUTIL=$ac_ct_DSYMUTIL 7348 fi 7349else 7350 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7351fi 7352 7353 if test -n "$ac_tool_prefix"; then 7354 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7355set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7357$as_echo_n "checking for $ac_word... " >&6; } 7358if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 if test -n "$NMEDIT"; then 7362 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7363else 7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7365for as_dir in $PATH 7366do 7367 IFS=$as_save_IFS 7368 test -z "$as_dir" && as_dir=. 7369 for ac_exec_ext in '' $ac_executable_extensions; do 7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7371 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7373 break 2 7374 fi 7375done 7376 done 7377IFS=$as_save_IFS 7378 7379fi 7380fi 7381NMEDIT=$ac_cv_prog_NMEDIT 7382if test -n "$NMEDIT"; then 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7384$as_echo "$NMEDIT" >&6; } 7385else 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7387$as_echo "no" >&6; } 7388fi 7389 7390 7391fi 7392if test -z "$ac_cv_prog_NMEDIT"; then 7393 ac_ct_NMEDIT=$NMEDIT 7394 # Extract the first word of "nmedit", so it can be a program name with args. 7395set dummy nmedit; ac_word=$2 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7397$as_echo_n "checking for $ac_word... " >&6; } 7398if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 if test -n "$ac_ct_NMEDIT"; then 7402 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7403else 7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405for as_dir in $PATH 7406do 7407 IFS=$as_save_IFS 7408 test -z "$as_dir" && as_dir=. 7409 for ac_exec_ext in '' $ac_executable_extensions; do 7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7411 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7413 break 2 7414 fi 7415done 7416 done 7417IFS=$as_save_IFS 7418 7419fi 7420fi 7421ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7422if test -n "$ac_ct_NMEDIT"; then 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7424$as_echo "$ac_ct_NMEDIT" >&6; } 7425else 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7427$as_echo "no" >&6; } 7428fi 7429 7430 if test "x$ac_ct_NMEDIT" = x; then 7431 NMEDIT=":" 7432 else 7433 case $cross_compiling:$ac_tool_warned in 7434yes:) 7435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7437ac_tool_warned=yes ;; 7438esac 7439 NMEDIT=$ac_ct_NMEDIT 7440 fi 7441else 7442 NMEDIT="$ac_cv_prog_NMEDIT" 7443fi 7444 7445 if test -n "$ac_tool_prefix"; then 7446 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7447set dummy ${ac_tool_prefix}lipo; ac_word=$2 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7449$as_echo_n "checking for $ac_word... " >&6; } 7450if test "${ac_cv_prog_LIPO+set}" = set; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 if test -n "$LIPO"; then 7454 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7455else 7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7457for as_dir in $PATH 7458do 7459 IFS=$as_save_IFS 7460 test -z "$as_dir" && as_dir=. 7461 for ac_exec_ext in '' $ac_executable_extensions; do 7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7463 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7465 break 2 7466 fi 7467done 7468 done 7469IFS=$as_save_IFS 7470 7471fi 7472fi 7473LIPO=$ac_cv_prog_LIPO 7474if test -n "$LIPO"; then 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7476$as_echo "$LIPO" >&6; } 7477else 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7479$as_echo "no" >&6; } 7480fi 7481 7482 7483fi 7484if test -z "$ac_cv_prog_LIPO"; then 7485 ac_ct_LIPO=$LIPO 7486 # Extract the first word of "lipo", so it can be a program name with args. 7487set dummy lipo; ac_word=$2 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7489$as_echo_n "checking for $ac_word... " >&6; } 7490if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 if test -n "$ac_ct_LIPO"; then 7494 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7495else 7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497for as_dir in $PATH 7498do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_exec_ext in '' $ac_executable_extensions; do 7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7503 ac_cv_prog_ac_ct_LIPO="lipo" 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7505 break 2 7506 fi 7507done 7508 done 7509IFS=$as_save_IFS 7510 7511fi 7512fi 7513ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7514if test -n "$ac_ct_LIPO"; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7516$as_echo "$ac_ct_LIPO" >&6; } 7517else 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 if test "x$ac_ct_LIPO" = x; then 7523 LIPO=":" 7524 else 7525 case $cross_compiling:$ac_tool_warned in 7526yes:) 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7529ac_tool_warned=yes ;; 7530esac 7531 LIPO=$ac_ct_LIPO 7532 fi 7533else 7534 LIPO="$ac_cv_prog_LIPO" 7535fi 7536 7537 if test -n "$ac_tool_prefix"; then 7538 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7539set dummy ${ac_tool_prefix}otool; ac_word=$2 7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7541$as_echo_n "checking for $ac_word... " >&6; } 7542if test "${ac_cv_prog_OTOOL+set}" = set; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 if test -n "$OTOOL"; then 7546 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7547else 7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7549for as_dir in $PATH 7550do 7551 IFS=$as_save_IFS 7552 test -z "$as_dir" && as_dir=. 7553 for ac_exec_ext in '' $ac_executable_extensions; do 7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7555 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7557 break 2 7558 fi 7559done 7560 done 7561IFS=$as_save_IFS 7562 7563fi 7564fi 7565OTOOL=$ac_cv_prog_OTOOL 7566if test -n "$OTOOL"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7568$as_echo "$OTOOL" >&6; } 7569else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571$as_echo "no" >&6; } 7572fi 7573 7574 7575fi 7576if test -z "$ac_cv_prog_OTOOL"; then 7577 ac_ct_OTOOL=$OTOOL 7578 # Extract the first word of "otool", so it can be a program name with args. 7579set dummy otool; ac_word=$2 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7581$as_echo_n "checking for $ac_word... " >&6; } 7582if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 if test -n "$ac_ct_OTOOL"; then 7586 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7587else 7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7589for as_dir in $PATH 7590do 7591 IFS=$as_save_IFS 7592 test -z "$as_dir" && as_dir=. 7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7595 ac_cv_prog_ac_ct_OTOOL="otool" 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7597 break 2 7598 fi 7599done 7600 done 7601IFS=$as_save_IFS 7602 7603fi 7604fi 7605ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7606if test -n "$ac_ct_OTOOL"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7608$as_echo "$ac_ct_OTOOL" >&6; } 7609else 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7611$as_echo "no" >&6; } 7612fi 7613 7614 if test "x$ac_ct_OTOOL" = x; then 7615 OTOOL=":" 7616 else 7617 case $cross_compiling:$ac_tool_warned in 7618yes:) 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7621ac_tool_warned=yes ;; 7622esac 7623 OTOOL=$ac_ct_OTOOL 7624 fi 7625else 7626 OTOOL="$ac_cv_prog_OTOOL" 7627fi 7628 7629 if test -n "$ac_tool_prefix"; then 7630 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7631set dummy ${ac_tool_prefix}otool64; ac_word=$2 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7633$as_echo_n "checking for $ac_word... " >&6; } 7634if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 if test -n "$OTOOL64"; then 7638 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7639else 7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7641for as_dir in $PATH 7642do 7643 IFS=$as_save_IFS 7644 test -z "$as_dir" && as_dir=. 7645 for ac_exec_ext in '' $ac_executable_extensions; do 7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7647 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7649 break 2 7650 fi 7651done 7652 done 7653IFS=$as_save_IFS 7654 7655fi 7656fi 7657OTOOL64=$ac_cv_prog_OTOOL64 7658if test -n "$OTOOL64"; then 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7660$as_echo "$OTOOL64" >&6; } 7661else 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7663$as_echo "no" >&6; } 7664fi 7665 7666 7667fi 7668if test -z "$ac_cv_prog_OTOOL64"; then 7669 ac_ct_OTOOL64=$OTOOL64 7670 # Extract the first word of "otool64", so it can be a program name with args. 7671set dummy otool64; ac_word=$2 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673$as_echo_n "checking for $ac_word... " >&6; } 7674if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 if test -n "$ac_ct_OTOOL64"; then 7678 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 test -z "$as_dir" && as_dir=. 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7687 ac_cv_prog_ac_ct_OTOOL64="otool64" 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692 done 7693IFS=$as_save_IFS 7694 7695fi 7696fi 7697ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7698if test -n "$ac_ct_OTOOL64"; then 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7700$as_echo "$ac_ct_OTOOL64" >&6; } 7701else 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7703$as_echo "no" >&6; } 7704fi 7705 7706 if test "x$ac_ct_OTOOL64" = x; then 7707 OTOOL64=":" 7708 else 7709 case $cross_compiling:$ac_tool_warned in 7710yes:) 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7713ac_tool_warned=yes ;; 7714esac 7715 OTOOL64=$ac_ct_OTOOL64 7716 fi 7717else 7718 OTOOL64="$ac_cv_prog_OTOOL64" 7719fi 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7748$as_echo_n "checking for -single_module linker flag... " >&6; } 7749if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 lt_cv_apple_cc_single_mod=no 7753 if test -z "${LT_MULTI_MODULE}"; then 7754 # By default we will add the -single_module flag. You can override 7755 # by either setting the environment variable LT_MULTI_MODULE 7756 # non-empty at configure time, or by adding -multi_module to the 7757 # link flags. 7758 rm -rf libconftest.dylib* 7759 echo "int foo(void){return 1;}" > conftest.c 7760 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7761-dynamiclib -Wl,-single_module conftest.c" >&5 7762 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7763 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7764 _lt_result=$? 7765 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7766 lt_cv_apple_cc_single_mod=yes 7767 else 7768 cat conftest.err >&5 7769 fi 7770 rm -rf libconftest.dylib* 7771 rm -f conftest.* 7772 fi 7773fi 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7775$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7777$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7778if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 lt_cv_ld_exported_symbols_list=no 7782 save_LDFLAGS=$LDFLAGS 7783 echo "_main" > conftest.sym 7784 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787 7788int 7789main () 7790{ 7791 7792 ; 7793 return 0; 7794} 7795_ACEOF 7796if ac_fn_c_try_link "$LINENO"; then : 7797 lt_cv_ld_exported_symbols_list=yes 7798else 7799 lt_cv_ld_exported_symbols_list=no 7800fi 7801rm -f core conftest.err conftest.$ac_objext \ 7802 conftest$ac_exeext conftest.$ac_ext 7803 LDFLAGS="$save_LDFLAGS" 7804 7805fi 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7807$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7809$as_echo_n "checking for -force_load linker flag... " >&6; } 7810if test "${lt_cv_ld_force_load+set}" = set; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 lt_cv_ld_force_load=no 7814 cat > conftest.c << _LT_EOF 7815int forced_loaded() { return 2;} 7816_LT_EOF 7817 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7818 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7819 echo "$AR cru libconftest.a conftest.o" >&5 7820 $AR cru libconftest.a conftest.o 2>&5 7821 echo "$RANLIB libconftest.a" >&5 7822 $RANLIB libconftest.a 2>&5 7823 cat > conftest.c << _LT_EOF 7824int main() { return 0;} 7825_LT_EOF 7826 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7827 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7828 _lt_result=$? 7829 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7830 lt_cv_ld_force_load=yes 7831 else 7832 cat conftest.err >&5 7833 fi 7834 rm -f conftest.err libconftest.a conftest conftest.c 7835 rm -rf conftest.dSYM 7836 7837fi 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7839$as_echo "$lt_cv_ld_force_load" >&6; } 7840 case $host_os in 7841 rhapsody* | darwin1.[012]) 7842 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7843 darwin1.*) 7844 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7845 darwin*) # darwin 5.x on 7846 # if running on 10.5 or later, the deployment target defaults 7847 # to the OS version, if on x86, and 10.4, the deployment 7848 # target defaults to 10.4. Don't you love it? 7849 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7850 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7851 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7852 10.[012]*) 7853 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7854 10.*) 7855 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7856 esac 7857 ;; 7858 esac 7859 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7860 _lt_dar_single_mod='$single_module' 7861 fi 7862 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7863 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7864 else 7865 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7866 fi 7867 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7868 _lt_dsymutil='~$DSYMUTIL $lib || :' 7869 else 7870 _lt_dsymutil= 7871 fi 7872 ;; 7873 esac 7874 7875 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7877$as_echo_n "checking for ANSI C header files... " >&6; } 7878if test "${ac_cv_header_stdc+set}" = set; then : 7879 $as_echo_n "(cached) " >&6 7880else 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882/* end confdefs.h. */ 7883#include <stdlib.h> 7884#include <stdarg.h> 7885#include <string.h> 7886#include <float.h> 7887 7888int 7889main () 7890{ 7891 7892 ; 7893 return 0; 7894} 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO"; then : 7897 ac_cv_header_stdc=yes 7898else 7899 ac_cv_header_stdc=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902 7903if test $ac_cv_header_stdc = yes; then 7904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906/* end confdefs.h. */ 7907#include <string.h> 7908 7909_ACEOF 7910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7911 $EGREP "memchr" >/dev/null 2>&1; then : 7912 7913else 7914 ac_cv_header_stdc=no 7915fi 7916rm -f conftest* 7917 7918fi 7919 7920if test $ac_cv_header_stdc = yes; then 7921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924#include <stdlib.h> 7925 7926_ACEOF 7927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7928 $EGREP "free" >/dev/null 2>&1; then : 7929 7930else 7931 ac_cv_header_stdc=no 7932fi 7933rm -f conftest* 7934 7935fi 7936 7937if test $ac_cv_header_stdc = yes; then 7938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7939 if test "$cross_compiling" = yes; then : 7940 : 7941else 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7943/* end confdefs.h. */ 7944#include <ctype.h> 7945#include <stdlib.h> 7946#if ((' ' & 0x0FF) == 0x020) 7947# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7948# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7949#else 7950# define ISLOWER(c) \ 7951 (('a' <= (c) && (c) <= 'i') \ 7952 || ('j' <= (c) && (c) <= 'r') \ 7953 || ('s' <= (c) && (c) <= 'z')) 7954# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7955#endif 7956 7957#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7958int 7959main () 7960{ 7961 int i; 7962 for (i = 0; i < 256; i++) 7963 if (XOR (islower (i), ISLOWER (i)) 7964 || toupper (i) != TOUPPER (i)) 7965 return 2; 7966 return 0; 7967} 7968_ACEOF 7969if ac_fn_c_try_run "$LINENO"; then : 7970 7971else 7972 ac_cv_header_stdc=no 7973fi 7974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7975 conftest.$ac_objext conftest.beam conftest.$ac_ext 7976fi 7977 7978fi 7979fi 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7981$as_echo "$ac_cv_header_stdc" >&6; } 7982if test $ac_cv_header_stdc = yes; then 7983 7984$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7985 7986fi 7987 7988# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7989for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7990 inttypes.h stdint.h unistd.h 7991do : 7992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7993ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7994" 7995eval as_val=\$$as_ac_Header 7996 if test "x$as_val" = x""yes; then : 7997 cat >>confdefs.h <<_ACEOF 7998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7999_ACEOF 8000 8001fi 8002 8003done 8004 8005 8006for ac_header in dlfcn.h 8007do : 8008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8009" 8010if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8011 cat >>confdefs.h <<_ACEOF 8012#define HAVE_DLFCN_H 1 8013_ACEOF 8014 8015fi 8016 8017done 8018 8019 8020 8021 8022 8023# Set options 8024enable_win32_dll=yes 8025 8026case $host in 8027*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8028 if test -n "$ac_tool_prefix"; then 8029 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8030set dummy ${ac_tool_prefix}as; ac_word=$2 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032$as_echo_n "checking for $ac_word... " >&6; } 8033if test "${ac_cv_prog_AS+set}" = set; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$AS"; then 8037 ac_cv_prog_AS="$AS" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8046 ac_cv_prog_AS="${ac_tool_prefix}as" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056AS=$ac_cv_prog_AS 8057if test -n "$AS"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8059$as_echo "$AS" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 8066fi 8067if test -z "$ac_cv_prog_AS"; then 8068 ac_ct_AS=$AS 8069 # Extract the first word of "as", so it can be a program name with args. 8070set dummy as; ac_word=$2 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072$as_echo_n "checking for $ac_word... " >&6; } 8073if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 if test -n "$ac_ct_AS"; then 8077 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8078else 8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8080for as_dir in $PATH 8081do 8082 IFS=$as_save_IFS 8083 test -z "$as_dir" && as_dir=. 8084 for ac_exec_ext in '' $ac_executable_extensions; do 8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8086 ac_cv_prog_ac_ct_AS="as" 8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8088 break 2 8089 fi 8090done 8091 done 8092IFS=$as_save_IFS 8093 8094fi 8095fi 8096ac_ct_AS=$ac_cv_prog_ac_ct_AS 8097if test -n "$ac_ct_AS"; then 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8099$as_echo "$ac_ct_AS" >&6; } 8100else 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8102$as_echo "no" >&6; } 8103fi 8104 8105 if test "x$ac_ct_AS" = x; then 8106 AS="false" 8107 else 8108 case $cross_compiling:$ac_tool_warned in 8109yes:) 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8112ac_tool_warned=yes ;; 8113esac 8114 AS=$ac_ct_AS 8115 fi 8116else 8117 AS="$ac_cv_prog_AS" 8118fi 8119 8120 if test -n "$ac_tool_prefix"; then 8121 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8122set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124$as_echo_n "checking for $ac_word... " >&6; } 8125if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 if test -n "$DLLTOOL"; then 8129 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8130else 8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132for as_dir in $PATH 8133do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8138 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142done 8143 done 8144IFS=$as_save_IFS 8145 8146fi 8147fi 8148DLLTOOL=$ac_cv_prog_DLLTOOL 8149if test -n "$DLLTOOL"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8151$as_echo "$DLLTOOL" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 8158fi 8159if test -z "$ac_cv_prog_DLLTOOL"; then 8160 ac_ct_DLLTOOL=$DLLTOOL 8161 # Extract the first word of "dlltool", so it can be a program name with args. 8162set dummy dlltool; ac_word=$2 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8164$as_echo_n "checking for $ac_word... " >&6; } 8165if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 if test -n "$ac_ct_DLLTOOL"; then 8169 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8170else 8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8172for as_dir in $PATH 8173do 8174 IFS=$as_save_IFS 8175 test -z "$as_dir" && as_dir=. 8176 for ac_exec_ext in '' $ac_executable_extensions; do 8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8178 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8180 break 2 8181 fi 8182done 8183 done 8184IFS=$as_save_IFS 8185 8186fi 8187fi 8188ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8189if test -n "$ac_ct_DLLTOOL"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8191$as_echo "$ac_ct_DLLTOOL" >&6; } 8192else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194$as_echo "no" >&6; } 8195fi 8196 8197 if test "x$ac_ct_DLLTOOL" = x; then 8198 DLLTOOL="false" 8199 else 8200 case $cross_compiling:$ac_tool_warned in 8201yes:) 8202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8204ac_tool_warned=yes ;; 8205esac 8206 DLLTOOL=$ac_ct_DLLTOOL 8207 fi 8208else 8209 DLLTOOL="$ac_cv_prog_DLLTOOL" 8210fi 8211 8212 if test -n "$ac_tool_prefix"; then 8213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8214set dummy ${ac_tool_prefix}objdump; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$OBJDUMP"; then 8221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8230 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240OBJDUMP=$ac_cv_prog_OBJDUMP 8241if test -n "$OBJDUMP"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8243$as_echo "$OBJDUMP" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 8250fi 8251if test -z "$ac_cv_prog_OBJDUMP"; then 8252 ac_ct_OBJDUMP=$OBJDUMP 8253 # Extract the first word of "objdump", so it can be a program name with args. 8254set dummy objdump; ac_word=$2 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8256$as_echo_n "checking for $ac_word... " >&6; } 8257if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 if test -n "$ac_ct_OBJDUMP"; then 8261 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8262else 8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8264for as_dir in $PATH 8265do 8266 IFS=$as_save_IFS 8267 test -z "$as_dir" && as_dir=. 8268 for ac_exec_ext in '' $ac_executable_extensions; do 8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8270 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8272 break 2 8273 fi 8274done 8275 done 8276IFS=$as_save_IFS 8277 8278fi 8279fi 8280ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8281if test -n "$ac_ct_OBJDUMP"; then 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8283$as_echo "$ac_ct_OBJDUMP" >&6; } 8284else 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8286$as_echo "no" >&6; } 8287fi 8288 8289 if test "x$ac_ct_OBJDUMP" = x; then 8290 OBJDUMP="false" 8291 else 8292 case $cross_compiling:$ac_tool_warned in 8293yes:) 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8296ac_tool_warned=yes ;; 8297esac 8298 OBJDUMP=$ac_ct_OBJDUMP 8299 fi 8300else 8301 OBJDUMP="$ac_cv_prog_OBJDUMP" 8302fi 8303 8304 ;; 8305esac 8306 8307test -z "$AS" && AS=as 8308 8309 8310 8311 8312 8313test -z "$DLLTOOL" && DLLTOOL=dlltool 8314 8315 8316 8317 8318 8319test -z "$OBJDUMP" && OBJDUMP=objdump 8320 8321 8322 8323 8324 8325 8326 8327 enable_dlopen=no 8328 8329 8330 8331 # Check whether --enable-shared was given. 8332if test "${enable_shared+set}" = set; then : 8333 enableval=$enable_shared; p=${PACKAGE-default} 8334 case $enableval in 8335 yes) enable_shared=yes ;; 8336 no) enable_shared=no ;; 8337 *) 8338 enable_shared=no 8339 # Look at the argument we got. We use all the common list separators. 8340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8341 for pkg in $enableval; do 8342 IFS="$lt_save_ifs" 8343 if test "X$pkg" = "X$p"; then 8344 enable_shared=yes 8345 fi 8346 done 8347 IFS="$lt_save_ifs" 8348 ;; 8349 esac 8350else 8351 enable_shared=yes 8352fi 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 # Check whether --enable-static was given. 8363if test "${enable_static+set}" = set; then : 8364 enableval=$enable_static; p=${PACKAGE-default} 8365 case $enableval in 8366 yes) enable_static=yes ;; 8367 no) enable_static=no ;; 8368 *) 8369 enable_static=no 8370 # Look at the argument we got. We use all the common list separators. 8371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8372 for pkg in $enableval; do 8373 IFS="$lt_save_ifs" 8374 if test "X$pkg" = "X$p"; then 8375 enable_static=yes 8376 fi 8377 done 8378 IFS="$lt_save_ifs" 8379 ;; 8380 esac 8381else 8382 enable_static=yes 8383fi 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394# Check whether --with-pic was given. 8395if test "${with_pic+set}" = set; then : 8396 withval=$with_pic; pic_mode="$withval" 8397else 8398 pic_mode=default 8399fi 8400 8401 8402test -z "$pic_mode" && pic_mode=default 8403 8404 8405 8406 8407 8408 8409 8410 # Check whether --enable-fast-install was given. 8411if test "${enable_fast_install+set}" = set; then : 8412 enableval=$enable_fast_install; p=${PACKAGE-default} 8413 case $enableval in 8414 yes) enable_fast_install=yes ;; 8415 no) enable_fast_install=no ;; 8416 *) 8417 enable_fast_install=no 8418 # Look at the argument we got. We use all the common list separators. 8419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8420 for pkg in $enableval; do 8421 IFS="$lt_save_ifs" 8422 if test "X$pkg" = "X$p"; then 8423 enable_fast_install=yes 8424 fi 8425 done 8426 IFS="$lt_save_ifs" 8427 ;; 8428 esac 8429else 8430 enable_fast_install=yes 8431fi 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443# This can be used to rebuild libtool when needed 8444LIBTOOL_DEPS="$ltmain" 8445 8446# Always use our own libtool. 8447LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474test -z "$LN_S" && LN_S="ln -s" 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489if test -n "${ZSH_VERSION+set}" ; then 8490 setopt NO_GLOB_SUBST 8491fi 8492 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8494$as_echo_n "checking for objdir... " >&6; } 8495if test "${lt_cv_objdir+set}" = set; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 rm -f .libs 2>/dev/null 8499mkdir .libs 2>/dev/null 8500if test -d .libs; then 8501 lt_cv_objdir=.libs 8502else 8503 # MS-DOS does not allow filenames that begin with a dot. 8504 lt_cv_objdir=_libs 8505fi 8506rmdir .libs 2>/dev/null 8507fi 8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8509$as_echo "$lt_cv_objdir" >&6; } 8510objdir=$lt_cv_objdir 8511 8512 8513 8514 8515 8516cat >>confdefs.h <<_ACEOF 8517#define LT_OBJDIR "$lt_cv_objdir/" 8518_ACEOF 8519 8520 8521 8522 8523case $host_os in 8524aix3*) 8525 # AIX sometimes has problems with the GCC collect2 program. For some 8526 # reason, if we set the COLLECT_NAMES environment variable, the problems 8527 # vanish in a puff of smoke. 8528 if test "X${COLLECT_NAMES+set}" != Xset; then 8529 COLLECT_NAMES= 8530 export COLLECT_NAMES 8531 fi 8532 ;; 8533esac 8534 8535# Global variables: 8536ofile=libtool 8537can_build_shared=yes 8538 8539# All known linkers require a `.a' archive for static linking (except MSVC, 8540# which needs '.lib'). 8541libext=a 8542 8543with_gnu_ld="$lt_cv_prog_gnu_ld" 8544 8545old_CC="$CC" 8546old_CFLAGS="$CFLAGS" 8547 8548# Set sane defaults for various variables 8549test -z "$CC" && CC=cc 8550test -z "$LTCC" && LTCC=$CC 8551test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8552test -z "$LD" && LD=ld 8553test -z "$ac_objext" && ac_objext=o 8554 8555for cc_temp in $compiler""; do 8556 case $cc_temp in 8557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8559 \-*) ;; 8560 *) break;; 8561 esac 8562done 8563cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8564 8565 8566# Only perform the check for file, if the check method requires it 8567test -z "$MAGIC_CMD" && MAGIC_CMD=file 8568case $deplibs_check_method in 8569file_magic*) 8570 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8572$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8573if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 case $MAGIC_CMD in 8577[\\/*] | ?:[\\/]*) 8578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8579 ;; 8580*) 8581 lt_save_MAGIC_CMD="$MAGIC_CMD" 8582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8584 for ac_dir in $ac_dummy; do 8585 IFS="$lt_save_ifs" 8586 test -z "$ac_dir" && ac_dir=. 8587 if test -f $ac_dir/${ac_tool_prefix}file; then 8588 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8589 if test -n "$file_magic_test_file"; then 8590 case $deplibs_check_method in 8591 "file_magic "*) 8592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8595 $EGREP "$file_magic_regex" > /dev/null; then 8596 : 8597 else 8598 cat <<_LT_EOF 1>&2 8599 8600*** Warning: the command libtool uses to detect shared libraries, 8601*** $file_magic_cmd, produces output that libtool cannot recognize. 8602*** The result is that libtool may fail to recognize shared libraries 8603*** as such. This will affect the creation of libtool libraries that 8604*** depend on shared libraries, but programs linked with such libtool 8605*** libraries will work regardless of this problem. Nevertheless, you 8606*** may want to report the problem to your system manager and/or to 8607*** bug-libtool@gnu.org 8608 8609_LT_EOF 8610 fi ;; 8611 esac 8612 fi 8613 break 8614 fi 8615 done 8616 IFS="$lt_save_ifs" 8617 MAGIC_CMD="$lt_save_MAGIC_CMD" 8618 ;; 8619esac 8620fi 8621 8622MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8623if test -n "$MAGIC_CMD"; then 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8625$as_echo "$MAGIC_CMD" >&6; } 8626else 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8628$as_echo "no" >&6; } 8629fi 8630 8631 8632 8633 8634 8635if test -z "$lt_cv_path_MAGIC_CMD"; then 8636 if test -n "$ac_tool_prefix"; then 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8638$as_echo_n "checking for file... " >&6; } 8639if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 case $MAGIC_CMD in 8643[\\/*] | ?:[\\/]*) 8644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8645 ;; 8646*) 8647 lt_save_MAGIC_CMD="$MAGIC_CMD" 8648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8650 for ac_dir in $ac_dummy; do 8651 IFS="$lt_save_ifs" 8652 test -z "$ac_dir" && ac_dir=. 8653 if test -f $ac_dir/file; then 8654 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8655 if test -n "$file_magic_test_file"; then 8656 case $deplibs_check_method in 8657 "file_magic "*) 8658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8661 $EGREP "$file_magic_regex" > /dev/null; then 8662 : 8663 else 8664 cat <<_LT_EOF 1>&2 8665 8666*** Warning: the command libtool uses to detect shared libraries, 8667*** $file_magic_cmd, produces output that libtool cannot recognize. 8668*** The result is that libtool may fail to recognize shared libraries 8669*** as such. This will affect the creation of libtool libraries that 8670*** depend on shared libraries, but programs linked with such libtool 8671*** libraries will work regardless of this problem. Nevertheless, you 8672*** may want to report the problem to your system manager and/or to 8673*** bug-libtool@gnu.org 8674 8675_LT_EOF 8676 fi ;; 8677 esac 8678 fi 8679 break 8680 fi 8681 done 8682 IFS="$lt_save_ifs" 8683 MAGIC_CMD="$lt_save_MAGIC_CMD" 8684 ;; 8685esac 8686fi 8687 8688MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8689if test -n "$MAGIC_CMD"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8691$as_echo "$MAGIC_CMD" >&6; } 8692else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694$as_echo "no" >&6; } 8695fi 8696 8697 8698 else 8699 MAGIC_CMD=: 8700 fi 8701fi 8702 8703 fi 8704 ;; 8705esac 8706 8707# Use C for the default configuration in the libtool script 8708 8709lt_save_CC="$CC" 8710ac_ext=c 8711ac_cpp='$CPP $CPPFLAGS' 8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8714ac_compiler_gnu=$ac_cv_c_compiler_gnu 8715 8716 8717# Source file extension for C test sources. 8718ac_ext=c 8719 8720# Object file extension for compiled C test sources. 8721objext=o 8722objext=$objext 8723 8724# Code to be used in simple compile tests 8725lt_simple_compile_test_code="int some_variable = 0;" 8726 8727# Code to be used in simple link tests 8728lt_simple_link_test_code='int main(){return(0);}' 8729 8730 8731 8732 8733 8734 8735 8736# If no C compiler was specified, use CC. 8737LTCC=${LTCC-"$CC"} 8738 8739# If no C compiler flags were specified, use CFLAGS. 8740LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8741 8742# Allow CC to be a program name with arguments. 8743compiler=$CC 8744 8745# Save the default compiler, since it gets overwritten when the other 8746# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8747compiler_DEFAULT=$CC 8748 8749# save warnings/boilerplate of simple test code 8750ac_outfile=conftest.$ac_objext 8751echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8753_lt_compiler_boilerplate=`cat conftest.err` 8754$RM conftest* 8755 8756ac_outfile=conftest.$ac_objext 8757echo "$lt_simple_link_test_code" >conftest.$ac_ext 8758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8759_lt_linker_boilerplate=`cat conftest.err` 8760$RM -r conftest* 8761 8762 8763## CAVEAT EMPTOR: 8764## There is no encapsulation within the following macros, do not change 8765## the running order or otherwise move them around unless you know exactly 8766## what you are doing... 8767if test -n "$compiler"; then 8768 8769lt_prog_compiler_no_builtin_flag= 8770 8771if test "$GCC" = yes; then 8772 case $cc_basename in 8773 nvcc*) 8774 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8775 *) 8776 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8777 esac 8778 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8780$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8781if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8782 $as_echo_n "(cached) " >&6 8783else 8784 lt_cv_prog_compiler_rtti_exceptions=no 8785 ac_outfile=conftest.$ac_objext 8786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8787 lt_compiler_flag="-fno-rtti -fno-exceptions" 8788 # Insert the option either (1) after the last *FLAGS variable, or 8789 # (2) before a word containing "conftest.", or (3) at the end. 8790 # Note that $ac_compile itself does not contain backslashes and begins 8791 # with a dollar sign (not a hyphen), so the echo should work correctly. 8792 # The option is referenced via a variable to avoid confusing sed. 8793 lt_compile=`echo "$ac_compile" | $SED \ 8794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8796 -e 's:$: $lt_compiler_flag:'` 8797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8798 (eval "$lt_compile" 2>conftest.err) 8799 ac_status=$? 8800 cat conftest.err >&5 8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8802 if (exit $ac_status) && test -s "$ac_outfile"; then 8803 # The compiler can only warn and ignore the option if not recognized 8804 # So say no if there are warnings other than the usual output. 8805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8808 lt_cv_prog_compiler_rtti_exceptions=yes 8809 fi 8810 fi 8811 $RM conftest* 8812 8813fi 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8815$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8816 8817if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8818 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8819else 8820 : 8821fi 8822 8823fi 8824 8825 8826 8827 8828 8829 8830 lt_prog_compiler_wl= 8831lt_prog_compiler_pic= 8832lt_prog_compiler_static= 8833 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8835$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8836 8837 if test "$GCC" = yes; then 8838 lt_prog_compiler_wl='-Wl,' 8839 lt_prog_compiler_static='-static' 8840 8841 case $host_os in 8842 aix*) 8843 # All AIX code is PIC. 8844 if test "$host_cpu" = ia64; then 8845 # AIX 5 now supports IA64 processor 8846 lt_prog_compiler_static='-Bstatic' 8847 fi 8848 ;; 8849 8850 amigaos*) 8851 case $host_cpu in 8852 powerpc) 8853 # see comment about AmigaOS4 .so support 8854 lt_prog_compiler_pic='-fPIC' 8855 ;; 8856 m68k) 8857 # FIXME: we need at least 68020 code to build shared libraries, but 8858 # adding the `-m68020' flag to GCC prevents building anything better, 8859 # like `-m68040'. 8860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8861 ;; 8862 esac 8863 ;; 8864 8865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8866 # PIC is the default for these OSes. 8867 ;; 8868 8869 mingw* | cygwin* | pw32* | os2* | cegcc*) 8870 # This hack is so that the source file can tell whether it is being 8871 # built for inclusion in a dll (and should export symbols for example). 8872 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8873 # (--disable-auto-import) libraries 8874 lt_prog_compiler_pic='-DDLL_EXPORT' 8875 ;; 8876 8877 darwin* | rhapsody*) 8878 # PIC is the default on this platform 8879 # Common symbols not allowed in MH_DYLIB files 8880 lt_prog_compiler_pic='-fno-common' 8881 ;; 8882 8883 haiku*) 8884 # PIC is the default for Haiku. 8885 # The "-static" flag exists, but is broken. 8886 lt_prog_compiler_static= 8887 ;; 8888 8889 hpux*) 8890 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8891 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8892 # sets the default TLS model and affects inlining. 8893 case $host_cpu in 8894 hppa*64*) 8895 # +Z the default 8896 ;; 8897 *) 8898 lt_prog_compiler_pic='-fPIC' 8899 ;; 8900 esac 8901 ;; 8902 8903 interix[3-9]*) 8904 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8905 # Instead, we relocate shared libraries at runtime. 8906 ;; 8907 8908 msdosdjgpp*) 8909 # Just because we use GCC doesn't mean we suddenly get shared libraries 8910 # on systems that don't support them. 8911 lt_prog_compiler_can_build_shared=no 8912 enable_shared=no 8913 ;; 8914 8915 *nto* | *qnx*) 8916 # QNX uses GNU C++, but need to define -shared option too, otherwise 8917 # it will coredump. 8918 lt_prog_compiler_pic='-fPIC -shared' 8919 ;; 8920 8921 sysv4*MP*) 8922 if test -d /usr/nec; then 8923 lt_prog_compiler_pic=-Kconform_pic 8924 fi 8925 ;; 8926 8927 *) 8928 lt_prog_compiler_pic='-fPIC' 8929 ;; 8930 esac 8931 8932 case $cc_basename in 8933 nvcc*) # Cuda Compiler Driver 2.2 8934 lt_prog_compiler_wl='-Xlinker ' 8935 lt_prog_compiler_pic='-Xcompiler -fPIC' 8936 ;; 8937 esac 8938 else 8939 # PORTME Check for flag to pass linker flags through the system compiler. 8940 case $host_os in 8941 aix*) 8942 lt_prog_compiler_wl='-Wl,' 8943 if test "$host_cpu" = ia64; then 8944 # AIX 5 now supports IA64 processor 8945 lt_prog_compiler_static='-Bstatic' 8946 else 8947 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8948 fi 8949 ;; 8950 8951 mingw* | cygwin* | pw32* | os2* | cegcc*) 8952 # This hack is so that the source file can tell whether it is being 8953 # built for inclusion in a dll (and should export symbols for example). 8954 lt_prog_compiler_pic='-DDLL_EXPORT' 8955 ;; 8956 8957 hpux9* | hpux10* | hpux11*) 8958 lt_prog_compiler_wl='-Wl,' 8959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8960 # not for PA HP-UX. 8961 case $host_cpu in 8962 hppa*64*|ia64*) 8963 # +Z the default 8964 ;; 8965 *) 8966 lt_prog_compiler_pic='+Z' 8967 ;; 8968 esac 8969 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8970 lt_prog_compiler_static='${wl}-a ${wl}archive' 8971 ;; 8972 8973 irix5* | irix6* | nonstopux*) 8974 lt_prog_compiler_wl='-Wl,' 8975 # PIC (with -KPIC) is the default. 8976 lt_prog_compiler_static='-non_shared' 8977 ;; 8978 8979 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8980 case $cc_basename in 8981 # old Intel for x86_64 which still supported -KPIC. 8982 ecc*) 8983 lt_prog_compiler_wl='-Wl,' 8984 lt_prog_compiler_pic='-KPIC' 8985 lt_prog_compiler_static='-static' 8986 ;; 8987 # icc used to be incompatible with GCC. 8988 # ICC 10 doesn't accept -KPIC any more. 8989 icc* | ifort*) 8990 lt_prog_compiler_wl='-Wl,' 8991 lt_prog_compiler_pic='-fPIC' 8992 lt_prog_compiler_static='-static' 8993 ;; 8994 # Lahey Fortran 8.1. 8995 lf95*) 8996 lt_prog_compiler_wl='-Wl,' 8997 lt_prog_compiler_pic='--shared' 8998 lt_prog_compiler_static='--static' 8999 ;; 9000 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9001 # Portland Group compilers (*not* the Pentium gcc compiler, 9002 # which looks to be a dead project) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='-fpic' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 ccc*) 9008 lt_prog_compiler_wl='-Wl,' 9009 # All Alpha code is PIC. 9010 lt_prog_compiler_static='-non_shared' 9011 ;; 9012 xl* | bgxl* | bgf* | mpixl*) 9013 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9014 lt_prog_compiler_wl='-Wl,' 9015 lt_prog_compiler_pic='-qpic' 9016 lt_prog_compiler_static='-qstaticlink' 9017 ;; 9018 *) 9019 case `$CC -V 2>&1 | sed 5q` in 9020 *Sun\ F* | *Sun*Fortran*) 9021 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9022 lt_prog_compiler_pic='-KPIC' 9023 lt_prog_compiler_static='-Bstatic' 9024 lt_prog_compiler_wl='' 9025 ;; 9026 *Sun\ C*) 9027 # Sun C 5.9 9028 lt_prog_compiler_pic='-KPIC' 9029 lt_prog_compiler_static='-Bstatic' 9030 lt_prog_compiler_wl='-Wl,' 9031 ;; 9032 esac 9033 ;; 9034 esac 9035 ;; 9036 9037 newsos6) 9038 lt_prog_compiler_pic='-KPIC' 9039 lt_prog_compiler_static='-Bstatic' 9040 ;; 9041 9042 *nto* | *qnx*) 9043 # QNX uses GNU C++, but need to define -shared option too, otherwise 9044 # it will coredump. 9045 lt_prog_compiler_pic='-fPIC -shared' 9046 ;; 9047 9048 osf3* | osf4* | osf5*) 9049 lt_prog_compiler_wl='-Wl,' 9050 # All OSF/1 code is PIC. 9051 lt_prog_compiler_static='-non_shared' 9052 ;; 9053 9054 rdos*) 9055 lt_prog_compiler_static='-non_shared' 9056 ;; 9057 9058 solaris*) 9059 lt_prog_compiler_pic='-KPIC' 9060 lt_prog_compiler_static='-Bstatic' 9061 case $cc_basename in 9062 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9063 lt_prog_compiler_wl='-Qoption ld ';; 9064 *) 9065 lt_prog_compiler_wl='-Wl,';; 9066 esac 9067 ;; 9068 9069 sunos4*) 9070 lt_prog_compiler_wl='-Qoption ld ' 9071 lt_prog_compiler_pic='-PIC' 9072 lt_prog_compiler_static='-Bstatic' 9073 ;; 9074 9075 sysv4 | sysv4.2uw2* | sysv4.3*) 9076 lt_prog_compiler_wl='-Wl,' 9077 lt_prog_compiler_pic='-KPIC' 9078 lt_prog_compiler_static='-Bstatic' 9079 ;; 9080 9081 sysv4*MP*) 9082 if test -d /usr/nec ;then 9083 lt_prog_compiler_pic='-Kconform_pic' 9084 lt_prog_compiler_static='-Bstatic' 9085 fi 9086 ;; 9087 9088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9089 lt_prog_compiler_wl='-Wl,' 9090 lt_prog_compiler_pic='-KPIC' 9091 lt_prog_compiler_static='-Bstatic' 9092 ;; 9093 9094 unicos*) 9095 lt_prog_compiler_wl='-Wl,' 9096 lt_prog_compiler_can_build_shared=no 9097 ;; 9098 9099 uts4*) 9100 lt_prog_compiler_pic='-pic' 9101 lt_prog_compiler_static='-Bstatic' 9102 ;; 9103 9104 *) 9105 lt_prog_compiler_can_build_shared=no 9106 ;; 9107 esac 9108 fi 9109 9110case $host_os in 9111 # For platforms which do not support PIC, -DPIC is meaningless: 9112 *djgpp*) 9113 lt_prog_compiler_pic= 9114 ;; 9115 *) 9116 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9117 ;; 9118esac 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9120$as_echo "$lt_prog_compiler_pic" >&6; } 9121 9122 9123 9124 9125 9126 9127# 9128# Check to make sure the PIC flag actually works. 9129# 9130if test -n "$lt_prog_compiler_pic"; then 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9132$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9133if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9134 $as_echo_n "(cached) " >&6 9135else 9136 lt_cv_prog_compiler_pic_works=no 9137 ac_outfile=conftest.$ac_objext 9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9140 # Insert the option either (1) after the last *FLAGS variable, or 9141 # (2) before a word containing "conftest.", or (3) at the end. 9142 # Note that $ac_compile itself does not contain backslashes and begins 9143 # with a dollar sign (not a hyphen), so the echo should work correctly. 9144 # The option is referenced via a variable to avoid confusing sed. 9145 lt_compile=`echo "$ac_compile" | $SED \ 9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9148 -e 's:$: $lt_compiler_flag:'` 9149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9150 (eval "$lt_compile" 2>conftest.err) 9151 ac_status=$? 9152 cat conftest.err >&5 9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9154 if (exit $ac_status) && test -s "$ac_outfile"; then 9155 # The compiler can only warn and ignore the option if not recognized 9156 # So say no if there are warnings other than the usual output. 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9160 lt_cv_prog_compiler_pic_works=yes 9161 fi 9162 fi 9163 $RM conftest* 9164 9165fi 9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9167$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9168 9169if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9170 case $lt_prog_compiler_pic in 9171 "" | " "*) ;; 9172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9173 esac 9174else 9175 lt_prog_compiler_pic= 9176 lt_prog_compiler_can_build_shared=no 9177fi 9178 9179fi 9180 9181 9182 9183 9184 9185 9186# 9187# Check to make sure the static flag actually works. 9188# 9189wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9191$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9192if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9193 $as_echo_n "(cached) " >&6 9194else 9195 lt_cv_prog_compiler_static_works=no 9196 save_LDFLAGS="$LDFLAGS" 9197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9198 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9200 # The linker can only warn and ignore the option if not recognized 9201 # So say no if there are warnings 9202 if test -s conftest.err; then 9203 # Append any errors to the config.log. 9204 cat conftest.err 1>&5 9205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9207 if diff conftest.exp conftest.er2 >/dev/null; then 9208 lt_cv_prog_compiler_static_works=yes 9209 fi 9210 else 9211 lt_cv_prog_compiler_static_works=yes 9212 fi 9213 fi 9214 $RM -r conftest* 9215 LDFLAGS="$save_LDFLAGS" 9216 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9219$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9220 9221if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9222 : 9223else 9224 lt_prog_compiler_static= 9225fi 9226 9227 9228 9229 9230 9231 9232 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9234$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9235if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 lt_cv_prog_compiler_c_o=no 9239 $RM -r conftest 2>/dev/null 9240 mkdir conftest 9241 cd conftest 9242 mkdir out 9243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9244 9245 lt_compiler_flag="-o out/conftest2.$ac_objext" 9246 # Insert the option either (1) after the last *FLAGS variable, or 9247 # (2) before a word containing "conftest.", or (3) at the end. 9248 # Note that $ac_compile itself does not contain backslashes and begins 9249 # with a dollar sign (not a hyphen), so the echo should work correctly. 9250 lt_compile=`echo "$ac_compile" | $SED \ 9251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9253 -e 's:$: $lt_compiler_flag:'` 9254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9255 (eval "$lt_compile" 2>out/conftest.err) 9256 ac_status=$? 9257 cat out/conftest.err >&5 9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9259 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9260 then 9261 # The compiler can only warn and ignore the option if not recognized 9262 # So say no if there are warnings 9263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9266 lt_cv_prog_compiler_c_o=yes 9267 fi 9268 fi 9269 chmod u+w . 2>&5 9270 $RM conftest* 9271 # SGI C++ compiler will create directory out/ii_files/ for 9272 # template instantiation 9273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9274 $RM out/* && rmdir out 9275 cd .. 9276 $RM -r conftest 9277 $RM conftest* 9278 9279fi 9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9281$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9282 9283 9284 9285 9286 9287 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9289$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9290if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 lt_cv_prog_compiler_c_o=no 9294 $RM -r conftest 2>/dev/null 9295 mkdir conftest 9296 cd conftest 9297 mkdir out 9298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9299 9300 lt_compiler_flag="-o out/conftest2.$ac_objext" 9301 # Insert the option either (1) after the last *FLAGS variable, or 9302 # (2) before a word containing "conftest.", or (3) at the end. 9303 # Note that $ac_compile itself does not contain backslashes and begins 9304 # with a dollar sign (not a hyphen), so the echo should work correctly. 9305 lt_compile=`echo "$ac_compile" | $SED \ 9306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9308 -e 's:$: $lt_compiler_flag:'` 9309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9310 (eval "$lt_compile" 2>out/conftest.err) 9311 ac_status=$? 9312 cat out/conftest.err >&5 9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9314 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9315 then 9316 # The compiler can only warn and ignore the option if not recognized 9317 # So say no if there are warnings 9318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9321 lt_cv_prog_compiler_c_o=yes 9322 fi 9323 fi 9324 chmod u+w . 2>&5 9325 $RM conftest* 9326 # SGI C++ compiler will create directory out/ii_files/ for 9327 # template instantiation 9328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9329 $RM out/* && rmdir out 9330 cd .. 9331 $RM -r conftest 9332 $RM conftest* 9333 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9336$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9337 9338 9339 9340 9341hard_links="nottested" 9342if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9343 # do not overwrite the value of need_locks provided by the user 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9345$as_echo_n "checking if we can lock with hard links... " >&6; } 9346 hard_links=yes 9347 $RM conftest* 9348 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9349 touch conftest.a 9350 ln conftest.a conftest.b 2>&5 || hard_links=no 9351 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9353$as_echo "$hard_links" >&6; } 9354 if test "$hard_links" = no; then 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9356$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9357 need_locks=warn 9358 fi 9359else 9360 need_locks=no 9361fi 9362 9363 9364 9365 9366 9367 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9369$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9370 9371 runpath_var= 9372 allow_undefined_flag= 9373 always_export_symbols=no 9374 archive_cmds= 9375 archive_expsym_cmds= 9376 compiler_needs_object=no 9377 enable_shared_with_static_runtimes=no 9378 export_dynamic_flag_spec= 9379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9380 hardcode_automatic=no 9381 hardcode_direct=no 9382 hardcode_direct_absolute=no 9383 hardcode_libdir_flag_spec= 9384 hardcode_libdir_flag_spec_ld= 9385 hardcode_libdir_separator= 9386 hardcode_minus_L=no 9387 hardcode_shlibpath_var=unsupported 9388 inherit_rpath=no 9389 link_all_deplibs=unknown 9390 module_cmds= 9391 module_expsym_cmds= 9392 old_archive_from_new_cmds= 9393 old_archive_from_expsyms_cmds= 9394 thread_safe_flag_spec= 9395 whole_archive_flag_spec= 9396 # include_expsyms should be a list of space-separated symbols to be *always* 9397 # included in the symbol list 9398 include_expsyms= 9399 # exclude_expsyms can be an extended regexp of symbols to exclude 9400 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9402 # as well as any symbol that contains `d'. 9403 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9405 # platforms (ab)use it in PIC code, but their linkers get confused if 9406 # the symbol is explicitly referenced. Since portable code cannot 9407 # rely on this symbol name, it's probably fine to never include it in 9408 # preloaded symbol tables. 9409 # Exclude shared library initialization/finalization symbols. 9410 extract_expsyms_cmds= 9411 9412 case $host_os in 9413 cygwin* | mingw* | pw32* | cegcc*) 9414 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9415 # When not using gcc, we currently assume that we are using 9416 # Microsoft Visual C++. 9417 if test "$GCC" != yes; then 9418 with_gnu_ld=no 9419 fi 9420 ;; 9421 interix*) 9422 # we just hope/assume this is gcc and not c89 (= MSVC++) 9423 with_gnu_ld=yes 9424 ;; 9425 openbsd*) 9426 with_gnu_ld=no 9427 ;; 9428 esac 9429 9430 ld_shlibs=yes 9431 9432 # On some targets, GNU ld is compatible enough with the native linker 9433 # that we're better off using the native interface for both. 9434 lt_use_gnu_ld_interface=no 9435 if test "$with_gnu_ld" = yes; then 9436 case $host_os in 9437 aix*) 9438 # The AIX port of GNU ld has always aspired to compatibility 9439 # with the native linker. However, as the warning in the GNU ld 9440 # block says, versions before 2.19.5* couldn't really create working 9441 # shared libraries, regardless of the interface used. 9442 case `$LD -v 2>&1` in 9443 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9444 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9445 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9446 *) 9447 lt_use_gnu_ld_interface=yes 9448 ;; 9449 esac 9450 ;; 9451 *) 9452 lt_use_gnu_ld_interface=yes 9453 ;; 9454 esac 9455 fi 9456 9457 if test "$lt_use_gnu_ld_interface" = yes; then 9458 # If archive_cmds runs LD, not CC, wlarc should be empty 9459 wlarc='${wl}' 9460 9461 # Set some defaults for GNU ld with shared library support. These 9462 # are reset later if shared libraries are not supported. Putting them 9463 # here allows them to be overridden if necessary. 9464 runpath_var=LD_RUN_PATH 9465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9466 export_dynamic_flag_spec='${wl}--export-dynamic' 9467 # ancient GNU ld didn't support --whole-archive et. al. 9468 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9469 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9470 else 9471 whole_archive_flag_spec= 9472 fi 9473 supports_anon_versioning=no 9474 case `$LD -v 2>&1` in 9475 *GNU\ gold*) supports_anon_versioning=yes ;; 9476 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9477 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9478 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9479 *\ 2.11.*) ;; # other 2.11 versions 9480 *) supports_anon_versioning=yes ;; 9481 esac 9482 9483 # See if GNU ld supports shared libraries. 9484 case $host_os in 9485 aix[3-9]*) 9486 # On AIX/PPC, the GNU linker is very broken 9487 if test "$host_cpu" != ia64; then 9488 ld_shlibs=no 9489 cat <<_LT_EOF 1>&2 9490 9491*** Warning: the GNU linker, at least up to release 2.19, is reported 9492*** to be unable to reliably create shared libraries on AIX. 9493*** Therefore, libtool is disabling shared libraries support. If you 9494*** really care for shared libraries, you may want to install binutils 9495*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9496*** You will then need to restart the configuration process. 9497 9498_LT_EOF 9499 fi 9500 ;; 9501 9502 amigaos*) 9503 case $host_cpu in 9504 powerpc) 9505 # see comment about AmigaOS4 .so support 9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9507 archive_expsym_cmds='' 9508 ;; 9509 m68k) 9510 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)' 9511 hardcode_libdir_flag_spec='-L$libdir' 9512 hardcode_minus_L=yes 9513 ;; 9514 esac 9515 ;; 9516 9517 beos*) 9518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9519 allow_undefined_flag=unsupported 9520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9521 # support --undefined. This deserves some investigation. FIXME 9522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9523 else 9524 ld_shlibs=no 9525 fi 9526 ;; 9527 9528 cygwin* | mingw* | pw32* | cegcc*) 9529 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9530 # as there is no search path for DLLs. 9531 hardcode_libdir_flag_spec='-L$libdir' 9532 export_dynamic_flag_spec='${wl}--export-all-symbols' 9533 allow_undefined_flag=unsupported 9534 always_export_symbols=no 9535 enable_shared_with_static_runtimes=yes 9536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9537 9538 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9540 # If the export-symbols file already is a .def file (1st line 9541 # is EXPORTS), use it as is; otherwise, prepend... 9542 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9543 cp $export_symbols $output_objdir/$soname.def; 9544 else 9545 echo EXPORTS > $output_objdir/$soname.def; 9546 cat $export_symbols >> $output_objdir/$soname.def; 9547 fi~ 9548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9549 else 9550 ld_shlibs=no 9551 fi 9552 ;; 9553 9554 haiku*) 9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9556 link_all_deplibs=yes 9557 ;; 9558 9559 interix[3-9]*) 9560 hardcode_direct=no 9561 hardcode_shlibpath_var=no 9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9563 export_dynamic_flag_spec='${wl}-E' 9564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9565 # Instead, shared libraries are loaded at an image base (0x10000000 by 9566 # default) and relocated if they conflict, which is a slow very memory 9567 # consuming and fragmenting process. To avoid this, we pick a random, 9568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9569 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9571 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' 9572 ;; 9573 9574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9575 tmp_diet=no 9576 if test "$host_os" = linux-dietlibc; then 9577 case $cc_basename in 9578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9579 esac 9580 fi 9581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9582 && test "$tmp_diet" = no 9583 then 9584 tmp_addflag= 9585 tmp_sharedflag='-shared' 9586 case $cc_basename,$host_cpu in 9587 pgcc*) # Portland Group C compiler 9588 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' 9589 tmp_addflag=' $pic_flag' 9590 ;; 9591 pgf77* | pgf90* | pgf95* | pgfortran*) 9592 # Portland Group f77 and f90 compilers 9593 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' 9594 tmp_addflag=' $pic_flag -Mnomain' ;; 9595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9596 tmp_addflag=' -i_dynamic' ;; 9597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9598 tmp_addflag=' -i_dynamic -nofor_main' ;; 9599 ifc* | ifort*) # Intel Fortran compiler 9600 tmp_addflag=' -nofor_main' ;; 9601 lf95*) # Lahey Fortran 8.1 9602 whole_archive_flag_spec= 9603 tmp_sharedflag='--shared' ;; 9604 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9605 tmp_sharedflag='-qmkshrobj' 9606 tmp_addflag= ;; 9607 nvcc*) # Cuda Compiler Driver 2.2 9608 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' 9609 compiler_needs_object=yes 9610 ;; 9611 esac 9612 case `$CC -V 2>&1 | sed 5q` in 9613 *Sun\ C*) # Sun C 5.9 9614 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' 9615 compiler_needs_object=yes 9616 tmp_sharedflag='-G' ;; 9617 *Sun\ F*) # Sun Fortran 8.3 9618 tmp_sharedflag='-G' ;; 9619 esac 9620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9621 9622 if test "x$supports_anon_versioning" = xyes; then 9623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9625 echo "local: *; };" >> $output_objdir/$libname.ver~ 9626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9627 fi 9628 9629 case $cc_basename in 9630 xlf* | bgf* | bgxlf* | mpixlf*) 9631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9633 hardcode_libdir_flag_spec= 9634 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9635 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9636 if test "x$supports_anon_versioning" = xyes; then 9637 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9639 echo "local: *; };" >> $output_objdir/$libname.ver~ 9640 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9641 fi 9642 ;; 9643 esac 9644 else 9645 ld_shlibs=no 9646 fi 9647 ;; 9648 9649 netbsd*) 9650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9651 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9652 wlarc= 9653 else 9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9656 fi 9657 ;; 9658 9659 solaris*) 9660 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9661 ld_shlibs=no 9662 cat <<_LT_EOF 1>&2 9663 9664*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9665*** create shared libraries on Solaris systems. Therefore, libtool 9666*** is disabling shared libraries support. We urge you to upgrade GNU 9667*** binutils to release 2.9.1 or newer. Another option is to modify 9668*** your PATH or compiler configuration so that the native linker is 9669*** used, and then restart. 9670 9671_LT_EOF 9672 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9675 else 9676 ld_shlibs=no 9677 fi 9678 ;; 9679 9680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9681 case `$LD -v 2>&1` in 9682 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9683 ld_shlibs=no 9684 cat <<_LT_EOF 1>&2 9685 9686*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9687*** reliably create shared libraries on SCO systems. Therefore, libtool 9688*** is disabling shared libraries support. We urge you to upgrade GNU 9689*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9690*** your PATH or compiler configuration so that the native linker is 9691*** used, and then restart. 9692 9693_LT_EOF 9694 ;; 9695 *) 9696 # For security reasons, it is highly recommended that you always 9697 # use absolute paths for naming shared libraries, and exclude the 9698 # DT_RUNPATH tag from executables and libraries. But doing so 9699 # requires that you compile everything twice, which is a pain. 9700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9704 else 9705 ld_shlibs=no 9706 fi 9707 ;; 9708 esac 9709 ;; 9710 9711 sunos4*) 9712 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9713 wlarc= 9714 hardcode_direct=yes 9715 hardcode_shlibpath_var=no 9716 ;; 9717 9718 *) 9719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9722 else 9723 ld_shlibs=no 9724 fi 9725 ;; 9726 esac 9727 9728 if test "$ld_shlibs" = no; then 9729 runpath_var= 9730 hardcode_libdir_flag_spec= 9731 export_dynamic_flag_spec= 9732 whole_archive_flag_spec= 9733 fi 9734 else 9735 # PORTME fill in a description of your system's linker (not GNU ld) 9736 case $host_os in 9737 aix3*) 9738 allow_undefined_flag=unsupported 9739 always_export_symbols=yes 9740 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' 9741 # Note: this linker hardcodes the directories in LIBPATH if there 9742 # are no directories specified by -L. 9743 hardcode_minus_L=yes 9744 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9745 # Neither direct hardcoding nor static linking is supported with a 9746 # broken collect2. 9747 hardcode_direct=unsupported 9748 fi 9749 ;; 9750 9751 aix[4-9]*) 9752 if test "$host_cpu" = ia64; then 9753 # On IA64, the linker does run time linking by default, so we don't 9754 # have to do anything special. 9755 aix_use_runtimelinking=no 9756 exp_sym_flag='-Bexport' 9757 no_entry_flag="" 9758 else 9759 # If we're using GNU nm, then we don't want the "-C" option. 9760 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9761 # Also, AIX nm treats weak defined symbols like other global 9762 # defined symbols, whereas GNU nm marks them as "W". 9763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9764 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' 9765 else 9766 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' 9767 fi 9768 aix_use_runtimelinking=no 9769 9770 # Test if we are trying to use run time linking or normal 9771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9772 # need to do runtime linking. 9773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9774 for ld_flag in $LDFLAGS; do 9775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9776 aix_use_runtimelinking=yes 9777 break 9778 fi 9779 done 9780 ;; 9781 esac 9782 9783 exp_sym_flag='-bexport' 9784 no_entry_flag='-bnoentry' 9785 fi 9786 9787 # When large executables or shared objects are built, AIX ld can 9788 # have problems creating the table of contents. If linking a library 9789 # or program results in "error TOC overflow" add -mminimal-toc to 9790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9792 9793 archive_cmds='' 9794 hardcode_direct=yes 9795 hardcode_direct_absolute=yes 9796 hardcode_libdir_separator=':' 9797 link_all_deplibs=yes 9798 file_list_spec='${wl}-f,' 9799 9800 if test "$GCC" = yes; then 9801 case $host_os in aix4.[012]|aix4.[012].*) 9802 # We only want to do this on AIX 4.2 and lower, the check 9803 # below for broken collect2 doesn't work under 4.3+ 9804 collect2name=`${CC} -print-prog-name=collect2` 9805 if test -f "$collect2name" && 9806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9807 then 9808 # We have reworked collect2 9809 : 9810 else 9811 # We have old collect2 9812 hardcode_direct=unsupported 9813 # It fails to find uninstalled libraries when the uninstalled 9814 # path is not listed in the libpath. Setting hardcode_minus_L 9815 # to unsupported forces relinking 9816 hardcode_minus_L=yes 9817 hardcode_libdir_flag_spec='-L$libdir' 9818 hardcode_libdir_separator= 9819 fi 9820 ;; 9821 esac 9822 shared_flag='-shared' 9823 if test "$aix_use_runtimelinking" = yes; then 9824 shared_flag="$shared_flag "'${wl}-G' 9825 fi 9826 else 9827 # not using gcc 9828 if test "$host_cpu" = ia64; then 9829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9830 # chokes on -Wl,-G. The following line is correct: 9831 shared_flag='-G' 9832 else 9833 if test "$aix_use_runtimelinking" = yes; then 9834 shared_flag='${wl}-G' 9835 else 9836 shared_flag='${wl}-bM:SRE' 9837 fi 9838 fi 9839 fi 9840 9841 export_dynamic_flag_spec='${wl}-bexpall' 9842 # It seems that -bexpall does not export symbols beginning with 9843 # underscore (_), so it is better to generate a list of symbols to export. 9844 always_export_symbols=yes 9845 if test "$aix_use_runtimelinking" = yes; then 9846 # Warning - without using the other runtime loading flags (-brtl), 9847 # -berok will link without error, but may produce a broken library. 9848 allow_undefined_flag='-berok' 9849 # Determine the default libpath from the value encoded in an 9850 # empty executable. 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853 9854int 9855main () 9856{ 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_link "$LINENO"; then : 9863 9864lt_aix_libpath_sed=' 9865 /Import File Strings/,/^$/ { 9866 /^0/ { 9867 s/^0 *\(.*\)$/\1/ 9868 p 9869 } 9870 }' 9871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9872# Check for a 64-bit object if we didn't find anything. 9873if test -z "$aix_libpath"; then 9874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9875fi 9876fi 9877rm -f core conftest.err conftest.$ac_objext \ 9878 conftest$ac_exeext conftest.$ac_ext 9879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9880 9881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9882 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" 9883 else 9884 if test "$host_cpu" = ia64; then 9885 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9886 allow_undefined_flag="-z nodefs" 9887 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" 9888 else 9889 # Determine the default libpath from the value encoded in an 9890 # empty executable. 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893 9894int 9895main () 9896{ 9897 9898 ; 9899 return 0; 9900} 9901_ACEOF 9902if ac_fn_c_try_link "$LINENO"; then : 9903 9904lt_aix_libpath_sed=' 9905 /Import File Strings/,/^$/ { 9906 /^0/ { 9907 s/^0 *\(.*\)$/\1/ 9908 p 9909 } 9910 }' 9911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9912# Check for a 64-bit object if we didn't find anything. 9913if test -z "$aix_libpath"; then 9914 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9915fi 9916fi 9917rm -f core conftest.err conftest.$ac_objext \ 9918 conftest$ac_exeext conftest.$ac_ext 9919if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9920 9921 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9922 # Warning - without using the other run time loading flags, 9923 # -berok will link without error, but may produce a broken library. 9924 no_undefined_flag=' ${wl}-bernotok' 9925 allow_undefined_flag=' ${wl}-berok' 9926 if test "$with_gnu_ld" = yes; then 9927 # We only use this code for GNU lds that support --whole-archive. 9928 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9929 else 9930 # Exported symbols can be pulled into shared objects from archives 9931 whole_archive_flag_spec='$convenience' 9932 fi 9933 archive_cmds_need_lc=yes 9934 # This is similar to how AIX traditionally builds its shared libraries. 9935 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' 9936 fi 9937 fi 9938 ;; 9939 9940 amigaos*) 9941 case $host_cpu in 9942 powerpc) 9943 # see comment about AmigaOS4 .so support 9944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9945 archive_expsym_cmds='' 9946 ;; 9947 m68k) 9948 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)' 9949 hardcode_libdir_flag_spec='-L$libdir' 9950 hardcode_minus_L=yes 9951 ;; 9952 esac 9953 ;; 9954 9955 bsdi[45]*) 9956 export_dynamic_flag_spec=-rdynamic 9957 ;; 9958 9959 cygwin* | mingw* | pw32* | cegcc*) 9960 # When not using gcc, we currently assume that we are using 9961 # Microsoft Visual C++. 9962 # hardcode_libdir_flag_spec is actually meaningless, as there is 9963 # no search path for DLLs. 9964 hardcode_libdir_flag_spec=' ' 9965 allow_undefined_flag=unsupported 9966 # Tell ltmain to make .lib files, not .a files. 9967 libext=lib 9968 # Tell ltmain to make .dll files, not .so files. 9969 shrext_cmds=".dll" 9970 # FIXME: Setting linknames here is a bad hack. 9971 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9972 # The linker will automatically build a .lib file if we build a DLL. 9973 old_archive_from_new_cmds='true' 9974 # FIXME: Should let the user specify the lib program. 9975 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9976 fix_srcfile_path='`cygpath -w "$srcfile"`' 9977 enable_shared_with_static_runtimes=yes 9978 ;; 9979 9980 darwin* | rhapsody*) 9981 9982 9983 archive_cmds_need_lc=no 9984 hardcode_direct=no 9985 hardcode_automatic=yes 9986 hardcode_shlibpath_var=unsupported 9987 if test "$lt_cv_ld_force_load" = "yes"; then 9988 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\"`' 9989 else 9990 whole_archive_flag_spec='' 9991 fi 9992 link_all_deplibs=yes 9993 allow_undefined_flag="$_lt_dar_allow_undefined" 9994 case $cc_basename in 9995 ifort*) _lt_dar_can_shared=yes ;; 9996 *) _lt_dar_can_shared=$GCC ;; 9997 esac 9998 if test "$_lt_dar_can_shared" = "yes"; then 9999 output_verbose_link_cmd=func_echo_all 10000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10002 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}" 10003 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}" 10004 10005 else 10006 ld_shlibs=no 10007 fi 10008 10009 ;; 10010 10011 dgux*) 10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10013 hardcode_libdir_flag_spec='-L$libdir' 10014 hardcode_shlibpath_var=no 10015 ;; 10016 10017 freebsd1*) 10018 ld_shlibs=no 10019 ;; 10020 10021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10022 # support. Future versions do this automatically, but an explicit c++rt0.o 10023 # does not break anything, and helps significantly (at the cost of a little 10024 # extra space). 10025 freebsd2.2*) 10026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10027 hardcode_libdir_flag_spec='-R$libdir' 10028 hardcode_direct=yes 10029 hardcode_shlibpath_var=no 10030 ;; 10031 10032 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10033 freebsd2*) 10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10035 hardcode_direct=yes 10036 hardcode_minus_L=yes 10037 hardcode_shlibpath_var=no 10038 ;; 10039 10040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10041 freebsd* | dragonfly*) 10042 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10043 hardcode_libdir_flag_spec='-R$libdir' 10044 hardcode_direct=yes 10045 hardcode_shlibpath_var=no 10046 ;; 10047 10048 hpux9*) 10049 if test "$GCC" = yes; then 10050 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10051 else 10052 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' 10053 fi 10054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10055 hardcode_libdir_separator=: 10056 hardcode_direct=yes 10057 10058 # hardcode_minus_L: Not really in the search PATH, 10059 # but as the default location of the library. 10060 hardcode_minus_L=yes 10061 export_dynamic_flag_spec='${wl}-E' 10062 ;; 10063 10064 hpux10*) 10065 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10067 else 10068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10069 fi 10070 if test "$with_gnu_ld" = no; then 10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10072 hardcode_libdir_flag_spec_ld='+b $libdir' 10073 hardcode_libdir_separator=: 10074 hardcode_direct=yes 10075 hardcode_direct_absolute=yes 10076 export_dynamic_flag_spec='${wl}-E' 10077 # hardcode_minus_L: Not really in the search PATH, 10078 # but as the default location of the library. 10079 hardcode_minus_L=yes 10080 fi 10081 ;; 10082 10083 hpux11*) 10084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10085 case $host_cpu in 10086 hppa*64*) 10087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10088 ;; 10089 ia64*) 10090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10091 ;; 10092 *) 10093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10094 ;; 10095 esac 10096 else 10097 case $host_cpu in 10098 hppa*64*) 10099 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10100 ;; 10101 ia64*) 10102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10103 ;; 10104 *) 10105 10106 # Older versions of the 11.00 compiler do not understand -b yet 10107 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10109$as_echo_n "checking if $CC understands -b... " >&6; } 10110if test "${lt_cv_prog_compiler__b+set}" = set; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 lt_cv_prog_compiler__b=no 10114 save_LDFLAGS="$LDFLAGS" 10115 LDFLAGS="$LDFLAGS -b" 10116 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10118 # The linker can only warn and ignore the option if not recognized 10119 # So say no if there are warnings 10120 if test -s conftest.err; then 10121 # Append any errors to the config.log. 10122 cat conftest.err 1>&5 10123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10125 if diff conftest.exp conftest.er2 >/dev/null; then 10126 lt_cv_prog_compiler__b=yes 10127 fi 10128 else 10129 lt_cv_prog_compiler__b=yes 10130 fi 10131 fi 10132 $RM -r conftest* 10133 LDFLAGS="$save_LDFLAGS" 10134 10135fi 10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10137$as_echo "$lt_cv_prog_compiler__b" >&6; } 10138 10139if test x"$lt_cv_prog_compiler__b" = xyes; then 10140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10141else 10142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10143fi 10144 10145 ;; 10146 esac 10147 fi 10148 if test "$with_gnu_ld" = no; then 10149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10150 hardcode_libdir_separator=: 10151 10152 case $host_cpu in 10153 hppa*64*|ia64*) 10154 hardcode_direct=no 10155 hardcode_shlibpath_var=no 10156 ;; 10157 *) 10158 hardcode_direct=yes 10159 hardcode_direct_absolute=yes 10160 export_dynamic_flag_spec='${wl}-E' 10161 10162 # hardcode_minus_L: Not really in the search PATH, 10163 # but as the default location of the library. 10164 hardcode_minus_L=yes 10165 ;; 10166 esac 10167 fi 10168 ;; 10169 10170 irix5* | irix6* | nonstopux*) 10171 if test "$GCC" = yes; then 10172 archive_cmds='$CC -shared $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' 10173 # Try to use the -exported_symbol ld option, if it does not 10174 # work, assume that -exports_file does not work either and 10175 # implicitly export all symbols. 10176 save_LDFLAGS="$LDFLAGS" 10177 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10179/* end confdefs.h. */ 10180int foo(void) {} 10181_ACEOF 10182if ac_fn_c_try_link "$LINENO"; then : 10183 archive_expsym_cmds='$CC -shared $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' 10184 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext conftest.$ac_ext 10188 LDFLAGS="$save_LDFLAGS" 10189 else 10190 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' 10191 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' 10192 fi 10193 archive_cmds_need_lc='no' 10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10195 hardcode_libdir_separator=: 10196 inherit_rpath=yes 10197 link_all_deplibs=yes 10198 ;; 10199 10200 netbsd*) 10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10203 else 10204 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10205 fi 10206 hardcode_libdir_flag_spec='-R$libdir' 10207 hardcode_direct=yes 10208 hardcode_shlibpath_var=no 10209 ;; 10210 10211 newsos6) 10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10213 hardcode_direct=yes 10214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10215 hardcode_libdir_separator=: 10216 hardcode_shlibpath_var=no 10217 ;; 10218 10219 *nto* | *qnx*) 10220 ;; 10221 10222 openbsd*) 10223 if test -f /usr/libexec/ld.so; then 10224 hardcode_direct=yes 10225 hardcode_shlibpath_var=no 10226 hardcode_direct_absolute=yes 10227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10229 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10231 export_dynamic_flag_spec='${wl}-E' 10232 else 10233 case $host_os in 10234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10236 hardcode_libdir_flag_spec='-R$libdir' 10237 ;; 10238 *) 10239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10241 ;; 10242 esac 10243 fi 10244 else 10245 ld_shlibs=no 10246 fi 10247 ;; 10248 10249 os2*) 10250 hardcode_libdir_flag_spec='-L$libdir' 10251 hardcode_minus_L=yes 10252 allow_undefined_flag=unsupported 10253 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' 10254 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10255 ;; 10256 10257 osf3*) 10258 if test "$GCC" = yes; then 10259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10260 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' 10261 else 10262 allow_undefined_flag=' -expect_unresolved \*' 10263 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' 10264 fi 10265 archive_cmds_need_lc='no' 10266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10267 hardcode_libdir_separator=: 10268 ;; 10269 10270 osf4* | osf5*) # as osf3* with the addition of -msym flag 10271 if test "$GCC" = yes; then 10272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10273 archive_cmds='$CC -shared${allow_undefined_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' 10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10275 else 10276 allow_undefined_flag=' -expect_unresolved \*' 10277 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' 10278 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~ 10279 $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' 10280 10281 # Both c and cxx compiler support -rpath directly 10282 hardcode_libdir_flag_spec='-rpath $libdir' 10283 fi 10284 archive_cmds_need_lc='no' 10285 hardcode_libdir_separator=: 10286 ;; 10287 10288 solaris*) 10289 no_undefined_flag=' -z defs' 10290 if test "$GCC" = yes; then 10291 wlarc='${wl}' 10292 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10294 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10295 else 10296 case `$CC -V 2>&1` in 10297 *"Compilers 5.0"*) 10298 wlarc='' 10299 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10302 ;; 10303 *) 10304 wlarc='${wl}' 10305 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10307 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10308 ;; 10309 esac 10310 fi 10311 hardcode_libdir_flag_spec='-R$libdir' 10312 hardcode_shlibpath_var=no 10313 case $host_os in 10314 solaris2.[0-5] | solaris2.[0-5].*) ;; 10315 *) 10316 # The compiler driver will combine and reorder linker options, 10317 # but understands `-z linker_flag'. GCC discards it without `$wl', 10318 # but is careful enough not to reorder. 10319 # Supported since Solaris 2.6 (maybe 2.5.1?) 10320 if test "$GCC" = yes; then 10321 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10322 else 10323 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10324 fi 10325 ;; 10326 esac 10327 link_all_deplibs=yes 10328 ;; 10329 10330 sunos4*) 10331 if test "x$host_vendor" = xsequent; then 10332 # Use $CC to link under sequent, because it throws in some extra .o 10333 # files that make .init and .fini sections work. 10334 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10335 else 10336 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10337 fi 10338 hardcode_libdir_flag_spec='-L$libdir' 10339 hardcode_direct=yes 10340 hardcode_minus_L=yes 10341 hardcode_shlibpath_var=no 10342 ;; 10343 10344 sysv4) 10345 case $host_vendor in 10346 sni) 10347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10348 hardcode_direct=yes # is this really true??? 10349 ;; 10350 siemens) 10351 ## LD is ld it makes a PLAMLIB 10352 ## CC just makes a GrossModule. 10353 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10354 reload_cmds='$CC -r -o $output$reload_objs' 10355 hardcode_direct=no 10356 ;; 10357 motorola) 10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10359 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10360 ;; 10361 esac 10362 runpath_var='LD_RUN_PATH' 10363 hardcode_shlibpath_var=no 10364 ;; 10365 10366 sysv4.3*) 10367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10368 hardcode_shlibpath_var=no 10369 export_dynamic_flag_spec='-Bexport' 10370 ;; 10371 10372 sysv4*MP*) 10373 if test -d /usr/nec; then 10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10375 hardcode_shlibpath_var=no 10376 runpath_var=LD_RUN_PATH 10377 hardcode_runpath_var=yes 10378 ld_shlibs=yes 10379 fi 10380 ;; 10381 10382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10383 no_undefined_flag='${wl}-z,text' 10384 archive_cmds_need_lc=no 10385 hardcode_shlibpath_var=no 10386 runpath_var='LD_RUN_PATH' 10387 10388 if test "$GCC" = yes; then 10389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10391 else 10392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10394 fi 10395 ;; 10396 10397 sysv5* | sco3.2v5* | sco5v6*) 10398 # Note: We can NOT use -z defs as we might desire, because we do not 10399 # link with -lc, and that would cause any symbols used from libc to 10400 # always be unresolved, which means just about no library would 10401 # ever link correctly. If we're not using GNU ld we use -z text 10402 # though, which does catch some bad symbols but isn't as heavy-handed 10403 # as -z defs. 10404 no_undefined_flag='${wl}-z,text' 10405 allow_undefined_flag='${wl}-z,nodefs' 10406 archive_cmds_need_lc=no 10407 hardcode_shlibpath_var=no 10408 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10409 hardcode_libdir_separator=':' 10410 link_all_deplibs=yes 10411 export_dynamic_flag_spec='${wl}-Bexport' 10412 runpath_var='LD_RUN_PATH' 10413 10414 if test "$GCC" = yes; then 10415 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10416 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10417 else 10418 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10419 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10420 fi 10421 ;; 10422 10423 uts4*) 10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10425 hardcode_libdir_flag_spec='-L$libdir' 10426 hardcode_shlibpath_var=no 10427 ;; 10428 10429 *) 10430 ld_shlibs=no 10431 ;; 10432 esac 10433 10434 if test x$host_vendor = xsni; then 10435 case $host in 10436 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10437 export_dynamic_flag_spec='${wl}-Blargedynsym' 10438 ;; 10439 esac 10440 fi 10441 fi 10442 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10444$as_echo "$ld_shlibs" >&6; } 10445test "$ld_shlibs" = no && can_build_shared=no 10446 10447with_gnu_ld=$with_gnu_ld 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463# 10464# Do we need to explicitly link libc? 10465# 10466case "x$archive_cmds_need_lc" in 10467x|xyes) 10468 # Assume -lc should be added 10469 archive_cmds_need_lc=yes 10470 10471 if test "$enable_shared" = yes && test "$GCC" = yes; then 10472 case $archive_cmds in 10473 *'~'*) 10474 # FIXME: we may have to deal with multi-command sequences. 10475 ;; 10476 '$CC '*) 10477 # Test whether the compiler implicitly links with -lc since on some 10478 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10479 # to ld, don't add -lc before -lgcc. 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10481$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10482if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10483 $as_echo_n "(cached) " >&6 10484else 10485 $RM conftest* 10486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10487 10488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10489 (eval $ac_compile) 2>&5 10490 ac_status=$? 10491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10492 test $ac_status = 0; } 2>conftest.err; then 10493 soname=conftest 10494 lib=conftest 10495 libobjs=conftest.$ac_objext 10496 deplibs= 10497 wl=$lt_prog_compiler_wl 10498 pic_flag=$lt_prog_compiler_pic 10499 compiler_flags=-v 10500 linker_flags=-v 10501 verstring= 10502 output_objdir=. 10503 libname=conftest 10504 lt_save_allow_undefined_flag=$allow_undefined_flag 10505 allow_undefined_flag= 10506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10507 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10508 ac_status=$? 10509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10510 test $ac_status = 0; } 10511 then 10512 lt_cv_archive_cmds_need_lc=no 10513 else 10514 lt_cv_archive_cmds_need_lc=yes 10515 fi 10516 allow_undefined_flag=$lt_save_allow_undefined_flag 10517 else 10518 cat conftest.err 1>&5 10519 fi 10520 $RM conftest* 10521 10522fi 10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10524$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10525 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10526 ;; 10527 esac 10528 fi 10529 ;; 10530esac 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10689$as_echo_n "checking dynamic linker characteristics... " >&6; } 10690 10691if test "$GCC" = yes; then 10692 case $host_os in 10693 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10694 *) lt_awk_arg="/^libraries:/" ;; 10695 esac 10696 case $host_os in 10697 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10698 *) lt_sed_strip_eq="s,=/,/,g" ;; 10699 esac 10700 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10701 case $lt_search_path_spec in 10702 *\;*) 10703 # if the path contains ";" then we assume it to be the separator 10704 # otherwise default to the standard path separator (i.e. ":") - it is 10705 # assumed that no part of a normal pathname contains ";" but that should 10706 # okay in the real world where ";" in dirpaths is itself problematic. 10707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10708 ;; 10709 *) 10710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10711 ;; 10712 esac 10713 # Ok, now we have the path, separated by spaces, we can step through it 10714 # and add multilib dir if necessary. 10715 lt_tmp_lt_search_path_spec= 10716 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10717 for lt_sys_path in $lt_search_path_spec; do 10718 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10720 else 10721 test -d "$lt_sys_path" && \ 10722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10723 fi 10724 done 10725 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10726BEGIN {RS=" "; FS="/|\n";} { 10727 lt_foo=""; 10728 lt_count=0; 10729 for (lt_i = NF; lt_i > 0; lt_i--) { 10730 if ($lt_i != "" && $lt_i != ".") { 10731 if ($lt_i == "..") { 10732 lt_count++; 10733 } else { 10734 if (lt_count == 0) { 10735 lt_foo="/" $lt_i lt_foo; 10736 } else { 10737 lt_count--; 10738 } 10739 } 10740 } 10741 } 10742 if (lt_foo != "") { lt_freq[lt_foo]++; } 10743 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10744}'` 10745 # AWK program above erroneously prepends '/' to C:/dos/paths 10746 # for these hosts. 10747 case $host_os in 10748 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10749 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10750 esac 10751 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10752else 10753 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10754fi 10755library_names_spec= 10756libname_spec='lib$name' 10757soname_spec= 10758shrext_cmds=".so" 10759postinstall_cmds= 10760postuninstall_cmds= 10761finish_cmds= 10762finish_eval= 10763shlibpath_var= 10764shlibpath_overrides_runpath=unknown 10765version_type=none 10766dynamic_linker="$host_os ld.so" 10767sys_lib_dlsearch_path_spec="/lib /usr/lib" 10768need_lib_prefix=unknown 10769hardcode_into_libs=no 10770 10771# when you set need_version to no, make sure it does not cause -set_version 10772# flags to be left without arguments 10773need_version=unknown 10774 10775case $host_os in 10776aix3*) 10777 version_type=linux 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10779 shlibpath_var=LIBPATH 10780 10781 # AIX 3 has no versioning support, so we append a major version to the name. 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 ;; 10784 10785aix[4-9]*) 10786 version_type=linux 10787 need_lib_prefix=no 10788 need_version=no 10789 hardcode_into_libs=yes 10790 if test "$host_cpu" = ia64; then 10791 # AIX 5 supports IA64 10792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10793 shlibpath_var=LD_LIBRARY_PATH 10794 else 10795 # With GCC up to 2.95.x, collect2 would create an import file 10796 # for dependence libraries. The import file would start with 10797 # the line `#! .'. This would cause the generated library to 10798 # depend on `.', always an invalid library. This was fixed in 10799 # development snapshots of GCC prior to 3.0. 10800 case $host_os in 10801 aix4 | aix4.[01] | aix4.[01].*) 10802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10803 echo ' yes ' 10804 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10805 : 10806 else 10807 can_build_shared=no 10808 fi 10809 ;; 10810 esac 10811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10812 # soname into executable. Probably we can add versioning support to 10813 # collect2, so additional links can be useful in future. 10814 if test "$aix_use_runtimelinking" = yes; then 10815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10816 # instead of lib<name>.a to let people know that these are not 10817 # typical AIX shared libraries. 10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10819 else 10820 # We preserve .a as extension for shared libraries through AIX4.2 10821 # and later when we are not doing run time linking. 10822 library_names_spec='${libname}${release}.a $libname.a' 10823 soname_spec='${libname}${release}${shared_ext}$major' 10824 fi 10825 shlibpath_var=LIBPATH 10826 fi 10827 ;; 10828 10829amigaos*) 10830 case $host_cpu in 10831 powerpc) 10832 # Since July 2007 AmigaOS4 officially supports .so libraries. 10833 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10835 ;; 10836 m68k) 10837 library_names_spec='$libname.ixlibrary $libname.a' 10838 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10839 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' 10840 ;; 10841 esac 10842 ;; 10843 10844beos*) 10845 library_names_spec='${libname}${shared_ext}' 10846 dynamic_linker="$host_os ld.so" 10847 shlibpath_var=LIBRARY_PATH 10848 ;; 10849 10850bsdi[45]*) 10851 version_type=linux 10852 need_version=no 10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10854 soname_spec='${libname}${release}${shared_ext}$major' 10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10856 shlibpath_var=LD_LIBRARY_PATH 10857 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10858 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10859 # the default ld.so.conf also contains /usr/contrib/lib and 10860 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10861 # libtool to hard-code these into programs 10862 ;; 10863 10864cygwin* | mingw* | pw32* | cegcc*) 10865 version_type=windows 10866 shrext_cmds=".dll" 10867 need_version=no 10868 need_lib_prefix=no 10869 10870 case $GCC,$host_os in 10871 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10872 library_names_spec='$libname.dll.a' 10873 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10874 postinstall_cmds='base_file=`basename \${file}`~ 10875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10876 dldir=$destdir/`dirname \$dlpath`~ 10877 test -d \$dldir || mkdir -p \$dldir~ 10878 $install_prog $dir/$dlname \$dldir/$dlname~ 10879 chmod a+x \$dldir/$dlname~ 10880 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10881 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10882 fi' 10883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10884 dlpath=$dir/\$dldll~ 10885 $RM \$dlpath' 10886 shlibpath_overrides_runpath=yes 10887 10888 case $host_os in 10889 cygwin*) 10890 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10892 10893 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10894 ;; 10895 mingw* | cegcc*) 10896 # MinGW DLLs use traditional 'lib' prefix 10897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10898 ;; 10899 pw32*) 10900 # pw32 DLLs use 'pw' prefix rather than 'lib' 10901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10902 ;; 10903 esac 10904 ;; 10905 10906 *) 10907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10908 ;; 10909 esac 10910 dynamic_linker='Win32 ld.exe' 10911 # FIXME: first we should search . and the directory the executable is in 10912 shlibpath_var=PATH 10913 ;; 10914 10915darwin* | rhapsody*) 10916 dynamic_linker="$host_os dyld" 10917 version_type=darwin 10918 need_lib_prefix=no 10919 need_version=no 10920 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10921 soname_spec='${libname}${release}${major}$shared_ext' 10922 shlibpath_overrides_runpath=yes 10923 shlibpath_var=DYLD_LIBRARY_PATH 10924 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10925 10926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10928 ;; 10929 10930dgux*) 10931 version_type=linux 10932 need_lib_prefix=no 10933 need_version=no 10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10935 soname_spec='${libname}${release}${shared_ext}$major' 10936 shlibpath_var=LD_LIBRARY_PATH 10937 ;; 10938 10939freebsd1*) 10940 dynamic_linker=no 10941 ;; 10942 10943freebsd* | dragonfly*) 10944 # DragonFly does not have aout. When/if they implement a new 10945 # versioning mechanism, adjust this. 10946 if test -x /usr/bin/objformat; then 10947 objformat=`/usr/bin/objformat` 10948 else 10949 case $host_os in 10950 freebsd[123]*) objformat=aout ;; 10951 *) objformat=elf ;; 10952 esac 10953 fi 10954 version_type=freebsd-$objformat 10955 case $version_type in 10956 freebsd-elf*) 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10958 need_version=no 10959 need_lib_prefix=no 10960 ;; 10961 freebsd-*) 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10963 need_version=yes 10964 ;; 10965 esac 10966 shlibpath_var=LD_LIBRARY_PATH 10967 case $host_os in 10968 freebsd2*) 10969 shlibpath_overrides_runpath=yes 10970 ;; 10971 freebsd3.[01]* | freebsdelf3.[01]*) 10972 shlibpath_overrides_runpath=yes 10973 hardcode_into_libs=yes 10974 ;; 10975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10977 shlibpath_overrides_runpath=no 10978 hardcode_into_libs=yes 10979 ;; 10980 *) # from 4.6 on, and DragonFly 10981 shlibpath_overrides_runpath=yes 10982 hardcode_into_libs=yes 10983 ;; 10984 esac 10985 ;; 10986 10987gnu*) 10988 version_type=linux 10989 need_lib_prefix=no 10990 need_version=no 10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10992 soname_spec='${libname}${release}${shared_ext}$major' 10993 shlibpath_var=LD_LIBRARY_PATH 10994 hardcode_into_libs=yes 10995 ;; 10996 10997haiku*) 10998 version_type=linux 10999 need_lib_prefix=no 11000 need_version=no 11001 dynamic_linker="$host_os runtime_loader" 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11003 soname_spec='${libname}${release}${shared_ext}$major' 11004 shlibpath_var=LIBRARY_PATH 11005 shlibpath_overrides_runpath=yes 11006 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11007 hardcode_into_libs=yes 11008 ;; 11009 11010hpux9* | hpux10* | hpux11*) 11011 # Give a soname corresponding to the major version so that dld.sl refuses to 11012 # link against other versions. 11013 version_type=sunos 11014 need_lib_prefix=no 11015 need_version=no 11016 case $host_cpu in 11017 ia64*) 11018 shrext_cmds='.so' 11019 hardcode_into_libs=yes 11020 dynamic_linker="$host_os dld.so" 11021 shlibpath_var=LD_LIBRARY_PATH 11022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11024 soname_spec='${libname}${release}${shared_ext}$major' 11025 if test "X$HPUX_IA64_MODE" = X32; then 11026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11027 else 11028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11029 fi 11030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11031 ;; 11032 hppa*64*) 11033 shrext_cmds='.sl' 11034 hardcode_into_libs=yes 11035 dynamic_linker="$host_os dld.sl" 11036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11039 soname_spec='${libname}${release}${shared_ext}$major' 11040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11042 ;; 11043 *) 11044 shrext_cmds='.sl' 11045 dynamic_linker="$host_os dld.sl" 11046 shlibpath_var=SHLIB_PATH 11047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11049 soname_spec='${libname}${release}${shared_ext}$major' 11050 ;; 11051 esac 11052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11053 postinstall_cmds='chmod 555 $lib' 11054 # or fails outright, so override atomically: 11055 install_override_mode=555 11056 ;; 11057 11058interix[3-9]*) 11059 version_type=linux 11060 need_lib_prefix=no 11061 need_version=no 11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11063 soname_spec='${libname}${release}${shared_ext}$major' 11064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=no 11067 hardcode_into_libs=yes 11068 ;; 11069 11070irix5* | irix6* | nonstopux*) 11071 case $host_os in 11072 nonstopux*) version_type=nonstopux ;; 11073 *) 11074 if test "$lt_cv_prog_gnu_ld" = yes; then 11075 version_type=linux 11076 else 11077 version_type=irix 11078 fi ;; 11079 esac 11080 need_lib_prefix=no 11081 need_version=no 11082 soname_spec='${libname}${release}${shared_ext}$major' 11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11084 case $host_os in 11085 irix5* | nonstopux*) 11086 libsuff= shlibsuff= 11087 ;; 11088 *) 11089 case $LD in # libtool.m4 will add one of these switches to LD 11090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11091 libsuff= shlibsuff= libmagic=32-bit;; 11092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11093 libsuff=32 shlibsuff=N32 libmagic=N32;; 11094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11095 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11096 *) libsuff= shlibsuff= libmagic=never-match;; 11097 esac 11098 ;; 11099 esac 11100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11101 shlibpath_overrides_runpath=no 11102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11104 hardcode_into_libs=yes 11105 ;; 11106 11107# No shared lib support for Linux oldld, aout, or coff. 11108linux*oldld* | linux*aout* | linux*coff*) 11109 dynamic_linker=no 11110 ;; 11111 11112# This must be Linux ELF. 11113linux* | k*bsd*-gnu | kopensolaris*-gnu) 11114 version_type=linux 11115 need_lib_prefix=no 11116 need_version=no 11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11118 soname_spec='${libname}${release}${shared_ext}$major' 11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11120 shlibpath_var=LD_LIBRARY_PATH 11121 shlibpath_overrides_runpath=no 11122 11123 # Some binutils ld are patched to set DT_RUNPATH 11124 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 lt_cv_shlibpath_overrides_runpath=no 11128 save_LDFLAGS=$LDFLAGS 11129 save_libdir=$libdir 11130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11133/* end confdefs.h. */ 11134 11135int 11136main () 11137{ 11138 11139 ; 11140 return 0; 11141} 11142_ACEOF 11143if ac_fn_c_try_link "$LINENO"; then : 11144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11145 lt_cv_shlibpath_overrides_runpath=yes 11146fi 11147fi 11148rm -f core conftest.err conftest.$ac_objext \ 11149 conftest$ac_exeext conftest.$ac_ext 11150 LDFLAGS=$save_LDFLAGS 11151 libdir=$save_libdir 11152 11153fi 11154 11155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11156 11157 # This implies no fast_install, which is unacceptable. 11158 # Some rework will be needed to allow for fast_install 11159 # before this can be enabled. 11160 hardcode_into_libs=yes 11161 11162 # Append ld.so.conf contents to the search path 11163 if test -f /etc/ld.so.conf; then 11164 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' ' '` 11165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11166 fi 11167 11168 # We used to test for /lib/ld.so.1 and disable shared libraries on 11169 # powerpc, because MkLinux only supported shared libraries with the 11170 # GNU dynamic linker. Since this was broken with cross compilers, 11171 # most powerpc-linux boxes support dynamic linking these days and 11172 # people can always --disable-shared, the test was removed, and we 11173 # assume the GNU/Linux dynamic linker is in use. 11174 dynamic_linker='GNU/Linux ld.so' 11175 ;; 11176 11177netbsd*) 11178 version_type=sunos 11179 need_lib_prefix=no 11180 need_version=no 11181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11184 dynamic_linker='NetBSD (a.out) ld.so' 11185 else 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11187 soname_spec='${libname}${release}${shared_ext}$major' 11188 dynamic_linker='NetBSD ld.elf_so' 11189 fi 11190 shlibpath_var=LD_LIBRARY_PATH 11191 shlibpath_overrides_runpath=yes 11192 hardcode_into_libs=yes 11193 ;; 11194 11195newsos6) 11196 version_type=linux 11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 shlibpath_overrides_runpath=yes 11200 ;; 11201 11202*nto* | *qnx*) 11203 version_type=qnx 11204 need_lib_prefix=no 11205 need_version=no 11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11207 soname_spec='${libname}${release}${shared_ext}$major' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=no 11210 hardcode_into_libs=yes 11211 dynamic_linker='ldqnx.so' 11212 ;; 11213 11214openbsd*) 11215 version_type=sunos 11216 sys_lib_dlsearch_path_spec="/usr/lib" 11217 need_lib_prefix=no 11218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11219 case $host_os in 11220 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11221 *) need_version=no ;; 11222 esac 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11225 shlibpath_var=LD_LIBRARY_PATH 11226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11227 case $host_os in 11228 openbsd2.[89] | openbsd2.[89].*) 11229 shlibpath_overrides_runpath=no 11230 ;; 11231 *) 11232 shlibpath_overrides_runpath=yes 11233 ;; 11234 esac 11235 else 11236 shlibpath_overrides_runpath=yes 11237 fi 11238 ;; 11239 11240os2*) 11241 libname_spec='$name' 11242 shrext_cmds=".dll" 11243 need_lib_prefix=no 11244 library_names_spec='$libname${shared_ext} $libname.a' 11245 dynamic_linker='OS/2 ld.exe' 11246 shlibpath_var=LIBPATH 11247 ;; 11248 11249osf3* | osf4* | osf5*) 11250 version_type=osf 11251 need_lib_prefix=no 11252 need_version=no 11253 soname_spec='${libname}${release}${shared_ext}$major' 11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11255 shlibpath_var=LD_LIBRARY_PATH 11256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11258 ;; 11259 11260rdos*) 11261 dynamic_linker=no 11262 ;; 11263 11264solaris*) 11265 version_type=linux 11266 need_lib_prefix=no 11267 need_version=no 11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11269 soname_spec='${libname}${release}${shared_ext}$major' 11270 shlibpath_var=LD_LIBRARY_PATH 11271 shlibpath_overrides_runpath=yes 11272 hardcode_into_libs=yes 11273 # ldd complains unless libraries are executable 11274 postinstall_cmds='chmod +x $lib' 11275 ;; 11276 11277sunos4*) 11278 version_type=sunos 11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11281 shlibpath_var=LD_LIBRARY_PATH 11282 shlibpath_overrides_runpath=yes 11283 if test "$with_gnu_ld" = yes; then 11284 need_lib_prefix=no 11285 fi 11286 need_version=yes 11287 ;; 11288 11289sysv4 | sysv4.3*) 11290 version_type=linux 11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11292 soname_spec='${libname}${release}${shared_ext}$major' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 case $host_vendor in 11295 sni) 11296 shlibpath_overrides_runpath=no 11297 need_lib_prefix=no 11298 runpath_var=LD_RUN_PATH 11299 ;; 11300 siemens) 11301 need_lib_prefix=no 11302 ;; 11303 motorola) 11304 need_lib_prefix=no 11305 need_version=no 11306 shlibpath_overrides_runpath=no 11307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11308 ;; 11309 esac 11310 ;; 11311 11312sysv4*MP*) 11313 if test -d /usr/nec ;then 11314 version_type=linux 11315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11316 soname_spec='$libname${shared_ext}.$major' 11317 shlibpath_var=LD_LIBRARY_PATH 11318 fi 11319 ;; 11320 11321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11322 version_type=freebsd-elf 11323 need_lib_prefix=no 11324 need_version=no 11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11326 soname_spec='${libname}${release}${shared_ext}$major' 11327 shlibpath_var=LD_LIBRARY_PATH 11328 shlibpath_overrides_runpath=yes 11329 hardcode_into_libs=yes 11330 if test "$with_gnu_ld" = yes; then 11331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11332 else 11333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11334 case $host_os in 11335 sco3.2v5*) 11336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11337 ;; 11338 esac 11339 fi 11340 sys_lib_dlsearch_path_spec='/usr/lib' 11341 ;; 11342 11343tpf*) 11344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11345 version_type=linux 11346 need_lib_prefix=no 11347 need_version=no 11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11349 shlibpath_var=LD_LIBRARY_PATH 11350 shlibpath_overrides_runpath=no 11351 hardcode_into_libs=yes 11352 ;; 11353 11354uts4*) 11355 version_type=linux 11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11357 soname_spec='${libname}${release}${shared_ext}$major' 11358 shlibpath_var=LD_LIBRARY_PATH 11359 ;; 11360 11361*) 11362 dynamic_linker=no 11363 ;; 11364esac 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11366$as_echo "$dynamic_linker" >&6; } 11367test "$dynamic_linker" = no && can_build_shared=no 11368 11369variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11370if test "$GCC" = yes; then 11371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11372fi 11373 11374if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11376fi 11377if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11379fi 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11473$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11474hardcode_action= 11475if test -n "$hardcode_libdir_flag_spec" || 11476 test -n "$runpath_var" || 11477 test "X$hardcode_automatic" = "Xyes" ; then 11478 11479 # We can hardcode non-existent directories. 11480 if test "$hardcode_direct" != no && 11481 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11482 # have to relink, otherwise we might link with an installed library 11483 # when we should be linking with a yet-to-be-installed one 11484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11485 test "$hardcode_minus_L" != no; then 11486 # Linking always hardcodes the temporary library directory. 11487 hardcode_action=relink 11488 else 11489 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11490 hardcode_action=immediate 11491 fi 11492else 11493 # We cannot hardcode anything, or else we can only hardcode existing 11494 # directories. 11495 hardcode_action=unsupported 11496fi 11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11498$as_echo "$hardcode_action" >&6; } 11499 11500if test "$hardcode_action" = relink || 11501 test "$inherit_rpath" = yes; then 11502 # Fast installation is not supported 11503 enable_fast_install=no 11504elif test "$shlibpath_overrides_runpath" = yes || 11505 test "$enable_shared" = no; then 11506 # Fast installation is not necessary 11507 enable_fast_install=needless 11508fi 11509 11510 11511 11512 11513 11514 11515 if test "x$enable_dlopen" != xyes; then 11516 enable_dlopen=unknown 11517 enable_dlopen_self=unknown 11518 enable_dlopen_self_static=unknown 11519else 11520 lt_cv_dlopen=no 11521 lt_cv_dlopen_libs= 11522 11523 case $host_os in 11524 beos*) 11525 lt_cv_dlopen="load_add_on" 11526 lt_cv_dlopen_libs= 11527 lt_cv_dlopen_self=yes 11528 ;; 11529 11530 mingw* | pw32* | cegcc*) 11531 lt_cv_dlopen="LoadLibrary" 11532 lt_cv_dlopen_libs= 11533 ;; 11534 11535 cygwin*) 11536 lt_cv_dlopen="dlopen" 11537 lt_cv_dlopen_libs= 11538 ;; 11539 11540 darwin*) 11541 # if libdl is installed we need to link against it 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11543$as_echo_n "checking for dlopen in -ldl... " >&6; } 11544if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11545 $as_echo_n "(cached) " >&6 11546else 11547 ac_check_lib_save_LIBS=$LIBS 11548LIBS="-ldl $LIBS" 11549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11550/* end confdefs.h. */ 11551 11552/* Override any GCC internal prototype to avoid an error. 11553 Use char because int might match the return type of a GCC 11554 builtin and then its argument prototype would still apply. */ 11555#ifdef __cplusplus 11556extern "C" 11557#endif 11558char dlopen (); 11559int 11560main () 11561{ 11562return dlopen (); 11563 ; 11564 return 0; 11565} 11566_ACEOF 11567if ac_fn_c_try_link "$LINENO"; then : 11568 ac_cv_lib_dl_dlopen=yes 11569else 11570 ac_cv_lib_dl_dlopen=no 11571fi 11572rm -f core conftest.err conftest.$ac_objext \ 11573 conftest$ac_exeext conftest.$ac_ext 11574LIBS=$ac_check_lib_save_LIBS 11575fi 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11577$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11578if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11580else 11581 11582 lt_cv_dlopen="dyld" 11583 lt_cv_dlopen_libs= 11584 lt_cv_dlopen_self=yes 11585 11586fi 11587 11588 ;; 11589 11590 *) 11591 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11592if test "x$ac_cv_func_shl_load" = x""yes; then : 11593 lt_cv_dlopen="shl_load" 11594else 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11596$as_echo_n "checking for shl_load in -ldld... " >&6; } 11597if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11598 $as_echo_n "(cached) " >&6 11599else 11600 ac_check_lib_save_LIBS=$LIBS 11601LIBS="-ldld $LIBS" 11602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604 11605/* Override any GCC internal prototype to avoid an error. 11606 Use char because int might match the return type of a GCC 11607 builtin and then its argument prototype would still apply. */ 11608#ifdef __cplusplus 11609extern "C" 11610#endif 11611char shl_load (); 11612int 11613main () 11614{ 11615return shl_load (); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_link "$LINENO"; then : 11621 ac_cv_lib_dld_shl_load=yes 11622else 11623 ac_cv_lib_dld_shl_load=no 11624fi 11625rm -f core conftest.err conftest.$ac_objext \ 11626 conftest$ac_exeext conftest.$ac_ext 11627LIBS=$ac_check_lib_save_LIBS 11628fi 11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11630$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11631if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11633else 11634 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11635if test "x$ac_cv_func_dlopen" = x""yes; then : 11636 lt_cv_dlopen="dlopen" 11637else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11639$as_echo_n "checking for dlopen in -ldl... " >&6; } 11640if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 ac_check_lib_save_LIBS=$LIBS 11644LIBS="-ldl $LIBS" 11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647 11648/* Override any GCC internal prototype to avoid an error. 11649 Use char because int might match the return type of a GCC 11650 builtin and then its argument prototype would still apply. */ 11651#ifdef __cplusplus 11652extern "C" 11653#endif 11654char dlopen (); 11655int 11656main () 11657{ 11658return dlopen (); 11659 ; 11660 return 0; 11661} 11662_ACEOF 11663if ac_fn_c_try_link "$LINENO"; then : 11664 ac_cv_lib_dl_dlopen=yes 11665else 11666 ac_cv_lib_dl_dlopen=no 11667fi 11668rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670LIBS=$ac_check_lib_save_LIBS 11671fi 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11673$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11674if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11676else 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11678$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11679if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11680 $as_echo_n "(cached) " >&6 11681else 11682 ac_check_lib_save_LIBS=$LIBS 11683LIBS="-lsvld $LIBS" 11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686 11687/* Override any GCC internal prototype to avoid an error. 11688 Use char because int might match the return type of a GCC 11689 builtin and then its argument prototype would still apply. */ 11690#ifdef __cplusplus 11691extern "C" 11692#endif 11693char dlopen (); 11694int 11695main () 11696{ 11697return dlopen (); 11698 ; 11699 return 0; 11700} 11701_ACEOF 11702if ac_fn_c_try_link "$LINENO"; then : 11703 ac_cv_lib_svld_dlopen=yes 11704else 11705 ac_cv_lib_svld_dlopen=no 11706fi 11707rm -f core conftest.err conftest.$ac_objext \ 11708 conftest$ac_exeext conftest.$ac_ext 11709LIBS=$ac_check_lib_save_LIBS 11710fi 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11712$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11713if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11715else 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11717$as_echo_n "checking for dld_link in -ldld... " >&6; } 11718if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 ac_check_lib_save_LIBS=$LIBS 11722LIBS="-ldld $LIBS" 11723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11724/* end confdefs.h. */ 11725 11726/* Override any GCC internal prototype to avoid an error. 11727 Use char because int might match the return type of a GCC 11728 builtin and then its argument prototype would still apply. */ 11729#ifdef __cplusplus 11730extern "C" 11731#endif 11732char dld_link (); 11733int 11734main () 11735{ 11736return dld_link (); 11737 ; 11738 return 0; 11739} 11740_ACEOF 11741if ac_fn_c_try_link "$LINENO"; then : 11742 ac_cv_lib_dld_dld_link=yes 11743else 11744 ac_cv_lib_dld_dld_link=no 11745fi 11746rm -f core conftest.err conftest.$ac_objext \ 11747 conftest$ac_exeext conftest.$ac_ext 11748LIBS=$ac_check_lib_save_LIBS 11749fi 11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11751$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11752if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11754fi 11755 11756 11757fi 11758 11759 11760fi 11761 11762 11763fi 11764 11765 11766fi 11767 11768 11769fi 11770 11771 ;; 11772 esac 11773 11774 if test "x$lt_cv_dlopen" != xno; then 11775 enable_dlopen=yes 11776 else 11777 enable_dlopen=no 11778 fi 11779 11780 case $lt_cv_dlopen in 11781 dlopen) 11782 save_CPPFLAGS="$CPPFLAGS" 11783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11784 11785 save_LDFLAGS="$LDFLAGS" 11786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11787 11788 save_LIBS="$LIBS" 11789 LIBS="$lt_cv_dlopen_libs $LIBS" 11790 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11792$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11793if test "${lt_cv_dlopen_self+set}" = set; then : 11794 $as_echo_n "(cached) " >&6 11795else 11796 if test "$cross_compiling" = yes; then : 11797 lt_cv_dlopen_self=cross 11798else 11799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11800 lt_status=$lt_dlunknown 11801 cat > conftest.$ac_ext <<_LT_EOF 11802#line $LINENO "configure" 11803#include "confdefs.h" 11804 11805#if HAVE_DLFCN_H 11806#include <dlfcn.h> 11807#endif 11808 11809#include <stdio.h> 11810 11811#ifdef RTLD_GLOBAL 11812# define LT_DLGLOBAL RTLD_GLOBAL 11813#else 11814# ifdef DL_GLOBAL 11815# define LT_DLGLOBAL DL_GLOBAL 11816# else 11817# define LT_DLGLOBAL 0 11818# endif 11819#endif 11820 11821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11822 find out it does not work in some platform. */ 11823#ifndef LT_DLLAZY_OR_NOW 11824# ifdef RTLD_LAZY 11825# define LT_DLLAZY_OR_NOW RTLD_LAZY 11826# else 11827# ifdef DL_LAZY 11828# define LT_DLLAZY_OR_NOW DL_LAZY 11829# else 11830# ifdef RTLD_NOW 11831# define LT_DLLAZY_OR_NOW RTLD_NOW 11832# else 11833# ifdef DL_NOW 11834# define LT_DLLAZY_OR_NOW DL_NOW 11835# else 11836# define LT_DLLAZY_OR_NOW 0 11837# endif 11838# endif 11839# endif 11840# endif 11841#endif 11842 11843/* When -fvisbility=hidden is used, assume the code has been annotated 11844 correspondingly for the symbols needed. */ 11845#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11846void fnord () __attribute__((visibility("default"))); 11847#endif 11848 11849void fnord () { int i=42; } 11850int main () 11851{ 11852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11853 int status = $lt_dlunknown; 11854 11855 if (self) 11856 { 11857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11858 else 11859 { 11860 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11861 else puts (dlerror ()); 11862 } 11863 /* dlclose (self); */ 11864 } 11865 else 11866 puts (dlerror ()); 11867 11868 return status; 11869} 11870_LT_EOF 11871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11872 (eval $ac_link) 2>&5 11873 ac_status=$? 11874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11875 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11876 (./conftest; exit; ) >&5 2>/dev/null 11877 lt_status=$? 11878 case x$lt_status in 11879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11881 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11882 esac 11883 else : 11884 # compilation failed 11885 lt_cv_dlopen_self=no 11886 fi 11887fi 11888rm -fr conftest* 11889 11890 11891fi 11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11893$as_echo "$lt_cv_dlopen_self" >&6; } 11894 11895 if test "x$lt_cv_dlopen_self" = xyes; then 11896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11898$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11899if test "${lt_cv_dlopen_self_static+set}" = set; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 if test "$cross_compiling" = yes; then : 11903 lt_cv_dlopen_self_static=cross 11904else 11905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11906 lt_status=$lt_dlunknown 11907 cat > conftest.$ac_ext <<_LT_EOF 11908#line $LINENO "configure" 11909#include "confdefs.h" 11910 11911#if HAVE_DLFCN_H 11912#include <dlfcn.h> 11913#endif 11914 11915#include <stdio.h> 11916 11917#ifdef RTLD_GLOBAL 11918# define LT_DLGLOBAL RTLD_GLOBAL 11919#else 11920# ifdef DL_GLOBAL 11921# define LT_DLGLOBAL DL_GLOBAL 11922# else 11923# define LT_DLGLOBAL 0 11924# endif 11925#endif 11926 11927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11928 find out it does not work in some platform. */ 11929#ifndef LT_DLLAZY_OR_NOW 11930# ifdef RTLD_LAZY 11931# define LT_DLLAZY_OR_NOW RTLD_LAZY 11932# else 11933# ifdef DL_LAZY 11934# define LT_DLLAZY_OR_NOW DL_LAZY 11935# else 11936# ifdef RTLD_NOW 11937# define LT_DLLAZY_OR_NOW RTLD_NOW 11938# else 11939# ifdef DL_NOW 11940# define LT_DLLAZY_OR_NOW DL_NOW 11941# else 11942# define LT_DLLAZY_OR_NOW 0 11943# endif 11944# endif 11945# endif 11946# endif 11947#endif 11948 11949/* When -fvisbility=hidden is used, assume the code has been annotated 11950 correspondingly for the symbols needed. */ 11951#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11952void fnord () __attribute__((visibility("default"))); 11953#endif 11954 11955void fnord () { int i=42; } 11956int main () 11957{ 11958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11959 int status = $lt_dlunknown; 11960 11961 if (self) 11962 { 11963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11964 else 11965 { 11966 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11967 else puts (dlerror ()); 11968 } 11969 /* dlclose (self); */ 11970 } 11971 else 11972 puts (dlerror ()); 11973 11974 return status; 11975} 11976_LT_EOF 11977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11978 (eval $ac_link) 2>&5 11979 ac_status=$? 11980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11981 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11982 (./conftest; exit; ) >&5 2>/dev/null 11983 lt_status=$? 11984 case x$lt_status in 11985 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11986 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11987 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11988 esac 11989 else : 11990 # compilation failed 11991 lt_cv_dlopen_self_static=no 11992 fi 11993fi 11994rm -fr conftest* 11995 11996 11997fi 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11999$as_echo "$lt_cv_dlopen_self_static" >&6; } 12000 fi 12001 12002 CPPFLAGS="$save_CPPFLAGS" 12003 LDFLAGS="$save_LDFLAGS" 12004 LIBS="$save_LIBS" 12005 ;; 12006 esac 12007 12008 case $lt_cv_dlopen_self in 12009 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12010 *) enable_dlopen_self=unknown ;; 12011 esac 12012 12013 case $lt_cv_dlopen_self_static in 12014 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12015 *) enable_dlopen_self_static=unknown ;; 12016 esac 12017fi 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035striplib= 12036old_striplib= 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12038$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12039if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12040 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12041 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12043$as_echo "yes" >&6; } 12044else 12045# FIXME - insert some real tests, host_os isn't really good enough 12046 case $host_os in 12047 darwin*) 12048 if test -n "$STRIP" ; then 12049 striplib="$STRIP -x" 12050 old_striplib="$STRIP -S" 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12052$as_echo "yes" >&6; } 12053 else 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12055$as_echo "no" >&6; } 12056 fi 12057 ;; 12058 *) 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12060$as_echo "no" >&6; } 12061 ;; 12062 esac 12063fi 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 # Report which library types will actually be built 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12078$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12080$as_echo "$can_build_shared" >&6; } 12081 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12083$as_echo_n "checking whether to build shared libraries... " >&6; } 12084 test "$can_build_shared" = "no" && enable_shared=no 12085 12086 # On AIX, shared libraries and static libraries use the same namespace, and 12087 # are all built from PIC. 12088 case $host_os in 12089 aix3*) 12090 test "$enable_shared" = yes && enable_static=no 12091 if test -n "$RANLIB"; then 12092 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12093 postinstall_cmds='$RANLIB $lib' 12094 fi 12095 ;; 12096 12097 aix[4-9]*) 12098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12099 test "$enable_shared" = yes && enable_static=no 12100 fi 12101 ;; 12102 esac 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12104$as_echo "$enable_shared" >&6; } 12105 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12107$as_echo_n "checking whether to build static libraries... " >&6; } 12108 # Make sure either enable_shared or enable_static is yes. 12109 test "$enable_shared" = yes || enable_static=yes 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12111$as_echo "$enable_static" >&6; } 12112 12113 12114 12115 12116fi 12117ac_ext=c 12118ac_cpp='$CPP $CPPFLAGS' 12119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12121ac_compiler_gnu=$ac_cv_c_compiler_gnu 12122 12123CC="$lt_save_CC" 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 ac_config_commands="$ac_config_commands libtool" 12138 12139 12140 12141 12142# Only expand once: 12143 12144 12145ac_ext=cpp 12146ac_cpp='$CXXCPP $CPPFLAGS' 12147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12150if test -z "$CXX"; then 12151 if test -n "$CCC"; then 12152 CXX=$CCC 12153 else 12154 if test -n "$ac_tool_prefix"; then 12155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12156 do 12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12158set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12160$as_echo_n "checking for $ac_word... " >&6; } 12161if test "${ac_cv_prog_CXX+set}" = set; then : 12162 $as_echo_n "(cached) " >&6 12163else 12164 if test -n "$CXX"; then 12165 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12166else 12167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12168for as_dir in $PATH 12169do 12170 IFS=$as_save_IFS 12171 test -z "$as_dir" && as_dir=. 12172 for ac_exec_ext in '' $ac_executable_extensions; do 12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12174 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12176 break 2 12177 fi 12178done 12179 done 12180IFS=$as_save_IFS 12181 12182fi 12183fi 12184CXX=$ac_cv_prog_CXX 12185if test -n "$CXX"; then 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12187$as_echo "$CXX" >&6; } 12188else 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12190$as_echo "no" >&6; } 12191fi 12192 12193 12194 test -n "$CXX" && break 12195 done 12196fi 12197if test -z "$CXX"; then 12198 ac_ct_CXX=$CXX 12199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12200do 12201 # Extract the first word of "$ac_prog", so it can be a program name with args. 12202set dummy $ac_prog; ac_word=$2 12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12204$as_echo_n "checking for $ac_word... " >&6; } 12205if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 12206 $as_echo_n "(cached) " >&6 12207else 12208 if test -n "$ac_ct_CXX"; then 12209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12210else 12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12212for as_dir in $PATH 12213do 12214 IFS=$as_save_IFS 12215 test -z "$as_dir" && as_dir=. 12216 for ac_exec_ext in '' $ac_executable_extensions; do 12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12218 ac_cv_prog_ac_ct_CXX="$ac_prog" 12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12220 break 2 12221 fi 12222done 12223 done 12224IFS=$as_save_IFS 12225 12226fi 12227fi 12228ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12229if test -n "$ac_ct_CXX"; then 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12231$as_echo "$ac_ct_CXX" >&6; } 12232else 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12234$as_echo "no" >&6; } 12235fi 12236 12237 12238 test -n "$ac_ct_CXX" && break 12239done 12240 12241 if test "x$ac_ct_CXX" = x; then 12242 CXX="g++" 12243 else 12244 case $cross_compiling:$ac_tool_warned in 12245yes:) 12246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12248ac_tool_warned=yes ;; 12249esac 12250 CXX=$ac_ct_CXX 12251 fi 12252fi 12253 12254 fi 12255fi 12256# Provide some information about the compiler. 12257$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12258set X $ac_compile 12259ac_compiler=$2 12260for ac_option in --version -v -V -qversion; do 12261 { { ac_try="$ac_compiler $ac_option >&5" 12262case "(($ac_try" in 12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12264 *) ac_try_echo=$ac_try;; 12265esac 12266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12267$as_echo "$ac_try_echo"; } >&5 12268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12269 ac_status=$? 12270 if test -s conftest.err; then 12271 sed '10a\ 12272... rest of stderr output deleted ... 12273 10q' conftest.err >conftest.er1 12274 cat conftest.er1 >&5 12275 fi 12276 rm -f conftest.er1 conftest.err 12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12278 test $ac_status = 0; } 12279done 12280 12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12282$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12283if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 12284 $as_echo_n "(cached) " >&6 12285else 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288 12289int 12290main () 12291{ 12292#ifndef __GNUC__ 12293 choke me 12294#endif 12295 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_cxx_try_compile "$LINENO"; then : 12301 ac_compiler_gnu=yes 12302else 12303 ac_compiler_gnu=no 12304fi 12305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12306ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12307 12308fi 12309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12310$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12311if test $ac_compiler_gnu = yes; then 12312 GXX=yes 12313else 12314 GXX= 12315fi 12316ac_test_CXXFLAGS=${CXXFLAGS+set} 12317ac_save_CXXFLAGS=$CXXFLAGS 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12319$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12320if test "${ac_cv_prog_cxx_g+set}" = set; then : 12321 $as_echo_n "(cached) " >&6 12322else 12323 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12324 ac_cxx_werror_flag=yes 12325 ac_cv_prog_cxx_g=no 12326 CXXFLAGS="-g" 12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12328/* end confdefs.h. */ 12329 12330int 12331main () 12332{ 12333 12334 ; 12335 return 0; 12336} 12337_ACEOF 12338if ac_fn_cxx_try_compile "$LINENO"; then : 12339 ac_cv_prog_cxx_g=yes 12340else 12341 CXXFLAGS="" 12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12343/* end confdefs.h. */ 12344 12345int 12346main () 12347{ 12348 12349 ; 12350 return 0; 12351} 12352_ACEOF 12353if ac_fn_cxx_try_compile "$LINENO"; then : 12354 12355else 12356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12357 CXXFLAGS="-g" 12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360 12361int 12362main () 12363{ 12364 12365 ; 12366 return 0; 12367} 12368_ACEOF 12369if ac_fn_cxx_try_compile "$LINENO"; then : 12370 ac_cv_prog_cxx_g=yes 12371fi 12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12373fi 12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12375fi 12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12380$as_echo "$ac_cv_prog_cxx_g" >&6; } 12381if test "$ac_test_CXXFLAGS" = set; then 12382 CXXFLAGS=$ac_save_CXXFLAGS 12383elif test $ac_cv_prog_cxx_g = yes; then 12384 if test "$GXX" = yes; then 12385 CXXFLAGS="-g -O2" 12386 else 12387 CXXFLAGS="-g" 12388 fi 12389else 12390 if test "$GXX" = yes; then 12391 CXXFLAGS="-O2" 12392 else 12393 CXXFLAGS= 12394 fi 12395fi 12396ac_ext=c 12397ac_cpp='$CPP $CPPFLAGS' 12398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12400ac_compiler_gnu=$ac_cv_c_compiler_gnu 12401 12402depcc="$CXX" am_compiler_list= 12403 12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12405$as_echo_n "checking dependency style of $depcc... " >&6; } 12406if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 12407 $as_echo_n "(cached) " >&6 12408else 12409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12410 # We make a subdir and do the tests there. Otherwise we can end up 12411 # making bogus files that we don't know about and never remove. For 12412 # instance it was reported that on HP-UX the gcc test will end up 12413 # making a dummy file named `D' -- because `-MD' means `put the output 12414 # in D'. 12415 mkdir conftest.dir 12416 # Copy depcomp to subdir because otherwise we won't find it if we're 12417 # using a relative directory. 12418 cp "$am_depcomp" conftest.dir 12419 cd conftest.dir 12420 # We will build objects and dependencies in a subdirectory because 12421 # it helps to detect inapplicable dependency modes. For instance 12422 # both Tru64's cc and ICC support -MD to output dependencies as a 12423 # side effect of compilation, but ICC will put the dependencies in 12424 # the current directory while Tru64 will put them in the object 12425 # directory. 12426 mkdir sub 12427 12428 am_cv_CXX_dependencies_compiler_type=none 12429 if test "$am_compiler_list" = ""; then 12430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12431 fi 12432 am__universal=false 12433 case " $depcc " in #( 12434 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12435 esac 12436 12437 for depmode in $am_compiler_list; do 12438 # Setup a source with many dependencies, because some compilers 12439 # like to wrap large dependency lists on column 80 (with \), and 12440 # we should not choose a depcomp mode which is confused by this. 12441 # 12442 # We need to recreate these files for each test, as the compiler may 12443 # overwrite some of them when testing with obscure command lines. 12444 # This happens at least with the AIX C compiler. 12445 : > sub/conftest.c 12446 for i in 1 2 3 4 5 6; do 12447 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12449 # Solaris 8's {/usr,}/bin/sh. 12450 touch sub/conftst$i.h 12451 done 12452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12453 12454 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12455 # mode. It turns out that the SunPro C++ compiler does not properly 12456 # handle `-M -o', and we need to detect this. Also, some Intel 12457 # versions had trouble with output in subdirs 12458 am__obj=sub/conftest.${OBJEXT-o} 12459 am__minus_obj="-o $am__obj" 12460 case $depmode in 12461 gcc) 12462 # This depmode causes a compiler race in universal mode. 12463 test "$am__universal" = false || continue 12464 ;; 12465 nosideeffect) 12466 # after this tag, mechanisms are not by side-effect, so they'll 12467 # only be used when explicitly requested 12468 if test "x$enable_dependency_tracking" = xyes; then 12469 continue 12470 else 12471 break 12472 fi 12473 ;; 12474 msvisualcpp | msvcmsys) 12475 # This compiler won't grok `-c -o', but also, the minuso test has 12476 # not run yet. These depmodes are late enough in the game, and 12477 # so weak that their functioning should not be impacted. 12478 am__obj=conftest.${OBJEXT-o} 12479 am__minus_obj= 12480 ;; 12481 none) break ;; 12482 esac 12483 if depmode=$depmode \ 12484 source=sub/conftest.c object=$am__obj \ 12485 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12486 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12487 >/dev/null 2>conftest.err && 12488 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12490 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12492 # icc doesn't choke on unknown options, it will just issue warnings 12493 # or remarks (even with -Werror). So we grep stderr for any message 12494 # that says an option was ignored or not supported. 12495 # When given -MP, icc 7.0 and 7.1 complain thusly: 12496 # icc: Command line warning: ignoring option '-M'; no argument required 12497 # The diagnosis changed in icc 8.0: 12498 # icc: Command line remark: option '-MP' not supported 12499 if (grep 'ignoring option' conftest.err || 12500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12501 am_cv_CXX_dependencies_compiler_type=$depmode 12502 break 12503 fi 12504 fi 12505 done 12506 12507 cd .. 12508 rm -rf conftest.dir 12509else 12510 am_cv_CXX_dependencies_compiler_type=none 12511fi 12512 12513fi 12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12515$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12516CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12517 12518 if 12519 test "x$enable_dependency_tracking" != xno \ 12520 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12521 am__fastdepCXX_TRUE= 12522 am__fastdepCXX_FALSE='#' 12523else 12524 am__fastdepCXX_TRUE='#' 12525 am__fastdepCXX_FALSE= 12526fi 12527 12528 12529 12530 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12531 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12532 (test "X$CXX" != "Xg++"))) ; then 12533 ac_ext=cpp 12534ac_cpp='$CXXCPP $CPPFLAGS' 12535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12539$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12540if test -z "$CXXCPP"; then 12541 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 12542 $as_echo_n "(cached) " >&6 12543else 12544 # Double quotes because CXXCPP needs to be expanded 12545 for CXXCPP in "$CXX -E" "/lib/cpp" 12546 do 12547 ac_preproc_ok=false 12548for ac_cxx_preproc_warn_flag in '' yes 12549do 12550 # Use a header file that comes with gcc, so configuring glibc 12551 # with a fresh cross-compiler works. 12552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12553 # <limits.h> exists even on freestanding compilers. 12554 # On the NeXT, cc -E runs the code through the compiler's parser, 12555 # not just through cpp. "Syntax error" is here to catch this case. 12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12557/* end confdefs.h. */ 12558#ifdef __STDC__ 12559# include <limits.h> 12560#else 12561# include <assert.h> 12562#endif 12563 Syntax error 12564_ACEOF 12565if ac_fn_cxx_try_cpp "$LINENO"; then : 12566 12567else 12568 # Broken: fails on valid input. 12569continue 12570fi 12571rm -f conftest.err conftest.$ac_ext 12572 12573 # OK, works on sane cases. Now check whether nonexistent headers 12574 # can be detected and how. 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577#include <ac_nonexistent.h> 12578_ACEOF 12579if ac_fn_cxx_try_cpp "$LINENO"; then : 12580 # Broken: success on invalid input. 12581continue 12582else 12583 # Passes both tests. 12584ac_preproc_ok=: 12585break 12586fi 12587rm -f conftest.err conftest.$ac_ext 12588 12589done 12590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12591rm -f conftest.err conftest.$ac_ext 12592if $ac_preproc_ok; then : 12593 break 12594fi 12595 12596 done 12597 ac_cv_prog_CXXCPP=$CXXCPP 12598 12599fi 12600 CXXCPP=$ac_cv_prog_CXXCPP 12601else 12602 ac_cv_prog_CXXCPP=$CXXCPP 12603fi 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12605$as_echo "$CXXCPP" >&6; } 12606ac_preproc_ok=false 12607for ac_cxx_preproc_warn_flag in '' yes 12608do 12609 # Use a header file that comes with gcc, so configuring glibc 12610 # with a fresh cross-compiler works. 12611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12612 # <limits.h> exists even on freestanding compilers. 12613 # On the NeXT, cc -E runs the code through the compiler's parser, 12614 # not just through cpp. "Syntax error" is here to catch this case. 12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616/* end confdefs.h. */ 12617#ifdef __STDC__ 12618# include <limits.h> 12619#else 12620# include <assert.h> 12621#endif 12622 Syntax error 12623_ACEOF 12624if ac_fn_cxx_try_cpp "$LINENO"; then : 12625 12626else 12627 # Broken: fails on valid input. 12628continue 12629fi 12630rm -f conftest.err conftest.$ac_ext 12631 12632 # OK, works on sane cases. Now check whether nonexistent headers 12633 # can be detected and how. 12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12635/* end confdefs.h. */ 12636#include <ac_nonexistent.h> 12637_ACEOF 12638if ac_fn_cxx_try_cpp "$LINENO"; then : 12639 # Broken: success on invalid input. 12640continue 12641else 12642 # Passes both tests. 12643ac_preproc_ok=: 12644break 12645fi 12646rm -f conftest.err conftest.$ac_ext 12647 12648done 12649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12650rm -f conftest.err conftest.$ac_ext 12651if $ac_preproc_ok; then : 12652 12653else 12654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12656as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 12657See \`config.log' for more details." "$LINENO" 5; } 12658fi 12659 12660ac_ext=c 12661ac_cpp='$CPP $CPPFLAGS' 12662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12664ac_compiler_gnu=$ac_cv_c_compiler_gnu 12665 12666else 12667 _lt_caught_CXX_error=yes 12668fi 12669 12670ac_ext=cpp 12671ac_cpp='$CXXCPP $CPPFLAGS' 12672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12675 12676archive_cmds_need_lc_CXX=no 12677allow_undefined_flag_CXX= 12678always_export_symbols_CXX=no 12679archive_expsym_cmds_CXX= 12680compiler_needs_object_CXX=no 12681export_dynamic_flag_spec_CXX= 12682hardcode_direct_CXX=no 12683hardcode_direct_absolute_CXX=no 12684hardcode_libdir_flag_spec_CXX= 12685hardcode_libdir_flag_spec_ld_CXX= 12686hardcode_libdir_separator_CXX= 12687hardcode_minus_L_CXX=no 12688hardcode_shlibpath_var_CXX=unsupported 12689hardcode_automatic_CXX=no 12690inherit_rpath_CXX=no 12691module_cmds_CXX= 12692module_expsym_cmds_CXX= 12693link_all_deplibs_CXX=unknown 12694old_archive_cmds_CXX=$old_archive_cmds 12695reload_flag_CXX=$reload_flag 12696reload_cmds_CXX=$reload_cmds 12697no_undefined_flag_CXX= 12698whole_archive_flag_spec_CXX= 12699enable_shared_with_static_runtimes_CXX=no 12700 12701# Source file extension for C++ test sources. 12702ac_ext=cpp 12703 12704# Object file extension for compiled C++ test sources. 12705objext=o 12706objext_CXX=$objext 12707 12708# No sense in running all these tests if we already determined that 12709# the CXX compiler isn't working. Some variables (like enable_shared) 12710# are currently assumed to apply to all compilers on this platform, 12711# and will be corrupted by setting them based on a non-working compiler. 12712if test "$_lt_caught_CXX_error" != yes; then 12713 # Code to be used in simple compile tests 12714 lt_simple_compile_test_code="int some_variable = 0;" 12715 12716 # Code to be used in simple link tests 12717 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12718 12719 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12720 12721 12722 12723 12724 12725 12726# If no C compiler was specified, use CC. 12727LTCC=${LTCC-"$CC"} 12728 12729# If no C compiler flags were specified, use CFLAGS. 12730LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12731 12732# Allow CC to be a program name with arguments. 12733compiler=$CC 12734 12735 12736 # save warnings/boilerplate of simple test code 12737 ac_outfile=conftest.$ac_objext 12738echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12740_lt_compiler_boilerplate=`cat conftest.err` 12741$RM conftest* 12742 12743 ac_outfile=conftest.$ac_objext 12744echo "$lt_simple_link_test_code" >conftest.$ac_ext 12745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12746_lt_linker_boilerplate=`cat conftest.err` 12747$RM -r conftest* 12748 12749 12750 # Allow CC to be a program name with arguments. 12751 lt_save_CC=$CC 12752 lt_save_LD=$LD 12753 lt_save_GCC=$GCC 12754 GCC=$GXX 12755 lt_save_with_gnu_ld=$with_gnu_ld 12756 lt_save_path_LD=$lt_cv_path_LD 12757 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12758 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12759 else 12760 $as_unset lt_cv_prog_gnu_ld 12761 fi 12762 if test -n "${lt_cv_path_LDCXX+set}"; then 12763 lt_cv_path_LD=$lt_cv_path_LDCXX 12764 else 12765 $as_unset lt_cv_path_LD 12766 fi 12767 test -z "${LDCXX+set}" || LD=$LDCXX 12768 CC=${CXX-"c++"} 12769 compiler=$CC 12770 compiler_CXX=$CC 12771 for cc_temp in $compiler""; do 12772 case $cc_temp in 12773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12775 \-*) ;; 12776 *) break;; 12777 esac 12778done 12779cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12780 12781 12782 if test -n "$compiler"; then 12783 # We don't want -fno-exception when compiling C++ code, so set the 12784 # no_builtin_flag separately 12785 if test "$GXX" = yes; then 12786 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12787 else 12788 lt_prog_compiler_no_builtin_flag_CXX= 12789 fi 12790 12791 if test "$GXX" = yes; then 12792 # Set up default GNU C++ configuration 12793 12794 12795 12796# Check whether --with-gnu-ld was given. 12797if test "${with_gnu_ld+set}" = set; then : 12798 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12799else 12800 with_gnu_ld=no 12801fi 12802 12803ac_prog=ld 12804if test "$GCC" = yes; then 12805 # Check if gcc -print-prog-name=ld gives a path. 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12807$as_echo_n "checking for ld used by $CC... " >&6; } 12808 case $host in 12809 *-*-mingw*) 12810 # gcc leaves a trailing carriage return which upsets mingw 12811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12812 *) 12813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12814 esac 12815 case $ac_prog in 12816 # Accept absolute paths. 12817 [\\/]* | ?:[\\/]*) 12818 re_direlt='/[^/][^/]*/\.\./' 12819 # Canonicalize the pathname of ld 12820 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12821 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12822 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12823 done 12824 test -z "$LD" && LD="$ac_prog" 12825 ;; 12826 "") 12827 # If it fails, then pretend we aren't using GCC. 12828 ac_prog=ld 12829 ;; 12830 *) 12831 # If it is relative, then search for the first ld in PATH. 12832 with_gnu_ld=unknown 12833 ;; 12834 esac 12835elif test "$with_gnu_ld" = yes; then 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12837$as_echo_n "checking for GNU ld... " >&6; } 12838else 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12840$as_echo_n "checking for non-GNU ld... " >&6; } 12841fi 12842if test "${lt_cv_path_LD+set}" = set; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 if test -z "$LD"; then 12846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12847 for ac_dir in $PATH; do 12848 IFS="$lt_save_ifs" 12849 test -z "$ac_dir" && ac_dir=. 12850 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12851 lt_cv_path_LD="$ac_dir/$ac_prog" 12852 # Check to see if the program is GNU ld. I'd rather use --version, 12853 # but apparently some variants of GNU ld only accept -v. 12854 # Break only if it was the GNU/non-GNU ld that we prefer. 12855 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12856 *GNU* | *'with BFD'*) 12857 test "$with_gnu_ld" != no && break 12858 ;; 12859 *) 12860 test "$with_gnu_ld" != yes && break 12861 ;; 12862 esac 12863 fi 12864 done 12865 IFS="$lt_save_ifs" 12866else 12867 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12868fi 12869fi 12870 12871LD="$lt_cv_path_LD" 12872if test -n "$LD"; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12874$as_echo "$LD" >&6; } 12875else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877$as_echo "no" >&6; } 12878fi 12879test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12881$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12882if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12883 $as_echo_n "(cached) " >&6 12884else 12885 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12886case `$LD -v 2>&1 </dev/null` in 12887*GNU* | *'with BFD'*) 12888 lt_cv_prog_gnu_ld=yes 12889 ;; 12890*) 12891 lt_cv_prog_gnu_ld=no 12892 ;; 12893esac 12894fi 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12896$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12897with_gnu_ld=$lt_cv_prog_gnu_ld 12898 12899 12900 12901 12902 12903 12904 12905 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12906 # archiving commands below assume that GNU ld is being used. 12907 if test "$with_gnu_ld" = yes; then 12908 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12909 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12910 12911 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12913 12914 # If archive_cmds runs LD, not CC, wlarc should be empty 12915 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12916 # investigate it a little bit more. (MM) 12917 wlarc='${wl}' 12918 12919 # ancient GNU ld didn't support --whole-archive et. al. 12920 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12921 $GREP 'no-whole-archive' > /dev/null; then 12922 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12923 else 12924 whole_archive_flag_spec_CXX= 12925 fi 12926 else 12927 with_gnu_ld=no 12928 wlarc= 12929 12930 # A generic and very simple default shared library creation 12931 # command for GNU C++ for the case where it uses the native 12932 # linker, instead of GNU ld. If possible, this setting should 12933 # overridden to take advantage of the native linker features on 12934 # the platform it is being used on. 12935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12936 fi 12937 12938 # Commands to make compiler produce verbose output that lists 12939 # what "hidden" libraries, object files and flags are used when 12940 # linking a shared library. 12941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12942 12943 else 12944 GXX=no 12945 with_gnu_ld=no 12946 wlarc= 12947 fi 12948 12949 # PORTME: fill in a description of your system's C++ link characteristics 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12951$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12952 ld_shlibs_CXX=yes 12953 case $host_os in 12954 aix3*) 12955 # FIXME: insert proper C++ library support 12956 ld_shlibs_CXX=no 12957 ;; 12958 aix[4-9]*) 12959 if test "$host_cpu" = ia64; then 12960 # On IA64, the linker does run time linking by default, so we don't 12961 # have to do anything special. 12962 aix_use_runtimelinking=no 12963 exp_sym_flag='-Bexport' 12964 no_entry_flag="" 12965 else 12966 aix_use_runtimelinking=no 12967 12968 # Test if we are trying to use run time linking or normal 12969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12970 # need to do runtime linking. 12971 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12972 for ld_flag in $LDFLAGS; do 12973 case $ld_flag in 12974 *-brtl*) 12975 aix_use_runtimelinking=yes 12976 break 12977 ;; 12978 esac 12979 done 12980 ;; 12981 esac 12982 12983 exp_sym_flag='-bexport' 12984 no_entry_flag='-bnoentry' 12985 fi 12986 12987 # When large executables or shared objects are built, AIX ld can 12988 # have problems creating the table of contents. If linking a library 12989 # or program results in "error TOC overflow" add -mminimal-toc to 12990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12992 12993 archive_cmds_CXX='' 12994 hardcode_direct_CXX=yes 12995 hardcode_direct_absolute_CXX=yes 12996 hardcode_libdir_separator_CXX=':' 12997 link_all_deplibs_CXX=yes 12998 file_list_spec_CXX='${wl}-f,' 12999 13000 if test "$GXX" = yes; then 13001 case $host_os in aix4.[012]|aix4.[012].*) 13002 # We only want to do this on AIX 4.2 and lower, the check 13003 # below for broken collect2 doesn't work under 4.3+ 13004 collect2name=`${CC} -print-prog-name=collect2` 13005 if test -f "$collect2name" && 13006 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13007 then 13008 # We have reworked collect2 13009 : 13010 else 13011 # We have old collect2 13012 hardcode_direct_CXX=unsupported 13013 # It fails to find uninstalled libraries when the uninstalled 13014 # path is not listed in the libpath. Setting hardcode_minus_L 13015 # to unsupported forces relinking 13016 hardcode_minus_L_CXX=yes 13017 hardcode_libdir_flag_spec_CXX='-L$libdir' 13018 hardcode_libdir_separator_CXX= 13019 fi 13020 esac 13021 shared_flag='-shared' 13022 if test "$aix_use_runtimelinking" = yes; then 13023 shared_flag="$shared_flag "'${wl}-G' 13024 fi 13025 else 13026 # not using gcc 13027 if test "$host_cpu" = ia64; then 13028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13029 # chokes on -Wl,-G. The following line is correct: 13030 shared_flag='-G' 13031 else 13032 if test "$aix_use_runtimelinking" = yes; then 13033 shared_flag='${wl}-G' 13034 else 13035 shared_flag='${wl}-bM:SRE' 13036 fi 13037 fi 13038 fi 13039 13040 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13041 # It seems that -bexpall does not export symbols beginning with 13042 # underscore (_), so it is better to generate a list of symbols to 13043 # export. 13044 always_export_symbols_CXX=yes 13045 if test "$aix_use_runtimelinking" = yes; then 13046 # Warning - without using the other runtime loading flags (-brtl), 13047 # -berok will link without error, but may produce a broken library. 13048 allow_undefined_flag_CXX='-berok' 13049 # Determine the default libpath from the value encoded in an empty 13050 # executable. 13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13052/* end confdefs.h. */ 13053 13054int 13055main () 13056{ 13057 13058 ; 13059 return 0; 13060} 13061_ACEOF 13062if ac_fn_cxx_try_link "$LINENO"; then : 13063 13064lt_aix_libpath_sed=' 13065 /Import File Strings/,/^$/ { 13066 /^0/ { 13067 s/^0 *\(.*\)$/\1/ 13068 p 13069 } 13070 }' 13071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13072# Check for a 64-bit object if we didn't find anything. 13073if test -z "$aix_libpath"; then 13074 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13075fi 13076fi 13077rm -f core conftest.err conftest.$ac_objext \ 13078 conftest$ac_exeext conftest.$ac_ext 13079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13080 13081 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13082 13083 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" 13084 else 13085 if test "$host_cpu" = ia64; then 13086 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13087 allow_undefined_flag_CXX="-z nodefs" 13088 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" 13089 else 13090 # Determine the default libpath from the value encoded in an 13091 # empty executable. 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094 13095int 13096main () 13097{ 13098 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103if ac_fn_cxx_try_link "$LINENO"; then : 13104 13105lt_aix_libpath_sed=' 13106 /Import File Strings/,/^$/ { 13107 /^0/ { 13108 s/^0 *\(.*\)$/\1/ 13109 p 13110 } 13111 }' 13112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13113# Check for a 64-bit object if we didn't find anything. 13114if test -z "$aix_libpath"; then 13115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13116fi 13117fi 13118rm -f core conftest.err conftest.$ac_objext \ 13119 conftest$ac_exeext conftest.$ac_ext 13120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13121 13122 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13123 # Warning - without using the other run time loading flags, 13124 # -berok will link without error, but may produce a broken library. 13125 no_undefined_flag_CXX=' ${wl}-bernotok' 13126 allow_undefined_flag_CXX=' ${wl}-berok' 13127 if test "$with_gnu_ld" = yes; then 13128 # We only use this code for GNU lds that support --whole-archive. 13129 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13130 else 13131 # Exported symbols can be pulled into shared objects from archives 13132 whole_archive_flag_spec_CXX='$convenience' 13133 fi 13134 archive_cmds_need_lc_CXX=yes 13135 # This is similar to how AIX traditionally builds its shared 13136 # libraries. 13137 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' 13138 fi 13139 fi 13140 ;; 13141 13142 beos*) 13143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13144 allow_undefined_flag_CXX=unsupported 13145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13146 # support --undefined. This deserves some investigation. FIXME 13147 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13148 else 13149 ld_shlibs_CXX=no 13150 fi 13151 ;; 13152 13153 chorus*) 13154 case $cc_basename in 13155 *) 13156 # FIXME: insert proper C++ library support 13157 ld_shlibs_CXX=no 13158 ;; 13159 esac 13160 ;; 13161 13162 cygwin* | mingw* | pw32* | cegcc*) 13163 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13164 # as there is no search path for DLLs. 13165 hardcode_libdir_flag_spec_CXX='-L$libdir' 13166 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13167 allow_undefined_flag_CXX=unsupported 13168 always_export_symbols_CXX=no 13169 enable_shared_with_static_runtimes_CXX=yes 13170 13171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13172 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' 13173 # If the export-symbols file already is a .def file (1st line 13174 # is EXPORTS), use it as is; otherwise, prepend... 13175 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13176 cp $export_symbols $output_objdir/$soname.def; 13177 else 13178 echo EXPORTS > $output_objdir/$soname.def; 13179 cat $export_symbols >> $output_objdir/$soname.def; 13180 fi~ 13181 $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' 13182 else 13183 ld_shlibs_CXX=no 13184 fi 13185 ;; 13186 darwin* | rhapsody*) 13187 13188 13189 archive_cmds_need_lc_CXX=no 13190 hardcode_direct_CXX=no 13191 hardcode_automatic_CXX=yes 13192 hardcode_shlibpath_var_CXX=unsupported 13193 if test "$lt_cv_ld_force_load" = "yes"; then 13194 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\"`' 13195 else 13196 whole_archive_flag_spec_CXX='' 13197 fi 13198 link_all_deplibs_CXX=yes 13199 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13200 case $cc_basename in 13201 ifort*) _lt_dar_can_shared=yes ;; 13202 *) _lt_dar_can_shared=$GCC ;; 13203 esac 13204 if test "$_lt_dar_can_shared" = "yes"; then 13205 output_verbose_link_cmd=func_echo_all 13206 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}" 13207 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13208 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}" 13209 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}" 13210 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13211 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}" 13212 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}" 13213 fi 13214 13215 else 13216 ld_shlibs_CXX=no 13217 fi 13218 13219 ;; 13220 13221 dgux*) 13222 case $cc_basename in 13223 ec++*) 13224 # FIXME: insert proper C++ library support 13225 ld_shlibs_CXX=no 13226 ;; 13227 ghcx*) 13228 # Green Hills C++ Compiler 13229 # FIXME: insert proper C++ library support 13230 ld_shlibs_CXX=no 13231 ;; 13232 *) 13233 # FIXME: insert proper C++ library support 13234 ld_shlibs_CXX=no 13235 ;; 13236 esac 13237 ;; 13238 13239 freebsd[12]*) 13240 # C++ shared libraries reported to be fairly broken before 13241 # switch to ELF 13242 ld_shlibs_CXX=no 13243 ;; 13244 13245 freebsd-elf*) 13246 archive_cmds_need_lc_CXX=no 13247 ;; 13248 13249 freebsd* | dragonfly*) 13250 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13251 # conventions 13252 ld_shlibs_CXX=yes 13253 ;; 13254 13255 gnu*) 13256 ;; 13257 13258 haiku*) 13259 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13260 link_all_deplibs_CXX=yes 13261 ;; 13262 13263 hpux9*) 13264 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13265 hardcode_libdir_separator_CXX=: 13266 export_dynamic_flag_spec_CXX='${wl}-E' 13267 hardcode_direct_CXX=yes 13268 hardcode_minus_L_CXX=yes # Not in the search PATH, 13269 # but as the default 13270 # location of the library. 13271 13272 case $cc_basename in 13273 CC*) 13274 # FIXME: insert proper C++ library support 13275 ld_shlibs_CXX=no 13276 ;; 13277 aCC*) 13278 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' 13279 # Commands to make compiler produce verbose output that lists 13280 # what "hidden" libraries, object files and flags are used when 13281 # linking a shared library. 13282 # 13283 # There doesn't appear to be a way to prevent this compiler from 13284 # explicitly linking system object files so we need to strip them 13285 # from the output so that they don't get included in the library 13286 # dependencies. 13287 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"' 13288 ;; 13289 *) 13290 if test "$GXX" = yes; then 13291 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 13292 else 13293 # FIXME: insert proper C++ library support 13294 ld_shlibs_CXX=no 13295 fi 13296 ;; 13297 esac 13298 ;; 13299 13300 hpux10*|hpux11*) 13301 if test $with_gnu_ld = no; then 13302 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13303 hardcode_libdir_separator_CXX=: 13304 13305 case $host_cpu in 13306 hppa*64*|ia64*) 13307 ;; 13308 *) 13309 export_dynamic_flag_spec_CXX='${wl}-E' 13310 ;; 13311 esac 13312 fi 13313 case $host_cpu in 13314 hppa*64*|ia64*) 13315 hardcode_direct_CXX=no 13316 hardcode_shlibpath_var_CXX=no 13317 ;; 13318 *) 13319 hardcode_direct_CXX=yes 13320 hardcode_direct_absolute_CXX=yes 13321 hardcode_minus_L_CXX=yes # Not in the search PATH, 13322 # but as the default 13323 # location of the library. 13324 ;; 13325 esac 13326 13327 case $cc_basename in 13328 CC*) 13329 # FIXME: insert proper C++ library support 13330 ld_shlibs_CXX=no 13331 ;; 13332 aCC*) 13333 case $host_cpu in 13334 hppa*64*) 13335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13336 ;; 13337 ia64*) 13338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13339 ;; 13340 *) 13341 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13342 ;; 13343 esac 13344 # Commands to make compiler produce verbose output that lists 13345 # what "hidden" libraries, object files and flags are used when 13346 # linking a shared library. 13347 # 13348 # There doesn't appear to be a way to prevent this compiler from 13349 # explicitly linking system object files so we need to strip them 13350 # from the output so that they don't get included in the library 13351 # dependencies. 13352 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"' 13353 ;; 13354 *) 13355 if test "$GXX" = yes; then 13356 if test $with_gnu_ld = no; then 13357 case $host_cpu in 13358 hppa*64*) 13359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13360 ;; 13361 ia64*) 13362 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13363 ;; 13364 *) 13365 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13366 ;; 13367 esac 13368 fi 13369 else 13370 # FIXME: insert proper C++ library support 13371 ld_shlibs_CXX=no 13372 fi 13373 ;; 13374 esac 13375 ;; 13376 13377 interix[3-9]*) 13378 hardcode_direct_CXX=no 13379 hardcode_shlibpath_var_CXX=no 13380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13381 export_dynamic_flag_spec_CXX='${wl}-E' 13382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13383 # Instead, shared libraries are loaded at an image base (0x10000000 by 13384 # default) and relocated if they conflict, which is a slow very memory 13385 # consuming and fragmenting process. To avoid this, we pick a random, 13386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13387 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13388 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' 13389 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' 13390 ;; 13391 irix5* | irix6*) 13392 case $cc_basename in 13393 CC*) 13394 # SGI C++ 13395 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' 13396 13397 # Archives containing C++ object files must be created using 13398 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13399 # necessary to make sure instantiated templates are included 13400 # in the archive. 13401 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13402 ;; 13403 *) 13404 if test "$GXX" = yes; then 13405 if test "$with_gnu_ld" = no; then 13406 archive_cmds_CXX='$CC -shared -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' 13407 else 13408 archive_cmds_CXX='$CC -shared -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' 13409 fi 13410 fi 13411 link_all_deplibs_CXX=yes 13412 ;; 13413 esac 13414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13415 hardcode_libdir_separator_CXX=: 13416 inherit_rpath_CXX=yes 13417 ;; 13418 13419 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13420 case $cc_basename in 13421 KCC*) 13422 # Kuck and Associates, Inc. (KAI) C++ Compiler 13423 13424 # KCC will only create a shared library if the output file 13425 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13426 # to its proper name (with version) after linking. 13427 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' 13428 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' 13429 # Commands to make compiler produce verbose output that lists 13430 # what "hidden" libraries, object files and flags are used when 13431 # linking a shared library. 13432 # 13433 # There doesn't appear to be a way to prevent this compiler from 13434 # explicitly linking system object files so we need to strip them 13435 # from the output so that they don't get included in the library 13436 # dependencies. 13437 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"' 13438 13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13441 13442 # Archives containing C++ object files must be created using 13443 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13444 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13445 ;; 13446 icpc* | ecpc* ) 13447 # Intel C++ 13448 with_gnu_ld=yes 13449 # version 8.0 and above of icpc choke on multiply defined symbols 13450 # if we add $predep_objects and $postdep_objects, however 7.1 and 13451 # earlier do not add the objects themselves. 13452 case `$CC -V 2>&1` in 13453 *"Version 7."*) 13454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13455 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' 13456 ;; 13457 *) # Version 8.0 or newer 13458 tmp_idyn= 13459 case $host_cpu in 13460 ia64*) tmp_idyn=' -i_dynamic';; 13461 esac 13462 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13463 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' 13464 ;; 13465 esac 13466 archive_cmds_need_lc_CXX=no 13467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13469 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13470 ;; 13471 pgCC* | pgcpp*) 13472 # Portland Group C++ compiler 13473 case `$CC -V` in 13474 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13475 prelink_cmds_CXX='tpldir=Template.dir~ 13476 rm -rf $tpldir~ 13477 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13478 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13479 old_archive_cmds_CXX='tpldir=Template.dir~ 13480 rm -rf $tpldir~ 13481 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13482 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13483 $RANLIB $oldlib' 13484 archive_cmds_CXX='tpldir=Template.dir~ 13485 rm -rf $tpldir~ 13486 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13487 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13488 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13489 rm -rf $tpldir~ 13490 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13491 $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' 13492 ;; 13493 *) # Version 6 and above use weak symbols 13494 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13495 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' 13496 ;; 13497 esac 13498 13499 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13501 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' 13502 ;; 13503 cxx*) 13504 # Compaq C++ 13505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13506 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' 13507 13508 runpath_var=LD_RUN_PATH 13509 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13510 hardcode_libdir_separator_CXX=: 13511 13512 # Commands to make compiler produce verbose output that lists 13513 # what "hidden" libraries, object files and flags are used when 13514 # linking a shared library. 13515 # 13516 # There doesn't appear to be a way to prevent this compiler from 13517 # explicitly linking system object files so we need to strip them 13518 # from the output so that they don't get included in the library 13519 # dependencies. 13520 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' 13521 ;; 13522 xl* | mpixl* | bgxl*) 13523 # IBM XL 8.0 on PPC, with GNU ld 13524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13526 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13527 if test "x$supports_anon_versioning" = xyes; then 13528 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13530 echo "local: *; };" >> $output_objdir/$libname.ver~ 13531 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13532 fi 13533 ;; 13534 *) 13535 case `$CC -V 2>&1 | sed 5q` in 13536 *Sun\ C*) 13537 # Sun C++ 5.9 13538 no_undefined_flag_CXX=' -zdefs' 13539 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13540 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' 13541 hardcode_libdir_flag_spec_CXX='-R$libdir' 13542 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' 13543 compiler_needs_object_CXX=yes 13544 13545 # Not sure whether something based on 13546 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13547 # would be better. 13548 output_verbose_link_cmd='func_echo_all' 13549 13550 # Archives containing C++ object files must be created using 13551 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13552 # necessary to make sure instantiated templates are included 13553 # in the archive. 13554 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13555 ;; 13556 esac 13557 ;; 13558 esac 13559 ;; 13560 13561 lynxos*) 13562 # FIXME: insert proper C++ library support 13563 ld_shlibs_CXX=no 13564 ;; 13565 13566 m88k*) 13567 # FIXME: insert proper C++ library support 13568 ld_shlibs_CXX=no 13569 ;; 13570 13571 mvs*) 13572 case $cc_basename in 13573 cxx*) 13574 # FIXME: insert proper C++ library support 13575 ld_shlibs_CXX=no 13576 ;; 13577 *) 13578 # FIXME: insert proper C++ library support 13579 ld_shlibs_CXX=no 13580 ;; 13581 esac 13582 ;; 13583 13584 netbsd*) 13585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13586 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13587 wlarc= 13588 hardcode_libdir_flag_spec_CXX='-R$libdir' 13589 hardcode_direct_CXX=yes 13590 hardcode_shlibpath_var_CXX=no 13591 fi 13592 # Workaround some broken pre-1.5 toolchains 13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13594 ;; 13595 13596 *nto* | *qnx*) 13597 ld_shlibs_CXX=yes 13598 ;; 13599 13600 openbsd2*) 13601 # C++ shared libraries are fairly broken 13602 ld_shlibs_CXX=no 13603 ;; 13604 13605 openbsd*) 13606 if test -f /usr/libexec/ld.so; then 13607 hardcode_direct_CXX=yes 13608 hardcode_shlibpath_var_CXX=no 13609 hardcode_direct_absolute_CXX=yes 13610 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13613 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13614 export_dynamic_flag_spec_CXX='${wl}-E' 13615 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13616 fi 13617 output_verbose_link_cmd=func_echo_all 13618 else 13619 ld_shlibs_CXX=no 13620 fi 13621 ;; 13622 13623 osf3* | osf4* | osf5*) 13624 case $cc_basename in 13625 KCC*) 13626 # Kuck and Associates, Inc. (KAI) C++ Compiler 13627 13628 # KCC will only create a shared library if the output file 13629 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13630 # to its proper name (with version) after linking. 13631 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' 13632 13633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13634 hardcode_libdir_separator_CXX=: 13635 13636 # Archives containing C++ object files must be created using 13637 # the KAI C++ compiler. 13638 case $host in 13639 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13640 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13641 esac 13642 ;; 13643 RCC*) 13644 # Rational C++ 2.4.1 13645 # FIXME: insert proper C++ library support 13646 ld_shlibs_CXX=no 13647 ;; 13648 cxx*) 13649 case $host in 13650 osf3*) 13651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13652 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' 13653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13654 ;; 13655 *) 13656 allow_undefined_flag_CXX=' -expect_unresolved \*' 13657 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' 13658 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13659 echo "-hidden">> $lib.exp~ 13660 $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~ 13661 $RM $lib.exp' 13662 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13663 ;; 13664 esac 13665 13666 hardcode_libdir_separator_CXX=: 13667 13668 # Commands to make compiler produce verbose output that lists 13669 # what "hidden" libraries, object files and flags are used when 13670 # linking a shared library. 13671 # 13672 # There doesn't appear to be a way to prevent this compiler from 13673 # explicitly linking system object files so we need to strip them 13674 # from the output so that they don't get included in the library 13675 # dependencies. 13676 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"' 13677 ;; 13678 *) 13679 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13680 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13681 case $host in 13682 osf3*) 13683 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' 13684 ;; 13685 *) 13686 archive_cmds_CXX='$CC -shared -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' 13687 ;; 13688 esac 13689 13690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13691 hardcode_libdir_separator_CXX=: 13692 13693 # Commands to make compiler produce verbose output that lists 13694 # what "hidden" libraries, object files and flags are used when 13695 # linking a shared library. 13696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13697 13698 else 13699 # FIXME: insert proper C++ library support 13700 ld_shlibs_CXX=no 13701 fi 13702 ;; 13703 esac 13704 ;; 13705 13706 psos*) 13707 # FIXME: insert proper C++ library support 13708 ld_shlibs_CXX=no 13709 ;; 13710 13711 sunos4*) 13712 case $cc_basename in 13713 CC*) 13714 # Sun C++ 4.x 13715 # FIXME: insert proper C++ library support 13716 ld_shlibs_CXX=no 13717 ;; 13718 lcc*) 13719 # Lucid 13720 # FIXME: insert proper C++ library support 13721 ld_shlibs_CXX=no 13722 ;; 13723 *) 13724 # FIXME: insert proper C++ library support 13725 ld_shlibs_CXX=no 13726 ;; 13727 esac 13728 ;; 13729 13730 solaris*) 13731 case $cc_basename in 13732 CC* | sunCC*) 13733 # Sun C++ 4.2, 5.x and Centerline C++ 13734 archive_cmds_need_lc_CXX=yes 13735 no_undefined_flag_CXX=' -zdefs' 13736 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13737 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13738 $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' 13739 13740 hardcode_libdir_flag_spec_CXX='-R$libdir' 13741 hardcode_shlibpath_var_CXX=no 13742 case $host_os in 13743 solaris2.[0-5] | solaris2.[0-5].*) ;; 13744 *) 13745 # The compiler driver will combine and reorder linker options, 13746 # but understands `-z linker_flag'. 13747 # Supported since Solaris 2.6 (maybe 2.5.1?) 13748 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13749 ;; 13750 esac 13751 link_all_deplibs_CXX=yes 13752 13753 output_verbose_link_cmd='func_echo_all' 13754 13755 # Archives containing C++ object files must be created using 13756 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13757 # necessary to make sure instantiated templates are included 13758 # in the archive. 13759 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13760 ;; 13761 gcx*) 13762 # Green Hills C++ Compiler 13763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13764 13765 # The C++ compiler must be used to create the archive. 13766 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13767 ;; 13768 *) 13769 # GNU C++ compiler with Solaris linker 13770 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13771 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13772 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13773 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13774 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13775 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13776 13777 # Commands to make compiler produce verbose output that lists 13778 # what "hidden" libraries, object files and flags are used when 13779 # linking a shared library. 13780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13781 else 13782 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13783 # platform. 13784 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13785 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13786 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13787 13788 # Commands to make compiler produce verbose output that lists 13789 # what "hidden" libraries, object files and flags are used when 13790 # linking a shared library. 13791 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13792 fi 13793 13794 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13795 case $host_os in 13796 solaris2.[0-5] | solaris2.[0-5].*) ;; 13797 *) 13798 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13799 ;; 13800 esac 13801 fi 13802 ;; 13803 esac 13804 ;; 13805 13806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13807 no_undefined_flag_CXX='${wl}-z,text' 13808 archive_cmds_need_lc_CXX=no 13809 hardcode_shlibpath_var_CXX=no 13810 runpath_var='LD_RUN_PATH' 13811 13812 case $cc_basename in 13813 CC*) 13814 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13815 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13816 ;; 13817 *) 13818 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13819 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13820 ;; 13821 esac 13822 ;; 13823 13824 sysv5* | sco3.2v5* | sco5v6*) 13825 # Note: We can NOT use -z defs as we might desire, because we do not 13826 # link with -lc, and that would cause any symbols used from libc to 13827 # always be unresolved, which means just about no library would 13828 # ever link correctly. If we're not using GNU ld we use -z text 13829 # though, which does catch some bad symbols but isn't as heavy-handed 13830 # as -z defs. 13831 no_undefined_flag_CXX='${wl}-z,text' 13832 allow_undefined_flag_CXX='${wl}-z,nodefs' 13833 archive_cmds_need_lc_CXX=no 13834 hardcode_shlibpath_var_CXX=no 13835 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13836 hardcode_libdir_separator_CXX=':' 13837 link_all_deplibs_CXX=yes 13838 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13839 runpath_var='LD_RUN_PATH' 13840 13841 case $cc_basename in 13842 CC*) 13843 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13844 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13845 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13846 '"$old_archive_cmds_CXX" 13847 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13848 '"$reload_cmds_CXX" 13849 ;; 13850 *) 13851 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13852 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13853 ;; 13854 esac 13855 ;; 13856 13857 tandem*) 13858 case $cc_basename in 13859 NCC*) 13860 # NonStop-UX NCC 3.20 13861 # FIXME: insert proper C++ library support 13862 ld_shlibs_CXX=no 13863 ;; 13864 *) 13865 # FIXME: insert proper C++ library support 13866 ld_shlibs_CXX=no 13867 ;; 13868 esac 13869 ;; 13870 13871 vxworks*) 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 ;; 13875 13876 *) 13877 # FIXME: insert proper C++ library support 13878 ld_shlibs_CXX=no 13879 ;; 13880 esac 13881 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13883$as_echo "$ld_shlibs_CXX" >&6; } 13884 test "$ld_shlibs_CXX" = no && can_build_shared=no 13885 13886 GCC_CXX="$GXX" 13887 LD_CXX="$LD" 13888 13889 ## CAVEAT EMPTOR: 13890 ## There is no encapsulation within the following macros, do not change 13891 ## the running order or otherwise move them around unless you know exactly 13892 ## what you are doing... 13893 # Dependencies to place before and after the object being linked: 13894predep_objects_CXX= 13895postdep_objects_CXX= 13896predeps_CXX= 13897postdeps_CXX= 13898compiler_lib_search_path_CXX= 13899 13900cat > conftest.$ac_ext <<_LT_EOF 13901class Foo 13902{ 13903public: 13904 Foo (void) { a = 0; } 13905private: 13906 int a; 13907}; 13908_LT_EOF 13909 13910if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13911 (eval $ac_compile) 2>&5 13912 ac_status=$? 13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13914 test $ac_status = 0; }; then 13915 # Parse the compiler output and extract the necessary 13916 # objects, libraries and library flags. 13917 13918 # Sentinel used to keep track of whether or not we are before 13919 # the conftest object file. 13920 pre_test_object_deps_done=no 13921 13922 for p in `eval "$output_verbose_link_cmd"`; do 13923 case $p in 13924 13925 -L* | -R* | -l*) 13926 # Some compilers place space between "-{L,R}" and the path. 13927 # Remove the space. 13928 if test $p = "-L" || 13929 test $p = "-R"; then 13930 prev=$p 13931 continue 13932 else 13933 prev= 13934 fi 13935 13936 if test "$pre_test_object_deps_done" = no; then 13937 case $p in 13938 -L* | -R*) 13939 # Internal compiler library paths should come after those 13940 # provided the user. The postdeps already come after the 13941 # user supplied libs so there is no need to process them. 13942 if test -z "$compiler_lib_search_path_CXX"; then 13943 compiler_lib_search_path_CXX="${prev}${p}" 13944 else 13945 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13946 fi 13947 ;; 13948 # The "-l" case would never come before the object being 13949 # linked, so don't bother handling this case. 13950 esac 13951 else 13952 if test -z "$postdeps_CXX"; then 13953 postdeps_CXX="${prev}${p}" 13954 else 13955 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13956 fi 13957 fi 13958 ;; 13959 13960 *.$objext) 13961 # This assumes that the test object file only shows up 13962 # once in the compiler output. 13963 if test "$p" = "conftest.$objext"; then 13964 pre_test_object_deps_done=yes 13965 continue 13966 fi 13967 13968 if test "$pre_test_object_deps_done" = no; then 13969 if test -z "$predep_objects_CXX"; then 13970 predep_objects_CXX="$p" 13971 else 13972 predep_objects_CXX="$predep_objects_CXX $p" 13973 fi 13974 else 13975 if test -z "$postdep_objects_CXX"; then 13976 postdep_objects_CXX="$p" 13977 else 13978 postdep_objects_CXX="$postdep_objects_CXX $p" 13979 fi 13980 fi 13981 ;; 13982 13983 *) ;; # Ignore the rest. 13984 13985 esac 13986 done 13987 13988 # Clean up. 13989 rm -f a.out a.exe 13990else 13991 echo "libtool.m4: error: problem compiling CXX test program" 13992fi 13993 13994$RM -f confest.$objext 13995 13996# PORTME: override above test on systems where it is broken 13997case $host_os in 13998interix[3-9]*) 13999 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14000 # hack all around it, let's just trust "g++" to DTRT. 14001 predep_objects_CXX= 14002 postdep_objects_CXX= 14003 postdeps_CXX= 14004 ;; 14005 14006linux*) 14007 case `$CC -V 2>&1 | sed 5q` in 14008 *Sun\ C*) 14009 # Sun C++ 5.9 14010 14011 # The more standards-conforming stlport4 library is 14012 # incompatible with the Cstd library. Avoid specifying 14013 # it if it's in CXXFLAGS. Ignore libCrun as 14014 # -library=stlport4 depends on it. 14015 case " $CXX $CXXFLAGS " in 14016 *" -library=stlport4 "*) 14017 solaris_use_stlport4=yes 14018 ;; 14019 esac 14020 14021 if test "$solaris_use_stlport4" != yes; then 14022 postdeps_CXX='-library=Cstd -library=Crun' 14023 fi 14024 ;; 14025 esac 14026 ;; 14027 14028solaris*) 14029 case $cc_basename in 14030 CC* | sunCC*) 14031 # The more standards-conforming stlport4 library is 14032 # incompatible with the Cstd library. Avoid specifying 14033 # it if it's in CXXFLAGS. Ignore libCrun as 14034 # -library=stlport4 depends on it. 14035 case " $CXX $CXXFLAGS " in 14036 *" -library=stlport4 "*) 14037 solaris_use_stlport4=yes 14038 ;; 14039 esac 14040 14041 # Adding this requires a known-good setup of shared libraries for 14042 # Sun compiler versions before 5.6, else PIC objects from an old 14043 # archive will be linked into the output, leading to subtle bugs. 14044 if test "$solaris_use_stlport4" != yes; then 14045 postdeps_CXX='-library=Cstd -library=Crun' 14046 fi 14047 ;; 14048 esac 14049 ;; 14050esac 14051 14052 14053case " $postdeps_CXX " in 14054*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14055esac 14056 compiler_lib_search_dirs_CXX= 14057if test -n "${compiler_lib_search_path_CXX}"; then 14058 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14059fi 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 lt_prog_compiler_wl_CXX= 14092lt_prog_compiler_pic_CXX= 14093lt_prog_compiler_static_CXX= 14094 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14096$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14097 14098 # C++ specific cases for pic, static, wl, etc. 14099 if test "$GXX" = yes; then 14100 lt_prog_compiler_wl_CXX='-Wl,' 14101 lt_prog_compiler_static_CXX='-static' 14102 14103 case $host_os in 14104 aix*) 14105 # All AIX code is PIC. 14106 if test "$host_cpu" = ia64; then 14107 # AIX 5 now supports IA64 processor 14108 lt_prog_compiler_static_CXX='-Bstatic' 14109 fi 14110 ;; 14111 14112 amigaos*) 14113 case $host_cpu in 14114 powerpc) 14115 # see comment about AmigaOS4 .so support 14116 lt_prog_compiler_pic_CXX='-fPIC' 14117 ;; 14118 m68k) 14119 # FIXME: we need at least 68020 code to build shared libraries, but 14120 # adding the `-m68020' flag to GCC prevents building anything better, 14121 # like `-m68040'. 14122 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14123 ;; 14124 esac 14125 ;; 14126 14127 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14128 # PIC is the default for these OSes. 14129 ;; 14130 mingw* | cygwin* | os2* | pw32* | cegcc*) 14131 # This hack is so that the source file can tell whether it is being 14132 # built for inclusion in a dll (and should export symbols for example). 14133 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14134 # (--disable-auto-import) libraries 14135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14136 ;; 14137 darwin* | rhapsody*) 14138 # PIC is the default on this platform 14139 # Common symbols not allowed in MH_DYLIB files 14140 lt_prog_compiler_pic_CXX='-fno-common' 14141 ;; 14142 *djgpp*) 14143 # DJGPP does not support shared libraries at all 14144 lt_prog_compiler_pic_CXX= 14145 ;; 14146 haiku*) 14147 # PIC is the default for Haiku. 14148 # The "-static" flag exists, but is broken. 14149 lt_prog_compiler_static_CXX= 14150 ;; 14151 interix[3-9]*) 14152 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14153 # Instead, we relocate shared libraries at runtime. 14154 ;; 14155 sysv4*MP*) 14156 if test -d /usr/nec; then 14157 lt_prog_compiler_pic_CXX=-Kconform_pic 14158 fi 14159 ;; 14160 hpux*) 14161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14163 # sets the default TLS model and affects inlining. 14164 case $host_cpu in 14165 hppa*64*) 14166 ;; 14167 *) 14168 lt_prog_compiler_pic_CXX='-fPIC' 14169 ;; 14170 esac 14171 ;; 14172 *qnx* | *nto*) 14173 # QNX uses GNU C++, but need to define -shared option too, otherwise 14174 # it will coredump. 14175 lt_prog_compiler_pic_CXX='-fPIC -shared' 14176 ;; 14177 *) 14178 lt_prog_compiler_pic_CXX='-fPIC' 14179 ;; 14180 esac 14181 else 14182 case $host_os in 14183 aix[4-9]*) 14184 # All AIX code is PIC. 14185 if test "$host_cpu" = ia64; then 14186 # AIX 5 now supports IA64 processor 14187 lt_prog_compiler_static_CXX='-Bstatic' 14188 else 14189 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14190 fi 14191 ;; 14192 chorus*) 14193 case $cc_basename in 14194 cxch68*) 14195 # Green Hills C++ Compiler 14196 # _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" 14197 ;; 14198 esac 14199 ;; 14200 dgux*) 14201 case $cc_basename in 14202 ec++*) 14203 lt_prog_compiler_pic_CXX='-KPIC' 14204 ;; 14205 ghcx*) 14206 # Green Hills C++ Compiler 14207 lt_prog_compiler_pic_CXX='-pic' 14208 ;; 14209 *) 14210 ;; 14211 esac 14212 ;; 14213 freebsd* | dragonfly*) 14214 # FreeBSD uses GNU C++ 14215 ;; 14216 hpux9* | hpux10* | hpux11*) 14217 case $cc_basename in 14218 CC*) 14219 lt_prog_compiler_wl_CXX='-Wl,' 14220 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14221 if test "$host_cpu" != ia64; then 14222 lt_prog_compiler_pic_CXX='+Z' 14223 fi 14224 ;; 14225 aCC*) 14226 lt_prog_compiler_wl_CXX='-Wl,' 14227 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14228 case $host_cpu in 14229 hppa*64*|ia64*) 14230 # +Z the default 14231 ;; 14232 *) 14233 lt_prog_compiler_pic_CXX='+Z' 14234 ;; 14235 esac 14236 ;; 14237 *) 14238 ;; 14239 esac 14240 ;; 14241 interix*) 14242 # This is c89, which is MS Visual C++ (no shared libs) 14243 # Anyone wants to do a port? 14244 ;; 14245 irix5* | irix6* | nonstopux*) 14246 case $cc_basename in 14247 CC*) 14248 lt_prog_compiler_wl_CXX='-Wl,' 14249 lt_prog_compiler_static_CXX='-non_shared' 14250 # CC pic flag -KPIC is the default. 14251 ;; 14252 *) 14253 ;; 14254 esac 14255 ;; 14256 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14257 case $cc_basename in 14258 KCC*) 14259 # KAI C++ Compiler 14260 lt_prog_compiler_wl_CXX='--backend -Wl,' 14261 lt_prog_compiler_pic_CXX='-fPIC' 14262 ;; 14263 ecpc* ) 14264 # old Intel C++ for x86_64 which still supported -KPIC. 14265 lt_prog_compiler_wl_CXX='-Wl,' 14266 lt_prog_compiler_pic_CXX='-KPIC' 14267 lt_prog_compiler_static_CXX='-static' 14268 ;; 14269 icpc* ) 14270 # Intel C++, used to be incompatible with GCC. 14271 # ICC 10 doesn't accept -KPIC any more. 14272 lt_prog_compiler_wl_CXX='-Wl,' 14273 lt_prog_compiler_pic_CXX='-fPIC' 14274 lt_prog_compiler_static_CXX='-static' 14275 ;; 14276 pgCC* | pgcpp*) 14277 # Portland Group C++ compiler 14278 lt_prog_compiler_wl_CXX='-Wl,' 14279 lt_prog_compiler_pic_CXX='-fpic' 14280 lt_prog_compiler_static_CXX='-Bstatic' 14281 ;; 14282 cxx*) 14283 # Compaq C++ 14284 # Make sure the PIC flag is empty. It appears that all Alpha 14285 # Linux and Compaq Tru64 Unix objects are PIC. 14286 lt_prog_compiler_pic_CXX= 14287 lt_prog_compiler_static_CXX='-non_shared' 14288 ;; 14289 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14290 # IBM XL 8.0, 9.0 on PPC and BlueGene 14291 lt_prog_compiler_wl_CXX='-Wl,' 14292 lt_prog_compiler_pic_CXX='-qpic' 14293 lt_prog_compiler_static_CXX='-qstaticlink' 14294 ;; 14295 *) 14296 case `$CC -V 2>&1 | sed 5q` in 14297 *Sun\ C*) 14298 # Sun C++ 5.9 14299 lt_prog_compiler_pic_CXX='-KPIC' 14300 lt_prog_compiler_static_CXX='-Bstatic' 14301 lt_prog_compiler_wl_CXX='-Qoption ld ' 14302 ;; 14303 esac 14304 ;; 14305 esac 14306 ;; 14307 lynxos*) 14308 ;; 14309 m88k*) 14310 ;; 14311 mvs*) 14312 case $cc_basename in 14313 cxx*) 14314 lt_prog_compiler_pic_CXX='-W c,exportall' 14315 ;; 14316 *) 14317 ;; 14318 esac 14319 ;; 14320 netbsd*) 14321 ;; 14322 *qnx* | *nto*) 14323 # QNX uses GNU C++, but need to define -shared option too, otherwise 14324 # it will coredump. 14325 lt_prog_compiler_pic_CXX='-fPIC -shared' 14326 ;; 14327 osf3* | osf4* | osf5*) 14328 case $cc_basename in 14329 KCC*) 14330 lt_prog_compiler_wl_CXX='--backend -Wl,' 14331 ;; 14332 RCC*) 14333 # Rational C++ 2.4.1 14334 lt_prog_compiler_pic_CXX='-pic' 14335 ;; 14336 cxx*) 14337 # Digital/Compaq C++ 14338 lt_prog_compiler_wl_CXX='-Wl,' 14339 # Make sure the PIC flag is empty. It appears that all Alpha 14340 # Linux and Compaq Tru64 Unix objects are PIC. 14341 lt_prog_compiler_pic_CXX= 14342 lt_prog_compiler_static_CXX='-non_shared' 14343 ;; 14344 *) 14345 ;; 14346 esac 14347 ;; 14348 psos*) 14349 ;; 14350 solaris*) 14351 case $cc_basename in 14352 CC* | sunCC*) 14353 # Sun C++ 4.2, 5.x and Centerline C++ 14354 lt_prog_compiler_pic_CXX='-KPIC' 14355 lt_prog_compiler_static_CXX='-Bstatic' 14356 lt_prog_compiler_wl_CXX='-Qoption ld ' 14357 ;; 14358 gcx*) 14359 # Green Hills C++ Compiler 14360 lt_prog_compiler_pic_CXX='-PIC' 14361 ;; 14362 *) 14363 ;; 14364 esac 14365 ;; 14366 sunos4*) 14367 case $cc_basename in 14368 CC*) 14369 # Sun C++ 4.x 14370 lt_prog_compiler_pic_CXX='-pic' 14371 lt_prog_compiler_static_CXX='-Bstatic' 14372 ;; 14373 lcc*) 14374 # Lucid 14375 lt_prog_compiler_pic_CXX='-pic' 14376 ;; 14377 *) 14378 ;; 14379 esac 14380 ;; 14381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14382 case $cc_basename in 14383 CC*) 14384 lt_prog_compiler_wl_CXX='-Wl,' 14385 lt_prog_compiler_pic_CXX='-KPIC' 14386 lt_prog_compiler_static_CXX='-Bstatic' 14387 ;; 14388 esac 14389 ;; 14390 tandem*) 14391 case $cc_basename in 14392 NCC*) 14393 # NonStop-UX NCC 3.20 14394 lt_prog_compiler_pic_CXX='-KPIC' 14395 ;; 14396 *) 14397 ;; 14398 esac 14399 ;; 14400 vxworks*) 14401 ;; 14402 *) 14403 lt_prog_compiler_can_build_shared_CXX=no 14404 ;; 14405 esac 14406 fi 14407 14408case $host_os in 14409 # For platforms which do not support PIC, -DPIC is meaningless: 14410 *djgpp*) 14411 lt_prog_compiler_pic_CXX= 14412 ;; 14413 *) 14414 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14415 ;; 14416esac 14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 14418$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14419 14420 14421 14422# 14423# Check to make sure the PIC flag actually works. 14424# 14425if test -n "$lt_prog_compiler_pic_CXX"; then 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14427$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14428if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 14429 $as_echo_n "(cached) " >&6 14430else 14431 lt_cv_prog_compiler_pic_works_CXX=no 14432 ac_outfile=conftest.$ac_objext 14433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14434 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14435 # Insert the option either (1) after the last *FLAGS variable, or 14436 # (2) before a word containing "conftest.", or (3) at the end. 14437 # Note that $ac_compile itself does not contain backslashes and begins 14438 # with a dollar sign (not a hyphen), so the echo should work correctly. 14439 # The option is referenced via a variable to avoid confusing sed. 14440 lt_compile=`echo "$ac_compile" | $SED \ 14441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14443 -e 's:$: $lt_compiler_flag:'` 14444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14445 (eval "$lt_compile" 2>conftest.err) 14446 ac_status=$? 14447 cat conftest.err >&5 14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14449 if (exit $ac_status) && test -s "$ac_outfile"; then 14450 # The compiler can only warn and ignore the option if not recognized 14451 # So say no if there are warnings other than the usual output. 14452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14455 lt_cv_prog_compiler_pic_works_CXX=yes 14456 fi 14457 fi 14458 $RM conftest* 14459 14460fi 14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14462$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14463 14464if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14465 case $lt_prog_compiler_pic_CXX in 14466 "" | " "*) ;; 14467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14468 esac 14469else 14470 lt_prog_compiler_pic_CXX= 14471 lt_prog_compiler_can_build_shared_CXX=no 14472fi 14473 14474fi 14475 14476 14477 14478# 14479# Check to make sure the static flag actually works. 14480# 14481wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14483$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14484if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 lt_cv_prog_compiler_static_works_CXX=no 14488 save_LDFLAGS="$LDFLAGS" 14489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14490 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14492 # The linker can only warn and ignore the option if not recognized 14493 # So say no if there are warnings 14494 if test -s conftest.err; then 14495 # Append any errors to the config.log. 14496 cat conftest.err 1>&5 14497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14499 if diff conftest.exp conftest.er2 >/dev/null; then 14500 lt_cv_prog_compiler_static_works_CXX=yes 14501 fi 14502 else 14503 lt_cv_prog_compiler_static_works_CXX=yes 14504 fi 14505 fi 14506 $RM -r conftest* 14507 LDFLAGS="$save_LDFLAGS" 14508 14509fi 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14511$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14512 14513if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14514 : 14515else 14516 lt_prog_compiler_static_CXX= 14517fi 14518 14519 14520 14521 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14523$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14524if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14525 $as_echo_n "(cached) " >&6 14526else 14527 lt_cv_prog_compiler_c_o_CXX=no 14528 $RM -r conftest 2>/dev/null 14529 mkdir conftest 14530 cd conftest 14531 mkdir out 14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14533 14534 lt_compiler_flag="-o out/conftest2.$ac_objext" 14535 # Insert the option either (1) after the last *FLAGS variable, or 14536 # (2) before a word containing "conftest.", or (3) at the end. 14537 # Note that $ac_compile itself does not contain backslashes and begins 14538 # with a dollar sign (not a hyphen), so the echo should work correctly. 14539 lt_compile=`echo "$ac_compile" | $SED \ 14540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14542 -e 's:$: $lt_compiler_flag:'` 14543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14544 (eval "$lt_compile" 2>out/conftest.err) 14545 ac_status=$? 14546 cat out/conftest.err >&5 14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14548 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14549 then 14550 # The compiler can only warn and ignore the option if not recognized 14551 # So say no if there are warnings 14552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14555 lt_cv_prog_compiler_c_o_CXX=yes 14556 fi 14557 fi 14558 chmod u+w . 2>&5 14559 $RM conftest* 14560 # SGI C++ compiler will create directory out/ii_files/ for 14561 # template instantiation 14562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14563 $RM out/* && rmdir out 14564 cd .. 14565 $RM -r conftest 14566 $RM conftest* 14567 14568fi 14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14570$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14571 14572 14573 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14575$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14576if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14577 $as_echo_n "(cached) " >&6 14578else 14579 lt_cv_prog_compiler_c_o_CXX=no 14580 $RM -r conftest 2>/dev/null 14581 mkdir conftest 14582 cd conftest 14583 mkdir out 14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14585 14586 lt_compiler_flag="-o out/conftest2.$ac_objext" 14587 # Insert the option either (1) after the last *FLAGS variable, or 14588 # (2) before a word containing "conftest.", or (3) at the end. 14589 # Note that $ac_compile itself does not contain backslashes and begins 14590 # with a dollar sign (not a hyphen), so the echo should work correctly. 14591 lt_compile=`echo "$ac_compile" | $SED \ 14592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14594 -e 's:$: $lt_compiler_flag:'` 14595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14596 (eval "$lt_compile" 2>out/conftest.err) 14597 ac_status=$? 14598 cat out/conftest.err >&5 14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14600 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14601 then 14602 # The compiler can only warn and ignore the option if not recognized 14603 # So say no if there are warnings 14604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14607 lt_cv_prog_compiler_c_o_CXX=yes 14608 fi 14609 fi 14610 chmod u+w . 2>&5 14611 $RM conftest* 14612 # SGI C++ compiler will create directory out/ii_files/ for 14613 # template instantiation 14614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14615 $RM out/* && rmdir out 14616 cd .. 14617 $RM -r conftest 14618 $RM conftest* 14619 14620fi 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14622$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14623 14624 14625 14626 14627hard_links="nottested" 14628if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14629 # do not overwrite the value of need_locks provided by the user 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14631$as_echo_n "checking if we can lock with hard links... " >&6; } 14632 hard_links=yes 14633 $RM conftest* 14634 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14635 touch conftest.a 14636 ln conftest.a conftest.b 2>&5 || hard_links=no 14637 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14639$as_echo "$hard_links" >&6; } 14640 if test "$hard_links" = no; then 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14642$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14643 need_locks=warn 14644 fi 14645else 14646 need_locks=no 14647fi 14648 14649 14650 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14653 14654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14655 case $host_os in 14656 aix[4-9]*) 14657 # If we're using GNU nm, then we don't want the "-C" option. 14658 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14659 # Also, AIX nm treats weak defined symbols like other global defined 14660 # symbols, whereas GNU nm marks them as "W". 14661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14662 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' 14663 else 14664 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' 14665 fi 14666 ;; 14667 pw32*) 14668 export_symbols_cmds_CXX="$ltdll_cmds" 14669 ;; 14670 cygwin* | mingw* | cegcc*) 14671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14672 ;; 14673 *) 14674 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14675 ;; 14676 esac 14677 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14678 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14680$as_echo "$ld_shlibs_CXX" >&6; } 14681test "$ld_shlibs_CXX" = no && can_build_shared=no 14682 14683with_gnu_ld_CXX=$with_gnu_ld 14684 14685 14686 14687 14688 14689 14690# 14691# Do we need to explicitly link libc? 14692# 14693case "x$archive_cmds_need_lc_CXX" in 14694x|xyes) 14695 # Assume -lc should be added 14696 archive_cmds_need_lc_CXX=yes 14697 14698 if test "$enable_shared" = yes && test "$GCC" = yes; then 14699 case $archive_cmds_CXX in 14700 *'~'*) 14701 # FIXME: we may have to deal with multi-command sequences. 14702 ;; 14703 '$CC '*) 14704 # Test whether the compiler implicitly links with -lc since on some 14705 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14706 # to ld, don't add -lc before -lgcc. 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14708$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14709if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 14710 $as_echo_n "(cached) " >&6 14711else 14712 $RM conftest* 14713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14714 14715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14716 (eval $ac_compile) 2>&5 14717 ac_status=$? 14718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14719 test $ac_status = 0; } 2>conftest.err; then 14720 soname=conftest 14721 lib=conftest 14722 libobjs=conftest.$ac_objext 14723 deplibs= 14724 wl=$lt_prog_compiler_wl_CXX 14725 pic_flag=$lt_prog_compiler_pic_CXX 14726 compiler_flags=-v 14727 linker_flags=-v 14728 verstring= 14729 output_objdir=. 14730 libname=conftest 14731 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14732 allow_undefined_flag_CXX= 14733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14734 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14735 ac_status=$? 14736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14737 test $ac_status = 0; } 14738 then 14739 lt_cv_archive_cmds_need_lc_CXX=no 14740 else 14741 lt_cv_archive_cmds_need_lc_CXX=yes 14742 fi 14743 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14744 else 14745 cat conftest.err 1>&5 14746 fi 14747 $RM conftest* 14748 14749fi 14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14751$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14752 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14753 ;; 14754 esac 14755 fi 14756 ;; 14757esac 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14823$as_echo_n "checking dynamic linker characteristics... " >&6; } 14824 14825library_names_spec= 14826libname_spec='lib$name' 14827soname_spec= 14828shrext_cmds=".so" 14829postinstall_cmds= 14830postuninstall_cmds= 14831finish_cmds= 14832finish_eval= 14833shlibpath_var= 14834shlibpath_overrides_runpath=unknown 14835version_type=none 14836dynamic_linker="$host_os ld.so" 14837sys_lib_dlsearch_path_spec="/lib /usr/lib" 14838need_lib_prefix=unknown 14839hardcode_into_libs=no 14840 14841# when you set need_version to no, make sure it does not cause -set_version 14842# flags to be left without arguments 14843need_version=unknown 14844 14845case $host_os in 14846aix3*) 14847 version_type=linux 14848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14849 shlibpath_var=LIBPATH 14850 14851 # AIX 3 has no versioning support, so we append a major version to the name. 14852 soname_spec='${libname}${release}${shared_ext}$major' 14853 ;; 14854 14855aix[4-9]*) 14856 version_type=linux 14857 need_lib_prefix=no 14858 need_version=no 14859 hardcode_into_libs=yes 14860 if test "$host_cpu" = ia64; then 14861 # AIX 5 supports IA64 14862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14863 shlibpath_var=LD_LIBRARY_PATH 14864 else 14865 # With GCC up to 2.95.x, collect2 would create an import file 14866 # for dependence libraries. The import file would start with 14867 # the line `#! .'. This would cause the generated library to 14868 # depend on `.', always an invalid library. This was fixed in 14869 # development snapshots of GCC prior to 3.0. 14870 case $host_os in 14871 aix4 | aix4.[01] | aix4.[01].*) 14872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14873 echo ' yes ' 14874 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14875 : 14876 else 14877 can_build_shared=no 14878 fi 14879 ;; 14880 esac 14881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14882 # soname into executable. Probably we can add versioning support to 14883 # collect2, so additional links can be useful in future. 14884 if test "$aix_use_runtimelinking" = yes; then 14885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14886 # instead of lib<name>.a to let people know that these are not 14887 # typical AIX shared libraries. 14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14889 else 14890 # We preserve .a as extension for shared libraries through AIX4.2 14891 # and later when we are not doing run time linking. 14892 library_names_spec='${libname}${release}.a $libname.a' 14893 soname_spec='${libname}${release}${shared_ext}$major' 14894 fi 14895 shlibpath_var=LIBPATH 14896 fi 14897 ;; 14898 14899amigaos*) 14900 case $host_cpu in 14901 powerpc) 14902 # Since July 2007 AmigaOS4 officially supports .so libraries. 14903 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14905 ;; 14906 m68k) 14907 library_names_spec='$libname.ixlibrary $libname.a' 14908 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14909 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' 14910 ;; 14911 esac 14912 ;; 14913 14914beos*) 14915 library_names_spec='${libname}${shared_ext}' 14916 dynamic_linker="$host_os ld.so" 14917 shlibpath_var=LIBRARY_PATH 14918 ;; 14919 14920bsdi[45]*) 14921 version_type=linux 14922 need_version=no 14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14924 soname_spec='${libname}${release}${shared_ext}$major' 14925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14926 shlibpath_var=LD_LIBRARY_PATH 14927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14929 # the default ld.so.conf also contains /usr/contrib/lib and 14930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14931 # libtool to hard-code these into programs 14932 ;; 14933 14934cygwin* | mingw* | pw32* | cegcc*) 14935 version_type=windows 14936 shrext_cmds=".dll" 14937 need_version=no 14938 need_lib_prefix=no 14939 14940 case $GCC,$host_os in 14941 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14942 library_names_spec='$libname.dll.a' 14943 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14944 postinstall_cmds='base_file=`basename \${file}`~ 14945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14946 dldir=$destdir/`dirname \$dlpath`~ 14947 test -d \$dldir || mkdir -p \$dldir~ 14948 $install_prog $dir/$dlname \$dldir/$dlname~ 14949 chmod a+x \$dldir/$dlname~ 14950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14952 fi' 14953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14954 dlpath=$dir/\$dldll~ 14955 $RM \$dlpath' 14956 shlibpath_overrides_runpath=yes 14957 14958 case $host_os in 14959 cygwin*) 14960 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14962 14963 ;; 14964 mingw* | cegcc*) 14965 # MinGW DLLs use traditional 'lib' prefix 14966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14967 ;; 14968 pw32*) 14969 # pw32 DLLs use 'pw' prefix rather than 'lib' 14970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14971 ;; 14972 esac 14973 ;; 14974 14975 *) 14976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14977 ;; 14978 esac 14979 dynamic_linker='Win32 ld.exe' 14980 # FIXME: first we should search . and the directory the executable is in 14981 shlibpath_var=PATH 14982 ;; 14983 14984darwin* | rhapsody*) 14985 dynamic_linker="$host_os dyld" 14986 version_type=darwin 14987 need_lib_prefix=no 14988 need_version=no 14989 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14990 soname_spec='${libname}${release}${major}$shared_ext' 14991 shlibpath_overrides_runpath=yes 14992 shlibpath_var=DYLD_LIBRARY_PATH 14993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14994 14995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14996 ;; 14997 14998dgux*) 14999 version_type=linux 15000 need_lib_prefix=no 15001 need_version=no 15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15003 soname_spec='${libname}${release}${shared_ext}$major' 15004 shlibpath_var=LD_LIBRARY_PATH 15005 ;; 15006 15007freebsd1*) 15008 dynamic_linker=no 15009 ;; 15010 15011freebsd* | dragonfly*) 15012 # DragonFly does not have aout. When/if they implement a new 15013 # versioning mechanism, adjust this. 15014 if test -x /usr/bin/objformat; then 15015 objformat=`/usr/bin/objformat` 15016 else 15017 case $host_os in 15018 freebsd[123]*) objformat=aout ;; 15019 *) objformat=elf ;; 15020 esac 15021 fi 15022 version_type=freebsd-$objformat 15023 case $version_type in 15024 freebsd-elf*) 15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15026 need_version=no 15027 need_lib_prefix=no 15028 ;; 15029 freebsd-*) 15030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15031 need_version=yes 15032 ;; 15033 esac 15034 shlibpath_var=LD_LIBRARY_PATH 15035 case $host_os in 15036 freebsd2*) 15037 shlibpath_overrides_runpath=yes 15038 ;; 15039 freebsd3.[01]* | freebsdelf3.[01]*) 15040 shlibpath_overrides_runpath=yes 15041 hardcode_into_libs=yes 15042 ;; 15043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15045 shlibpath_overrides_runpath=no 15046 hardcode_into_libs=yes 15047 ;; 15048 *) # from 4.6 on, and DragonFly 15049 shlibpath_overrides_runpath=yes 15050 hardcode_into_libs=yes 15051 ;; 15052 esac 15053 ;; 15054 15055gnu*) 15056 version_type=linux 15057 need_lib_prefix=no 15058 need_version=no 15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15060 soname_spec='${libname}${release}${shared_ext}$major' 15061 shlibpath_var=LD_LIBRARY_PATH 15062 hardcode_into_libs=yes 15063 ;; 15064 15065haiku*) 15066 version_type=linux 15067 need_lib_prefix=no 15068 need_version=no 15069 dynamic_linker="$host_os runtime_loader" 15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15071 soname_spec='${libname}${release}${shared_ext}$major' 15072 shlibpath_var=LIBRARY_PATH 15073 shlibpath_overrides_runpath=yes 15074 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15075 hardcode_into_libs=yes 15076 ;; 15077 15078hpux9* | hpux10* | hpux11*) 15079 # Give a soname corresponding to the major version so that dld.sl refuses to 15080 # link against other versions. 15081 version_type=sunos 15082 need_lib_prefix=no 15083 need_version=no 15084 case $host_cpu in 15085 ia64*) 15086 shrext_cmds='.so' 15087 hardcode_into_libs=yes 15088 dynamic_linker="$host_os dld.so" 15089 shlibpath_var=LD_LIBRARY_PATH 15090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15092 soname_spec='${libname}${release}${shared_ext}$major' 15093 if test "X$HPUX_IA64_MODE" = X32; then 15094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15095 else 15096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15097 fi 15098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15099 ;; 15100 hppa*64*) 15101 shrext_cmds='.sl' 15102 hardcode_into_libs=yes 15103 dynamic_linker="$host_os dld.sl" 15104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15107 soname_spec='${libname}${release}${shared_ext}$major' 15108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15110 ;; 15111 *) 15112 shrext_cmds='.sl' 15113 dynamic_linker="$host_os dld.sl" 15114 shlibpath_var=SHLIB_PATH 15115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15117 soname_spec='${libname}${release}${shared_ext}$major' 15118 ;; 15119 esac 15120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15121 postinstall_cmds='chmod 555 $lib' 15122 # or fails outright, so override atomically: 15123 install_override_mode=555 15124 ;; 15125 15126interix[3-9]*) 15127 version_type=linux 15128 need_lib_prefix=no 15129 need_version=no 15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15131 soname_spec='${libname}${release}${shared_ext}$major' 15132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15133 shlibpath_var=LD_LIBRARY_PATH 15134 shlibpath_overrides_runpath=no 15135 hardcode_into_libs=yes 15136 ;; 15137 15138irix5* | irix6* | nonstopux*) 15139 case $host_os in 15140 nonstopux*) version_type=nonstopux ;; 15141 *) 15142 if test "$lt_cv_prog_gnu_ld" = yes; then 15143 version_type=linux 15144 else 15145 version_type=irix 15146 fi ;; 15147 esac 15148 need_lib_prefix=no 15149 need_version=no 15150 soname_spec='${libname}${release}${shared_ext}$major' 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15152 case $host_os in 15153 irix5* | nonstopux*) 15154 libsuff= shlibsuff= 15155 ;; 15156 *) 15157 case $LD in # libtool.m4 will add one of these switches to LD 15158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15159 libsuff= shlibsuff= libmagic=32-bit;; 15160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15161 libsuff=32 shlibsuff=N32 libmagic=N32;; 15162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15163 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15164 *) libsuff= shlibsuff= libmagic=never-match;; 15165 esac 15166 ;; 15167 esac 15168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15169 shlibpath_overrides_runpath=no 15170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15172 hardcode_into_libs=yes 15173 ;; 15174 15175# No shared lib support for Linux oldld, aout, or coff. 15176linux*oldld* | linux*aout* | linux*coff*) 15177 dynamic_linker=no 15178 ;; 15179 15180# This must be Linux ELF. 15181linux* | k*bsd*-gnu | kopensolaris*-gnu) 15182 version_type=linux 15183 need_lib_prefix=no 15184 need_version=no 15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15186 soname_spec='${libname}${release}${shared_ext}$major' 15187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15188 shlibpath_var=LD_LIBRARY_PATH 15189 shlibpath_overrides_runpath=no 15190 15191 # Some binutils ld are patched to set DT_RUNPATH 15192 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 lt_cv_shlibpath_overrides_runpath=no 15196 save_LDFLAGS=$LDFLAGS 15197 save_libdir=$libdir 15198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15201/* end confdefs.h. */ 15202 15203int 15204main () 15205{ 15206 15207 ; 15208 return 0; 15209} 15210_ACEOF 15211if ac_fn_cxx_try_link "$LINENO"; then : 15212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15213 lt_cv_shlibpath_overrides_runpath=yes 15214fi 15215fi 15216rm -f core conftest.err conftest.$ac_objext \ 15217 conftest$ac_exeext conftest.$ac_ext 15218 LDFLAGS=$save_LDFLAGS 15219 libdir=$save_libdir 15220 15221fi 15222 15223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15224 15225 # This implies no fast_install, which is unacceptable. 15226 # Some rework will be needed to allow for fast_install 15227 # before this can be enabled. 15228 hardcode_into_libs=yes 15229 15230 # Append ld.so.conf contents to the search path 15231 if test -f /etc/ld.so.conf; then 15232 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' ' '` 15233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15234 fi 15235 15236 # We used to test for /lib/ld.so.1 and disable shared libraries on 15237 # powerpc, because MkLinux only supported shared libraries with the 15238 # GNU dynamic linker. Since this was broken with cross compilers, 15239 # most powerpc-linux boxes support dynamic linking these days and 15240 # people can always --disable-shared, the test was removed, and we 15241 # assume the GNU/Linux dynamic linker is in use. 15242 dynamic_linker='GNU/Linux ld.so' 15243 ;; 15244 15245netbsd*) 15246 version_type=sunos 15247 need_lib_prefix=no 15248 need_version=no 15249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15252 dynamic_linker='NetBSD (a.out) ld.so' 15253 else 15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15255 soname_spec='${libname}${release}${shared_ext}$major' 15256 dynamic_linker='NetBSD ld.elf_so' 15257 fi 15258 shlibpath_var=LD_LIBRARY_PATH 15259 shlibpath_overrides_runpath=yes 15260 hardcode_into_libs=yes 15261 ;; 15262 15263newsos6) 15264 version_type=linux 15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15266 shlibpath_var=LD_LIBRARY_PATH 15267 shlibpath_overrides_runpath=yes 15268 ;; 15269 15270*nto* | *qnx*) 15271 version_type=qnx 15272 need_lib_prefix=no 15273 need_version=no 15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15275 soname_spec='${libname}${release}${shared_ext}$major' 15276 shlibpath_var=LD_LIBRARY_PATH 15277 shlibpath_overrides_runpath=no 15278 hardcode_into_libs=yes 15279 dynamic_linker='ldqnx.so' 15280 ;; 15281 15282openbsd*) 15283 version_type=sunos 15284 sys_lib_dlsearch_path_spec="/usr/lib" 15285 need_lib_prefix=no 15286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15287 case $host_os in 15288 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15289 *) need_version=no ;; 15290 esac 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15293 shlibpath_var=LD_LIBRARY_PATH 15294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15295 case $host_os in 15296 openbsd2.[89] | openbsd2.[89].*) 15297 shlibpath_overrides_runpath=no 15298 ;; 15299 *) 15300 shlibpath_overrides_runpath=yes 15301 ;; 15302 esac 15303 else 15304 shlibpath_overrides_runpath=yes 15305 fi 15306 ;; 15307 15308os2*) 15309 libname_spec='$name' 15310 shrext_cmds=".dll" 15311 need_lib_prefix=no 15312 library_names_spec='$libname${shared_ext} $libname.a' 15313 dynamic_linker='OS/2 ld.exe' 15314 shlibpath_var=LIBPATH 15315 ;; 15316 15317osf3* | osf4* | osf5*) 15318 version_type=osf 15319 need_lib_prefix=no 15320 need_version=no 15321 soname_spec='${libname}${release}${shared_ext}$major' 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15323 shlibpath_var=LD_LIBRARY_PATH 15324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15326 ;; 15327 15328rdos*) 15329 dynamic_linker=no 15330 ;; 15331 15332solaris*) 15333 version_type=linux 15334 need_lib_prefix=no 15335 need_version=no 15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15337 soname_spec='${libname}${release}${shared_ext}$major' 15338 shlibpath_var=LD_LIBRARY_PATH 15339 shlibpath_overrides_runpath=yes 15340 hardcode_into_libs=yes 15341 # ldd complains unless libraries are executable 15342 postinstall_cmds='chmod +x $lib' 15343 ;; 15344 15345sunos4*) 15346 version_type=sunos 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15349 shlibpath_var=LD_LIBRARY_PATH 15350 shlibpath_overrides_runpath=yes 15351 if test "$with_gnu_ld" = yes; then 15352 need_lib_prefix=no 15353 fi 15354 need_version=yes 15355 ;; 15356 15357sysv4 | sysv4.3*) 15358 version_type=linux 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 shlibpath_var=LD_LIBRARY_PATH 15362 case $host_vendor in 15363 sni) 15364 shlibpath_overrides_runpath=no 15365 need_lib_prefix=no 15366 runpath_var=LD_RUN_PATH 15367 ;; 15368 siemens) 15369 need_lib_prefix=no 15370 ;; 15371 motorola) 15372 need_lib_prefix=no 15373 need_version=no 15374 shlibpath_overrides_runpath=no 15375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15376 ;; 15377 esac 15378 ;; 15379 15380sysv4*MP*) 15381 if test -d /usr/nec ;then 15382 version_type=linux 15383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15384 soname_spec='$libname${shared_ext}.$major' 15385 shlibpath_var=LD_LIBRARY_PATH 15386 fi 15387 ;; 15388 15389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15390 version_type=freebsd-elf 15391 need_lib_prefix=no 15392 need_version=no 15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15394 soname_spec='${libname}${release}${shared_ext}$major' 15395 shlibpath_var=LD_LIBRARY_PATH 15396 shlibpath_overrides_runpath=yes 15397 hardcode_into_libs=yes 15398 if test "$with_gnu_ld" = yes; then 15399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15400 else 15401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15402 case $host_os in 15403 sco3.2v5*) 15404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15405 ;; 15406 esac 15407 fi 15408 sys_lib_dlsearch_path_spec='/usr/lib' 15409 ;; 15410 15411tpf*) 15412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15413 version_type=linux 15414 need_lib_prefix=no 15415 need_version=no 15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15417 shlibpath_var=LD_LIBRARY_PATH 15418 shlibpath_overrides_runpath=no 15419 hardcode_into_libs=yes 15420 ;; 15421 15422uts4*) 15423 version_type=linux 15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15425 soname_spec='${libname}${release}${shared_ext}$major' 15426 shlibpath_var=LD_LIBRARY_PATH 15427 ;; 15428 15429*) 15430 dynamic_linker=no 15431 ;; 15432esac 15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15434$as_echo "$dynamic_linker" >&6; } 15435test "$dynamic_linker" = no && can_build_shared=no 15436 15437variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15438if test "$GCC" = yes; then 15439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15440fi 15441 15442if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15443 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15444fi 15445if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15446 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15447fi 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15487$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15488hardcode_action_CXX= 15489if test -n "$hardcode_libdir_flag_spec_CXX" || 15490 test -n "$runpath_var_CXX" || 15491 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15492 15493 # We can hardcode non-existent directories. 15494 if test "$hardcode_direct_CXX" != no && 15495 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15496 # have to relink, otherwise we might link with an installed library 15497 # when we should be linking with a yet-to-be-installed one 15498 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15499 test "$hardcode_minus_L_CXX" != no; then 15500 # Linking always hardcodes the temporary library directory. 15501 hardcode_action_CXX=relink 15502 else 15503 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15504 hardcode_action_CXX=immediate 15505 fi 15506else 15507 # We cannot hardcode anything, or else we can only hardcode existing 15508 # directories. 15509 hardcode_action_CXX=unsupported 15510fi 15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15512$as_echo "$hardcode_action_CXX" >&6; } 15513 15514if test "$hardcode_action_CXX" = relink || 15515 test "$inherit_rpath_CXX" = yes; then 15516 # Fast installation is not supported 15517 enable_fast_install=no 15518elif test "$shlibpath_overrides_runpath" = yes || 15519 test "$enable_shared" = no; then 15520 # Fast installation is not necessary 15521 enable_fast_install=needless 15522fi 15523 15524 15525 15526 15527 15528 15529 15530 fi # test -n "$compiler" 15531 15532 CC=$lt_save_CC 15533 LDCXX=$LD 15534 LD=$lt_save_LD 15535 GCC=$lt_save_GCC 15536 with_gnu_ld=$lt_save_with_gnu_ld 15537 lt_cv_path_LDCXX=$lt_cv_path_LD 15538 lt_cv_path_LD=$lt_save_path_LD 15539 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15540 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15541fi # test "$_lt_caught_CXX_error" != yes 15542 15543ac_ext=c 15544ac_cpp='$CPP $CPPFLAGS' 15545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15547ac_compiler_gnu=$ac_cv_c_compiler_gnu 15548 15549 15550 15551# Enable support for silent build rules 15552# Check whether --enable-silent-rules was given. 15553if test "${enable_silent_rules+set}" = set; then : 15554 enableval=$enable_silent_rules; 15555fi 15556 15557case $enable_silent_rules in 15558yes) AM_DEFAULT_VERBOSITY=0;; 15559no) AM_DEFAULT_VERBOSITY=1;; 15560*) AM_DEFAULT_VERBOSITY=1;; 15561esac 15562AM_BACKSLASH='\' 15563 15564 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 15566$as_echo_n "checking for main in -lc... " >&6; } 15567if test "${ac_cv_lib_c_main+set}" = set; then : 15568 $as_echo_n "(cached) " >&6 15569else 15570 ac_check_lib_save_LIBS=$LIBS 15571LIBS="-lc $LIBS" 15572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15573/* end confdefs.h. */ 15574 15575 15576int 15577main () 15578{ 15579return main (); 15580 ; 15581 return 0; 15582} 15583_ACEOF 15584if ac_fn_c_try_link "$LINENO"; then : 15585 ac_cv_lib_c_main=yes 15586else 15587 ac_cv_lib_c_main=no 15588fi 15589rm -f core conftest.err conftest.$ac_objext \ 15590 conftest$ac_exeext conftest.$ac_ext 15591LIBS=$ac_check_lib_save_LIBS 15592fi 15593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5 15594$as_echo "$ac_cv_lib_c_main" >&6; } 15595if test "x$ac_cv_lib_c_main" = x""yes; then : 15596 cat >>confdefs.h <<_ACEOF 15597#define HAVE_LIBC 1 15598_ACEOF 15599 15600 LIBS="-lc $LIBS" 15601 15602fi 15603 15604 15605case "${host_os}" in 15606 cygwin* | mingw32* | beos* | darwin*) 15607 ;; 15608 *) 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 15610$as_echo_n "checking for sin in -lm... " >&6; } 15611if test "${ac_cv_lib_m_sin+set}" = set; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 ac_check_lib_save_LIBS=$LIBS 15615LIBS="-lm $LIBS" 15616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15617/* end confdefs.h. */ 15618 15619/* Override any GCC internal prototype to avoid an error. 15620 Use char because int might match the return type of a GCC 15621 builtin and then its argument prototype would still apply. */ 15622#ifdef __cplusplus 15623extern "C" 15624#endif 15625char sin (); 15626int 15627main () 15628{ 15629return sin (); 15630 ; 15631 return 0; 15632} 15633_ACEOF 15634if ac_fn_c_try_link "$LINENO"; then : 15635 ac_cv_lib_m_sin=yes 15636else 15637 ac_cv_lib_m_sin=no 15638fi 15639rm -f core conftest.err conftest.$ac_objext \ 15640 conftest$ac_exeext conftest.$ac_ext 15641LIBS=$ac_check_lib_save_LIBS 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 15644$as_echo "$ac_cv_lib_m_sin" >&6; } 15645if test "x$ac_cv_lib_m_sin" = x""yes; then : 15646 cat >>confdefs.h <<_ACEOF 15647#define HAVE_LIBM 1 15648_ACEOF 15649 15650 LIBS="-lm $LIBS" 15651 15652fi 15653 15654 ;; 15655esac 15656 15657for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 15658do : 15659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15661eval as_val=\$$as_ac_Header 15662 if test "x$as_val" = x""yes; then : 15663 cat >>confdefs.h <<_ACEOF 15664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15665_ACEOF 15666 15667fi 15668 15669done 15670 15671 15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15673$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15674if test "${ac_cv_c_const+set}" = set; then : 15675 $as_echo_n "(cached) " >&6 15676else 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679 15680int 15681main () 15682{ 15683/* FIXME: Include the comments suggested by Paul. */ 15684#ifndef __cplusplus 15685 /* Ultrix mips cc rejects this. */ 15686 typedef int charset[2]; 15687 const charset cs; 15688 /* SunOS 4.1.1 cc rejects this. */ 15689 char const *const *pcpcc; 15690 char **ppc; 15691 /* NEC SVR4.0.2 mips cc rejects this. */ 15692 struct point {int x, y;}; 15693 static struct point const zero = {0,0}; 15694 /* AIX XL C 1.02.0.0 rejects this. 15695 It does not let you subtract one const X* pointer from another in 15696 an arm of an if-expression whose if-part is not a constant 15697 expression */ 15698 const char *g = "string"; 15699 pcpcc = &g + (g ? g-g : 0); 15700 /* HPUX 7.0 cc rejects these. */ 15701 ++pcpcc; 15702 ppc = (char**) pcpcc; 15703 pcpcc = (char const *const *) ppc; 15704 { /* SCO 3.2v4 cc rejects this. */ 15705 char *t; 15706 char const *s = 0 ? (char *) 0 : (char const *) 0; 15707 15708 *t++ = 0; 15709 if (s) return 0; 15710 } 15711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15712 int x[] = {25, 17}; 15713 const int *foo = &x[0]; 15714 ++foo; 15715 } 15716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15717 typedef const int *iptr; 15718 iptr p = 0; 15719 ++p; 15720 } 15721 { /* AIX XL C 1.02.0.0 rejects this saying 15722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15723 struct s { int j; const int *ap[3]; }; 15724 struct s *b; b->j = 5; 15725 } 15726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15727 const int foo = 10; 15728 if (!foo) return 0; 15729 } 15730 return !cs[0] && !zero.x; 15731#endif 15732 15733 ; 15734 return 0; 15735} 15736_ACEOF 15737if ac_fn_c_try_compile "$LINENO"; then : 15738 ac_cv_c_const=yes 15739else 15740 ac_cv_c_const=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15743fi 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15745$as_echo "$ac_cv_c_const" >&6; } 15746if test $ac_cv_c_const = no; then 15747 15748$as_echo "#define const /**/" >>confdefs.h 15749 15750fi 15751 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15753$as_echo_n "checking for inline... " >&6; } 15754if test "${ac_cv_c_inline+set}" = set; then : 15755 $as_echo_n "(cached) " >&6 15756else 15757 ac_cv_c_inline=no 15758for ac_kw in inline __inline__ __inline; do 15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15760/* end confdefs.h. */ 15761#ifndef __cplusplus 15762typedef int foo_t; 15763static $ac_kw foo_t static_foo () {return 0; } 15764$ac_kw foo_t foo () {return 0; } 15765#endif 15766 15767_ACEOF 15768if ac_fn_c_try_compile "$LINENO"; then : 15769 ac_cv_c_inline=$ac_kw 15770fi 15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15772 test "$ac_cv_c_inline" != no && break 15773done 15774 15775fi 15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15777$as_echo "$ac_cv_c_inline" >&6; } 15778 15779case $ac_cv_c_inline in 15780 inline | yes) ;; 15781 *) 15782 case $ac_cv_c_inline in 15783 no) ac_val=;; 15784 *) ac_val=$ac_cv_c_inline;; 15785 esac 15786 cat >>confdefs.h <<_ACEOF 15787#ifndef __cplusplus 15788#define inline $ac_val 15789#endif 15790_ACEOF 15791 ;; 15792esac 15793 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15795$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15796if test "${ac_cv_c_bigendian+set}" = set; then : 15797 $as_echo_n "(cached) " >&6 15798else 15799 ac_cv_c_bigendian=unknown 15800 # See if we're dealing with a universal compiler. 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802/* end confdefs.h. */ 15803#ifndef __APPLE_CC__ 15804 not a universal capable compiler 15805 #endif 15806 typedef int dummy; 15807 15808_ACEOF 15809if ac_fn_c_try_compile "$LINENO"; then : 15810 15811 # Check for potential -arch flags. It is not universal unless 15812 # there are at least two -arch flags with different values. 15813 ac_arch= 15814 ac_prev= 15815 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15816 if test -n "$ac_prev"; then 15817 case $ac_word in 15818 i?86 | x86_64 | ppc | ppc64) 15819 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15820 ac_arch=$ac_word 15821 else 15822 ac_cv_c_bigendian=universal 15823 break 15824 fi 15825 ;; 15826 esac 15827 ac_prev= 15828 elif test "x$ac_word" = "x-arch"; then 15829 ac_prev=arch 15830 fi 15831 done 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15834 if test $ac_cv_c_bigendian = unknown; then 15835 # See if sys/param.h defines the BYTE_ORDER macro. 15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15837/* end confdefs.h. */ 15838#include <sys/types.h> 15839 #include <sys/param.h> 15840 15841int 15842main () 15843{ 15844#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15845 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15846 && LITTLE_ENDIAN) 15847 bogus endian macros 15848 #endif 15849 15850 ; 15851 return 0; 15852} 15853_ACEOF 15854if ac_fn_c_try_compile "$LINENO"; then : 15855 # It does; now see whether it defined to BIG_ENDIAN or not. 15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857/* end confdefs.h. */ 15858#include <sys/types.h> 15859 #include <sys/param.h> 15860 15861int 15862main () 15863{ 15864#if BYTE_ORDER != BIG_ENDIAN 15865 not big endian 15866 #endif 15867 15868 ; 15869 return 0; 15870} 15871_ACEOF 15872if ac_fn_c_try_compile "$LINENO"; then : 15873 ac_cv_c_bigendian=yes 15874else 15875 ac_cv_c_bigendian=no 15876fi 15877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15878fi 15879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15880 fi 15881 if test $ac_cv_c_bigendian = unknown; then 15882 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15884/* end confdefs.h. */ 15885#include <limits.h> 15886 15887int 15888main () 15889{ 15890#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15891 bogus endian macros 15892 #endif 15893 15894 ; 15895 return 0; 15896} 15897_ACEOF 15898if ac_fn_c_try_compile "$LINENO"; then : 15899 # It does; now see whether it defined to _BIG_ENDIAN or not. 15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15901/* end confdefs.h. */ 15902#include <limits.h> 15903 15904int 15905main () 15906{ 15907#ifndef _BIG_ENDIAN 15908 not big endian 15909 #endif 15910 15911 ; 15912 return 0; 15913} 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO"; then : 15916 ac_cv_c_bigendian=yes 15917else 15918 ac_cv_c_bigendian=no 15919fi 15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15921fi 15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15923 fi 15924 if test $ac_cv_c_bigendian = unknown; then 15925 # Compile a test program. 15926 if test "$cross_compiling" = yes; then : 15927 # Try to guess by grepping values from an object file. 15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15929/* end confdefs.h. */ 15930short int ascii_mm[] = 15931 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15932 short int ascii_ii[] = 15933 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15934 int use_ascii (int i) { 15935 return ascii_mm[i] + ascii_ii[i]; 15936 } 15937 short int ebcdic_ii[] = 15938 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15939 short int ebcdic_mm[] = 15940 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15941 int use_ebcdic (int i) { 15942 return ebcdic_mm[i] + ebcdic_ii[i]; 15943 } 15944 extern int foo; 15945 15946int 15947main () 15948{ 15949return use_ascii (foo) == use_ebcdic (foo); 15950 ; 15951 return 0; 15952} 15953_ACEOF 15954if ac_fn_c_try_compile "$LINENO"; then : 15955 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15956 ac_cv_c_bigendian=yes 15957 fi 15958 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15959 if test "$ac_cv_c_bigendian" = unknown; then 15960 ac_cv_c_bigendian=no 15961 else 15962 # finding both strings is unlikely to happen, but who knows? 15963 ac_cv_c_bigendian=unknown 15964 fi 15965 fi 15966fi 15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971$ac_includes_default 15972int 15973main () 15974{ 15975 15976 /* Are we little or big endian? From Harbison&Steele. */ 15977 union 15978 { 15979 long int l; 15980 char c[sizeof (long int)]; 15981 } u; 15982 u.l = 1; 15983 return u.c[sizeof (long int) - 1] == 1; 15984 15985 ; 15986 return 0; 15987} 15988_ACEOF 15989if ac_fn_c_try_run "$LINENO"; then : 15990 ac_cv_c_bigendian=no 15991else 15992 ac_cv_c_bigendian=yes 15993fi 15994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15995 conftest.$ac_objext conftest.beam conftest.$ac_ext 15996fi 15997 15998 fi 15999fi 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16001$as_echo "$ac_cv_c_bigendian" >&6; } 16002 case $ac_cv_c_bigendian in #( 16003 yes) 16004 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16005;; #( 16006 no) 16007 ;; #( 16008 universal) 16009 16010$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16011 16012 ;; #( 16013 *) 16014 as_fn_error "unknown endianness 16015 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16016 esac 16017 16018ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16019if test "x$ac_cv_type_off_t" = x""yes; then : 16020 16021else 16022 16023cat >>confdefs.h <<_ACEOF 16024#define off_t long int 16025_ACEOF 16026 16027fi 16028 16029ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16030if test "x$ac_cv_type_size_t" = x""yes; then : 16031 16032else 16033 16034cat >>confdefs.h <<_ACEOF 16035#define size_t unsigned int 16036_ACEOF 16037 16038fi 16039 16040# The cast to long int works around a bug in the HP C Compiler 16041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16043# This bug is HP SR number 8606223364. 16044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16045$as_echo_n "checking size of int... " >&6; } 16046if test "${ac_cv_sizeof_int+set}" = set; then : 16047 $as_echo_n "(cached) " >&6 16048else 16049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16050 16051else 16052 if test "$ac_cv_type_int" = yes; then 16053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16055{ as_fn_set_status 77 16056as_fn_error "cannot compute sizeof (int) 16057See \`config.log' for more details." "$LINENO" 5; }; } 16058 else 16059 ac_cv_sizeof_int=0 16060 fi 16061fi 16062 16063fi 16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16065$as_echo "$ac_cv_sizeof_int" >&6; } 16066 16067 16068 16069cat >>confdefs.h <<_ACEOF 16070#define SIZEOF_INT $ac_cv_sizeof_int 16071_ACEOF 16072 16073 16074# The cast to long int works around a bug in the HP C Compiler 16075# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16076# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16077# This bug is HP SR number 8606223364. 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16079$as_echo_n "checking size of long... " >&6; } 16080if test "${ac_cv_sizeof_long+set}" = set; then : 16081 $as_echo_n "(cached) " >&6 16082else 16083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16084 16085else 16086 if test "$ac_cv_type_long" = yes; then 16087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16089{ as_fn_set_status 77 16090as_fn_error "cannot compute sizeof (long) 16091See \`config.log' for more details." "$LINENO" 5; }; } 16092 else 16093 ac_cv_sizeof_long=0 16094 fi 16095fi 16096 16097fi 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16099$as_echo "$ac_cv_sizeof_long" >&6; } 16100 16101 16102 16103cat >>confdefs.h <<_ACEOF 16104#define SIZEOF_LONG $ac_cv_sizeof_long 16105_ACEOF 16106 16107 16108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16109$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16110if test "${ac_cv_header_time+set}" = set; then : 16111 $as_echo_n "(cached) " >&6 16112else 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115#include <sys/types.h> 16116#include <sys/time.h> 16117#include <time.h> 16118 16119int 16120main () 16121{ 16122if ((struct tm *) 0) 16123return 0; 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO"; then : 16129 ac_cv_header_time=yes 16130else 16131 ac_cv_header_time=no 16132fi 16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16134fi 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16136$as_echo "$ac_cv_header_time" >&6; } 16137if test $ac_cv_header_time = yes; then 16138 16139$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16140 16141fi 16142 16143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16144$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16145if test "${ac_cv_struct_tm+set}" = set; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150#include <sys/types.h> 16151#include <time.h> 16152 16153int 16154main () 16155{ 16156struct tm tm; 16157 int *p = &tm.tm_sec; 16158 return !p; 16159 ; 16160 return 0; 16161} 16162_ACEOF 16163if ac_fn_c_try_compile "$LINENO"; then : 16164 ac_cv_struct_tm=time.h 16165else 16166 ac_cv_struct_tm=sys/time.h 16167fi 16168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16169fi 16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16171$as_echo "$ac_cv_struct_tm" >&6; } 16172if test $ac_cv_struct_tm = sys/time.h; then 16173 16174$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16175 16176fi 16177 16178ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 16179#if HAVE_INTTYPES_H 16180# include <inttypes.h> 16181#endif 16182 16183" 16184if test "x$ac_cv_type_int8" = x""yes; then : 16185 16186cat >>confdefs.h <<_ACEOF 16187#define HAVE_INT8 1 16188_ACEOF 16189 16190 16191fi 16192ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 16193#if HAVE_INTTYPES_H 16194# include <inttypes.h> 16195#endif 16196 16197" 16198if test "x$ac_cv_type_int16" = x""yes; then : 16199 16200cat >>confdefs.h <<_ACEOF 16201#define HAVE_INT16 1 16202_ACEOF 16203 16204 16205fi 16206ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 16207#if HAVE_INTTYPES_H 16208# include <inttypes.h> 16209#endif 16210 16211" 16212if test "x$ac_cv_type_int32" = x""yes; then : 16213 16214cat >>confdefs.h <<_ACEOF 16215#define HAVE_INT32 1 16216_ACEOF 16217 16218 16219fi 16220 16221 16222# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16223# The cast to long int works around a bug in the HP C Compiler 16224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16226# This bug is HP SR number 8606223364. 16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16228$as_echo_n "checking size of signed long... " >&6; } 16229if test "${ac_cv_sizeof_signed_long+set}" = set; then : 16230 $as_echo_n "(cached) " >&6 16231else 16232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16233 16234else 16235 if test "$ac_cv_type_signed_long" = yes; then 16236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16238{ as_fn_set_status 77 16239as_fn_error "cannot compute sizeof (signed long) 16240See \`config.log' for more details." "$LINENO" 5; }; } 16241 else 16242 ac_cv_sizeof_signed_long=0 16243 fi 16244fi 16245 16246fi 16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16248$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16249 16250 16251 16252cat >>confdefs.h <<_ACEOF 16253#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16254_ACEOF 16255 16256 16257 16258# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16259# The cast to long int works around a bug in the HP C Compiler 16260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16262# This bug is HP SR number 8606223364. 16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16264$as_echo_n "checking size of unsigned long... " >&6; } 16265if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16269 16270else 16271 if test "$ac_cv_type_unsigned_long" = yes; then 16272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16274{ as_fn_set_status 77 16275as_fn_error "cannot compute sizeof (unsigned long) 16276See \`config.log' for more details." "$LINENO" 5; }; } 16277 else 16278 ac_cv_sizeof_unsigned_long=0 16279 fi 16280fi 16281 16282fi 16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16284$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16285 16286 16287 16288cat >>confdefs.h <<_ACEOF 16289#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16290_ACEOF 16291 16292 16293 16294# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16295# If 'long long' is not supported then the value defined is zero. 16296# The cast to long int works around a bug in the HP C Compiler 16297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16299# This bug is HP SR number 8606223364. 16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16301$as_echo_n "checking size of signed long long... " >&6; } 16302if test "${ac_cv_sizeof_signed_long_long+set}" = set; then : 16303 $as_echo_n "(cached) " >&6 16304else 16305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 16306 16307else 16308 if test "$ac_cv_type_signed_long_long" = yes; then 16309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16311{ as_fn_set_status 77 16312as_fn_error "cannot compute sizeof (signed long long) 16313See \`config.log' for more details." "$LINENO" 5; }; } 16314 else 16315 ac_cv_sizeof_signed_long_long=0 16316 fi 16317fi 16318 16319fi 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 16321$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 16322 16323 16324 16325cat >>confdefs.h <<_ACEOF 16326#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 16327_ACEOF 16328 16329 16330 16331# Obtain size of a 'unsigned long long' and define as 16332# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 16333# supported then the value defined is zero. 16334# The cast to long int works around a bug in the HP C Compiler 16335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16337# This bug is HP SR number 8606223364. 16338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 16339$as_echo_n "checking size of unsigned long long... " >&6; } 16340if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : 16341 $as_echo_n "(cached) " >&6 16342else 16343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 16344 16345else 16346 if test "$ac_cv_type_unsigned_long_long" = yes; then 16347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16349{ as_fn_set_status 77 16350as_fn_error "cannot compute sizeof (unsigned long long) 16351See \`config.log' for more details." "$LINENO" 5; }; } 16352 else 16353 ac_cv_sizeof_unsigned_long_long=0 16354 fi 16355fi 16356 16357fi 16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 16359$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 16360 16361 16362 16363cat >>confdefs.h <<_ACEOF 16364#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 16365_ACEOF 16366 16367 16368 16369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 16370$as_echo_n "checking for signed 64-bit type... " >&6; } 16371INT64_T='none' 16372INT64_FORMAT='none' 16373if test $ac_cv_sizeof_signed_long -eq 8 16374then 16375 INT64_T='signed long' 16376 INT64_FORMAT='"%ld"' 16377elif test $ac_cv_sizeof_signed_long_long -eq 8 16378then 16379 INT64_FORMAT='"%lld"' 16380 INT64_T='signed long long' 16381fi 16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 16383$as_echo "$INT64_T" >&6; } 16384 16385cat >>confdefs.h <<_ACEOF 16386#define TIFF_INT64_T $INT64_T 16387_ACEOF 16388 16389 16390cat >>confdefs.h <<_ACEOF 16391#define TIFF_INT64_FORMAT $INT64_FORMAT 16392_ACEOF 16393 16394 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 16396$as_echo_n "checking for unsigned 64-bit type... " >&6; } 16397UINT64_T='none' 16398UINT64_FORMAT='none' 16399if test $ac_cv_sizeof_unsigned_long -eq 8 16400then 16401 UINT64_T='unsigned long' 16402 UINT64_FORMAT='"%lu"' 16403elif test $ac_cv_sizeof_unsigned_long_long -eq 8 16404then 16405 UINT64_T='unsigned long long' 16406 UINT64_FORMAT='"%llu"' 16407fi 16408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 16409$as_echo "$UINT64_T" >&6; } 16410 16411cat >>confdefs.h <<_ACEOF 16412#define TIFF_UINT64_T $UINT64_T 16413_ACEOF 16414 16415 16416cat >>confdefs.h <<_ACEOF 16417#define TIFF_UINT64_FORMAT $UINT64_FORMAT 16418_ACEOF 16419 16420 16421for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol 16422do : 16423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16425eval as_val=\$$as_ac_var 16426 if test "x$as_val" = x""yes; then : 16427 cat >>confdefs.h <<_ACEOF 16428#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16429_ACEOF 16430 16431fi 16432done 16433 16434 16435for ac_func in getopt 16436do : 16437 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 16438if test "x$ac_cv_func_getopt" = x""yes; then : 16439 cat >>confdefs.h <<_ACEOF 16440#define HAVE_GETOPT 1 16441_ACEOF 16442 16443else 16444 case " $LIBOBJS " in 16445 *" $ac_func.$ac_objext "* ) ;; 16446 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16447 ;; 16448esac 16449 16450fi 16451done 16452 16453 16454for ac_func in strcasecmp 16455do : 16456 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 16457if test "x$ac_cv_func_strcasecmp" = x""yes; then : 16458 cat >>confdefs.h <<_ACEOF 16459#define HAVE_STRCASECMP 1 16460_ACEOF 16461 16462else 16463 case " $LIBOBJS " in 16464 *" $ac_func.$ac_objext "* ) ;; 16465 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16466 ;; 16467esac 16468 16469fi 16470done 16471 16472 16473for ac_func in strtoul 16474do : 16475 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 16476if test "x$ac_cv_func_strtoul" = x""yes; then : 16477 cat >>confdefs.h <<_ACEOF 16478#define HAVE_STRTOUL 1 16479_ACEOF 16480 16481else 16482 case " $LIBOBJS " in 16483 *" $ac_func.$ac_objext "* ) ;; 16484 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16485 ;; 16486esac 16487 16488fi 16489done 16490 16491 16492for ac_func in lfind 16493do : 16494 ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 16495if test "x$ac_cv_func_lfind" = x""yes; then : 16496 cat >>confdefs.h <<_ACEOF 16497#define HAVE_LFIND 1 16498_ACEOF 16499 16500else 16501 case " $LIBOBJS " in 16502 *" $ac_func.$ac_objext "* ) ;; 16503 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16504 ;; 16505esac 16506 16507fi 16508done 16509 16510 16511 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 16513$as_echo_n "checking native cpu bit order... " >&6; } 16514case "$target_cpu" in 16515 i*86*|x86_64*) 16516 HOST_FILLORDER=FILLORDER_LSB2MSB 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 16518$as_echo "lsb2msb" >&6; } 16519 ;; 16520 *) 16521 HOST_FILLORDER=FILLORDER_MSB2LSB 16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 16523$as_echo "msb2lsb" >&6; } 16524 ;; 16525esac 16526 16527cat >>confdefs.h <<_ACEOF 16528#define HOST_FILLORDER $HOST_FILLORDER 16529_ACEOF 16530 16531 16532if test "$ac_cv_c_bigendian" = yes ; then 16533 HOST_BIGENDIAN=1 16534else 16535 HOST_BIGENDIAN=0 16536fi 16537 16538cat >>confdefs.h <<_ACEOF 16539#define HOST_BIGENDIAN $HOST_BIGENDIAN 16540_ACEOF 16541 16542 16543#_POSIX_C_SOURCE=2 16544#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 16545 16546HAVE_IEEEFP=1 16547 16548cat >>confdefs.h <<_ACEOF 16549#define HAVE_IEEEFP $HAVE_IEEEFP 16550_ACEOF 16551 16552 16553 16554# Check whether --enable-rpath was given. 16555if test "${enable_rpath+set}" = set; then : 16556 enableval=$enable_rpath; HAVE_RPATH=$enableval 16557else 16558 HAVE_RPATH=no 16559fi 16560 16561 if test "$HAVE_RPATH" = "yes"; then 16562 HAVE_RPATH_TRUE= 16563 HAVE_RPATH_FALSE='#' 16564else 16565 HAVE_RPATH_TRUE='#' 16566 HAVE_RPATH_FALSE= 16567fi 16568 16569 16570 16571# Check whether --enable-largefile was given. 16572if test "${enable_largefile+set}" = set; then : 16573 enableval=$enable_largefile; 16574fi 16575 16576if test "$enable_largefile" != no; then 16577 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16579$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16580if test "${ac_cv_sys_largefile_CC+set}" = set; then : 16581 $as_echo_n "(cached) " >&6 16582else 16583 ac_cv_sys_largefile_CC=no 16584 if test "$GCC" != yes; then 16585 ac_save_CC=$CC 16586 while :; do 16587 # IRIX 6.2 and later do not support large files by default, 16588 # so use the C compiler's -n32 option if that helps. 16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16590/* end confdefs.h. */ 16591#include <sys/types.h> 16592 /* Check that off_t can represent 2**63 - 1 correctly. 16593 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16594 since some C++ compilers masquerading as C compilers 16595 incorrectly reject 9223372036854775807. */ 16596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16598 && LARGE_OFF_T % 2147483647 == 1) 16599 ? 1 : -1]; 16600int 16601main () 16602{ 16603 16604 ; 16605 return 0; 16606} 16607_ACEOF 16608 if ac_fn_c_try_compile "$LINENO"; then : 16609 break 16610fi 16611rm -f core conftest.err conftest.$ac_objext 16612 CC="$CC -n32" 16613 if ac_fn_c_try_compile "$LINENO"; then : 16614 ac_cv_sys_largefile_CC=' -n32'; break 16615fi 16616rm -f core conftest.err conftest.$ac_objext 16617 break 16618 done 16619 CC=$ac_save_CC 16620 rm -f conftest.$ac_ext 16621 fi 16622fi 16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16624$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16625 if test "$ac_cv_sys_largefile_CC" != no; then 16626 CC=$CC$ac_cv_sys_largefile_CC 16627 fi 16628 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16630$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16631if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 16632 $as_echo_n "(cached) " >&6 16633else 16634 while :; do 16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16636/* end confdefs.h. */ 16637#include <sys/types.h> 16638 /* Check that off_t can represent 2**63 - 1 correctly. 16639 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16640 since some C++ compilers masquerading as C compilers 16641 incorrectly reject 9223372036854775807. */ 16642#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16644 && LARGE_OFF_T % 2147483647 == 1) 16645 ? 1 : -1]; 16646int 16647main () 16648{ 16649 16650 ; 16651 return 0; 16652} 16653_ACEOF 16654if ac_fn_c_try_compile "$LINENO"; then : 16655 ac_cv_sys_file_offset_bits=no; break 16656fi 16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16659/* end confdefs.h. */ 16660#define _FILE_OFFSET_BITS 64 16661#include <sys/types.h> 16662 /* Check that off_t can represent 2**63 - 1 correctly. 16663 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16664 since some C++ compilers masquerading as C compilers 16665 incorrectly reject 9223372036854775807. */ 16666#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16668 && LARGE_OFF_T % 2147483647 == 1) 16669 ? 1 : -1]; 16670int 16671main () 16672{ 16673 16674 ; 16675 return 0; 16676} 16677_ACEOF 16678if ac_fn_c_try_compile "$LINENO"; then : 16679 ac_cv_sys_file_offset_bits=64; break 16680fi 16681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16682 ac_cv_sys_file_offset_bits=unknown 16683 break 16684done 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16687$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16688case $ac_cv_sys_file_offset_bits in #( 16689 no | unknown) ;; 16690 *) 16691cat >>confdefs.h <<_ACEOF 16692#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16693_ACEOF 16694;; 16695esac 16696rm -rf conftest* 16697 if test $ac_cv_sys_file_offset_bits = unknown; then 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16699$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16700if test "${ac_cv_sys_large_files+set}" = set; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 while :; do 16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16705/* end confdefs.h. */ 16706#include <sys/types.h> 16707 /* Check that off_t can represent 2**63 - 1 correctly. 16708 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16709 since some C++ compilers masquerading as C compilers 16710 incorrectly reject 9223372036854775807. */ 16711#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16713 && LARGE_OFF_T % 2147483647 == 1) 16714 ? 1 : -1]; 16715int 16716main () 16717{ 16718 16719 ; 16720 return 0; 16721} 16722_ACEOF 16723if ac_fn_c_try_compile "$LINENO"; then : 16724 ac_cv_sys_large_files=no; break 16725fi 16726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729#define _LARGE_FILES 1 16730#include <sys/types.h> 16731 /* Check that off_t can represent 2**63 - 1 correctly. 16732 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16733 since some C++ compilers masquerading as C compilers 16734 incorrectly reject 9223372036854775807. */ 16735#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16737 && LARGE_OFF_T % 2147483647 == 1) 16738 ? 1 : -1]; 16739int 16740main () 16741{ 16742 16743 ; 16744 return 0; 16745} 16746_ACEOF 16747if ac_fn_c_try_compile "$LINENO"; then : 16748 ac_cv_sys_large_files=1; break 16749fi 16750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16751 ac_cv_sys_large_files=unknown 16752 break 16753done 16754fi 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16756$as_echo "$ac_cv_sys_large_files" >&6; } 16757case $ac_cv_sys_large_files in #( 16758 no | unknown) ;; 16759 *) 16760cat >>confdefs.h <<_ACEOF 16761#define _LARGE_FILES $ac_cv_sys_large_files 16762_ACEOF 16763;; 16764esac 16765rm -rf conftest* 16766 fi 16767fi 16768 16769 16770 16771LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 16772 16773 16774# Check whether --with-docdir was given. 16775if test "${with_docdir+set}" = set; then : 16776 withval=$with_docdir; 16777fi 16778 16779if test "x$with_docdir" != "x" ; then 16780 LIBTIFF_DOCDIR=$with_docdir 16781fi 16782 16783 16784 16785 16786# Check whether --enable-ccitt was given. 16787if test "${enable_ccitt+set}" = set; then : 16788 enableval=$enable_ccitt; HAVE_CCITT=$enableval 16789else 16790 HAVE_CCITT=yes 16791fi 16792 16793 16794if test "$HAVE_CCITT" = "yes" ; then 16795 16796$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 16797 16798fi 16799 16800# Check whether --enable-packbits was given. 16801if test "${enable_packbits+set}" = set; then : 16802 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 16803else 16804 HAVE_PACKBITS=yes 16805fi 16806 16807 16808if test "$HAVE_PACKBITS" = "yes" ; then 16809 16810$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 16811 16812fi 16813 16814# Check whether --enable-lzw was given. 16815if test "${enable_lzw+set}" = set; then : 16816 enableval=$enable_lzw; HAVE_LZW=$enableval 16817else 16818 HAVE_LZW=yes 16819fi 16820 16821 16822if test "$HAVE_LZW" = "yes" ; then 16823 16824$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 16825 16826fi 16827 16828# Check whether --enable-thunder was given. 16829if test "${enable_thunder+set}" = set; then : 16830 enableval=$enable_thunder; HAVE_THUNDER=$enableval 16831else 16832 HAVE_THUNDER=yes 16833fi 16834 16835 16836if test "$HAVE_THUNDER" = "yes" ; then 16837 16838$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 16839 16840fi 16841 16842HAVE_NEXT=yes 16843 16844# Check whether --enable-next was given. 16845if test "${enable_next+set}" = set; then : 16846 enableval=$enable_next; HAVE_NEXT=$enableval 16847else 16848 HAVE_NEXT=yes 16849fi 16850 16851 16852if test "$HAVE_NEXT" = "yes" ; then 16853 16854$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 16855 16856fi 16857 16858# Check whether --enable-logluv was given. 16859if test "${enable_logluv+set}" = set; then : 16860 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 16861else 16862 HAVE_LOGLUV=yes 16863fi 16864 16865 16866if test "$HAVE_LOGLUV" = "yes" ; then 16867 16868$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 16869 16870fi 16871 16872 16873# Check whether --enable-mdi was given. 16874if test "${enable_mdi+set}" = set; then : 16875 enableval=$enable_mdi; HAVE_MDI=$enableval 16876else 16877 HAVE_MDI=yes 16878fi 16879 16880 16881if test "$HAVE_MDI" = "yes" ; then 16882 16883$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 16884 16885fi 16886 16887 16888HAVE_ZLIB=no 16889 16890# Check whether --enable-zlib was given. 16891if test "${enable_zlib+set}" = set; then : 16892 enableval=$enable_zlib; 16893fi 16894 16895 16896# Check whether --with-zlib-include-dir was given. 16897if test "${with_zlib_include_dir+set}" = set; then : 16898 withval=$with_zlib_include_dir; 16899fi 16900 16901 16902# Check whether --with-zlib-lib-dir was given. 16903if test "${with_zlib_lib_dir+set}" = set; then : 16904 withval=$with_zlib_lib_dir; 16905fi 16906 16907 16908if test "x$enable_zlib" != "xno" ; then 16909 16910 if test "x$with_zlib_lib_dir" != "x" ; then 16911 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 16912 fi 16913 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 16915$as_echo_n "checking for inflateEnd in -lz... " >&6; } 16916if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 ac_check_lib_save_LIBS=$LIBS 16920LIBS="-lz $LIBS" 16921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16922/* end confdefs.h. */ 16923 16924/* Override any GCC internal prototype to avoid an error. 16925 Use char because int might match the return type of a GCC 16926 builtin and then its argument prototype would still apply. */ 16927#ifdef __cplusplus 16928extern "C" 16929#endif 16930char inflateEnd (); 16931int 16932main () 16933{ 16934return inflateEnd (); 16935 ; 16936 return 0; 16937} 16938_ACEOF 16939if ac_fn_c_try_link "$LINENO"; then : 16940 ac_cv_lib_z_inflateEnd=yes 16941else 16942 ac_cv_lib_z_inflateEnd=no 16943fi 16944rm -f core conftest.err conftest.$ac_objext \ 16945 conftest$ac_exeext conftest.$ac_ext 16946LIBS=$ac_check_lib_save_LIBS 16947fi 16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 16949$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 16950if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : 16951 zlib_lib=yes 16952else 16953 zlib_lib=no 16954fi 16955 16956 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 16957 as_fn_error "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 16958 fi 16959 16960 if test "x$with_zlib_include_dir" != "x" ; then 16961 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 16962 fi 16963 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 16964if test "x$ac_cv_header_zlib_h" = x""yes; then : 16965 zlib_h=yes 16966else 16967 zlib_h=no 16968fi 16969 16970 16971 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 16972 as_fn_error "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 16973 fi 16974 16975 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 16976 HAVE_ZLIB=yes 16977 fi 16978 16979fi 16980 16981if test "$HAVE_ZLIB" = "yes" ; then 16982 16983$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 16984 16985 LIBS="-lz $LIBS" 16986 16987 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 16988 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 16989 fi 16990 16991fi 16992 16993 16994# Check whether --enable-pixarlog was given. 16995if test "${enable_pixarlog+set}" = set; then : 16996 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 16997else 16998 HAVE_PIXARLOG=yes 16999fi 17000 17001 17002if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17003 17004$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17005 17006else 17007 HAVE_PIXARLOG=no 17008fi 17009 17010 17011HAVE_JPEG=no 17012 17013# Check whether --enable-jpeg was given. 17014if test "${enable_jpeg+set}" = set; then : 17015 enableval=$enable_jpeg; 17016fi 17017 17018 17019# Check whether --with-jpeg-include-dir was given. 17020if test "${with_jpeg_include_dir+set}" = set; then : 17021 withval=$with_jpeg_include_dir; 17022fi 17023 17024 17025# Check whether --with-jpeg-lib-dir was given. 17026if test "${with_jpeg_lib_dir+set}" = set; then : 17027 withval=$with_jpeg_lib_dir; 17028fi 17029 17030 17031if test "x$enable_jpeg" != "xno" ; then 17032 17033 if test "x$with_jpeg_lib_dir" != "x" ; then 17034 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17035 17036 fi 17037 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17039$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17040if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then : 17041 $as_echo_n "(cached) " >&6 17042else 17043 ac_check_lib_save_LIBS=$LIBS 17044LIBS="-ljpeg $LIBS" 17045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046/* end confdefs.h. */ 17047 17048/* Override any GCC internal prototype to avoid an error. 17049 Use char because int might match the return type of a GCC 17050 builtin and then its argument prototype would still apply. */ 17051#ifdef __cplusplus 17052extern "C" 17053#endif 17054char jpeg_read_scanlines (); 17055int 17056main () 17057{ 17058return jpeg_read_scanlines (); 17059 ; 17060 return 0; 17061} 17062_ACEOF 17063if ac_fn_c_try_link "$LINENO"; then : 17064 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 17065else 17066 ac_cv_lib_jpeg_jpeg_read_scanlines=no 17067fi 17068rm -f core conftest.err conftest.$ac_objext \ 17069 conftest$ac_exeext conftest.$ac_ext 17070LIBS=$ac_check_lib_save_LIBS 17071fi 17072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 17073$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 17074if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = x""yes; then : 17075 jpeg_lib=yes 17076else 17077 jpeg_lib=no 17078fi 17079 17080 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 17081 as_fn_error "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 17082 fi 17083 17084 if test "x$with_jpeg_include_dir" != "x" ; then 17085 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 17086 fi 17087 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 17088if test "x$ac_cv_header_jpeglib_h" = x""yes; then : 17089 jpeg_h=yes 17090else 17091 jpeg_h=no 17092fi 17093 17094 17095 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 17096 as_fn_error "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 17097 fi 17098 17099 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 17100 HAVE_JPEG=yes 17101 fi 17102 17103fi 17104 17105if test "$HAVE_JPEG" = "yes" ; then 17106 17107$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 17108 17109 LIBS="-ljpeg $LIBS" 17110 17111 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 17112 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 17113 fi 17114 17115fi 17116 17117 17118# Check whether --enable-old-jpeg was given. 17119if test "${enable_old_jpeg+set}" = set; then : 17120 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 17121else 17122 HAVE_OJPEG=yes 17123fi 17124 17125 17126if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 17127 17128$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 17129 17130else 17131 HAVE_OJPEG=no 17132fi 17133 17134 17135HAVE_JBIG=no 17136 17137# Check whether --enable-jbig was given. 17138if test "${enable_jbig+set}" = set; then : 17139 enableval=$enable_jbig; 17140fi 17141 17142 17143# Check whether --with-jbig-include-dir was given. 17144if test "${with_jbig_include_dir+set}" = set; then : 17145 withval=$with_jbig_include_dir; 17146fi 17147 17148 17149# Check whether --with-jbig-lib-dir was given. 17150if test "${with_jbig_lib_dir+set}" = set; then : 17151 withval=$with_jbig_lib_dir; 17152fi 17153 17154 17155if test "x$enable_jbig" != "xno" ; then 17156 17157 if test "x$with_jbig_lib_dir" != "x" ; then 17158 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 17159 17160 fi 17161 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 17163$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 17164if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then : 17165 $as_echo_n "(cached) " >&6 17166else 17167 ac_check_lib_save_LIBS=$LIBS 17168LIBS="-ljbig $LIBS" 17169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171 17172/* Override any GCC internal prototype to avoid an error. 17173 Use char because int might match the return type of a GCC 17174 builtin and then its argument prototype would still apply. */ 17175#ifdef __cplusplus 17176extern "C" 17177#endif 17178char jbg_dec_init (); 17179int 17180main () 17181{ 17182return jbg_dec_init (); 17183 ; 17184 return 0; 17185} 17186_ACEOF 17187if ac_fn_c_try_link "$LINENO"; then : 17188 ac_cv_lib_jbig_jbg_dec_init=yes 17189else 17190 ac_cv_lib_jbig_jbg_dec_init=no 17191fi 17192rm -f core conftest.err conftest.$ac_objext \ 17193 conftest$ac_exeext conftest.$ac_ext 17194LIBS=$ac_check_lib_save_LIBS 17195fi 17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 17197$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 17198if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then : 17199 jbig_lib=yes 17200else 17201 jbig_lib=no 17202fi 17203 17204 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 17205 as_fn_error "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 17206 fi 17207 17208 if test "x$with_jbig_include_dir" != "x" ; then 17209 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 17210 fi 17211 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 17212if test "x$ac_cv_header_jbig_h" = x""yes; then : 17213 jbig_h=yes 17214else 17215 jbig_h=no 17216fi 17217 17218 17219 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 17220 as_fn_error "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 17221 fi 17222 17223 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 17224 HAVE_JBIG=yes 17225 fi 17226 17227fi 17228 17229if test "$HAVE_JBIG" = "yes" ; then 17230 17231$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 17232 17233 LIBS="-ljbig $LIBS" 17234 17235 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 17236 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 17237 fi 17238 17239 # Older versions of jbigkit lack jbg_newlen 17240 for ac_func in jbg_newlen 17241do : 17242 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 17243if test "x$ac_cv_func_jbg_newlen" = x""yes; then : 17244 cat >>confdefs.h <<_ACEOF 17245#define HAVE_JBG_NEWLEN 1 17246_ACEOF 17247 17248fi 17249done 17250 17251 17252fi 17253 17254 17255# Check whether --enable-cxx was given. 17256if test "${enable_cxx+set}" = set; then : 17257 enableval=$enable_cxx; HAVE_CXX=$enableval 17258else 17259 HAVE_CXX=yes 17260fi 17261 17262 17263if test "$HAVE_CXX" = "yes" ; then 17264 17265$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 17266 17267else 17268 HAVE_CXX=no 17269fi 17270 17271 if test "$HAVE_CXX" = "yes"; then 17272 HAVE_CXX_TRUE= 17273 HAVE_CXX_FALSE='#' 17274else 17275 HAVE_CXX_TRUE='#' 17276 HAVE_CXX_FALSE= 17277fi 17278 17279 17280 17281HAVE_OPENGL=no 17282 17283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17284$as_echo_n "checking for X... " >&6; } 17285 17286 17287# Check whether --with-x was given. 17288if test "${with_x+set}" = set; then : 17289 withval=$with_x; 17290fi 17291 17292# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17293if test "x$with_x" = xno; then 17294 # The user explicitly disabled X. 17295 have_x=disabled 17296else 17297 case $x_includes,$x_libraries in #( 17298 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 17299 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 17300 $as_echo_n "(cached) " >&6 17301else 17302 # One or both of the vars are not set, and there is no cached value. 17303ac_x_includes=no ac_x_libraries=no 17304rm -f -r conftest.dir 17305if mkdir conftest.dir; then 17306 cd conftest.dir 17307 cat >Imakefile <<'_ACEOF' 17308incroot: 17309 @echo incroot='${INCROOT}' 17310usrlibdir: 17311 @echo usrlibdir='${USRLIBDIR}' 17312libdir: 17313 @echo libdir='${LIBDIR}' 17314_ACEOF 17315 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17316 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 17317 for ac_var in incroot usrlibdir libdir; do 17318 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17319 done 17320 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17321 for ac_extension in a so sl dylib la dll; do 17322 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17323 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17324 ac_im_usrlibdir=$ac_im_libdir; break 17325 fi 17326 done 17327 # Screen out bogus values from the imake configuration. They are 17328 # bogus both because they are the default anyway, and because 17329 # using them would break gcc on systems where it needs fixed includes. 17330 case $ac_im_incroot in 17331 /usr/include) ac_x_includes= ;; 17332 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17333 esac 17334 case $ac_im_usrlibdir in 17335 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17336 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17337 esac 17338 fi 17339 cd .. 17340 rm -f -r conftest.dir 17341fi 17342 17343# Standard set of common directories for X headers. 17344# Check X11 before X11Rn because it is often a symlink to the current release. 17345ac_x_header_dirs=' 17346/usr/X11/include 17347/usr/X11R7/include 17348/usr/X11R6/include 17349/usr/X11R5/include 17350/usr/X11R4/include 17351 17352/usr/include/X11 17353/usr/include/X11R7 17354/usr/include/X11R6 17355/usr/include/X11R5 17356/usr/include/X11R4 17357 17358/usr/local/X11/include 17359/usr/local/X11R7/include 17360/usr/local/X11R6/include 17361/usr/local/X11R5/include 17362/usr/local/X11R4/include 17363 17364/usr/local/include/X11 17365/usr/local/include/X11R7 17366/usr/local/include/X11R6 17367/usr/local/include/X11R5 17368/usr/local/include/X11R4 17369 17370/usr/X386/include 17371/usr/x386/include 17372/usr/XFree86/include/X11 17373 17374/usr/include 17375/usr/local/include 17376/usr/unsupported/include 17377/usr/athena/include 17378/usr/local/x11r5/include 17379/usr/lpp/Xamples/include 17380 17381/usr/openwin/include 17382/usr/openwin/share/include' 17383 17384if test "$ac_x_includes" = no; then 17385 # Guess where to find include files, by looking for Xlib.h. 17386 # First, try using that file with no special directory specified. 17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388/* end confdefs.h. */ 17389#include <X11/Xlib.h> 17390_ACEOF 17391if ac_fn_c_try_cpp "$LINENO"; then : 17392 # We can compile using X headers with no special include directory. 17393ac_x_includes= 17394else 17395 for ac_dir in $ac_x_header_dirs; do 17396 if test -r "$ac_dir/X11/Xlib.h"; then 17397 ac_x_includes=$ac_dir 17398 break 17399 fi 17400done 17401fi 17402rm -f conftest.err conftest.$ac_ext 17403fi # $ac_x_includes = no 17404 17405if test "$ac_x_libraries" = no; then 17406 # Check for the libraries. 17407 # See if we find them without any special options. 17408 # Don't add to $LIBS permanently. 17409 ac_save_LIBS=$LIBS 17410 LIBS="-lX11 $LIBS" 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413#include <X11/Xlib.h> 17414int 17415main () 17416{ 17417XrmInitialize () 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 LIBS=$ac_save_LIBS 17424# We can link X programs with no special library path. 17425ac_x_libraries= 17426else 17427 LIBS=$ac_save_LIBS 17428for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17429do 17430 # Don't even attempt the hair of trying to link an X program! 17431 for ac_extension in a so sl dylib la dll; do 17432 if test -r "$ac_dir/libX11.$ac_extension"; then 17433 ac_x_libraries=$ac_dir 17434 break 2 17435 fi 17436 done 17437done 17438fi 17439rm -f core conftest.err conftest.$ac_objext \ 17440 conftest$ac_exeext conftest.$ac_ext 17441fi # $ac_x_libraries = no 17442 17443case $ac_x_includes,$ac_x_libraries in #( 17444 no,* | *,no | *\'*) 17445 # Didn't find X, or a directory has "'" in its name. 17446 ac_cv_have_x="have_x=no";; #( 17447 *) 17448 # Record where we found X for the cache. 17449 ac_cv_have_x="have_x=yes\ 17450 ac_x_includes='$ac_x_includes'\ 17451 ac_x_libraries='$ac_x_libraries'" 17452esac 17453fi 17454;; #( 17455 *) have_x=yes;; 17456 esac 17457 eval "$ac_cv_have_x" 17458fi # $with_x != no 17459 17460if test "$have_x" != yes; then 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17462$as_echo "$have_x" >&6; } 17463 no_x=yes 17464else 17465 # If each of the values was on the command line, it overrides each guess. 17466 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17467 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17468 # Update the cache value to reflect the command line values. 17469 ac_cv_have_x="have_x=yes\ 17470 ac_x_includes='$x_includes'\ 17471 ac_x_libraries='$x_libraries'" 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17473$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17474fi 17475 17476if test "$no_x" = yes; then 17477 # Not all programs may use this symbol, but it does not hurt to define it. 17478 17479$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 17480 17481 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 17482else 17483 if test -n "$x_includes"; then 17484 X_CFLAGS="$X_CFLAGS -I$x_includes" 17485 fi 17486 17487 # It would also be nice to do this for all -L options, not just this one. 17488 if test -n "$x_libraries"; then 17489 X_LIBS="$X_LIBS -L$x_libraries" 17490 # For Solaris; some versions of Sun CC require a space after -R and 17491 # others require no space. Words are not sufficient . . . . 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 17493$as_echo_n "checking whether -R must be followed by a space... " >&6; } 17494 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17495 ac_xsave_c_werror_flag=$ac_c_werror_flag 17496 ac_c_werror_flag=yes 17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499 17500int 17501main () 17502{ 17503 17504 ; 17505 return 0; 17506} 17507_ACEOF 17508if ac_fn_c_try_link "$LINENO"; then : 17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17510$as_echo "no" >&6; } 17511 X_LIBS="$X_LIBS -R$x_libraries" 17512else 17513 LIBS="$ac_xsave_LIBS -R $x_libraries" 17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17515/* end confdefs.h. */ 17516 17517int 17518main () 17519{ 17520 17521 ; 17522 return 0; 17523} 17524_ACEOF 17525if ac_fn_c_try_link "$LINENO"; then : 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17527$as_echo "yes" >&6; } 17528 X_LIBS="$X_LIBS -R $x_libraries" 17529else 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 17531$as_echo "neither works" >&6; } 17532fi 17533rm -f core conftest.err conftest.$ac_objext \ 17534 conftest$ac_exeext conftest.$ac_ext 17535fi 17536rm -f core conftest.err conftest.$ac_objext \ 17537 conftest$ac_exeext conftest.$ac_ext 17538 ac_c_werror_flag=$ac_xsave_c_werror_flag 17539 LIBS=$ac_xsave_LIBS 17540 fi 17541 17542 # Check for system-dependent libraries X programs must link with. 17543 # Do this before checking for the system-independent R6 libraries 17544 # (-lICE), since we may need -lsocket or whatever for X linking. 17545 17546 if test "$ISC" = yes; then 17547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 17548 else 17549 # Martyn Johnson says this is needed for Ultrix, if the X 17550 # libraries were built with DECnet support. And Karl Berry says 17551 # the Alpha needs dnet_stub (dnet does not exist). 17552 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17554/* end confdefs.h. */ 17555 17556/* Override any GCC internal prototype to avoid an error. 17557 Use char because int might match the return type of a GCC 17558 builtin and then its argument prototype would still apply. */ 17559#ifdef __cplusplus 17560extern "C" 17561#endif 17562char XOpenDisplay (); 17563int 17564main () 17565{ 17566return XOpenDisplay (); 17567 ; 17568 return 0; 17569} 17570_ACEOF 17571if ac_fn_c_try_link "$LINENO"; then : 17572 17573else 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 17575$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 17576if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 17577 $as_echo_n "(cached) " >&6 17578else 17579 ac_check_lib_save_LIBS=$LIBS 17580LIBS="-ldnet $LIBS" 17581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17582/* end confdefs.h. */ 17583 17584/* Override any GCC internal prototype to avoid an error. 17585 Use char because int might match the return type of a GCC 17586 builtin and then its argument prototype would still apply. */ 17587#ifdef __cplusplus 17588extern "C" 17589#endif 17590char dnet_ntoa (); 17591int 17592main () 17593{ 17594return dnet_ntoa (); 17595 ; 17596 return 0; 17597} 17598_ACEOF 17599if ac_fn_c_try_link "$LINENO"; then : 17600 ac_cv_lib_dnet_dnet_ntoa=yes 17601else 17602 ac_cv_lib_dnet_dnet_ntoa=no 17603fi 17604rm -f core conftest.err conftest.$ac_objext \ 17605 conftest$ac_exeext conftest.$ac_ext 17606LIBS=$ac_check_lib_save_LIBS 17607fi 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 17609$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 17610if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 17611 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 17612fi 17613 17614 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 17616$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 17617if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 17618 $as_echo_n "(cached) " >&6 17619else 17620 ac_check_lib_save_LIBS=$LIBS 17621LIBS="-ldnet_stub $LIBS" 17622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17623/* end confdefs.h. */ 17624 17625/* Override any GCC internal prototype to avoid an error. 17626 Use char because int might match the return type of a GCC 17627 builtin and then its argument prototype would still apply. */ 17628#ifdef __cplusplus 17629extern "C" 17630#endif 17631char dnet_ntoa (); 17632int 17633main () 17634{ 17635return dnet_ntoa (); 17636 ; 17637 return 0; 17638} 17639_ACEOF 17640if ac_fn_c_try_link "$LINENO"; then : 17641 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17642else 17643 ac_cv_lib_dnet_stub_dnet_ntoa=no 17644fi 17645rm -f core conftest.err conftest.$ac_objext \ 17646 conftest$ac_exeext conftest.$ac_ext 17647LIBS=$ac_check_lib_save_LIBS 17648fi 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 17650$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 17651if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 17652 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 17653fi 17654 17655 fi 17656fi 17657rm -f core conftest.err conftest.$ac_objext \ 17658 conftest$ac_exeext conftest.$ac_ext 17659 LIBS="$ac_xsave_LIBS" 17660 17661 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 17662 # to get the SysV transport functions. 17663 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 17664 # needs -lnsl. 17665 # The nsl library prevents programs from opening the X display 17666 # on Irix 5.2, according to T.E. Dickey. 17667 # The functions gethostbyname, getservbyname, and inet_addr are 17668 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17669 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17670if test "x$ac_cv_func_gethostbyname" = x""yes; then : 17671 17672fi 17673 17674 if test $ac_cv_func_gethostbyname = no; then 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17676$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17677if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 17678 $as_echo_n "(cached) " >&6 17679else 17680 ac_check_lib_save_LIBS=$LIBS 17681LIBS="-lnsl $LIBS" 17682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17683/* end confdefs.h. */ 17684 17685/* Override any GCC internal prototype to avoid an error. 17686 Use char because int might match the return type of a GCC 17687 builtin and then its argument prototype would still apply. */ 17688#ifdef __cplusplus 17689extern "C" 17690#endif 17691char gethostbyname (); 17692int 17693main () 17694{ 17695return gethostbyname (); 17696 ; 17697 return 0; 17698} 17699_ACEOF 17700if ac_fn_c_try_link "$LINENO"; then : 17701 ac_cv_lib_nsl_gethostbyname=yes 17702else 17703 ac_cv_lib_nsl_gethostbyname=no 17704fi 17705rm -f core conftest.err conftest.$ac_objext \ 17706 conftest$ac_exeext conftest.$ac_ext 17707LIBS=$ac_check_lib_save_LIBS 17708fi 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17710$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17711if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 17712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 17713fi 17714 17715 if test $ac_cv_lib_nsl_gethostbyname = no; then 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 17717$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 17718if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 17719 $as_echo_n "(cached) " >&6 17720else 17721 ac_check_lib_save_LIBS=$LIBS 17722LIBS="-lbsd $LIBS" 17723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17724/* end confdefs.h. */ 17725 17726/* Override any GCC internal prototype to avoid an error. 17727 Use char because int might match the return type of a GCC 17728 builtin and then its argument prototype would still apply. */ 17729#ifdef __cplusplus 17730extern "C" 17731#endif 17732char gethostbyname (); 17733int 17734main () 17735{ 17736return gethostbyname (); 17737 ; 17738 return 0; 17739} 17740_ACEOF 17741if ac_fn_c_try_link "$LINENO"; then : 17742 ac_cv_lib_bsd_gethostbyname=yes 17743else 17744 ac_cv_lib_bsd_gethostbyname=no 17745fi 17746rm -f core conftest.err conftest.$ac_objext \ 17747 conftest$ac_exeext conftest.$ac_ext 17748LIBS=$ac_check_lib_save_LIBS 17749fi 17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 17751$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 17752if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 17753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 17754fi 17755 17756 fi 17757 fi 17758 17759 # lieder@skyler.mavd.honeywell.com says without -lsocket, 17760 # socket/setsockopt and other routines are undefined under SCO ODT 17761 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 17762 # on later versions), says Simon Leinen: it contains gethostby* 17763 # variants that don't use the name server (or something). -lsocket 17764 # must be given before -lnsl if both are needed. We assume that 17765 # if connect needs -lnsl, so does gethostbyname. 17766 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 17767if test "x$ac_cv_func_connect" = x""yes; then : 17768 17769fi 17770 17771 if test $ac_cv_func_connect = no; then 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17773$as_echo_n "checking for connect in -lsocket... " >&6; } 17774if test "${ac_cv_lib_socket_connect+set}" = set; then : 17775 $as_echo_n "(cached) " >&6 17776else 17777 ac_check_lib_save_LIBS=$LIBS 17778LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 17779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17780/* end confdefs.h. */ 17781 17782/* Override any GCC internal prototype to avoid an error. 17783 Use char because int might match the return type of a GCC 17784 builtin and then its argument prototype would still apply. */ 17785#ifdef __cplusplus 17786extern "C" 17787#endif 17788char connect (); 17789int 17790main () 17791{ 17792return connect (); 17793 ; 17794 return 0; 17795} 17796_ACEOF 17797if ac_fn_c_try_link "$LINENO"; then : 17798 ac_cv_lib_socket_connect=yes 17799else 17800 ac_cv_lib_socket_connect=no 17801fi 17802rm -f core conftest.err conftest.$ac_objext \ 17803 conftest$ac_exeext conftest.$ac_ext 17804LIBS=$ac_check_lib_save_LIBS 17805fi 17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17807$as_echo "$ac_cv_lib_socket_connect" >&6; } 17808if test "x$ac_cv_lib_socket_connect" = x""yes; then : 17809 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 17810fi 17811 17812 fi 17813 17814 # Guillermo Gomez says -lposix is necessary on A/UX. 17815 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 17816if test "x$ac_cv_func_remove" = x""yes; then : 17817 17818fi 17819 17820 if test $ac_cv_func_remove = no; then 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 17822$as_echo_n "checking for remove in -lposix... " >&6; } 17823if test "${ac_cv_lib_posix_remove+set}" = set; then : 17824 $as_echo_n "(cached) " >&6 17825else 17826 ac_check_lib_save_LIBS=$LIBS 17827LIBS="-lposix $LIBS" 17828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17829/* end confdefs.h. */ 17830 17831/* Override any GCC internal prototype to avoid an error. 17832 Use char because int might match the return type of a GCC 17833 builtin and then its argument prototype would still apply. */ 17834#ifdef __cplusplus 17835extern "C" 17836#endif 17837char remove (); 17838int 17839main () 17840{ 17841return remove (); 17842 ; 17843 return 0; 17844} 17845_ACEOF 17846if ac_fn_c_try_link "$LINENO"; then : 17847 ac_cv_lib_posix_remove=yes 17848else 17849 ac_cv_lib_posix_remove=no 17850fi 17851rm -f core conftest.err conftest.$ac_objext \ 17852 conftest$ac_exeext conftest.$ac_ext 17853LIBS=$ac_check_lib_save_LIBS 17854fi 17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 17856$as_echo "$ac_cv_lib_posix_remove" >&6; } 17857if test "x$ac_cv_lib_posix_remove" = x""yes; then : 17858 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 17859fi 17860 17861 fi 17862 17863 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17864 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17865if test "x$ac_cv_func_shmat" = x""yes; then : 17866 17867fi 17868 17869 if test $ac_cv_func_shmat = no; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 17871$as_echo_n "checking for shmat in -lipc... " >&6; } 17872if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 ac_check_lib_save_LIBS=$LIBS 17876LIBS="-lipc $LIBS" 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17878/* end confdefs.h. */ 17879 17880/* Override any GCC internal prototype to avoid an error. 17881 Use char because int might match the return type of a GCC 17882 builtin and then its argument prototype would still apply. */ 17883#ifdef __cplusplus 17884extern "C" 17885#endif 17886char shmat (); 17887int 17888main () 17889{ 17890return shmat (); 17891 ; 17892 return 0; 17893} 17894_ACEOF 17895if ac_fn_c_try_link "$LINENO"; then : 17896 ac_cv_lib_ipc_shmat=yes 17897else 17898 ac_cv_lib_ipc_shmat=no 17899fi 17900rm -f core conftest.err conftest.$ac_objext \ 17901 conftest$ac_exeext conftest.$ac_ext 17902LIBS=$ac_check_lib_save_LIBS 17903fi 17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 17905$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 17906if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 17907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 17908fi 17909 17910 fi 17911 fi 17912 17913 # Check for libraries that X11R6 Xt/Xaw programs need. 17914 ac_save_LDFLAGS=$LDFLAGS 17915 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 17916 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 17917 # check for ICE first), but we must link in the order -lSM -lICE or 17918 # we get undefined symbols. So assume we have SM if we have ICE. 17919 # These have to be linked with before -lX11, unlike the other 17920 # libraries we check for below, so use a different variable. 17921 # John Interrante, Karl Berry 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 17923$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 17924if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 17925 $as_echo_n "(cached) " >&6 17926else 17927 ac_check_lib_save_LIBS=$LIBS 17928LIBS="-lICE $X_EXTRA_LIBS $LIBS" 17929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17930/* end confdefs.h. */ 17931 17932/* Override any GCC internal prototype to avoid an error. 17933 Use char because int might match the return type of a GCC 17934 builtin and then its argument prototype would still apply. */ 17935#ifdef __cplusplus 17936extern "C" 17937#endif 17938char IceConnectionNumber (); 17939int 17940main () 17941{ 17942return IceConnectionNumber (); 17943 ; 17944 return 0; 17945} 17946_ACEOF 17947if ac_fn_c_try_link "$LINENO"; then : 17948 ac_cv_lib_ICE_IceConnectionNumber=yes 17949else 17950 ac_cv_lib_ICE_IceConnectionNumber=no 17951fi 17952rm -f core conftest.err conftest.$ac_objext \ 17953 conftest$ac_exeext conftest.$ac_ext 17954LIBS=$ac_check_lib_save_LIBS 17955fi 17956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 17957$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 17958if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 17959 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 17960fi 17961 17962 LDFLAGS=$ac_save_LDFLAGS 17963 17964fi 17965 17966 17967 17968 17969 17970ac_ext=c 17971ac_cpp='$CPP $CPPFLAGS' 17972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17974ac_compiler_gnu=$ac_cv_c_compiler_gnu 17975 17976acx_pthread_ok=no 17977 17978# We used to check for pthread.h first, but this fails if pthread.h 17979# requires special compiler flags (e.g. on True64 or Sequent). 17980# It gets checked for in the link test anyway. 17981 17982# First of all, check if the user has set any of the PTHREAD_LIBS, 17983# etcetera environment variables, and if threads linking works using 17984# them: 17985if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 17986 save_CFLAGS="$CFLAGS" 17987 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17988 save_LIBS="$LIBS" 17989 LIBS="$PTHREAD_LIBS $LIBS" 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 17991$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993/* end confdefs.h. */ 17994 17995/* Override any GCC internal prototype to avoid an error. 17996 Use char because int might match the return type of a GCC 17997 builtin and then its argument prototype would still apply. */ 17998#ifdef __cplusplus 17999extern "C" 18000#endif 18001char pthread_join (); 18002int 18003main () 18004{ 18005return pthread_join (); 18006 ; 18007 return 0; 18008} 18009_ACEOF 18010if ac_fn_c_try_link "$LINENO"; then : 18011 acx_pthread_ok=yes 18012fi 18013rm -f core conftest.err conftest.$ac_objext \ 18014 conftest$ac_exeext conftest.$ac_ext 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18016$as_echo "$acx_pthread_ok" >&6; } 18017 if test x"$acx_pthread_ok" = xno; then 18018 PTHREAD_LIBS="" 18019 PTHREAD_CFLAGS="" 18020 fi 18021 LIBS="$save_LIBS" 18022 CFLAGS="$save_CFLAGS" 18023fi 18024 18025# We must check for the threads library under a number of different 18026# names; the ordering is very important because some systems 18027# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 18028# libraries is broken (non-POSIX). 18029 18030# Create a list of thread flags to try. Items starting with a "-" are 18031# C compiler flags, and other items are library names, except for "none" 18032# which indicates that we try without any flags at all, and "pthread-config" 18033# which is a program returning the flags for the Pth emulation library. 18034 18035acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18036 18037# The ordering *is* (sometimes) important. Some notes on the 18038# individual items follow: 18039 18040# pthreads: AIX (must check this before -lpthread) 18041# none: in case threads are in libc; should be tried before -Kthread and 18042# other compiler flags to prevent continual compiler warnings 18043# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18044# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18045# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18046# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 18047# -pthreads: Solaris/gcc 18048# -mthreads: Mingw32/gcc, Lynx/gcc 18049# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18050# doesn't hurt to check since this sometimes defines pthreads too; 18051# also defines -D_REENTRANT) 18052# pthread: Linux, etcetera 18053# --thread-safe: KAI C++ 18054# pthread-config: use pthread-config program (for GNU Pth library) 18055 18056case "${host_cpu}-${host_os}" in 18057 *solaris*) 18058 18059 # On Solaris (at least, for some versions), libc contains stubbed 18060 # (non-functional) versions of the pthreads routines, so link-based 18061 # tests will erroneously succeed. (We need to link with -pthread or 18062 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 18063 # a function called by this macro, so we could check for that, but 18064 # who knows whether they'll stub that too in a future libc.) So, 18065 # we'll just look for -pthreads and -lpthread first: 18066 18067 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 18068 ;; 18069esac 18070 18071if test x"$acx_pthread_ok" = xno; then 18072for flag in $acx_pthread_flags; do 18073 18074 case $flag in 18075 none) 18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18077$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18078 ;; 18079 18080 -*) 18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18082$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18083 PTHREAD_CFLAGS="$flag" 18084 ;; 18085 18086 pthread-config) 18087 # Extract the first word of "pthread-config", so it can be a program name with args. 18088set dummy pthread-config; ac_word=$2 18089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18090$as_echo_n "checking for $ac_word... " >&6; } 18091if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : 18092 $as_echo_n "(cached) " >&6 18093else 18094 if test -n "$acx_pthread_config"; then 18095 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 18096else 18097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18098for as_dir in $PATH 18099do 18100 IFS=$as_save_IFS 18101 test -z "$as_dir" && as_dir=. 18102 for ac_exec_ext in '' $ac_executable_extensions; do 18103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18104 ac_cv_prog_acx_pthread_config="yes" 18105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18106 break 2 18107 fi 18108done 18109 done 18110IFS=$as_save_IFS 18111 18112 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 18113fi 18114fi 18115acx_pthread_config=$ac_cv_prog_acx_pthread_config 18116if test -n "$acx_pthread_config"; then 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 18118$as_echo "$acx_pthread_config" >&6; } 18119else 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18121$as_echo "no" >&6; } 18122fi 18123 18124 18125 if test x"$acx_pthread_config" = xno; then continue; fi 18126 PTHREAD_CFLAGS="`pthread-config --cflags`" 18127 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18128 ;; 18129 18130 *) 18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18132$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18133 PTHREAD_LIBS="-l$flag" 18134 ;; 18135 esac 18136 18137 save_LIBS="$LIBS" 18138 save_CFLAGS="$CFLAGS" 18139 LIBS="$PTHREAD_LIBS $LIBS" 18140 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18141 18142 # Check for various functions. We must include pthread.h, 18143 # since some functions may be macros. (On the Sequent, we 18144 # need a special flag -Kthread to make this header compile.) 18145 # We check for pthread_join because it is in -lpthread on IRIX 18146 # while pthread_create is in libc. We check for pthread_attr_init 18147 # due to DEC craziness with -lpthreads. We check for 18148 # pthread_cleanup_push because it is one of the few pthread 18149 # functions on Solaris that doesn't have a non-functional libc stub. 18150 # We try pthread_create on general principles. 18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152/* end confdefs.h. */ 18153#include <pthread.h> 18154int 18155main () 18156{ 18157pthread_t th; pthread_join(th, 0); 18158 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18159 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18160 ; 18161 return 0; 18162} 18163_ACEOF 18164if ac_fn_c_try_link "$LINENO"; then : 18165 acx_pthread_ok=yes 18166fi 18167rm -f core conftest.err conftest.$ac_objext \ 18168 conftest$ac_exeext conftest.$ac_ext 18169 18170 LIBS="$save_LIBS" 18171 CFLAGS="$save_CFLAGS" 18172 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18174$as_echo "$acx_pthread_ok" >&6; } 18175 if test "x$acx_pthread_ok" = xyes; then 18176 break; 18177 fi 18178 18179 PTHREAD_LIBS="" 18180 PTHREAD_CFLAGS="" 18181done 18182fi 18183 18184# Various other checks: 18185if test "x$acx_pthread_ok" = xyes; then 18186 save_LIBS="$LIBS" 18187 LIBS="$PTHREAD_LIBS $LIBS" 18188 save_CFLAGS="$CFLAGS" 18189 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18190 18191 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18193$as_echo_n "checking for joinable pthread attribute... " >&6; } 18194 attr_name=unknown 18195 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197/* end confdefs.h. */ 18198#include <pthread.h> 18199int 18200main () 18201{ 18202int attr=$attr; 18203 ; 18204 return 0; 18205} 18206_ACEOF 18207if ac_fn_c_try_link "$LINENO"; then : 18208 attr_name=$attr; break 18209fi 18210rm -f core conftest.err conftest.$ac_objext \ 18211 conftest$ac_exeext conftest.$ac_ext 18212 done 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18214$as_echo "$attr_name" >&6; } 18215 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18216 18217cat >>confdefs.h <<_ACEOF 18218#define PTHREAD_CREATE_JOINABLE $attr_name 18219_ACEOF 18220 18221 fi 18222 18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18224$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18225 flag=no 18226 case "${host_cpu}-${host_os}" in 18227 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 18228 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 18229 esac 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 18231$as_echo "${flag}" >&6; } 18232 if test "x$flag" != xno; then 18233 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18234 fi 18235 18236 LIBS="$save_LIBS" 18237 CFLAGS="$save_CFLAGS" 18238 18239 # More AIX lossage: must compile with cc_r 18240 # Extract the first word of "cc_r", so it can be a program name with args. 18241set dummy cc_r; ac_word=$2 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18243$as_echo_n "checking for $ac_word... " >&6; } 18244if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 if test -n "$PTHREAD_CC"; then 18248 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18249else 18250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18251for as_dir in $PATH 18252do 18253 IFS=$as_save_IFS 18254 test -z "$as_dir" && as_dir=. 18255 for ac_exec_ext in '' $ac_executable_extensions; do 18256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18257 ac_cv_prog_PTHREAD_CC="cc_r" 18258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18259 break 2 18260 fi 18261done 18262 done 18263IFS=$as_save_IFS 18264 18265 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 18266fi 18267fi 18268PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18269if test -n "$PTHREAD_CC"; then 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18271$as_echo "$PTHREAD_CC" >&6; } 18272else 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18274$as_echo "no" >&6; } 18275fi 18276 18277 18278else 18279 PTHREAD_CC="$CC" 18280fi 18281 18282 18283 18284 18285 18286# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18287if test x"$acx_pthread_ok" = xyes; then 18288 18289$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18290 18291 : 18292else 18293 acx_pthread_ok=no 18294 18295fi 18296ac_ext=c 18297ac_cpp='$CPP $CPPFLAGS' 18298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18300ac_compiler_gnu=$ac_cv_c_compiler_gnu 18301 18302 18303 18304# 18305# There isn't a reliable way to know we should use the Apple OpenGL framework 18306# without a configure option. A Mac OS X user may have installed an 18307# alternative GL implementation (e.g., Mesa), which may or may not depend on X. 18308# 18309 18310# Check whether --with-apple-opengl-framework was given. 18311if test "${with_apple_opengl_framework+set}" = set; then : 18312 withval=$with_apple_opengl_framework; 18313fi 18314 18315if test "X$with_apple_opengl_framework" = "Xyes"; then 18316 18317$as_echo "#define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h 18318 18319 GL_LIBS="-framework OpenGL" 18320else 18321 ac_ext=c 18322ac_cpp='$CPP $CPPFLAGS' 18323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18325ac_compiler_gnu=$ac_cv_c_compiler_gnu 18326 18327 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 18329$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 18330if test "${ax_cv_c_compiler_ms+set}" = set; then : 18331 $as_echo_n "(cached) " >&6 18332else 18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18334/* end confdefs.h. */ 18335 18336int 18337main () 18338{ 18339#ifndef _MSC_VER 18340 choke me 18341#endif 18342 18343 ; 18344 return 0; 18345} 18346_ACEOF 18347if ac_fn_c_try_compile "$LINENO"; then : 18348 ax_compiler_ms=yes 18349else 18350 ax_compiler_ms=no 18351fi 18352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18353ax_cv_c_compiler_ms=$ax_compiler_ms 18354 18355fi 18356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 18357$as_echo "$ax_cv_c_compiler_ms" >&6; } 18358 if test X$ax_compiler_ms = Xno; then 18359 GL_CFLAGS="${PTHREAD_CFLAGS}" 18360 GL_LIBS="${PTHREAD_LIBS} -lm" 18361 fi 18362 18363 # 18364 # Use x_includes and x_libraries if they have been set (presumably by 18365 # AC_PATH_X). 18366 # 18367 if test "X$no_x" != "Xyes"; then 18368 if test -n "$x_includes"; then 18369 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 18370 fi 18371 if test -n "$x_libraries"; then 18372 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 18373 fi 18374 fi 18375 18376 for ac_header in windows.h 18377do : 18378 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 18379if test "x$ac_cv_header_windows_h" = x""yes; then : 18380 cat >>confdefs.h <<_ACEOF 18381#define HAVE_WINDOWS_H 1 18382_ACEOF 18383 18384fi 18385 18386done 18387 18388 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 18390$as_echo_n "checking for OpenGL library... " >&6; } 18391if test "${ax_cv_check_gl_libgl+set}" = set; then : 18392 $as_echo_n "(cached) " >&6 18393else 18394 ax_cv_check_gl_libgl="no" 18395 ax_save_CPPFLAGS="${CPPFLAGS}" 18396 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 18397 ax_save_LIBS="${LIBS}" 18398 LIBS="" 18399 ax_check_libs="-lopengl32 -lGL" 18400 for ax_lib in ${ax_check_libs}; do 18401 if test X$ax_compiler_ms = Xyes; then 18402 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 18403 else 18404 ax_try_lib="${ax_lib}" 18405 fi 18406 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408/* end confdefs.h. */ 18409 18410# if HAVE_WINDOWS_H && defined(_WIN32) 18411# include <windows.h> 18412# endif 18413# include <GL/gl.h> 18414int 18415main () 18416{ 18417glBegin(0) 18418 ; 18419 return 0; 18420} 18421_ACEOF 18422if ac_fn_c_try_link "$LINENO"; then : 18423 ax_cv_check_gl_libgl="${ax_try_lib}"; break 18424fi 18425rm -f core conftest.err conftest.$ac_objext \ 18426 conftest$ac_exeext conftest.$ac_ext 18427 done 18428 LIBS=${ax_save_LIBS} 18429 CPPFLAGS=${ax_save_CPPFLAGS} 18430fi 18431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 18432$as_echo "$ax_cv_check_gl_libgl" >&6; } 18433 18434 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then 18435 no_gl="yes" 18436 GL_CFLAGS="" 18437 GL_LIBS="" 18438 else 18439 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 18440 fi 18441 ac_ext=c 18442ac_cpp='$CPP $CPPFLAGS' 18443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18445ac_compiler_gnu=$ac_cv_c_compiler_gnu 18446 18447fi 18448 18449 18450 18451 18452GLU_CFLAGS="${GL_CFLAGS}" 18453if test "X${with_apple_opengl_framework}" != "Xyes"; then 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 18455$as_echo_n "checking for OpenGL Utility library... " >&6; } 18456if test "${ax_cv_check_glu_libglu+set}" = set; then : 18457 $as_echo_n "(cached) " >&6 18458else 18459 ax_cv_check_glu_libglu="no" 18460 ax_save_CPPFLAGS="${CPPFLAGS}" 18461 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 18462 ax_save_LIBS="${LIBS}" 18463 LIBS="" 18464 ax_check_libs="-lglu32 -lGLU" 18465 for ax_lib in ${ax_check_libs}; do 18466 if test X$ax_compiler_ms = Xyes; then 18467 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 18468 else 18469 ax_try_lib="${ax_lib}" 18470 fi 18471 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 18472 # 18473 # libGLU typically links with libstdc++ on POSIX platforms. However, 18474 # setting the language to C++ means that test program source is named 18475 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a 18476 # file. 18477 # 18478 ac_ext=cpp 18479ac_cpp='$CXXCPP $CPPFLAGS' 18480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18483 18484 if test X$ax_compiler_ms = Xyes; then 18485 ac_ext=c 18486ac_cpp='$CPP $CPPFLAGS' 18487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18489ac_compiler_gnu=$ac_cv_c_compiler_gnu 18490 18491 fi 18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493/* end confdefs.h. */ 18494 18495# if HAVE_WINDOWS_H && defined(_WIN32) 18496# include <windows.h> 18497# endif 18498# include <GL/glu.h> 18499int 18500main () 18501{ 18502gluBeginCurve(0) 18503 ; 18504 return 0; 18505} 18506_ACEOF 18507if ac_fn_c_try_link "$LINENO"; then : 18508 ax_cv_check_glu_libglu="${ax_try_lib}"; break 18509fi 18510rm -f core conftest.err conftest.$ac_objext \ 18511 conftest$ac_exeext conftest.$ac_ext 18512 if test X$ax_compiler_ms = Xyes; then 18513 ac_ext=cpp 18514ac_cpp='$CXXCPP $CPPFLAGS' 18515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18518 18519 fi 18520 ac_ext=c 18521ac_cpp='$CPP $CPPFLAGS' 18522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18524ac_compiler_gnu=$ac_cv_c_compiler_gnu 18525 18526 done 18527 LIBS=${ax_save_LIBS} 18528 CPPFLAGS=${ax_save_CPPFLAGS} 18529fi 18530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 18531$as_echo "$ax_cv_check_glu_libglu" >&6; } 18532 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then 18533 no_glu="yes" 18534 GLU_CFLAGS="" 18535 GLU_LIBS="" 18536 else 18537 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 18538 fi 18539fi 18540 18541 18542 18543 18544if test "X$with_apple_opengl_framework" = "Xyes"; then 18545 GLUT_CFLAGS="${GLU_CFLAGS}" 18546 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" 18547else 18548 GLUT_CFLAGS=${GLU_CFLAGS} 18549 GLUT_LIBS=${GLU_LIBS} 18550 18551 # 18552 # If X is present, assume GLUT depends on it. 18553 # 18554 if test "X${no_x}" != "Xyes"; then 18555 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 18556 fi 18557 18558 ac_ext=c 18559ac_cpp='$CPP $CPPFLAGS' 18560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18562ac_compiler_gnu=$ac_cv_c_compiler_gnu 18563 18564 18565 ax_save_CPPFLAGS="${CPPFLAGS}" 18566 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 18567 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 18569$as_echo_n "checking for GLUT library... " >&6; } 18570if test "${ax_cv_check_glut_libglut+set}" = set; then : 18571 $as_echo_n "(cached) " >&6 18572else 18573 ax_cv_check_glut_libglut="no" 18574 ax_save_LIBS="${LIBS}" 18575 LIBS="" 18576 ax_check_libs="-lglut32 -lglut" 18577 for ax_lib in ${ax_check_libs}; do 18578 if test X$ax_compiler_ms = Xyes; then 18579 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 18580 else 18581 ax_try_lib="${ax_lib}" 18582 fi 18583 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585/* end confdefs.h. */ 18586 18587# if HAVE_WINDOWS_H && defined(_WIN32) 18588# include <windows.h> 18589# endif 18590# include <GL/glut.h> 18591int 18592main () 18593{ 18594glutMainLoop() 18595 ; 18596 return 0; 18597} 18598_ACEOF 18599if ac_fn_c_try_link "$LINENO"; then : 18600 ax_cv_check_glut_libglut="${ax_try_lib}"; break 18601fi 18602rm -f core conftest.err conftest.$ac_objext \ 18603 conftest$ac_exeext conftest.$ac_ext 18604 18605 done 18606 LIBS=${ax_save_LIBS} 18607 18608fi 18609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 18610$as_echo "$ax_cv_check_glut_libglut" >&6; } 18611 CPPFLAGS="${ax_save_CPPFLAGS}" 18612 ac_ext=c 18613ac_cpp='$CPP $CPPFLAGS' 18614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18616ac_compiler_gnu=$ac_cv_c_compiler_gnu 18617 18618 18619 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then 18620 no_glut="yes" 18621 GLUT_CFLAGS="" 18622 GLUT_LIBS="" 18623 else 18624 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 18625 fi 18626fi 18627 18628 18629 18630 18631 18632if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 18633 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 18634 HAVE_OPENGL=yes 18635fi 18636 18637 if test "$HAVE_OPENGL" = "yes"; then 18638 HAVE_OPENGL_TRUE= 18639 HAVE_OPENGL_FALSE='#' 18640else 18641 HAVE_OPENGL_TRUE='#' 18642 HAVE_OPENGL_FALSE= 18643fi 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653# Check whether --enable-strip-chopping was given. 18654if test "${enable_strip_chopping+set}" = set; then : 18655 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 18656else 18657 HAVE_STRIPCHOP=yes 18658fi 18659 18660 18661# Check whether --with-default-strip-size was given. 18662if test "${with_default_strip_size+set}" = set; then : 18663 withval=$with_default_strip_size; 18664fi 18665 18666 18667if test "$HAVE_STRIPCHOP" = "yes" \ 18668 -a "x$with_default_strip_size" != "xno"; then 18669 18670$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 18671 18672 18673 if test "x$with_default_strip_size" = "x" \ 18674 -o "x$with_default_strip_size" = "xyes"; then 18675 with_default_strip_size="8192" 18676 fi 18677 18678 18679cat >>confdefs.h <<_ACEOF 18680#define STRIP_SIZE_DEFAULT $with_default_strip_size 18681_ACEOF 18682 18683 18684fi 18685 18686 18687$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 18688 18689 18690 18691# Check whether --enable-extrasample-as-alpha was given. 18692if test "${enable_extrasample_as_alpha+set}" = set; then : 18693 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 18694else 18695 HAVE_EXTRASAMPLE_AS_ALPHA=yes 18696fi 18697 18698 18699if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 18700 18701$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 18702 18703fi 18704 18705 18706# Check whether --enable-check-ycbcr-subsampling was given. 18707if test "${enable_check_ycbcr_subsampling+set}" = set; then : 18708 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 18709else 18710 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 18711fi 18712 18713 18714if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 18715 18716$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 18717 18718fi 18719 18720 18721 18722 18723ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 18724 18725 18726ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/acorn/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mac-cw/Makefile contrib/mac-mpw/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/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile" 18727 18728cat >confcache <<\_ACEOF 18729# This file is a shell script that caches the results of configure 18730# tests run on this system so they can be shared between configure 18731# scripts and configure runs, see configure's option --config-cache. 18732# It is not useful on other systems. If it contains results you don't 18733# want to keep, you may remove or edit it. 18734# 18735# config.status only pays attention to the cache file if you give it 18736# the --recheck option to rerun configure. 18737# 18738# `ac_cv_env_foo' variables (set or unset) will be overridden when 18739# loading this file, other *unset* `ac_cv_foo' will be assigned the 18740# following values. 18741 18742_ACEOF 18743 18744# The following way of writing the cache mishandles newlines in values, 18745# but we know of no workaround that is simple, portable, and efficient. 18746# So, we kill variables containing newlines. 18747# Ultrix sh set writes to stderr and can't be redirected directly, 18748# and sets the high bit in the cache file unless we assign to the vars. 18749( 18750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18751 eval ac_val=\$$ac_var 18752 case $ac_val in #( 18753 *${as_nl}*) 18754 case $ac_var in #( 18755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18757 esac 18758 case $ac_var in #( 18759 _ | IFS | as_nl) ;; #( 18760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18761 *) { eval $ac_var=; unset $ac_var;} ;; 18762 esac ;; 18763 esac 18764 done 18765 18766 (set) 2>&1 | 18767 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18768 *${as_nl}ac_space=\ *) 18769 # `set' does not quote correctly, so add quotes: double-quote 18770 # substitution turns \\\\ into \\, and sed turns \\ into \. 18771 sed -n \ 18772 "s/'/'\\\\''/g; 18773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18774 ;; #( 18775 *) 18776 # `set' quotes correctly as required by POSIX, so do not add quotes. 18777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18778 ;; 18779 esac | 18780 sort 18781) | 18782 sed ' 18783 /^ac_cv_env_/b end 18784 t clear 18785 :clear 18786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18787 t end 18788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18789 :end' >>confcache 18790if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18791 if test -w "$cache_file"; then 18792 test "x$cache_file" != "x/dev/null" && 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18794$as_echo "$as_me: updating cache $cache_file" >&6;} 18795 cat confcache >$cache_file 18796 else 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18798$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18799 fi 18800fi 18801rm -f confcache 18802 18803test "x$prefix" = xNONE && prefix=$ac_default_prefix 18804# Let make expand exec_prefix. 18805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18806 18807DEFS=-DHAVE_CONFIG_H 18808 18809ac_libobjs= 18810ac_ltlibobjs= 18811for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18812 # 1. Remove the extension, and $U if already installed. 18813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18816 # will be set to the directory where LIBOBJS objects are built. 18817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18819done 18820LIBOBJS=$ac_libobjs 18821 18822LTLIBOBJS=$ac_ltlibobjs 18823 18824 18825 if test -n "$EXEEXT"; then 18826 am__EXEEXT_TRUE= 18827 am__EXEEXT_FALSE='#' 18828else 18829 am__EXEEXT_TRUE='#' 18830 am__EXEEXT_FALSE= 18831fi 18832 18833if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18834 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 18835Usually this means the macro was only invoked conditionally." "$LINENO" 5 18836fi 18837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18838 as_fn_error "conditional \"AMDEP\" was never defined. 18839Usually this means the macro was only invoked conditionally." "$LINENO" 5 18840fi 18841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18842 as_fn_error "conditional \"am__fastdepCC\" was never defined. 18843Usually this means the macro was only invoked conditionally." "$LINENO" 5 18844fi 18845if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18846 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 18847Usually this means the macro was only invoked conditionally." "$LINENO" 5 18848fi 18849 18850if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 18851 as_fn_error "conditional \"HAVE_RPATH\" was never defined. 18852Usually this means the macro was only invoked conditionally." "$LINENO" 5 18853fi 18854if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 18855 as_fn_error "conditional \"HAVE_CXX\" was never defined. 18856Usually this means the macro was only invoked conditionally." "$LINENO" 5 18857fi 18858if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 18859 as_fn_error "conditional \"HAVE_OPENGL\" was never defined. 18860Usually this means the macro was only invoked conditionally." "$LINENO" 5 18861fi 18862 18863: ${CONFIG_STATUS=./config.status} 18864ac_write_fail=0 18865ac_clean_files_save=$ac_clean_files 18866ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18867{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18868$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18869as_write_fail=0 18870cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18871#! $SHELL 18872# Generated by $as_me. 18873# Run this file to recreate the current configuration. 18874# Compiler output produced by configure, useful for debugging 18875# configure, is in config.log if it exists. 18876 18877debug=false 18878ac_cs_recheck=false 18879ac_cs_silent=false 18880 18881SHELL=\${CONFIG_SHELL-$SHELL} 18882export SHELL 18883_ASEOF 18884cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18885## -------------------- ## 18886## M4sh Initialization. ## 18887## -------------------- ## 18888 18889# Be more Bourne compatible 18890DUALCASE=1; export DUALCASE # for MKS sh 18891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18892 emulate sh 18893 NULLCMD=: 18894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18895 # is contrary to our usage. Disable this feature. 18896 alias -g '${1+"$@"}'='"$@"' 18897 setopt NO_GLOB_SUBST 18898else 18899 case `(set -o) 2>/dev/null` in #( 18900 *posix*) : 18901 set -o posix ;; #( 18902 *) : 18903 ;; 18904esac 18905fi 18906 18907 18908as_nl=' 18909' 18910export as_nl 18911# Printing a long string crashes Solaris 7 /usr/bin/printf. 18912as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18915# Prefer a ksh shell builtin over an external printf program on Solaris, 18916# but without wasting forks for bash or zsh. 18917if test -z "$BASH_VERSION$ZSH_VERSION" \ 18918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18919 as_echo='print -r --' 18920 as_echo_n='print -rn --' 18921elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18922 as_echo='printf %s\n' 18923 as_echo_n='printf %s' 18924else 18925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18927 as_echo_n='/usr/ucb/echo -n' 18928 else 18929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18930 as_echo_n_body='eval 18931 arg=$1; 18932 case $arg in #( 18933 *"$as_nl"*) 18934 expr "X$arg" : "X\\(.*\\)$as_nl"; 18935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18936 esac; 18937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18938 ' 18939 export as_echo_n_body 18940 as_echo_n='sh -c $as_echo_n_body as_echo' 18941 fi 18942 export as_echo_body 18943 as_echo='sh -c $as_echo_body as_echo' 18944fi 18945 18946# The user is always right. 18947if test "${PATH_SEPARATOR+set}" != set; then 18948 PATH_SEPARATOR=: 18949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18951 PATH_SEPARATOR=';' 18952 } 18953fi 18954 18955 18956# IFS 18957# We need space, tab and new line, in precisely that order. Quoting is 18958# there to prevent editors from complaining about space-tab. 18959# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18960# splitting by setting IFS to empty value.) 18961IFS=" "" $as_nl" 18962 18963# Find who we are. Look in the path if we contain no directory separator. 18964case $0 in #(( 18965 *[\\/]* ) as_myself=$0 ;; 18966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18967for as_dir in $PATH 18968do 18969 IFS=$as_save_IFS 18970 test -z "$as_dir" && as_dir=. 18971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18972 done 18973IFS=$as_save_IFS 18974 18975 ;; 18976esac 18977# We did not find ourselves, most probably we were run as `sh COMMAND' 18978# in which case we are not to be found in the path. 18979if test "x$as_myself" = x; then 18980 as_myself=$0 18981fi 18982if test ! -f "$as_myself"; then 18983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18984 exit 1 18985fi 18986 18987# Unset variables that we do not need and which cause bugs (e.g. in 18988# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18989# suppresses any "Segmentation fault" message there. '((' could 18990# trigger a bug in pdksh 5.2.14. 18991for as_var in BASH_ENV ENV MAIL MAILPATH 18992do eval test x\${$as_var+set} = xset \ 18993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18994done 18995PS1='$ ' 18996PS2='> ' 18997PS4='+ ' 18998 18999# NLS nuisances. 19000LC_ALL=C 19001export LC_ALL 19002LANGUAGE=C 19003export LANGUAGE 19004 19005# CDPATH. 19006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19007 19008 19009# as_fn_error ERROR [LINENO LOG_FD] 19010# --------------------------------- 19011# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19012# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19013# script with status $?, using 1 if that was 0. 19014as_fn_error () 19015{ 19016 as_status=$?; test $as_status -eq 0 && as_status=1 19017 if test "$3"; then 19018 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 19020 fi 19021 $as_echo "$as_me: error: $1" >&2 19022 as_fn_exit $as_status 19023} # as_fn_error 19024 19025 19026# as_fn_set_status STATUS 19027# ----------------------- 19028# Set $? to STATUS, without forking. 19029as_fn_set_status () 19030{ 19031 return $1 19032} # as_fn_set_status 19033 19034# as_fn_exit STATUS 19035# ----------------- 19036# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19037as_fn_exit () 19038{ 19039 set +e 19040 as_fn_set_status $1 19041 exit $1 19042} # as_fn_exit 19043 19044# as_fn_unset VAR 19045# --------------- 19046# Portably unset VAR. 19047as_fn_unset () 19048{ 19049 { eval $1=; unset $1;} 19050} 19051as_unset=as_fn_unset 19052# as_fn_append VAR VALUE 19053# ---------------------- 19054# Append the text in VALUE to the end of the definition contained in VAR. Take 19055# advantage of any shell optimizations that allow amortized linear growth over 19056# repeated appends, instead of the typical quadratic growth present in naive 19057# implementations. 19058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19059 eval 'as_fn_append () 19060 { 19061 eval $1+=\$2 19062 }' 19063else 19064 as_fn_append () 19065 { 19066 eval $1=\$$1\$2 19067 } 19068fi # as_fn_append 19069 19070# as_fn_arith ARG... 19071# ------------------ 19072# Perform arithmetic evaluation on the ARGs, and store the result in the 19073# global $as_val. Take advantage of shells that can avoid forks. The arguments 19074# must be portable across $(()) and expr. 19075if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19076 eval 'as_fn_arith () 19077 { 19078 as_val=$(( $* )) 19079 }' 19080else 19081 as_fn_arith () 19082 { 19083 as_val=`expr "$@" || test $? -eq 1` 19084 } 19085fi # as_fn_arith 19086 19087 19088if expr a : '\(a\)' >/dev/null 2>&1 && 19089 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19090 as_expr=expr 19091else 19092 as_expr=false 19093fi 19094 19095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19096 as_basename=basename 19097else 19098 as_basename=false 19099fi 19100 19101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19102 as_dirname=dirname 19103else 19104 as_dirname=false 19105fi 19106 19107as_me=`$as_basename -- "$0" || 19108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19109 X"$0" : 'X\(//\)$' \| \ 19110 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19111$as_echo X/"$0" | 19112 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19113 s//\1/ 19114 q 19115 } 19116 /^X\/\(\/\/\)$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\/\(\/\).*/{ 19121 s//\1/ 19122 q 19123 } 19124 s/.*/./; q'` 19125 19126# Avoid depending upon Character Ranges. 19127as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19129as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19130as_cr_digits='0123456789' 19131as_cr_alnum=$as_cr_Letters$as_cr_digits 19132 19133ECHO_C= ECHO_N= ECHO_T= 19134case `echo -n x` in #((((( 19135-n*) 19136 case `echo 'xy\c'` in 19137 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19138 xy) ECHO_C='\c';; 19139 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19140 ECHO_T=' ';; 19141 esac;; 19142*) 19143 ECHO_N='-n';; 19144esac 19145 19146rm -f conf$$ conf$$.exe conf$$.file 19147if test -d conf$$.dir; then 19148 rm -f conf$$.dir/conf$$.file 19149else 19150 rm -f conf$$.dir 19151 mkdir conf$$.dir 2>/dev/null 19152fi 19153if (echo >conf$$.file) 2>/dev/null; then 19154 if ln -s conf$$.file conf$$ 2>/dev/null; then 19155 as_ln_s='ln -s' 19156 # ... but there are two gotchas: 19157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19159 # In both cases, we have to default to `cp -p'. 19160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19161 as_ln_s='cp -p' 19162 elif ln conf$$.file conf$$ 2>/dev/null; then 19163 as_ln_s=ln 19164 else 19165 as_ln_s='cp -p' 19166 fi 19167else 19168 as_ln_s='cp -p' 19169fi 19170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19171rmdir conf$$.dir 2>/dev/null 19172 19173 19174# as_fn_mkdir_p 19175# ------------- 19176# Create "$as_dir" as a directory, including parents if necessary. 19177as_fn_mkdir_p () 19178{ 19179 19180 case $as_dir in #( 19181 -*) as_dir=./$as_dir;; 19182 esac 19183 test -d "$as_dir" || eval $as_mkdir_p || { 19184 as_dirs= 19185 while :; do 19186 case $as_dir in #( 19187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19188 *) as_qdir=$as_dir;; 19189 esac 19190 as_dirs="'$as_qdir' $as_dirs" 19191 as_dir=`$as_dirname -- "$as_dir" || 19192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19193 X"$as_dir" : 'X\(//\)[^/]' \| \ 19194 X"$as_dir" : 'X\(//\)$' \| \ 19195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19196$as_echo X"$as_dir" | 19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19198 s//\1/ 19199 q 19200 } 19201 /^X\(\/\/\)[^/].*/{ 19202 s//\1/ 19203 q 19204 } 19205 /^X\(\/\/\)$/{ 19206 s//\1/ 19207 q 19208 } 19209 /^X\(\/\).*/{ 19210 s//\1/ 19211 q 19212 } 19213 s/.*/./; q'` 19214 test -d "$as_dir" && break 19215 done 19216 test -z "$as_dirs" || eval "mkdir $as_dirs" 19217 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 19218 19219 19220} # as_fn_mkdir_p 19221if mkdir -p . 2>/dev/null; then 19222 as_mkdir_p='mkdir -p "$as_dir"' 19223else 19224 test -d ./-p && rmdir ./-p 19225 as_mkdir_p=false 19226fi 19227 19228if test -x / >/dev/null 2>&1; then 19229 as_test_x='test -x' 19230else 19231 if ls -dL / >/dev/null 2>&1; then 19232 as_ls_L_option=L 19233 else 19234 as_ls_L_option= 19235 fi 19236 as_test_x=' 19237 eval sh -c '\'' 19238 if test -d "$1"; then 19239 test -d "$1/."; 19240 else 19241 case $1 in #( 19242 -*)set "./$1";; 19243 esac; 19244 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19245 ???[sx]*):;;*)false;;esac;fi 19246 '\'' sh 19247 ' 19248fi 19249as_executable_p=$as_test_x 19250 19251# Sed expression to map a string onto a valid CPP name. 19252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19253 19254# Sed expression to map a string onto a valid variable name. 19255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19256 19257 19258exec 6>&1 19259## ----------------------------------- ## 19260## Main body of $CONFIG_STATUS script. ## 19261## ----------------------------------- ## 19262_ASEOF 19263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19264 19265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19266# Save the log message, to keep $0 and so on meaningful, and to 19267# report actual input values of CONFIG_FILES etc. instead of their 19268# values after options handling. 19269ac_log=" 19270This file was extended by LibTIFF Software $as_me 3.9.4, which was 19271generated by GNU Autoconf 2.65. Invocation command line was 19272 19273 CONFIG_FILES = $CONFIG_FILES 19274 CONFIG_HEADERS = $CONFIG_HEADERS 19275 CONFIG_LINKS = $CONFIG_LINKS 19276 CONFIG_COMMANDS = $CONFIG_COMMANDS 19277 $ $0 $@ 19278 19279on `(hostname || uname -n) 2>/dev/null | sed 1q` 19280" 19281 19282_ACEOF 19283 19284case $ac_config_files in *" 19285"*) set x $ac_config_files; shift; ac_config_files=$*;; 19286esac 19287 19288case $ac_config_headers in *" 19289"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19290esac 19291 19292 19293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19294# Files that config.status was made for. 19295config_files="$ac_config_files" 19296config_headers="$ac_config_headers" 19297config_commands="$ac_config_commands" 19298 19299_ACEOF 19300 19301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19302ac_cs_usage="\ 19303\`$as_me' instantiates files and other configuration actions 19304from templates according to the current configuration. Unless the files 19305and actions are specified as TAGs, all are instantiated by default. 19306 19307Usage: $0 [OPTION]... [TAG]... 19308 19309 -h, --help print this help, then exit 19310 -V, --version print version number and configuration settings, then exit 19311 --config print configuration, then exit 19312 -q, --quiet, --silent 19313 do not print progress messages 19314 -d, --debug don't remove temporary files 19315 --recheck update $as_me by reconfiguring in the same conditions 19316 --file=FILE[:TEMPLATE] 19317 instantiate the configuration file FILE 19318 --header=FILE[:TEMPLATE] 19319 instantiate the configuration header FILE 19320 19321Configuration files: 19322$config_files 19323 19324Configuration headers: 19325$config_headers 19326 19327Configuration commands: 19328$config_commands 19329 19330Report bugs to <tiff@lists.maptools.org>." 19331 19332_ACEOF 19333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19335ac_cs_version="\\ 19336LibTIFF Software config.status 3.9.4 19337configured by $0, generated by GNU Autoconf 2.65, 19338 with options \\"\$ac_cs_config\\" 19339 19340Copyright (C) 2009 Free Software Foundation, Inc. 19341This config.status script is free software; the Free Software Foundation 19342gives unlimited permission to copy, distribute and modify it." 19343 19344ac_pwd='$ac_pwd' 19345srcdir='$srcdir' 19346INSTALL='$INSTALL' 19347MKDIR_P='$MKDIR_P' 19348AWK='$AWK' 19349test -n "\$AWK" || AWK=awk 19350_ACEOF 19351 19352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19353# The default lists apply if the user does not specify any file. 19354ac_need_defaults=: 19355while test $# != 0 19356do 19357 case $1 in 19358 --*=*) 19359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19361 ac_shift=: 19362 ;; 19363 *) 19364 ac_option=$1 19365 ac_optarg=$2 19366 ac_shift=shift 19367 ;; 19368 esac 19369 19370 case $ac_option in 19371 # Handling of the options. 19372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19373 ac_cs_recheck=: ;; 19374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19375 $as_echo "$ac_cs_version"; exit ;; 19376 --config | --confi | --conf | --con | --co | --c ) 19377 $as_echo "$ac_cs_config"; exit ;; 19378 --debug | --debu | --deb | --de | --d | -d ) 19379 debug=: ;; 19380 --file | --fil | --fi | --f ) 19381 $ac_shift 19382 case $ac_optarg in 19383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19384 esac 19385 as_fn_append CONFIG_FILES " '$ac_optarg'" 19386 ac_need_defaults=false;; 19387 --header | --heade | --head | --hea ) 19388 $ac_shift 19389 case $ac_optarg in 19390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19391 esac 19392 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19393 ac_need_defaults=false;; 19394 --he | --h) 19395 # Conflict between --help and --header 19396 as_fn_error "ambiguous option: \`$1' 19397Try \`$0 --help' for more information.";; 19398 --help | --hel | -h ) 19399 $as_echo "$ac_cs_usage"; exit ;; 19400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19401 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19402 ac_cs_silent=: ;; 19403 19404 # This is an error. 19405 -*) as_fn_error "unrecognized option: \`$1' 19406Try \`$0 --help' for more information." ;; 19407 19408 *) as_fn_append ac_config_targets " $1" 19409 ac_need_defaults=false ;; 19410 19411 esac 19412 shift 19413done 19414 19415ac_configure_extra_args= 19416 19417if $ac_cs_silent; then 19418 exec 6>/dev/null 19419 ac_configure_extra_args="$ac_configure_extra_args --silent" 19420fi 19421 19422_ACEOF 19423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19424if \$ac_cs_recheck; then 19425 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19426 shift 19427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19428 CONFIG_SHELL='$SHELL' 19429 export CONFIG_SHELL 19430 exec "\$@" 19431fi 19432 19433_ACEOF 19434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19435exec 5>>config.log 19436{ 19437 echo 19438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19439## Running $as_me. ## 19440_ASBOX 19441 $as_echo "$ac_log" 19442} >&5 19443 19444_ACEOF 19445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19446# 19447# INIT-COMMANDS 19448# 19449AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19450 19451 19452# The HP-UX ksh and POSIX shell print the target directory to stdout 19453# if CDPATH is set. 19454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19455 19456sed_quote_subst='$sed_quote_subst' 19457double_quote_subst='$double_quote_subst' 19458delay_variable_subst='$delay_variable_subst' 19459SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19460Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19461GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19462EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19463FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19464SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19465ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19466LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19467macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19468macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19469AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19470DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19471OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19472enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19473enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19474pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19475enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19476host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19477host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19478host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19479build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19480build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19481build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19482NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19483LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19484max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19485ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19486exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19487lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19488lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19489lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19490reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19491reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19492deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19493file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19494AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19495AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19496STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19497RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19498old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19499old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19500old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19501lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19502CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19503CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19504compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19505GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19506lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19507lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19508lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19509lt_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"`' 19510objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19511MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19512lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19513lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19514lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19515lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19516lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19517need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19518DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19519NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19520LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19521OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19522OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19523libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19524shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19525extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19526archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19527enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19528export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19529whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19530compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19531old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19532old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19533archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19534archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19535module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19536module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19537with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19538allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19539no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19540hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19541hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19542hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19543hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19544hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19545hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19546hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19547hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19548inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19549link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19550fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 19551always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19552export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19553exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19554include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19555prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19556file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19557variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19558need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19559need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19560version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19561runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19562shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19563shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19564libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19565library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19566soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19567install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19568postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19569postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19570finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19571finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19572hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19573sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19574sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19575hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19576enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19577enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19578enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19579old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19580striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19581compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19582predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19583postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19584predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19585postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19586compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19587LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19588reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19589reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19590old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19591compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19592GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19593lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19594lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19595lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19596lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19597lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19598archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19599enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19600export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19601whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19602compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19603old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19604old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19605archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19606archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19607module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19608module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19609with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19610allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19611no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19612hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19613hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 19614hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19615hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19616hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19617hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19618hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19619hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19620inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19621link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19622fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 19623always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19624export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19625exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19626include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19627prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19628file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19629hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19630compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19631predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19632postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19633predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19634postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19635compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19636 19637LTCC='$LTCC' 19638LTCFLAGS='$LTCFLAGS' 19639compiler='$compiler_DEFAULT' 19640 19641# A function that is used when there is no print builtin or printf. 19642func_fallback_echo () 19643{ 19644 eval 'cat <<_LTECHO_EOF 19645\$1 19646_LTECHO_EOF' 19647} 19648 19649# Quote evaled strings. 19650for var in SED \ 19651GREP \ 19652EGREP \ 19653FGREP \ 19654SHELL \ 19655ECHO \ 19656LD \ 19657AS \ 19658DLLTOOL \ 19659OBJDUMP \ 19660NM \ 19661LN_S \ 19662lt_SP2NL \ 19663lt_NL2SP \ 19664reload_flag \ 19665deplibs_check_method \ 19666file_magic_cmd \ 19667AR \ 19668AR_FLAGS \ 19669STRIP \ 19670RANLIB \ 19671CC \ 19672CFLAGS \ 19673compiler \ 19674lt_cv_sys_global_symbol_pipe \ 19675lt_cv_sys_global_symbol_to_cdecl \ 19676lt_cv_sys_global_symbol_to_c_name_address \ 19677lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19678lt_prog_compiler_no_builtin_flag \ 19679lt_prog_compiler_wl \ 19680lt_prog_compiler_pic \ 19681lt_prog_compiler_static \ 19682lt_cv_prog_compiler_c_o \ 19683need_locks \ 19684DSYMUTIL \ 19685NMEDIT \ 19686LIPO \ 19687OTOOL \ 19688OTOOL64 \ 19689shrext_cmds \ 19690export_dynamic_flag_spec \ 19691whole_archive_flag_spec \ 19692compiler_needs_object \ 19693with_gnu_ld \ 19694allow_undefined_flag \ 19695no_undefined_flag \ 19696hardcode_libdir_flag_spec \ 19697hardcode_libdir_flag_spec_ld \ 19698hardcode_libdir_separator \ 19699fix_srcfile_path \ 19700exclude_expsyms \ 19701include_expsyms \ 19702file_list_spec \ 19703variables_saved_for_relink \ 19704libname_spec \ 19705library_names_spec \ 19706soname_spec \ 19707install_override_mode \ 19708finish_eval \ 19709old_striplib \ 19710striplib \ 19711compiler_lib_search_dirs \ 19712predep_objects \ 19713postdep_objects \ 19714predeps \ 19715postdeps \ 19716compiler_lib_search_path \ 19717LD_CXX \ 19718reload_flag_CXX \ 19719compiler_CXX \ 19720lt_prog_compiler_no_builtin_flag_CXX \ 19721lt_prog_compiler_wl_CXX \ 19722lt_prog_compiler_pic_CXX \ 19723lt_prog_compiler_static_CXX \ 19724lt_cv_prog_compiler_c_o_CXX \ 19725export_dynamic_flag_spec_CXX \ 19726whole_archive_flag_spec_CXX \ 19727compiler_needs_object_CXX \ 19728with_gnu_ld_CXX \ 19729allow_undefined_flag_CXX \ 19730no_undefined_flag_CXX \ 19731hardcode_libdir_flag_spec_CXX \ 19732hardcode_libdir_flag_spec_ld_CXX \ 19733hardcode_libdir_separator_CXX \ 19734fix_srcfile_path_CXX \ 19735exclude_expsyms_CXX \ 19736include_expsyms_CXX \ 19737file_list_spec_CXX \ 19738compiler_lib_search_dirs_CXX \ 19739predep_objects_CXX \ 19740postdep_objects_CXX \ 19741predeps_CXX \ 19742postdeps_CXX \ 19743compiler_lib_search_path_CXX; do 19744 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19745 *[\\\\\\\`\\"\\\$]*) 19746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19747 ;; 19748 *) 19749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19750 ;; 19751 esac 19752done 19753 19754# Double-quote double-evaled strings. 19755for var in reload_cmds \ 19756old_postinstall_cmds \ 19757old_postuninstall_cmds \ 19758old_archive_cmds \ 19759extract_expsyms_cmds \ 19760old_archive_from_new_cmds \ 19761old_archive_from_expsyms_cmds \ 19762archive_cmds \ 19763archive_expsym_cmds \ 19764module_cmds \ 19765module_expsym_cmds \ 19766export_symbols_cmds \ 19767prelink_cmds \ 19768postinstall_cmds \ 19769postuninstall_cmds \ 19770finish_cmds \ 19771sys_lib_search_path_spec \ 19772sys_lib_dlsearch_path_spec \ 19773reload_cmds_CXX \ 19774old_archive_cmds_CXX \ 19775old_archive_from_new_cmds_CXX \ 19776old_archive_from_expsyms_cmds_CXX \ 19777archive_cmds_CXX \ 19778archive_expsym_cmds_CXX \ 19779module_cmds_CXX \ 19780module_expsym_cmds_CXX \ 19781export_symbols_cmds_CXX \ 19782prelink_cmds_CXX; do 19783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19784 *[\\\\\\\`\\"\\\$]*) 19785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19786 ;; 19787 *) 19788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19789 ;; 19790 esac 19791done 19792 19793ac_aux_dir='$ac_aux_dir' 19794xsi_shell='$xsi_shell' 19795lt_shell_append='$lt_shell_append' 19796 19797# See if we are running on zsh, and set the options which allow our 19798# commands through without removal of \ escapes INIT. 19799if test -n "\${ZSH_VERSION+set}" ; then 19800 setopt NO_GLOB_SUBST 19801fi 19802 19803 19804 PACKAGE='$PACKAGE' 19805 VERSION='$VERSION' 19806 TIMESTAMP='$TIMESTAMP' 19807 RM='$RM' 19808 ofile='$ofile' 19809 19810 19811 19812 19813 19814 19815_ACEOF 19816 19817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19818 19819# Handling of arguments. 19820for ac_config_target in $ac_config_targets 19821do 19822 case $ac_config_target in 19823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19825 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 19826 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 19827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19828 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 19829 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 19830 "contrib/acorn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/acorn/Makefile" ;; 19831 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 19832 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 19833 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 19834 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 19835 "contrib/mac-cw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-cw/Makefile" ;; 19836 "contrib/mac-mpw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-mpw/Makefile" ;; 19837 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 19838 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 19839 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 19840 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 19841 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 19842 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 19843 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 19844 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 19845 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 19846 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 19847 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19848 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 19849 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19850 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 19851 19852 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19853 esac 19854done 19855 19856 19857# If the user did not use the arguments to specify the items to instantiate, 19858# then the envvar interface is used. Set only those that are not. 19859# We use the long form for the default assignment because of an extremely 19860# bizarre bug on SunOS 4.1.3. 19861if $ac_need_defaults; then 19862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19865fi 19866 19867# Have a temporary directory for convenience. Make it in the build tree 19868# simply because there is no reason against having it here, and in addition, 19869# creating and moving files from /tmp can sometimes cause problems. 19870# Hook for its removal unless debugging. 19871# Note that there is a small window in which the directory will not be cleaned: 19872# after its creation but before its name has been assigned to `$tmp'. 19873$debug || 19874{ 19875 tmp= 19876 trap 'exit_status=$? 19877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 19878' 0 19879 trap 'as_fn_exit 1' 1 2 13 15 19880} 19881# Create a (secure) tmp directory for tmp files. 19882 19883{ 19884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19885 test -n "$tmp" && test -d "$tmp" 19886} || 19887{ 19888 tmp=./conf$$-$RANDOM 19889 (umask 077 && mkdir "$tmp") 19890} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 19891 19892# Set up the scripts for CONFIG_FILES section. 19893# No need to generate them if there are no CONFIG_FILES. 19894# This happens for instance with `./config.status config.h'. 19895if test -n "$CONFIG_FILES"; then 19896 19897 19898ac_cr=`echo X | tr X '\015'` 19899# On cygwin, bash can eat \r inside `` if the user requested igncr. 19900# But we know of no other shell where ac_cr would be empty at this 19901# point, so we can use a bashism as a fallback. 19902if test "x$ac_cr" = x; then 19903 eval ac_cr=\$\'\\r\' 19904fi 19905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19907 ac_cs_awk_cr='\r' 19908else 19909 ac_cs_awk_cr=$ac_cr 19910fi 19911 19912echo 'BEGIN {' >"$tmp/subs1.awk" && 19913_ACEOF 19914 19915 19916{ 19917 echo "cat >conf$$subs.awk <<_ACEOF" && 19918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19919 echo "_ACEOF" 19920} >conf$$subs.sh || 19921 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19922ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 19923ac_delim='%!_!# ' 19924for ac_last_try in false false false false false :; do 19925 . ./conf$$subs.sh || 19926 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19927 19928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19929 if test $ac_delim_n = $ac_delim_num; then 19930 break 19931 elif $ac_last_try; then 19932 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19933 else 19934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19935 fi 19936done 19937rm -f conf$$subs.sh 19938 19939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19940cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 19941_ACEOF 19942sed -n ' 19943h 19944s/^/S["/; s/!.*/"]=/ 19945p 19946g 19947s/^[^!]*!// 19948:repl 19949t repl 19950s/'"$ac_delim"'$// 19951t delim 19952:nl 19953h 19954s/\(.\{148\}\)..*/\1/ 19955t more1 19956s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19957p 19958n 19959b repl 19960:more1 19961s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19962p 19963g 19964s/.\{148\}// 19965t nl 19966:delim 19967h 19968s/\(.\{148\}\)..*/\1/ 19969t more2 19970s/["\\]/\\&/g; s/^/"/; s/$/"/ 19971p 19972b 19973:more2 19974s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19975p 19976g 19977s/.\{148\}// 19978t delim 19979' <conf$$subs.awk | sed ' 19980/^[^""]/{ 19981 N 19982 s/\n// 19983} 19984' >>$CONFIG_STATUS || ac_write_fail=1 19985rm -f conf$$subs.awk 19986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19987_ACAWK 19988cat >>"\$tmp/subs1.awk" <<_ACAWK && 19989 for (key in S) S_is_set[key] = 1 19990 FS = "" 19991 19992} 19993{ 19994 line = $ 0 19995 nfields = split(line, field, "@") 19996 substed = 0 19997 len = length(field[1]) 19998 for (i = 2; i < nfields; i++) { 19999 key = field[i] 20000 keylen = length(key) 20001 if (S_is_set[key]) { 20002 value = S[key] 20003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20004 len += length(value) + length(field[++i]) 20005 substed = 1 20006 } else 20007 len += 1 + keylen 20008 } 20009 20010 print line 20011} 20012 20013_ACAWK 20014_ACEOF 20015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20016if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20018else 20019 cat 20020fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 20021 || as_fn_error "could not setup config files machinery" "$LINENO" 5 20022_ACEOF 20023 20024# VPATH may cause trouble with some makes, so we remove $(srcdir), 20025# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20026# trailing colons and then remove the whole line if VPATH becomes empty 20027# (actually we leave an empty line to preserve line numbers). 20028if test "x$srcdir" = x.; then 20029 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20030s/:*\$(srcdir):*/:/ 20031s/:*\${srcdir}:*/:/ 20032s/:*@srcdir@:*/:/ 20033s/^\([^=]*=[ ]*\):*/\1/ 20034s/:*$// 20035s/^[^=]*=[ ]*$// 20036}' 20037fi 20038 20039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20040fi # test -n "$CONFIG_FILES" 20041 20042# Set up the scripts for CONFIG_HEADERS section. 20043# No need to generate them if there are no CONFIG_HEADERS. 20044# This happens for instance with `./config.status Makefile'. 20045if test -n "$CONFIG_HEADERS"; then 20046cat >"$tmp/defines.awk" <<\_ACAWK || 20047BEGIN { 20048_ACEOF 20049 20050# Transform confdefs.h into an awk script `defines.awk', embedded as 20051# here-document in config.status, that substitutes the proper values into 20052# config.h.in to produce config.h. 20053 20054# Create a delimiter string that does not exist in confdefs.h, to ease 20055# handling of long lines. 20056ac_delim='%!_!# ' 20057for ac_last_try in false false :; do 20058 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 20059 if test -z "$ac_t"; then 20060 break 20061 elif $ac_last_try; then 20062 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 20063 else 20064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20065 fi 20066done 20067 20068# For the awk script, D is an array of macro values keyed by name, 20069# likewise P contains macro parameters if any. Preserve backslash 20070# newline sequences. 20071 20072ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20073sed -n ' 20074s/.\{148\}/&'"$ac_delim"'/g 20075t rset 20076:rset 20077s/^[ ]*#[ ]*define[ ][ ]*/ / 20078t def 20079d 20080:def 20081s/\\$// 20082t bsnl 20083s/["\\]/\\&/g 20084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20085D["\1"]=" \3"/p 20086s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20087d 20088:bsnl 20089s/["\\]/\\&/g 20090s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20091D["\1"]=" \3\\\\\\n"\\/p 20092t cont 20093s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20094t cont 20095d 20096:cont 20097n 20098s/.\{148\}/&'"$ac_delim"'/g 20099t clear 20100:clear 20101s/\\$// 20102t bsnlc 20103s/["\\]/\\&/g; s/^/"/; s/$/"/p 20104d 20105:bsnlc 20106s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20107b cont 20108' <confdefs.h | sed ' 20109s/'"$ac_delim"'/"\\\ 20110"/g' >>$CONFIG_STATUS || ac_write_fail=1 20111 20112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20113 for (key in D) D_is_set[key] = 1 20114 FS = "" 20115} 20116/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20117 line = \$ 0 20118 split(line, arg, " ") 20119 if (arg[1] == "#") { 20120 defundef = arg[2] 20121 mac1 = arg[3] 20122 } else { 20123 defundef = substr(arg[1], 2) 20124 mac1 = arg[2] 20125 } 20126 split(mac1, mac2, "(") #) 20127 macro = mac2[1] 20128 prefix = substr(line, 1, index(line, defundef) - 1) 20129 if (D_is_set[macro]) { 20130 # Preserve the white space surrounding the "#". 20131 print prefix "define", macro P[macro] D[macro] 20132 next 20133 } else { 20134 # Replace #undef with comments. This is necessary, for example, 20135 # in the case of _POSIX_SOURCE, which is predefined and required 20136 # on some systems where configure will not decide to define it. 20137 if (defundef == "undef") { 20138 print "/*", prefix defundef, macro, "*/" 20139 next 20140 } 20141 } 20142} 20143{ print } 20144_ACAWK 20145_ACEOF 20146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20147 as_fn_error "could not setup config headers machinery" "$LINENO" 5 20148fi # test -n "$CONFIG_HEADERS" 20149 20150 20151eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20152shift 20153for ac_tag 20154do 20155 case $ac_tag in 20156 :[FHLC]) ac_mode=$ac_tag; continue;; 20157 esac 20158 case $ac_mode$ac_tag in 20159 :[FHL]*:*);; 20160 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 20161 :[FH]-) ac_tag=-:-;; 20162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20163 esac 20164 ac_save_IFS=$IFS 20165 IFS=: 20166 set x $ac_tag 20167 IFS=$ac_save_IFS 20168 shift 20169 ac_file=$1 20170 shift 20171 20172 case $ac_mode in 20173 :L) ac_source=$1;; 20174 :[FH]) 20175 ac_file_inputs= 20176 for ac_f 20177 do 20178 case $ac_f in 20179 -) ac_f="$tmp/stdin";; 20180 *) # Look for the file first in the build tree, then in the source tree 20181 # (if the path is not absolute). The absolute path cannot be DOS-style, 20182 # because $ac_f cannot contain `:'. 20183 test -f "$ac_f" || 20184 case $ac_f in 20185 [\\/$]*) false;; 20186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20187 esac || 20188 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20189 esac 20190 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20191 as_fn_append ac_file_inputs " '$ac_f'" 20192 done 20193 20194 # Let's still pretend it is `configure' which instantiates (i.e., don't 20195 # use $as_me), people would be surprised to read: 20196 # /* config.h. Generated by config.status. */ 20197 configure_input='Generated from '` 20198 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20199 `' by configure.' 20200 if test x"$ac_file" != x-; then 20201 configure_input="$ac_file. $configure_input" 20202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20203$as_echo "$as_me: creating $ac_file" >&6;} 20204 fi 20205 # Neutralize special characters interpreted by sed in replacement strings. 20206 case $configure_input in #( 20207 *\&* | *\|* | *\\* ) 20208 ac_sed_conf_input=`$as_echo "$configure_input" | 20209 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20210 *) ac_sed_conf_input=$configure_input;; 20211 esac 20212 20213 case $ac_tag in 20214 *:-:* | *:-) cat >"$tmp/stdin" \ 20215 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 20216 esac 20217 ;; 20218 esac 20219 20220 ac_dir=`$as_dirname -- "$ac_file" || 20221$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20222 X"$ac_file" : 'X\(//\)[^/]' \| \ 20223 X"$ac_file" : 'X\(//\)$' \| \ 20224 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20225$as_echo X"$ac_file" | 20226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20227 s//\1/ 20228 q 20229 } 20230 /^X\(\/\/\)[^/].*/{ 20231 s//\1/ 20232 q 20233 } 20234 /^X\(\/\/\)$/{ 20235 s//\1/ 20236 q 20237 } 20238 /^X\(\/\).*/{ 20239 s//\1/ 20240 q 20241 } 20242 s/.*/./; q'` 20243 as_dir="$ac_dir"; as_fn_mkdir_p 20244 ac_builddir=. 20245 20246case "$ac_dir" in 20247.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20248*) 20249 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20250 # A ".." for each directory in $ac_dir_suffix. 20251 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20252 case $ac_top_builddir_sub in 20253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20255 esac ;; 20256esac 20257ac_abs_top_builddir=$ac_pwd 20258ac_abs_builddir=$ac_pwd$ac_dir_suffix 20259# for backward compatibility: 20260ac_top_builddir=$ac_top_build_prefix 20261 20262case $srcdir in 20263 .) # We are building in place. 20264 ac_srcdir=. 20265 ac_top_srcdir=$ac_top_builddir_sub 20266 ac_abs_top_srcdir=$ac_pwd ;; 20267 [\\/]* | ?:[\\/]* ) # Absolute name. 20268 ac_srcdir=$srcdir$ac_dir_suffix; 20269 ac_top_srcdir=$srcdir 20270 ac_abs_top_srcdir=$srcdir ;; 20271 *) # Relative name. 20272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20273 ac_top_srcdir=$ac_top_build_prefix$srcdir 20274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20275esac 20276ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20277 20278 20279 case $ac_mode in 20280 :F) 20281 # 20282 # CONFIG_FILE 20283 # 20284 20285 case $INSTALL in 20286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20287 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20288 esac 20289 ac_MKDIR_P=$MKDIR_P 20290 case $MKDIR_P in 20291 [\\/$]* | ?:[\\/]* ) ;; 20292 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20293 esac 20294_ACEOF 20295 20296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20297# If the template does not know about datarootdir, expand it. 20298# FIXME: This hack should be removed a few years after 2.60. 20299ac_datarootdir_hack=; ac_datarootdir_seen= 20300ac_sed_dataroot=' 20301/datarootdir/ { 20302 p 20303 q 20304} 20305/@datadir@/p 20306/@docdir@/p 20307/@infodir@/p 20308/@localedir@/p 20309/@mandir@/p' 20310case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20311*datarootdir*) ac_datarootdir_seen=yes;; 20312*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20314$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20315_ACEOF 20316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20317 ac_datarootdir_hack=' 20318 s&@datadir@&$datadir&g 20319 s&@docdir@&$docdir&g 20320 s&@infodir@&$infodir&g 20321 s&@localedir@&$localedir&g 20322 s&@mandir@&$mandir&g 20323 s&\\\${datarootdir}&$datarootdir&g' ;; 20324esac 20325_ACEOF 20326 20327# Neutralize VPATH when `$srcdir' = `.'. 20328# Shell code in configure.ac might set extrasub. 20329# FIXME: do we really want to maintain this feature? 20330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20331ac_sed_extra="$ac_vpsub 20332$extrasub 20333_ACEOF 20334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20335:t 20336/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20337s|@configure_input@|$ac_sed_conf_input|;t t 20338s&@top_builddir@&$ac_top_builddir_sub&;t t 20339s&@top_build_prefix@&$ac_top_build_prefix&;t t 20340s&@srcdir@&$ac_srcdir&;t t 20341s&@abs_srcdir@&$ac_abs_srcdir&;t t 20342s&@top_srcdir@&$ac_top_srcdir&;t t 20343s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20344s&@builddir@&$ac_builddir&;t t 20345s&@abs_builddir@&$ac_abs_builddir&;t t 20346s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20347s&@INSTALL@&$ac_INSTALL&;t t 20348s&@MKDIR_P@&$ac_MKDIR_P&;t t 20349$ac_datarootdir_hack 20350" 20351eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 20352 || as_fn_error "could not create $ac_file" "$LINENO" 5 20353 20354test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20355 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20356 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20358which seems to be undefined. Please make sure it is defined." >&5 20359$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20360which seems to be undefined. Please make sure it is defined." >&2;} 20361 20362 rm -f "$tmp/stdin" 20363 case $ac_file in 20364 -) cat "$tmp/out" && rm -f "$tmp/out";; 20365 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 20366 esac \ 20367 || as_fn_error "could not create $ac_file" "$LINENO" 5 20368 ;; 20369 :H) 20370 # 20371 # CONFIG_HEADER 20372 # 20373 if test x"$ac_file" != x-; then 20374 { 20375 $as_echo "/* $configure_input */" \ 20376 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 20377 } >"$tmp/config.h" \ 20378 || as_fn_error "could not create $ac_file" "$LINENO" 5 20379 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20381$as_echo "$as_me: $ac_file is unchanged" >&6;} 20382 else 20383 rm -f "$ac_file" 20384 mv "$tmp/config.h" "$ac_file" \ 20385 || as_fn_error "could not create $ac_file" "$LINENO" 5 20386 fi 20387 else 20388 $as_echo "/* $configure_input */" \ 20389 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 20390 || as_fn_error "could not create -" "$LINENO" 5 20391 fi 20392# Compute "$ac_file"'s index in $config_headers. 20393_am_arg="$ac_file" 20394_am_stamp_count=1 20395for _am_header in $config_headers :; do 20396 case $_am_header in 20397 $_am_arg | $_am_arg:* ) 20398 break ;; 20399 * ) 20400 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20401 esac 20402done 20403echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20404$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20405 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20406 X"$_am_arg" : 'X\(//\)$' \| \ 20407 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20408$as_echo X"$_am_arg" | 20409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20410 s//\1/ 20411 q 20412 } 20413 /^X\(\/\/\)[^/].*/{ 20414 s//\1/ 20415 q 20416 } 20417 /^X\(\/\/\)$/{ 20418 s//\1/ 20419 q 20420 } 20421 /^X\(\/\).*/{ 20422 s//\1/ 20423 q 20424 } 20425 s/.*/./; q'`/stamp-h$_am_stamp_count 20426 ;; 20427 20428 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20429$as_echo "$as_me: executing $ac_file commands" >&6;} 20430 ;; 20431 esac 20432 20433 20434 case $ac_file$ac_mode in 20435 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20436 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20437 # are listed without --file. Let's play safe and only enable the eval 20438 # if we detect the quoting. 20439 case $CONFIG_FILES in 20440 *\'*) eval set x "$CONFIG_FILES" ;; 20441 *) set x $CONFIG_FILES ;; 20442 esac 20443 shift 20444 for mf 20445 do 20446 # Strip MF so we end up with the name of the file. 20447 mf=`echo "$mf" | sed -e 's/:.*$//'` 20448 # Check whether this is an Automake generated Makefile or not. 20449 # We used to match only the files named `Makefile.in', but 20450 # some people rename them; so instead we look at the file content. 20451 # Grep'ing the first line is not enough: some people post-process 20452 # each Makefile.in and add a new line on top of each file to say so. 20453 # Grep'ing the whole file is not good either: AIX grep has a line 20454 # limit of 2048, but all sed's we know have understand at least 4000. 20455 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20456 dirpart=`$as_dirname -- "$mf" || 20457$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20458 X"$mf" : 'X\(//\)[^/]' \| \ 20459 X"$mf" : 'X\(//\)$' \| \ 20460 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20461$as_echo X"$mf" | 20462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20463 s//\1/ 20464 q 20465 } 20466 /^X\(\/\/\)[^/].*/{ 20467 s//\1/ 20468 q 20469 } 20470 /^X\(\/\/\)$/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\(\/\).*/{ 20475 s//\1/ 20476 q 20477 } 20478 s/.*/./; q'` 20479 else 20480 continue 20481 fi 20482 # Extract the definition of DEPDIR, am__include, and am__quote 20483 # from the Makefile without running `make'. 20484 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20485 test -z "$DEPDIR" && continue 20486 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20487 test -z "am__include" && continue 20488 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20489 # When using ansi2knr, U may be empty or an underscore; expand it 20490 U=`sed -n 's/^U = //p' < "$mf"` 20491 # Find all dependency output files, they are included files with 20492 # $(DEPDIR) in their names. We invoke sed twice because it is the 20493 # simplest approach to changing $(DEPDIR) to its actual value in the 20494 # expansion. 20495 for file in `sed -n " 20496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20498 # Make sure the directory exists. 20499 test -f "$dirpart/$file" && continue 20500 fdir=`$as_dirname -- "$file" || 20501$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20502 X"$file" : 'X\(//\)[^/]' \| \ 20503 X"$file" : 'X\(//\)$' \| \ 20504 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20505$as_echo X"$file" | 20506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20507 s//\1/ 20508 q 20509 } 20510 /^X\(\/\/\)[^/].*/{ 20511 s//\1/ 20512 q 20513 } 20514 /^X\(\/\/\)$/{ 20515 s//\1/ 20516 q 20517 } 20518 /^X\(\/\).*/{ 20519 s//\1/ 20520 q 20521 } 20522 s/.*/./; q'` 20523 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20524 # echo "creating $dirpart/$file" 20525 echo '# dummy' > "$dirpart/$file" 20526 done 20527 done 20528} 20529 ;; 20530 "libtool":C) 20531 20532 # See if we are running on zsh, and set the options which allow our 20533 # commands through without removal of \ escapes. 20534 if test -n "${ZSH_VERSION+set}" ; then 20535 setopt NO_GLOB_SUBST 20536 fi 20537 20538 cfgfile="${ofile}T" 20539 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20540 $RM "$cfgfile" 20541 20542 cat <<_LT_EOF >> "$cfgfile" 20543#! $SHELL 20544 20545# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20546# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20548# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20549# 20550# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20551# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 20552# Inc. 20553# Written by Gordon Matzigkeit, 1996 20554# 20555# This file is part of GNU Libtool. 20556# 20557# GNU Libtool is free software; you can redistribute it and/or 20558# modify it under the terms of the GNU General Public License as 20559# published by the Free Software Foundation; either version 2 of 20560# the License, or (at your option) any later version. 20561# 20562# As a special exception to the GNU General Public License, 20563# if you distribute this file as part of a program or library that 20564# is built using GNU Libtool, you may include this file under the 20565# same distribution terms that you use for the rest of that program. 20566# 20567# GNU Libtool is distributed in the hope that it will be useful, 20568# but WITHOUT ANY WARRANTY; without even the implied warranty of 20569# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20570# GNU General Public License for more details. 20571# 20572# You should have received a copy of the GNU General Public License 20573# along with GNU Libtool; see the file COPYING. If not, a copy 20574# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20575# obtained by writing to the Free Software Foundation, Inc., 20576# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20577 20578 20579# The names of the tagged configurations supported by this script. 20580available_tags="CXX " 20581 20582# ### BEGIN LIBTOOL CONFIG 20583 20584# A sed program that does not truncate output. 20585SED=$lt_SED 20586 20587# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20588Xsed="\$SED -e 1s/^X//" 20589 20590# A grep program that handles long lines. 20591GREP=$lt_GREP 20592 20593# An ERE matcher. 20594EGREP=$lt_EGREP 20595 20596# A literal string matcher. 20597FGREP=$lt_FGREP 20598 20599# Shell to use when invoking shell scripts. 20600SHELL=$lt_SHELL 20601 20602# An echo program that protects backslashes. 20603ECHO=$lt_ECHO 20604 20605# Which release of libtool.m4 was used? 20606macro_version=$macro_version 20607macro_revision=$macro_revision 20608 20609# Assembler program. 20610AS=$lt_AS 20611 20612# DLL creation program. 20613DLLTOOL=$lt_DLLTOOL 20614 20615# Object dumper program. 20616OBJDUMP=$lt_OBJDUMP 20617 20618# Whether or not to build shared libraries. 20619build_libtool_libs=$enable_shared 20620 20621# Whether or not to build static libraries. 20622build_old_libs=$enable_static 20623 20624# What type of objects to build. 20625pic_mode=$pic_mode 20626 20627# Whether or not to optimize for fast installation. 20628fast_install=$enable_fast_install 20629 20630# The host system. 20631host_alias=$host_alias 20632host=$host 20633host_os=$host_os 20634 20635# The build system. 20636build_alias=$build_alias 20637build=$build 20638build_os=$build_os 20639 20640# A BSD- or MS-compatible name lister. 20641NM=$lt_NM 20642 20643# Whether we need soft or hard links. 20644LN_S=$lt_LN_S 20645 20646# What is the maximum length of a command? 20647max_cmd_len=$max_cmd_len 20648 20649# Object file suffix (normally "o"). 20650objext=$ac_objext 20651 20652# Executable file suffix (normally ""). 20653exeext=$exeext 20654 20655# whether the shell understands "unset". 20656lt_unset=$lt_unset 20657 20658# turn spaces into newlines. 20659SP2NL=$lt_lt_SP2NL 20660 20661# turn newlines into spaces. 20662NL2SP=$lt_lt_NL2SP 20663 20664# Method to check whether dependent libraries are shared objects. 20665deplibs_check_method=$lt_deplibs_check_method 20666 20667# Command to use when deplibs_check_method == "file_magic". 20668file_magic_cmd=$lt_file_magic_cmd 20669 20670# The archiver. 20671AR=$lt_AR 20672AR_FLAGS=$lt_AR_FLAGS 20673 20674# A symbol stripping program. 20675STRIP=$lt_STRIP 20676 20677# Commands used to install an old-style archive. 20678RANLIB=$lt_RANLIB 20679old_postinstall_cmds=$lt_old_postinstall_cmds 20680old_postuninstall_cmds=$lt_old_postuninstall_cmds 20681 20682# Whether to use a lock for old archive extraction. 20683lock_old_archive_extraction=$lock_old_archive_extraction 20684 20685# A C compiler. 20686LTCC=$lt_CC 20687 20688# LTCC compiler flags. 20689LTCFLAGS=$lt_CFLAGS 20690 20691# Take the output of nm and produce a listing of raw symbols and C names. 20692global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20693 20694# Transform the output of nm in a proper C declaration. 20695global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20696 20697# Transform the output of nm in a C name address pair. 20698global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20699 20700# Transform the output of nm in a C name address pair when lib prefix is needed. 20701global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20702 20703# The name of the directory that contains temporary libtool files. 20704objdir=$objdir 20705 20706# Used to examine libraries when file_magic_cmd begins with "file". 20707MAGIC_CMD=$MAGIC_CMD 20708 20709# Must we lock files when doing compilation? 20710need_locks=$lt_need_locks 20711 20712# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20713DSYMUTIL=$lt_DSYMUTIL 20714 20715# Tool to change global to local symbols on Mac OS X. 20716NMEDIT=$lt_NMEDIT 20717 20718# Tool to manipulate fat objects and archives on Mac OS X. 20719LIPO=$lt_LIPO 20720 20721# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20722OTOOL=$lt_OTOOL 20723 20724# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20725OTOOL64=$lt_OTOOL64 20726 20727# Old archive suffix (normally "a"). 20728libext=$libext 20729 20730# Shared library suffix (normally ".so"). 20731shrext_cmds=$lt_shrext_cmds 20732 20733# The commands to extract the exported symbol list from a shared archive. 20734extract_expsyms_cmds=$lt_extract_expsyms_cmds 20735 20736# Variables whose values should be saved in libtool wrapper scripts and 20737# restored at link time. 20738variables_saved_for_relink=$lt_variables_saved_for_relink 20739 20740# Do we need the "lib" prefix for modules? 20741need_lib_prefix=$need_lib_prefix 20742 20743# Do we need a version for libraries? 20744need_version=$need_version 20745 20746# Library versioning type. 20747version_type=$version_type 20748 20749# Shared library runtime path variable. 20750runpath_var=$runpath_var 20751 20752# Shared library path variable. 20753shlibpath_var=$shlibpath_var 20754 20755# Is shlibpath searched before the hard-coded library search path? 20756shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20757 20758# Format of library name prefix. 20759libname_spec=$lt_libname_spec 20760 20761# List of archive names. First name is the real one, the rest are links. 20762# The last name is the one that the linker finds with -lNAME 20763library_names_spec=$lt_library_names_spec 20764 20765# The coded name of the library, if different from the real name. 20766soname_spec=$lt_soname_spec 20767 20768# Permission mode override for installation of shared libraries. 20769install_override_mode=$lt_install_override_mode 20770 20771# Command to use after installation of a shared archive. 20772postinstall_cmds=$lt_postinstall_cmds 20773 20774# Command to use after uninstallation of a shared archive. 20775postuninstall_cmds=$lt_postuninstall_cmds 20776 20777# Commands used to finish a libtool library installation in a directory. 20778finish_cmds=$lt_finish_cmds 20779 20780# As "finish_cmds", except a single script fragment to be evaled but 20781# not shown. 20782finish_eval=$lt_finish_eval 20783 20784# Whether we should hardcode library paths into libraries. 20785hardcode_into_libs=$hardcode_into_libs 20786 20787# Compile-time system search path for libraries. 20788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20789 20790# Run-time system search path for libraries. 20791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20792 20793# Whether dlopen is supported. 20794dlopen_support=$enable_dlopen 20795 20796# Whether dlopen of programs is supported. 20797dlopen_self=$enable_dlopen_self 20798 20799# Whether dlopen of statically linked programs is supported. 20800dlopen_self_static=$enable_dlopen_self_static 20801 20802# Commands to strip libraries. 20803old_striplib=$lt_old_striplib 20804striplib=$lt_striplib 20805 20806 20807# The linker used to build libraries. 20808LD=$lt_LD 20809 20810# How to create reloadable object files. 20811reload_flag=$lt_reload_flag 20812reload_cmds=$lt_reload_cmds 20813 20814# Commands used to build an old-style archive. 20815old_archive_cmds=$lt_old_archive_cmds 20816 20817# A language specific compiler. 20818CC=$lt_compiler 20819 20820# Is the compiler the GNU compiler? 20821with_gcc=$GCC 20822 20823# Compiler flag to turn off builtin functions. 20824no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20825 20826# How to pass a linker flag through the compiler. 20827wl=$lt_lt_prog_compiler_wl 20828 20829# Additional compiler flags for building library objects. 20830pic_flag=$lt_lt_prog_compiler_pic 20831 20832# Compiler flag to prevent dynamic linking. 20833link_static_flag=$lt_lt_prog_compiler_static 20834 20835# Does compiler simultaneously support -c and -o options? 20836compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20837 20838# Whether or not to add -lc for building shared libraries. 20839build_libtool_need_lc=$archive_cmds_need_lc 20840 20841# Whether or not to disallow shared libs when runtime libs are static. 20842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20843 20844# Compiler flag to allow reflexive dlopens. 20845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20846 20847# Compiler flag to generate shared objects directly from archives. 20848whole_archive_flag_spec=$lt_whole_archive_flag_spec 20849 20850# Whether the compiler copes with passing no objects directly. 20851compiler_needs_object=$lt_compiler_needs_object 20852 20853# Create an old-style archive from a shared archive. 20854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20855 20856# Create a temporary old-style archive to link instead of a shared archive. 20857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20858 20859# Commands used to build a shared archive. 20860archive_cmds=$lt_archive_cmds 20861archive_expsym_cmds=$lt_archive_expsym_cmds 20862 20863# Commands used to build a loadable module if different from building 20864# a shared archive. 20865module_cmds=$lt_module_cmds 20866module_expsym_cmds=$lt_module_expsym_cmds 20867 20868# Whether we are building with GNU ld or not. 20869with_gnu_ld=$lt_with_gnu_ld 20870 20871# Flag that allows shared libraries with undefined symbols to be built. 20872allow_undefined_flag=$lt_allow_undefined_flag 20873 20874# Flag that enforces no undefined symbols. 20875no_undefined_flag=$lt_no_undefined_flag 20876 20877# Flag to hardcode \$libdir into a binary during linking. 20878# This must work even if \$libdir does not exist 20879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20880 20881# If ld is used when linking, flag to hardcode \$libdir into a binary 20882# during linking. This must work even if \$libdir does not exist. 20883hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20884 20885# Whether we need a single "-rpath" flag with a separated argument. 20886hardcode_libdir_separator=$lt_hardcode_libdir_separator 20887 20888# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20889# DIR into the resulting binary. 20890hardcode_direct=$hardcode_direct 20891 20892# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20893# DIR into the resulting binary and the resulting library dependency is 20894# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20895# library is relocated. 20896hardcode_direct_absolute=$hardcode_direct_absolute 20897 20898# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20899# into the resulting binary. 20900hardcode_minus_L=$hardcode_minus_L 20901 20902# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20903# into the resulting binary. 20904hardcode_shlibpath_var=$hardcode_shlibpath_var 20905 20906# Set to "yes" if building a shared library automatically hardcodes DIR 20907# into the library and all subsequent libraries and executables linked 20908# against it. 20909hardcode_automatic=$hardcode_automatic 20910 20911# Set to yes if linker adds runtime paths of dependent libraries 20912# to runtime path list. 20913inherit_rpath=$inherit_rpath 20914 20915# Whether libtool must link a program against all its dependency libraries. 20916link_all_deplibs=$link_all_deplibs 20917 20918# Fix the shell variable \$srcfile for the compiler. 20919fix_srcfile_path=$lt_fix_srcfile_path 20920 20921# Set to "yes" if exported symbols are required. 20922always_export_symbols=$always_export_symbols 20923 20924# The commands to list exported symbols. 20925export_symbols_cmds=$lt_export_symbols_cmds 20926 20927# Symbols that should not be listed in the preloaded symbols. 20928exclude_expsyms=$lt_exclude_expsyms 20929 20930# Symbols that must always be exported. 20931include_expsyms=$lt_include_expsyms 20932 20933# Commands necessary for linking programs (against libraries) with templates. 20934prelink_cmds=$lt_prelink_cmds 20935 20936# Specify filename containing input files. 20937file_list_spec=$lt_file_list_spec 20938 20939# How to hardcode a shared library path into an executable. 20940hardcode_action=$hardcode_action 20941 20942# The directories searched by this compiler when creating a shared library. 20943compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20944 20945# Dependencies to place before and after the objects being linked to 20946# create a shared library. 20947predep_objects=$lt_predep_objects 20948postdep_objects=$lt_postdep_objects 20949predeps=$lt_predeps 20950postdeps=$lt_postdeps 20951 20952# The library search path used internally by the compiler when linking 20953# a shared library. 20954compiler_lib_search_path=$lt_compiler_lib_search_path 20955 20956# ### END LIBTOOL CONFIG 20957 20958_LT_EOF 20959 20960 case $host_os in 20961 aix3*) 20962 cat <<\_LT_EOF >> "$cfgfile" 20963# AIX sometimes has problems with the GCC collect2 program. For some 20964# reason, if we set the COLLECT_NAMES environment variable, the problems 20965# vanish in a puff of smoke. 20966if test "X${COLLECT_NAMES+set}" != Xset; then 20967 COLLECT_NAMES= 20968 export COLLECT_NAMES 20969fi 20970_LT_EOF 20971 ;; 20972 esac 20973 20974 20975ltmain="$ac_aux_dir/ltmain.sh" 20976 20977 20978 # We use sed instead of cat because bash on DJGPP gets confused if 20979 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20980 # text mode, it properly converts lines to CR/LF. This bash problem 20981 # is reportedly fixed, but why not run on old versions too? 20982 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 20983 || (rm -f "$cfgfile"; exit 1) 20984 20985 case $xsi_shell in 20986 yes) 20987 cat << \_LT_EOF >> "$cfgfile" 20988 20989# func_dirname file append nondir_replacement 20990# Compute the dirname of FILE. If nonempty, add APPEND to the result, 20991# otherwise set result to NONDIR_REPLACEMENT. 20992func_dirname () 20993{ 20994 case ${1} in 20995 */*) func_dirname_result="${1%/*}${2}" ;; 20996 * ) func_dirname_result="${3}" ;; 20997 esac 20998} 20999 21000# func_basename file 21001func_basename () 21002{ 21003 func_basename_result="${1##*/}" 21004} 21005 21006# func_dirname_and_basename file append nondir_replacement 21007# perform func_basename and func_dirname in a single function 21008# call: 21009# dirname: Compute the dirname of FILE. If nonempty, 21010# add APPEND to the result, otherwise set result 21011# to NONDIR_REPLACEMENT. 21012# value returned in "$func_dirname_result" 21013# basename: Compute filename of FILE. 21014# value retuned in "$func_basename_result" 21015# Implementation must be kept synchronized with func_dirname 21016# and func_basename. For efficiency, we do not delegate to 21017# those functions but instead duplicate the functionality here. 21018func_dirname_and_basename () 21019{ 21020 case ${1} in 21021 */*) func_dirname_result="${1%/*}${2}" ;; 21022 * ) func_dirname_result="${3}" ;; 21023 esac 21024 func_basename_result="${1##*/}" 21025} 21026 21027# func_stripname prefix suffix name 21028# strip PREFIX and SUFFIX off of NAME. 21029# PREFIX and SUFFIX must not contain globbing or regex special 21030# characters, hashes, percent signs, but SUFFIX may contain a leading 21031# dot (in which case that matches only a dot). 21032func_stripname () 21033{ 21034 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 21035 # positional parameters, so assign one to ordinary parameter first. 21036 func_stripname_result=${3} 21037 func_stripname_result=${func_stripname_result#"${1}"} 21038 func_stripname_result=${func_stripname_result%"${2}"} 21039} 21040 21041# func_opt_split 21042func_opt_split () 21043{ 21044 func_opt_split_opt=${1%%=*} 21045 func_opt_split_arg=${1#*=} 21046} 21047 21048# func_lo2o object 21049func_lo2o () 21050{ 21051 case ${1} in 21052 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 21053 *) func_lo2o_result=${1} ;; 21054 esac 21055} 21056 21057# func_xform libobj-or-source 21058func_xform () 21059{ 21060 func_xform_result=${1%.*}.lo 21061} 21062 21063# func_arith arithmetic-term... 21064func_arith () 21065{ 21066 func_arith_result=$(( $* )) 21067} 21068 21069# func_len string 21070# STRING may not start with a hyphen. 21071func_len () 21072{ 21073 func_len_result=${#1} 21074} 21075 21076_LT_EOF 21077 ;; 21078 *) # Bourne compatible functions. 21079 cat << \_LT_EOF >> "$cfgfile" 21080 21081# func_dirname file append nondir_replacement 21082# Compute the dirname of FILE. If nonempty, add APPEND to the result, 21083# otherwise set result to NONDIR_REPLACEMENT. 21084func_dirname () 21085{ 21086 # Extract subdirectory from the argument. 21087 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 21088 if test "X$func_dirname_result" = "X${1}"; then 21089 func_dirname_result="${3}" 21090 else 21091 func_dirname_result="$func_dirname_result${2}" 21092 fi 21093} 21094 21095# func_basename file 21096func_basename () 21097{ 21098 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 21099} 21100 21101 21102# func_stripname prefix suffix name 21103# strip PREFIX and SUFFIX off of NAME. 21104# PREFIX and SUFFIX must not contain globbing or regex special 21105# characters, hashes, percent signs, but SUFFIX may contain a leading 21106# dot (in which case that matches only a dot). 21107# func_strip_suffix prefix name 21108func_stripname () 21109{ 21110 case ${2} in 21111 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 21112 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 21113 esac 21114} 21115 21116# sed scripts: 21117my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 21118my_sed_long_arg='1s/^-[^=]*=//' 21119 21120# func_opt_split 21121func_opt_split () 21122{ 21123 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 21124 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 21125} 21126 21127# func_lo2o object 21128func_lo2o () 21129{ 21130 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 21131} 21132 21133# func_xform libobj-or-source 21134func_xform () 21135{ 21136 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 21137} 21138 21139# func_arith arithmetic-term... 21140func_arith () 21141{ 21142 func_arith_result=`expr "$@"` 21143} 21144 21145# func_len string 21146# STRING may not start with a hyphen. 21147func_len () 21148{ 21149 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 21150} 21151 21152_LT_EOF 21153esac 21154 21155case $lt_shell_append in 21156 yes) 21157 cat << \_LT_EOF >> "$cfgfile" 21158 21159# func_append var value 21160# Append VALUE to the end of shell variable VAR. 21161func_append () 21162{ 21163 eval "$1+=\$2" 21164} 21165_LT_EOF 21166 ;; 21167 *) 21168 cat << \_LT_EOF >> "$cfgfile" 21169 21170# func_append var value 21171# Append VALUE to the end of shell variable VAR. 21172func_append () 21173{ 21174 eval "$1=\$$1\$2" 21175} 21176 21177_LT_EOF 21178 ;; 21179 esac 21180 21181 21182 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 21183 || (rm -f "$cfgfile"; exit 1) 21184 21185 mv -f "$cfgfile" "$ofile" || 21186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21187 chmod +x "$ofile" 21188 21189 21190 cat <<_LT_EOF >> "$ofile" 21191 21192# ### BEGIN LIBTOOL TAG CONFIG: CXX 21193 21194# The linker used to build libraries. 21195LD=$lt_LD_CXX 21196 21197# How to create reloadable object files. 21198reload_flag=$lt_reload_flag_CXX 21199reload_cmds=$lt_reload_cmds_CXX 21200 21201# Commands used to build an old-style archive. 21202old_archive_cmds=$lt_old_archive_cmds_CXX 21203 21204# A language specific compiler. 21205CC=$lt_compiler_CXX 21206 21207# Is the compiler the GNU compiler? 21208with_gcc=$GCC_CXX 21209 21210# Compiler flag to turn off builtin functions. 21211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21212 21213# How to pass a linker flag through the compiler. 21214wl=$lt_lt_prog_compiler_wl_CXX 21215 21216# Additional compiler flags for building library objects. 21217pic_flag=$lt_lt_prog_compiler_pic_CXX 21218 21219# Compiler flag to prevent dynamic linking. 21220link_static_flag=$lt_lt_prog_compiler_static_CXX 21221 21222# Does compiler simultaneously support -c and -o options? 21223compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21224 21225# Whether or not to add -lc for building shared libraries. 21226build_libtool_need_lc=$archive_cmds_need_lc_CXX 21227 21228# Whether or not to disallow shared libs when runtime libs are static. 21229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21230 21231# Compiler flag to allow reflexive dlopens. 21232export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21233 21234# Compiler flag to generate shared objects directly from archives. 21235whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21236 21237# Whether the compiler copes with passing no objects directly. 21238compiler_needs_object=$lt_compiler_needs_object_CXX 21239 21240# Create an old-style archive from a shared archive. 21241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21242 21243# Create a temporary old-style archive to link instead of a shared archive. 21244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21245 21246# Commands used to build a shared archive. 21247archive_cmds=$lt_archive_cmds_CXX 21248archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21249 21250# Commands used to build a loadable module if different from building 21251# a shared archive. 21252module_cmds=$lt_module_cmds_CXX 21253module_expsym_cmds=$lt_module_expsym_cmds_CXX 21254 21255# Whether we are building with GNU ld or not. 21256with_gnu_ld=$lt_with_gnu_ld_CXX 21257 21258# Flag that allows shared libraries with undefined symbols to be built. 21259allow_undefined_flag=$lt_allow_undefined_flag_CXX 21260 21261# Flag that enforces no undefined symbols. 21262no_undefined_flag=$lt_no_undefined_flag_CXX 21263 21264# Flag to hardcode \$libdir into a binary during linking. 21265# This must work even if \$libdir does not exist 21266hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21267 21268# If ld is used when linking, flag to hardcode \$libdir into a binary 21269# during linking. This must work even if \$libdir does not exist. 21270hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 21271 21272# Whether we need a single "-rpath" flag with a separated argument. 21273hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21274 21275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21276# DIR into the resulting binary. 21277hardcode_direct=$hardcode_direct_CXX 21278 21279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21280# DIR into the resulting binary and the resulting library dependency is 21281# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21282# library is relocated. 21283hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21284 21285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21286# into the resulting binary. 21287hardcode_minus_L=$hardcode_minus_L_CXX 21288 21289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21290# into the resulting binary. 21291hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21292 21293# Set to "yes" if building a shared library automatically hardcodes DIR 21294# into the library and all subsequent libraries and executables linked 21295# against it. 21296hardcode_automatic=$hardcode_automatic_CXX 21297 21298# Set to yes if linker adds runtime paths of dependent libraries 21299# to runtime path list. 21300inherit_rpath=$inherit_rpath_CXX 21301 21302# Whether libtool must link a program against all its dependency libraries. 21303link_all_deplibs=$link_all_deplibs_CXX 21304 21305# Fix the shell variable \$srcfile for the compiler. 21306fix_srcfile_path=$lt_fix_srcfile_path_CXX 21307 21308# Set to "yes" if exported symbols are required. 21309always_export_symbols=$always_export_symbols_CXX 21310 21311# The commands to list exported symbols. 21312export_symbols_cmds=$lt_export_symbols_cmds_CXX 21313 21314# Symbols that should not be listed in the preloaded symbols. 21315exclude_expsyms=$lt_exclude_expsyms_CXX 21316 21317# Symbols that must always be exported. 21318include_expsyms=$lt_include_expsyms_CXX 21319 21320# Commands necessary for linking programs (against libraries) with templates. 21321prelink_cmds=$lt_prelink_cmds_CXX 21322 21323# Specify filename containing input files. 21324file_list_spec=$lt_file_list_spec_CXX 21325 21326# How to hardcode a shared library path into an executable. 21327hardcode_action=$hardcode_action_CXX 21328 21329# The directories searched by this compiler when creating a shared library. 21330compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21331 21332# Dependencies to place before and after the objects being linked to 21333# create a shared library. 21334predep_objects=$lt_predep_objects_CXX 21335postdep_objects=$lt_postdep_objects_CXX 21336predeps=$lt_predeps_CXX 21337postdeps=$lt_postdeps_CXX 21338 21339# The library search path used internally by the compiler when linking 21340# a shared library. 21341compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21342 21343# ### END LIBTOOL TAG CONFIG: CXX 21344_LT_EOF 21345 21346 ;; 21347 21348 esac 21349done # for ac_tag 21350 21351 21352as_fn_exit 0 21353_ACEOF 21354ac_clean_files=$ac_clean_files_save 21355 21356test $ac_write_fail = 0 || 21357 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 21358 21359 21360# configure is writing to config.log, and then calls config.status. 21361# config.status does its own redirection, appending to config.log. 21362# Unfortunately, on DOS this fails, as config.log is still kept open 21363# by configure, so config.status won't be able to write to it; its 21364# output is simply discarded. So we exec the FD to /dev/null, 21365# effectively closing config.log, so it can be properly (re)opened and 21366# appended to by config.status. When coming back to configure, we 21367# need to make the FD available again. 21368if test "$no_create" != yes; then 21369 ac_cs_success=: 21370 ac_config_status_args= 21371 test "$silent" = yes && 21372 ac_config_status_args="$ac_config_status_args --quiet" 21373 exec 5>/dev/null 21374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21375 exec 5>>config.log 21376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21377 # would make configure fail if this is the last instruction. 21378 $ac_cs_success || as_fn_exit $? 21379fi 21380if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21382$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21383fi 21384 21385 21386 21387echo "" 21388echo "Libtiff is now configured for ${host}" 21389echo "" 21390echo " Installation directory: ${prefix}" 21391echo " Documentation directory: ${LIBTIFF_DOCDIR}" 21392echo " C compiler: ${CC} ${CFLAGS}" 21393echo " C++ compiler: ${CXX} ${CXXFLAGS}" 21394echo " Enable runtime linker paths: ${HAVE_RPATH}" 21395echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 21396echo "" 21397echo " Support for internal codecs:" 21398echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 21399echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 21400echo " LZW algorithm: ${HAVE_LZW}" 21401echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 21402echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 21403echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 21404echo "" 21405echo " Support for external codecs:" 21406echo " ZLIB support: ${HAVE_ZLIB}" 21407echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 21408echo " JPEG support: ${HAVE_JPEG}" 21409echo " Old JPEG support: ${HAVE_OJPEG}" 21410echo " ISO JBIG support: ${HAVE_JBIG}" 21411echo "" 21412echo " C++ support: ${HAVE_CXX}" 21413echo "" 21414echo " OpenGL support: ${HAVE_OPENGL}" 21415echo "" 21416 21417